CN105547215A - Method for measuring object dimension and terminal equipment - Google Patents

Method for measuring object dimension and terminal equipment Download PDF

Info

Publication number
CN105547215A
CN105547215A CN201510510970.0A CN201510510970A CN105547215A CN 105547215 A CN105547215 A CN 105547215A CN 201510510970 A CN201510510970 A CN 201510510970A CN 105547215 A CN105547215 A CN 105547215A
Authority
CN
China
Prior art keywords
under test
object under
distance
target dimension
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510510970.0A
Other languages
Chinese (zh)
Inventor
徐秉正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Coolpad Software Technology Co Ltd
Original Assignee
Dongguan Coolpad Software Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongguan Coolpad Software Technology Co Ltd filed Critical Dongguan Coolpad Software Technology Co Ltd
Priority to CN201510510970.0A priority Critical patent/CN105547215A/en
Publication of CN105547215A publication Critical patent/CN105547215A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The embodiment of the invention discloses a method for measuring an object dimension and terminal equipment. The method comprises: a preview picture including a to-be-measured object is obtained; when a reference point in a screen of terminal equipment is overlapped with a first end of the to-be-measured object at a target dimensionality direction in the preview picture, a first distance between the terminal equipment and the first end of the to-be-measured object at the target dimensionality direction is measured and a first included angle between the terminal equipment and a horizontal plane or a direction of an earth magnetic field is also measured; when a reference point in the screen of terminal equipment is overlapped with a second end of the to-be-measured object at the target dimensionality direction in the preview picture, a second distance between the terminal equipment and the second end of the to-be-measured object at the target dimensionality direction as well as a second included angle between the terminal equipment and the horizontal plane or the direction of the earth magnetic field is measured; and according to the first distance, the second distance, the first included angle, and the second included angle, a target dimensionality dimension of the to-be-measured object is calculated. According to the embodiment of the invention, an object dimension can be measured rapidly by using a camera.

Description

