CN107014348B - Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof - Google Patents

Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof Download PDF

Info

Publication number
CN107014348B
CN107014348B CN201710209401.1A CN201710209401A CN107014348B CN 107014348 B CN107014348 B CN 107014348B CN 201710209401 A CN201710209401 A CN 201710209401A CN 107014348 B CN107014348 B CN 107014348B
Authority
CN
China
Prior art keywords
code
stripe
white
width
bar code
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.)
Active
Application number
CN201710209401.1A
Other languages
Chinese (zh)
Other versions
CN107014348A (en
Inventor
康俊涛
张亚州
李豪
邹立
马雷
邱奕龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CN201710209401.1A priority Critical patent/CN107014348B/en
Publication of CN107014348A publication Critical patent/CN107014348A/en
Application granted granted Critical
Publication of CN107014348B publication Critical patent/CN107014348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C5/00Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a staff bar code for a leveling rod of a distance measuring electronic level and a coding and decoding method thereof, wherein the staff bar code consists of black and white stripe codes, and is characterized in that the black stripe codes have the same width, and the white stripe codes have different widths; each code element is composed of two white stripe codes and a black stripe code, and two adjacent groups of code elements share one white stripe code. The staff gauge bar code and the encoding and decoding method thereof have the advantages of simple decoding operation, capability of measuring the distance while measuring the elevation of the distance measuring electronic level and widening the application range of the level.

Description

Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof
Technical Field
The invention relates to the technology of surveying and mapping instruments, in particular to a staff bar code for a leveling rod of a distance measuring electronic level and a coding and decoding method thereof.
Background
At present, the decoding modes of the electronic level mainly include a correlation method, a geometric method and a phase method. The coding modes of the correlation method and the geometric method are complex, the calculation time required by decoding is long, the measurement speed is slow, and the measurement of the field environment is not facilitated. The existing electronic level has low measurement accuracy of about 0.1mm, and the main reason is that the electronic level compares a phase spectrum formed by one-dimensional black and white bar codes with a phase spectrum in the level during decoding, and calculates the height of a central thread according to a phase difference, so that the accuracy is difficult to meet the requirement only by using one-dimensional information. The electronic level capable of measuring the distance is low in precision and generally only used for reference, and the distance is always required to be measured while the height is measured in actual engineering measurement, and the precision of the electronic level is guaranteed. The total station can measure distance and height, but the operation of the total station is complicated, takes a long time to perform leveling operation for field work, and is expensive.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a staff gauge bar code for a leveling rod of a distance measuring electronic level and a coding and decoding method thereof aiming at the defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a staff gauge bar code for a distance measuring electronic level leveling rod is composed of black and white stripe codes, and is characterized in that the black stripe codes have the same width, and the white stripe codes have different widths; each code element is composed of two white stripe codes and a black stripe code, and two adjacent groups of code elements share one white stripe code.
According to the scheme, the widths of the white stripe codes are arranged according to a set rule.
According to the scheme, the width of the white stripe code is regularly arranged as follows:
the maximum width of the white bar code is 1.5 times of that of the black bar code, the maximum width of the white bar code is 0.3 time of that of the black bar code, and the widths of the other white bar codes are linearly interpolated in the interval.
According to the scheme, in order to ensure the uniformity of the bar code of the scale, the width of the white stripe code is regularly arranged as follows:
according to the scheme, the width proportion of the 3 bar codes of any two groups of code elements on the scale is different.
A coding and decoding method for a leveling rod of a range finding electronic level is characterized in that the decoding comprises the following steps:
1) converting the acquired code element gray level image into a binary image by using a median filtering algorithm;
2) dividing the binary image by adopting a mean-shift algorithm, and determining a code element to which the central silk belongs according to the position of the central silk;
3) determining upper and lower boundary straight lines of each stripe in the code element by using a least square method, determining the width of the stripe according to the distance between the straight lines, and determining the height of the code element according to the width proportion of 3 stripes;
4) dividing the stripe where the middle silk is located into an upper part and a lower part according to the position of the middle silk, and determining the height of the middle silk according to the width ratio of the upper part and the lower part, namely measuring the obtained height.
5) And calculating the visual range, namely the distance to be measured, according to the imaging width and the image distance of the black bar code in the code element where the medium silk is located and by combining a triangular similarity principle.
The invention has the following beneficial effects: the invention has the advantages of simple decoding operation, capability of measuring the distance while measuring the elevation and widening the application range of the level gauge.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 shows a stripe encoded by the encoding method of the present invention;
FIG. 2 is an image segmented by mean-shift algorithm according to the decoding method of the present invention;
FIG. 3 is a schematic diagram illustrating the measurement of the stripes where the filaments are located in the decoding method of the present invention;
FIG. 4 is a schematic diagram of the distance measurement of the decoding method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic view of an example of the present invention. The black bars in the figure have the same width and the white bars have different widths. Each symbol consists of two white and one black barcodes, which are shared by the two symbols. The ratio of the width of the three stripes of each code element on a straight ruler is different.
The width of the white stripe code is regularly arranged as follows:
the maximum width of the white bar code is 1.5 times of that of the black bar code, the maximum width of the white bar code is 0.3 time of that of the black bar code, and the widths of the other white bar codes are linearly interpolated in the interval.
The height of the code element is determined according to the width proportion of three stripes of the code element where the middle silk is positioned during decoding, and the height corresponding to the middle silk 2 is determined by the following steps.
1. Converting the acquired two-dimensional code gray image into a binary image by using a median filtering algorithm
2. And (3) segmenting the binary image by adopting a mean-shift algorithm, and determining a code element to which the central silk belongs according to the position of the central silk 2.
3. The upper and lower boundary lines L1, L2, L3, L4 of each stripe in the symbol are determined using a least square method, the width of the stripe is determined according to the distances d1, d2, d3 between the lines, and the height of the symbol is determined according to the width ratio d 1: d 2: d3 of 3 stripes.
4. Dividing the stripe where the middle silk is positioned into an upper part and a lower part according to the position of the middle silk, and determining the height of the middle silk 2 according to the width ratio d4: d5 of the upper part and the lower part, namely measuring the obtained height.
The distance measurement is determined according to the actual width d1, the imaging width d7 and the imaging distance of the black bar code in the symbol in which the central thread 2 is positioned. Because the actual width of the black code is known and fixed, the sight distance, namely the distance to be measured, can be calculated according to the triangle similarity principle.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (2)

