The method and system of two-dimentional code position on a kind of packaging coiled material, positioning coiled material
Technical field
The invention belongs to two-dimensional code product packaging production technical field, particularly on a kind of packaging coiled material, positioning coiled material
The method and system of two-dimentional code position.
Background technology
In existing one yard of technology of bag, the product packaging containing Quick Response Code (as box-packed milk, Boxed beverage etc.) coiled material is in print
Before brush dispatches from the factory after producing, need whether the Quick Response Code on detection packaging coiled material can be read, to ensure the effectiveness of Quick Response Code,
Need before detection the two-dimentional code position in each breadth is positioned.A kind of localization method of the prior art is full width face
Scanning packaging coiled material, realizes the positioning of Quick Response Code in breadth by full width face analysis mode, then the Quick Response Code at recognition positioning;
Another kind of method is the image of fetching portion breadth, identifies the Quick Response Code in image by workman, outlines two at two-dimentional code position
The region of dimension code, then distinguishes the Quick Response Code in the region outlining.
The first localization method above-mentioned needs to parse the two-dimentional code position of whole coiled material breadth, there is computationally intensive, positioning
Complicated defect;Second method need artificial participate in, have that location efficiency is low, lost labor defect.
Content of the invention
The present invention provides a kind of method and system of two-dimentional code position on packaging coiled material, positioning coiled material, existing for solving
Quick Response Code location Calculation amount on technology intermediate package coiled material is big, location efficiency is low, the problem of lost labor.
In order to solve above-mentioned technical problem, a technical scheme of the present invention is for providing two-dimentional code position on a kind of positioning coiled material
Method, comprising:
Make Quick Response Code location expression file;
Obtain the image that coiled material launches breadth, according to Quick Response Code in described Quick Response Code location expression document alignment described image
Position.
In one embodiment of the inventive method, described Quick Response Code location expression file be the two-dimentional code position of mark picture or
The document of record Quick Response Code coordinate position.
In one embodiment of the inventive method, the image process obtaining coiled material expansion breadth further includes:
Identification coiled material launches the telltale mark on breadth, obtains coiled material when recognizing described telltale mark and launches breadth
Image;
Wherein, in described coiled material, described telltale mark is provided with the repeatable position of regular length.
In one embodiment of the inventive method, described telltale mark is any one in color lump, character and given shape
Or it is multiple.
In one embodiment of the inventive method, two-dimentional in described image according to described Quick Response Code location expression document alignment
Also include after the position of code:
Whether the Quick Response Code in detection image can be identified.
In one embodiment of the inventive method, if there being Quick Response Code can not be identified in described image, producing and reporting to the police, and remembering
The position of the Quick Response Code that record can not be identified.
Another technical scheme of the present invention is for providing a kind of system of two-dimentional code position on positioning coiled material, comprising: Yin Qian center
And printer detecting system.
Described Yin Qian center is used for making Quick Response Code location expression file, by described Quick Response Code location expression file send to
Printer detecting system;
Described printer detecting system includes communication module, photographic head and processor;
Described communication module is used for receiving described Quick Response Code location expression file;
Described photographic head is used for obtaining the image that coiled material launches breadth;
Described processor connects described communication module and described photographic head, according to described Quick Response Code location expression document alignment
The position of Quick Response Code in described image.
In one embodiment of present system, described Quick Response Code location expression file be the two-dimentional code position of mark picture or
The document of record Quick Response Code coordinate position.
In one embodiment of present system, described printer detecting system also includes electric eye, connects described photographic head, uses
Launch the telltale mark on breadth in identification coiled material, when recognizing described telltale mark, the described photographic head of triggering obtains coiled material
Launch the image of breadth;
Wherein, in described coiled material, described telltale mark is provided with the repeatable position of regular length.
In one embodiment of present system, described telltale mark is any one in color lump, character and given shape
Or it is multiple.
In one embodiment of present system, whether the Quick Response Code that described processor is additionally operable in detection image can be known
Not.
In one embodiment of present system, described system also includes warning device, connects described processor, if described figure
There is Quick Response Code can not be identified in picture, then control described warning device to produce by described processor and report to the police, and record and can not be known
The position of other Quick Response Code.
Yet another aspect of the present invention is: provide a kind of using Quick Response Code on the positioning coiled material described in any of the above-described embodiment
The method of position, or carry out Quick Response Code positioning using the system of two-dimentional code position on positioning coiled material described in any of the above-described embodiment
Packaging coiled material, the position of the Quick Response Code on described packaging coiled material is predetermined, and records in Quick Response Code location expression file
In.
The present invention packs in an embodiment of coiled material, and described packaging coiled material is arranged in the repeatable position of regular length
There is telltale mark, all Quick Response Codes between adjacent positioned labelling are fixing with respect to described specifically labelled position.
The present invention makes Quick Response Code location expression file by Yin Qian center, and this Quick Response Code location expression file is sent to print
Brush machine examination examining system, printer detecting system, according to the position of Quick Response Code location expression document alignment Quick Response Code in image, has
Have the characteristics that locating speed is fast, location efficiency is high, location Calculation amount is little, need not artificially participate in.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of two-dimentional code position on the positioning coiled material of one embodiment of the invention;
Fig. 2 is the picture schematic diagram of the two-dimentional code position of mark of one embodiment of the invention;
Fig. 3 is the method flow diagram of two-dimentional code position on the positioning coiled material of another embodiment of the present invention;
Fig. 4 is the image schematic diagram of the photographic head shooting of one embodiment of the invention;
Fig. 5 is the system construction drawing of two-dimentional code position on the positioning coiled material of one embodiment of the invention;
Fig. 6 is the system construction drawing of two-dimentional code position on the positioning coiled material of another embodiment of the present invention.
Specific embodiment
In order that the technical characterstic of the present invention and effect become apparent from, below in conjunction with the accompanying drawings technical scheme is done
Further illustrate, the present invention also can have other different instantiations to be illustrated or to implement, any those skilled in the art
The equivalents done within the scope of the claims belong to the protection category of the present invention.
Coiled material described in the present embodiment is the coiled material of product packaging, such as the coiled material of boxed milk outer package, the width of coiled material,
The arrangement of length and individual packaging is designed according to the actual requirements, and the present invention does not limit to its concrete size and design.One
As for, coiled material has one or more packaging units side by side, the fabric width depending on coiled material and the size of packaging unit, side by side
Multiple packaging units be probably alignment be also likely to be stagger, packaging unit be typically same size but it could also be possible that not
Same specification.The position of the one or more Quick Response Codes printed on packaging unit is usually to fix after the completion of Packaging design
's.
As shown in figure 1, Fig. 1 is the method flow diagram of two-dimentional code position on the positioning coiled material of one embodiment of the invention.This reality
Apply Li Jiangyinqian center to combine with printer detecting system, the process of Quick Response Code positioning on coiled material can be simplified, it is fixed to improve
Position efficiency.
Specifically, on positioning coiled material, the method for two-dimentional code position includes:
Step 101: make Quick Response Code location expression file.
During enforcement, Quick Response Code location expression file can be made by Yin Qian center, and Yin Qian center is used for making packaging coiled material
The arrangement of printing surface.Yin Qian center makes during print publishing it is known that needing the content of printing, that is, know the position of Quick Response Code.
Step 102: obtain the image that coiled material launches breadth, according to described Quick Response Code location expression document alignment described image
The position of middle Quick Response Code.
Wherein, the two-dimentional code position of described Quick Response Code location expression file record is relative with code position two-dimentional in described image
Should.
During enforcement, step 102 is carried out in printer detecting system, and printer detecting system obtains from Yin Qian center
Quick Response Code position paper.
The present embodiment determines the position of Quick Response Code in image according to Quick Response Code position paper, need not manually or full width face identification
Just quickly can navigate to Quick Response Code, finder can be saved, improve location efficiency.
Specifically, Quick Response Code location expression file is the template of the two-dimentional code position of mark, can be the two-dimentional code bit of mark
The picture (Quick Response Code location expression file is such as forms such as bmp, jpeg, pdf) put or the document of record Quick Response Code coordinate position
(Quick Response Code location expression file is such as forms such as txt, doc, docx).
Specifically, identify in the picture of two-dimentional code position, identify the corresponding position of Quick Response Code with the mode adding frame or tint,
As shown in Fig. 2 the black bars 201 in the picture 202 of the two-dimentional code position of mark are the corresponding position of Quick Response Code.Printing machine testing
System is mated overlapping with mark Quick Response Code position picture for the image gathering, thus obtaining the position of Quick Response Code in image.
The paper trail of record Quick Response Code coordinate position has the particular location coordinate of Quick Response Code, and this position coordinates is in image
The position coordinateses of Quick Response Code, printer detecting system can directly determine two in image according to the document of record Quick Response Code coordinate position
The position of dimension code.
In one embodiment of the invention, the image process obtaining coiled material expansion breadth in above-mentioned steps 102 further includes:
Identification coiled material launches the telltale mark on breadth, obtains the image that coiled material launches breadth when recognizing described telltale mark;Its
In, described telltale mark is provided with described coiled material on the repeatable position of regular length.
Detailed, telltale mark is color lump, character (as letter, numeral, symbol or its combination in any) and given shape etc.
Any one or more in mark, (such as 500mm, the application does not limit each regular length of coiled material to this, depending on photographic head
Depending on the breadth length shooting every time) repeats bits be equipped with a telltale mark.
On the printing surface of coiled material, Design Orientation labelling ensure that all two dimensions in each image that photographic head obtains
Code position immobilizes with respect to telltale mark, so that the two-dimentional code position of Quick Response Code location expression file record and detection
Two-dimentional code position in the image that system photographic head obtains is corresponding.
In one embodiment of the invention, as shown in figure 3, in order to judge Quick Response Code spray printing whether problematic it is ensured that dispatching from the factory after
Quick Response Code can be identified, and also includes after above-mentioned steps 102:
Step 103: whether the Quick Response Code in detection image can be identified.
When being embodied as, whether can be able to be identified according to the Quick Response Code that recognizer judges corresponding position by controller.
Further, also include after step 103:
Step 104: if there is Quick Response Code can not be identified in described image, produces and report to the police, and record and can not be identified
The position of Quick Response Code.
Enable to staff by way of the position that Quick Response Code can not be identified by warning and record and subsequently find two
The packaging that dimension code can not be identified is it is ensured that pack the effectiveness of upper Quick Response Code.
As shown in figure 5, Fig. 5 is the system of two-dimentional code position on a kind of positioning coiled material of one embodiment of the invention.Specifically,
This system includes: Yin Qian center 40 and printer detecting system 50.
Described Yin Qian center 40 is used for making Quick Response Code location expression file, and described Quick Response Code location expression file is sent
To printer detecting system 50.
Described printer detecting system 50 includes communication module 501, photographic head 502 and processor 503.
Described communication module 501 is used for receiving described Quick Response Code location expression file.
Described photographic head 502 is used for obtaining the image that coiled material launches breadth.
Described processor 503 connects described communication module 501 and described photographic head 502, is retouched according to described two dimension code position
State the position of Quick Response Code in document alignment described image.
Wherein, the two-dimentional code position of described Quick Response Code location expression file record is relative with code position two-dimentional in described image
Should.
Specifically, the image of photographic head collection is as shown in figure 4, Marking the cell region 402 is in each product packaging 403
Two-dimentional code position.On coiled material, the size of the arrangement (staggered or neat arrangement) of product packaging and product packaging regards practical situation
It is designed, the present invention does not limit to this.
The present embodiment by Yin Qian center make Quick Response Code location expression file, by this Quick Response Code location expression file send to
Printer detecting system, printer detecting system is according to the position of Quick Response Code location expression document alignment Quick Response Code in image.
The present invention has the characteristics that locating speed is fast, location efficiency is high, location Calculation amount is little, need not artificially participate in.
Specifically, above-mentioned Quick Response Code location expression file is picture or the record Quick Response Code coordinate of the two-dimentional code position of mark
The document of position.
In present system one embodiment, as shown in fig. 6, printer detecting system also includes electric eye 504, connect photographic head
502, for identifying the telltale mark on coiled material expansion breadth, when recognizing described telltale mark, trigger described photographic head 502
Obtain the image that coiled material launches breadth.Wherein, in described coiled material, described positioning is provided with the repeatable position of regular length
Labelling.
In one embodiment of the invention, above-mentioned telltale mark is color lump (black block 401 as in Fig. 4), character and specific shape
Any one or more in shape.Consider the outward appearance of packaging unit, if telltale mark, in packaging unit position, is preferably provided at
Inside sightless bottom or flanging after packaging.Alternatively, telltale mark can be arranged on all packaging unit regions on coiled material
Both sides of the edge in addition are left white position.In the case of all packaging unit specification identicals, alternatively, telltale mark can be adopted
With having printed telltale mark on each packaging unit, so identification telltale mark can be adjusted to every Quick Response Code location expression literary composition
The distance that in part, corresponding length is smaller opens specifically labelled identification next time.In other embodiments, telltale mark can also be
Other labellings, why the present invention is not specifically limited to telltale mark.
In one embodiment of the invention, in order to judge whether Quick Response Code spray printing is problematic it is ensured that the Quick Response Code after dispatching from the factory can
Identified, whether the Quick Response Code that described processor 503 is additionally operable in detection image can be identified.
Further, printer detecting system also includes warning device 505 (as shown in Figure 6), connects described processor
503, if there being Quick Response Code can not be identified in described image, control described warning device 505 to produce report by described processor 503
Alert, and record the position of the Quick Response Code that can not be identified.
The present invention makes Quick Response Code location expression file by Yin Qian center, and this Quick Response Code location expression file is sent to print
Brush machine examination examining system, printer detecting system, according to the position of Quick Response Code location expression document alignment Quick Response Code in image, has
Have the characteristics that locating speed is fast, location efficiency is high, location Calculation amount is little, need not artificially participate in.
Further, the present invention also provide a kind of using code position two-dimentional on the positioning coiled material described in any of the above-described embodiment
Method, or the packaging carrying out Quick Response Code positioning using the system of two-dimentional code position on positioning coiled material described in any of the above-described embodiment
Coiled material (for example shown in Fig. 2), the position of the Quick Response Code on described packaging coiled material is predetermined, and records in two-dimentional code position
In description file.
Further, described packaging coiled material is provided with telltale mark in the repeatable position of regular length, adjacent fixed
All Quick Response Codes between the labelling of position are fixing (for example shown in Fig. 4) with respect to described specifically labelled position.
The above is merely to illustrate the technical scheme of the application, any those of ordinary skill in the art all can without prejudice to
Under the spirit and the scope of the present invention, above-described embodiment is modified and is changed.Therefore, the scope of the present invention should regard
Right is defined.