The content of the invention
Weak point present in regarding to the issue above, the present invention provide a kind of using successively to black in current dot pattern
The mode that thickness and the dot pattern of point are judged is to distinguish the current item true and false, so as to which that improves antifalse effect passes through detection
The thickness of different ink dots is to distinguish the method and device of article genuine-fake.
To achieve the above object, present invention offer is a kind of distinguishes the side of article genuine-fake by detecting the thickness of different ink dots
Method, comprise the following steps:
The thickness value of each ink dot is obtained by detecting light;
When the thickness value of each ink dot is different from, and thickness value is included in default range of values of thickness, activation
Camera device sends infrared light supply and obtains dot matrix image;
According to the result distinguished dot matrix image, with the related information of output.
Above-mentioned distinguishes the method for article genuine-fake by detecting the thickness of different ink dots, wherein, the above method it is specific
Step is as follows:
S1, send some detection light and it is arrived at ink dot surface and ink dot neighboring area respectively, and obtain reflection
Detect light;
The detection fiber lengths that S2, analysis return, to draw the thickness value of ink dot;
S3, judge whether include numerical value identical thickness value in the thickness values of all ink dots, when the thickness for judging ink dot
When value differs, the thickness value of ink dot is stored into ink dot data storage chained list;
S4, any ink dot of extraction thickness value, when the thickness value of all ink dots is in default range of values of thickness, then
By trigger signal, activation infrared light supply occurs module and sends infrared light supply;
S5, infrared light supply are radiated on dot matrix image, and light source is returned, to obtain dot matrix image;
S6, dot matrix image is parsed, to form dot matrix image coded data corresponding thereto;
S7, dot matrix image coded data is distinguished in database, and according to discrimination results extraction corresponding thereto
Message file;
S8, output information file.
Above-mentioned distinguishes the method for article genuine-fake by detecting the thickness of different ink dots, wherein, in step sl, send
Some detection light be vertical detection light, after detecting light and arriving at article surface or ink dot surface, then carry out vertical
Reflection.
Above-mentioned distinguishes the method for article genuine-fake by detecting the thickness of different ink dots, wherein, in step s 2, including
Following sub-step:
Every S201, analysis detection light length, to obtain the length value of every detection light, and count short distance light
The quantity of line and long range light, to form short distance ray sets and long range ray sets;
S202, according to the difference of long range light and short distance light to draw the thickness value of ink dot;
Also include following three kinds of situations in step S202:
Situation a, when the top surface and article surface of ink dot are horizontal plane, extract any one long range light
Length value, by it respectively compared with the length value of each short distance light, to draw multiple numerical value, drawn to after
Numerical value be ranked up after, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation b, when the top surface of ink dot is inclined plane and article surface is horizontal plane, obtain short distance light collection
Maximum fiber lengths value in conjunction, and respectively compared with the length value of any one long range light, it is multiple to draw
Numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation c, when the top surface of ink dot is arcwall face and article surface is horizontal plane, by short distance ray sets
The minimum short distance light of middle length value is compared with any one long range light in long range ray sets, to draw
Multiple numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot.
Above-mentioned distinguishes the method for article genuine-fake by detecting the thickness of different ink dots, wherein, in step s3, extraction
The thickness value of any ink dot, by it compared with the thickness value of other ink dots, when the thickness value for judging to work as the first two ink dot
When numerical value is identical, then corresponding information is exported;When judging that the numerical value of thickness value of all ink dots differs, then ink dot is established
Data storage chained list, to store the thickness value of each ink dot.
Above-mentioned distinguishes the method for article genuine-fake by detecting the thickness of different ink dots, wherein, in step s 4, when carrying
When the ink dot thickness value taken is included in default range of values of thickness, then it will determine that result generates pulse signal, and input triggering
In circuit module, after triggers circuit module is handled the pulse signal in input processor, to control infrared light supply
Module sends infrared light supply;
When the ink dot thickness value of extraction is not in default range of values of thickness, then judge that current dot pattern is invalid, and
Export relevant information.
The present invention also provide it is a kind of distinguish the device of article genuine-fake by detecting the thickness of different ink dots, including:
Camera device, for send some detection light and infrared light supplies and obtain some detection light after reflection, with
And dot matrix image is generated according to the infrared light supply after reflection;
Processor, for the thickness value to calculating ink dot, and other modules are controlled;
Detect light source and module occurs, detect light for generating, and go out by LED light hair in camera device;
Comparator, for being compared to the thickness value of all ink dots, and the thickness value to ink dot and default thickness
Value scope is compared;
Trigger module, for handling the comparative result signal received, to generate trigger signal;
Module occurs for infrared light supply, goes out for generating infrared light supply, and by LED light hair in camera device;
Parsing module, for current dot matrix image to be resolved into dot matrix image coded data corresponding thereto;
Dot array data storehouse, enter for storing dot matrix image coded data, and to the current dot matrix image coded data of extraction
Row distinguishes;
Relevant information data storehouse, relevant information is called for storing relevant information to be output, and according to judged result;
Output module, for exporting associated storage information.
Above-mentioned device, wherein, in addition to thickness value storage chained list, for storing default range of values of thickness.
Above-mentioned device, wherein, in the processor, including following sub-step:
The length of every light is analyzed, to obtain the length value of every light, and counts short distance light and long range light
The quantity of line, to form short distance ray sets and long range ray sets;
According to the difference of long range light and short distance light to draw the thickness value of ink dot;
Also include following three kinds of situations:
Situation a, when the top surface and article surface of ink dot are horizontal plane, extract any one long range light
Length value, by it respectively compared with the length value of each short distance light, to draw multiple numerical value, drawn to after
Numerical value be ranked up after, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation b, when the top surface of ink dot is inclined plane and article surface is horizontal plane, obtain short distance light collection
Maximum fiber lengths value in conjunction, and respectively compared with the length value of any one long range light, it is multiple to draw
Numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation c, when the top surface of ink dot is arcwall face and article surface is horizontal plane, by short distance ray sets
The minimum short distance light of middle length value is compared with any one long range light in long range ray sets, to draw
Multiple numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot.
Above-mentioned device, wherein, in the comparator, the thickness value of any ink dot is extracted, by itself and other ink dots
Thickness value is compared, when judge when the numerical value of the thickness value of the first two ink dot is identical, then export corresponding information;Work as judgement
When the numerical value of the thickness value of all ink dots differs, then ink dot data storage chained list is established, to store the thickness of each ink dot
Angle value;
When the ink dot thickness value of extraction is included in default range of values of thickness, then result generation pulse letter is will determine that
Number, and in input trigger circuit module, after triggers circuit module is handled the pulse signal in input processor, with control
Infrared light supply occurs module and sends infrared light supply;
When the ink dot thickness value of extraction is not in default range of values of thickness, then judge that current dot pattern is invalid, and
Export relevant information.
Compared with prior art, the present invention has advantages below:
The present invention is by being judged and according to result of determination to identification point the thickness of each ink dot in dot pattern
System of battle formations shape is simultaneously judged it, so as to draw the true and false of current item, with the existing single discrimination simply by dot matrix image
As a result compared in a manner of the true and false for judging current item, the present invention can further improve antifalse effect.
Embodiment
Present invention offer is a kind of to distinguish the method for article genuine-fake, including following step by detecting the thickness of different ink dots
Suddenly:
The thickness value of each ink dot is obtained by detecting light;
When the thickness value of each ink dot is different from, and thickness value is included in default range of values of thickness, activation
Camera device sends infrared light supply and obtains dot matrix image;
According to the result distinguished dot matrix image, with the related information of output.
As shown in figure 1, the above method comprises the following steps that:
S1, send some detection light and it is arrived at ink dot surface and ink dot neighboring area respectively, and obtain reflection
Detect light.
In step sl, it is vertical detection to detect light some detection light that module is sent by LED light line occur
Light, when detect light arrive at article surface or ink dot surface after, then vertically reflected, multiaspect by detection light line reflection extremely
In LED light head.
Wherein, the detection light is non-infrared light.
The detection fiber lengths that S2, analysis return, to draw the thickness value of ink dot.
In step s 2, including following sub-step:
Every S201, analysis detection light length, to obtain the length value of every detection light, and count short distance light
The quantity of line and long range light, to form short distance ray sets and long range ray sets;
S202, according to the difference of long range light and short distance light to draw the thickness value of ink dot;
Also include following three kinds of situations in step S202:
Situation a, when the top surface and article surface of ink dot are horizontal plane, extract any one long range light
Length value, by it respectively compared with the length value of each short distance light, to draw multiple numerical value, drawn to after
Numerical value be ranked up after, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation b, when the top surface of ink dot is inclined plane and article surface is horizontal plane, obtain short distance light collection
Maximum fiber lengths value in conjunction, and respectively compared with the length value of any one long range light, it is multiple to draw
Numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation c, when the top surface of ink dot is arcwall face and article surface is horizontal plane, by short distance ray sets
The minimum short distance light of middle length value is compared with any one long range light in long range ray sets, to draw
Multiple numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot.
S3, judge whether include numerical value identical thickness value in the thickness values of all ink dots, when the thickness for judging ink dot
When value differs, the thickness value of ink dot is stored into ink dot data storage chained list.
In step s3, the thickness value of any ink dot is extracted, by it compared with the thickness value of other ink dots, works as judgement
When the numerical value of the thickness value of the first two ink dot is identical, then feedback current encoded data is invalid, and it is false to judge article;When judgement institute
When the numerical value for having the thickness value of ink dot differs, then ink dot data storage chained list is established, to store the thickness of each ink dot
Value.
S4, any ink dot of extraction thickness value, when the thickness value of all ink dots is in default range of values of thickness, then
By trigger signal, activation infrared light supply occurs module and sends infrared light supply.
S401, by ink dot data storage chained list storage order extract ink dot thickness value;
S402, by the thickness value of ink dot compared with default range of values of thickness, when it is determined that each ink dot thickness value
When being included in default range of values of thickness, then judge that the thickness of all ink dots in current dot pattern is true, and will
Judged result generates pulse signal;
When finding to have an ink dot thickness value not in default range of values of thickness, then not to other ink dot thickness values
It is compared, the thickness for directly judging all ink dots in current dot pattern is false, and it is invalid to export current dot pattern.
S403, when to judge the thickness of all ink dots in current dot pattern be true, will generation pulse signal input triggering
In circuit module, after triggers circuit module is handled the pulse signal in input processor, to control infrared light supply
Module sends infrared light supply.
The thickness of all ink dots only in current dot pattern is judged is true, can pass through trigger module and processing
Device control infrared light supply occurs module and sends infrared light supply.If other people drive infrared light supply that module occurs and send infrared light by force
Source, then audible alarm, and startup file self-destruction program can be sent, so as to the full detail stored.By the above method, can enter
One step improves antifalse effect.
S5, infrared light supply are radiated on dot matrix image, and light source is returned, to obtain dot matrix image.
In step s 5, including following sub-step:
S501, by from and the same or like optical filter like colour system of fluorescence, with filter out be printed on dot pattern plant
Enter background patterns and polluter on region, to get the dot matrix image of dot pattern;
S502, dot matrix image is handled, so that its grey level reaches preset range.
Automatic exposure processing is carried out to the dot matrix image got, so that the grey level of dot matrix image reaches default model
Enclose, including following sub-step:
Filter out the unnecessary spectrum that may also contain in infrared image reflectance spectrum again by optical filter;
Remaining spectrum is caught by optical lens;
When adjusting the exposure of camera lens and figure frame per second, the grey level of the image for the full graphics frame for making to capture reach
Between 110~200.
S6, dot matrix image is parsed, to form dot matrix image coded data corresponding thereto.
The dot matrix image coded data obtained after parsing includes file and starts field (FileBeginFields), head
Portion's information (FileHeader) and data message, data message include code value concordance list (CodeIndexTable), code value item
Mesh list (CodeTable), RAW data item table (RawDataItemTable) and resource/RAW data (Resource/
RawData)。
S7, dot matrix image coded data is distinguished in database, and according to discrimination results extraction corresponding thereto
Message file.
Include following sub-step in the step s 7:
S701, the current dot matrix image coded data of extraction, and the header information in dot matrix image coded data, make number
The storage chained list corresponding with header information is pointed to according to the pointer in storehouse;
S702, judge store chained list in the data message stored whether with the number in current dot matrix image coded data
It is believed that breath is consistent, if the determination result is YES, then step S603 is performed;If if judged result is, feedback current encoded data without
Effect, it is false to judge article;
S703, the calling storage information corresponding with dot matrix image coded data.
S8, output information file.
In step s 8, output module includes sound output module, text display module, image display and video
Output module.According to the type of storage information, from output module corresponding thereto, by the file content of output, to obtain
Know the identity information of the product corresponding with current dot pattern.
Wherein, if the file type of storage information is text, directly shown by display screen;
If the file type of storage information is picture file, directly shown by display screen;
If the file type of storage information is video file, its image section is directly shown by display screen, sound
Line point is exported by power amplifier loudspeaker;
If the file type of storage information is audio file, exported by power amplifier loudspeaker.
As shown in Fig. 2 present invention offer is a kind of to distinguish the device of the current item true and false by detecting ink dot thickness, including
Module 3, comparator 4, thickness value storage chained list 5, trigger module 6, infrared light occur for photographing module 1, processor 2, detection light
Module 7, parsing module 8, dot array data storehouse 9, relevant information data storehouse 10 and output module 11 occur for source.
Camera device 1 is used to sending some detection light and infrared light supplies and obtains some detection light after reflection, with
And dot matrix image is generated according to the infrared light supply after reflection.
Detect light source and module 3 occurs for generating detection light, and gone out by LED light hair in camera device.
Processor 2 is used for calculating the thickness value of each ink dot in current dot pattern, and other modules are controlled
System.
Within a processor, including following sub-step:
Processor analyzes the length of every detection light, to obtain the length value of every detection light, and counts short distance
The quantity of light and long range light, to form short distance ray sets and long range ray sets.
According to the difference of long range light and short distance light to draw the thickness value of ink dot.
Also include following three kinds of situations:
Situation a, when the top surface and article surface of ink dot are horizontal plane, extract any one long range light
Length value, by it respectively compared with the length value of each short distance light, to draw multiple numerical value, drawn to after
Numerical value be ranked up after, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation b, when the top surface of ink dot is inclined plane and article surface is horizontal plane, obtain short distance light collection
Maximum fiber lengths value in conjunction, and respectively compared with the length value of any one long range light, it is multiple to draw
Numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot;
Situation c, when the top surface of ink dot is arcwall face and article surface is horizontal plane, by short distance ray sets
The minimum short distance light of middle length value is compared with any one long range light in long range ray sets, to draw
Multiple numerical value, after being ranked up to the numerical value drawn more afterwards, the maximum numerical value of extraction thickness value is the thickness value of the ink dot.
Comparator 4 is used to be compared the thickness value of all ink dots, and the thickness value to ink dot and default thickness
Value scope is compared.
The step of being compared by comparator to the thickness value of all ink dots be:
The thickness value of any ink dot is extracted, by it compared with the thickness value of other ink dots, when judgement is when the first two ink
When the numerical value of the thickness value of point is identical, then feedback current encoded data is invalid, and it is false to judge article;When the thickness for judging all ink dots
When the numerical value of angle value differs, then ink dot data storage chained list is established, to store the thickness value of each ink dot.
Wherein, thickness value storage chained list 5 in pointer, can according to obtain ink dot thickness value sequencing, by its according to
It is secondary to be stored in thickness value storage chained list.
It is as follows by implementation steps of the comparator to the thickness value of ink dot compared with default range of values of thickness:
The thickness value of ink dot is extracted by the storage order of ink dot data storage chained list 5.
By the thickness value of ink dot compared with default range of values of thickness, to judge each ink dot in dot pattern
Whether thickness value is included in default range of values of thickness.When it is determined that each ink dot thickness value is included in default thickness
When in the range of value, then judge that the thickness of all ink dots in current dot pattern is true, and will determine that result generates pulse signal;
When finding to have an ink dot thickness value not in default range of values of thickness, then not to other ink dot thickness values
It is compared, the thickness for directly judging all ink dots in current dot pattern is false, and it is invalid to export current dot pattern.
Trigger module 6 is used to handle the comparative result signal received, to generate trigger signal.
When the thickness of all ink dots in judging current dot pattern is true, pulse signal input trigger circuit will be generated
In module, after triggers circuit module is handled the pulse signal in input processor, to control infrared light supply that module 7 occurs
Infrared light supply is sent, module occurs by infrared light supply goes out after infrared light supply is generated, and by LED light hair in camera device.
The thickness of all ink dots only in current dot pattern is judged is true, can pass through trigger module and processing
Device control infrared light supply occurs module and sends infrared light supply.If other people drive infrared light supply that module occurs and send infrared light by force
Source, then audible alarm, and startup file self-destruction program can be sent, so as to the full detail stored.By the above method, can enter
One step improves antifalse effect.
Parsing module 8 is used to current dot matrix image resolving to dot matrix image coded data corresponding thereto.
The dot matrix image coded data obtained after parsing includes file and starts field (FileBeginFields), head
Portion's information (FileHeader) and data message, data message include code value concordance list (CodeIndexTable), code value item
Mesh list (CodeTable), RAW data item table (RawDataItemTable) and resource/RAW data (Resource/
RawData)。
Dot array data storehouse 9 is used to store dot matrix image coded data, and the current dot matrix image coded data of extraction is entered
Row distinguishes.
Wherein, current dot matrix image coded data, and the header information in dot matrix image coded data are extracted, makes number
The storage chained list corresponding with header information is pointed to according to the pointer in storehouse;
Judge to store whether the data message stored in chained list is believed with the data in current dot matrix image coded data
Breath is consistent, if the determination result is YES, then calls the storage information corresponding with dot matrix image coded data;If judged result is
If it is invalid to feed back current encoded data, it is false to judge article;
Relevant information data storehouse 10 is used to store relevant information to be output, and calls relevant information according to judged result.
Output module 11 is used to export associated storage information.
Output module includes sound output module, text display module, image display and Video Output Modules.Root
According to the type of storage information, from output module corresponding thereto, by the file content of output, to learn and current dot matrix
The identity information of the corresponding product of figure.
Wherein, if the file type of storage information is text, directly shown by display screen;
If the file type of storage information is picture file, directly shown by display screen;
If the file type of storage information is video file, its image section is directly shown by display screen, sound
Line point is exported by power amplifier loudspeaker;
If the file type of storage information is audio file, exported by power amplifier loudspeaker.
Presently preferred embodiments of the present invention is the foregoing is only, is merely illustrative for invention, and it is nonrestrictive.
Those skilled in the art understands, can carry out many changes to it in the spirit and scope that invention claim is limited, and changes,
It is even equivalent, but fall within protection scope of the present invention.