1. A coding and decoding method for a leveling rod of a distance measuring electronic level is characterized in that a rod bar code consists of black and white strip codes, wherein the black strip codes have the same width and the white strip codes have different widths; each code element consists of two white stripe codes and a black stripe code, and two adjacent groups of code elements share one white stripe code;
the width of the white stripe code is regularly arranged as follows:
the maximum width of the white bar code is 1.5 times of that of the black bar code, the minimum width of the white bar code is 0.3 time of that of the black bar code, and the widths of the rest white bar codes are linearly interpolated in the interval;
the width ratios of 3 bar codes of any two groups of code elements on the scale are different;
characterized in that the decoding consists of the following steps:
1) converting the acquired code element gray level image into a binary image by using a median filtering algorithm;
2) dividing the binary image by adopting a mean-shift algorithm, and determining a code element to which the central silk belongs according to the position of the central silk;
3) determining upper and lower boundary straight lines of each stripe in the code element by using a least square method, determining the width of the stripe according to the distance between the straight lines, and determining the height of the code element according to the width proportion of 3 stripes;
4) dividing the stripe where the middle silk is located into an upper part and a lower part according to the position of the middle silk, and determining the height of the middle silk according to the width ratio of the upper part and the lower part, namely measuring the obtained height;
5) and calculating the visual range, namely the distance to be measured, according to the imaging width and the image distance of the black bar code in the code element where the medium silk is located and by combining a triangular similarity principle.
2. The encoding and decoding method according to claim 1, wherein the widths of the white stripe codes are arranged in a set regular pattern.
CN201710209401.1A 2017-03-31 2017-03-31 Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof Active CN107014348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209401.1A CN107014348B (en) 2017-03-31 2017-03-31 Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209401.1A CN107014348B (en) 2017-03-31 2017-03-31 Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof

