CN102261926A - Coding and decoding methods of digital level bar code ruler - Google Patents
Coding and decoding methods of digital level bar code ruler Download PDFInfo
- Publication number
- CN102261926A CN102261926A CN2011101168063A CN201110116806A CN102261926A CN 102261926 A CN102261926 A CN 102261926A CN 2011101168063 A CN2011101168063 A CN 2011101168063A CN 201110116806 A CN201110116806 A CN 201110116806A CN 102261926 A CN102261926 A CN 102261926A
- Authority
- CN
- China
- Prior art keywords
- sign indicating
- indicating number
- code
- district
- black
- 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.)
- Granted
Links
Images
Abstract
The invention relates to coding and decoding methods of a digital level bar code ruler. The coding method comprises the following steps: black and white bar codes are distributed alternately in order on the digital level bar code ruler, and the black and white bar codes have different widths respectively; black bar codes or white bar codes with a fixed width are defined as reference codes, and a code zone is formed in an area of a same side of edges of each two adjacent reference codes or a center between each two adjacent reference codes; each code zone has an equal length, and a combination mode of the black and white bar codes in each code zone is only. In decoding the code zones are taken as a unit, and calculation amount can be substantially reduced. Simultaneously, the coding and decoding methods have the characteristics of a high measuring speed and low hardware cost.
Description
Technical field
The present invention relates to the Code And Decode method of a kind of digital level bar yardstick or angle measurement code-wheel.
Background technology
According to the principle of measurement of the level, the main effect of spirit-leveling instrument provides a horizontal line of sight, and can sight levelling pole and carry out reading.Therefore, the spirit-leveling instrument formation mainly contains telescope, level and pedestal three parts.
The spirit-leveling instrument telescope mainly is made up of object lens, eyepiece, focusing lens and crosshair graticule.Object lens and eyepiece adopt the compound lens group more, and crosshair is drawn and is carved with two mutually perpendicular long lines on the plate, and vertical one claims vertical hair, and horizontal one is called middle silk, for run-home with read reading and use.Middle silk also be carved with symmetrically up and down two with middle parallel strigula, be used for measuring distance, be called stadia lines.The crosshair graticule is made by the sheet glass disk, and flat glass film is contained on the graduation panel seat, and the graduation panel seat is fixed on the telescope tube.The line of crosshair intersection point and object lens photocentre is called collimation axis or sight line.Measurement of the level is when the collimation axis level, with the reading on the middle silk intercepting levelling pole of crosshair.
Focusing lens can make the target of different distance all can be imaged on the crosshair plane.Again by eyepiece, just can see the crosshair and the target image that have amplified simultaneously clearly.The visual angle of the target image of being seen in the telescope and the ratio at the visual angle of this target of naked eyes Direct observation are called telescopical magnification.
Digital leveling is measured the measurement of the level that can satisfy various grades, uses digital level and bar code levelling pole (scale) during measurement.Digital level mainly is made up of telescope, graticule, air level, self leveling device, image collecting device, CPU element, power supply, shell and pedestal.The bar code levelling pole is equipped with the bar code delineation by the unequal interval of certain scheme coding on blade, and does not have numerical reference.When measuring with digital level, at first spirit-leveling instrument is installed on the tripod, and according to air level leveling spirit-leveling instrument, sight levelling pole and focusing clear after, by the image of the levelling pole in the CPU element control image collecting device acquisition visual field, try to achieve height and distance according to the encoding scheme and the corresponding disposal route of the image that obtains, levelling pole.
The decoding principle of digital level bar yardstick mainly contains correlation method, geometric method and phase method at present, also has some additive methods.Typical case's representative of correlation method is the 1eica instrument of Switzerland, and scale is directly encoded with the black and white scale-of-two, the patent No.: DE0019530788C1; Typical case's representative of geometric method is the Trimble instrument, and scale adopts quarter-phase binary coding, the patent No.: DE0019826873C1; The typical case of phase method representative is the patent of Japanese TOPCON: 93121271.5,01137724.0 and the patent 98104318.6 of Japanese SOKKIA, and the scale bar code is made up of the sign indicating number preface of the Sine Modulated of some group code width different cycles; Also have the patent of some additive methods such as the wide digital modulation of equidistant code sign indicating number of Japanese SOKKIA, the patent No. 98125342.3; Mr.'s Yang Junzhi the wide Sine Modulated of equidistant code sign indicating number, patent No. 031S3286.1; Mr.'s Zhao Luocheng images match principle, the patent No. 200310111409.2.
Make a general survey of art methods, cut both ways, or the bar code complexity, scale is made difficulty; Coding and decoding computing complexity, calculated amount is big and measuring speed is slow or hardware cost is high.
Summary of the invention
It is simpler that the technical problem to be solved in the present invention provides the computing of a kind of coding, decoding, the Code And Decode method of the digital level bar yardstick that calculated amount is less and measuring speed very fast, hardware cost is lower.
In order to solve the problems of the technologies described above, the coding method of digital level bar yardstick provided by the invention comprises: the black and white bar code on the digital level bar yardstick is interphase distribution successively, and black, informal voucher sign indicating number has multiple width respectively; Wherein, be reference code with the secret note sign indicating number or the informal voucher sign indicating number of a fixed width, the same lateral edges of two adjacent reference codes or the zone between the center constitute one yard district; Each yard section length equates, and each array mode black, the informal voucher sign indicating number in each yard district is unique.
Further, described reference code is maximum or minimum secret note sign indicating number or the informal voucher sign indicating number of width.
Further, described width black, the informal voucher sign indicating number comprises: 5mm, 8mm, 11mm, 14mm and 17mm, and wherein the width with reference to bar code is 17mm, the length in each yard district is 60mm.
The coding/decoding method of above-mentioned digital level bar yardstick coding, comprise: based on measure the bar code image position of orienting all reference codes in this bar code image, according to the position of the crosshair in the spirit-leveling instrument in described bar code image, finding the sign indicating number district at described crosshair place is the object code district, then according to black in the object code district, the arrangement mode of informal voucher sign indicating number carries out sign indicating number district coupling to this object code district, to find the position of object code district in described yardstick, obtain the height value with the nearest reference code of described crosshair then, this height value is the gross altitude value of the impact point that digital level surveys; Draw the precise height value of described impact point at last according to the spacing of described crosshair and described reference code.
Technique scheme of the present invention has the following advantages compared with prior art: in the Code And Decode method of digital level bar yardstick of the present invention, coded system is simple, clear to be easy to realize, has reduced the difficulty that bar yardstick and scale are made; During decoding since reference code be to have fixed cycle and unique secret note sign indicating number or the informal voucher sign indicating number of length, can improve the accuracy of identification reference code greatly, and the inner bar code in sign indicating number district only has and fixes four kinds and have certain proportionate relationship with reference code, can reject the bar code of apparent error in view of the above easily in the identifying, reduce the probability that wrong bar code occurs.It is last because the array mode black, the informal voucher sign indicating number in each yard district is unique, so only need correctly identify the inner bar code arrangement mode in target area, can directly locate its position in standard bar yardstick, calculated amount when having significantly reduced searching target point position like this, the occupancy of internal memory when having reduced the instrument computing, improve measuring speed, can reduce the characteristics of relevant hardware cost simultaneously.
Description of drawings
For the easier quilt of content of the present invention is clearly understood, below the specific embodiment and in conjunction with the accompanying drawings of basis, the present invention is further detailed explanation, wherein
Fig. 1 is the structural representation of one section bar code on the digital level bar yardstick of the present invention;
Fig. 2 is in the Code And Decode method of described digital level bar yardstick being the synoptic diagram of unit coupling with the sign indicating number district.
Embodiment
(embodiment 1)
See Fig. 1, the digital level bar yardstick of present embodiment or the coding method of angle measurement code-wheel comprise: the black and white bar code on digital level bar yardstick or the angle measurement code-wheel is interphase distribution successively, and black, informal voucher sign indicating number has multiple width respectively; Wherein, be reference code with the secret note sign indicating number or the informal voucher sign indicating number of a fixed width, the same lateral edges of two adjacent reference codes or the zone between the center constitute one yard district; Each yard section length equates, and each array mode black, the informal voucher sign indicating number in each yard district is unique.
Described width black, the informal voucher sign indicating number comprises: 5mm, 8mm, 11mm, 14mm and 17mm are secret note sign indicating numbers for width 17mm with reference to bar code wherein, and the length in each yard district is 60mm, comprising: the reference code of a 17mm, 3 white bar codes, 2 black bar codes.5 bar codes that change are by 5mm, 8mm, and 11mm, 14mm is guaranteeing that total length is to select 5 arbitrarily under the prerequisite of 43mm to arrange.Satisfactory permutation and combination, on 5m bar yardstick, carry out random alignment, and guarantee that 6 continuous arbitrarily bar codes are unique.
In the application of angle measurement code-wheel, because the position relative fixed of scale and optical system, sensor, use needn't be considered distance problem than coding method to scale, uses simpler relatively.
(embodiment 2)
See Fig. 2, the coding/decoding method of the described digital level bar yardstick coding of embodiment 1 comprises: based on measure the bar code image position of orienting all reference codes.
In the actual measurement process, the bar yardstick be through can obtaining image behind the optical imaging system on the CCD imaging surface, and the size of target changes along with the distance of the focal length of optical system and bar yardstick.The measurement sign indicating number that obtains is a bar yardstick fragment through convergent-divergent under ideal state, but especially telemeasurement in the actual measurement process, the image of the bar code that obtains or signal edge are fuzzy, can not directly obtain the width of black and white bar code, need carry out certain detection the edge that obtains image or signal.Can adopt different disposal routes according to different distances:
1), threshold method, it is applicable to that closely the barcode signal mass ratio is situation preferably, bar code image is clear, bar code be easy to identification, be characterized in that principle is simple, fast operation.
2), sub-pixel edge detection method, it is applicable to the measurement of middle distance, because bar code density uprises, image is progressively fuzzy, and the width accuracy that simple threshold value is calculated progressively descends, and adopts edge detecting technology, edge detection operator as the single order differential, Laplace operator, based on the rim detection of zero cross point etc., these algorithm general effects are measured at middle distance can reach higher precision.
3), gravity model appoach, it is applicable to telemeasurement, bar code density further strengthens, neighboring edge influences each other even is overlapping, make edge detection method can not correctly detect the edge of barcode signal, can only detect earlier bar code in the center of gravity of black, white sign indicating number, calculate the edge of bar code again, thereby realize bar-code identification.
In to signal behind all reference code location, position according to crosshair in the bar code image, finding sign indicating number district, crosshair place is the object code district, arrangement mode according to black and white bar code in the object code district finds its position in standard bar yardstick then, this moment, the position of location was the height that is not higher than the most contiguous reference code of crosshair, was the coarse value of impact point; At last draw exact value to the distance of crosshair, can get the distance that crosshair is got in several reference codes calculations, precise results by multiselect herein certainly according to this reference code.What coarse value that the skimming reading process is obtained and exact value addition obtained at last is exactly the impact point height.
In the actual measurement process, in order to improve the accuracy of location, medium and long distance is that unit mates identification with two or more yards districts; In the time of closely because each sign indicating number district is unique, choose sign indicating number district, target place and can finish identification, but closely the time, because the bar yardstick is different with the instrument relative height, the signal that collects may not comprise a complete cycle, and can finish identification this moment by 6 arbitrarily continuous bar codes are unique.
Obviously, the foregoing description only is for example of the present invention clearly is described, and is not to be qualification to embodiments of the present invention.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here need not also can't give exhaustive to all embodiments.And these belong to conspicuous variation or the change that spirit of the present invention extended out and still are among protection scope of the present invention.
Claims (4)
1. the coding method of a digital level bar yardstick is characterized in that: black, the informal voucher sign indicating number on the digital level bar yardstick is interphase distribution successively, and black, informal voucher sign indicating number has multiple width respectively;
Wherein, be reference code with the secret note sign indicating number or the informal voucher sign indicating number of a fixed width, the same lateral edges of two adjacent reference codes or the zone between the center constitute one yard district; Each yard section length equates, and each array mode black, the informal voucher sign indicating number in each yard district is unique.
2. the coding method of digital level bar yardstick according to claim 1 is characterized in that: described reference code is maximum or minimum secret note sign indicating number or the informal voucher sign indicating number of width.
3. the coding method of digital level bar yardstick according to claim 2 is characterized in that: described width black, the informal voucher sign indicating number comprises: 5mm, 8mm, 11mm, 14mm and 17mm, and wherein the width with reference to bar code is 17mm, the length in each yard district is 60mm.
4. the coding/decoding method of a digital level bar yardstick according to claim 1 coding, it is characterized in that comprising: based on measure the bar code image position of orienting all reference codes in this bar code image, according to the position of the crosshair in the spirit-leveling instrument in described bar code image, finding the sign indicating number district at described crosshair place is the object code district, then according to black in the object code district, the arrangement mode of informal voucher sign indicating number carries out sign indicating number district coupling to this object code district, to find the position of object code district in described yardstick, obtain the height value with the nearest reference code of described crosshair then, this height value is the gross altitude value of the impact point that digital level surveys; Draw the precise height value of described impact point at last according to the spacing of described crosshair and described reference code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110116806 CN102261926B (en) | 2011-05-06 | 2011-05-06 | Coding and decoding methods of digital level bar code ruler |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110116806 CN102261926B (en) | 2011-05-06 | 2011-05-06 | Coding and decoding methods of digital level bar code ruler |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102261926A true CN102261926A (en) | 2011-11-30 |
CN102261926B CN102261926B (en) | 2013-04-17 |
Family
ID=45008647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110116806 Active CN102261926B (en) | 2011-05-06 | 2011-05-06 | Coding and decoding methods of digital level bar code ruler |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102261926B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102494669A (en) * | 2011-12-21 | 2012-06-13 | 谢佑坤 | Bar gauge by grading coding |
CN105894074A (en) * | 2016-04-15 | 2016-08-24 | 大连声鹭科技有限公司 | Anti-counterfeiting bar code label, anti-counterfeiting bar code label information acquisition device, acquisition method, and anti-counterfeiting verification system |
CN106706012A (en) * | 2016-12-20 | 2017-05-24 | 常州市新瑞得仪器有限公司 | Coding disc, photoelectric angle measurement encoder using same, and work method thereof |
CN107014348A (en) * | 2017-03-31 | 2017-08-04 | 武汉理工大学 | A kind of scale bar code and its coding-decoding method for ranging electronic level levelling rod |
CN107153865A (en) * | 2017-04-12 | 2017-09-12 | 廖华勇 | A kind of simpler one-dimension code of structure |
CN108253932A (en) * | 2016-12-29 | 2018-07-06 | 湖北工程学院 | A kind of coding method of digital level bar code scale and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1191302A (en) * | 1997-02-03 | 1998-08-26 | 株式会社索佳 | Electronic level |
CN1194688A (en) * | 1995-08-22 | 1998-09-30 | 莱卡地球系统公开股份有限公司 | Geodesic measuring staff |
CN1228527A (en) * | 1997-12-19 | 1999-09-15 | 株式会社索佳 | Electronic level and leveling rod for use in combination with the same |
DE19826873C1 (en) * | 1998-06-17 | 1999-11-25 | Zeiss Carl Jena Gmbh | Digital levelling rod for use over wider range of distances |
CN1482435A (en) * | 2003-08-14 | 2004-03-17 | 杨俊志 | Absolute coding and decoding method for distance (elevation) and angulations measurement |
CN1493853A (en) * | 2003-10-10 | 2004-05-05 | 杨俊志 | Universal coding method of single loop absolute type angle coder |
CN1544882A (en) * | 2003-11-18 | 2004-11-10 | 武汉大学 | Digital water-level instrument |
CN1632464A (en) * | 2004-11-26 | 2005-06-29 | 叶晓明 | Bar code for digital level bar code ruler and electronic theodolite dial and encoding and decoding method therefor |
EP1593934A1 (en) * | 2004-05-06 | 2005-11-09 | Leica Geosystems AG | Levelling rod and level determination apparatus and method e.g. for geodetic applications |
-
2011
- 2011-05-06 CN CN 201110116806 patent/CN102261926B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1194688A (en) * | 1995-08-22 | 1998-09-30 | 莱卡地球系统公开股份有限公司 | Geodesic measuring staff |
CN1191302A (en) * | 1997-02-03 | 1998-08-26 | 株式会社索佳 | Electronic level |
CN1228527A (en) * | 1997-12-19 | 1999-09-15 | 株式会社索佳 | Electronic level and leveling rod for use in combination with the same |
DE19826873C1 (en) * | 1998-06-17 | 1999-11-25 | Zeiss Carl Jena Gmbh | Digital levelling rod for use over wider range of distances |
CN1482435A (en) * | 2003-08-14 | 2004-03-17 | 杨俊志 | Absolute coding and decoding method for distance (elevation) and angulations measurement |
CN1493853A (en) * | 2003-10-10 | 2004-05-05 | 杨俊志 | Universal coding method of single loop absolute type angle coder |
CN1544882A (en) * | 2003-11-18 | 2004-11-10 | 武汉大学 | Digital water-level instrument |
EP1593934A1 (en) * | 2004-05-06 | 2005-11-09 | Leica Geosystems AG | Levelling rod and level determination apparatus and method e.g. for geodetic applications |
CN1632464A (en) * | 2004-11-26 | 2005-06-29 | 叶晓明 | Bar code for digital level bar code ruler and electronic theodolite dial and encoding and decoding method therefor |
Non-Patent Citations (1)
Title |
---|
杨俊志: "数字水准仪的通用编码和解码方法", 《测绘通报》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102494669A (en) * | 2011-12-21 | 2012-06-13 | 谢佑坤 | Bar gauge by grading coding |
CN102494669B (en) * | 2011-12-21 | 2013-09-18 | 谢佑坤 | Bar gauge by grading coding |
CN105894074A (en) * | 2016-04-15 | 2016-08-24 | 大连声鹭科技有限公司 | Anti-counterfeiting bar code label, anti-counterfeiting bar code label information acquisition device, acquisition method, and anti-counterfeiting verification system |
CN106706012A (en) * | 2016-12-20 | 2017-05-24 | 常州市新瑞得仪器有限公司 | Coding disc, photoelectric angle measurement encoder using same, and work method thereof |
CN106706012B (en) * | 2016-12-20 | 2019-03-26 | 常州市新瑞得仪器有限公司 | Coding disk, photoelectric measuring angular encoder and its working method using the coding disk |
CN108253932A (en) * | 2016-12-29 | 2018-07-06 | 湖北工程学院 | A kind of coding method of digital level bar code scale and device |
CN107014348A (en) * | 2017-03-31 | 2017-08-04 | 武汉理工大学 | A kind of scale bar code and its coding-decoding method for ranging electronic level levelling rod |
CN107153865A (en) * | 2017-04-12 | 2017-09-12 | 廖华勇 | A kind of simpler one-dimension code of structure |
Also Published As
Publication number | Publication date |
---|---|
CN102261926B (en) | 2013-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102261926B (en) | Coding and decoding methods of digital level bar code ruler | |
CA2563983C (en) | Levelling rod, level determining apparatus for said rod, and level determining method | |
CN106643549B (en) | A kind of ceramic tile dimension detection method based on machine vision | |
CN102654400A (en) | Pseudorandom bar code applied to digital level bar code ruler | |
JP5688300B2 (en) | Electronic level device and scale used for the electronic level device | |
CN102607820B (en) | Focal length measurement method for micro-lens array | |
CN102865851B (en) | Surveying staff for electronic levelling instrument | |
CN101715542A (en) | Leveling apparatus and method | |
CN103038604B (en) | Electronic level and leveling rod for electronic level | |
CN106043355A (en) | High-precision camera shooting measuring method for detecting sedimentation and pose of railway detecting vehicle | |
CN101494740A (en) | Calibration element for calibrating the magnification ratio of a camera, and a calibration method | |
CN104296681A (en) | Three-dimensional terrain sensing device and method based on laser dot matrix identification | |
CN2831045Y (en) | Digital electronic level | |
CN102829757A (en) | Digital levelling system, method, composite coding levelling staff and production method thereof | |
CN103630090B (en) | High resolution double shaft autocollimator system | |
CN100491927C (en) | Two-dimensional code staff gauge and identification method thereof | |
RU98596U1 (en) | TWO CHANNEL DIGITAL AUTOCollimator | |
RU2384812C1 (en) | Autocollimator for measuring angle of torque | |
CN204177359U (en) | The digital photoelectric auto instrument of a kind of novel biaxial | |
CN108180892A (en) | Composite level parametric measurement method | |
CN204177356U (en) | A kind of dimensional topography sensing device based on laser dot-matrix mark | |
WO2005108921A1 (en) | Levelling rod and level determination apparatus and method, e.g. for geodetic applications | |
CN101871777B (en) | Bar code suitable for measurement and measuring instrument | |
CN204240958U (en) | A kind of twin shaft adjustable digital formula photoelectric auto-collimator | |
CN104296972B (en) | A kind of glass sieve plate and score design method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |