Invention content
The object of the present invention is to provide a kind of position encoded coding/decoding methods and device, to solve in the prior art to informationWhen being read out and decoding, it is susceptible to None- identified or identification is inaccurate, the problem of influencing to encode the output of corresponding data.
To achieve the above object, on the one hand, the present invention provides a kind of position encoded coding/decoding method, the method packetsIt includes:
First terminal obtains position encoded image on position encoded substrate;
Extract the position encoded characteristic information;
It is the position encoded imparting numerical characteristic value according to the characteristic information, it is special obtains the position encoded numberLevy sequence;
The position encoded location information is determined according to the numerical characteristic sequence;
The position encoded corresponding data are decoded according to the positional information, are corresponded to obtain the dataVisualization file.
Further, it is described it is position encoded specifically include dot code, the extraction position encoded characteristic informationIt specifically includes:
Extract the angle information that adjacent dot code line is formed with reference axis.
Further, the method further includes:
The multiple code units being made of dot are obtained, the code unit includes multigroup adjacent dot code lineThe position encoded unit that midpoint line limits.
Further, the method further includes:
Detect the rotation angle of the code unit;
Correction angle is generated according to the rotation angle;
Processing is corrected to the code unit according to the correction angle.
On the other hand, the present invention provides a kind of position encoded decoding apparatus, described device includes:
First acquisition unit, for obtaining position encoded image on position encoded substrate;
Extraction unit, for extracting the position encoded characteristic information;
Assignment unit obtains institute's rheme for being the position encoded imparting numerical characteristic value according to the characteristic informationSet the numerical characteristic sequence of coding;
Second acquisition unit, for according to location information position encoded described in the numerical characteristic retrieval;
Decoding unit, for being decoded according to the positional information to the position encoded corresponding data, toTo the corresponding visualization file of the data.
Further, it is described it is position encoded specifically include dot code, the extraction unit is specifically used for:
Extract the angle information that adjacent dot code line is formed with reference axis.
Further, described device further includes third acquiring unit, for obtaining the multiple code units being made of dot,The code unit includes the position encoded unit that the midpoint line of multigroup adjacent dot code line limits.
Further, described device further includes correction unit, the rotation angle for detecting the code unit;
Correction angle is generated according to the rotation angle;
Processing is corrected to the code unit according to the correction angle.
Position encoded coding/decoding method and device provided in an embodiment of the present invention, obtain on position encoded substratePosition encoded image;Extract position encoded characteristic information;It is position encoded imparting numerical characteristic value according to characteristic information, obtainsPosition encoded numerical characteristic sequence;Position encoded location information is determined according to numerical characteristic sequence;According to location information pairPosition encoded corresponding data are decoded, to obtain the corresponding visualization file of data.Position provided in an embodiment of the present inventionThe coding/decoding method and device of coding are set, decoding accuracy rate is high, is easy to implement the output of coding corresponding data.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make intoIt is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementationExample.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative effortsAll other embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of position encoded coding/decoding method provided in an embodiment of the present invention.As described in Figure, the present embodiment carriesThe method of confession includes:
Step 101, first terminal obtains position encoded image on position encoded substrate.
Wherein, first terminal can be specifically to have the identification equipment of Image Acquisition and processing function, such as digital pen.NumberThe pen tip of code pen moves on position encoded substrate, the image capture module tracking acquisition written handwriting warp in digital penProcessor is sent to after the position encoded image crossed to be handled.
Substrate specifically includes writing paper, blank, electronic display etc..In substrate have it is position encoded, first terminal is in baseInput data while the reading position coding of ground, is decoded input data by reading position coding.
First terminal can also be the terminal device with processing function, for example, desktop computer, laptop, tabletComputer, smart mobile phone etc..In the present embodiment, if first terminal does not have for computer etc. directly tracks acquisition position in substrateWhen the equipment of the function of coded image, need to obtain position encoded image by identification equipments such as digital pens, and be converted to numberSignal is handled for computer.
Step 102, the position encoded characteristic information is extracted.
Optionally, position encoded to specifically include dot code, it extracts position encoded characteristic information and specifically includes:Extract phaseThe angle information that adjacent dot code line is formed with reference axis.
In a specific embodiment, as shown in figure 3, the angle that four groups of dot codes and x-axis positive axis are formed is madeIt is characterized information, respectively:Pi/2,0, π/4,3 π/4.
It should be noted that this step can also be according to the angle information that origin code line and y-axis are formed as featureInformation, or relevant mathematical model is established, position encoded characteristic information is extracted according to other directional informations.
Step 103, it is the position encoded imparting numerical characteristic value according to the characteristic information, obtains described position encodedNumerical characteristic sequence.
It is that position encoded imparting number is special according to characteristic information specifically, analyzing position encoded characteristic informationValue indicative obtains numerical characteristic sequence for read whole is position encoded, and each element in numerical characteristic sequence is a pairThe numerical characteristic value of adjacent origin code.
Such as the example in step 102, it is respectively for such as the characteristic information in Fig. 3:Pi/2, four groups of dots of 0, π/4,3 π/4Code assigns numerical characteristic value:00、01、10、11.
Can be respectively that eight groups of dot codes in Fig. 4 such as assign numerical characteristic value in another specific embodiment:000、001、010、011、100、101、110、111。
It should be noted that being that position encoded imparting numerical characteristic value namely will be position encoded corresponding defeated in this stepIt is corresponding numerical characteristic value to enter digital independent.It can also be with it other than assigning the mode of numerical characteristic value in example aboveHis mode assigns digital special increment, it is therefore an objective to handle the position encoded Serial No. that is converted to.
Step 104, the position encoded location information is determined according to the numerical characteristic sequence.
The position encoded and numerical characteristic sequence of the different zones of the different pages is established into correspondence, reading position in advanceIt can be according to numerical characteristic sequence queries to corresponding location information when coding.Location information can be the specific of the specific pageRegion.
Step 105, the position encoded corresponding data are decoded according to the positional information, it is described to obtainThe corresponding visualization file of data.
After determining position encoded location information according to numerical characteristic sequence, it can be exported when reading position encodes pairThe visualization file answered carries out output and shows.
Wherein, visualization file includes:Text, picture, video and audio file etc..
In addition, technical solution of the present invention further includes:The multiple code units being made of dot are obtained, code unit includes moreThe position encoded unit that the midpoint line of the adjacent dot code line of group limits.
As shown in figure 4, dot code midpoint C1, C2, C3, C4 line Lx1, Lx2, Ly1, Ly2 define a code listFirst D.Can be using code unit D as a reading unit, or using multiple code unit D as a reading unit, work as readingWhen getting the unit, the corresponding text of the unit, picture, video and audio file etc. are exported.
Technical solution of the present invention further includes the steps that correction:Detect the rotation angle of code unit;It is given birth to according to rotation angleAt correction angle;Processing is corrected to code unit according to correction angle.
When substrate is not at horizontally or vertically position, the code unit of position encoded formation will produce a rotation angleDegree reads code and will produce decoding inaccurate problem when decoding corresponding data, it is therefore desirable to it is laggard to be corrected processingRow decoding.
As shown in figure 5, reference line is the straight line of horizontal direction, the angle theta of reference line and straight line Lx1 are code unitRotation angle, the angle by detecting straight line Lx1 is able to detect that the rotation angle of code unit, according to rotation angle to generationCode unit is corrected, to realize accurate decoding.
Position encoded coding/decoding method provided in an embodiment of the present invention is compiled with acquisition position in position encoded substrateCode image;Extract position encoded characteristic information;It is position encoded imparting numerical characteristic value according to characteristic information, obtains position volumeThe numerical characteristic sequence of code;Position encoded location information is determined according to numerical characteristic sequence;Position is compiled according to location informationThe corresponding data of code are decoded, to obtain the corresponding visualization file of data.It is provided in an embodiment of the present invention position encodedCoding/decoding method, decoding accuracy rate is high, is easy to implement the output of coding corresponding data.
Fig. 6 is the schematic diagram of position encoded decoding apparatus provided in an embodiment of the present invention.As shown, device includes:First acquisition unit 1, extraction unit 2, assignment unit 3, second acquisition unit 4, decoding unit 5.
First acquisition unit 1 obtains position encoded image for first terminal on position encoded substrate;
Extraction unit 2, for extracting the position encoded characteristic information;
Assignment unit 3 obtains institute's rheme for being the position encoded imparting numerical characteristic value according to the characteristic informationSet the numerical characteristic sequence of coding;
Second acquisition unit 4, for according to location information position encoded described in the numerical characteristic retrieval;
Decoding unit 5, for being decoded according to the positional information to the position encoded corresponding data, toTo the corresponding visualization file of the data.
Optionally, position encoded to specifically include dot code, extraction unit 2 is specifically used for:
Extract the angle information that adjacent dot code line is formed with reference axis.
Optionally, device further includes third acquiring unit, for obtaining the multiple code units being made of dot, code listMember includes the position encoded unit that the midpoint line of multigroup adjacent dot code line limits.
Optionally, device further includes correction unit, the rotation angle for detecting the code unit;According to the rotationAngle generates correction angle;Processing is corrected to the code unit according to the correction angle.
The specific work process of each unit of position encoded decoding apparatus provided in an embodiment of the present invention and preceding rhemeThe coding/decoding method embodiment for setting coding corresponds, and has been carried out and elaborates in preceding method embodiment, no longer superfluous hereinIt states.
Position encoded decoding apparatus provided in an embodiment of the present invention is compiled with acquisition position in position encoded substrateCode image;Extract position encoded characteristic information;It is position encoded imparting numerical characteristic value according to characteristic information, obtains position volumeThe numerical characteristic sequence of code;Position encoded location information is determined according to numerical characteristic sequence;Position is compiled according to location informationThe corresponding data of code are decoded, to obtain the corresponding visualization file of data.It is provided in an embodiment of the present invention position encodedDecoding apparatus, decoding accuracy rate is high, is easy to implement the output of coding corresponding data.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosureUnit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrateThe interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.These functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution.Professional technician can use different methods to achieve the described function each specific application, but this realizationIt should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can use hardware, processor to executeThe combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical fieldIn any other form of storage substrate well known to interior.
Above-described specific implementation mode has carried out further the purpose of the present invention, technical solution and advantageous effectIt is described in detail, it should be understood that the foregoing is merely the specific implementation mode of the present invention, is not intended to limit the present inventionProtection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all includeWithin protection scope of the present invention.