The method of red and black timing is judged based on YIQ color modeTechnical field
The present invention relates to judicial expertise technical fields, specifically, more particularly to a kind of judging Zhu based on YIQ color modeThe method of black timing.
Background technique
Red and black timing refers to that printed text and writing, printing, duplicating word are formed by sequencing, and " Zhu " here is finger markText is formed by ink paste, stamp-pad ink, and " ink " refers to all writing strokes overlapped with printed text, by writing material, print copying materialMaterial is formed.
Currently, judging that the method for red and black timing is all based on greatly the external appearance characteristic and physicochemical property of sample.Wherein based on outerSeeing feature and carrying out the process of red and black timing judgement is mainly according to the tables such as the variation of " red and black " intersection pigment color, hierarchical structureFeature is seen to be judged;The process for carrying out the judgement of red and black timing based on physicochemical property is primarily referred to as the dissolution according to red and black colorantThe physical and chemical indexes such as property, optical characteristics, chemical component, adsorption capacity are judged.Currently, widely used judgment method includes lightLearn (electronics) microscopic method, three-dimensional spectroscopic methodology, electron probe and spectroscopy, microscopic spectrophotometry, infrared microscopy optical imageryTechnology, Fluorescent examination method, stripping method, decoloring method etc..
But existing external appearance characteristic and physicochemical property based on sample carries out in the method for red and black timing judgement, althoughIt is mainly carried out by all kinds of accurate experimental facilities in detection process, but the meeting pair in observation and analytic process of the subjective factor of peopleJudgement conclusion generates large effect.
Different from above two method, the present invention is based on digitalized signatures, by digitized process, by color by sense organ tableAs switching to data characteristics, in conjunction with big data processing method, judgement conclusion is directly obtained.Minimum level reduces human factor to conclusionInfluence.
Summary of the invention
The technical issues of being affected according to existing red and black time-series rules method set forth above by subjective factor, and provideA method of red and black timing is judged based on YIQ color mode.The present invention is mainly utilized the sense of the colouring information in red and black regionOfficial's presentation is converted into digitalized signature by YIQ color mode data, carries out data analysis using data mining technology, directlyRed and black timing judgement conclusion is obtained, to utmostly reduce influence of the human factor in the judgement of red and black timing.
The technological means that the present invention uses is as follows:
The method that red and black timing is judged based on YIQ color mode, is included the following steps:
Step 1: preparation master sample identical with the writing type of sample red and black overlapping region to be detected, wherein writingType includes handwriting and printing writing, master sample include printed text in upper and printed text at lower two kinds;
Step 2: the red and black overlapping region of scanning standard sample and sample to be detected, scanning result are stored as JPEG lattice respectivelyFormula picture file;
Step 3: corresponding to two kinds of master samples and sample to be detected respectively using 3*3 pixel or 5*5 pixel as acquisition unitPicture file carry out pixel sampling, obtain picture file in red and black overlapping region 100-200 group YIQ color mode numberAccording to;
Step 4: using SPSS software to the YIQ color mode number of the red and black overlapping region of master sample and sample to be detectedAccording to progress Mann-Whitney inspection;
According to the asymptotic conspicuousness P value inspection result of bilateral, when some in sample to be detected and two kinds of master samples Y,I, when the asymptotic conspicuousness P value of Q data is greater than 0.05, the otherness of sample and master sample to be detected is not statistically significant;
According to the asymptotic conspicuousness P value inspection result of bilateral, when some in sample to be detected and two kinds of master samples Y,I, when the asymptotic conspicuousness P value of Q data is less than 0.05, it is same total to show that the data for detecting sample and master sample are not fromBody, then the red and black timing of sample to be detected and the red and black timing of the master sample are opposite.
Further, in step 1, the image size of picture file storage is 600dpi-1200dpi, image type 24Position is full-color.
Further, handwriting, printing writing and the printed text generated when preparing master sample respectively with sample to be detectedPen, the printing device used is identical with stamp-pad ink/ink paste.
Further, in step 3, according to such as after the RGB color mode data of red and black overlapping region in acquisition picture fileRGB color mode data is converted to YIQ color mode data by lower formula:
Y=0.299R+0.587G+0.114B
I=0.596R-0.275G-0.321B
Q=0.212R-0.523G+0.311B.
Compared with the prior art, the invention has the following advantages that
1, the method provided by the invention that red and black timing is judged based on YIQ color mode, by with red and black overlapping regionThe foundation that YIQ color mode data judge as red and black timing realizes influence of the subjective factor for reducing people to judgement conclusion.
2, the method provided by the invention that red and black timing is judged based on YIQ color mode, by using Principle of Statistics intoRow data processing guarantees the accuracy of judging result.
3, the method provided by the invention that red and black timing is judged based on YIQ color mode, it is easy to operate, do not need appearance inspectionThe expensive device surveyed and used in Physico-chemical tests.
To sum up, it applies the technical scheme of the present invention the sense organ presentation of the colouring information in red and black region, passes through YIQ color mouldFormula data are converted into digitalized signature, and carry out data processing, directly obtain red and black timing judgement conclusion, utmostly reduce peopleFor influence of the factor in the judgement of red and black timing.Therefore, technical solution of the present invention solves existing red and black time-series rules sideThe problem of method is affected by subjective factor.
Based on the above reasons the present invention can judicial expertise and and the fields such as the inspection of document be widely popularized.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to do simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hairBright some embodiments for those of ordinary skill in the art without any creative labor, can be withIt obtains other drawings based on these drawings.
Fig. 1 is the method flow diagram of judgement red and black timing of the present invention.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phaseMutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is onlyIt is only a part of the embodiment of the present invention, instead of all the embodiments.It is real to the description of at least one exemplary embodiment belowIt is merely illustrative on border, never as to the present invention and its application or any restrictions used.Based on the reality in the present inventionExample is applied, every other embodiment obtained by those of ordinary skill in the art without making creative efforts all belongs toIn the scope of protection of the invention.
Embodiment 1
As shown in Figure 1, the present invention provides a kind of method for judging red and black timing based on YIQ color mode, including it is as followsStep:
Step 1: preparation master sample identical with the writing type of sample red and black overlapping region to be detected, wherein writingType includes handwriting and printing writing, master sample include printed text in upper and printed text at lower two kinds;
Step 2: the red and black overlapping region of scanning standard sample and sample to be detected, scanning result are stored as JPEG lattice respectivelyFormula picture file;
Step 3: corresponding to two kinds of master samples and sample to be detected respectively using 3*3 pixel or 5*5 pixel as acquisition unitPicture file carry out pixel sampling, obtain picture file in red and black overlapping region 100-200 group YIQ color mode numberAccording to;
Step 4: using SPSS software to the YIQ color mode number of the red and black overlapping region of master sample and sample to be detectedAccording to progress Mann-Whitney inspection;
According to the asymptotic conspicuousness P value inspection result of bilateral, when some in sample to be detected and two kinds of master samples Y,I, when the asymptotic conspicuousness P value of Q data is greater than 0.05, the otherness of sample and master sample to be detected is not statistically significant;
According to the asymptotic conspicuousness P value inspection result of bilateral, when some in sample to be detected and two kinds of master samples Y,I, when the asymptotic conspicuousness P value of Q data is less than 0.05, it is same total to show that the data for detecting sample and master sample are not fromBody, then the red and black timing of sample to be detected and the red and black timing of the master sample are opposite.
Preferably, the application using SPSS Inc. 19.0 Data Analysis Software of SPSS.
Printed text Zhu and ink after first Zhu after upper and printed text corresponding red and black timing under is first ink in step 1.
The image data of YIQ color mode is made of brightness and color information, and Y is luminance information, and I and Q are colouring informations,Wherein I is orange vector, and Q is magenta vector.
Further, in step 1, the image size of picture file storage is 600dpi-1200dpi, image type 24Position is full-color.
Further, handwriting, printing writing and the printed text generated when preparing master sample respectively with sample to be detectedPen, the printing device used is identical with stamp-pad ink/ink paste.
Further, in step 3, according to such as after the RGB color mode data of red and black overlapping region in acquisition picture fileRGB color mode data is converted to YIQ color mode data by lower formula:
Y=0.299R+0.587G+0.114B
I=0.596R-0.275G-0.321B
Q=0.212R-0.523G+0.311B.
Using the method for the invention, when carrying out judging the red and black based on YIQ color mode respectively to following samples to be detectedSequence:
Sample 1: thinking to reach 6600ES gel ink pen writing words, dry 7 days at room temperature on A4 paper using capable,Printed text is being covered with 681 ink paste of I-shaped at writing;
Sample 2: thinking to reach 6600ES gel ink pen writing words, dry 7 days at room temperature on A4 paper using capable,Printed text is covered with Europe superscript Mate-1 stamp-pad ink ink pad at writing;
Sample 3: using HP P1106 laser printer types text on A4 paper, dries 7 days at room temperature, in wordPrinted text is covered with 681 ink paste of I-shaped at mark;
Sample 4: using HP P1106 laser printer types text on A4 paper, dries 7 days at room temperature, in wordPrinted text is covered with Europe superscript Mate-1 stamp-pad ink ink pad at mark;
Sample 5: being impressed text on A4 paper using 681 ink paste of I-shaped, is dried 7 days at room temperature, at printed text withLi Sida 6600ES gel ink pen writing words;
Sample 6: being impressed text on A4 paper using 681 ink paste of I-shaped, dries 7 days at room temperature, HP is used at printed textP1106 laser printer types text;
Sample 7: being impressed text on A4 paper with Europe superscript Mate-1 stamp-pad ink ink pad, is dried 7 days at room temperature, at printed textThink to reach 6600ES gel ink pen writing words with capable;
Sample 8: being impressed text on A4 paper with Europe superscript Mate-1 stamp-pad ink ink pad, is dried 7 days at room temperature, at printed textWith HP P1106 laser printer types text.
Preparing tool used in above-mentioned sample to be detected is:
Morning twilight A4 multi-function duplicating paper;
510 scanner of EPSON office (Seiko Epson Corp);
HP P1106 laser printer (China Hewlett-Packard Co Ltd);
Europe superscript Mate-1 stamp-pad ink ink pad (Shanghai office partner's Trade Development Co., Ltd);
681 ink paste of I-shaped (Shanghai Air Gun Factory);
It is capable to think to reach 6600ES gel ink pen (capable Group Co., Ltd);
19.0 Data Analysis Software of SSPS (SSPS company).
For above-mentioned sample to be detected, it is utilized respectively the method for the invention and prepares corresponding master sample and carry out the red and blackTiming judgement, accuracy rate reach 100%.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extentPipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according toSo be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features intoRow equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solutionThe range of scheme.