Publications (2)

Publication Number Publication Date
CN107014348A CN107014348A (en) 2017-08-04
CN107014348B true CN107014348B (en) 2020-08-04

Family

ID=59446545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209401.1A Active CN107014348B (en) 2017-03-31 2017-03-31 Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof

Country Status (1)

Country Link
CN (1) CN107014348B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110864666B (en) * 2019-11-29 2022-02-22 西安理工大学 Two-dimensional leveling staff and reading method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CH676043A5 (en) * 1983-12-30 1990-11-30 Wild Leitz Ag
CN2180971Y (en) * 1994-01-18 1994-10-26 周坤升 Two-purpose level for engineering survey
CN1482435A (en) * 2003-08-14 2004-03-17 杨俊志 Absolute coding and decoding method for distance (elevation) and angulations measurement
CN100470197C (en) * 2004-11-26 2009-03-18 武汉大学 Bar code for digital level bar code ruler and electronic theodolite dial and encoding and decoding method therefor
CN1743802A (en) * 2005-09-21 2006-03-08 叶晓明 Barcode for measurement and its measuring instrument
CN100491927C (en) * 2007-09-10 2009-05-27 王源仁 Two-dimensional code staff gauge and identification method thereof
CN101871777B (en) * 2010-05-07 2012-01-25 樊小鹏 Bar code suitable for measurement and measuring instrument
JP5688300B2 (en) * 2011-01-13 2015-03-25 株式会社トプコン Electronic level device and scale used for the electronic level device
CN102654400A (en) * 2011-03-01 2012-09-05 丁梅 Pseudorandom bar code applied to digital level bar code ruler
CN102261926B (en) * 2011-05-06 2013-04-17 常州市新瑞得仪器有限公司 Coding and decoding methods of digital level bar code ruler
JP5829848B2 (en) * 2011-07-04 2015-12-09 株式会社トプコン Electronic level gauge
CN102829757B (en) * 2012-08-22 2015-01-14 邹涛 Digital levelling system, method, composite coding levelling staff and production method thereof

Also Published As

Publication number Publication date
CN107014348A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN104864809B (en) A kind of the position detection Code targets and system of view-based access control model
CN107490348A (en) Coding grating projecting method in coding structural light three-dimensional measurement
CN102654400A (en) Pseudorandom bar code applied to digital level bar code ruler
CN104331689B (en) The recognition methods of a kind of cooperation mark and how intelligent individual identity and pose
CN114359841B (en) Video water level identification method based on space-time average
CN103714329A (en) Detecting algorithm for identifying meter needle
CN105890634B (en) A kind of absolute type encoder and its decoding measuring method
CN109579742B (en) S-shaped segmented phase coding structured light three-dimensional measurement method
WO2017041600A1 (en) Chinese-sensitive code feature pattern detection method and system
CN104567730A (en) Method for generating light field with sine structure by means of space-time binary encoding
CN104019834A (en) Single code channel absolute position coding method and reading measuring system
CN105758312B (en) A kind of absolute grating scale and its striped boundary alignment method
CN107014348B (en) Scale bar code for leveling rod of distance measuring electronic level and encoding and decoding method thereof
CN113345039B (en) Three-dimensional reconstruction quantization structure optical phase image coding method
CN107764296A (en) Absolute position code and its reading device
CN113506276B (en) Marker and method for measuring structural displacement
CN2831045Y (en) Digital electronic level
CN108917609A (en) A kind of single track absolute grating ruler system
CN102829757B (en) Digital levelling system, method, composite coding levelling staff and production method thereof
CN112990192B (en) Barcode scale image positioning, identifying and detecting method for digital level
CN100470197C (en) Bar code for digital level bar code ruler and electronic theodolite dial and encoding and decoding method therefor
CN111121637A (en) Grating displacement detection method based on pixel coding
CN100491927C (en) Two-dimensional code staff gauge and identification method thereof
CN202329553U (en) Precise displacement measurement device with real scale
CN115631170A (en) High-precision linear displacement measuring method and system

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
GR01 Patent grant
GR01 Patent grant