A kind of frame graphic code
Technical field
The present invention relates to a kind of encoding of graphs mode, as bar code and Quick Response Code, a kind of frame graphic code particularly.
Background technology
The information that encoding of graphs is about to certain capacity is converted into pattern arrangement by the rule of setting, i.e. information graphic.Existing encoding of graphs has multiple, as: ripe barcode encoding, concentric garden encoding of graphs, C shape encoding of graphs, special-shaped encoding of graphs etc.
It is that identification is reliable that the graphic designs of encoding of graphs requires, the coding requirement of encoding of graphs is to have error correcting capability and high information density (or variable information density), current existing encoding of graphs design has one dimension bar shaped, two-dimentional bar shaped, it is existing bar code design configuration, the coded system of encoding of graphs is as typical Reed-Solomon two-dimensional bar error correction algorithm, so figure and algorithm that the present invention adopts can directly be applied existing Quick Response Code coding and decoding technology.
Bar code has one-dimensional bar code, two-dimensional bar, compound bar code, color bar code at present.Color bar code adds barcode encoding information by color information, can increase bar code information capacity.
Existing Quick Response Code has stack Quick Response Code as PDF417, Code49, Code16K, Ultracode etc., and matrix type two-dimension code is as QR code, Code One, Aztec, Data Matrix, Maxicode, LP Code, silicon sense grid matrix (GM), silicon sense close matrix (CM), Chinese letter co.
Existing Quick Response Code is all to fill coded graphics at rectangle or square area, if the QR code generally using is foursquare, there are 3 position sensing figures to determine foursquare position (reference position), coded graphics must be filled in square area, now also there is the embodiment of placing icon in square central authorities, but because square area area constraints can not be placed too many content (placed content can be occupied coded graphics), when identification, must to take square area as identification main body.
Summary of the invention
The object of the invention is paying close attention to content frame or carrier frame (printed matter frame, display screen frame) for reference position arranges encoding of graphs, so just realized and take the identification application model that content is main body as main body rather than the graphic code of take.
The information that encoding of graphs of the present invention is about to certain capacity is converted into pattern arrangement by the rule of setting, i.e. information graphic.Existing encoding of graphs has multiple, as: ripe barcode encoding, concentric garden encoding of graphs, C shape encoding of graphs, special-shaped encoding of graphs etc.
It is that identification is reliable that the graphic designs of encoding of graphs requires, so the shape of figure of the present invention is applicable to High frequency filter, by Fourier transform, has high fdrequency component obvious peak value.
The coding requirement of encoding of graphs is to have error correcting capability and high information density, and the coded system of ripe encoding of graphs is as Reed-Solomon two-dimensional bar error correction algorithm at present.
Described encoding of graphs can be the bar code of existing mode, comprises one-dimensional bar code, Quick Response Code, compound key, colour code etc.
Technical scheme of the present invention is:
A kind of frame graphic code, it is characterized in that: it is peripheral that graphic code is enclosed in content frame, or be positioned at graphic code carrier frame and enclose, graphic code at least comprises three position sensing figures, described three position sensing figures lay respectively at three exterior angles of content frame or three interior angles of graphic code carrier frame, by described three position sensing figures, determine a rectangular shaped rim that has certain width region; And information coding figure, described information coding figure is arranged in the width regions of described rectangular shaped rim.
Described a kind of frame graphic code, is characterized in that: also comprise another position sensing figure, described position sensing figure is positioned at the 4th angle of described rectangular shaped rim.
Described a kind of frame graphic code, is characterized in that: in the width regions of described rectangular shaped rim, also comprise error correction information figure.
Described a kind of frame graphic code, is characterized in that: in the width regions of described rectangular shaped rim, also comprise positioning pattern.
Described a kind of frame graphic code, is characterized in that: in the width regions of described rectangular shaped rim, also comprise correction graph.
Described a kind of frame graphic code, is characterized in that: the format information that also comprises coding method in the width regions of described rectangular shaped rim.
Described a kind of frame graphic code, is characterized in that: the version information that also comprises coding method in the width regions of described rectangular shaped rim.
Described a kind of frame graphic code, is characterized in that: the information coding figure comprising in the width regions of described rectangular shaped rim is one-dimensional bar code or X-Y scheme shape code or compound key or colour code.
A kind of coding method of frame graphic code, its step is, comprise: (1) determines content area, the inside casing that the content area of take is frame, at least three position sensing figures are set up at four angles at inside casing, beyond inside casing, set up housing, between inside casing and housing, form the border width region of certain width; (2) in border width region, carry out the encoding of graphs formation frame graphic code of information.
A read method for frame graphic code, its step is to comprise: (1) obtains frame graphic code image; (2) by position sensing figure, determine the frame identified region of frame graphic code; (3) image of identified region is corrected; (4) image is carried out to binary conversion treatment; (5) bianry image is processed; (6) opposite side block diagram shape code is identified decoding.
The invention has the beneficial effects as follows: the frame that graphic code is positioned at content can highlight content, such as the housing of the chat interface at mobile telephone instant communication shows, comprise the outline pattern code that adds friend information, so just needn't close chat interface and in addition demonstration comprise the conventional two-dimensional code that adds friend information; For adopting Quick Response Code also needn't close software interface to the application software of code pairing, show in addition conventional two-dimensional code, but directly frame graphic code is presented to the interface frame of application software; For promotional literature, frame graphic code can be printed on to the edge of printed matter, so not only can increase information capacity, and more be conducive to wide-long shot and obtain frame graphic code.
Accompanying drawing explanation
Fig. 1 is two-dimentional frame graphic code structural representation.
Fig. 2 is the schematic diagram that two-dimentional frame graphic code is arranged on carrier frame.
Fig. 3 is one dimension frame bar shape code structural representation.
Fig. 4 is that one dimension frame bar shape code is arranged on the schematic diagram enclosing in carrier frame.
Fig. 5 is the coding process flow diagram of frame graphic code.
Fig. 6 is the process flow diagram that reads of frame graphic code.
Embodiment
Below in conjunction with drawings and Examples, the present invention is further described.
Fig. 1 is two-dimentional frame graphic code structural representation.101 is carrier, and carrier is as printed matter, display screen etc.; 102 is inside casing, i.e. the inside casing of frame graphic code; 103,104,105 is position sensing figure, have at least three position sensing figures to determine a frame graphic code, 106 is the 4th position sensing figure, and the 4th each and every one position sensing figure can be used as the sign figure that is different from conventional two-dimensional code, also can be used as positioning pattern or correction graph; 107 is format information, for determining the form of frame graphic code; 108 is version information, for determining the version of frame graphic code; 109 is information coding figure, and information coding figure is arranged in the frame of the certain width beyond inside casing 102, and housing is not set in Fig. 1, housing is not limited, and goes back inclusion information error correction figure in border width region; 110 is content, and the content comprising in two-dimentional frame graphic code, as image, word, software interface etc.
Consider that when identification and conventional two-dimensional code distinguish, setting position is surveyed figure 106, if detect like this position sensing figure 106 just expression be frame graphic code.
For software interface, frame graphic code can be arranged on to the housing of software interface, beneficial effect is that user needn't close application software current interface in order to show conventional two-dimensional code.
Such as the housing of the chat interface at mobile telephone instant communication activates, show and comprise the outline pattern code that adds friend information, so just needn't close chat interface and in addition demonstration comprise the conventional two-dimensional code that adds friend information.
For adopting Quick Response Code also needn't close application software current interface to the application software of code pairing, show in addition conventional two-dimensional code, but directly frame graphic code is activated to the interface frame that is presented at application software.
For social software, as microblogging, frequent scanning the other side's the Quick Response Code that adopts adds good friend, just needn't close social software current interface directly scan frame graphic code interpolation good friend at the interface of social software frame activation display bezel graphic code.
For advertisement, comprise still image or display image, adopt frame graphic code, because information coding figure spacing is large compared with conventional two-dimensional code, so can identify in farther distance.Outdoor advertising as current employing conventional two-dimensional code, needs shooting at close range to read, and as existing TV programme Quick Response Code publicity also needs shooting at close range to read, adopts frame graphic code of the present invention can to read by wide-long shot.
Fig. 2 is the schematic diagram that two-dimentional frame graphic code is arranged on carrier frame.In Fig. 2, because two-dimentional frame graphic code is arranged on the frame of carrier, so set up housing 201, form the frame region of certain width between inside casing 102 and housing 201, the encoding of graphs that carries out information in border width region forms frame graphic code.All the other arrange with consistent shown in Fig. 1.
Fig. 3 is one dimension frame bar shape code structural representation.In Fig. 3, in border width region, be one-dimensional bar code, the 301st, one-dimensional bar code.All the other arrange with consistent shown in Fig. 1.
Fig. 4 is that one dimension frame bar shape code is arranged on the schematic diagram enclosing in carrier frame.
Fig. 5 is the coding process flow diagram of frame graphic code.Its step is to comprise: 501 determine content area, as word, image-region, or the interface of application software; 502 set up frame graphic code inside casing, take the inside casing of content area as frame graphic code; 503 set up position sensing figure, at four angles of inside casing, set up at least three position sensing figures, beyond inside casing, set up housing, form the frame region of certain width between inside casing and housing; 504 carry out encoding of graphs, and the encoding of graphs that carries out information in border width region forms frame graphic code.
Consider that when identification and conventional two-dimensional code distinguish, except setting up three position sensing figures at four angles of inside casing, at the 4th angle, also set up the 4th position sensing figure, so just can carry out Campatible identifying operation with conventional two-dimensional code.
Certainly, if be approximately decided to be frame graphic code, at four angles of inside casing, set up three position sensing figures and can determine frame graphic code position.
Fig. 6 is the process flow diagram that reads of frame graphic code.Consider Campatible identification, its step is to comprise: 601 obtain target image, obtains the Image Coding figure that comprises conventional two-dimensional code and frame graphic code; 602 recognizing sites are surveyed figure, according to the feature of position sensing figure, position sensing figure are identified; 603 judgements, if only there are three position sensing figures, are judged to be conventional two-dimensional code, carry out the identification of conventional two-dimensional code, if there are four position sensing figures, are judged to be frame graphic code; 604 obtain frame graphic code image; 605 determine frame identified region; The image of 606 pairs of identified regions is corrected, and information coding figure is corrected; 607 pairs of images carry out binary conversion treatment, information coding figure are carried out to binary conversion treatment; 608 pairs of bianry images are processed, as carry out computing, and the image after computing is carried out to the profile that rim detection obtains coded graphics region; 609 identification decodings, carry out computing acquired information by decoding rule.