CN103759701B - Based on the cell phone intelligent distance-finding method of Android platform - Google Patents
Based on the cell phone intelligent distance-finding method of Android platform Download PDFInfo
- Publication number
- CN103759701B CN103759701B CN201410012883.8A CN201410012883A CN103759701B CN 103759701 B CN103759701 B CN 103759701B CN 201410012883 A CN201410012883 A CN 201410012883A CN 103759701 B CN103759701 B CN 103759701B
- Authority
- CN
- China
- Prior art keywords
- distance
- measurement
- mobile phone
- shooting
- point
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C3/00—Measuring distances in line of sight; Optical rangefinders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Measurement Of Optical Distance (AREA)
Abstract
The invention discloses a kind of cell phone intelligent distance-finding method based on Android platform, with the camera of mobile phone, shooting measurement point, program, according to roll and the pitch value of the direction sensor of mobile phone, calculates the distance of the distance between the horizontal range measuring object distance measurement point, conplane any two points, object any point-to-point transmission on the Distance geometry vertical plane on ground; In calculating, the error possible to measured value has carried out just imitating, and measuring error is generally within 1%.The present invention can be used as an app, is installed in mobile phone.Simple to operate, easy to use, practical function, measures more accurate, wide application.
Description
Technical field
The present invention relates to a kind of mobile phone of Android platform, carry out the method for level range finding, vertical range finding.
Background technology
Range observation is work and the demand of often encountering of living, little of the design measurement in height measurement, domestic layout in daily life, the construction survey etc. greatly in the line measurement, building site of competition area.The most frequently used distance-finding method is that survey instrument is measured with chi, when the distance surveyed is longer, comparatively far away, or not easily near time, difficulty can be brought to measurement.In engineering survey, the conventional optics such as infrared ray, sonar or Principles of Acoustics are measured, and now, need the measurement apparatus of specialty.The various sensors that smart mobile phone possesses, provide possibility for meeting this demand.
Based on the range finding of mobile phone, disclosed method has: based on the range finding (patent 200910100708.3) of mobile phone movement, the mobile device utilizing sound wave to carry out finding range and distance measurement method (patent 200510126252.x), have and find range (patent CN102857633A) based on the mobile phone of CCD imaging, based on the range finding (patent CN201509234U) etc. of infrared function.
Summary of the invention
The object of the present invention is to provide a kind of measured value accurately based on the cell phone intelligent distance-finding method of Android platform.
Technical solution of the present invention is:
Based on a cell phone intelligent distance-finding method for Android platform, it is characterized in that: measuring process is as follows:
(1) camera is opened, shooting range finding end points;
(2) value of direction sensor in mobile phone is obtained;
(3) calculated level or vertical measuring distance;
(4) error correction is carried out.
The measuring process of horizontal range is as follows:
(1) shooting and the pin of measurement people are at conplane measurement point;
(2) extract roll and the pitch value of the direction sensor in mobile phone, obtain the angle b between camera and sea level; Roll is the angle on mobile phone y direction and ground, and pitch is the angle on mobile phone x direction and ground;
b=acrsin(cos(roll×π/180)cos(pitch×π/180))
(3) calculate the horizontal range L between camera point and measurement point, computing formula is as follows:
L=h/tan(b)
Wherein, h is the distance of mobile phone apart from ground.
(4) error transfer factor, method is as follows:
As fb=1/tan (b) <=1.33, error wc
l=0;
As fb=1/tan (b) >1.33, wc
l=(fb-1.33)/11.0
After revising, measured value is: L '=L/ (1+wc
l).
The measurement of vertical range comprises the following steps:
(1) shooting institute surveys one end of vertical range, and the pin of this end points and the people that finds range is in same level; By the method surveying horizontal range, obtain the distance L between shooting point and the level of vertical plane, containing error effect just;
(2) shooting institute surveys the other end of vertical range, roll and the pitch value of extraction direction sensor, obtains the elevation angle c of camera and measurement point line and surface level;
c=90+acrsin(cos(roll×π/180)×cos(pitch×π/180))
(3) the distance H between two measurement points is calculated
H=(h+|L/(1+wc
h)|)×tan(c)
Wherein, definition in h same level distance, for mobile phone is apart from the distance on ground;
Wc
hfor error transfer factor value, be calculated as follows:
When | during fc|=1/tan (c) <=1.33, wc
h=0
When | fc|=1/tan (c) >1.33, wc
h=(| fc|-1.33)/11.0.
In plane, the measurement of any distance between two points comprises the following steps:
(1) first on the measurement plane distance L1 apart from shooting person;
(2) second point on measurement plane is apart from the distance L2 of shooting person;
(3) by direction sensor, obtain the angle a=b1+b2 between twice measurement, wherein b1, b2 are respectively angle when measuring L1 and L2 between camera and sea level to the mould of 90 degree;
(4) utilize the cosine law, calculate the distance L between two measurement points in plane
L=sqrt(L1×L1+L2×L2-2×L1×L2×cos(a))。
The measurement of any two points vertical range comprises the following steps:
(1) measure first with the distance h1 on ground;
(2) the distance h2 on second point and ground is measured;
(3) the distance H=|h1-h2| between calculating 2.
Direction sensor and the gyroscope of the present invention's mobile phone are found range, and principle is upper all different with existing method from realization.Just consider error effect in measurement, make measured value more accurate.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described.
Fig. 1 is x and the y direction schematic diagram of mobile phone.
Fig. 2 is horizontal range measuring principle figure.
Fig. 3 is vertical demension measurement schematic diagram.
Fig. 4 is the range observation schematic diagram in plane between any two points.
Embodiment
1. the measurement of distance, follows these steps to carry out generally:
(1) open mobile phone, select measurement pattern, alternative mode has:
Measure horizontal range
Measure vertical height
Measure point-to-point transmission wide from
Measure the height of point-to-point transmission
(2) the height h of measurement point apart from ground is preset.
(3) camera is opened, shooting measurement point.
(4) value of mobile phone inner sensor is obtained.
(5) calculated level or vertical measuring distance.
(6) error correction is carried out.
Wherein, (4), (5), (6) are carried out automatically by program.
2. the measurement of horizontal range.
As measured the distance between people and door, step is as follows:
(1) select measurement pattern to be horizontal range, this pattern is default mode.
(2) shooting and the pin of measurement people are at conplane measurement point.
(3) mobile phone display follows these steps between the range finding people that calculates and measurement point by program horizontal range:
1) (roll is the angle on mobile phone y direction and ground to roll and the pitch value of the direction sensor in extraction mobile phone; Pitch is the angle on mobile phone x direction and ground), obtain the angle b between camera and sea level
b=acrsin(cos(roll×π/180)cos(pitch×π/180))
2) the horizontal range L between camera point and measurement point is calculated as follows,
L=h/tan(b)
Wherein, h is the distance of mobile phone apart from ground, as being taken as 1.35m.
3) error transfer factor
Correction measured value is: L '=L/ (1+wc
l)
As fb=1/tan (b) <=1.33, error wc
l=0;
As fb=1/tan (b) >1.33, wc
l=(fb-1.33)/11.0
Measurement result is 2.3m; Actual range is 2.3m, and both measurement results are consistent.
3. the measurement of vertical range, be measured as example with the height of people, step is as follows:
(1) measurement pattern is selected to be " measurement vertical range ";
(2) end points of vertical range is taken
(3) end of vertical range is taken
(4) screen shows in real time and follows these steps to by program the measurement result that calculates:
1) by the method surveying horizontal range, the horizontal range L (just imitating containing error) of shooting point and vertical plane is obtained;
2) extract roll and the pitch value of direction sensor when end is measured, obtain the elevation angle c of camera and measurement point line and surface level,
c=90+acrsin(cos(roll×π/180)cos(pitch×π/180))
3) the vertical range H between calculating 2
H=(h+|L/(1+wc
h)|)×tan(c)
Wherein, wc
hfor error transfer factor value, be calculated as follows:
When | during fc|=1/tan (c) <=1.33, wc
h=0
When | fc|>1.33, wc
h=(| fc|-1.33)/11.0
Measurement result is 1.76m, and measured result is 1.76m, and two measurement results are consistent.
4. the measurement of any distance between two points in plane
As measured the distance between two trees, step is as follows:
(1) the distance L1 of the shooting person of first A distance is measured;
(2) the distance L2 of the shooting person of second point B distance is measured;
(3) by direction sensor, obtain the angle a=b1+b2 between twice measurement, wherein b1, b2 are respectively angle when measuring L1 and L2 between camera and sea level to the mould of 90 degree;
(4) utilize the cosine law, calculate the distance L between two measurement points in plane
L=sqrt[L1×L1+L2×L2-2×L1×L2×cos(a)]
5. the measurement of the vertical range between aerial any two points
As measured the length of a certain trunk, step is as follows:
(1) the distance h1 on first A and ground is measured;
(2) the distance h2 on second point B and ground is measured;
Distance h=|h1-h2| between (3) two.
Claims (3)
1., based on a cell phone intelligent distance-finding method for Android platform, it is characterized in that: measuring process is as follows:
(1) camera is opened, shooting range finding end points;
(2) value of direction sensor in mobile phone is obtained;
(3) calculated level or vertical measuring distance;
(4) error correction is carried out;
The measuring process of horizontal range is as follows:
(1) shooting and the pin of measurement people are at conplane measurement point;
(2) extract roll and the pitch value of the direction sensor in mobile phone, obtain the angle b between camera and sea level; Roll is the angle on mobile phone y direction and ground, and pitch is the angle on mobile phone x direction and ground;
b=acrsin(cos(roll×π/180)cos(pitch×π/180))
(3) calculate the horizontal range L between camera point and measurement point, computing formula is as follows:
L=h/tan(b)
Wherein, h is the distance of mobile phone apart from ground;
(4) error transfer factor, method is as follows:
As fb=1/tan (b) <=1.33, error wc
l=0;
As fb=1/tan (b) >1.33, wc
l=(fb-1.33)/11.0
After revising, measured value is: L '=L/ (1+wc
l).
2. the cell phone intelligent distance-finding method based on Android platform according to claim 1, is characterized in that: the measurement of vertical range comprises the following steps:
(1) shooting institute surveys one end of vertical range, and the pin of this end points and the people that finds range is in same level; By the method surveying horizontal range, obtain the distance L between shooting point and the level of vertical plane, containing error effect just;
(2) shooting institute surveys the other end of vertical range, roll and the pitch value of extraction direction sensor, obtains the elevation angle c of camera and measurement point line and surface level;
c=90+acrsin(cos(roll×π/180)×cos(pitch×π/180))
(3) the distance H between two measurement points is calculated
H=(h+|L/(1+wc
h)|)×tan(c)
Wherein, definition in h same level distance, for mobile phone is apart from the distance on ground;
Wc
hfor error transfer factor value, be calculated as follows:
When | during fc|=1/tan (c) <=1.33, wc
h=0
When | fc|=1/tan (c) >1.33, wc
h=(| fc|-1.33)/11.0.
3. the cell phone intelligent distance-finding method based on Android platform according to claim 1, is characterized in that: in plane, the measurement of any distance between two points comprises the following steps:
(1) first on the measurement plane distance L1 apart from shooting person;
(2) second point on measurement plane is apart from the distance L2 of shooting person;
(3) by direction sensor, obtain the angle a=b1+b2 between twice measurement, wherein b1, b2 are respectively angle when measuring L1 and L2 between camera and sea level to the mould of 90 degree;
(4) utilize the cosine law, calculate the distance LL=sqrt (L1 × L1+L2 × L2-2 × L1 × L2 × cos (a)) in plane between two measurement points.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410012883.8A CN103759701B (en) | 2014-01-13 | 2014-01-13 | Based on the cell phone intelligent distance-finding method of Android platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410012883.8A CN103759701B (en) | 2014-01-13 | 2014-01-13 | Based on the cell phone intelligent distance-finding method of Android platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103759701A CN103759701A (en) | 2014-04-30 |
CN103759701B true CN103759701B (en) | 2016-03-09 |
Family
ID=50526977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410012883.8A Expired - Fee Related CN103759701B (en) | 2014-01-13 | 2014-01-13 | Based on the cell phone intelligent distance-finding method of Android platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103759701B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104374365A (en) * | 2014-11-14 | 2015-02-25 | 无锡坦程物联网科技有限公司 | Mobile phone height measurement software and height measurement method based on software |
CN106705837B (en) | 2015-11-17 | 2019-12-06 | 华为技术有限公司 | Object measuring method and device based on gestures |
CN105596006B (en) * | 2015-12-16 | 2019-05-31 | 上海斐讯数据通信技术有限公司 | A kind of height measurement method, device and the electronic equipment with acquisition device |
CN105937878B (en) | 2016-06-13 | 2018-10-26 | 歌尔科技有限公司 | A kind of interior distance measuring method |
CN109363684A (en) * | 2018-10-30 | 2019-02-22 | 北京旷视科技有限公司 | Measurement method, device, mobile device and computer readable storage medium |
CN116385523A (en) * | 2019-03-26 | 2023-07-04 | 华为技术有限公司 | Distance measurement method and electronic equipment |
CN112040132A (en) * | 2020-09-09 | 2020-12-04 | 清华大学 | Animal external feature obtaining method and device and computer equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2884724Y (en) * | 2005-11-02 | 2007-03-28 | 上海甲秀工业设计有限公司 | Cell phone having range finding function |
JP2012117975A (en) * | 2010-12-02 | 2012-06-21 | Ntt Docomo Inc | Mobile terminal, system and method |
CN102857633A (en) * | 2012-08-15 | 2013-01-02 | 苏州启智机电技术有限公司 | Mobile phone ranging system |
CN103217144A (en) * | 2013-04-10 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method and device for monitoring height of building and distance between buildings |
CN103398696A (en) * | 2013-07-15 | 2013-11-20 | 深圳市金立通信设备有限公司 | Method for measuring distance of terminal camera and terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8031236B2 (en) * | 2006-11-21 | 2011-10-04 | Samsung Electronics Co., Ltd. | White detecting method and apparatus using the same |
JP5186873B2 (en) * | 2007-10-10 | 2013-04-24 | セイコーエプソン株式会社 | POSITIONING METHOD, PROGRAM, POSITIONING DEVICE, AND ELECTRONIC DEVICE |
-
2014
- 2014-01-13 CN CN201410012883.8A patent/CN103759701B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2884724Y (en) * | 2005-11-02 | 2007-03-28 | 上海甲秀工业设计有限公司 | Cell phone having range finding function |
JP2012117975A (en) * | 2010-12-02 | 2012-06-21 | Ntt Docomo Inc | Mobile terminal, system and method |
CN102857633A (en) * | 2012-08-15 | 2013-01-02 | 苏州启智机电技术有限公司 | Mobile phone ranging system |
CN103217144A (en) * | 2013-04-10 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method and device for monitoring height of building and distance between buildings |
CN103398696A (en) * | 2013-07-15 | 2013-11-20 | 深圳市金立通信设备有限公司 | Method for measuring distance of terminal camera and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103759701A (en) | 2014-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103759701B (en) | Based on the cell phone intelligent distance-finding method of Android platform | |
CN104501720B (en) | Non-contact object size and range image measuring instrument | |
CN108871266B (en) | Automatic settlement monitoring method based on intermediate method triangle elevation method | |
US20130002854A1 (en) | Marking methods, apparatus and systems including optical flow-based dead reckoning features | |
CN106092059B (en) | A kind of works Horizontal Displacement Monitoring Method based on multi-point fitting | |
CN102506737A (en) | Pipeline detection device | |
JP2009210388A5 (en) | ||
CN105937878A (en) | Indoor distance measuring method | |
CN105423086B (en) | A kind of intelligent accurate leveling measures bearing | |
CN103090845B (en) | Remote distance measurement method based on plurality of images | |
CN101963500A (en) | Computer vision large-scale distance measuring method and portable distance measurer for applying same | |
CN102980510A (en) | Laser optical ruler image tree measuring device and method thereof | |
EP2704855A2 (en) | Marking methods, apparatus and systems including optical flow-based dead reckoning features | |
CN103983235A (en) | Method for measuring engineering parameters of base station antenna | |
CN102072720A (en) | High accurately measuring method for in-tube liquid level elevation of photoelectric and tubular settlement meter | |
CN104359422B (en) | A kind of device and method of borehole camera detection cavity geometric profile | |
CN104567816B (en) | Tree measuring method for panoramic normal-case forest sample plot photographing mobile phone | |
CN109029263A (en) | A kind of technical method photogrammetric for underground pipe well monolithic | |
US11694357B2 (en) | Solar photovoltaic measurement, and related methods and computer-readable media | |
CN105180906B (en) | Underground photogrammeter and its mapping method | |
CN205449052U (en) | Device for measuring building inclination angle by laser | |
KR20120006911A (en) | Distance, height and length measurement method using mobile communication terminal | |
CN102572066A (en) | Handheld electronic device with distance measurement function and distance measurement method of handheld electronic device | |
CN103884332B (en) | A kind of barrier decision method, device and mobile electronic device | |
CN109596102A (en) | A kind of technical method photogrammetric for underground pipe well monolithic |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160309 Termination date: 20180113 |