CN108090481A - Matts frame code and codec - Google Patents

Matts frame code and codec Download PDF

Info

Publication number
CN108090481A
CN108090481A CN201611035974.9A CN201611035974A CN108090481A CN 108090481 A CN108090481 A CN 108090481A CN 201611035974 A CN201611035974 A CN 201611035974A CN 108090481 A CN108090481 A CN 108090481A
Authority
CN
China
Prior art keywords
matts
rule
frame
code
binary
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
Application number
CN201611035974.9A
Other languages
Chinese (zh)
Inventor
王东锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hirun Hong De (beijing) Technology Co Ltd
Original Assignee
Hirun Hong De (beijing) Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hirun Hong De (beijing) Technology Co Ltd filed Critical Hirun Hong De (beijing) Technology Co Ltd
Priority to CN201611035974.9A priority Critical patent/CN108090481A/en
Publication of CN108090481A publication Critical patent/CN108090481A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/001Model-based coding, e.g. wire frame
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention discloses a kind of matts frame code encoding and decoding techniques and codec for the teaching of mobile Internet hard-tipped pen calligraphical works, based on a kind of matts particular configuration and encoding and decoding technique with frame code, the Chinese character and font information that are implied in energy efficient identification matts image.Compared to also can implicit information in the picture planar bar code technology, the present invention realistically maintains traditional hard-tipped pen calligraphical works and imparts knowledge to students indispensable matts form.Compared to None- identified font information and the OCR optical character recognition techniques not high to arbitrarily writing in one's own hand discrimination, the present invention provides the Chinese character of the efficiently and accurately based on matts and the identifications of font, are the basic technologies that internet is moved towards in traditional hard-tipped pen calligraphical works teaching.

Description

