CN110363045A - The detection reading method and device of a kind of horizontal and vertical parity check code - Google Patents
The detection reading method and device of a kind of horizontal and vertical parity check code Download PDFInfo
- Publication number
- CN110363045A CN110363045A CN201910655882.8A CN201910655882A CN110363045A CN 110363045 A CN110363045 A CN 110363045A CN 201910655882 A CN201910655882 A CN 201910655882A CN 110363045 A CN110363045 A CN 110363045A
- Authority
- CN
- China
- Prior art keywords
- parity check
- check code
- vertical parity
- horizontal
- decoding parametric
- 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
- 238000001514 detection method Methods 0.000 title claims abstract description 228
- 238000000034 method Methods 0.000 title claims abstract description 91
- 230000008569 process Effects 0.000 claims abstract description 44
- 238000002224 dissection Methods 0.000 claims description 16
- 238000012545 processing Methods 0.000 claims description 13
- 241000208340 Araliaceae Species 0.000 claims description 8
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 8
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 8
- 235000008434 ginseng Nutrition 0.000 claims description 8
- 230000007717 exclusion Effects 0.000 claims description 7
- 238000004458 analytical method Methods 0.000 claims description 3
- 238000007689 inspection Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- 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/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Bioethics (AREA)
- Electromagnetism (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Detection And Correction Of Errors (AREA)
Abstract
The application proposes the detection reading method and device of a kind of horizontal and vertical parity check code, and this method is applied to point horizontal and vertical parity check code recognizing apparatus, comprising: the detection decoding parametric to match with described horizontal and vertical parity check code recognizing apparatus is read from preset parameter model file;According to the detection decoding parametric, the point horizontal and vertical parity check code for treating recognition carries out detection and decoding process;Judge whether described horizontal and vertical parity check code recognizing apparatus is successfully decoded the point horizontal and vertical parity check code to be distinguished;If the point horizontal and vertical parity check code to be distinguished is successfully decoded in described horizontal and vertical parity check code recognizing apparatus, by the detection decoding parametric encrypting storing into the parameter model file.The detection decoding parametric with point horizontal and vertical parity check code recognizing apparatus Corresponding matching can be read directly in above scheme, eliminates the process of traversal parameter, can significantly improve horizontal and vertical parity check code detection and a decoding efficiency.
Description
Technical field
This application involves horizontal and vertical parity check codes to distinguish technical field, and more specifically more particularly to the detection of a kind of horizontal and vertical parity check code is distinguished
Method and device.
Background technique
Point horizontal and vertical parity check code recognition is frequently used in a variety of different smart machines, and puts what horizontal and vertical parity check code recognition algorithm was really unified, is
A horizontal and vertical parity check code recognition algorithm is set to be suitable for a variety of different smart machines, the smart machine of recognition point horizontal and vertical parity check code is needed preset ten
Several groups of parameters are iterated operating point horizontal and vertical parity check code recognition algorithm, until a horizontal and vertical parity check code recognition algorithm accurately detects a horizontal and vertical parity check code and correct
Decoding point horizontal and vertical parity check code.
For the above process in the form of traversing all available parameters, operating point horizontal and vertical parity check code distinguishes algorithm realization to the solution of horizontal and vertical parity check code
Code.The ergodic process needs the regular hour, and a horizontal and vertical parity check code recognition efficiency can be made to reduce.
Summary of the invention
Defect and deficiency based on the above-mentioned prior art, the application propose the detection reading method and dress of a kind of horizontal and vertical parity check code
It sets, can realize the detection and identification to horizontal and vertical parity check code more quickly.
The detection reading method of a kind of horizontal and vertical parity check code is applied to point horizontal and vertical parity check code recognizing apparatus, which comprises
The detection decoding parametric to match with described horizontal and vertical parity check code recognizing apparatus is read from preset parameter model file;
According to the detection decoding parametric, the point horizontal and vertical parity check code for treating recognition carries out detection and decoding process;
Judge whether described horizontal and vertical parity check code recognizing apparatus is successfully decoded the point horizontal and vertical parity check code to be distinguished;
If the point horizontal and vertical parity check code to be distinguished is successfully decoded in described horizontal and vertical parity check code recognizing apparatus, by the detection decoding parametric
Encrypting storing is into the parameter model file.
Optionally, it is described by the detection decoding parametric encrypting storing into the parameter model file, comprising:
Structuring dissection process is carried out to the detection decoding parametric, obtains detection decoding parametric character string;
Multiple exclusive or encryption carried out to the detection decoding parametric character string, and by the detection after encryption
Decoding parametric character string is saved into the parameter model file.
Optionally, described that the detection to match with described horizontal and vertical parity check code recognizing apparatus is read from preset parameter model file
Decoding parametric, comprising:
Preset parameter model file is decrypted and structuring dissection process, obtains detection decoding parametric;
From the detection decoding parametric, reading matches with described horizontal and vertical parity check code recognizing apparatus, and its corresponding decoding
The maximum detection decoding parametric of number of success statistical value.
Optionally, the method also includes:
It is decoded when being read from preset parameter model file less than the detection to match with described horizontal and vertical parity check code recognizing apparatus
Parameter, and/or when being detected or decoded unsuccessfully according to the point horizontal and vertical parity check code that the detection decoding parametric of reading treats recognition, execute following
Step:
Successively traverse preset all detection decoding parametrics;
When often traversing one group of detection decoding parametric, using the detection decoding parametric traversed treat the point horizontal and vertical parity check code of recognition into
Row detection and decoding process;
When the point horizontal and vertical parity check code wait distinguish is successfully decoded using the detection decoding parametric traversed, it is described preset to stop traversal
All detection decoding parametrics.
Optionally, when the point horizontal and vertical parity check code wait distinguish is successfully decoded using the detection decoding parametric traversed, the method is also
Include:
Structuring dissection process is carried out to the detection decoding parametric, obtains detection decoding parametric character string;
Multiple exclusive or encryption carried out to the detection decoding parametric character string, and by the detection after encryption
Decoding parametric character string is saved into the parameter model file.
Optionally, before by the detection decoding parametric encrypting storing into the parameter model file, the method
Further include:
Judge whether the parameter model file is operated;
If the parameter model file is not operated, parameter model file setting mutual exclusion is protected.
A kind of horizontal and vertical parity check code reading device, is applied to point horizontal and vertical parity check code recognizing apparatus, and described device includes:
Parameter reading unit matches for reading from preset parameter model file with described horizontal and vertical parity check code recognizing apparatus
Detection decoding parametric;
Codec processing unit, for according to the detection decoding parametric, the point horizontal and vertical parity check code for treating recognition to be detected and decoded
Processing;
Processing unit is judged, for judging whether described horizontal and vertical parity check code recognizing apparatus is successfully decoded the dot matrix to be distinguished
Code;
Parameter storage unit, for inciting somebody to action when the point horizontal and vertical parity check code wait distinguish is successfully decoded in described horizontal and vertical parity check code recognizing apparatus
The detection decoding parametric encrypting storing is into the parameter model file.
Optionally, the parameter storage unit, comprising:
Parameter analysis of electrochemical unit obtains detection decoding ginseng for carrying out structuring dissection process to the detection decoding parametric
Numeric string;
Storage unit is encrypted, for carrying out multiple exclusive or encryption to the detection decoding parametric character string, and will be added
It is close that treated that the detection decoding parametric character string is saved into the parameter model file.
Optionally, the parameter reading unit is read and described horizontal and vertical parity check code recognizing apparatus from preset parameter model file
When the detection decoding parametric to match, it is specifically used for:
Preset parameter model file is decrypted and structuring dissection process, obtains detection decoding parametric;
From the detection decoding parametric, reading matches with described horizontal and vertical parity check code recognizing apparatus, and its corresponding decoding
The maximum detection decoding parametric of number of success statistical value.
Optionally, described device further include:
Traverse decoding unit, for when from preset parameter model file read less than with described horizontal and vertical parity check code recognizing apparatus
The detection decoding parametric to match, and/or detected or solved according to the point horizontal and vertical parity check code that the detection decoding parametric of reading treats recognition
When code failure, following steps are executed:
Successively traverse preset all detection decoding parametrics;
When often traversing one group of detection decoding parametric, using the detection decoding parametric traversed treat the point horizontal and vertical parity check code of recognition into
Row detection and decoding process;
When the point horizontal and vertical parity check code wait distinguish is successfully decoded using the detection decoding parametric traversed, it is described preset to stop traversal
All detection decoding parametrics.
Detection decoding parametric needed for parameter model file stores decoding point horizontal and vertical parity check code is arranged in technical scheme, works as dot matrix
When code recognizing apparatus decoding point horizontal and vertical parity check code, the detection solution to match with this horizontal and vertical parity check code recognizing apparatus is read from the parameter model file
Code parameter, is detected and is decoded to a horizontal and vertical parity check code using the detection decoding parametric, if successfully decoded, which is decoded and is joined
Encrypting storing is counted to the parameter model file.Above-mentioned treatment process can be read directly and put horizontal and vertical parity check code recognizing apparatus Corresponding matching
Decoding parametric is detected, the process of traversal detection decoding parametric is eliminated, horizontal and vertical parity check code detection and a decoding efficiency can be significantly improved.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow diagram of the detection reading method of a kind of horizontal and vertical parity check code provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the detection reading method of another point horizontal and vertical parity check code provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the detection reading method of another point horizontal and vertical parity check code provided by the embodiments of the present application;
Fig. 4 is the flow diagram of the detection reading method of another point horizontal and vertical parity check code provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of the detection reading device of a kind of horizontal and vertical parity check code provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application technical solution is suitable for carrying out a horizontal and vertical parity check code detection and decoded application scenarios, using the application
Embodiment technical solution can rapidly realize detection and decoding to horizontal and vertical parity check code.
Illustratively, the embodiment of the present application technical solution can be applied to the hardware handles equipment such as intelligent terminal, computer,
Software program can be packaged into be run.When above-mentioned hardware handles equipment executes the embodiment of the present application technical solution, or
When above-mentioned software program is run, the detection reading method of the point horizontal and vertical parity check code of the embodiment of the present application proposition may be implemented.
Wherein, when the embodiment of the present application technical solution is applied to above-mentioned hardware handles equipment, specifically it is applied to hard
Point horizontal and vertical parity check code in part processing equipment distinguishes program, runs the horizontal and vertical parity check code by the hardware handles equipment and distinguishes program, realizes this Shen
Please embodiment propose point horizontal and vertical parity check code detection reading method.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The point horizontal and vertical parity check code reading method that the embodiment of the present application proposes can be applied to a horizontal and vertical parity check code recognizing apparatus, wherein the horizontal and vertical parity check code
Recognizing apparatus refers to and carries out recognition or decoded equipment to horizontal and vertical parity check code, and including but is not limited to is smart phone, tablet computer, meter
Calculation machine etc..It is shown in Figure 1, this method comprises:
S101, the detection decoding ginseng to match with described horizontal and vertical parity check code recognizing apparatus is read from preset parameter model file
Number;
Specifically, above-mentioned preset parameter model file, is the file for saving the operational parameter of point horizontal and vertical parity check code recognition algorithm,
In, point horizontal and vertical parity check code recognition algorithm operational parameter include sliding window size, sliding window sliding step, hot spot radius size
Deng.In the parameter model file, the operational parameter of point horizontal and vertical parity check code recognition algorithm distinguishes storage with the difference of applied equipment,
That is the operational parameter of point horizontal and vertical parity check code recognition algorithm is corresponding with equipment difference to be stored respectively.
When a certain equipment, which runs above-mentioned point horizontal and vertical parity check code, distinguishes algorithm, the acquisition of operational parameter is needed from above-mentioned parameter mould
In type file, finds parameter corresponding with the type of the equipment, model etc. and read.
The embodiment of the present application setting, in the initial state, the parameter in above-mentioned parameter model file are available for various equipment
Parameter set.Meanwhile the embodiment of the present application creates device type number group also in above-mentioned parameter model file, sets at this
In standby style number array, the point horizontal and vertical parity check code that preservation is suitable for the device type distinguishes algorithm operational parameter, and saves and be suitable for being somebody's turn to do
The point horizontal and vertical parity check code recognition algorithm operational parameter of device type runs successful number in the device type, i.e. successfully decoded number counts
Value.
Illustratively, the parameter of a variety of different device types number of above-mentioned correspondence is stored in above-mentioned ginseng in the form of json string
In exponential model file.
On this basis, when horizontal and vertical parity check code recognizing apparatus runs above-mentioned point horizontal and vertical parity check code recognition algorithm decoding point horizontal and vertical parity check code, from upper
The detection decoding parametric to match with this horizontal and vertical parity check code recognizing apparatus is read in the parameter model file stated, that is, is read and the point
Operational parameter in the corresponding device type number group of the style number of horizontal and vertical parity check code recognizing apparatus.
The implementation of property as an example, point horizontal and vertical parity check code recognizing apparatus above-mentioned parameter model file is decrypted and
Structuring dissection process obtains detection decoding parametric therein;
Then, then from above-mentioned detection decoding parametric, what reading matched with this horizontal and vertical parity check code recognizing apparatus, and its is right
The maximum detection decoding parametric of successfully decoded number statistical value answered.
S102, according to the detection decoding parametric, the point horizontal and vertical parity check code for treating recognition carries out detection and decoding process;
Specifically, according to the detection decoding parametric, running preset horizontal and vertical parity check code after reading obtains detection decoding parametric and knowing
Algorithm is read, the point horizontal and vertical parity check code for treating recognition detected, and processing is decoded to it when that will arrive horizontal and vertical parity check code.
Wherein, above-mentioned point horizontal and vertical parity check code distinguishes algorithm, distinguishes algorithm for conventional point horizontal and vertical parity check code.
S103, judge whether described horizontal and vertical parity check code recognizing apparatus is successfully decoded the point horizontal and vertical parity check code to be distinguished;
Specifically, judging whether successfully to solve after the point horizontal and vertical parity check code recognition algorithm that point horizontal and vertical parity check code recognizing apparatus is operationally stated
Code point horizontal and vertical parity check code to be distinguished.
If point horizontal and vertical parity check code to be distinguished is not successfully decoded, puts horizontal and vertical parity check code recognizing apparatus and execute step S104, pass through traversal
Detection decoding parametric is detected and is decoded to the point horizontal and vertical parity check code to be distinguished.It is, point horizontal and vertical parity check code recognizing apparatus passes through traversal
A variety of different detection decoding parametrics are sought suitably to detect decoding parametric and a horizontal and vertical parity check code are detected and decoded.
If the point horizontal and vertical parity check code to be distinguished is successfully decoded in described horizontal and vertical parity check code recognizing apparatus, S105 is thened follow the steps, by institute
Detection decoding parametric encrypting storing is stated into the parameter model file.
Specifically, illustrating that a horizontal and vertical parity check code is known if above-mentioned point horizontal and vertical parity check code to be distinguished has been successfully decoded in point horizontal and vertical parity check code recognizing apparatus
The read detection decoding parametric of equipment is read suitable for this horizontal and vertical parity check code recognizing apparatus, at this point, the embodiment of the present application is set, it should
Horizontal and vertical parity check code recognizing apparatus is put after the detection and decoding for completing to treat recognition point horizontal and vertical parity check code, the detection decoding parametric that will be read and use
Encrypting storing is into above-mentioned parameter model file, so as to when others and this horizontal and vertical parity check code recognizing apparatus same type, phase homotype
Number equipment need distinguish point horizontal and vertical parity check code when, the detection and decoding of the parameter execution point horizontal and vertical parity check code can be read directly, thus on the whole
The point horizontal and vertical parity check code decoding effect when above-mentioned point horizontal and vertical parity check code recognition algorithm is applied to a variety of different horizontal and vertical parity check code recognizing apparatus can be improved
Rate.
Illustratively, since above-mentioned parameter model file is the shared parameter mould of a variety of different horizontal and vertical parity check code decoding devices
Type file, therefore the embodiment of the present application is set, and a horizontal and vertical parity check code recognizing apparatus can only be allowed to the parameter model in synchronization
File carries out write operation, causes data entanglement to prevent multiple equipment from carrying out write operation to the parameter model file simultaneously, that is, right
Above-mentioned parameter model file addition mutual exclusion protection.
Based on above-mentioned setting, when above-mentioned point horizontal and vertical parity check code recognizing apparatus will test decoding parametric encrypting storing to parameter model text
Before part, first judge whether the parameter model file is operated;If operated, this horizontal and vertical parity check code recognizing apparatus is not
It can be again to the parameter model file write data, because the equipment that the parameter model file is currently being operated can be to the parameter mould
Type file is arranged mutual exclusion and protects, after the equipment that the parameter model file is currently being operated can only be waited to complete operation, acquisition pair
The write operation right of the parameter model file, this horizontal and vertical parity check code recognizing apparatus protects parameter model file setting mutual exclusion at this time,
Then detection decoding parametric can be written to the parameter model file.The setting of mutual exclusion protection can be to avoid other equipment pair
The parameter model file is operated, to guarantee going on smoothly for data write-in.
It is appreciated that the application above-mentioned technical proposal know with point horizontal and vertical parity check code for an operational parameter for horizontal and vertical parity check code recognition algorithm
Read that device type number is corresponding stores respectively, so that when a horizontal and vertical parity check code recognizing apparatus needs operating point horizontal and vertical parity check code to distinguish algorithm, it can
To directly read detection decoding parametric corresponding with device type number, all detection decoding parametrics of successively iteration can be exempted, from
And detection and the decoding efficiency of a horizontal and vertical parity check code can be improved.
On the other hand, for the embodiment of the present application technical solution after a horizontal and vertical parity check code is successfully decoded, point horizontal and vertical parity check code recognizing apparatus will also solution
Into parameter model file, which realizes a horizontal and vertical parity check code detection decoding ginseng for detection decoding parametric storage used in code-point horizontal and vertical parity check code
Several online updatings is updated parameter used in it that is, in horizontal and vertical parity check code recognition algorithm operational process, it is believed that the process
It is the treatment process of an on-line study, the detection decoding parametric in parameter model file can be made more and more perfect, when more
Equipment need decode point horizontal and vertical parity check code when, directly from parameter model file read parameter, reduce on the whole traversal it is various
Necessity of parameter.
By above-mentioned introduction as it can be seen that the embodiment of the present application setting parameter model file stores detection needed for decoding point horizontal and vertical parity check code
Decoding parametric reads from the parameter model file and sets with horizontal and vertical parity check code recognition when horizontal and vertical parity check code recognizing apparatus decodes point horizontal and vertical parity check code
The standby detection decoding parametric to match, is detected and is decoded to a horizontal and vertical parity check code using the detection decoding parametric, if successfully decoded,
Then by the detection decoding parametric encrypting storing to the parameter model file.Above-mentioned treatment process can be read directly to be known with point horizontal and vertical parity check code
The detection decoding parametric for reading equipment Corresponding matching eliminates the process of traversal detection decoding parametric, can significantly improve a horizontal and vertical parity check code
Detection and decoding efficiency.
Further, the embodiment of the present application technical solution is set, when horizontal and vertical parity check code recognizing apparatus decoding point horizontal and vertical parity check code is successful, also
A horizontal and vertical parity check code detection decoding parametric is saved in parameter model file, the process realize to parameter model file in real time more
Newly, the detection decoding parametric in parameter model file is made to be gradually improved, so that a variety of different horizontal and vertical parity check code decoding devices can be with
Available detection decoding parametric is read from the model file, to reduce the case where traversal detects decoding parametric on the whole
Occurrence frequency improves a horizontal and vertical parity check code decoding efficiency.
It is shown in Figure 2 as a kind of optional implementation, it is disclosed in another embodiment of the application, it is described by institute
Detection decoding parametric encrypting storing is stated into the parameter model file, comprising:
S205, structuring dissection process is carried out to the detection decoding parametric, obtains detection decoding parametric character string;
Specifically, the embodiment of the present application is set, a variety of different detection decoding parametrics are in above-mentioned parameter model file
It is stored with structured form.
Illustratively, the form storage detection decoding parametric that the embodiment of the present application setting is gone here and there with json.Then when above-mentioned point
When horizontal and vertical parity check code recognizing apparatus stores detection decoding parametric into parameter model file, structuring parsing first is carried out to detection decoding parametric
Processing obtains detection decoding parametric character string.
S206, multiple exclusive or encryption is carried out to the detection decoding parametric character string, and by the institute after encryption
Detection decoding parametric character string is stated to save into the parameter model file.
Specifically, point horizontal and vertical parity check code recognizing apparatus carries out multiple exclusive or encryption to above-mentioned detection decoding parametric character string,
Such as exclusive or encryption twice is carried out, then encrypted detection decoding parametric character string is saved to parameter model file
In.Point horizontal and vertical parity check code recognizing apparatus deposits the detection decoding parametric when will test decoding parametric and be saved in parameter model file
Store up data storage areas corresponding with the style number of this horizontal and vertical parity check code recognizing apparatus.
Optionally, if above-mentioned detection decoding parametric is inherently from corresponding with the style number of this horizontal and vertical parity check code recognizing apparatus
Data storage areas read, then put horizontal and vertical parity check code recognizing apparatus directly to the detection solution in parameter model file, with storage
The corresponding number of success statistical value of code parameter carries out add-one operation.
Step S201~S204 in the present embodiment respectively with step S101~S104 in embodiment of the method shown in FIG. 1
Corresponding, the content of specific process content embodiment of the method shown in Figure 1, details are not described herein again.
It is shown in Figure 3 as a kind of optional implementation, it is also disclosed in another embodiment of the application, when from pre-
If parameter model file in read less than the detection decoding parametric to match with described horizontal and vertical parity check code recognizing apparatus, and/or according to
When the point horizontal and vertical parity check code that the detection decoding parametric of reading treats recognition is detected or decoded unsuccessfully, following steps are executed:
S304, preset all detection decoding parametrics are successively traversed;
When often traversing one group of detection decoding parametric, step S305 is executed, treated using the detection decoding parametric traversed
The point horizontal and vertical parity check code of recognition carries out detection and decoding process;
S306, judge whether successfully decoded;
When the point horizontal and vertical parity check code wait distinguish is successfully decoded using the detection decoding parametric traversed, executes step S307, stops
Traverse preset all detection decoding parametrics.
If being failed using the detection decoding parametric traversed decodes point horizontal and vertical parity check code to be distinguished, then follow the steps
S308, continue to traverse next group of detection decoding parametric.
Specifically, being distinguished if point horizontal and vertical parity check code recognizing apparatus is read from above-mentioned parameter model file less than with the horizontal and vertical parity check code
The detection decoding parametric that equipment matches, or recognition point horizontal and vertical parity check code is treated according to the detection decoding parametric of reading and is decoded failure
When, it is believed that there is no the detection decoding parametrics suitable for this horizontal and vertical parity check code recognizing apparatus in parameter model file.
It is sought at this point, the embodiment of the present application sets this horizontal and vertical parity check code recognizing apparatus according to traditional all detection decoding parametrics of traversal
The form for seeking available detection decoding parametric is treated recognition point horizontal and vertical parity check code and is decoded.
This process specifically: point horizontal and vertical parity check code recognizing apparatus is successively to all detection decoding parametrics in parameter model file
Traversed, when often traversing one group of detection decoding parametric, using the detection decoding parametric traversed treat recognition point horizontal and vertical parity check code into
Row detects and decodes and judge whether successfully decoded.
If treating recognition point horizontal and vertical parity check code successfully decoded using the detection decoding parametric traversed, illustrate the detection traversed
Decoding parametric is the detection decoding parametric suitable for this horizontal and vertical parity check code recognizing apparatus, stops continuing to traverse other detection decodings at this time
Parameter.
On the contrary, failing if treating recognition point horizontal and vertical parity check code decoding using the detection decoding parametric currently traversed, including to point
Horizontal and vertical parity check code detection failure fails to a horizontal and vertical parity check code decoding, then illustrating the detection decoding parametric traversed not is to be suitable for the horizontal and vertical parity check code
The detection decoding parametric of recognizing apparatus continues to traverse next group of detection decoding parametric at this time, and utilizes the detection newly traversed
Decoding parametric is treated recognition point horizontal and vertical parity check code and is decoded, and judges whether successfully decoded.
The above ergodic process is repeated, is suitable for the detection decoding parametric of this horizontal and vertical parity check code recognizing apparatus until traversing,
It realizes and treats being successfully decoded for recognition point horizontal and vertical parity check code.
Step S301~S303, S309 in the present embodiment respectively correspond the step in embodiment of the method shown in FIG. 1
S101~S103, S105, the content of particular content embodiment of the method shown in Figure 1, details are not described herein again.
As another illustrative implementation, shown in Figure 4, another embodiment of the application is also disclosed, and works as benefit
It is successfully decoded when distinguishing horizontal and vertical parity check code with the detection decoding parametric traversed, the embodiment of the present application also executes following processing step:
S410, structuring dissection process is carried out to the detection decoding parametric, obtains detection decoding parametric character string;
S411, multiple exclusive or encryption is carried out to the detection decoding parametric character string, and by the institute after encryption
Detection decoding parametric character string is stated to save into the parameter model file.
Specifically, by executing S410 and S411, applicable detection decoding parametric is stored to ginseng for point horizontal and vertical parity check code recognizing apparatus
In exponential model file, then detection decoding corresponding with this horizontal and vertical parity check code recognizing apparatus style number has just been increased in the parameter model file newly
Parameter, when other equipment with this horizontal and vertical parity check code recognizing apparatus same type number need to decode point horizontal and vertical parity check code, so that it may from parameter mould
Detection decoding parametric is read in type file to be decoded.
Step S401~S409 in the present embodiment respectively correspond the step S301 in embodiment of the method shown in Fig. 3~
S309, the content of particular content embodiment of the method shown in Figure 3, details are not described herein again.
It should be noted that the above-mentioned parameter model file of the embodiment of the present application and point horizontal and vertical parity check code decoding algorithm can form a little
Horizontal and vertical parity check code is distinguished model and is existed.The then point horizontal and vertical parity check code reading method that the embodiment of the present application proposes actually distinguishes mould to the horizontal and vertical parity check code
The application and update of type are specifically detected and are decoded operation to a horizontal and vertical parity check code using horizontal and vertical parity check code recognition model, and to this
The parameter model file of point horizontal and vertical parity check code recognition model is updated.
Program on line can be packaged into a horizontal and vertical parity check code recognition model to be called in many ways, such as is arranged to wechat little Cheng
Sequence is called by multiple terminals.
Corresponding with the above-mentioned point detection reading method of horizontal and vertical parity check code, another embodiment of the application also discloses a kind of dot matrix
The detection reading device of code, shown in Figure 5, which includes:
Parameter reading unit 100, for being read and described horizontal and vertical parity check code recognizing apparatus phase from preset parameter model file
Matched detection decoding parametric;
Codec processing unit 110, for according to the detection decoding parametric, the point horizontal and vertical parity check code for treating recognition to be detected and solved
Code processing;
Processing unit 120 is judged, for judging whether described horizontal and vertical parity check code recognizing apparatus is successfully decoded the point to be distinguished
Horizontal and vertical parity check code;
Parameter storage unit 130, for when the point horizontal and vertical parity check code wait distinguish is successfully decoded in described horizontal and vertical parity check code recognizing apparatus,
By the detection decoding parametric encrypting storing into the parameter model file.
Optionally, it is disclosed in another embodiment of the application, the parameter storage unit 130, comprising:
Parameter analysis of electrochemical unit obtains detection decoding ginseng for carrying out structuring dissection process to the detection decoding parametric
Numeric string;
Storage unit is encrypted, for carrying out multiple exclusive or encryption to the detection decoding parametric character string, and will be added
It is close that treated that the detection decoding parametric character string is saved into the parameter model file.
Optionally, it is disclosed in another embodiment of the application, the parameter reading unit 100 is from preset parameter model
When reading the detection decoding parametric to match with described horizontal and vertical parity check code recognizing apparatus in file, it is specifically used for:
Preset parameter model file is decrypted and structuring dissection process, obtains detection decoding parametric;
From the detection decoding parametric, reading matches with described horizontal and vertical parity check code recognizing apparatus, and its corresponding decoding
The maximum detection decoding parametric of number of success statistical value.
Optionally, it is disclosed in another embodiment of the application, described device further include:
Traverse decoding unit, for when from preset parameter model file read less than with described horizontal and vertical parity check code recognizing apparatus
The detection decoding parametric to match, and/or detected or solved according to the point horizontal and vertical parity check code that the detection decoding parametric of reading treats recognition
When code failure, following steps are executed:
Successively traverse preset all detection decoding parametrics;
When often traversing one group of detection decoding parametric, using the detection decoding parametric traversed treat the point horizontal and vertical parity check code of recognition into
Row detection and decoding process;
When the point horizontal and vertical parity check code wait distinguish is successfully decoded using the detection decoding parametric traversed, it is described preset to stop traversal
All detection decoding parametrics.
Optionally, it discloses in another embodiment of the application, is successfully decoded when using the detection decoding parametric traversed
When point horizontal and vertical parity check code wait distinguish, the traversal decoding unit is also used to:
Structuring dissection process is carried out to the detection decoding parametric, obtains detection decoding parametric character string;
Multiple exclusive or encryption carried out to the detection decoding parametric character string, and by the detection after encryption
Decoding parametric character string is saved into the parameter model file.
Optionally, disclosed in another embodiment of the application, by the detection decoding parametric encrypting storing to described
Before in parameter model file, the parameter storage unit is also used to:
Judge whether the parameter model file is operated;
If the parameter model file is not operated, parameter model file setting mutual exclusion is protected.
Specifically, in the specific works of each unit in the embodiment of the detection reading device of above-mentioned each horizontal and vertical parity check code
Hold, refers to the content of above-mentioned embodiment of the method, details are not described herein again.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but
Be those skilled in the art should understand that, the application is not limited by the described action sequence because according to the application, certain
A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification
The embodiment stated belongs to preferred embodiment, necessary to related actions and modules not necessarily the application.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
Step in each embodiment method of the application can be sequentially adjusted, merged and deleted according to actual needs.
Each embodiment kind device of the application and module in terminal and submodule can be merged according to actual needs, be drawn
Divide and deletes.
In several embodiments provided herein, it should be understood that disclosed terminal, device and method, Ke Yitong
Other modes are crossed to realize.For example, terminal embodiment described above is only schematical, for example, module or submodule
Division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple submodule or
Module may be combined or can be integrated into another module, or some features can be ignored or not executed.Another point is shown
The mutual coupling, direct-coupling or communication connection shown or discussed can be through some interfaces, between device or module
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
Module or submodule may or may not be physically separated as illustrated by the separation member, as mould
The component of block or submodule may or may not be physical module or submodule, it can and it is in one place, or
It may be distributed on multiple network modules or submodule.Some or all of mould therein can be selected according to the actual needs
Block or submodule achieve the purpose of the solution of this embodiment.
In addition, each functional module or submodule in each embodiment of the application can integrate in a processing module
In, it is also possible to modules or submodule physically exists alone, it can also be integrated with two or more modules or submodule
In a module.Above-mentioned integrated module or submodule both can take the form of hardware realization, can also use software function
Energy module or the form of submodule are realized.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software unit or the two is implemented.Software unit can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. the detection reading method of a kind of horizontal and vertical parity check code, which is characterized in that be applied to point horizontal and vertical parity check code recognizing apparatus, which comprises
The detection decoding parametric to match with described horizontal and vertical parity check code recognizing apparatus is read from preset parameter model file;
According to the detection decoding parametric, the point horizontal and vertical parity check code for treating recognition carries out detection and decoding process;
Judge whether described horizontal and vertical parity check code recognizing apparatus is successfully decoded the point horizontal and vertical parity check code to be distinguished;
If the point horizontal and vertical parity check code to be distinguished is successfully decoded in described horizontal and vertical parity check code recognizing apparatus, the detection decoding parametric is encrypted
It saves into the parameter model file.
2. the method according to claim 1, wherein it is described by the detection decoding parametric encrypting storing to described
In parameter model file, comprising:
Structuring dissection process is carried out to the detection decoding parametric, obtains detection decoding parametric character string;
Multiple exclusive or encryption is carried out to the detection decoding parametric character string, and the detection after encryption is decoded
Parameter character string is saved into the parameter model file.
3. the method according to claim 1, wherein it is described from preset parameter model file read with it is described
The detection decoding parametric that point horizontal and vertical parity check code recognizing apparatus matches, comprising:
Preset parameter model file is decrypted and structuring dissection process, obtains detection decoding parametric;
From the detection decoding parametric, reading matches with described horizontal and vertical parity check code recognizing apparatus, and its corresponding successfully decoded
The maximum detection decoding parametric of number statistical value.
4. the method according to claim 1, wherein the method also includes:
When being read from preset parameter model file less than the detection decoding parametric to match with described horizontal and vertical parity check code recognizing apparatus,
And/or when being detected or decoded unsuccessfully according to the point horizontal and vertical parity check code that the detection decoding parametric of reading treats recognition, following steps are executed:
Successively traverse preset all detection decoding parametrics;
When often traversing one group of detection decoding parametric, examined using the point horizontal and vertical parity check code that the detection decoding parametric traversed treats recognition
Survey and decoding process;
When the point horizontal and vertical parity check code wait distinguish is successfully decoded using the detection decoding parametric traversed, it is described preset all to stop traversal
Detect decoding parametric.
5. according to the method described in claim 4, it is characterized in that, when using the detection decoding parametric that traverses be successfully decoded to
When the point horizontal and vertical parity check code of recognition, the method also includes:
Structuring dissection process is carried out to the detection decoding parametric, obtains detection decoding parametric character string;
Multiple exclusive or encryption is carried out to the detection decoding parametric character string, and the detection after encryption is decoded
Parameter character string is saved into the parameter model file.
6. the method according to claim 1, wherein by the detection decoding parametric encrypting storing to the ginseng
Before in exponential model file, the method also includes:
Judge whether the parameter model file is operated;
If the parameter model file is not operated, parameter model file setting mutual exclusion is protected.
7. a kind of horizontal and vertical parity check code reading device, which is characterized in that be applied to point horizontal and vertical parity check code recognizing apparatus, described device includes:
Parameter reading unit, for reading the inspection to match with described horizontal and vertical parity check code recognizing apparatus from preset parameter model file
Survey decoding parametric;
Codec processing unit, for according to the detection decoding parametric, the point horizontal and vertical parity check code for treating recognition to carry out detection and decoding process;
Processing unit is judged, for judging whether described horizontal and vertical parity check code recognizing apparatus is successfully decoded the point horizontal and vertical parity check code to be distinguished;
Parameter storage unit will be described for when the point horizontal and vertical parity check code wait distinguish is successfully decoded in described horizontal and vertical parity check code recognizing apparatus
Decoding parametric encrypting storing is detected into the parameter model file.
8. device according to claim 7, which is characterized in that the parameter storage unit, comprising:
Parameter analysis of electrochemical unit obtains detection decoding parametric word for carrying out structuring dissection process to the detection decoding parametric
Symbol string;
Storage unit is encrypted, for carrying out multiple exclusive or encryption to the detection decoding parametric character string, and will be at encryption
The detection decoding parametric character string after reason is saved into the parameter model file.
9. device according to claim 7, which is characterized in that the parameter reading unit is from preset parameter model file
When the detection decoding parametric that middle reading matches with described horizontal and vertical parity check code recognizing apparatus, it is specifically used for:
Preset parameter model file is decrypted and structuring dissection process, obtains detection decoding parametric;
From the detection decoding parametric, reading matches with described horizontal and vertical parity check code recognizing apparatus, and its corresponding successfully decoded
The maximum detection decoding parametric of number statistical value.
10. device according to claim 7, which is characterized in that described device further include:
Traverse decoding unit, for when from preset parameter model file read less than with described horizontal and vertical parity check code recognizing apparatus phase
The detection decoding parametric matched, and/or mistake is detected or decoded according to the point horizontal and vertical parity check code that the detection decoding parametric of reading treats recognition
When losing, following steps are executed:
Successively traverse preset all detection decoding parametrics;
When often traversing one group of detection decoding parametric, examined using the point horizontal and vertical parity check code that the detection decoding parametric traversed treats recognition
Survey and decoding process;
When the point horizontal and vertical parity check code wait distinguish is successfully decoded using the detection decoding parametric traversed, it is described preset all to stop traversal
Detect decoding parametric.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910655882.8A CN110363045A (en) | 2019-07-19 | 2019-07-19 | The detection reading method and device of a kind of horizontal and vertical parity check code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910655882.8A CN110363045A (en) | 2019-07-19 | 2019-07-19 | The detection reading method and device of a kind of horizontal and vertical parity check code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110363045A true CN110363045A (en) | 2019-10-22 |
Family
ID=68220486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910655882.8A Pending CN110363045A (en) | 2019-07-19 | 2019-07-19 | The detection reading method and device of a kind of horizontal and vertical parity check code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110363045A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102577387A (en) * | 2009-10-30 | 2012-07-11 | 松下电器产业株式会社 | Decoding method, decoder apparatus, encoding method, and encoder apparatus |
JP2013137782A (en) * | 2013-02-06 | 2013-07-11 | Casio Comput Co Ltd | Code reader and program |
CN105138941A (en) * | 2015-08-24 | 2015-12-09 | 北京慧眼智行科技有限公司 | Image reading method used for dynamically configuring decoding parameter and device |
-
2019
- 2019-07-19 CN CN201910655882.8A patent/CN110363045A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102577387A (en) * | 2009-10-30 | 2012-07-11 | 松下电器产业株式会社 | Decoding method, decoder apparatus, encoding method, and encoder apparatus |
JP2013137782A (en) * | 2013-02-06 | 2013-07-11 | Casio Comput Co Ltd | Code reader and program |
CN105138941A (en) * | 2015-08-24 | 2015-12-09 | 北京慧眼智行科技有限公司 | Image reading method used for dynamically configuring decoding parameter and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104375836B (en) | A kind of method and device of displaying screen locking window | |
CN106355094B (en) | A kind of SQL injection attack defending system and defence method based on grammer transformation | |
CN103560877B (en) | Attack the method and device of key | |
CN106027577A (en) | Exception access behavior detection method and device | |
CN106570984B (en) | Support card number verification method, the apparatus and system of a variety of Wiegand formats | |
CN109033772A (en) | A kind of input method and device of verification information | |
CN104050406A (en) | Method and terminal equipment for carrying out authentication through fingerprint combinations | |
CN108985559A (en) | Air control data processing method, device, computer equipment and storage medium | |
Shi et al. | A Case Study of Model Checking Retail Banking System with SPIN. | |
CN107911227A (en) | A kind of breakpoint data follow-up method, electronic device and computer-readable recording medium | |
CN110458612A (en) | A kind of information processing method and Related product | |
CN201047944Y (en) | Personal computer capable of performing access control to memory space | |
CN113240431A (en) | Payment verification method and system based on three primary colors of picture pixels | |
CN102891841B (en) | The method of a kind of Web bank Account lockout, device and system | |
CN107977841A (en) | The method and its terminal of two-dimension code safe payment are realized based on driving layer | |
CN110363045A (en) | The detection reading method and device of a kind of horizontal and vertical parity check code | |
CN103336757A (en) | Hardware protocol stack | |
CN118013012A (en) | Session recommendation method, device, equipment and medium | |
CN105989095A (en) | Association rule significance test method and device capable of considering data uncertainty | |
CN115361206A (en) | Encrypted program analysis method and device and electronic equipment | |
CN103746979B (en) | A kind of method and system that data are handled | |
CN111768537A (en) | Intelligent door card data input method and device, intelligent door lock and storage medium | |
CN113344581A (en) | Service data processing method and device | |
CN202838353U (en) | Intelligent card reader with PIN code inputting function | |
CN107657455A (en) | A kind of transaction verification method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191022 |