CN108154212A - A kind of coding and decoding methods based on horizontal and vertical parity check code - Google Patents
A kind of coding and decoding methods based on horizontal and vertical parity check code Download PDFInfo
- Publication number
- CN108154212A CN108154212A CN201711327150.3A CN201711327150A CN108154212A CN 108154212 A CN108154212 A CN 108154212A CN 201711327150 A CN201711327150 A CN 201711327150A CN 108154212 A CN108154212 A CN 108154212A
- Authority
- CN
- China
- Prior art keywords
- parity check
- check code
- horizontal
- vertical parity
- region unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Error Detection And Correction (AREA)
Abstract
The present invention provides a kind of coding and decoding methods based on horizontal and vertical parity check code, break a linear corresponding relation for horizontal and vertical parity check code figure, the point horizontal and vertical parity check code region unit randomly selected by splicing covers the point horizontal and vertical parity check code file of full page to be spliced to form, so as to increase the complexity and difficulty that the third party illegally authorized usurps yard resource file and its matched content of copyright resource.And pass through the X between arbitrary 2 adjacent point horizontal and vertical parity check code blocks, the relative rotation angle that Y-coordinate value carries out ± 90 ° forms figure to exclude the horizontal and vertical parity check code X that scanning obtains, Y invalid coordinates values, the reading of erroneous point horizontal and vertical parity check code coordinate value is prevented, so that it is guaranteed that being capable of the normal effective use of code file that is spliced of normal use fragment block dot matrix code.
Description
Technical field
The present invention relates to a horizontal and vertical parity check code technical fields, and in particular to a kind of coding and decoding methods based on horizontal and vertical parity check code.
Background technology
With the development of technology, point horizontal and vertical parity check code is as the arrangement form point horizontal and vertical parity check code by multiple fine points on printing and paper
Shape is to show the technology of numerical value or information just widely available.As a kind of typical application, point horizontal and vertical parity check code technology is in mutual education
Technical field is used widely.Horizontal and vertical parity check code image data is generally printed onto medium of the display just like test question information by the prior art
On, by a horizontal and vertical parity check code reading device, the location information of a horizontal and vertical parity check code is taken so as to show interactive result.
In point horizontal and vertical parity check code technical applications, the coordinate value of the point horizontal and vertical parity check code of each page is by continuously putting horizontal and vertical parity check code coordinate value structure
Into point horizontal and vertical parity check code coordinate value and page coordinates are linear relationships, only it is to be understood that (X, the Y) coordinate value and the page of page starting point horizontal and vertical parity check code
Paper size specification, you can corresponding page relative position is extrapolated by the point horizontal and vertical parity check code coordinate value of any position of reading and is believed
Breath reads the point horizontal and vertical parity check code information of paper to matching so as to easily obtain barcode scanning equipment and application by unauthorized third party according to scanning
The resource contents such as picture and text audio frequency and video carry out illegal matching being authorized to utilize.
Invention content
To solve the above-mentioned problems in the prior art, the object of the present invention is to provide a kind of codings based on horizontal and vertical parity check code
And coding/decoding method, break a linear corresponding relation for horizontal and vertical parity check code figure, spliced by splicing the point horizontal and vertical parity check code region unit randomly selected
The point horizontal and vertical parity check code file of covering full page is formed, yard resource file and its matched is usurped so as to increase the third party illegally authorized
The complexity and difficulty of content of copyright resource.
In order to achieve the above object, specific solution of the invention provides a kind of coding method based on horizontal and vertical parity check code, packet
Include following steps:
A horizontal and vertical parity check code figure is cut into N number of horizontal and vertical parity check code region unit, and arbitrarily choose 2* by a1, cutting, selected point horizontal and vertical parity check code figure
N horizontal and vertical parity check code region units;
2*n horizontal and vertical parity check code region units are carried out random alignment and form a new point horizontal and vertical parity check code figure by a2, recombination;
A3, mapping establish mapping relations of the new point horizontal and vertical parity check code figure with putting horizontal and vertical parity check code coordinate value, will each put horizontal and vertical parity check code and dot matrix
Code coordinate value corresponds.
A4, rotation rotate the point horizontal and vertical parity check code region unit in new point horizontal and vertical parity check code figure so that each point horizontal and vertical parity check code region unit
± 90 ° of deflection is formed with adjacent point horizontal and vertical parity check code region unit.
Meanwhile the present invention also provides a kind of coding/decoding method based on horizontal and vertical parity check code, include the following steps:
A horizontal and vertical parity check code is converted into coordinate value by b1, scanning element horizontal and vertical parity check code figure;
B2, according to a horizontal and vertical parity check code coordinate value, determines point horizontal and vertical parity check code region unit, and a horizontal and vertical parity check code figure is divided into 2*n has continuously
The point horizontal and vertical parity check code region unit of coordinate value;
B3 is divided according to horizontal and vertical parity check code region unit and is determined point horizontal and vertical parity check code mapping relations, by the point horizontal and vertical parity check code in each horizontal and vertical parity check code region
Coordinate value is converted into continuous point horizontal and vertical parity check code relative position coordinates value according to a horizontal and vertical parity check code mapping relations.
B4 excludes invalid code, is encoded a horizontal and vertical parity check code is not met between the consecutive points horizontal and vertical parity check code region unit for forming ± 90 ° of deflection
The composition pattern of decoding rule is set as invalid code.
The present invention compared with the existing technology, has the following advantages and beneficial effect:
The present invention provides a kind of coding and decoding methods based on horizontal and vertical parity check code, breaks the linear corresponding pass of a horizontal and vertical parity check code figure
System, the point horizontal and vertical parity check code region unit randomly selected by splicing covers the point horizontal and vertical parity check code file of full page to be spliced to form, so as to increase
The third party illegally authorized usurps the complexity and difficulty of yard resource file and its matched content of copyright resource.And by appointing
X between the adjacent point horizontal and vertical parity check code block of meaning 2, the relative rotation angle composition figure that Y-coordinate value carries out ± 90 ° obtain to exclude scanning
Horizontal and vertical parity check code X, Y the invalid coordinates value taken, prevents the reading of erroneous point horizontal and vertical parity check code coordinate value.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other attached drawings according to these attached drawings.
Fig. 1 is the method flow diagram of a kind of horizontal and vertical parity check code coding of the present invention;
Fig. 2 is a kind of decoded method flow diagram of horizontal and vertical parity check code of the invention;
Fig. 3 is the schematic diagram of a kind of horizontal and vertical parity check code spread geometry of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, the specific solution of invention provides a kind of coding method based on horizontal and vertical parity check code, including following step
Suddenly:
A horizontal and vertical parity check code figure is cut into N number of horizontal and vertical parity check code region unit, and arbitrarily choose 2* by a1, cutting, selected point horizontal and vertical parity check code figure
N horizontal and vertical parity check code region units;
2*n horizontal and vertical parity check code region units are carried out random alignment and form a new point horizontal and vertical parity check code figure by a2, recombination;
A3, mapping establish mapping relations of the new point horizontal and vertical parity check code figure with putting horizontal and vertical parity check code coordinate value, will each put horizontal and vertical parity check code and dot matrix
Code coordinate value corresponds.
A4, rotation rotate the point horizontal and vertical parity check code region unit in new point horizontal and vertical parity check code figure so that each point horizontal and vertical parity check code region unit
± 90 ° of deflection is formed with adjacent point horizontal and vertical parity check code region unit.
As shown in Fig. 2, the present invention also provides a kind of coding/decoding method based on horizontal and vertical parity check code, include the following steps:
A horizontal and vertical parity check code is converted into coordinate value by b1, scanning element horizontal and vertical parity check code figure;
B2, according to a horizontal and vertical parity check code coordinate value, determines point horizontal and vertical parity check code region unit, and a horizontal and vertical parity check code figure is divided into 2*n has continuously
The point horizontal and vertical parity check code region unit of coordinate value;
B3 is divided according to horizontal and vertical parity check code region unit and is determined point horizontal and vertical parity check code mapping relations, by the point horizontal and vertical parity check code in each horizontal and vertical parity check code region
Coordinate value is converted into continuous point horizontal and vertical parity check code relative position coordinates value according to a horizontal and vertical parity check code mapping relations.
B4 excludes invalid code, is encoded a horizontal and vertical parity check code is not met between the consecutive points horizontal and vertical parity check code region unit for forming ± 90 ° of deflection
The composition pattern of decoding rule is set as invalid code.
Fig. 3 is a kind of schematic diagram of dot matrix graph code of the present invention, as shown in the figure, the dot chart of the present invention includes the first dot matrix
Code region unit 1, second point horizontal and vertical parity check code region unit 2, thirdly horizontal and vertical parity check code region unit 3 and the 4th horizontal and vertical parity check code region unit 4.Wherein the first dot matrix
Code region unit 1, second point horizontal and vertical parity check code region unit 2, thirdly horizontal and vertical parity check code region unit 3 and the 4th horizontal and vertical parity check code region unit 4 are from existing dot matrix
It is randomly selected in code region block graphics.In order to ensure that a stitching portion for horizontal and vertical parity check code area code block is being read out not generating error code, so
Second point horizontal and vertical parity check code region unit 2 is rotated by 90 °, and thirdly horizontal and vertical parity check code region unit 3 rotates 180 °, and the 4th horizontal and vertical parity check code region unit 4 rotates 270 °.
Positive and negative 90 ° of deflection is respectively formed between adjacent point horizontal and vertical parity check code region unit each in this way, is identified convenient for stitching portion.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.
Claims (4)
1. a kind of coding method based on horizontal and vertical parity check code, which is characterized in that include the following steps:
A horizontal and vertical parity check code figure is cut into N number of horizontal and vertical parity check code region unit, and arbitrarily choose 2*n by a1, cutting, selected point horizontal and vertical parity check code figure
Point horizontal and vertical parity check code region unit;
2*n horizontal and vertical parity check code region units are carried out random alignment and form a new point horizontal and vertical parity check code figure by a2, recombination;
Mapping relations of the new point horizontal and vertical parity check code figure with putting horizontal and vertical parity check code coordinate value are established in a3, mapping, will each be put horizontal and vertical parity check code and be sat with point horizontal and vertical parity check code
Scale value corresponds.
2. a kind of coding method based on horizontal and vertical parity check code according to claim 1, which is characterized in that it is further comprising the steps of,
A4, rotation rotate the point horizontal and vertical parity check code region unit in new point horizontal and vertical parity check code figure so that each point horizontal and vertical parity check code region unit with
Adjacent point horizontal and vertical parity check code region unit forms ± 90 ° of deflection.
3. a kind of coding/decoding method based on horizontal and vertical parity check code, which is characterized in that include the following steps:
A horizontal and vertical parity check code is converted into coordinate value by b1, scanning element horizontal and vertical parity check code figure;
B2 according to a horizontal and vertical parity check code coordinate value, determines point horizontal and vertical parity check code region unit, and a horizontal and vertical parity check code figure is divided into 2*n has continuous coordinate
The point horizontal and vertical parity check code region unit of value;
B3 is divided according to horizontal and vertical parity check code region unit and is determined point horizontal and vertical parity check code mapping relations, by the point horizontal and vertical parity check code coordinate in each horizontal and vertical parity check code region
Value is converted into continuous point horizontal and vertical parity check code relative position coordinates value according to a horizontal and vertical parity check code mapping relations.
4. a kind of coding/decoding method based on horizontal and vertical parity check code according to claim 3, which is characterized in that further comprising the steps of:
B4 excludes invalid code, will not meet a horizontal and vertical parity check code coding and decoding between the consecutive points horizontal and vertical parity check code region unit for forming ± 90 ° of deflection
The composition pattern of rule is set as invalid code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711327150.3A CN108154212A (en) | 2017-12-13 | 2017-12-13 | A kind of coding and decoding methods based on horizontal and vertical parity check code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711327150.3A CN108154212A (en) | 2017-12-13 | 2017-12-13 | A kind of coding and decoding methods based on horizontal and vertical parity check code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108154212A true CN108154212A (en) | 2018-06-12 |
Family
ID=62467078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711327150.3A Pending CN108154212A (en) | 2017-12-13 | 2017-12-13 | A kind of coding and decoding methods based on horizontal and vertical parity check code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108154212A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109344940A (en) * | 2018-08-21 | 2019-02-15 | 同济大学 | Three-dimensional dot matrix projection graphics encoding and decoding method for commodity packaging |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527257A (en) * | 2003-09-18 | 2004-09-08 | 上海交通大学 | Object-Oriented Self-Synchronization Watermark Detection Method in Multimedia Products |
CN1790420A (en) * | 2005-12-01 | 2006-06-21 | 北京北大方正电子有限公司 | Method and apparatus for embedding and detecting digital watermark in text file |
CN103606127A (en) * | 2013-12-03 | 2014-02-26 | 中国科学院大学 | Anti-copying image watermarking method based on optical microstructure |
CN107103577A (en) * | 2017-04-11 | 2017-08-29 | 中国科学院信息工程研究所 | Half fragile uniqueness image watermark insertion and extracting method for integrity protection |
-
2017
- 2017-12-13 CN CN201711327150.3A patent/CN108154212A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527257A (en) * | 2003-09-18 | 2004-09-08 | 上海交通大学 | Object-Oriented Self-Synchronization Watermark Detection Method in Multimedia Products |
CN1790420A (en) * | 2005-12-01 | 2006-06-21 | 北京北大方正电子有限公司 | Method and apparatus for embedding and detecting digital watermark in text file |
CN103606127A (en) * | 2013-12-03 | 2014-02-26 | 中国科学院大学 | Anti-copying image watermarking method based on optical microstructure |
CN107103577A (en) * | 2017-04-11 | 2017-08-29 | 中国科学院信息工程研究所 | Half fragile uniqueness image watermark insertion and extracting method for integrity protection |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109344940A (en) * | 2018-08-21 | 2019-02-15 | 同济大学 | Three-dimensional dot matrix projection graphics encoding and decoding method for commodity packaging |
CN109344940B (en) * | 2018-08-21 | 2021-04-30 | 同济大学 | Three-dimensional lattice projection graph coding and decoding method for commodity outer package |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3413240B1 (en) | Method of encoding and identifying 2d bitmap barcode | |
EP3413239B1 (en) | Methods of encoding and reading 2d bitmap barcode | |
CN108345925B (en) | Composite two-dimensional code generation, reading method and device | |
US10395022B2 (en) | Access control for a resource | |
CN109190340A (en) | A kind of webpage digital watermarking generates, identification, Method of printing and device | |
CN103164723B (en) | Coding method and equipment, coding/decoding method and equipment and printing process | |
KR101582218B1 (en) | Printed Material on which Two-dimensional Code is Displayed | |
JP2007041691A (en) | Code pattern image generating device and method, code pattern image reading device and method, and code pattern image medium | |
SK10072003A3 (en) | Data channel of the background on paper carrier or other carrier | |
US20100142756A1 (en) | Document security method | |
CN109190339A (en) | A kind of webpage digital watermarking image generates, identification, Method of printing and device | |
CN103761062A (en) | A method for displaying corresponding material in a two-dimensional code area in a mobile terminal screen | |
KR20240027072A (en) | Circular code, coding method, circular code identification method, circular code application method, stamp and electronic file | |
TW201137758A (en) | Encoding structure for dot pattern, its decoding method and electronic device | |
CN108154212A (en) | A kind of coding and decoding methods based on horizontal and vertical parity check code | |
CN107509080A (en) | A kind of coded image display methods, device and electronic equipment | |
WO2020237881A1 (en) | Method and apparatus for injecting anti-counterfeit information, computer device, and storage medium | |
CN105373754A (en) | Information interaction method and information interaction system | |
US8544741B2 (en) | Data block offset encoding method for coordinates | |
JP4687324B2 (en) | Information processing apparatus and association method | |
CN110675304A (en) | Picture watermark encoding method | |
JP4844351B2 (en) | Image generating apparatus and recording medium | |
JP2009246425A (en) | Image output apparatus, method for controlling image output apparatus, its program and storage medium | |
JP2009118293A (en) | Digital watermark pattern display method and information holder | |
Zhou et al. | An information real-time synchronisation system across different media based on position encoding for mobile computing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180612 |
|
RJ01 | Rejection of invention patent application after publication |