Matts frame code and codec
Technical field
It is more particularly to a kind of to imply Chinese character in matts frame the present invention relates to image coding and field of image recognition With coding, coding/decoding method and the device of the matts image of font information, for internet hard-tipped pen calligraphical works teaching field.
Background technology
Traditional hard-tipped pen calligraphical works based on matts writing is imparted knowledge to students in the practice process of internet is moved towards under line, is run into Many problems, wherein just there is the problem of automatic identification word and font.Such as student writes a word in matts, how certainly Dynamic this word of evaluating is write fine or not, must identify it is which word, what font first, then could evaluate this according to font Word.This problem solve must well, with regard to that can derive the hard-tipped pen calligraphical works teaching method of suitable internet.
We attempted to identify the word in matts image with OCR, but OCR is not to limiting the discrimination of the handwritten form of people It is very low, and None- identified font, therefore OCR is applied in the online teaching practice of hard-tipped pen calligraphical works and is limited.
We also attempted to simulate matts by student writing with the mode of the embedded matts in Quick Response Code center, then identified Word and font information in Quick Response Code, even but the highest H grades of Quick Response Code of serious forgiveness at most also only allows 30% two dimension Code area is covered by the matts in center, and 70% area of such a matts is all two-dimension code pattern, and matts is pressed against Very inconspicuous degree, and since the limitation of the Quick Response Code of square can only make single matts, it is impossible to it makes more The matts of row multiple row does not meet matts hard-tipped pen calligraphical works teaching request.
The content of the invention
In order to overcome the above-mentioned deficiencies of the prior art, the characteristics of present invention be unable to do without matts for hard-tipped pen calligraphical works teaching, A kind of encoding and decoding technique of the implicit information on matts frame is provided, matts word can be identified and identify font, also It can identify the additional informations such as the affiliated course of matts operation, be provided for the teaching of innovation internet hard-tipped pen calligraphical works and management method The technological means on basis.
The present invention is made of the technical solution and corresponding device of matts frame code, and technical solution is by encoding scheme, solution Code scheme composition, device are made of encoder, decoder.Details are as follows for technical solution.
1. encoding scheme
Encoding scheme(61)By frame code matts configuration(601), coding rule(602), look into error-correction rule(603), write code rule Then(604), coding flow(611)5 parts form.As shown in Figure 6.
A) frame code matts configuration(601):By matts(6011)With size rectangular-ambulatory-plane finger URL(6012)(6013) It forms, the coding and decoding of frame code is all based on this special matts configuration.
I. matts(6011)It is exactly by frame(103)With(104)The common matts to fence up can be single field Word lattice such as Fig. 1 or multiple lines and multiple rows matts such as Fig. 2, Fig. 3, Fig. 4, the Fig. 5 being combined by single matts.
Ii. big rectangular-ambulatory-plane finger URL(101)Black and white side width ratio 1:1:3:1:1, small rectangular-ambulatory-plane finger URL(102)It is black White edge width ratio 1:1:1:1:1, as shown in Figure 1.
Iii. rectangular-ambulatory-plane finger URL is placed in the outer rim of matts, at least ensures that 4 exterior angles of matts respectively have 1 It is a, it is usually 3 big rectangular-ambulatory-plane finger URL and 1 small rectangular-ambulatory-plane finger URL, as shown in Figure 1, Figure 2, shown in Fig. 3, Fig. 4, Fig. 5.
Iv. it to multiple lines and multiple rows matts, can suitably increase rectangular-ambulatory-plane finger URL quantity to increase positioning accuracy, be usually Increase by 1 small rectangular-ambulatory-plane finger URL every 2-3 matts, as shown in Fig. 2, Fig. 3, Fig. 4, Fig. 5.
B) coding rule(602):By Chinese character coding rule(6021), font coding rule(6022), other information coding Rule(6023)With binary encoding rule(6024)4 parts form, and the information such as Chinese character, font are binary system by coding rule processing Numeric string.
I. Chinese character coding rule(6021):The codings such as common Unicode, UTF, GBK rule may be employed in encoding of chinese characters Then, general 16 binary systems are long.Such as the Unicode of " no " word is encoded to (0100111000001101) of 162
Ii. font coding rule(6022):Common hand-written script has pattern, row, grass, person in servitude, so 2 binary systems of font Expression, font custom coding rule, such as (00)2Represent regular script, (01)2Identify running hand, (10)2Represent rapid style of writing, (11)2Represent lishu.
Iii. other information coding rule(6023):In hard-tipped pen calligraphical works teaching, other information generally refers to course letter Breath, currently learns which subject the Chinese character write belongs to control, is decided whether according to used business model other Information.Curriculum information is generally the course number of positive integer expression, and 10 binary systems can represent 1024 subjects, to hard-tipped pen Calligraphy teaching is enough.
Iv. binary encoding rule(6024):Refer to several binary digits of foregoing several coding rule generations by what It is linked in sequence into a binary digit string.Such as the binary encoding of " no " word of foregoing " regular script " can be (010011100000110100)2, wherein first 16 Chinese characters for Unicode codings, latter 2 are font.
C) error-correction rule is looked into(603):By debugging rule(6031), repeat place rule(6032)And error-correction rule (6033)Composition.The matts frame code being printed onto on paper Jie can be defaced or covers part frame code due to strong reflective, Decoding difficulties are caused, mechanism for correcting errors is looked into and is just responsible for debugging and error correction in the case where frame code image is stained or is reflective, improve solution Code success rate.
I. debugging rule(6031):In each binary digit during coding(In order to describe convenient referred to as one's own department or unit)After be inserted into one A binary debugging position, value are that this place value negates, i.e., one's own department or unit is 1 if 0, then its debugging position;One's own department or unit is looked into if 1, then its It misplaces as 0.In this way, in the case of being stained in decoding in the position, one's own department or unit and debugging position are no longer on the contrary, but be all 0 or same For 1, being known that this frame code is stained in the position cannot use.
Ii. repeat to place rule(6032):During coding, according to debugging rule(6031)It generates and inserts debugging position Wall scroll frame code after, by this wall scroll frame code on all or part of frame of matts repeat place, can be in part frame Increase decoded success rate in the case of being stained, this is regular to repeat to place(6032), as shown in Figure 1, Figure 2, shown in Figure 11.
Iii. error-correction rule(6033):It is regular from repetition placement is followed during decoding(6032)Matts these frames Same position read binary bit information simultaneously, when different frames are when the readings of this position is inconsistent, according to certain rule Then determine the value of the position, this rule is exactly error-correction rule(6033).For example, in an error-correction rule(6033)Example In, rule is:During decoding, arithmetic average of each frame of frame code matts in the binary value of same position is calculated, according to Average value determines the binary system value of the position.If each frame is not stained in same position or these frames are in phase It is all stained with position, then frame code is its arithmetic average 0 or 1 in the position readings.When part is stained, each frame is in the position The arithmetic average for the readings put is between (0,1).Provide the average value>Frame code, should in the position binary system value 1 when 0.5 Average value<The position value 0 when 0.5, when average value=0.5, which thinks that the position is stained, to read.
D) code rule is write(604):It determines the side of above-mentioned binary code string such as how image format write-in matts Frame.By color rule(6041), bit length rule(6042), location rule(6043), position sequence rule(6044)Composition, such as Fig. 6 institutes Show.
I. color rule(6041):I.e. two-symbol 0 is write with what color, and 1 is write with what color.It is generally available field word Lattice background colour writes the image of binary bit 0, and the image of binary bit 1 is write with matts frame color.Vice versa.
Ii. bit length rule(6042):I.e. each binary bit image write how long.It is generally available each frame and subtracts 1 big return Remaining frame length after font finger URL width, then divided by binary system frame code bit number business, as each two-symbol figure As length.Can also it is self-defined it is other calculate the rule of each binary bit image lengths, but it is noted that concede rectangular-ambulatory-plane finger URL Shared region.
Iii. position sequence rule(6044):Binary bit is write into a line frame code image by what sequence(103)(104), It is first to write a high position for binary code string or first write low from left to right such as a horizontal positioned frame code image Position.
Iv. location rule(6043):Frame code image is pasted i.e. on which position of which frame(103)(104). Generally it could dictate that first position after region shared by rectangular-ambulatory-plane finger URL is conceded on each frame of error-correction rule requirement Start to write code.
E) flow is encoded(611):It is exactly to perform foregoing each rule in order, as shown in Figure 7.It is compiled first according to Chinese character Code rule generates the coding [step 701] of specific word, further according to the coding [step of font needed for the generation of font coding rule 702], it is then raw according to binary encoding rule further according to the coding [step 703] of other information coding rule generation other information Integral coding [step 704] inserts the binary digit string [step 705] of debugging position further according to debugging rule generation, then Binary digit string is drawn as frame code line section image [step 706] according to code rule is write, while by matts configuration(601)It draws Matts [step 707] with rectangular-ambulatory-plane finger URL, it is finally regular according to repeating to place(6032)Frame code line section image is covered On the corresponding frame for the matts with rectangular-ambulatory-plane finger URL that Gai Yi is finished.[step 708].
2. decoding scheme
Decoding scheme(62)By frame code matts configuration(601), coding rule(602), look into error-correction rule(603), write code rule Then(604), decoding process(621)5 parts form.As shown in Figure 6.Decoding scheme and encoding scheme are all made of 5 parts, In preceding 4 parts are identical repeats no more, differ only in 5 parts-encoding scheme coding flow, decoding scheme decodes Flow only describes decoding scheme herein(62)In exclusive decoding process(621).
A) decoding process(621):It puts it briefly, it by matts frame code image decoding is hidden Chinese character, word to be exactly The information such as body, as shown in Figure 8.Scan or take pictures first frame code matts [step 801], then by matts image binaryzation [step 802], then identify that rectangular-ambulatory-plane finger URL determines matts region [step 803], then by matts regional correction into mark Then multiple frames of matts rectangle are parsed into multiple binary numbers by writing code rule by quasi- matts rectangle [step 804] Word string [step 805], then the dislocation of each binary digit string is found out by debugging rule, it, will be multiple by error-correction rule corrected transposition The binary digit string that error message may be included is reduced to 1 correct binary digit string [step 806], finally by coding The binary digit string is parsed by Chinese character, font and other information [step 807] by rule.
Compared with OCR is identified, the present invention can efficient identification do not limit the handwriting of people and identify font and other Additional information also retains matts form for practising handwriting.Compared with the Quick Response Code of embedded matts, the present invention not only remains Matts form most true to nature, can also design multiple lines and multiple rows matts, more true to nature than Quick Response Code matts flexible.Student uses side The limitation that frame code matts is practised handwriting is must to practice the word specified in matts.
Description of the drawings
Fig. 1 is 1 row, 1 row matts frame code configuration and rectangular-ambulatory-plane finger URL legend.Wherein(101)It is big rectangular-ambulatory-plane positioning Symbol,(102)It is small rectangular-ambulatory-plane finger URL,(103)It is the frame code image being covered in horizontal pane,(104)It is to be covered in vertically Frame code image on frame.
Fig. 2 is 2 row, 3 row matts frame code example.
Fig. 3 is 2 row, 6 row matts frame code example.
Fig. 4 is 3 row, 6 row matts frame code example.
Fig. 5 is m row n row matts frame code examples.
Fig. 6 is matts frame code coding and decoding scheme.
Fig. 7 encodes flow for matts frame code.
Fig. 8 is matts frame code decoding process.
Fig. 9 is matts frame code coder structure.
Figure 10 is matts frame code decoder architecture.
Figure 11 is 2 row, the 3 row matts frame code configuration example with pinyin lattice for being suitble to primary grades.Wherein(1101) It is the pinyin lattice for writing phonetic,(1102)It is matts frame code.
Specific embodiment
As shown in Figure 9 and Figure 10,2 devices to be made when matts frame code scheme is implemented:Frame code coder(901) And decoder(1001)Two components, to be conveniently used on line in hard-tipped pen calligraphical works tutoring system.Details are as follows for this 2 devices.
1. encoder:
Encoder(901)It is a part for calligraphic course and teaching material making instrument, the coding flow of Fig. 7 is performed, for according to volume Code scheme(61)Produce and generate frame code matts.It is operated in PC machine, can be the program assembly of independent operating, can also A component of hard-tipped pen calligraphical works tutoring system on line is integrated into, is used when making hard-tipped pen calligraphical works course and teaching material for teacher.
Encoder(901)Structure is as shown in figure 9, by m row n row matts makers(902)With frame code generator(903) Composition is responsible for regular according to repeating to place(6032)Frame code line section image is covered in the m rows n row generated in memory On matts image, and the image is saved in file.
M row n row matts makers(902)For pressing frame code matts configuration in memory(601)Requirement will be single A matts and single rectangular-ambulatory-plane finger URL are assembled into m row n row matts, it is by single rectangular-ambulatory-plane finger URL maker(9021) With single matts maker(9022)Composition.
Single rectangular-ambulatory-plane finger URL maker(9022)It is drawn for size in memory on demand and color single Big rectangular-ambulatory-plane finger URL and small rectangular-ambulatory-plane finger URL.
Single matts maker(9021)Single matts figure is drawn for size in memory on demand and color Shape.
Frame code generator(903)For according to coding rule(602)With debugging rule(6031)Generate Chinese character, font and The binary digit string of other information, and it is regular according to code is write(604)The frame code line chart of the numeric string is drawn in memory Picture.
2. decoder:
Decoder(1001)It is a part for learning calligraphy and calligraphy power tool, decoding process is performed, for being shone from matts Frame code information is parsed in picture.It can as hard-tipped pen calligraphical works App a component working in mobile phone terminal, can also make For hard-tipped pen calligraphical works tutoring system on line a component working in server end, sweep that word views and emulates calligraphy video frequency or scanning is carried for student Matts operation is handed over to use.
Decoder architecture is as shown in Figure 10, by matts image pre-processor(1002), back-shaped symbol locator(1003), field Word lattice adjuster(1004), reading/decoder(1005)Composition.
Matts image pre-processor(1002)Be responsible for scanning mobile phone, the matts image taken pictures does binaryzation and Noise reduction process.
Back-shaped symbol locator(1003)Rectangular-ambulatory-plane in binary image is positioned according to the ratio characteristic of the back-shaped symbol of size to position The coordinate of symbol cuts out the frame code matts image for having distortion using the line segment that rectangular-ambulatory-plane finger URL is linked to be as border, with true Determine matts region.
Matts adjuster(1004)It is responsible for the matts region for having distortion that back-shaped symbol locator determines passing through geometry Conversion is corrected to standard matts shape.
Reading/decoder(1005)It is responsible for from matts adjuster(1004)In the standard matts image of output, according to writing Code rule reads binary system frame code with error-correction rule is looked into, and Chinese character, font and other information are translated as further according to coding rule.
3. in one embodiment of matts frame code, debugging, mechanism for correcting errors(603)It is described as follows:
Increase an opposite debugging position after coding stage, original each binary bit, while frame code line section image is existed It is repeated once on each frame of matts.Such as the original binary segment of some frame code is (0100111000001101)2Totally 16, become after adding debugging position (01100101101010010101010110100110)2Totally 62, wherein the binary bit with underscore is debugging position, it is it Previous adjacent bit and original binary bit(In order to describe conveniently, which is referred to as " one's own department or unit ")Negate, so when When some debugging position is identical with its one's own department or unit, represent that the position due to being stained error, should abandon.For the field word that specification is m rows n row Lattice have (m+1) n+m (n+1) a frame, if each frame puts 1 identical frame code image, the frame code is in m rows n It is secondary that (m+1) n+m (n+1) is repeated on the matts of row.
In decoding stage, one's own department or unit of i-th bit and debugging position on each frame are read simultaneously when being decoded to i-th bit, according to The similarities and differences of one's own department or unit and debugging position readings determine the value of this.If some frame is in the readings at one's own department or unit of i-th bit and debugging position It is identical, then it is assumed that the frame is stained in the position, should abandon readings of the frame in this.If some frame is in the sheet of i-th bit The readings of position and debugging position is different, then it is assumed that the frame may be correct in the readings of this, and final result is with each frame i-th The most different value of position occurrence number(01 or 10)For frame code i-th bit solution readings.As long as in this way, there is the i-th of 1 frame Position is correctly understood, and the i-th bit of frame code considerably increases with regard to that can be correctly decoded and is decoded into power.
4. the embodiment of 1 row, a 1 row frame code matts:
(as shown in Figure 1) in this embodiment in coding stage, is determined using unicode as the coding rule of Chinese character, each Chinese character With 16 binary unicode representations, font is represented with 2 binary digits, such as with " regular script "(2 binary bits are (00)2)" no " word(16 binary bits are (0100111000001101)2)Exemplified by, corresponding to binary bit is (010011100000110100)2Totally 18, using above-mentioned debugging, mechanism for correcting errors, become after adding debugging position (011001011010100101010101101001100101)2Totally 36, wherein the binary bit with underscore is debugging position.Really The length of order matts framing mask and back-shaped finger URL size.The general single a length of 15mm of matts frame.Rectangular-ambulatory-plane Finger URL try one's best it is small to reduce influence to matts appearance, but can not be too small, otherwise discrimination declines.By surveying, greatly The rectangular-ambulatory-plane finger URL length of side is not less than 1.5mm, and the small rectangular-ambulatory-plane finger URL length of side is not less than 1mm.By matts and rectangular-ambulatory-plane Finger URL is finished.The matts length of side is subtracted after the big rectangular-ambulatory-plane finger URL length of side again divided by added the binary code of debugging position Digit, draw each two-symbol line segment length L.Then the binary code for adding debugging position is drawn in phantom into For a line frame code line section image, binary zero is drawn with white, and 1 is drawn with black, and each two-symbol line segment length is L.Most This edge frame code line section image is covered on each edge frame for the matts finished afterwards.
Implement 5. 2 rows 3 arrange the frame code matts with pinyin lattice:
In this embodiment, as shown in figure 11, matts by top pinyin lattice(1101)With the frame code matts of lower part (1102)Composition, frame code line section are distributed on 17 frames of 2 row, 3 row matts to reach maximum error correction rate.Through actual production Product examine is surveyed, and recognition effect is preferable, even illumination is very dark under night light, as long as illumination is more uniform, identification is also very accurate.

