CN108469248A - Distance measuring method and range unit - Google Patents
Distance measuring method and range unit Download PDFInfo
- Publication number
- CN108469248A CN108469248A CN201810132734.3A CN201810132734A CN108469248A CN 108469248 A CN108469248 A CN 108469248A CN 201810132734 A CN201810132734 A CN 201810132734A CN 108469248 A CN108469248 A CN 108469248A
- Authority
- CN
- China
- Prior art keywords
- points
- state angle
- angle
- terminal
- distance
- 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
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
- G01C3/10—Measuring distances in line of sight; Optical rangefinders using a parallactic triangle with variable angles and a base of fixed length in the observation station, e.g. in the instrument
- G01C3/18—Measuring distances in line of sight; Optical rangefinders using a parallactic triangle with variable angles and a base of fixed length in the observation station, e.g. in the instrument with one observation point at each end of the base
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Image Analysis (AREA)
Abstract
The present invention relates to ranging technology fields, disclose a kind of distance measuring method and range unit, first state angle and second state angle of the terminal in first position B points when, which are obtained, by detection calculates the angle α 1 between line segment A1B and line segment BC, third state angle and fourth state angle of the terminal in the second position C points when, which are obtained, by detection calculates the angle theta 1 between line segment A1C and line segment BC, and pass through the distance x of the acquisition first position B points to the second position C points, eventually by α 1, θ 1 and x calculates the distance between tested point and first position B points in position A1 LA1B, the relatively low problem of measurement accuracy caused by avoid determinand distance is calculated by image distance, to improve the precision of terminal measurement distance.
Description
Technical field
The present invention relates to ranging technology fields, more particularly to a kind of distance measuring method and range unit.
Background technology
Currently, the terminals such as mobile phone or mobile tablet are generally configured with the functions such as shooting and online, with the development of science and technology, more next
More terminals are also equipped with distance measurement function.When existing terminal measurement distance, generally by its camera focusing when image distance
With the mathematical relationship of lens focus come the object distance that converts (i.e. the distance between terminal and determinand), but the essence of this distance measuring method
Spend it is relatively low, especially when determinand apart from camera farther out when, the variation pole unobvious of image distance, so as to cause image distance meter is passed through
The measurement accuracy for calculating determinand distance is relatively low.
Invention content
The object of the present invention is to provide a kind of distance measuring method and range units, can solve existing terminal and pass through image distance
The relatively low technical problem of the measurement accuracy of determinand distance is calculated, to improve the precision of terminal measurement distance.
In order to solve the above technical problem, the present invention provides a kind of distance measuring methods, include the following steps:
Detection obtains first state angle when terminal is in first position B points;It is described under the first state angle
Terminal can capture the tested point in position A1 by camera, and the shadow of the tested point in position A1 captured
The position of reference point H of the image position in camera picture;
Detection obtains the second state angle when terminal is in first position B points;It is described under second state angle
Terminal can capture second position C points by camera, and the image of the second position C points captured is located at camera picture
In reference point H position;
Detect the third state angle when terminal is in second position C points;It is described under the third state angle
Terminal can capture the tested point in position A1 by camera, and the shadow of the tested point in position A1 captured
The position of reference point H of the image position in camera picture;
Detection obtains the 4th state angle when terminal is in second position C points;It is described under the 4th state angle
Terminal can capture first position B points by camera, and the image of the first position B points captured is located at camera picture
In reference point H position;
According to the first state angle and second state angle, the angle α between line segment A1B and line segment BC is calculated
1;
According to the third state angle and the 4th state angle, the angle theta between line segment A1C and line segment BC is calculated
1;
Obtain the first position B points to the second position C points distance x;
According to the α 1, the θ 1 and the x, the tested point in position A1 and the are calculated by trigonometric function
The distance between 1 position B points LA1B;
Wherein, 0 °<α1<180 °, 0 °<θ1<180°.
Preferably, described according to the α 1, the θ 1 and the x, by trigonometric function calculate described in be in
The tested point of position A1 and the calculation formula of the distance between first position B points are:
LA1B=xsin α 1cot (180 ° of-α 1- θ 1)+xcos α 1.
Preferably, the distance measuring method is further comprising the steps of:
According to the α 1, the θ 1 and the x, the tested point in position A1 and the are calculated by trigonometric function
The distance between 2 position C points LA1C。
Preferably, described according to the α 1, the θ 1 and the x, by trigonometric function calculate described in be in
The distance between the tested point and second position C points of position A1 LA1CCalculation formula be:
Preferably, the distance measuring method is further comprising the steps of:
Detection obtains the 5th state angle when terminal is in first position B points;It is described under the 5th state angle
Terminal can capture the tested point in position A2 by camera, and the shadow of the tested point in position A2 captured
The position of reference point H of the image position in camera picture;
Detect the 6th state angle when the terminal is in second position C points;It is described under the 6th state angle
Terminal can capture the tested point in position A2 by camera, and the tested point captured is in the shadow of position A2
The position of reference point H of the image position in camera picture;
According to the 5th state angle and second state angle, the angle α between line segment A2B and line segment BC is calculated
2;
According to the 6th state angle and the 4th state angle, the angle theta between line segment A2C and line segment BC is calculated
2;
According to the α 2, the θ 2 and the x, the tested point in position A2 and the are calculated by trigonometric function
The distance between 1 position B points LA2B;
According to the α 1, the α 2, the LA1BAnd the LA2B, it is in position A1's by the way that trigonometric function calculating is described
The distance between tested point and the tested point in position A2 LA1A2;
Wherein, 0 °<α2<180 °, 0 °<θ2<180°.
Preferably, described according to the α 1, the α 2, the LA1BAnd the LA2B, pass through trigonometric function meter
Calculate the distance between the tested point in position A1 and the tested point in position A2 LA1A2Calculation formula be:
In order to solve identical technical problem, the present invention also provides a kind of range units, including:
First state angle detection unit, for detecting the first state angle obtained when terminal is in first position B points;
Under the first state angle, the terminal can capture the tested point in position A1 by camera, and capture
The image of the tested point in position A1 is located at the position of the reference point H in camera picture;
Second state angle detection unit, for detecting the second state angle obtained when terminal is in first position B points;
Under second state angle, the terminal can capture second position C points by camera, and described second captured
The image of position C points is located at the position of the reference point H in camera picture;
Third state angle detection unit, for detecting the third state angle when terminal is in second position C points;
Under the third state angle, the terminal can capture the tested point in position A1 by camera, and capture
The image of the tested point in position A1 is located at the position of the reference point H in camera picture;
4th state angle detection unit, for detecting the 4th state angle obtained when terminal is in second position C points;
Under the 4th state angle, the terminal can capture first position B points by camera, and described first captured
The image of position B points is located at the position of the reference point H in camera picture;
First angle computing unit, for according to the first state angle and second state angle, calculating line segment
Angle α 1 between A1B and line segment BC;
Second angle computing unit, for according to the third state angle and the 4th state angle, calculating line segment
Angle theta 1 between A1C and line segment BC;
Distance acquiring unit, the distance x for obtaining the first position B points to the second position C points;
First metrics calculation unit, for according to the α 1, the θ 1 and the x, calculated by trigonometric function described in
The distance between tested point and first position B points in position A1 LA1B;
Wherein, 0 °<α1<180 °, 0 °<θ1<180°.
Preferably, the range unit further includes:
Second distance computing unit, for according to the α 1, the θ 1 and the x, calculated by trigonometric function described in
The distance between tested point and second position C points in position A1 LA1C。
Preferably, the range unit further includes:
5th state angle detection unit, for detecting the 5th state angle obtained when terminal is in first position B points;
Under the 5th state angle, the terminal can capture the tested point in position A2 by camera, and capture
The image of the tested point in position A2 is located at the position of the reference point H in camera picture;
6th state angle detection unit, for detecting the 6th state angle when the terminal is in second position C points;
Under the 6th state angle, the terminal can capture the tested point in position A2 by camera, and capture
The image of the tested point in position A2 is located at the position of the reference point H in camera picture;
Third angle computing unit, for according to the 5th state angle and second state angle, calculating line segment
Angle α 2 between A2B and line segment BC;
Fourth angle computing unit, for according to the 6th state angle and the 4th state angle, calculating line segment
Angle theta 2 between A2C and line segment BC;
Third metrics calculation unit, for according to the α 2, the θ 2 and the x, calculated by trigonometric function described in
The distance between tested point and first position B points in position A2 LA2B;
4th metrics calculation unit, for according to the α 1, the α 2, the LA1BAnd the LA2B, pass through triangle letter
Number calculates the distance between the tested point in position A1 and the tested point in position A2 LA1A2;
Wherein, 0 °<α2<180 °, 0 °<θ2<180°.
Preferably, the distance acquiring unit includes that gyroscope and acceleration transducer or the distance obtain
It includes geomagnetic sensor and acceleration transducer to take unit.
The present invention provides a kind of distance measuring method and range unit, is obtained when terminal is in first position B points by detection
First state angle and the second state angle pass through to calculate the angle α 1 between line segment A1B and line segment BC and detect acquisition terminal
Third state angle and the 4th state angle when in second position C points calculate the angle theta between line segment A1C and line segment BC
1, and by obtaining the first position B points to the distance x of the second position C points, be in eventually by α 1, θ 1 and x calculating
The distance between the tested point and first position B points of position A1 LA1B, surveyed caused by avoid determinand distance is calculated by image distance
The relatively low problem of accuracy of measurement, to improve the precision of terminal measurement distance.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of distance measuring method provided by the invention;
Fig. 2 is the first part of the flow diagram of another embodiment of distance measuring method provided by the invention;
Fig. 3 is the second part of the flow diagram of another embodiment of distance measuring method provided by the invention;
Fig. 4 is the structural schematic diagram of one embodiment of range unit provided by the invention;
Fig. 5 is the structural schematic diagram of another embodiment of range unit provided by the invention;
Fig. 6 is the position signal of the reference point H in the camera picture of one embodiment of distance measuring method provided by the invention
Figure;
Fig. 7 is the instrumentation plan of one embodiment of distance measuring method provided by the invention;
Fig. 8 is the instrumentation plan of another embodiment of distance measuring method provided by the invention;
Wherein, 1, first state angle detection unit;2, the second state angle detection unit;3, third state angle detects
Unit;4, the 4th state angle detection unit;5, first angle computing unit;6, second angle computing unit;7, distance obtains
Unit;8, the first metrics calculation unit;9, second distance computing unit;10, the 5th state angle detection unit;11, the 6th shape
State angle detection unit;12, third angle computing unit;13, fourth angle computing unit;14, third metrics calculation unit;
15, the 4th metrics calculation unit.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
In conjunction with shown in Fig. 1, Fig. 6 and Fig. 7, a kind of distance measuring method of the preferred embodiment of the present invention includes the following steps:
S1, detection obtain first state angle when terminal is in first position B points;Under the first state angle,
The terminal can capture the tested point in position A1 by camera, and the tested point in position A1 captured
Image be located at the position of the reference point H in camera picture;
S2, detection obtain the second state angle when terminal is in first position B points;Under second state angle,
The terminal can capture second position C points by camera, and the image of the second position C points captured is located at camera shooting
The position of reference point H in picture;
S3 detects the third state angle when terminal is in second position C points;Under the third state angle,
The terminal can capture the tested point in position A1 by camera, and the tested point in position A1 captured
Image be located at the position of the reference point H in camera picture;
S4, detection obtain the 4th state angle when terminal is in second position C points;Under the 4th state angle,
The terminal can capture first position B points by camera, and the image of the first position B points captured is located at camera shooting
The position of reference point H in picture;
S5 calculates the folder between line segment A1B and line segment BC according to the first state angle and second state angle
Angle α 1;
S6 calculates the folder between line segment A1C and line segment BC according to the third state angle and the 4th state angle
Angle θ 1;
S7, obtain the first position B points to the second position C points distance x;
S8 calculates the tested point for being in position A1 according to the α 1, the θ 1 and the x by trigonometric function
The distance between first position B points LA1B;
Wherein, 0 °<α1<180 °, 0 °<θ1<180°.
In embodiments of the present invention, it should be noted that the terminal is preferably mobile phone.
In conjunction with shown in Fig. 6 and Fig. 7, in embodiments of the present invention, the reference point H in the camera picture can be the end
The center of the cross dotted line occurred in the picture of end.In capturing the practical application of image of tested point, mobile terminal can be passed through
So that the image of tested point is overlapped with the reference point H in the camera picture, certainly, the shadow of the first position B is captured
The operation of the image of picture and the second position C points is similar with the operation of image of tested point is captured, and does not do herein more superfluous
It states.
In the practical application of the embodiment of the present invention, user can be first in the camera shooting of the first position B points using terminal
Head captures the tested point in position A1, and the image of the tested point in position A1 is made to be located at the ginseng in camera picture
Then the position of examination point H rotates the terminal, and the image of second position C points is made to be located at the reference point H's in camera picture
Position, then, the mobile terminal make the image position of the tested point in position A1 to the second position C points
The position of reference point H in camera picture finally rotates the terminal, and the image of the first position B points is located at
The position of reference point H in camera picture, so as to complete measure the tested point in position A1 and first position B points it
Between distance LA1BOperation.
In embodiments of the present invention, first state angle when terminal is in first position B points and the are obtained by detection
Two-state angle calculates the angle α 1 between line segment A1B and line segment BC, when obtaining terminal by detection and being in second position C points
Third state angle and the 4th state angle calculate the angle theta 1 between line segment A1C and line segment BC, and by described in acquisition
First position B points to the second position C points distance x, eventually by α 1, θ 1 and x calculate in position A1 tested point with
The distance between first position B points LA1B, asked to avoid by the way that measurement accuracy is lower caused by image distance calculating determinand distance
Topic, to improve the precision of terminal measurement distance.
In embodiments of the present invention, described according to the α 1, the θ 1 and the x, calculated by trigonometric function described in
The distance between tested point and first position B points in position A1 LA1BCalculation formula be:
LA1B=xsin α 1cot (180 ° of-α 1- θ 1)+xcos α 1.
It is shown in Figure 7, above-mentioned formula is derived in detail below:
The tested point in position A1, the first position B points and the second position C points are triangle
A1BC makees the vertical line CD of line segment A1B by C points, and line segment CD and line segment A1B intersects at D points, β 1 is in triangle A1BC
Angle between line segment A1B and line segment A1C;
In triangle BCD, it can be obtained according to trigonometric function:
LBD=x | cos α 1 |=xcos α 1;
LCD=x | sin α 1 |=xsin α 1;
In triangle A1CD, it can be obtained according to trigonometric function:
LA1D=LCD| cot β 1 |=xsin α 1cot β 1;
Therefore it in triangle A1BC, can calculate:
LA1B=LA1D+LBD=xsin α 1cot β 1+xcos α 1;
Due to triangle interior angle and be 180 °, in triangle A1BC, there is β 1=180 °-α 1- θ 1, therefore, LA1B
=LA1D+LBD=xsin α 1cot (180 ° of-α 1- θ 1)+xcos α 1.
In conjunction with shown in Fig. 2, Fig. 3, Fig. 6 and Fig. 7, in embodiments of the present invention, the distance measuring method is further comprising the steps of:
S9 calculates the tested point for being in position A1 according to the α 1, the θ 1 and the x by trigonometric function
The distance between second position C points LA1C。
In embodiments of the present invention, described according to the α 1, the θ 1 and the x, calculated by trigonometric function described in
The distance between tested point and second position C points in position A1 LA1CCalculation formula be:
It is shown in Figure 7, above-mentioned formula is derived in detail below:
In conjunction with above-mentioned calculating LA1BThe derivation of formula can be obtained according to trigonometric function in triangle A1CD:
In conjunction with shown in Fig. 2, Fig. 3 and Fig. 6 to Fig. 8, in embodiments of the present invention, the distance measuring method further includes following step
Suddenly:
S10, detection obtain the 5th state angle when terminal is in first position B points;Under the 5th state angle,
The terminal can capture the tested point in position A2 by camera, and the tested point captured is in position A2's
Image be located at the position of the reference point H in camera picture;
S11 detects the 6th state angle when the terminal is in second position C points;Under the 6th state angle,
The terminal can capture the tested point in position A2 by camera, and the tested point in position A2 captured
Image be located at the position of the reference point H in camera picture;
S12 is calculated between line segment A2B and line segment BC according to the 5th state angle and second state angle
Angle α 2;
S13 is calculated between line segment A2C and line segment BC according to the 6th state angle and the 4th state angle
Angle theta 2;
S14 calculates the tested point for being in position A2 according to the α 2, the θ 2 and the x by trigonometric function
The distance between first position B points LA2B;
S15, according to the α 1, the α 2, the LA1BAnd the LA2B, calculated by trigonometric function described in position
The distance between the tested point of A1 and the tested point in position A2 LA1A2;
Wherein, 0 °<α2<180 °, 0 °<θ2<180°.
In embodiments of the present invention, described according to the α 2, the θ 2 and the x, calculated by trigonometric function described in
The distance between tested point and first position B points in position A2 LA2BCalculation formula and the LA1BCalculation formula class
Seemingly, it does not do and more repeats herein.
In embodiments of the present invention, described according to the α 1, the α 2, the LA1BAnd the LA2B, pass through triangle letter
Number calculates the distance between the tested point in position A1 and the tested point in position A2 LA1A2Calculation formula
For:
It is shown in Figure 8, above-mentioned formula is derived in detail below:
It is the tested point in position A1, described triangle in position A2 and the first position B points
A1BA2 can be obtained in triangle A1BA2 according to the cosine law:
It is apparent that it is shown in Figure 8, when the tested point in position A1 and the point to be measured in position A2
When the same side of line segment BC, ∠ A1BA2=| α 1- α 2 |.
Similarly, when the tested point in position A1 and the tested point in position A2 are located at the same of line segment BC
When side, ∠ A1BA2=| α 1+ α 2 |, do not do more repeat herein.
In conjunction with shown in Fig. 4, Fig. 6 and Fig. 7, in order to solve identical technical problem, the present invention also provides a kind of range unit,
Including:
First state angle detection unit 1, for detecting the first state angle obtained when terminal is in first position B points
Degree;Under the first state angle, the terminal can capture the tested point in position A1 by camera, and capture
The image of the tested point in position A1 be located at the position of the reference point H in camera picture;
Second state angle detection unit 2, for detecting the second state angle obtained when terminal is in first position B points
Degree;Under second state angle, the terminal can capture second position C points by camera, and capture described
The image of second position C points is located at the position of the reference point H in camera picture;
Third state angle detection unit 3, for detecting the third state angle when terminal is in second position C points
Degree;Under the third state angle, the terminal can capture the tested point in position A1 by camera, and capture
The image of the tested point in position A1 be located at the position of the reference point H in camera picture;
4th state angle detection unit 4, for detecting the 4th state angle obtained when terminal is in second position C points
Degree;Under the 4th state angle, the terminal can capture first position B points by camera, and capture described
The image of first position B points is located at the position of the reference point H in camera picture;
First angle computing unit 5, for according to the first state angle and second state angle, calculating line segment
Angle α 1 between A1B and line segment BC;
Second angle computing unit 6, for according to the third state angle and the 4th state angle, calculating line segment
Angle theta 1 between A1C and line segment BC;
Distance acquiring unit 7, the distance x for obtaining the first position B points to the second position C points;
First metrics calculation unit 8, for according to the α 1, the θ 1 and the x, calculated by trigonometric function described in
The distance between tested point and first position B points in position A1 LA1B;
Wherein, 0 °<α1<180 °, 0 °<θ1<180°.
In conjunction with shown in Fig. 5 to Fig. 7, in embodiments of the present invention, the range unit further includes:
Second distance computing unit 9, for according to the α 1, the θ 1 and the x, calculated by trigonometric function described in
The distance between tested point and second position C points in position A1 LA1C。
In embodiments of the present invention, the first state angle detection unit 1, the second state angle detection unit 2,
The third state angle detection unit 3 and the 4th state angle detection unit 4 may each comprise gyroscope or earth magnetism passes
Sensor.Certainly, the first state angle, second state angle, the third state angle and the 4th state angle
Degree can also be obtained by GPS technology, not do more repeating herein.
In conjunction with shown in Fig. 5 to Fig. 8, in embodiments of the present invention, the range unit further includes:
5th state angle detection unit 10, for detecting the 5th state angle obtained when terminal is in first position B points
Degree;Under the 5th state angle, the terminal can capture the tested point in position A2 by camera, and capture
The image of the tested point in position A2 be located at the position of the reference point H in camera picture;
6th state angle detection unit 11, for detecting the 6th state angle when the terminal is in second position C points
Degree;Under the 6th state angle, the terminal can capture the tested point in position A2 by camera, and capture
The image of the tested point in position A2 be located at the position of the reference point H in camera picture;
Third angle computing unit 12, for according to the 5th state angle and second state angle, calculating line
Angle α 2 between section A2B and line segment BC;
Fourth angle computing unit 13, for according to the 6th state angle and the 4th state angle, calculating line
Angle theta 2 between section A2C and line segment BC;
Third metrics calculation unit 14, for according to the α 2, the θ 2 and the x, institute to be calculated by trigonometric function
State the distance between tested point and the first position B points in position A2 LA2B;
4th metrics calculation unit 15, for according to the α 1, the α 2, the LA1BAnd the LA2B, pass through triangle
Function calculates the distance between the tested point in position A1 and the tested point in position A2 LA1A2;
Wherein, 0 °<α2<180 °, 0 °<θ2<180°.
In embodiments of the present invention, the 5th state angle detection unit 10 and the 6th state angle detection unit
11 may each comprise gyroscope or geomagnetic sensor.Certainly, the 5th state angle and the 6th state angle can be with
It is obtained by GPS technology, does not do more repeating herein.
In embodiments of the present invention, the distance acquiring unit 7 include gyroscope and acceleration transducer or it is described away from
Include geomagnetic sensor and acceleration transducer from acquiring unit 7.It is moved to from the first position B points in the terminal described
Second position C points or from during the second position C points are moved to the first position B points, can pass through gyroscope
The first position B points are obtained to the second position C points distance x with acceleration transducer detection, can also pass through earth magnetism
Sensor obtains the first position B points to the second position C points distance x with acceleration transducer, it is, of course, also possible to logical
It crosses GPS technology and obtains the first position B points to the distance x of the second position C points, do not do more repeat herein.
In conjunction with shown in Fig. 6 to Fig. 8, in the practical application of the embodiment of the present invention, user can be first in the first position B
The camera of point using terminal captures the tested point in position A1, and makes the image position of the tested point in position A1
Then the position of reference point H in camera picture rotates the terminal, and the image of second position C points is made to be located at camera shooting
The position of reference point H in picture, then, the mobile terminal make described in position A1 to the second position C points
The image of tested point be located at the position of the reference point H in camera picture, finally rotate the terminal, and make described first
The image for setting B points is located at the position of the reference point H in camera picture, so as to complete the tested point for being in position A1 is measured
The distance between first position B points LA1BOperation;The tested point in position A2 and first position can similarly be measured
The distance between B points LA2B, finally, terminal can also calculate the tested point in position A1 and described according to the cosine law
The distance between tested point in position A2 LA1A2。
To sum up, a kind of distance measuring method of offer of the embodiment of the present invention and range unit obtain terminal by detection and are in first
First state angle and the second state angle when position B points calculate the angle α 1 between line segment A1B and line segment BC, pass through inspection
It surveys and obtains third state angle and fourth state angle of the terminal in the second position C points when and calculate line segment A1C and line segment BC
Between angle theta 1, and by obtain the first position B points to the second position C points distance x, eventually by α 1, θ 1
The distance between tested point and the first position B points in position A1 L is calculated with xA1B, determinand is calculated to avoid by image distance
The relatively low problem of measurement accuracy caused by distance, to improve the precision of terminal measurement distance.
In addition, distance measuring method provided by the invention and range unit are avoided calculates determinand distance by image distance, therefore
Its measurement process and the focusing accuracy of camera are simultaneously irrelevant, while can be suitable for long range or short-range ranging;This
Outside, since distance measuring method provided by the invention and range unit only need to obtain calculating parameter by the sensor of terminal itself, because
This measures reference length without first passing through additional tool in advance, converts without the visual angle of the camera lens using terminal, therefore
Terminal suitable for the camera lens of different visual angles of arranging in pairs or groups, the camera of different pixels and different apparent sizes.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, without departing from the technical principles of the invention, several improvement and replacement can also be made, these improve and replace
Also it should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of distance measuring method, which is characterized in that include the following steps:
Detection obtains first state angle when terminal is in first position B points;Under the first state angle, the terminal
The image position for the tested point in position A1 that the tested point in position A1 can be captured by camera, and captured
The position of reference point H in camera picture;
Detection obtains the second state angle when terminal is in first position B points;Under second state angle, the terminal
The image for the second position C points that C points in the second position can be captured by camera, and captured is located in camera picture
The position of reference point H;
Detect the third state angle when terminal is in second position C points;Under the third state angle, the terminal
The image position for the tested point in position A1 that the tested point in position A1 can be captured by camera, and captured
The position of reference point H in camera picture;
Detection obtains the 4th state angle when terminal is in second position C points;Under the 4th state angle, the terminal
The image for the first position B points that B points in first position can be captured by camera, and captured is located in camera picture
The position of reference point H;
According to the first state angle and second state angle, the angle α 1 between line segment A1B and line segment BC is calculated;
According to the third state angle and the 4th state angle, the angle theta 1 between line segment A1C and line segment BC is calculated;
Obtain the first position B points to the second position C points distance x;
According to the α 1, the θ 1 and the x, the tested point in position A1 and first are calculated by trigonometric function
Set the distance between B points LA1B;
Wherein, 0 °<α1<180 °, 0 °<θ1<180°.
2. distance measuring method as described in claim 1, which is characterized in that it is described according to the α 1, the θ 1 and the x, lead to
It crosses trigonometric function and calculates the calculation formula of the tested point and the distance between first position B points in position A1 and be:
LA1B=xsin α 1cot (180 ° of-α 1- θ 1)+x cos α 1.
3. distance measuring method as described in claim 1, which is characterized in that the distance measuring method is further comprising the steps of:
According to the α 1, the θ 1 and the x, the tested point and second for being in position A1 is calculated by trigonometric function
Set the distance between C points LA1C。
4. distance measuring method as claimed in claim 3, which is characterized in that it is described according to the α 1, the θ 1 and the x, lead to
It crosses trigonometric function and calculates the distance between the tested point in position A1 and second position C points LA1CCalculation formula be:
5. distance measuring method according to any one of claims 1-4, which is characterized in that the distance measuring method further includes following step
Suddenly:
Detection obtains the 5th state angle when terminal is in first position B points;Under the 5th state angle, the terminal
The image position for the tested point in position A2 that the tested point in position A2 can be captured by camera, and captured
The position of reference point H in camera picture;
Detect the 6th state angle when the terminal is in second position C points;Under the 6th state angle, the terminal
The image position for the tested point in position A2 that the tested point in position A2 can be captured by camera, and captured
The position of reference point H in camera picture;
According to the 5th state angle and second state angle, the angle α 2 between line segment A2B and line segment BC is calculated;
According to the 6th state angle and the 4th state angle, the angle theta 2 between line segment A2C and line segment BC is calculated;
According to the α 2, the θ 2 and the x, the tested point in position A2 and first are calculated by trigonometric function
Set the distance between B points LA2B;
According to the α 1, the α 2, the LA1BAnd the LA2B, calculated by trigonometric function described to be measured in position A1
The distance between point and the tested point in position A2 LA1A2;
Wherein, 0 °<α2<180 °, 0 °<θ2<180°.
6. distance measuring method as claimed in claim 5, which is characterized in that described according to the α 1, the α 2, the LA1BAnd
The LA2B, calculated between the tested point and the tested point in position A2 in position A1 by trigonometric function
Distance LA1A2Calculation formula be:
7. a kind of range unit, which is characterized in that including:
First state angle detection unit, for detecting the first state angle obtained when terminal is in first position B points;Institute
It states under first state angle, the terminal can capture the tested point in position A1 by camera, and capture described
The image of tested point in position A1 is located at the position of the reference point H in camera picture;
Second state angle detection unit, for detecting the second state angle obtained when terminal is in first position B points;Institute
It states under the second state angle, the terminal can capture second position C points by camera, and the second position captured
The image of C points is located at the position of the reference point H in camera picture;
Third state angle detection unit, for detecting the third state angle when terminal is in second position C points;Institute
It states under third state angle, the terminal can capture the tested point in position A1 by camera, and capture described
The image of tested point in position A1 is located at the position of the reference point H in camera picture;
4th state angle detection unit, for detecting the 4th state angle obtained when terminal is in second position C points;Institute
It states under the 4th state angle, the terminal can capture first position B points by camera, and the first position captured
The image of B points is located at the position of the reference point H in camera picture;
First angle computing unit, for according to the first state angle and second state angle, calculate line segment A1B and
Angle α 1 between line segment BC;
Second angle computing unit, for according to the third state angle and the 4th state angle, calculate line segment A1C and
Angle theta 1 between line segment BC;
Distance acquiring unit, the distance x for obtaining the first position B points to the second position C points;
First metrics calculation unit, for according to the α 1, the θ 1 and the x, by trigonometric function calculate described in be in
The distance between the tested point and first position B points of position A1 LA1B;
Wherein, 0 °<α1<180 °, 0 °<θ1<180°.
8. range unit as claimed in claim 7, which is characterized in that the range unit further includes:
Second distance computing unit, for according to the α 1, the θ 1 and the x, by trigonometric function calculate described in be in
The distance between the tested point and second position C points of position A1 LA1C。
9. range unit as claimed in claim 7 or 8, which is characterized in that the range unit further includes:
5th state angle detection unit, for detecting the 5th state angle obtained when terminal is in first position B points;Institute
It states under the 5th state angle, the terminal can capture the tested point in position A2 by camera, and capture described
The image of tested point in position A2 is located at the position of the reference point H in camera picture;
6th state angle detection unit, for detecting the 6th state angle when the terminal is in second position C points;Institute
It states under the 6th state angle, the terminal can capture the tested point in position A2 by camera, and capture described
The image of tested point in position A2 is located at the position of the reference point H in camera picture;
Third angle computing unit, for according to the 5th state angle and second state angle, calculate line segment A2B and
Angle α 2 between line segment BC;
Fourth angle computing unit, for according to the 6th state angle and the 4th state angle, calculate line segment A2C and
Angle theta 2 between line segment BC;
Third metrics calculation unit, for according to the α 2, the θ 2 and the x, by trigonometric function calculate described in be in
The distance between the tested point and first position B points of position A2 LA2B;
4th metrics calculation unit, for according to the α 1, the α 2, the LA1BAnd the LA2B, pass through trigonometric function meter
Calculate the distance between the tested point in position A1 and the tested point in position A2 LA1A2;
Wherein, 0 °<α2<180 °, 0 °<θ2<180°.
10. range unit as claimed in claim 7 or 8, which is characterized in that the distance acquiring unit includes gyroscope and adds
Velocity sensor or the distance acquiring unit include geomagnetic sensor and acceleration transducer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810132734.3A CN108469248A (en) | 2018-02-07 | 2018-02-07 | Distance measuring method and range unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810132734.3A CN108469248A (en) | 2018-02-07 | 2018-02-07 | Distance measuring method and range unit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108469248A true CN108469248A (en) | 2018-08-31 |
Family
ID=63266394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810132734.3A Pending CN108469248A (en) | 2018-02-07 | 2018-02-07 | Distance measuring method and range unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108469248A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112037536A (en) * | 2020-07-08 | 2020-12-04 | 北京英泰智科技股份有限公司 | Vehicle speed measuring method and device based on video feature recognition |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101701814A (en) * | 2009-11-04 | 2010-05-05 | 中兴通讯股份有限公司 | Method for judging spatial position of target by linkage of multi-cameras and system thereof |
CN104111059A (en) * | 2014-07-16 | 2014-10-22 | 宇龙计算机通信科技(深圳)有限公司 | Distance measuring and locating device and method and terminal |
CN104133076A (en) * | 2014-07-30 | 2014-11-05 | 宇龙计算机通信科技(深圳)有限公司 | Speed measurement device and method and terminal |
-
2018
- 2018-02-07 CN CN201810132734.3A patent/CN108469248A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101701814A (en) * | 2009-11-04 | 2010-05-05 | 中兴通讯股份有限公司 | Method for judging spatial position of target by linkage of multi-cameras and system thereof |
CN104111059A (en) * | 2014-07-16 | 2014-10-22 | 宇龙计算机通信科技(深圳)有限公司 | Distance measuring and locating device and method and terminal |
CN104133076A (en) * | 2014-07-30 | 2014-11-05 | 宇龙计算机通信科技(深圳)有限公司 | Speed measurement device and method and terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112037536A (en) * | 2020-07-08 | 2020-12-04 | 北京英泰智科技股份有限公司 | Vehicle speed measuring method and device based on video feature recognition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108458685A (en) | Distance measuring method and range unit | |
CN104484857B (en) | A kind of instrumented data read method and system | |
KR100595617B1 (en) | Horizontal and vertical of angle display method for mobile station | |
CN103398696B (en) | A kind of terminal camera distance-finding method and terminal | |
WO2016198009A1 (en) | Heading checking method and apparatus | |
CN108955633A (en) | Multifunction laser rangefinder | |
CN107194969A (en) | The pick up calibration determined based on end point and location estimation | |
US9869548B2 (en) | Method for determining the inclination of a tower | |
CN105571636B (en) | One kind is used to position mesh calibration method and measuring apparatus | |
CN103499341B (en) | A kind of using method of electric pole inclination measurement instrument | |
CN110398258A (en) | A kind of performance testing device and method of inertial navigation system | |
CN102706310B (en) | Cantilever crane angle detecting method, device and pump truck with device | |
CN108469248A (en) | Distance measuring method and range unit | |
CN106767654B (en) | Method and system for detecting horizontal deflection angle of camera | |
CN105783970B (en) | A kind of Digital identification method of automobile meter pointer | |
CN107796360A (en) | A kind of method based on UAV Video measurement single-pipe tower plate aerial angle | |
US20210109125A1 (en) | Method for calibrating phase-frequency characteristic of low frequence accelerometer based on time-spatial synchonization | |
CN104501745B (en) | A kind of quick determination method and device of photo electric imaging system optical axis deviation | |
JP2018013343A (en) | Survey assistance apparatus | |
CN107089299B (en) | A kind of measuring system and its measurement method of ship inclination angle | |
CN104125390A (en) | Method and device for locating spherical camera | |
CN106969707B (en) | A kind of detection device and its control method | |
CN102853815A (en) | Automatic smoothening leveling ruler | |
CN203443582U (en) | Lift-off firework comprehensive parameter detecting system | |
CN209326629U (en) | Vertical bar inclinator |
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: 20180831 |