CN103398696B - A kind of terminal camera distance-finding method and terminal - Google Patents
A kind of terminal camera distance-finding method and terminal Download PDFInfo
- Publication number
- CN103398696B CN103398696B CN201310295936.7A CN201310295936A CN103398696B CN 103398696 B CN103398696 B CN 103398696B CN 201310295936 A CN201310295936 A CN 201310295936A CN 103398696 B CN103398696 B CN 103398696B
- Authority
- CN
- China
- Prior art keywords
- terminal
- tested point
- distance
- camera
- described terminal
- 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
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000005259 measurement Methods 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims description 20
- 230000003287 optical effect Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
Abstract
The embodiment of the present invention discloses the method for a kind of terminal camera range finding, comprise: start described terminal ranging pattern, obtain described terminal camera ranging information, comprise: setting reference field and reference axis, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle, according to described camera and described reference axis, the distance of reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain described first tested point, the angle of described reference axis place plane and described reference field, obtain the second angle, according to the terminal ranging information obtained, calculate the distance of described first tested point to described terminal.The embodiment of the present invention can utilize terminal camera to measure the distance of object and terminal, and measurement result is accurate, measuring method is simple, better user experience.
Description
Technical field
The present invention relates to camera technique field, particularly relate to a kind of terminal camera distance-finding method and terminal.
Background technology
Along with the development of science and technology, the various personalized functions of terminal, the life being applied as us bring many facilities, utilize that the camera of terminal is taken pictures, recorded video etc. is the basic function that modern terminal all possesses.The method that existing camera measures object length or 2 distances comprises following two kinds of methods: dual camera group method and single camera+laser group legal, the measuring accuracy of these two kinds of methods is higher, but it is more loaded down with trivial details to operate, all can not realize using single camera to complete and measure object length or 2 distances, therefore, how to utilize single camera measurement object length accurately, easily and fast or 2 distances, become problem demanding prompt solution.
Summary of the invention
The embodiment of the present invention provides a kind of terminal camera distance-finding method and terminal, single camera can be utilized to obtain ranging information, obtained the distance of object under test and terminal by calculating said ranging information.
A kind of method that the embodiment of the present invention provides terminal camera to find range, comprising:
Start described terminal ranging pattern;
Obtain described terminal camera ranging information, comprise: setting reference field and reference axis, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle theta 2, distance according to described camera and described reference axis, reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain the angle of described first tested point, described reference axis place plane and described reference field, obtain the second angle theta 1;
According to the terminal ranging information obtained, calculate the distance of described first tested point to described terminal; Wherein, described reference field is the lower surface of described terminal, described reference axis is the crest line of the lower surface of described terminal and the junction, bottom surface of terminal, described central shaft is described direction, cam lens primary optical axis place or the straight line by cam lens photocentre, and described first reference length L is the distance of intersection point to reference axis that camera catches picture central shaft and reference field; L=L1-H*cot θ 2 particularly, wherein, L1 is camera central point to the distance of reference axis in the projection of reference field; H is the distance of central point to reference field of camera.
Correspondingly, the embodiment of the present invention also provides a kind of terminal camera distance ranging terminal, comprising:
Start unit, for starting described terminal ranging pattern;
First acquiring unit, for obtaining described terminal camera ranging information, comprise: setting reference field and reference axis, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle theta 2, distance according to described camera and described reference axis, reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain the angle of described first tested point, described reference axis place plane and described reference field, obtain the second angle theta 1;
First processing unit, for the terminal ranging information that basis obtains, calculate the distance of described first tested point to described terminal, wherein, described reference field is the lower surface of described terminal, described reference axis is the crest line of the lower surface of described terminal and the junction, bottom surface of terminal, described central shaft is described direction, cam lens primary optical axis place or the straight line by cam lens photocentre, and described first reference length L is the distance of intersection point to reference axis that camera catches picture central shaft and reference field; L=L1-H*cot θ 2 particularly, wherein, L1 is camera central point to the distance of reference axis in the projection of reference field; H is the distance of central point to reference field of camera.
The embodiment of the present invention provides a kind of terminal camera distance-finding method and terminal, single camera can be utilized to obtain the ranging information of described camera, by described ranging information, accurately calculate the distance of object under test and terminal, measurement result is accurate, measuring method is simple, better user experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is first embodiment of the invention terminal camera distance-finding method process flow diagram;
Fig. 2 is first embodiment of the invention terminal camera range finding schematic diagram;
Fig. 3 is first embodiment of the invention second angular position relation schematic diagram;
Fig. 4 is first embodiment of the invention first tested point and reference axis position relationship schematic diagram;
Fig. 5 is second embodiment of the invention terminal camera distance-finding method process flow diagram;
Fig. 6 is second embodiment of the invention first tested point, the second tested point place straight line and terminal location relation schematic diagram;
Fig. 7 is second embodiment of the invention first tested point, the second tested point position relationship schematic diagram when same straight line;
Fig. 8 is second embodiment of the invention reference axis position relationship schematic diagram when overlapping with the second tested point;
Fig. 9 is embodiment of the present invention terminal structure schematic diagram;
Figure 10 is another embodiment of the present invention terminal structure schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please also refer to Fig. 1 to Fig. 4, there is shown and how to measure tested point to the distance of described terminal by terminal camera, specifically comprise:
S101, start described terminal ranging pattern.
Particularly, start terminal and comprise the startup camera of terminal and the distance measurement mode of terminal, the terminal in the embodiment of the present invention, can be the electronic equipment with camera such as mobile phone, PDA, palm PC, panel computer, also can be digital camera.
S102, obtain described terminal camera ranging information, comprise: setting reference field and reference axis, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle, distance according to described camera and described reference axis, reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain the angle of described first tested point, described reference axis place plane and described reference field, obtain the second angle.
Particularly, by the camera 1 of terminal, obtain the ranging information of described terminal, described ranging information comprises: the reference field of setting and reference axis, reference field can choose the lower surface of terminal, reference axis can choose the crest line of the lower surface of terminal and the junction, bottom surface of terminal, and 3 is reference axis (not shown), and 3 place planes are reference field 2.The picture that camera 1 catches is the picture shown on a terminal screen, and the picture of terminal screen display just intercepts the part that camera 1 catches picture.
Obtain terminal camera 1 and catch the direction, central shaft place of picture and the angle of described reference field 2, obtain the first angle theta 2, according to described camera 1 and described reference axis 3, the distance of reference field 2 obtains reference length, obtain the first reference length CD, the length of CD is L, L=L1-Hcot θ 2, wherein, L1 is camera central point to the distance of reference axis in the projection of reference field, H is the distance of central point to reference field of camera, when the first tested point 4 be positioned at described camera 1 catch picture central shaft direction, place time, obtain described first tested point 4, the angle of described reference axis 3 place plane and described reference field 2, obtain the second angle theta 1,
It is understood that, obtain the angle of described first tested point 4, described reference axis 3 place plane and described reference field 2, obtain the second angle theta 1, comprising:
When described first tested point 4 and described reference axis 3 place plane be surface level or vertical plane time, described second angle theta 1 is obtained by end sensor, described end sensor comprises gravity sensor, gyroscope and geomagnetic sensor, and one or more using in above three kinds of sensors directly can read the second angle theta 1.
In addition, as shown in Figure 4, when described first tested point 4 is arbitrary face with described reference axis 3 place plane, by described reference field 2 and described first tested point 4 place plane, described reference axis 3 place planes overlapping, rotate described terminal to described first tested point 4 be positioned at described terminal camera 1 catch picture central shaft time, obtained the anglec of rotation of terminal by above-mentioned end sensor, obtain the second angle theta 1.
It is understood that, obtain described terminal camera ranging information also to comprise: show the picture that described terminal camera catches, and utilize positioning cursor to mark the picture central shaft of described camera seizure, the central shaft that described camera 1 catches picture is generally direction, cam lens primary optical axis place or the straight line by cam lens photocentre, in practical operation, user only need by terminal screen occurs the center of cross dotted line (positioning cursor) move on to the position overlapped with the first tested point.
S103, according to described terminal ranging information, calculate the distance of described first tested point to described terminal.
Particularly, described ranging information is angle in step S102 and length value, described first tested point 4 comprises to the distance of described terminal: described first tested point 4, to the distance of described terminal reference axis 3, also comprises the distance of described first tested point 4 to the reference field 2 of described terminal.
Known by triangle edges angular dependence:
First tested point 4 to the distance X of the reference axis 3 of terminal is:
X=(L*sinθ2)/sin(π-θ1-θ2)
Should be appreciated that described first tested point 4 to the distance Y of the reference field 2 of described terminal is:
Y=X*sinθ1
Obtain the distance of described first tested point 4 to described terminal reference axis 3 by above two formulae discovery, or described first tested point 4 is to the distance of the reference field 2 of described terminal.
The embodiment of the present invention provides a kind of terminal camera distance-finding method and terminal, and terminal camera can be utilized to measure object length or distance between two points, and measurement result is accurate, measuring method is simple, better user experience.
Please also refer to Fig. 5 to Fig. 8, there is shown and how to measure tested point to the specific embodiment of the distance of described terminal by terminal camera, specifically comprise the following steps:
S201, start described terminal ranging pattern.
Particularly, start terminal and comprise the startup camera of terminal and the distance measurement mode of terminal, the terminal in the embodiment of the present invention, refers to the mobile electronic device with camera such as mobile phone, PDA, palm PC, panel computer.
S202, obtain the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of described second tested point to described terminal, obtain the second relative position relation of the second tested point and described terminal, according to described first relative position relation and the second relative position relation, calculate the distance of described first tested point to described second tested point.
Refer to Fig. 6, when described first tested point, the second tested point place straight line and described terminal are all positioned at same plane, described terminal obtains by above-described embodiment to the distance L2 of the first tested point and described terminal to the distance L3 of the second tested point, terminal is measuring the distance L2 of the first tested point and obtain by the angular transducer of terminal to the angle θ rotated during the distance L3 of the second tested point, therefore, the distance GH of described first tested point to described second tested point can be calculated by following formula:
Refer to Fig. 7, when the reference axis of described terminal and described first tested point N, the second tested point Q on the same line time, described terminal camera focus aimed at the first tested point N, rotate described terminal camera again and aim at the second tested point Q, obtain the angle β of described reference field 2 and described first tested point N, the second tested point Q place plane when described terminal camera focus aims at the first tested point N, the vertical and reference field 2 of MN.
In like manner, described terminal camera focus can also be obtained when aiming at the second tested point Q, the angle α of described reference field 2 and described first tested point N, the second tested point Q place plane, the focus of described terminal camera is the first reference length L to the length of described reference axis 3 (not shown).
Now, the length of described first tested point N to described second tested point Q or distance NQ can be recorded by following formula:
NQ=|(L/cosβ)-(L/cosα)|
It is understood that, if described reference axis 3 overlaps with described first tested point N or the second tested point Q, then:
NQ=(L/cos β) or NQ=(L/cos α) |
Described terminal camera to the distance MN of the first tested point N or the second tested point Q is:
MN=L*tanβ
Refer to Fig. 8, when the projection of described reference axis 3 overlaps with described second tested point, be H1 by the reference axis 3 of the known described terminal of end sensor and the distance KQ of described second tested point Q, because terminal camera focus aims at the first tested point N, so MN is perpendicular to reference field 2, then:
First reference length L4 is: L4=L+H1/sin γ
So length or the distance NQ of the first tested point N to the second tested point Q are:
NQ=(L+h/sinγ)/cosγ
It is understood that, after calculating described first tested point to the distance of described second tested point, also comprise the step of described first tested point of display to the distance of described second tested point, particularly, show calculating the distance of described first tested point to described second tested point on a terminal screen.
The embodiment of the present invention provides a kind of terminal camera distance-finding method and terminal, and terminal camera can be utilized to measure object length or distance between two points, and measurement result is accurate, measuring method is simple, better user experience.
Refer to Fig. 9, be embodiment of the present invention terminal camera distance ranging terminal structural representation, described terminal camera distance ranging terminal 1 comprises: start unit 10, first acquiring unit 20, first processing unit 30, wherein:
Start unit 10, for starting described terminal 1 distance measurement mode.
Particularly, start unit 10 starts terminal 1 and comprises: start the camera of terminal 1 and the distance measurement mode of terminal, terminal 1 in the embodiment of the present invention, can be the mobile electronic device with camera such as mobile phone, PDA, palm PC, panel computer, also can be digital camera.
First acquiring unit 20, for obtaining described terminal camera ranging information, comprise: setting reference field and reference axis, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle, distance according to described camera and described reference axis, reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain the angle of described first tested point, described reference axis place plane and described reference field, obtain the second angle.
Particularly, the ranging information of described terminal is obtained by the camera of terminal, described ranging information comprises: the reference field of setting and reference axis, reference field can choose the lower surface of terminal, reference axis can choose the crest line of the lower surface of terminal and the junction, bottom surface of terminal, and reference axis place plane is reference field.The picture that camera catches is the picture shown on a terminal screen, and the picture of terminal screen display just intercepts the part that camera catches picture.
The central shaft that described camera catches picture is generally direction, cam lens primary optical axis place or the straight line by cam lens photocentre, in practical operation, user only need by terminal screen occurs the center of cross dotted line (positioning cursor) move on to the position overlapped with the first tested point.
First processing unit 30, for according to the terminal ranging information obtained, calculates the distance of described first tested point to described terminal.
Particularly, the length obtained according to the first acquiring unit 20 and angle information, first processing unit 30 utilizes triangle edges, angular dependence accurately can calculate the distance of the first tested point to described terminal, be to be understood that, described first tested point is to the distance of described terminal, comprise described first tested point and comprise the distance of described first tested point to described terminal reference axis to the distance of described terminal, also comprise the distance of described first tested point to the reference field of described terminal.
It is understood that, also comprise display unit (not shown), after the first processing unit 30 calculates described first tested point to the distance of described second tested point, display unit the first processing unit 30 is calculated described first tested point to described second tested point distance display on a terminal screen.
The embodiment of the present invention provides a kind of terminal camera distance-finding method and terminal, and terminal camera can be utilized to measure object length or distance between two points, and measurement result is accurate, measuring method is simple, better user experience.Refer to Figure 10, it is the structural representation of another embodiment of the present invention terminal camera distance ranging terminal, described terminal 1, comprising: start unit 10, first acquiring unit 20, first processing unit 30, display unit 60, indexing unit 70, first angle measuring unit 80, second angle measuring unit 90, second acquisition unit 40, second processing unit 50; Wherein:
Start unit 10, for starting described terminal 1 distance measurement mode.
Particularly, start unit 10 starts terminal 1 and comprises: start the camera of terminal 1 and the distance measurement mode of terminal, terminal 1 in the embodiment of the present invention, can be the mobile electronic device with camera such as mobile phone, PDA, palm PC, panel computer, also can be digital camera.
First acquiring unit 20, for obtaining described terminal 1 camera ranging information, comprise: the reference field and the reference axis that obtain setting, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle, according to described camera and described reference axis, the distance of reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain described first tested point, the angle of described reference axis place plane and described reference field, obtain the second angle.
Particularly, the ranging information of described terminal is obtained by the camera of terminal 1, described ranging information comprises: the reference field of setting and reference axis, reference field can choose the lower surface of terminal, reference axis can choose the crest line of the lower surface of terminal and the junction, bottom surface of terminal, and reference axis place plane is reference field.The picture that camera catches is the picture shown on a terminal screen, and the picture of terminal screen display just intercepts the part that camera catches picture.
First processing unit 30, for according to the terminal ranging information obtained, calculates the distance of described first tested point to described terminal 1.
Particularly, described first processing unit 30 calculates described first tested point to the distance of described terminal reference axis or described first tested point to the distance of described terminal camera or described first tested point to the distance of described terminal for the terminal ranging information obtained according to the first acquiring unit 20.
Described terminal 1 also comprises:
Display unit 60, for showing the picture that described terminal camera catches.
Particularly, show the picture that described terminal camera catches on a terminal screen, be convenient to the picture central shaft that indexing unit 70 marks the seizure of described camera.
Indexing unit 70, for marking the picture central shaft that described camera catches in the picture of described display terminal camera seizure.
Particularly, the central shaft that described camera catches picture is generally direction, cam lens primary optical axis place or the straight line by cam lens photocentre, in practical operation, user only need by terminal screen occurs the center of cross dotted line (positioning cursor) move on to the position overlapped with the first tested point.
Terminal 1 also comprises:
First angle measuring unit 80, at the first tested point and described reference axis place plane be surface level or vertical plane time, obtain described second angle by end sensor.
Second angle measuring unit 90, for when described first tested point and described reference axis place plane are arbitrary face, by described reference field and described first tested point place plane, described reference axis place planes overlapping, rotate described terminal to described first tested point be positioned at described terminal camera catch picture central shaft time, obtained the anglec of rotation of terminal by described end sensor, obtain the second angle.
Particularly, first angle measuring unit 80 and the second angle measuring unit 90 are the modes measuring the second angle respectively when described reference axis place plane is surface level, vertical plane or arbitrary face, certainly, second angle measuring unit 90 also can be measured when described reference axis place plane is the situation of surface level, vertical plane, just in particular cases this, use the first angle measuring unit 80 to measure the second angle and measuring process can be allowed to simplify.
Described terminal 1 also comprises:
Second acquisition unit 40, for obtaining the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of described second tested point to described terminal, obtain the second relative position relation of the second tested point and described terminal;
Second processing unit 50, for according to described first relative position relation and the second relative position relation, calculates the distance of described first tested point to described second tested point.
Particularly, for convenience of description, composition graphs 6, Fig. 7, Fig. 8 are described:
Refer to Fig. 6, when start unit 10 starts described terminal ranging pattern and terminal camera, and described first tested point, when second tested point place straight line and described terminal are all positioned at same plane, the positioning cursor of described terminal screen is aimed at described first tested point by the first locating module 21, first acquiring unit 20 obtains described terminal to the distance L2 of the first tested point and described terminal to the distance L3 of the second tested point, terminal measure the first tested point distance L2 and to the angle θ rotated during the distance L3 of the second tested point, therefore, first processing unit 30 can calculate the distance GH of described first tested point to described second tested point by following formula:
Refer to Fig. 7, when the reference axis of described terminal and described first tested point N, the second tested point Q on the same line time, the positioning cursor of described terminal screen is aimed at described first tested point, and second acquisition unit 40 obtains the angle β of described reference field 2 and described first tested point N, the second tested point Q place plane when described terminal camera focus aims at the first tested point N.
In like manner, second acquisition unit 40 can also obtain described terminal camera focus when aiming at the second tested point Q, MN is vertical with described reference field 2, the angle α of described reference field 2 and described first tested point N, the second tested point Q place plane, the focus of described terminal camera is the first reference length L to the length of described reference axis 3 (not shown).
Second processing unit 50 can record length or the distance NQ of described first tested point N to described second tested point Q by following formula:
NQ=|(L/cosβ)-(L/cosα)|
It is understood that, if described reference axis 3 overlaps with described first tested point N or the second tested point Q, then:
NQ=(L/cos β) or NQ=(L/cos α) |
Described terminal camera to the distance MN of the first tested point N or the second tested point Q is:
MN=L*tanβ
Refer to Fig. 8, when the projection of described reference axis 3 overlaps with described second tested point, the reference axis 3 that can be obtained described terminal by second acquisition unit 40 is that H1 is (because terminal camera focus aims at the first tested point N with the distance KQ of described second tested point Q, so MN is perpendicular to reference field 2), then:
First reference length L4 is:
L4=L+H1/sinγ
Second processing unit 50 is by the length of following formulae discovery first tested point N to the second tested point Q or distance NQ:
NQ=(L+h/sinγ)/cosγ
The embodiment of the present invention provides a kind of terminal camera distance-finding method and terminal, and terminal camera can be utilized to measure object length or distance between two points, and measurement result is accurate, measuring method is simple, better user experience.
The module of the embodiment of the present invention or unit, universal integrated circuit can be passed through, such as CPU (CentralProcessing Unit, central processing unit), or realized by ASIC (Application Specific IntegratedCircuit, special IC).
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (16)
1. a method for terminal camera range finding, is characterized in that, comprising:
Start the distance measurement mode of described terminal;
Obtain described terminal camera ranging information, comprise: the reference field and the reference axis that obtain setting, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle theta 2, distance according to described camera and described reference axis, reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain the angle of described first tested point, described reference axis place plane and described reference field, obtain the second angle theta 1;
According to described terminal ranging information, calculate the distance of described first tested point to described terminal; Wherein,
Described reference field is the lower surface of described terminal, described reference axis is the crest line of the lower surface of described terminal and the junction, bottom surface of terminal, described central shaft is described direction, cam lens primary optical axis place or the straight line by cam lens photocentre, and described first reference length L is the distance of intersection point to reference axis that camera catches picture central shaft and reference field; L=L1-H*cot θ 2 particularly, wherein, L1 is camera central point to the distance of reference axis in the projection of reference field, and H is the distance of central point to reference field of camera.
2. the method for claim 1, is characterized in that, obtains described terminal camera ranging information and also comprises:
Show the picture that described terminal camera catches, and utilize positioning cursor to mark the picture central shaft of described camera seizure.
3. method as claimed in claim 1 or 2, it is characterized in that, the angle of described first tested point of described acquisition and described reference axis place plane and described reference field, obtains the second angle, comprising:
When described first tested point and described reference axis place plane be surface level or vertical plane time, obtain described second angle by end sensor.
4. method as claimed in claim 1 or 2, it is characterized in that, the angle of described first tested point of described acquisition and described reference axis place plane and described reference field, obtains the second angle, comprising:
When described first tested point and described reference axis place plane are arbitrary face, by described reference field and described first tested point place plane, described reference axis place planes overlapping, rotate described terminal to described first tested point be positioned at described terminal camera catch picture central shaft time, obtained the anglec of rotation of terminal by end sensor, obtain the second angle.
5. the method for claim 1, is characterized in that, described in calculate described first tested point to the distance of described terminal, comprising:
Calculate described first tested point to the distance of described terminal reference axis or described first tested point to the distance of the reference field of described terminal.
6. the method as described in any one of claim 1,2,5, is characterized in that, also comprise:
Obtain the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of the second tested point to described terminal, obtain the second relative position relation of described second tested point and described terminal;
According to described first relative position relation and the second relative position relation, calculate the distance of described first tested point to described second tested point.
7. method according to claim 3, is characterized in that, also comprises:
Obtain the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of the second tested point to described terminal, obtain the second relative position relation of described second tested point and described terminal;
According to described first relative position relation and the second relative position relation, calculate the distance of described first tested point to described second tested point.
8. method according to claim 4, is characterized in that, also comprises:
Obtain the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of the second tested point to described terminal, obtain the second relative position relation of described second tested point and described terminal;
According to described first relative position relation and the second relative position relation, calculate the distance of described first tested point to described second tested point.
9. a terminal, is characterized in that, comprising:
Start unit, for starting described terminal ranging pattern;
First acquiring unit, for obtaining described terminal camera ranging information, comprise: the reference field and the reference axis that obtain setting, obtain terminal camera and catch the direction, central shaft place of picture and the angle of described reference field, obtain the first angle theta 2, according to described camera and described reference axis, the distance of reference field obtains reference length, obtain the first reference length, when the first tested point is positioned at described camera seizure picture central shaft direction, place, obtain described first tested point, the angle of described reference axis place plane and described reference field, obtain the second angle theta 1,
First processing unit, for according to the terminal ranging information obtained, calculates the distance of described first tested point to described terminal, wherein,
Described reference field is the lower surface of described terminal, described reference axis is the crest line of the lower surface of described terminal and the junction, bottom surface of terminal, described central shaft is described direction, cam lens primary optical axis place or the straight line by cam lens photocentre, and described first reference length L is the distance of intersection point to reference axis that camera catches picture central shaft and reference field; L=L1-H*cot θ 2 particularly, wherein, L1 is camera central point to the distance of reference axis in the projection of reference field; H is the distance of central point to reference field of camera.
10. terminal as claimed in claim 9, it is characterized in that, described terminal also comprises:
Display unit, for showing the picture that described terminal camera catches;
Indexing unit, for marking the picture central shaft that described camera catches in the picture of described display terminal camera seizure.
11. terminals as described in claim 9 or 10, it is characterized in that, described terminal also comprises:
First angle measuring unit, at the first tested point and described reference axis place plane be surface level or vertical plane time, obtain described second angle by end sensor.
12. terminals as described in claim 9 or 10, it is characterized in that, described terminal comprises:
Second angle measuring unit, for when described first tested point and described reference axis place plane are arbitrary face, by described reference field and described first tested point place plane, described reference axis place planes overlapping, rotate described terminal to described first tested point be positioned at described terminal camera catch picture central shaft time, obtained the anglec of rotation of terminal by end sensor, obtain the second angle.
13. terminals as claimed in claim 9, it is characterized in that, described first processing unit is for calculating described first tested point to the distance of described terminal reference axis or described first tested point to the distance of described terminal camera or described first tested point to the distance of described terminal.
14. terminals as described in any one of claim 9,10,13, it is characterized in that, described terminal also comprises:
Second acquisition unit, for obtaining the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of the second tested point to described terminal, obtain the second relative position relation of described second tested point and described terminal;
Second processing unit, for according to described first relative position relation and the second relative position relation, calculates the distance of described first tested point to described second tested point.
15. terminals as claimed in claim 11, it is characterized in that, described terminal also comprises:
Second acquisition unit, for obtaining the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of the second tested point to described terminal, obtain the second relative position relation of described second tested point and described terminal;
Second processing unit, for according to described first relative position relation and the second relative position relation, calculates the distance of described first tested point to described second tested point.
16. terminals as claimed in claim 12, it is characterized in that, described terminal also comprises:
Second acquisition unit, for obtaining the Distance geometry direction of described first tested point to described terminal, obtain the first relative position relation of the first tested point and described terminal, obtain the Distance geometry direction of the second tested point to described terminal, obtain the second relative position relation of described second tested point and described terminal;
Second processing unit, for according to described first relative position relation and the second relative position relation, calculates the distance of described first tested point to described second tested point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310295936.7A CN103398696B (en) | 2013-07-15 | 2013-07-15 | A kind of terminal camera distance-finding method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310295936.7A CN103398696B (en) | 2013-07-15 | 2013-07-15 | A kind of terminal camera distance-finding method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103398696A CN103398696A (en) | 2013-11-20 |
CN103398696B true CN103398696B (en) | 2015-09-16 |
Family
ID=49562368
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310295936.7A Expired - Fee Related CN103398696B (en) | 2013-07-15 | 2013-07-15 | A kind of terminal camera distance-finding method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103398696B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103759701B (en) * | 2014-01-13 | 2016-03-09 | 南通大学 | Based on the cell phone intelligent distance-finding method of Android platform |
CN104111059A (en) * | 2014-07-16 | 2014-10-22 | 宇龙计算机通信科技(深圳)有限公司 | Distance measuring and locating device and method and terminal |
CN104374365A (en) * | 2014-11-14 | 2015-02-25 | 无锡坦程物联网科技有限公司 | Mobile phone height measurement software and height measurement method based on software |
US11240421B2 (en) | 2015-04-10 | 2022-02-01 | Qualcomm Incorporated | Methods and apparatus for defocus reduction using laser autofocus |
CN106705837B (en) | 2015-11-17 | 2019-12-06 | 华为技术有限公司 | Object measuring method and device based on gestures |
CN105758319B (en) * | 2016-03-21 | 2019-03-22 | 北京小米移动软件有限公司 | The method and apparatus for measuring target object height by mobile terminal |
CN105627995B (en) | 2016-03-31 | 2018-03-23 | 京东方科技集团股份有限公司 | Camera device, tumbler, range unit, range-measurement system and distance-finding method |
CN106324272A (en) * | 2016-07-28 | 2017-01-11 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and mobile terminal speed measuring method |
CN106802420A (en) * | 2016-12-05 | 2017-06-06 | 珠海格力电器股份有限公司 | The method and apparatus of measurement distance |
CN107314761A (en) * | 2017-05-24 | 2017-11-03 | 上海与德科技有限公司 | Measuring method and electronic equipment |
CN107870326A (en) * | 2017-10-13 | 2018-04-03 | 深圳天珑无线科技有限公司 | A kind of communication terminal and its distance-finding method and the device with store function |
CN108195345A (en) * | 2017-12-20 | 2018-06-22 | 合肥英睿系统技术有限公司 | A kind of distance measuring method and system based on electronic imager |
CN115384199B (en) * | 2022-09-21 | 2023-12-19 | 陕西麦克斯韦医疗科技有限公司 | Spray painting method, spray painting device and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2439920A1 (en) * | 2010-10-08 | 2012-04-11 | Research In Motion Limited | System and Method for Displaying Object Location in Augmented Reality |
CN102706310A (en) * | 2012-05-30 | 2012-10-03 | 三一重工股份有限公司 | Cantilever crane angle detecting method, device and pump truck with device |
CN103017730A (en) * | 2012-11-30 | 2013-04-03 | 中兴通讯股份有限公司 | Single-camera ranging method and single-camera ranging system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5315891B2 (en) * | 2008-09-24 | 2013-10-16 | 富士通株式会社 | Distance measuring device, distance measuring method and distance measuring program |
-
2013
- 2013-07-15 CN CN201310295936.7A patent/CN103398696B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2439920A1 (en) * | 2010-10-08 | 2012-04-11 | Research In Motion Limited | System and Method for Displaying Object Location in Augmented Reality |
CN102706310A (en) * | 2012-05-30 | 2012-10-03 | 三一重工股份有限公司 | Cantilever crane angle detecting method, device and pump truck with device |
CN103017730A (en) * | 2012-11-30 | 2013-04-03 | 中兴通讯股份有限公司 | Single-camera ranging method and single-camera ranging system |
Also Published As
Publication number | Publication date |
---|---|
CN103398696A (en) | 2013-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103398696B (en) | A kind of terminal camera distance-finding method and terminal | |
US9906702B2 (en) | Non-transitory computer-readable storage medium, control method, and computer | |
US9721346B2 (en) | Image assessment device, method, and computer readable medium for 3-dimensional measuring and capturing of image pair range | |
US10277889B2 (en) | Method and system for depth estimation based upon object magnification | |
WO2016198009A1 (en) | Heading checking method and apparatus | |
US8698503B2 (en) | Geomagnetic application device | |
CN104718561A (en) | Sensor calibration and position estimation based on vanishing point determination | |
US8655620B2 (en) | Method and module for measuring rotation and portable apparatus comprising the module | |
EP3246659A1 (en) | Method and device for measuring size of object | |
JP2016048172A (en) | Image processor, image processing method, and program | |
CN102980535A (en) | Angle measurement method and device | |
CN111351468B (en) | Electronic device and image ranging method thereof | |
CN106289110A (en) | A kind of angle measurement method based on mobile terminal and device, mobile terminal | |
EP2784442A2 (en) | Azimuth correction method and electronic device therefor | |
CN105091847A (en) | Distance measurement method and electronic device thereof | |
CN103500007A (en) | Method for determining rotation angle of rotating member of terminal and terminal | |
CN106017406A (en) | Method and device for measuring target distance | |
US9329828B2 (en) | Information processing apparatus for displaying adjacent partial images out of a plurality of partial images that constitute one image on display units of a plurality of adjacent information processing apparatuses | |
JP5572053B2 (en) | Orientation estimation apparatus and program | |
CN105547215A (en) | Method for measuring object dimension and terminal equipment | |
US9389318B2 (en) | Self-position measuring terminal | |
CN203443582U (en) | Lift-off firework comprehensive parameter detecting system | |
JP2020180841A (en) | Positioning device, positioning method, and program | |
CN113252028B (en) | Positioning method of robot in water delivery tunnel, electronic device and storage medium | |
JP6818752B2 (en) | Method and device to indicate direction |
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 | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180428 Granted publication date: 20150916 |
|
PP01 | Preservation of patent right |
Effective date of registration: 20180806 Granted publication date: 20150916 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20190925 Granted publication date: 20150916 |
|
PD01 | Discharge of preservation of patent | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150916 Termination date: 20200715 |
|
CF01 | Termination of patent right due to non-payment of annual fee |