A kind of dimension of object measuring method and terminal device
Technical field
The present invention relates to field of measuring technique, be specifically related to a kind of dimension of object measuring method and terminal device.
Background technology
At present, when measuring dimension of object, general employing ruler is measured, when dimension of object is larger, such as, when measuring one tree, a mountain, measurement is carried out unrealistic with ruler, in engineering survey, generally adopt engineering measuring instrument, as the size of large sized object measured by transit, spirit-leveling instrument, stadimeter, gyro-theodolite etc., but this metering system is comparatively loaded down with trivial details, and universality is not high.
Summary of the invention
The embodiment of the present invention provides a kind of dimension of object measuring method and terminal device, can pass through camera Quick Measurement dimension of object.
Embodiment of the present invention first aspect, provides a kind of dimension of object measuring method, comprising:
Obtain the preview screen comprising object under test;
When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test described in described preview screen, measuring terminals equipment, to the first distance of the first end in the described target dimension direction of described object under test, measures first angle in described terminal device and surface level or direction, magnetic field of the earth simultaneously;
When the described reference point in described terminal device screen overlaps with second end in the described target dimension direction of object under test described in described preview screen, measure the second distance of described terminal device to second end in the described target dimension direction of described object under test, measure second angle in described terminal device and described surface level or direction, described magnetic field of the earth simultaneously;
The target dimension size of object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation.
In the first possible implementation of embodiment of the present invention first aspect, the target dimension size of described object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation, comprising:
The target dimension size of described object under test is measured according to following formula:
D = ( L 1 × s i n θ ) 2 + ( L 2 - L 1 × c o s θ ) 2 , θ = α - β ;
Wherein, D is described target dimension size, and L1 is described first distance, and L2 is described second distance, and α is described first angle, and β is described second angle.
In conjunction with embodiment of the present invention first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, described measuring terminals equipment comprises to the first distance of the first end in the described target dimension direction of described object under test:
By first distance of infrared distance sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test; Or
By first distance of ultrasonic sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test.
In conjunction with embodiment of the present invention first aspect, in the third possible implementation of embodiment of the present invention first aspect, first angle in the described terminal device of described measurement and surface level or direction, magnetic field of the earth comprises:
First angle in described terminal device and surface level or direction, magnetic field of the earth is measured by attitude sensor.
In conjunction with embodiment of the present invention first aspect, in the 4th kind of possible implementation of embodiment of the present invention first aspect, in first distance of described measuring terminals equipment to the first end in the described target dimension direction of described object under test, with the described terminal device of described measurement to second end in the described target dimension direction of described object under test second distance before, described method also comprises:
Generate the profile of described object under test, and all generate color mark at the second end of the first end of the described target dimension of described object under test and the described target dimension of described object under test.
Embodiment of the present invention second aspect, provides a kind of terminal device, comprising:
Acquiring unit, for obtaining the preview screen comprising object under test;
First measuring unit, for when the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test described in described preview screen, measuring terminals equipment, to the first distance of the first end in the described target dimension direction of described object under test, measures first angle in described terminal device and surface level or direction, magnetic field of the earth simultaneously;
Second measuring unit, for when the described reference point in described terminal device screen overlaps with second end in the described target dimension direction of object under test described in described preview screen, measure the second distance of described terminal device to second end in the described target dimension direction of described object under test, measure second angle in described terminal device and described surface level or direction, described magnetic field of the earth simultaneously;
Computing unit, for the target dimension size of object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation.
In the first possible implementation of embodiment of the present invention second aspect, the mode of described computing unit target dimension size of object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation is specially:
Described computing unit measures the target dimension size of described object under test according to following formula:
D = ( L 1 × s i n θ ) 2 + ( L 2 - L 1 × c o s θ ) 2 , θ = α - β ;
Wherein, D is described target dimension size, and L1 is described first distance, and L2 is described second distance, and α is described first angle, and β is described second angle.
In conjunction with embodiment of the present invention second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described first measuring unit measuring terminals equipment is specially to the mode of the first distance of the first end in the described target dimension direction of described object under test:
Described first measuring unit is by first distance of infrared distance sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test; Or
By first distance of ultrasonic sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test.
In conjunction with embodiment of the present invention second aspect, in the third possible implementation of embodiment of the present invention second aspect, the mode that described first measuring unit measures first angle in described terminal device and surface level or direction, magnetic field of the earth is specially:
Described first measuring unit measures first angle in described terminal device and surface level or direction, magnetic field of the earth by attitude sensor.
In conjunction with embodiment of the present invention second aspect, in the 4th kind of possible implementation of embodiment of the present invention second aspect, described terminal device also comprises:
Generation unit, for generating the profile of described object under test, and all generates color mark at the second end of the first end of the described target dimension of described object under test and the described target dimension of described object under test.
In the embodiment of the present invention, terminal device obtains the preview screen comprising object under test; When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; When the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; According to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test.Implement the embodiment of the present invention, can the target dimension size of Quick Measurement object, thus can the three-dimensional dimension of Quick Measurement object, can camera Quick Measurement dimension of object be passed through.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only 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 the process flow diagram of a kind of dimension of object measuring method disclosed in the embodiment of the present invention;
Fig. 2 is the process flow diagram of another kind of dimension of object measuring method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of terminal device disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of terminal device disclosed in the embodiment of the present invention;
Fig. 5 is a kind of schematic diagram adopting the embodiment of the present invention to measure object height.
Embodiment
Below in conjunction with the accompanying drawing in embodiment of the present invention, the technical scheme in embodiment of the present invention is clearly and completely described.Obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all should belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of dimension of object measuring method and terminal device, can pass through camera Quick Measurement dimension of object.Below be described in detail respectively.
The terminal device described in the embodiment of the present invention can comprise: mobile phone, panel computer or walkman etc., and above-mentioned terminal device is only citing, and non exhaustive, including but not limited to above-mentioned terminal device.
Refer to Fig. 1, Fig. 1 is the process flow diagram of a kind of dimension of object measuring method disclosed in the embodiment of the present invention.As shown in Figure 1, the dimension of object measuring method described in the present embodiment, comprises step:
S101, obtains the preview screen comprising object under test.
In the embodiment of the present invention, the preview screen comprising object under test can be obtained by the camera in terminal device, can by terminal device adjustment preview screen in rotary moving, object under test can be any visible object, such as, buildings, trees, high mountain, river, people, animal etc.
S102, when the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment of the present invention, the reference point in terminal device screen can be can any point of display frame in terminal device screen, can be arranged, such as, terminal device screen centre position can be set to reference point by terminal device.User can rotate terminal device, and to make the reference point in terminal device screen overlap with the first end in the target dimension direction of object under test in preview screen, the preview screen in step S102 is likely different from the preview screen in step S101.Target dimension direction can be the length direction of object under test, or the Width of object under test, or the short transverse of object under test, the first end in the target dimension direction of object under test can be the first end of the length direction of object under test, or the first end of the Width of object under test, or the first end of the short transverse of object under test.First distance of the built-in range sensor measuring terminals equipment of terminal device to the first end in the target dimension direction of object under test can be passed through, first angle in the built-in angular transducer measuring terminals equipment of terminal device and surface level or direction, magnetic field of the earth can be passed through.When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment that some are feasible, in step S102, measuring terminals equipment can comprise to the first distance of the first end in the target dimension direction of object under test:
By first distance of infrared distance sensor measuring terminals equipment to the first end in the target dimension direction of object under test; Or
By first distance of ultrasonic sensor measuring terminals equipment to the first end in the target dimension direction of object under test.
In the embodiment of the present invention, can by first distance of infrared distance sensor measuring terminals equipment to the first end in the target dimension direction of object under test; Or by first distance of ultrasonic sensor measuring terminals equipment to the first end in the target dimension direction of object under test.The infrared signal that infrared distance sensor sends is vertical with terminal device, and the ultrasonic signal that ultrasonic sensor sends is vertical with terminal device.
In the embodiment that some are feasible, in step S102, first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth can comprise:
By first angle in attitude sensor measuring terminals equipment and surface level or direction, magnetic field of the earth.
The motion sensors such as in the embodiment of the present invention, attitude sensor can comprise three-axis gyroscope, three axis accelerometer, three axle electronic compasss, such as, can pass through first angle in three-axis gyroscope measuring terminals equipment and surface level or direction, magnetic field of the earth.Preferably, when measuring the height dimension of object under test, by first angle of attitude sensor measuring terminals equipment with surface level, when the width dimensions of measurement object under test, by first angle in attitude sensor measuring terminals equipment and direction, magnetic field of the earth.
S103, when the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment of the present invention, preview screen when the reference point in terminal device screen overlaps from second end in the target dimension direction of object under test in preview screen is different with the preview screen in step S102, user can rotate terminal device on the basis of step S102, overlaps with second end in the target dimension direction of object under test in preview screen to make the reference point in terminal device screen.Second end in the target dimension direction of object under test can be second end (corresponding with the first end of length direction in step S102) of the length direction of object under test, or the second end of the Width of object under test (corresponding with the first end of Width in step S102), or the second end of the short transverse of object under test (corresponding with the first end of short transverse in step S102).The second distance of the built-in range sensor measuring terminals equipment of terminal device to second end in the target dimension direction of object under test can be passed through, second angle in the built-in angular transducer measuring terminals equipment of terminal device and surface level or direction, magnetic field of the earth can be passed through.When the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment that some are feasible, in step S103, measuring terminals equipment can comprise to the second distance of second end in the target dimension direction of object under test:
By the second distance of infrared distance sensor measuring terminals equipment to second end in the target dimension direction of object under test; Or
By the second distance of ultrasonic sensor measuring terminals equipment to second end in the target dimension direction of object under test.
In the embodiment of the present invention, can by the second distance of infrared distance sensor measuring terminals equipment to second end in the target dimension direction of object under test; Or by the second distance of ultrasonic sensor measuring terminals equipment to second end in the target dimension direction of object under test.The infrared signal that infrared distance sensor sends is vertical with terminal device, and the ultrasonic signal that ultrasonic sensor sends is vertical with terminal device.
In the embodiment that some are feasible, in step S103, second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth can comprise:
By second angle in attitude sensor measuring terminals equipment and surface level or direction, magnetic field of the earth.
The motion sensors such as in the embodiment of the present invention, attitude sensor can comprise three-axis gyroscope, three axis accelerometer, three axle electronic compasss, such as, can pass through second angle in three-axis gyroscope measuring terminals equipment and surface level or direction, magnetic field of the earth.Preferably, when measuring the height dimension of object under test, by second angle of attitude sensor measuring terminals equipment with surface level, when the width dimensions of measurement object under test, by second angle in attitude sensor measuring terminals equipment and direction, magnetic field of the earth.
S104, according to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test.
In the embodiment of the present invention, after the first distance, second distance, the first angle and the second angle are all measured, according to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test, can according to the target dimension size of formula, the first distance, second distance, the first angle and the second angle calcu-lation object under test preset.
In the embodiment that some are feasible, step S104 can comprise:
The target dimension size of object under test is measured according to following formula:
D = ( L 1 × s i n θ ) 2 + ( L 2 - L 1 × c o s θ ) 2 , θ = α - β ;
Wherein, D is target dimension size, and L1 is the first distance, and L2 is second distance, and α is the first angle, and β is the second angle.
In the embodiment of the present invention, Fig. 5 can be consulted, Fig. 5 is a kind of schematic diagram adopting the embodiment of the present invention to measure object height, D is the size of the target dimension of object under test, L1 is that the reference point in terminal device screen is when overlapping with the first end in the target dimension direction of object under test in preview screen, terminal device is to the first distance of the first end in the target dimension direction of object under test, L2 is that the reference point in terminal device screen is when overlapping with second end in the target dimension direction of object under test in preview screen, terminal device is to the second distance of second end in the target dimension direction of object under test, α is that (in Fig. 5, the direction of terminal device is P2 for the first angle of terminal device and surface level, surface level is S, α is the angle between P2 and S), β is that (in Fig. 5, the direction of terminal device is P1 for the second angle of terminal device and surface level, surface level is S, β is the angle between P1 and S).In Fig. 5, the sense that the range sensor of terminal device sends is vertical with terminal device.
In the embodiment of the present invention, obtain the preview screen comprising object under test; When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; When the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; According to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test.Implement the embodiment of the present invention, can the target dimension size of Quick Measurement object, thus can the three-dimensional dimension of Quick Measurement object, can camera Quick Measurement dimension of object be passed through.
Refer to Fig. 2, Fig. 2 is the process flow diagram of another kind of dimension of object measuring method disclosed in the embodiment of the present invention.As shown in Figure 2, the dimension of object measuring method described in the present embodiment, comprises step:
S201, obtains the preview screen comprising object under test.
S202, generates the profile of object under test, and all generates color mark at the second end of the first end of the target dimension of object under test and the target dimension of object under test.
In the embodiment of the present invention, after terminal device obtains and comprises the preview screen of object under test, the profile of object under test can be generated, and all generate color mark at the second end of the first end of the target dimension of object under test and the target dimension of object under test, the features such as the color of object under test, contrast can be utilized, generated the profile of object under test by specific algorithm.All color mark is generated at the second end of the first end of the length direction of object under test and the length direction of object under test, user can be facilitated to be overlapped by the first end of the reference point in terminal device screen with the target dimension direction of object under test in preview screen, second end of the reference point in terminal device screen with the target dimension direction of object under test in preview screen is overlapped.Implement the embodiment of the present invention, fast the first end of the reference point in terminal device screen with the target dimension direction of object under test in preview screen can be overlapped, second end of reference point in terminal device screen with the target dimension direction of object under test in preview screen is overlapped, can Quick Measurement dimension of object.
S203, when the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
S204, when the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
S205, according to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test.
Step S201 in the embodiment of the present invention can step S101 shown in Figure 1, step S203 ~ step S205 can step S102 shown in Figure 1 ~ step S104, the embodiment of the present invention repeats no more.
In the embodiment of the present invention, obtain the preview screen comprising object under test; Generate the profile of object under test, and all generate color mark at the second end of the first end of the target dimension of object under test and the target dimension of object under test; When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; When the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; According to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test.Implement the embodiment of the present invention, can the target dimension size of Quick Measurement object, thus can the three-dimensional dimension of Quick Measurement object, can camera Quick Measurement dimension of object be passed through.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of terminal device disclosed in the embodiment of the present invention.As shown in Figure 3, the terminal device described in the present embodiment, comprises acquiring unit 301, first measuring unit 302, second measuring unit 303 and computing unit 304, wherein:
Acquiring unit 301, for obtaining the preview screen comprising object under test.
In the embodiment of the present invention, acquiring unit 301 can obtain by the camera in terminal device the preview screen comprising object under test, can by terminal device adjustment preview screen in rotary moving, object under test can be any visible object, such as, buildings, trees, high mountain, river, people, animal etc.
First measuring unit 302, for when the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment of the present invention, the reference point in terminal device screen can be can any point of display frame in terminal device screen, can be arranged, such as, terminal device screen centre position can be set to reference point by terminal device.User can rotate terminal device, to make the reference point in terminal device screen overlap with the first end in the target dimension direction of object under test in preview screen, preview screen when preview screen when the first measuring unit 302 is measured obtains from acquiring unit 301 is likely different.Target dimension direction can be the length direction of object under test, or the Width of object under test, or the short transverse of object under test, first measuring unit 302 can be the first end of the length direction measuring object under test, or measure the first end of the Width of object under test, or the first end of the short transverse of measurement object under test.First measuring unit 302 can pass through first distance of the built-in range sensor measuring terminals equipment of terminal device to the first end in the target dimension direction of object under test, can pass through first angle in the built-in angular transducer measuring terminals equipment of terminal device and surface level or direction, magnetic field of the earth.When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, first measuring unit 302 measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
Optionally, the first measuring unit 302 measuring terminals equipment is specially to the mode of the first distance of the first end in the target dimension direction of object under test:
First measuring unit 302 is by first distance of infrared distance sensor measuring terminals equipment to the first end in the target dimension direction of object under test; Or
By first distance of ultrasonic sensor measuring terminals equipment to the first end in the target dimension direction of object under test.
In the embodiment of the present invention, the first measuring unit 302 can by first distance of infrared distance sensor measuring terminals equipment to the first end in the target dimension direction of object under test; Or by first distance of ultrasonic sensor measuring terminals equipment to the first end in the target dimension direction of object under test.The infrared signal that infrared distance sensor sends is vertical with terminal device, and the ultrasonic signal that ultrasonic sensor sends is vertical with terminal device.
Optionally, the mode of first angle in the first measuring unit 302 measuring terminals equipment and surface level or direction, magnetic field of the earth is specially:
First measuring unit 302 passes through first angle in attitude sensor measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment of the present invention, attitude sensor can comprise three-axis gyroscope, three axis accelerometer, the motion sensors such as three axle electronic compasss, such as, the first measuring unit 302 can pass through first angle in three-axis gyroscope measuring terminals equipment and surface level or direction, magnetic field of the earth.Preferably, when measuring the height dimension of object under test, first measuring unit 302 passes through the first angle of attitude sensor measuring terminals equipment and surface level, when measuring the width dimensions of object under test, the first measuring unit 302 passes through first angle in attitude sensor measuring terminals equipment and direction, magnetic field of the earth.
Second measuring unit 303, for when the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment of the present invention, preview screen when preview screen when first measuring unit 302 is measured is measured from the second measuring unit 303 is different, second end in the target dimension direction of object under test can be second end (corresponding with the first end of the length direction that the first measuring unit 302 is measured) of the length direction of object under test, or the second end of the Width of object under test (corresponding with the first end of the Width that the first measuring unit 302 is measured), or the second end of the short transverse of object under test (corresponding with the first end of the short transverse that the first measuring unit 302 is measured).Second measuring unit 303 can pass through the second distance of the built-in range sensor measuring terminals equipment of terminal device to second end in the target dimension direction of object under test, can pass through second angle in the built-in angular transducer measuring terminals equipment of terminal device and surface level or direction, magnetic field of the earth.When the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth.
Optionally, the second measuring unit 303 measuring terminals equipment is specially to the mode of the second distance of second end in the target dimension direction of object under test:
Second measuring unit 303 is by the second distance of infrared distance sensor measuring terminals equipment to second end in the target dimension direction of object under test; Or
By the second distance of ultrasonic sensor measuring terminals equipment to second end in the target dimension direction of object under test.
In the embodiment of the present invention, the second measuring unit 303 can by the second distance of infrared distance sensor measuring terminals equipment to second end in the target dimension direction of object under test; Or by the second distance of ultrasonic sensor measuring terminals equipment to second end in the target dimension direction of object under test.The infrared signal that infrared distance sensor sends is vertical with terminal device, and the ultrasonic signal that ultrasonic sensor sends is vertical with terminal device.
Optionally, the mode of second angle in the second measuring unit 303 measuring terminals equipment and surface level or direction, magnetic field of the earth is specially:
Second measuring unit 303 passes through second angle in attitude sensor measuring terminals equipment and surface level or direction, magnetic field of the earth.
In the embodiment of the present invention, attitude sensor can comprise three-axis gyroscope, three axis accelerometer, the motion sensors such as three axle electronic compasss, such as, the second measuring unit 303 can pass through second angle in three-axis gyroscope measuring terminals equipment and surface level or direction, magnetic field of the earth.Preferably, when measuring the height dimension of object under test, second measuring unit 303 passes through the second angle of attitude sensor measuring terminals equipment and surface level, when measuring the width dimensions of object under test, the second measuring unit 303 passes through second angle in attitude sensor measuring terminals equipment and direction, magnetic field of the earth.
Computing unit 304, for the target dimension size according to the first distance, second distance, the first angle and the second angle calcu-lation object under test.
In the embodiment of the present invention, after the first distance, second distance, the first angle and the second angle are all measured, computing unit 304 is according to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test, and computing unit 304 can according to the target dimension size of formula, the first distance, second distance, the first angle and the second angle calcu-lation object under test preset.
Optionally, computing unit 304 is specially according to the mode of the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test:
Computing unit 304 measures the target dimension size of object under test according to following formula:
D = ( L 1 × s i n θ ) 2 + ( L 2 - L 1 × c o s θ ) 2 , θ = α - β ;
Wherein, D is target dimension size, and L1 is the first distance, and L2 is second distance, and α is the first angle, and β is the second angle.
In the embodiment of the present invention, Fig. 5 can be consulted, Fig. 5 is a kind of schematic diagram adopting the embodiment of the present invention to measure object height, D is the size of the target dimension of object under test, L1 is that the reference point in terminal device screen is when overlapping with the first end in the target dimension direction of object under test in preview screen, terminal device is to the first distance of the first end in the target dimension direction of object under test, L2 is that the reference point in terminal device screen is when overlapping with second end in the target dimension direction of object under test in preview screen, terminal device is to the second distance of second end in the target dimension direction of object under test, α is that (in Fig. 5, the direction of terminal device is P2 for the first angle of terminal device and surface level, surface level is S, α is the angle between P2 and S), β is that (in Fig. 5, the direction of terminal device is P1 for the second angle of terminal device and surface level, surface level is S, β is the angle between P1 and S).In Fig. 5, the sense that the range sensor of terminal device sends is vertical with terminal device.
In the embodiment of the present invention, acquiring unit 301 obtains the preview screen comprising object under test; When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, first measuring unit 302 measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; When the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, second measuring unit 303 measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; Computing unit 304 is according to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test.Implement the embodiment of the present invention, can the target dimension size of Quick Measurement object, thus can the three-dimensional dimension of Quick Measurement object, can camera Quick Measurement dimension of object be passed through.
Refer to Fig. 4, Fig. 4 is the structural representation of another kind of terminal device disclosed in the embodiment of the present invention.As shown in Figure 4, the terminal device described in the present embodiment, except comprising acquiring unit 301, first measuring unit 302, second measuring unit 303 shown in Fig. 3 and computing unit 304, also comprises generation unit 305, wherein:
Generation unit 305, for generating the profile of object under test, and all generates color mark at the second end of the first end of the target dimension of object under test and the target dimension of object under test.
In the embodiment of the present invention, after acquiring unit 301 obtains and comprises the preview screen of object under test, generation unit 305 can generate the profile of object under test, and all generate color mark at the second end of the first end of the target dimension of object under test and the target dimension of object under test, the features such as the color of object under test, contrast can be utilized, generated the profile of object under test by specific algorithm.All color mark is generated at the second end of the first end of the length direction of object under test and the length direction of object under test, user can be facilitated to be overlapped by the first end of the reference point in terminal device screen with the target dimension direction of object under test in preview screen, second end of the reference point in terminal device screen with the target dimension direction of object under test in preview screen is overlapped.Implement the embodiment of the present invention, fast the first end of the reference point in terminal device screen with the target dimension direction of object under test in preview screen can be overlapped, second end of reference point in terminal device screen with the target dimension direction of object under test in preview screen is overlapped, can Quick Measurement dimension of object.
In the embodiment of the present invention, acquiring unit 301 obtains the preview screen comprising object under test; Generation unit 305 generates the profile of object under test, and all generates color mark at the second end of the first end of the target dimension of object under test and the target dimension of object under test; When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test in preview screen, first measuring unit 302 measuring terminals equipment to the first distance of the first end in the target dimension direction of object under test, simultaneously first angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; When the reference point in terminal device screen overlaps with second end in the target dimension direction of object under test in preview screen, second measuring unit 303 measuring terminals equipment to the second distance of second end in the target dimension direction of object under test, simultaneously second angle in measuring terminals equipment and surface level or direction, magnetic field of the earth; Computing unit 304 is according to the target dimension size of the first distance, second distance, the first angle and the second angle calcu-lation object under test.Implement the embodiment of the present invention, can the target dimension size of Quick Measurement object, thus can the three-dimensional dimension of Quick Measurement object, can camera Quick Measurement dimension of object be passed through.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-OnlyMemory, ROM), random access device (RandomAccessMemory, RAM), disk or CD etc.
A kind of dimension of object measuring method provided the embodiment of the present invention above and terminal device are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a dimension of object measuring method, is characterized in that, comprising:
Obtain the preview screen comprising object under test;
When the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test described in described preview screen, measuring terminals equipment, to the first distance of the first end in the described target dimension direction of described object under test, measures first angle in described terminal device and surface level or direction, magnetic field of the earth simultaneously;
When the described reference point in described terminal device screen overlaps with second end in the described target dimension direction of object under test described in described preview screen, measure the second distance of described terminal device to second end in the described target dimension direction of described object under test, measure second angle in described terminal device and described surface level or direction, described magnetic field of the earth simultaneously;
The target dimension size of object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation.
2. method according to claim 1, is characterized in that, the target dimension size of described object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation, comprising:
The target dimension size of described object under test is measured according to following formula:
D = ( L 1 × s i n θ ) 2 + ( L 2 - L 1 × c o s θ ) 2 , θ = α - β ;
Wherein, D is described target dimension size, and L1 is described first distance, and L2 is described second distance, and α is described first angle, and β is described second angle.
3. method according to claim 1, is characterized in that, described measuring terminals equipment comprises to the first distance of the first end in the described target dimension direction of described object under test:
By first distance of infrared distance sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test; Or
By first distance of ultrasonic sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test.
4. method according to claim 1, is characterized in that, first angle in the described terminal device of described measurement and surface level or direction, magnetic field of the earth comprises:
First angle in described terminal device and surface level or direction, magnetic field of the earth is measured by attitude sensor.
5. method according to claim 1, it is characterized in that, in first distance of described measuring terminals equipment to the first end in the described target dimension direction of described object under test, with the described terminal device of described measurement to second end in the described target dimension direction of described object under test second distance before, described method also comprises:
Generate the profile of described object under test, and all generate color mark at the second end of the first end of the described target dimension of described object under test and the described target dimension of described object under test.
6. a terminal device, is characterized in that, comprising:
Acquiring unit, for obtaining the preview screen comprising object under test;
First measuring unit, for when the reference point in terminal device screen overlaps with the first end in the target dimension direction of object under test described in described preview screen, measuring terminals equipment, to the first distance of the first end in the described target dimension direction of described object under test, measures first angle in described terminal device and surface level or direction, magnetic field of the earth simultaneously;
Second measuring unit, for when the described reference point in described terminal device screen overlaps with second end in the described target dimension direction of object under test described in described preview screen, measure the second distance of described terminal device to second end in the described target dimension direction of described object under test, measure second angle in described terminal device and described surface level or direction, described magnetic field of the earth simultaneously;
Computing unit, for the target dimension size of object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation.
7. terminal device according to claim 6, is characterized in that, the mode of described computing unit target dimension size of object under test according to described first distance, described second distance, described first angle and described second angle calcu-lation is specially:
Described computing unit measures the target dimension size of described object under test according to following formula:
D = ( L 1 × s i n θ ) 2 + ( L 2 - L 1 × c o s θ ) 2 , θ = α - β ;
Wherein, D is described target dimension size, and L1 is described first distance, and L2 is described second distance, and α is described first angle, and β is described second angle.
8. terminal device according to claim 6, is characterized in that, described first measuring unit measuring terminals equipment is specially to the mode of the first distance of the first end in the described target dimension direction of described object under test:
Described first measuring unit is by first distance of infrared distance sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test; Or
By first distance of ultrasonic sensor measuring terminals equipment to the first end in the described target dimension direction of described object under test.
9. terminal device according to claim 6, is characterized in that, the mode that described first measuring unit measures first angle in described terminal device and surface level or direction, magnetic field of the earth is specially:
Described first measuring unit measures first angle in described terminal device and surface level or direction, magnetic field of the earth by attitude sensor.
10. terminal device according to claim 6, is characterized in that, described terminal device also comprises:
Generation unit, for generating the profile of described object under test, and all generates color mark at the second end of the first end of the described target dimension of described object under test and the described target dimension of described object under test.
CN201510510970.0A 2015-08-18 2015-08-18 Method for measuring object dimension and terminal equipment Pending CN105547215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510510970.0A CN105547215A (en) 2015-08-18 2015-08-18 Method for measuring object dimension and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510510970.0A CN105547215A (en) 2015-08-18 2015-08-18 Method for measuring object dimension and terminal equipment