Claims (10)

1. a kind of matts frame code coding and decoding scheme, it is characterised in that:
Encoding scheme(61)By frame code matts configuration(601), coding rule(602), look into error-correction rule(603), write code rule Then(604), coding flow(611)5 parts form;
Decoding scheme(62)By frame code matts configuration(601), coding rule(602), look into error-correction rule(603), write code rule Then(604), decoding process(621)5 parts form;
Decoding scheme and encoding scheme are all made of 5 parts, and difference lies in encoding scheme coding flow, decoding scheme solutions Code stream journey, in addition other 4 parts are all identical.
2. frame code matts configuration described in claim 1(601), it is characterised in that:
Frame code matts configuration(601)By matts(6011), big rectangular-ambulatory-plane finger URL(6012)(101)Determine with small rectangular-ambulatory-plane Position symbol(6013)(102)Composition;
Matts(6011)It is exactly by frame(103)The common matts to fence up, can be single matts or by The multiple lines and multiple rows matts that single matts is combined into;
Big rectangular-ambulatory-plane finger URL(101)Black and white side width ratio be 1:1:3:1:1, small rectangular-ambulatory-plane finger URL(102)Black and white Side width ratio is 1:1:1:1:1;
Size rectangular-ambulatory-plane finger URL is distributed in the outer rim of matts, and 1 is at least respectively placed on 4 exterior angles of matts and is returned Font finger URL is usually 3 exterior angle amplification rectangular-ambulatory-plane finger URLs, and small rectangular-ambulatory-plane finger URL is put at 1 exterior angle;
To multiple lines and multiple rows matts, it can suitably increase rectangular-ambulatory-plane finger URL quantity to increase positioning accuracy, usually every 2-3 Matts increases by 1 small rectangular-ambulatory-plane finger URL.
3. matts frame code coding rule described in claim 1(602), it is characterised in that:
Coding rule(602)By Chinese character coding rule(6021), font coding rule(6022), other information coding rule (6023)With binary encoding rule(6024)4 parts form;
Chinese character coding rule(6021):Using coding rules such as Unicode, UTF, GBK, general 16 binary systems are long;
Font coding rule(6022):Custom font coding rule, can show common hand-written script such as pattern, row, grass, person in servitude is Can, minimum 2 binary representations, such as (00)2Represent regular script, (01)2Identify running hand, (10)2Represent rapid style of writing, (11)2It represents to be subordinate to Book;
Other information coding rule(6023):In hard-tipped pen calligraphical works teaching, other information generally refers to curriculum information, to control Current to learn which subject the Chinese character write belongs to, curriculum information is generally the course number of positive integer expression, and 10 binary systems are just It can represent 1024 subjects, it is enough to hard-tipped pen calligraphical works teaching;
Binary encoding rule(6024):Refer to that several binary digits of foregoing several coding rule generations connect in what order Into a binary digit string, order is self-defined.
4. matts frame code described in claim 1 looks into error-correction rule(603), it is characterised in that:
Matts frame code looks into error-correction rule(603)By debugging rule(6031), repeat place rule(6032)And error-correction rule (6033)Composition;
Debugging rule(6031):In each binary digit during coding(In order to describe convenient referred to as one's own department or unit)A binary system is inserted into afterwards Debugging position, value is that this place value negates, i.e. one's own department or unit is if 0, then its debugging position is 1;One's own department or unit is 0 if 1, then its debugging position, In this way, in the case of being stained in decoding in the position, one's own department or unit and debugging position no longer on the contrary, but be all 0 or be all 1, just know Road this frame code is stained in the position and cannot use;
It repeats to place rule(6032):During coding, according to debugging rule(6031)Generate the single edge for inserting debugging position After frame code, this wall scroll frame code is repeated to place on all or part of frame of matts, it can be in the feelings that part frame is stained Increase decoded success rate under condition, this is regular to repeat to place(6032);
Error-correction rule(6033):It is regular from repetition placement is followed during decoding(6032)Matts these frames same position Binary bit information is read simultaneously, when different frames are when the readings of this position is inconsistent, which is determined according to certain rule The value put, this rule is exactly error-correction rule(6033).
5. the error-correction rule described in claim 4(6033)An example, it is characterised in that:
One's own department or unit of i-th bit and debugging position on each frame are read simultaneously when being decoded to i-th bit, according to one's own department or unit and debugging position readings The similarities and differences determine the value of this;
If some frame is identical with the readings of debugging position at one's own department or unit of i-th bit, then it is assumed that the frame is stained in the position, should be abandoned The frame is in the readings of this;
If readings of some frame at one's own department or unit of i-th bit and debugging position is different, then it is assumed that the frame may in the readings of this Correctly, final result is with different value of each frame in i-th bit occurrence number at most(01 or 10)For frame code i-th bit solution Readings.
6. matts frame code described in claim 1 writes code rule(604), it is characterised in that:
Write code rule(604)It determines to press coding rule by above-mentioned(602)With debugging rule(6031)The binary digit string of generation As how image format writes the frame of matts;
Write code rule(604)By color rule(6041), bit length rule(6042), location rule(6043), position sequence rule (6044)Composition;
Color rule(6041):I.e. two-symbol 0 is write with what color, and 1 is write with what color, is generally available matts background colour The image of binary bit 0 is write, the image of binary bit 1 is write with matts frame color, vice versa;
Bit length rule(6042):I.e. each binary bit image write how long, be generally available each frame and subtract the positioning of 1 big rectangular-ambulatory-plane Accord with the remaining frame length after width, then divided by binary system frame code bit number business, as each two-symbol image length, Can be with the rule of self-defined other each binary bit image lengths of calculating, but region shared by rectangular-ambulatory-plane finger URL need to be avoided;
Position sequence rule(6044):Binary bit is write into a line frame code image by what sequence(103)(104), such as to one The horizontal positioned frame code image of item(103)(104)For, it is a high position for first writing binary word string from left to right or first writes Low level;
Location rule(6043):Frame code image is pasted i.e. on which position of which frame(103)(104), can generally advise It is scheduled on repetition and places rule(6032)It is required that frame on concede first position behind region shared by rectangular-ambulatory-plane finger URL and open Beginning writes code.
7. coding flow described in claim 1, which is characterized in that perform preceding claims 1,2,3,4,5 in order and advised Fixed each rule:
[step 701] is first according to Chinese character coding rule(6021)Generate the coding of specific word;
[step 702] is further according to font coding rule(6022)The coding of font needed for generation;
[step 703] is further according to other information coding rule(6023)Generate the coding of other information;
[step 704] and then according to binary encoding rule(6024)Generate binary encoding;
[step 705] is further according to debugging rule(6031)Generation inserts the binary digit string of debugging position;
[step 706] is regular further according to code is write(604)Binary digit string is drawn as frame code line section image;
[step 707] presses the configuration of claim 1 defined(601)Draw the matts with rectangular-ambulatory-plane finger URL;
[step 708] is finally regular according to repeating to place(6032)Frame code line section image is covered in the band Back Word finished On the corresponding frame of the matts of shape finger URL.
8. decoding process described in claim 1, it is characterised in that:
[step 801] scans or takes pictures first frame code matts;
[step 802] and then by matts image binaryzation;
[step 803] identifies that rectangular-ambulatory-plane finger URL determines matts region again;
[step 804] then by matts regional correction into standard matts rectangle;
It is [step 805] and then regular by code is write(604)Multiple frames of matts rectangle are parsed into multiple binary codes String;
[step 806] is again by debugging rule(6031)The dislocation of each binary code string is found out, by error-correction rule(6033)It corrects Multiple binary code strings that may include error message are reduced to 1 correct code string by dislocation;
The binary code string is finally parsed by Chinese character, font and other information by [step 807] by coding rule.
9. a kind of matts frame code coder based on claim 1(901), it is characterised in that:
Encoder(901)By m row n row matts makers(902)With frame code generator(903)Composition is responsible for according to repetition Place rule(6032)Frame code line section image is covered on the m row n row matts images generated in memory, and will The image is saved in file;
M row n row matts makers(902)For pressing frame code matts configuration in memory(601)Requirement by single field Word lattice and single rectangular-ambulatory-plane finger URL are assembled into m row n row matts, it is by single rectangular-ambulatory-plane finger URL maker(9021)And list A matts maker(9022)Composition;
Single rectangular-ambulatory-plane finger URL maker(9022)Single big time is drawn for size in memory on demand and color Font finger URL and small rectangular-ambulatory-plane finger URL;
Single matts maker(9021)Single matts figure is drawn for size in memory on demand and color;
Frame code generator(903)For according to coding rule(602)With debugging rule(6031)Generate Chinese character, font and other The binary digit string of information, and it is regular according to code is write(604)The frame code line section image of the numeric string is drawn in memory.
10. a kind of matts frame code decoder based on claim 1(1001), it is characterised in that:
Decoder is by frame code matts image pre-processor(1002), back-shaped symbol locator(1003), frame code matts school Positive device(1004), frame code reading/decoder(1005)Composition, be responsible for from frame code matts image analysis go out Chinese character, font and Other information;
Frame code matts image pre-processor(1002)The frame code matts image for being responsible for scanning mobile phone, taking pictures is done Binaryzation and noise reduction process;
Back-shaped symbol locator(1003)Rectangular-ambulatory-plane finger URL in binary image is positioned according to the ratio characteristic of the back-shaped symbol of size Coordinate cuts out the frame code matts image for having distortion using the line segment that rectangular-ambulatory-plane finger URL is linked to be as border, to determine field Word lattice region;
Frame code matts adjuster(1004)It is responsible for having the matts region of distortion by several by what back-shaped symbol locator determined What conversion is corrected to standard matts shape;
Frame code reading/decoder(1005)It is responsible for from matts adjuster(1004)In the standard matts image of output, according to It writes code rule and looks into error-correction rule and read binary system frame code, Chinese character, font and other information are translated as further according to coding rule.
CN201611035974.9A 2016-11-23 2016-11-23 Matts frame code and codec Pending CN108090481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611035974.9A CN108090481A (en) 2016-11-23 2016-11-23 Matts frame code and codec

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611035974.9A CN108090481A (en) 2016-11-23 2016-11-23 Matts frame code and codec

Publications (1)

Publication Number Publication Date
CN108090481A true CN108090481A (en) 2018-05-29

Family

ID=62169843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611035974.9A Pending CN108090481A (en) 2016-11-23 2016-11-23 Matts frame code and codec

Country Status (1)

Country Link
CN (1) CN108090481A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109540A (en) * 2019-04-23 2019-08-09 刘简 Write correcting system and its working method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109540A (en) * 2019-04-23 2019-08-09 刘简 Write correcting system and its working method

Similar Documents

Publication Publication Date Title
CN109190722B (en) Font style migration transformation method based on Manchu character picture
CN100511271C (en) Two-dimensional decoding method
CN110647956B (en) Invoice information extraction method combining two-dimension code recognition
CN101477638B (en) Two-dimensional code, printed publication applying the two-dimensional code and decoding process
KR101376863B1 (en) Grammatical parsing of document visual structures
US5852684A (en) Multimedia rendering marker and method
CN110956138B (en) Auxiliary learning method based on home education equipment and home education equipment
Yousfi et al. ALIF: A dataset for Arabic embedded text recognition in TV broadcast
CA2171773A1 (en) Automatic Training of Character Templates Using a Transcription and a Two-Dimensional Image Source Model
JPH06282679A (en) Accuracy securing method for data reproduced electronically from original data, electronically reproducing method for document generated by computer and printed, and offering method for electronically reproduced product of printed document
CN111310447A (en) Grammar error correction method, grammar error correction device, electronic equipment and storage medium
CN106599887B (en) Paper answer region recognition and examination question read and appraise method, system
CN110796065A (en) Calligraphy practicing scoring method and system based on image recognition and computer readable medium
CN110610175A (en) OCR data mislabeling cleaning method
CN107203508A (en) Braille document generating method and system
CN112529989A (en) Image reconstruction method based on bill template
CN111985470A (en) Ship board correction and identification method in natural scene
CN108090481A (en) Matts frame code and codec
CN114419174A (en) On-line handwritten text synthesis method, device and storage medium
CN101546387B (en) Storage method of multimedia material index information and printed publication thereof
CN115393875B (en) MobileNet V3-based staff identification and numbered musical notation conversion method and system
CN111985397B (en) Pupil oral calculation subject text picture content identification method based on deep learning
CN115457555A (en) Automatic generation method and system of universal scene character recognition data
CN115294573A (en) Job correction method, device, equipment and medium
CN108985175B (en) Handwritten Chinese sentence set recognition method based on standard peripheral outline and deep learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180529