CN103759701A - Intelligent cell phone ranging method based on android platform - Google Patents
Intelligent cell phone ranging method based on android platform Download PDFInfo
- Publication number
- CN103759701A CN103759701A CN201410012883.8A CN201410012883A CN103759701A CN 103759701 A CN103759701 A CN 103759701A CN 201410012883 A CN201410012883 A CN 201410012883A CN 103759701 A CN103759701 A CN 103759701A
- Authority
- CN
- China
- Prior art keywords
- distance
- measurement
- cell phone
- mobile phone
- ground
- 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
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 an intelligent cell phone ranging method based on an android platform. The ranging method comprises the following steps: photographing a measurement point by a camera of a cell phone, calculating the horizontal distance between a measurement object and the measurement point, the distance between any two points in the same plane, the distance between the object and the ground and the distance between any two points in the vertical surface by a program according to the roll value and the pitch value of a directional sensor of the cell phone; correcting possible errors of the measurement value during calculation, wherein the measurement error is within 1% generally. The android platform provided by the invention can be installed in the cell phone as an application, and the ranging method is simple to operate, convenient to use, practical in function, accurate in ranging, and wide in application area.
Description
Technical field
The present invention relates to a kind of mobile phone with Android platform, carry out the method for level range finding, vertical range finding.
Background technology
Range observation is work and the life demand of often encountering, little to height in daily life measure, design in domestic layout measures, greatly to the construction survey on line measurement, the building site of competition area etc.The most frequently used distance-finding method is to be that survey instrument is measured with chi, when the distance of surveying long, far away, or be difficult near time, can bring difficulty to measurement.In engineering survey, the optics such as conventional infrared ray, sonar or Principles of Acoustics are measured, and now, need professional measurement apparatus.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: the range finding (patent 200910100708.3) of moving based on mobile phone, utilize mobile device and distance measurement method (patent 200510126252.x) that sound wave finds range, have the mobile phone range finding (patent CN102857633A) based on CCD imaging, the range finding (patent CN201509234U) based on infrared function etc.
Summary of the invention
The object of the present invention is to provide a kind of measured value cell phone intelligent distance-finding method based on Android platform accurately.
Technical solution of the present invention is:
A cell phone intelligent distance-finding method based on Android platform, is characterized in that: measuring process is as follows:
(1) open camera, take range finding end points;
(2) obtain the value of direction sensor in mobile phone;
(3) calculated level or vertical measuring distance;
(4) carry out error correction.
The measuring process of horizontal range is as follows:
(1) take with the pin of measuring people at conplane measurement point;
(2) roll and the pitch value of the direction sensor in extraction 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 adjustment, method is as follows:
When fb=1/ tan (b) <=1.33, error wc
l=0;
When 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) one end of the shooting vertical range of surveying, this end points and range finding people's pin is in same level; By the method for surveying horizontal range, obtain the distance L between shooting point and the level of vertical plane, containing error, just imitating;
(2) take the other end of the vertical range of surveying, roll and the pitch value of extraction direction sensor, obtain the elevation angle c of camera and measurement point line and surface level;
c?=?90?+?acrsin?(cos?(?roll?×π/180)?×?cos(pitch?×π/180)?)
(3) calculate the distance H between two measurement points
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 adjusted 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 distance between two points comprises the following steps: arbitrarily
(1) first on measurement plane is apart from shooting person's distance L 1;
(2) second point on measurement plane is apart from shooting person's distance L 2;
(3) by direction sensor, obtain the angle a=b1+b2 between twice measurement, the mould of angle when wherein b1, b2 are respectively measurement L1 and L2 between camera and sea level to 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 h 1 on ground;
(2) distance h 2 on measurement second point and ground;
(3) calculate distance H between 2=| h1-h2 |.
The present invention finds range with direction sensor and the gyroscope of mobile phone, and principle is upper all different with existing method from realization.In measurement, considered that error just imitating, made 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 between any two points in plane.
Embodiment
1. the measurement of distance, follows these steps to carry out generally:
(1) open mobile phone, State selective measurements 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) default measurement point is apart from the height h on ground.
(3) open camera, take measurement point.
(4) obtain the value of mobile phone inner sensor.
(5) calculated level or vertical measuring distance.
(6) carry out error correction.
Wherein, (4), (5), (6) are carried out automatically by program.
2. the measurement of horizontal range.
As measure the distance between people and door, step is as follows:
(1) State selective measurements pattern is horizontal range, and this pattern is default mode.
(2) take with the pin of measuring people at conplane measurement point.
(3) mobile phone shows the horizontal range between range finding people and the measurement point that is followed these steps to calculate by program:
1) (roll is the angle on mobile phone y direction and ground for the roll of the direction sensor in extraction mobile phone and pitch value; 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) be calculated as follows the horizontal range L between camera point and measurement point,
L?=?h?/?tan?(b)
Wherein, h is the distance of mobile phone apart from ground, as is taken as 1.35m.
3) error adjustment
Correction measured value is: L '=L/(1+wc
l)
When fb=1/ tan (b) <=1.33, error wc
l=0;
When fb=1/ tan (b) >1.33, wc
l=(fb-1.33)/11.0
Measurement result as shown in Figure 6, is 2.3m; Actual range is 2.3m, and both measurement results are consistent.
3. the measurement of vertical range, is measured as example with people's height, and step is as follows:
(1) State selective measurements pattern is " measurement vertical range ";
(2) end points of shooting vertical range
(3) end of shooting vertical range
(4) screen shows the measurement result that is followed these steps to calculate by program in real time:
1) by the method for surveying horizontal range, the horizontal range L(that obtains shooting point and vertical plane is just being imitated containing error);
2) while extracting end and measure, roll and the pitch value of direction sensor, obtain the elevation angle c of camera and measurement point line and surface level,
c?=?90?+?acrsin?(cos?(roll×π/180)?cos(pitch×π/180)?)
3) calculate the vertical range H between 2
H=?(?h?+|?L?/?(1+wc
h)?|?)?×?tan?(c)
Wherein, wc
hfor error adjusted 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 distance between two points arbitrarily in plane
As measure two distances between tree, step is as follows:
(1) the shooting person's of first A distance of measurement distance L 1;
(2) the shooting person's of measurement second point B distance distance L 2;
(3) by direction sensor, obtain the angle a=b1+b2 between twice measurement, the mould of angle when wherein b1, b2 are respectively measurement L1 and L2 between camera and sea level to 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 measure the length of a certain trunk, step is as follows:
(1) distance h 1 on first A of measurement and ground;
(2) distance h 2 on measurement second point B and ground;
Distance h between (3) two=| h1-h2 |.
Claims (5)
1. the cell phone intelligent distance-finding method based on Android platform, is characterized in that: measuring process is as follows:
(1) open camera, take range finding end points;
(2) obtain the value of direction sensor in mobile phone;
(3) calculated level or vertical measuring distance;
(4) carry out error correction.
2. the cell phone intelligent distance-finding method based on Android platform according to claim 1, is characterized in that: the measuring process of horizontal range is as follows:
(1) take with the pin of measuring people at conplane measurement point;
(2) roll and the pitch value of the direction sensor in extraction 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 adjustment, method is as follows:
When fb=1/ tan (b) <=1.33, error wc
l=0;
When fb=1/ tan (b) >1.33, wc
l=(fb-1.33)/11.0
After revising, measured value is: L '=L/(1+wc
l).
3. according to the cell phone intelligent distance-finding method based on Android platform of claim 1, it is characterized in that: the measurement of vertical range comprises the following steps:
(1) one end of the shooting vertical range of surveying, this end points and range finding people's pin is in same level; By the method for surveying horizontal range, obtain the distance L between shooting point and the level of vertical plane, containing error, just imitating;
(2) take the other end of the vertical range of surveying, roll and the pitch value of extraction direction sensor, obtain the elevation angle c of camera and measurement point line and surface level;
c?=?90?+?acrsin?(cos?(?roll?×π/180)?×?cos(pitch?×π/180)?)
(3) calculate the distance H between two measurement points
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 adjusted 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.
4. the cell phone intelligent distance-finding method based on Android platform according to claim 1, is characterized in that: in plane, the measurement of distance between two points comprises the following steps: arbitrarily
(1) first on measurement plane is apart from shooting person's distance L 1;
(2) second point on measurement plane is apart from shooting person's distance L 2;
(3) by direction sensor, obtain the angle a=b1+b2 between twice measurement, the mould of angle when wherein b1, b2 are respectively measurement L1 and L2 between camera and sea level to 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 cell phone intelligent distance-finding method based on Android platform according to claim 1, is characterized in that: the measurement of any two points vertical range comprises the following steps:
(1) measure first with the distance h 1 on ground;
(2) distance h 2 on measurement second point and ground;
(3) calculate distance H between 2=| h1-h2 |.
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 true CN103759701A (en) | 2014-04-30 |
CN103759701B 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) |
Cited By (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 |
CN105596006A (en) * | 2015-12-16 | 2016-05-25 | 上海斐讯数据通信技术有限公司 | Stature measuring method and device and electronic equipment with collection device |
CN105937878A (en) * | 2016-06-13 | 2016-09-14 | 歌尔科技有限公司 | Indoor distance measuring method |
CN109363684A (en) * | 2018-10-30 | 2019-02-22 | 北京旷视科技有限公司 | Measurement method, device, mobile device and computer readable storage medium |
US10262197B2 (en) | 2015-11-17 | 2019-04-16 | Huawei Technologies Co., Ltd. | Gesture-based object measurement method and apparatus |
WO2022052189A1 (en) * | 2020-09-09 | 2022-03-17 | 清华大学 | Method and device for acquiring external features of animal, and computer device |
CN116385523A (en) * | 2019-03-26 | 2023-07-04 | 华为技术有限公司 | Distance measurement method and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2884724Y (en) * | 2005-11-02 | 2007-03-28 | 上海甲秀工业设计有限公司 | Cell phone having range finding function |
US20080117308A1 (en) * | 2006-11-21 | 2008-05-22 | Samsung Electronics Co., Ltd. | White detecting method and apparatus using the same |
JP2009092540A (en) * | 2007-10-10 | 2009-04-30 | Seiko Epson Corp | Positioning method, program, positioning apparatus, and electronic device |
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 |
-
2014
- 2014-01-13 CN CN201410012883.8A patent/CN103759701B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2884724Y (en) * | 2005-11-02 | 2007-03-28 | 上海甲秀工业设计有限公司 | Cell phone having range finding function |
US20080117308A1 (en) * | 2006-11-21 | 2008-05-22 | Samsung Electronics Co., Ltd. | White detecting method and apparatus using the same |
JP2009092540A (en) * | 2007-10-10 | 2009-04-30 | Seiko Epson Corp | Positioning method, program, positioning apparatus, and electronic device |
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 |
Cited By (11)
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 |
US10262197B2 (en) | 2015-11-17 | 2019-04-16 | Huawei Technologies Co., Ltd. | Gesture-based object measurement method and apparatus |
CN105596006A (en) * | 2015-12-16 | 2016-05-25 | 上海斐讯数据通信技术有限公司 | Stature measuring method and device and electronic equipment with collection device |
CN105937878A (en) * | 2016-06-13 | 2016-09-14 | 歌尔科技有限公司 | Indoor distance measuring method |
CN105937878B (en) * | 2016-06-13 | 2018-10-26 | 歌尔科技有限公司 | A kind of interior distance measuring method |
JP2019525278A (en) * | 2016-06-13 | 2019-09-05 | ゴーアテック テクノロジー カンパニー リミテッド | Indoor ranging method |
US10769802B2 (en) | 2016-06-13 | 2020-09-08 | Goertek Technology Co., Ltd. | Indoor distance measurement 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 |
US11847789B2 (en) | 2019-03-26 | 2023-12-19 | Huawei Technologies Co., Ltd. | Distance measurement method and electronic device |
WO2022052189A1 (en) * | 2020-09-09 | 2022-03-17 | 清华大学 | Method and device for acquiring external features of animal, and computer device |
Also Published As
Publication number | Publication date |
---|---|
CN103759701B (en) | 2016-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103759701B (en) | Based on the cell phone intelligent distance-finding method of Android platform | |
EP3631360B1 (en) | Infrastructure positioning camera system | |
CN106092059B (en) | A kind of works Horizontal Displacement Monitoring Method based on multi-point fitting | |
CN108871266B (en) | Automatic settlement monitoring method based on intermediate method triangle elevation method | |
WO2016131203A1 (en) | Ranging system and ranging method | |
CN109212540A (en) | Distance measuring method, device and readable storage medium storing program for executing based on laser radar system | |
US10300573B2 (en) | Measurement, layout, marking, firestop stick | |
CN104835141B (en) | The mobile terminal and method of three-dimensional model are established in a kind of laser ranging | |
JP2009210388A5 (en) | ||
CN102589533B (en) | Method for measuring hidden point position coordinates by utilizing total-station instrument | |
JP2014098683A (en) | Method for remotely measuring crack | |
CN105937878A (en) | Indoor distance measuring method | |
CN103090845B (en) | Remote distance measurement method based on plurality of images | |
CN104833342B (en) | Mobile terminal and method of establishing stereoscopic model through multipoint distance measurement | |
CN103983235A (en) | Method for measuring engineering parameters of base station antenna | |
CN104567816B (en) | Tree measuring method for panoramic normal-case forest sample plot photographing mobile phone | |
CN104359422B (en) | A kind of device and method of borehole camera detection cavity geometric profile | |
CN101963500A (en) | Computer vision large-scale distance measuring method and portable distance measurer for applying same | |
CN103644895B (en) | A kind of digital camera coordinates the method for mapping of ancient architecture of measuring tool | |
CN111307046A (en) | Tree height measuring method based on hemispherical image | |
CN105627916B (en) | A method of it establishing tracker geographic coordinate system and six degree of freedom measures | |
CN105180906B (en) | Underground photogrammeter and its mapping method | |
CN109029263A (en) | A kind of technical method photogrammetric for underground pipe well monolithic | |
CN205449052U (en) | Device at laser survey building angle of inclination | |
KR20120006911A (en) | Distance, height and length measurement method using mobile communication terminal |
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 |