Publications (1)

Publication Number Publication Date
CN105547215A true CN105547215A (en) 2016-05-04

Family

ID=55826575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510510970.0A Pending CN105547215A (en) 2015-08-18 2015-08-18 Method for measuring object dimension and terminal equipment

Country Status (1)

Country Link
CN (1) CN105547215A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106441092A (en) * 2016-09-05 2017-02-22 合肥京东方光电科技有限公司 Size measuring method and mobile terminal
CN108613625A (en) * 2018-05-03 2018-10-02 艾律有限责任公司 A kind of measuring apparatus and its measurement method using augmented reality
CN109141316A (en) * 2018-08-24 2019-01-04 Tcl移动通信科技(宁波)有限公司 A kind of dimension measurement method, equipment and storage medium
CN111982037A (en) * 2019-05-23 2020-11-24 华为技术有限公司 Height measuring method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110288818A1 (en) * 2010-05-21 2011-11-24 Sure-Shot Medical Device, Inc. Method and Apparatus for Dimensional Measurement
CN104374365A (en) * 2014-11-14 2015-02-25 无锡坦程物联网科技有限公司 Mobile phone height measurement software and height measurement method based on software
CN104508425A (en) * 2012-08-16 2015-04-08 莱卡地球系统公开股份有限公司 Hand-held distance-measuring device having an angle-determining unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110288818A1 (en) * 2010-05-21 2011-11-24 Sure-Shot Medical Device, Inc. Method and Apparatus for Dimensional Measurement
CN104508425A (en) * 2012-08-16 2015-04-08 莱卡地球系统公开股份有限公司 Hand-held distance-measuring device having an angle-determining unit
CN104374365A (en) * 2014-11-14 2015-02-25 无锡坦程物联网科技有限公司 Mobile phone height measurement software and height measurement method based on software

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106441092A (en) * 2016-09-05 2017-02-22 合肥京东方光电科技有限公司 Size measuring method and mobile terminal
CN108613625A (en) * 2018-05-03 2018-10-02 艾律有限责任公司 A kind of measuring apparatus and its measurement method using augmented reality
CN108613625B (en) * 2018-05-03 2020-11-06 艾律有限责任公司 Measuring method using augmented reality technology
CN109141316A (en) * 2018-08-24 2019-01-04 Tcl移动通信科技(宁波)有限公司 A kind of dimension measurement method, equipment and storage medium
CN111982037A (en) * 2019-05-23 2020-11-24 华为技术有限公司 Height measuring method and electronic equipment

