CN108050943A - A kind of length measurement method and terminal - Google Patents
A kind of length measurement method and terminal Download PDFInfo
- Publication number
- CN108050943A CN108050943A CN201810005659.4A CN201810005659A CN108050943A CN 108050943 A CN108050943 A CN 108050943A CN 201810005659 A CN201810005659 A CN 201810005659A CN 108050943 A CN108050943 A CN 108050943A
- Authority
- CN
- China
- Prior art keywords
- length
- terminal
- profile section
- target object
- 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.)
- Granted
Links
- 238000000691 measurement method Methods 0.000 title claims abstract description 22
- 238000005259 measurement Methods 0.000 claims abstract description 50
- 238000003384 imaging method Methods 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims description 11
- 230000003287 optical effect Effects 0.000 claims description 11
- 230000004044 response Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 15
- 238000004364 calculation method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000003321 amplification Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the invention discloses a kind of length measurement method and terminal, wherein the length measurement method includes:The picture frame of the camera imaging generation of terminal is obtained, described image frame includes target object;Default graduated scale in shooting interface determines to treat length of the profile section in described image frame on the target object;Obtain the distance between the terminal and the target object;Obtain image distance corresponding with described image frame;Obtain the angle of inclination of the terminal;The measurement length of profile section is treated according to calculating distance, the image distance and the angle of inclination between the length for treating profile section in described image frame, the terminal and the target object, and shows the measurement length.The length that the embodiment of the present invention can treat profile section by possessing the directly measurement of the terminal of shooting function, so as to improve the convenience of linear measure longimetry.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of length measurement method and terminals.
Background technology
With the development of terminal technology, possess that the terminal of shooting function is very universal, and user can clap by possessing
The terminal taking image of camera shooting function.And in real life, it will usually which running into user needs to measure the scene of length, such as measures
The height of desk, width of books etc..If shorter by the length of profile section, user can directly be surveyed using measuring apparatus
Amount, such as tape measure, ruler;If but it is longer by the length of profile section, such as user needs to measure height etc. of high-rise, uses
Family possibly can not directly measure.In addition, user will not generally also carry measuring apparatus.As it can be seen that it surveys in the prior art
The mode of amount length is made troubles to user.
The content of the invention
The embodiment of the present invention provides a kind of length measurement method and terminal, can be direct by possessing the terminal of shooting function
The length of profile section is treated in measurement, so as to improve the convenience of linear measure longimetry.
First aspect of the embodiment of the present invention provides a kind of length measurement method, and the length measurement method includes:
The picture frame of the camera imaging generation of terminal is obtained, described image frame includes target object;
Default graduated scale in shooting interface determines to treat profile section in described image frame on the target object
In length;
Obtain the distance between the terminal and the target object;
Obtain image distance corresponding with described image frame;
Obtain the angle of inclination of the terminal;
According between the length for treating profile section in described image frame, the terminal and the target object away from
From, the image distance and the angle of inclination calculate described in treat the measurement length of profile section, and show the measurement length.
Correspondingly, second aspect of the embodiment of the present invention provides a kind of terminal, the terminal includes:
Acquiring unit, for obtaining the picture frame of the camera imaging of terminal generation, described image frame includes target object;
Determination unit determines to treat profile section on the target object for the default graduated scale in shooting interface
Length in described image frame;
The acquiring unit is additionally operable to obtain the distance between the terminal and the target object;
The acquiring unit is additionally operable to obtain image distance corresponding with described image frame;
The acquiring unit is additionally operable to obtain the angle of inclination of the terminal;
Computing unit, for treating length, the terminal and the target of the profile section in described image frame according to
The measurement length of profile section is treated described in the distance between object, the image distance and angle of inclination calculating;
Display unit, for showing the measurement length.
Correspondingly, the third aspect of the embodiment of the present invention provides a kind of computer read/write memory medium, the computer
Have program stored therein instruction in read/write memory medium, and described program instruction performs foregoing linear measure longimetry side after being called for computer
Method.
The embodiment of the present invention can be by obtaining the picture frame for including target object, according to the default scale in shooting interface
Scale determines to treat length of the profile section in described image frame on the target object, and obtain respectively the terminal with it is described
The distance between target object, image distance corresponding with described image frame, the angle of inclination of the terminal, so as to according to described to be measured
Distance, the image distance between length of the line segment in described image frame, the terminal and the target object and described incline
Rake angle treats the measurement length of profile section described in calculating, and shows the measurement length, and then improves the convenient of linear measure longimetry
Property.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be required to embodiment attached
Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, common for this field
For technical staff, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of length measurement method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another length measurement method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of another terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of imaging schematic diagram provided in an embodiment of the present invention;
Fig. 6 is another imaging schematic diagram provided in an embodiment of the present invention;
Fig. 7 is shooting interface schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, belongs to the scope of protection of the invention.
Terminal in the embodiment of the present invention can include PC, smart mobile phone (such as Android phone, iOS mobile phones
Deng), tablet computer, palm PC, mobile internet device (MID, Mobile Internet Devices) or wearable intelligent
Equipment etc..
Fig. 1 is a kind of flow diagram of length measurement method provided in an embodiment of the present invention, as shown in Figure 1, the length
Measuring method may comprise steps of:
S101, obtains the picture frame of the camera imaging generation of terminal, and described image frame includes target object.
In the specific implementation, after user starts the program of taking pictures of the terminal, the camera of the terminal can will collect
Scene information be converted into picture frame and be shown on the display screen of the terminal, it is described with movement of the user to the terminal
Picture frame on display screen also changes therewith.It, can be with when user is needed to measure on target object when the length of profile section
The camera of the terminal is directed at the target object, i.e., includes the target in the picture frame of described camera imaging generation
Object.Wherein, described image frame can include all or part of the target object, as long as described image frame includes institute completely
It states and treats profile section.
S102, the default graduated scale in shooting interface determine to treat profile section in the figure on the target object
As the length in frame.
In the specific implementation, the terminal can set graduated scale at shooting interface in advance, and with the graduated scale
Length is reference, so that it is determined that treating length of the profile section in described image frame on the target object.
Optionally, the terminal determines the length of the default graduated scale to treat that profile section exists on the target object
Length in described image frame.
Specifically, user can be by the movement terminal so as to treat profile section in described image on the target object
Length in frame is identical with the length of the graduated scale, and the graduated scale is directed in advance so as to which the terminal can read user
The length of ruler setting, using as the length for treating profile section in described image frame.Optionally, user can be directly described
The length that interface adjusts the default graduated scale is shot, i.e., treats length adjustment of the profile section in described image frame according to
The length of the default graduated scale, until the length of the two is identical, the terminal can determine the default graduated scale at this time
The current length of ruler treats length of the profile section in described image frame to be described.
Optionally, user can adjust the shape of the default graduated scale at the shooting interface, to meet described treat
Shape of the profile section in described image frame, such as the shape of the default graduated scale script are one and the side of the terminal
The parallel straight line in side, the target object is a cuboid, and user needs to measure the diagonal of this cuboid, then user
The shape that the default graduated scale can be adjusted is the straight line parallel with the diagonal.The terminal can also be in the shooting
The multiple default graduated scales of interface display, to realize the measurement to multiple line segment lengths to be measured on different directions.
S103, obtain respectively the distance between the terminal and described target object, image distance corresponding with described image frame,
The angle of inclination of the terminal.
In the specific implementation, the terminal can obtain or concomitantly obtain respectively successively itself with the target object it
Between distance, the image distance and the order at the angle of inclination.
Optionally, the terminal can obtain that infrared ray sensor measures itself between the target object away from
From.
It, can also be in the specific implementation, the infrared ray sensor can be installed in around the camera of the terminal
The camera of the terminal integrates.
Optionally, the terminal can obtain the angle of inclination of itself by the gyroscope built in itself.
Specifically, when the display screen of the terminal is vertical with default reference level surface, the angle of inclination of the terminal
For 90 °;When the display screen of the terminal is parallel with default reference level surface, the angle of inclination of the terminal is 0 °.
Optionally, acquisition image distance corresponding with described image frame includes:
Obtain the optical focal length of the camera;It obtains from the imaging plane of the camera and is imaged onto display screen imaging
Scaling;The product for determining the optical focal length and the scaling is the image distance.
S104, according between the length for treating profile section in described image frame, the terminal and the target object
Distance, the image distance and the angle of inclination calculate described in treat the measurement length of profile section, and show the measurement length.
Optionally, the step S104 in method shown in Fig. 1 can include:
According to formulaThe survey of profile section is treated described in calculating
Measure length.
Specifically, L be it is described treat the measurement length of profile section, l be described in treat length of the profile section in described image frame,
D is the distance between the terminal and the target object, d is the image distance, α is the angle of inclination, l' be with focus into
Inconocenter is the latter half length of the l of cut-point.
In the embodiment of the present invention, terminal can be by obtaining the picture frame for including target object, according in shooting interface
Default graduated scale determines to treat length of the profile section in described image frame on the target object, so as to according to described to be measured
Distance and institute between length and the terminal got respectively and the target object of the line segment in described image frame
The measurement length of profile section is treated described in the angle of inclination calculating for stating the corresponding image distance of picture frame, terminal, and shows the measurement length
Degree, and then improve the convenience of linear measure longimetry.
Fig. 2 is the flow diagram of another length measurement method provided in an embodiment of the present invention, as shown in Fig. 2, the length
Degree measuring method may comprise steps of:
S201, obtains the picture frame of the camera imaging generation of terminal, and described image frame includes target object.
S202 determines the length of the default graduated scale to treat profile section in described image frame on the target object
In length l.
By it is shown in Fig. 7 shooting interface schematic diagram exemplified by, the target object be a high building, the length for treating profile section
Spend the height for the high building;The length of the adjusted default graduated scale of user is with the high building in described image frame
Length is identical, then the terminal can read the length of the default graduated scale, as shown in fig. 7, the length is 45mm, i.e. l
=45mm.
S203, obtain respectively the distance between the terminal and the target object D, the camera optical focal length F,
From the imaging plane of the camera be imaged onto display screen imaging amplification factor n, the terminal inclination angle alpha, with focus
Imaging center is the latter half length l' of the l of cut-point.
S204, according to formulaIt is treated described in calculating
The measurement length L of profile section, and show the measurement length L.
By taking the imaging schematic diagram shown in Fig. 5 as an example, l1Treat profile section on the imaging plane of the camera to be described
Length, O are focus, straight line OO1With l1Vertically;L is l1N times, and O2Position and O on l1In l1On position it is corresponding;
Straight line OO3It is vertical with L', O3And the intersection point of L and L', O3L is divided into L1And L2, O3L' is divided into L'1And L'2.Wherein,
L'1、L'2Meet formula (1), (2) respectively.
As shown in figure 5, in Δ abO3In, L1Diagonal ∠ abO3、L'1Diagonal ∠ O3Ab meets formula (3), (4) respectively.
∠abO3=180 ° of-∠ 1 (3)
∠O3Ab=∠ 1+ α -90 ° (4)
As shown in figure 5, in Δ cdO3In, L2Diagonal ∠ cdO3、L'2Diagonal ∠ O3Cd meets formula (5), (6) respectively.
∠cdO3=∠ 2 (5)
∠O3Cd=90 ° of+α-∠ 2 (6)
Sine in trigonometry can obtain, in a triangle, the ratio between each side and its diagonal sine phase
Deng.Then in Δ abO3In, L1And its diagonal ∠ abO3、L'1And its diagonal ∠ O3Ab meets formula (7);In Δ cdO3In, L2And its
Diagonal ∠ cdO3、L'2And its diagonal ∠ O3Cd meets formula (8).
In addition, as shown in figure 5, ∠ 1 and ∠ 2 meet formula (9), (10) respectively.
L can be drawn according to above-mentioned formula (1), (3), (4), (7), (9)1Calculation expression, i.e. formula (11);According to
Above-mentioned formula (2), (5), (6), (8), (10) can draw L2Calculation expression, i.e. formula (12).
Again because L1、L2, L meet formula (13), then the calculation expression of L can be drawn by formula (11), (12), (13),
That is formula (14).
L=L1+L2 (13)
In addition, by taking the imaging schematic diagram shown in Fig. 6 as an example, when the terminal is vertical with default reference level surface, i.e. α
=90 °, it can show that the calculation expression of L at this time is formula (15) by formula (14).
By taking shooting interface schematic diagram shown in Fig. 7 as an example, the terminal is calculated by step above-mentioned formula (1)~(14)
The measurement height of high building in picture frame is 160m, then includes the measurement height on the display screen of itself.
In the embodiment of the present invention, terminal can be by obtaining the picture frame for including target object, according in shooting interface
Default graduated scale determines to treat length of the profile section in described image frame on the target object, so as to according to described to be measured
Distance and institute between length and the terminal got respectively and the target object of the line segment in described image frame
The measurement length of profile section is treated described in the angle of inclination calculating for stating the corresponding image distance of picture frame, terminal, and shows the measurement length
Degree, and then improve the convenience of linear measure longimetry.
Fig. 3 is a kind of structure diagram of terminal provided in an embodiment of the present invention, as shown in figure 3, in the embodiment of the present invention
Terminal can include:
Acquiring unit 301, for obtaining the picture frame of the camera imaging of terminal generation, described image frame includes object
Body.
In the specific implementation, after user starts the program of taking pictures of the terminal, the camera of the terminal can will collect
Scene information be converted into picture frame and be shown on the display screen of the terminal, it is described with movement of the user to the terminal
Picture frame on display screen also changes therewith.It, can be with when user is needed to measure on target object when the length of profile section
The camera of the terminal is directed at the target object, i.e., includes the target in the picture frame of described camera imaging generation
Object.Wherein, described image frame can include all or part of the target object, as long as described image frame includes institute completely
It states and treats profile section.
Determination unit 302 determines to be measured on the target object for the default graduated scale in shooting interface
Length of the line segment in described image frame.
In the specific implementation, the terminal can set graduated scale at shooting interface in advance, the determination unit 302 is with institute
The length of graduated scale is stated as reference, so that it is determined that treating length of the profile section in described image frame on the target object.
Optionally, the determination unit 302 is specifically used for:
The length of the default graduated scale is determined to treat profile section in described image frame on the target object
Length.
Specifically, user can be by the movement terminal so as to treat profile section in described image on the target object
Length in frame is identical with the length of the graduated scale, and institute is directed in advance so as to which the determination unit 302 can read user
The length of graduated scale setting is stated, using as the length for treating profile section in described image frame.Optionally, user can be straight
The length that the shooting interface adjusts the default graduated scale is connected on, i.e., treats profile section in described image frame according to
The length of graduated scale is preset described in length adjustment, until the length of the two is identical, the determination unit 302 can determine at this time
The current length of the default graduated scale treats length of the profile section in described image frame to be described.
Optionally, user can adjust the shape of the default graduated scale at the shooting interface, to meet described treat
Shape of the profile section in described image frame, such as the shape of the default graduated scale script are one and the side of the terminal
The parallel straight line in side, the target object is a cuboid, and user needs to measure the diagonal of this cuboid, then user
The shape that the default graduated scale can be adjusted is the straight line parallel with the diagonal.The terminal can also be in the shooting
The multiple default graduated scales of interface display, to realize the measurement to multiple line segment lengths to be measured on different directions.
The acquiring unit 301 is additionally operable to obtain the distance between the terminal and the target object.
Optionally, the acquiring unit 301 obtain the terminal and the target object that infrared ray sensor measures it
Between distance.
It, can also be in the specific implementation, the infrared ray sensor can be installed in around the camera of the terminal
The camera of the terminal integrates.
The acquiring unit 301 is additionally operable to obtain image distance corresponding with described image frame.
Optionally, the acquiring unit 301 obtains image distance corresponding with described image frame and includes:
Obtain the optical focal length of the camera;It obtains from the imaging plane of the camera and is imaged onto display screen imaging
Scaling;The product for determining the optical focal length and the scaling is the image distance.
The acquiring unit 301 is additionally operable to obtain the angle of inclination of the terminal.
Optionally, the acquiring unit 301 obtains the angle of inclination of the terminal by the gyroscope of the terminal built-in.
Specifically, when the display screen of the terminal is vertical with default reference level surface, the angle of inclination of the terminal
For 90 °;When the display screen of the terminal is parallel with default reference level surface, the angle of inclination of the terminal is 0 °.
In addition, the acquiring unit 301 can obtain or concomitantly obtain respectively itself and the target object successively
The distance between, the order at the image distance and the angle of inclination.
Computing unit 303, for treating length, the terminal and the mesh of the profile section in described image frame according to
The measurement length of profile section is treated described in the distance between mark object, the image distance and angle of inclination calculating.
Display unit 304, for showing the measurement length.
In a kind of alternative embodiment, the computing unit is specifically used for:
According to formulaThe survey of profile section is treated described in calculating
Measure length.
Specifically, L be it is described treat the measurement length of profile section, l be described in treat length of the profile section in described image frame,
D is the distance between the terminal and the target object, d is the image distance, α is the angle of inclination, l' be with focus into
Inconocenter is the latter half length of the l of cut-point.
In the embodiment of the present invention, terminal can be by obtaining the picture frame for including target object, according in shooting interface
Default graduated scale determines to treat length of the profile section in described image frame on the target object, so as to according to described to be measured
Distance and institute between length and the terminal got respectively and the target object of the line segment in described image frame
The measurement length of profile section is treated described in the angle of inclination calculating for stating the corresponding image distance of picture frame, terminal, and shows the measurement length
Degree, and then improve the convenience of linear measure longimetry.
Fig. 4 is the structure diagram of another terminal provided in an embodiment of the present invention, as shown in figure 4, the embodiment of the present invention
In terminal can include:
At least one input unit 401, at least one output device 402, at least one processor 403, such as CPU, are deposited
Reservoir 404 and at least one bus 405;Above-mentioned input unit 401, output device 402, processor 403 and memory 404 pass through
Bus 405 connects.
Wherein, the camera of above-mentioned input unit 401 concretely terminal, above-mentioned output device 402 concretely terminal
Display screen;Above-mentioned memory 404 can be high-speed RAM memory or non-labile memory (non-volatile
), such as magnetic disk storage memory.For storing batch processing code, above-mentioned input unit 401 exports above-mentioned memory 404
Device 402 and processor 403 call the program code stored in memory 404, for performing following operation:
Above-mentioned input unit 401, for obtaining the picture frame of itself imaging generation, described image frame includes target object.
Above-mentioned processor 403 determines to treat on the target object for the default graduated scale in shooting interface
Length of the profile section in described image frame.
Above-mentioned processor 403 is additionally operable to obtain the distance between the terminal and the target object.
Above-mentioned processor 403 is additionally operable to obtain image distance corresponding with described image frame.
Above-mentioned processor 403 is additionally operable to obtain the angle of inclination of the terminal.
Above-mentioned processor 403 is additionally operable to treat length, the terminal and institute of the profile section in described image frame according to
State the measurement length that profile section is treated described in the distance between target object, the image distance and angle of inclination calculating.
Above-mentioned output device 402, for showing the measurement length.
In a kind of alternative embodiment, above-mentioned processor 403 is according to determining the default graduated scale shot in interface
Treat that length of the profile section in described image frame includes on target object:
Above-mentioned processor 403 determines the length of the default graduated scale to treat profile section in institute on the target object
State the length in picture frame.
In another alternative embodiment, above-mentioned processor 403 is according to the length for treating profile section in described image frame
Profile section is treated in the distance between degree, the terminal and described target object, the image distance and the angle of inclination described in calculating
Measurement length include:
Above-mentioned processor 403 is according to formulaCalculate institute
The measurement length for treating profile section is stated, wherein, L is described to treat that the measurement length of profile section, l are described to treat profile section in described image
Length, D in frame are the distance between the terminal and the target object, d is the image distance, α is the angle of inclination, l'
For the latter half length using focus imaging center as the l of cut-point.
In another alternative embodiment, above-mentioned processor 403 obtain between the terminal and the target object away from
From including:
Above-mentioned processor 403 obtains the angle of inclination of the terminal by the gyroscope of the terminal built-in.
In another alternative embodiment, the angle of inclination that above-mentioned processor 403 obtains the terminal includes:
Above-mentioned processor 403 obtains the distance between the terminal that infrared ray sensor measures and described target object.
In another alternative embodiment, above-mentioned processor 403, which obtains image distance corresponding with described image frame, to be included:
Above-mentioned processor 403 obtains the optical focal length of the camera;
Above-mentioned processor 403 obtains the scaling that display screen imaging is imaged onto from the imaging plane of the camera;
Above-mentioned processor 403 determines that the product of the optical focal length and the scaling is the image distance.
In the specific implementation, the input unit 401, output device 402 and processor 403 described in the embodiment of the present invention can
The realization method in the method for the present invention embodiment one to two is performed, details are not described herein.
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit) or pass through ASIC (Application Specific Integrated
Circuit, application-specific integrated circuit) it realizes.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, be not described in some embodiment
Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent variations made according to the claims of the present invention, it is still within the scope of the present invention.
Claims (19)
1. a kind of length measurement method, which is characterized in that the described method includes:
The picture frame of the camera imaging generation of terminal is obtained, described image frame includes target object;
Default graduated scale in shooting interface determines to treat profile section in described image frame on the target object
Length;
Obtain the distance between the terminal and the target object;
Obtain image distance corresponding with described image frame;
Obtain the angle of inclination of the terminal;
According between the length for treating profile section in described image frame, the terminal and the target object distance, institute
It states and treats the measurement length of profile section described in image distance and angle of inclination calculating, and show the measurement length.
2. length measurement method as described in claim 1, which is characterized in that the method further includes step:
According to the quantity for treating profile section on the target object, the multiple default graduated scales of interface display are shot described, with
Realize the measurement to multiple line segment lengths to be measured on different directions.
3. length measurement method as claimed in claim 2, which is characterized in that the method further includes step:
The adjusting operation of the shape of graduated scale is preset the basis in response, and the shape of the default graduated scale is adjusted
Section described treats shape of the profile section in described image frame to meet.
4. length measurement method as described in claim 1, which is characterized in that the default graduated scale in the interface according to shooting
Ruler determines to treat that length of the profile section in described image frame includes on the target object:
The length of the default graduated scale is determined to treat length of the profile section in described image frame on the target object.
5. such as claim 1-4 any one of them length measurement methods, which is characterized in that treat that profile section exists described in the basis
The distance between length, the terminal and the target object in described image frame, the image distance and the angle of inclination
The measurement length of profile section is treated described in calculating, and shows the measurement length, including:
According between the length for treating profile section in described image frame, the terminal and the target object distance, institute
State image distance, the angle of inclination and it is described treat profile section in described image frame using focus imaging center as under cut-point
The measurement length of profile section is treated described in half part length computation, and shows the measurement length.
6. length measurement method as claimed in claim 5, which is characterized in that treat profile section in described image described in the basis
Described in the distance between length, the terminal and the target object in frame, the image distance and the angle of inclination calculate
Treating the measurement length of profile section includes:
According to formulaTreat that the measurement of profile section is grown described in calculating
Degree, wherein, L is described to treat that the measurement length of profile section, l are the length for treating profile section in described image frame, described in D is
The distance between terminal and the target object, d are the image distance, α is the angle of inclination, l' be using focus imaging center as
The latter half length of the l of cut-point.
7. length measurement method as described in claim 1, which is characterized in that the angle of inclination bag for obtaining the terminal
It includes:
The angle of inclination of the terminal is obtained by the gyroscope of the terminal built-in.
8. length measurement method as described in claim 1, which is characterized in that described to obtain the terminal and the target object
The distance between include:
Obtain the distance between the terminal that measures of infrared ray sensor and described target object.
9. length measurement method as described in claim 1, which is characterized in that described to obtain image distance corresponding with described image frame
Including:
Obtain the optical focal length of the camera;
Obtain the scaling that display screen imaging is imaged onto from the imaging plane of the camera;
The product for determining the optical focal length and the scaling is the image distance.
10. a kind of terminal, which is characterized in that the terminal includes:
Acquiring unit, for obtaining the picture frame of the camera imaging of terminal generation, described image frame includes target object;
Determination unit determines to treat profile section in institute on the target object for the default graduated scale in shooting interface
State the length in picture frame;
The acquiring unit is additionally operable to obtain the distance between the terminal and the target object;
The acquiring unit is additionally operable to obtain image distance corresponding with described image frame;
The acquiring unit is additionally operable to obtain the angle of inclination of the terminal;
Computing unit, for treating length, the terminal and the target object of the profile section in described image frame according to
The distance between, the image distance and the angle of inclination calculate described in treat the measurement length of profile section;
Display unit, for showing the measurement length.
11. terminal as claimed in claim 10, which is characterized in that the display unit is additionally operable to:
According to the quantity for treating profile section on the target object, the multiple default graduated scales of interface display are shot described, with
Realize the measurement to multiple line segment lengths to be measured on different directions.
12. terminal as claimed in claim 11, which is characterized in that the display unit is additionally operable to:
The adjusting operation of the shape of graduated scale is preset the basis in response, and the shape of the default graduated scale is adjusted
Section described treats shape of the profile section in described image frame to meet.
13. terminal as claimed in claim 10, which is characterized in that the determination unit is specifically used for:
The length of the default graduated scale is determined to treat length of the profile section in described image frame on the target object.
14. such as claim 10-13 any one of them terminals, which is characterized in that the computing unit is specifically used for:
According between the length for treating profile section in described image frame, the terminal and the target object distance, institute
State image distance, the angle of inclination and it is described treat profile section in described image frame using focus imaging center as under cut-point
The measurement length of profile section is treated described in half part length computation, and shows the measurement length.
15. terminal as claimed in claim 14, which is characterized in that the computing unit is more particularly for:
According to formulaTreat that the measurement of profile section is grown described in calculating
Degree, wherein, L is described to treat that the measurement length of profile section, l are the length for treating profile section in described image frame, described in D is
The distance between terminal and the target object, d are the image distance, α is the angle of inclination, l' be using focus imaging center as
The latter half length of the l of cut-point.
16. terminal as claimed in claim 10, which is characterized in that the acquiring unit obtains the angle of inclination bag of the terminal
It includes:
The angle of inclination of the terminal is obtained by the gyroscope of the terminal built-in.
17. terminal as claimed in claim 10, which is characterized in that the acquiring unit obtains the terminal and the object
The distance between body includes:
Obtain the distance between the terminal that measures of infrared ray sensor and described target object.
18. terminal as claimed in claim 10, which is characterized in that the acquiring unit obtains picture corresponding with described image frame
Away from including:
Obtain the optical focal length of the camera;
Obtain the scaling that display screen imaging is imaged onto from the imaging plane of the camera;
The product for determining the optical focal length and the scaling is the image distance.
19. a kind of computer read/write memory medium, which is characterized in that be stored with journey in the computer read/write memory medium
Sequence instructs, perform claim requirement 1-9 any one of them length measurement methods after described program instruction is called for computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810005659.4A CN108050943B (en) | 2014-12-23 | 2014-12-23 | Length measurement method and terminal |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810005659.4A CN108050943B (en) | 2014-12-23 | 2014-12-23 | Length measurement method and terminal |
CN201410822887.2A CN104534992B (en) | 2014-12-23 | 2014-12-23 | A kind of length measurement method and terminal |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410822887.2A Division CN104534992B (en) | 2014-12-23 | 2014-12-23 | A kind of length measurement method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108050943A true CN108050943A (en) | 2018-05-18 |
CN108050943B CN108050943B (en) | 2020-02-07 |
Family
ID=52850567
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410822887.2A Active CN104534992B (en) | 2014-12-23 | 2014-12-23 | A kind of length measurement method and terminal |
CN201810005659.4A Expired - Fee Related CN108050943B (en) | 2014-12-23 | 2014-12-23 | Length measurement method and terminal |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410822887.2A Active CN104534992B (en) | 2014-12-23 | 2014-12-23 | A kind of length measurement method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN104534992B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108931191A (en) * | 2018-06-01 | 2018-12-04 | 普联技术有限公司 | Distance measuring method, dimension measurement method and terminal |
CN110736431A (en) * | 2019-10-23 | 2020-01-31 | Oppo广东移动通信有限公司 | Size marking method and device, electronic equipment and storage medium |
CN110736432A (en) * | 2019-10-23 | 2020-01-31 | Oppo广东移动通信有限公司 | Size marking method and device, electronic equipment and storage medium |
CN113365045A (en) * | 2020-03-04 | 2021-09-07 | 余姚舜宇智能光学技术有限公司 | Camera module detection method, device and system |
CN113766058A (en) * | 2021-08-30 | 2021-12-07 | 深圳市乐福衡器有限公司 | Method and system for acquiring nutrition information, shooting terminal and storage medium |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104864810A (en) * | 2015-05-11 | 2015-08-26 | 翁杰军 | Digital measuring method and device thereof |
CN106291519A (en) * | 2015-06-05 | 2017-01-04 | 小米科技有限责任公司 | Distance-finding method and device |
CN105180817B (en) * | 2015-08-06 | 2018-08-10 | 联想(北京)有限公司 | A kind of data processing method and electronic equipment |
CN106610269A (en) * | 2015-10-23 | 2017-05-03 | 中兴通讯股份有限公司 | A measurement method and apparatus |
CN105574852A (en) * | 2015-12-07 | 2016-05-11 | 中国科学院合肥物质科学研究院 | Method and system for detecting plant height based on image identification |
CN105635584A (en) * | 2016-01-27 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Terminal shooting method and device and terminal |
WO2017166273A1 (en) * | 2016-04-01 | 2017-10-05 | 美国西北仪器公司 | Image display ranging system and ranging method |
CN106289110A (en) * | 2016-07-25 | 2017-01-04 | 广东小天才科技有限公司 | Angle measuring method and device based on mobile terminal and mobile terminal |
CN106595597A (en) * | 2016-12-16 | 2017-04-26 | 亚坦能源科技(上海)有限公司 | Method and device for showing measurement information on shooting display screen |
CN107238349A (en) * | 2017-05-16 | 2017-10-10 | 广东小天才科技有限公司 | Length measuring method and device |
CN107504902A (en) * | 2017-08-24 | 2017-12-22 | 广东小天才科技有限公司 | Length measuring method and device, mobile terminal and storage medium |
CN109916341B (en) * | 2019-04-22 | 2020-08-25 | 苏州华兴源创科技股份有限公司 | Method and system for measuring horizontal inclination angle of product surface |
CN112365742A (en) * | 2020-10-26 | 2021-02-12 | 深圳佑驾创新科技有限公司 | LDW function test method, device, test equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060031730A (en) * | 2004-10-09 | 2006-04-13 | 엘지전자 주식회사 | Length measuring method for mobile communication terminal |
CN102607423A (en) * | 2011-03-03 | 2012-07-25 | 裵相模 | Method for measuring real size of object using camera of mobile terminal |
WO2013099271A1 (en) * | 2011-12-28 | 2013-07-04 | 山田電器工業株式会社 | Dimension measuring method, electronic device with camera, and program for electronic device with camera |
CN103206919A (en) * | 2012-07-31 | 2013-07-17 | 广州三星通信技术研究有限公司 | Device and method used for measuring object size in portable terminal |
CN103591894A (en) * | 2013-11-05 | 2014-02-19 | 广东欧珀移动通信有限公司 | Method and device for measuring length of object through camera |
CN103697820A (en) * | 2013-12-17 | 2014-04-02 | 杭州华为数字技术有限公司 | Method for measuring sizes based on terminal and terminal equipment |
CN103791841A (en) * | 2012-11-02 | 2014-05-14 | 深圳市亚美斯达科技有限公司 | Magnification measurement method for handheld electronic terminal with imagery function |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102809347B (en) * | 2011-06-01 | 2016-02-10 | 赛恩倍吉科技顾问(深圳)有限公司 | Under many multiplying powers, multi-form scale indicates system and method |
-
2014
- 2014-12-23 CN CN201410822887.2A patent/CN104534992B/en active Active
- 2014-12-23 CN CN201810005659.4A patent/CN108050943B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060031730A (en) * | 2004-10-09 | 2006-04-13 | 엘지전자 주식회사 | Length measuring method for mobile communication terminal |
CN102607423A (en) * | 2011-03-03 | 2012-07-25 | 裵相模 | Method for measuring real size of object using camera of mobile terminal |
WO2013099271A1 (en) * | 2011-12-28 | 2013-07-04 | 山田電器工業株式会社 | Dimension measuring method, electronic device with camera, and program for electronic device with camera |
CN103206919A (en) * | 2012-07-31 | 2013-07-17 | 广州三星通信技术研究有限公司 | Device and method used for measuring object size in portable terminal |
CN103791841A (en) * | 2012-11-02 | 2014-05-14 | 深圳市亚美斯达科技有限公司 | Magnification measurement method for handheld electronic terminal with imagery function |
CN103591894A (en) * | 2013-11-05 | 2014-02-19 | 广东欧珀移动通信有限公司 | Method and device for measuring length of object through camera |
CN103697820A (en) * | 2013-12-17 | 2014-04-02 | 杭州华为数字技术有限公司 | Method for measuring sizes based on terminal and terminal equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108931191A (en) * | 2018-06-01 | 2018-12-04 | 普联技术有限公司 | Distance measuring method, dimension measurement method and terminal |
CN110736431A (en) * | 2019-10-23 | 2020-01-31 | Oppo广东移动通信有限公司 | Size marking method and device, electronic equipment and storage medium |
CN110736432A (en) * | 2019-10-23 | 2020-01-31 | Oppo广东移动通信有限公司 | Size marking method and device, electronic equipment and storage medium |
CN113365045A (en) * | 2020-03-04 | 2021-09-07 | 余姚舜宇智能光学技术有限公司 | Camera module detection method, device and system |
CN113766058A (en) * | 2021-08-30 | 2021-12-07 | 深圳市乐福衡器有限公司 | Method and system for acquiring nutrition information, shooting terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104534992A (en) | 2015-04-22 |
CN104534992B (en) | 2018-01-19 |
CN108050943B (en) | 2020-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104534992B (en) | A kind of length measurement method and terminal | |
CN108279832B (en) | Image acquisition method and electronic device | |
CN108682036B (en) | Pose determination method, pose determination device and storage medium | |
CN104079927B (en) | A kind of angle of visual field measurement mechanism | |
US10277889B2 (en) | Method and system for depth estimation based upon object magnification | |
EP3246659B1 (en) | Method and device for measuring size of object | |
WO2018120460A1 (en) | Image focal length detection method, apparatus and device, and computer-readable storage medium | |
CN105403146A (en) | Object size measurement method and system and intelligent terminal | |
KR101971815B1 (en) | Measurement method and terminal | |
Foltynski et al. | Accuracy and precision of selected wound area measurement methods in diabetic foot ulceration | |
CN104111059A (en) | Distance measuring and locating device and method and terminal | |
EP3098569A1 (en) | Method, apparatus and computer program code for providing navigation information in relation to augmented reality guidance | |
CN105547159A (en) | Method of measuring object based on mobile terminal and mobile terminal | |
KR20180036463A (en) | Method for Processing Image and the Electronic Device supporting the same | |
CN110232707A (en) | A kind of distance measuring method and device | |
CN106546169A (en) | Using the method and device of mobile device Measuring Object size | |
CN104596419A (en) | Two-camera based object mass measuring method, device and terminal | |
KR20170019136A (en) | Apparatus and method for encoding image thereof | |
CN105571561A (en) | Method and device for collecting stumpage information | |
CN104834523A (en) | Terminal | |
KR20180013523A (en) | Apparatus and Method for Sequentially displaying Images on the Basis of Similarity of Image | |
CN107314761A (en) | Measuring method and electronic equipment | |
CN107339957B (en) | Room area measuring method, terminal and electronic equipment | |
CN102104647B (en) | Angle measuring mobile phone and method adopted by same for realizing angle measurement | |
CN106123784B (en) | method and device for measuring length |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18 Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200207 |