Similar Documents

Publication Publication Date Title
CN102589493B (en) Cantilever crane system, engineering machinery and cantilever crane system terminal end location parameter obtaining method
CN105547215A (en) Method for measuring object dimension and terminal equipment
US20140168174A1 (en) Stylus location utilizing multiple magnetometers
CN103398696B (en) A kind of terminal camera distance-finding method and terminal
CN107421523A (en) Azimuth calibration method, apparatus, storage medium and computer equipment
US20140200841A1 (en) Geomagnetic sensor calibration apparatus and method thereof
KR102001789B1 (en) Apparatus and Method for Inspecting damage of structure
CN105937878A (en) Indoor distance measuring method
CN104697508B (en) Magnetic field sensor and electronic compass using same
Zhao et al. Displacement monitoring for slope stability evaluation based on binocular vision systems
CN105091847A (en) Distance measurement method and electronic device thereof
CN104374365A (en) Mobile phone height measurement software and height measurement method based on software
KR20190034045A (en) System for golf putting assistance
KR101527211B1 (en) Method and system for constructing map of magnetic field
CN203203587U (en) Real-point real-time gradient measuring device based on laser ranging
CN103439224A (en) Method for obtaining water drop static contact angle by image processing
RU2544761C1 (en) Device for simulation of reconnaissance catalogue of different-type mobile objects
CN107421494B (en) vehicle attitude detection method and device
CN103162632A (en) Three-dimensional (3D) optical displacement measuring system for centrifugal model
JP2008107102A (en) Electronic compass and azimuth measuring method
CN103499707B (en) Method and device for acquiring motion direction of terminal
CN104111063B (en) A kind of Wireless 3 D obliquity sensor based on magnetic field and detection method thereof
CN113252028B (en) Positioning method of robot in water delivery tunnel, electronic device and storage medium
JP6052090B2 (en) Magnetic measurement system
RU2643623C1 (en) Device for modeling combinations of different types of moving objects

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504