CN103575292B - Measurement apparatus and measuring method - Google Patents

Measurement apparatus and measuring method Download PDF

Info

Publication number
CN103575292B
CN103575292B CN201210250039.XA CN201210250039A CN103575292B CN 103575292 B CN103575292 B CN 103575292B CN 201210250039 A CN201210250039 A CN 201210250039A CN 103575292 B CN103575292 B CN 103575292B
Authority
CN
China
Prior art keywords
target
measuring device
distance
formula
image
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.)
Active
Application number
CN201210250039.XA
Other languages
Chinese (zh)
Other versions
CN103575292A (en
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.)
Ambit Microsystems Shanghai Ltd
Original Assignee
Ambit Microsystems Shanghai Ltd
Hon Hai Precision Industry 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 Ambit Microsystems Shanghai Ltd, Hon Hai Precision Industry Co Ltd filed Critical Ambit Microsystems Shanghai Ltd
Priority to CN201210250039.XA priority Critical patent/CN103575292B/en
Publication of CN103575292A publication Critical patent/CN103575292A/en
Application granted granted Critical
Publication of CN103575292B publication Critical patent/CN103575292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C23/00Combined instruments indicating more than one navigational value, e.g. for aircraft; Combined measuring devices for measuring two or more variables of movement, e.g. distance, speed or acceleration
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Multimedia (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Measurement Of Optical Distance (AREA)

Abstract

一种测量装置,包括处理器、摄像单元和G-sensor单元。摄像单元拍摄并获取至少一个目标的图像,G-sensor单元相应地产生一标识该测量装置在一坐标轴Z轴方向上的分量的返回值。处理器根据返回值及预存的基准值,并利用第一公式和第二公式计算该测量装置到该至少一个目标的距离。本发明还提供一种应用于一测量装置的测量方法。利用本发明,通过设置摄像单元获取至少一个目标的图像,使得G-sensor单元相应地输出一返回值,并根据该返回值与预存的基准值进行目标距离、高度以及平均速度的计算,从而解决了现有技术中测量装置利用GPS而无法进行较短地、精确地测量的技术问题。

A measuring device includes a processor, a camera unit and a G-sensor unit. The camera unit shoots and acquires an image of at least one target, and the G-sensor unit correspondingly generates a return value identifying a component of the measuring device in the direction of a coordinate axis Z. The processor uses the first formula and the second formula to calculate the distance from the measuring device to the at least one target according to the returned value and the pre-stored reference value. The invention also provides a measuring method applied to a measuring device. Utilize the present invention, obtain the image of at least one target by setting camera unit, make G-sensor unit output a return value accordingly, and carry out target distance, height and average speed calculation according to this return value and pre-stored reference value, thereby solve The technical problem that the measurement device in the prior art cannot perform short and accurate measurement by using GPS is solved.

Description

测量装置及测量方法Measuring device and measuring method

技术领域 technical field

本发明涉及用于测量位于一定距离处的目标物体的位置、高度和速度的装置及测量方法。 The invention relates to a device and a measuring method for measuring the position, height and velocity of a target object located at a certain distance.

背景技术 Background technique

随着移动技术的发展,便携式移动设备,如智能手机、平板电脑等,除了满足基本功能外,也具备越来越多的附加功能。其中,移动设备中通常都设置GPS(GlobalPositionSystem,全球定位系统),用于使用者的定位及导航,同时兼具测量一定距离处的目标的距离和/或高度,以及使用者的移动速度等。在现有技术中,GPS通过公式v=△s/△t进行速度测量,其中,△s为测量的使用者与目标的距离,△t为移动到目标所用的时间。然而,△s的精度通常为10m,在测量较小距离时存在较大的误差,故而无法测量较小距离内的平均速度。并且,GPS通常只能够测量海拔高度,而不能用于对目标物体进行高度的测量。同时,利用GPS进行目标物体的位置、高度和速度测量时所需的响应时间较长,从而无法快速得到所需测量的数据。 With the development of mobile technology, portable mobile devices, such as smart phones, tablet computers, etc., have more and more additional functions in addition to satisfying basic functions. Among them, the GPS (Global Position System, Global Positioning System) is usually installed in the mobile device for positioning and navigation of the user, and simultaneously measures the distance and/or height of a target at a certain distance, and the moving speed of the user. In the prior art, GPS uses the formula v=Δs/Δt for speed measurement, wherein Δs is the measured distance between the user and the target, and Δt is the time taken to move to the target. However, the accuracy of △s is usually 10m, and there is a large error when measuring a small distance, so the average speed in a small distance cannot be measured. Moreover, GPS is generally only capable of measuring altitude, but cannot be used to measure the height of target objects. At the same time, the response time required to measure the position, height and speed of the target object using GPS is relatively long, so that the required measurement data cannot be obtained quickly.

发明内容 Contents of the invention

有鉴于此,有必要提供一种测量装置及测量方法,以解决现有技术中的移动设备利用GPS无法进行较短距离内的距离、平均速度以及目标位置高度的测量。 In view of this, it is necessary to provide a measuring device and a measuring method to solve the problem that the mobile equipment in the prior art cannot measure the distance, average speed and target position height within a short distance by using GPS.

本发明提供一种测量装置,包括处理器,该测量装置还包括: The invention provides a measuring device, including a processor, and the measuring device also includes:

摄像单元,用于当用户调整该测量装置时拍摄并获取包括至少一个目标的图像。及 The camera unit is used for shooting and acquiring an image including at least one target when the user adjusts the measuring device. and

G-sensor单元,用于当该摄像单元获取包括至少一个目标的图像时,根据该测量装置的翻转角度产生一返回值z,其中,该返回值z为该测量装置在一坐标轴Z轴方向上的分量。 The G-sensor unit is used to generate a return value z according to the flip angle of the measurement device when the camera unit acquires an image including at least one target, wherein the return value z is the measurement device in the direction of a coordinate axis Z-axis on the weight.

该处理器预存一高度基准值,该处理器用于根据该G-sensor单元产生的返回值z以及该高度基准值利用第一公式和第二公式计算该测量装置到该至少一个目标的距离。 The processor pre-stores a height reference value, and the processor is used to calculate the distance from the measuring device to the at least one target by using the first formula and the second formula according to the return value z generated by the G-sensor unit and the height reference value.

本发明还提供一种应用于一测量装置的测量方法,包括: The present invention also provides a measuring method applied to a measuring device, comprising:

在第一时间调整该测量装置的姿态拍摄并获取一目标的图像。 The posture of the measuring device is adjusted at the first time to capture and acquire an image of a target.

根据获取的该目标的图像时该测量装置的翻转角度相应地产生一返回值,其中,该返回值为该测量装置在坐标轴Z轴方向上的分量。 A return value is correspondingly generated according to the flip angle of the measuring device when the image of the target is acquired, wherein the return value is a component of the measuring device in the direction of the coordinate axis Z.

根据该返回值及一预存高度基准值,并利用第一公式和第二公式计算该测量装置与该目标之间的距离。 According to the return value and a pre-stored height reference value, the distance between the measuring device and the target is calculated by using the first formula and the second formula.

相对于现有技术,本发明提供的测量装置及测量方法,通过测量装置中设置的摄像单元对目标物体的一次或多次的聚焦以得到待测点,G-sensor单元根据摄像单元聚焦得到的待测点对应地输出一返回值,处理器根据该返回值与测量装置中预存的基准值进行目标物体的距离、高度以及在一段时间内的移动平均速度的计算,从而解决了现有技术中测量装置利用GPS而无法进行较短地、精确地测量的技术问题。 Compared with the prior art, the measurement device and the measurement method provided by the present invention obtain the points to be measured by focusing the target object one or more times by the camera unit provided in the measurement device, and the G-sensor unit obtains the points to be measured according to the focus of the camera unit. The points to be measured output a return value correspondingly, and the processor calculates the distance, height and moving average speed of the target object according to the return value and the reference value pre-stored in the measuring device, thereby solving the problem in the prior art The technical problem that the measuring device cannot make short and accurate measurements using GPS.

附图说明 Description of drawings

图1为本发明实施方式中的测量装置的模块示意图。 FIG. 1 is a block diagram of a measuring device in an embodiment of the present invention.

图2为本发明实施方式中的测量装置进行目标距离测量的示意图。 FIG. 2 is a schematic diagram of a measuring device performing target distance measurement in an embodiment of the present invention.

图3为本发明实施方式中的测量装置进行速度测量的示意图。 Fig. 3 is a schematic diagram of a measurement device performing speed measurement in an embodiment of the present invention.

图4为本发明实施方式中的测量装置进行目标物体高度测量的示意图。 Fig. 4 is a schematic diagram of measuring the height of a target object by the measuring device in the embodiment of the present invention.

图5为本发明实施方式中进行目标距离测量的方法流程图。 Fig. 5 is a flowchart of a method for measuring a target distance in an embodiment of the present invention.

图6为本发明实施方式中速度测量的方法流程图。 Fig. 6 is a flowchart of a method for speed measurement in an embodiment of the present invention.

图7为本发明实施方式中进行目标物体高度测量的方法流程图。 FIG. 7 is a flowchart of a method for measuring the height of a target object in an embodiment of the present invention.

主要元件符号说明 Description of main component symbols

测量装置measuring device 1010 G-sensor单元G-sensor unit 1111 摄像单元camera unit 1212 处理器processor 1313

如下具体实施方式将结合上述附图进一步说明本发明。 The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.

具体实施方式 detailed description

下面将结合附图,对本发明作进一步的详细说明。 The present invention will be further described in detail below in conjunction with the accompanying drawings.

请参阅图1,为本发明实施方式中的测量装置的模块示意图,该测量装置10可以是手机、平板电脑等便携式移动设备。该测量装置10包括G-sensor(Gravity-sensor,重力传感器)单元11、摄像单元12以及处理器13。其中,该摄像单元12可以包括具有光电导摄像管、固体光电传感器(ChargeCoupledDevice,CCD)或者互补金属氧化物半导体(ComplementaryMetal-Oxide-SemiconductorTransistor,CMOS)等光电器件的摄像头。该摄像单元12用于拍摄目标,并且能够自动聚焦所拍摄的目标以得到清晰图像。该摄像单元12自动聚焦原理与现有技术中的自动聚焦原理相同,在此不加赘述。G-sensor单元11用于当摄像单元12聚焦目标时获得一返回值z,其中,该返回值z为该测量装置10在坐标轴Z轴方向上的分量。该处理器13用于根据G-sensor单元11确定的返回值z及其他相关参数进行测量装置10距目标的距离L、使用者的平均速度v和/或目标物体的高度H的计算。 Please refer to FIG. 1 , which is a block diagram of a measuring device in an embodiment of the present invention. The measuring device 10 may be a portable mobile device such as a mobile phone or a tablet computer. The measurement device 10 includes a G-sensor (Gravity-sensor, gravity sensor) unit 11 , a camera unit 12 and a processor 13 . Wherein, the camera unit 12 may include a camera with optoelectronic devices such as a photoconductive camera tube, a solid-state photoelectric sensor (Charge Coupled Device, CCD) or a complementary metal-oxide-semiconductor (Complementary Metal-Oxide-Semiconductor Transistor, CMOS). The camera unit 12 is used to photograph a target, and can automatically focus on the captured target to obtain a clear image. The autofocus principle of the camera unit 12 is the same as the autofocus principle in the prior art, and will not be repeated here. The G-sensor unit 11 is used to obtain a return value z when the camera unit 12 focuses on the target, wherein the return value z is a component of the measuring device 10 in the direction of the coordinate axis Z. The processor 13 is used to calculate the distance L from the measuring device 10 to the target, the average speed v of the user and/or the height H of the target object according to the return value z determined by the G-sensor unit 11 and other related parameters.

具体地,当摄像单元12进行目标的拍摄过程中,实际为该测量装置10的姿态由竖直方向向水平方向调整的过程,其返回值z在0-±255的范围内变化。当摄像单元12聚焦一目标时,确定一聚焦点,即确定该待测点时,该G-sensor单元11根据测量装置10的翻转角度相应地获得一返回值z。 Specifically, when the camera unit 12 is shooting a target, it is actually a process of adjusting the posture of the measuring device 10 from the vertical direction to the horizontal direction, and the return value z varies within the range of 0-±255. When the camera unit 12 focuses on a target and determines a focus point, that is, the point to be measured, the G-sensor unit 11 obtains a return value z correspondingly according to the flip angle of the measuring device 10 .

请参阅图2,具体地,当该测量装置10进行目标的距离L的测量时,使用者通过测量装置10中预存的测量装置10的高度基准值h判断测量装置10当前所处的实际高度值与该基准值h是否一致,并当判断测量装置10当前所处的实际高度值与该基准值h不一致时,由使用者通过该测量装置10重新设定。在本实施方式中,该基准值h为用户使用该测量装置10时,该测量装置10与水平面的距离。该处理器13启动摄像单元12进行目标的拍摄与聚焦,用户通过对测量装置10的姿态进行调整以得到一聚焦点,从而确定一待测点。当测量装置10调整到某一姿态时得到待测点时,该G-sensor单元11根据测量装置10的翻转角度产生一返回值z。该处理器13获取该G-sensor单元11确定的返回值z,并根据公式tan(θ)=sqrt((255^2-z^2)/z^2),以及L=h×tan(θ)计算测量装置10与目标的距离L,其中,θ为测量装置10与目标之间的连线与竖直方向的夹角。 Please refer to FIG. 2 , specifically, when the measuring device 10 measures the distance L of the target, the user judges the actual height value of the measuring device 10 at present through the height reference value h of the measuring device 10 prestored in the measuring device 10 Whether it is consistent with the reference value h, and when it is judged that the actual height value at which the measuring device 10 is currently located is not consistent with the reference value h, the user resets it through the measuring device 10 . In this embodiment, the reference value h is the distance between the measuring device 10 and the horizontal plane when the user uses the measuring device 10 . The processor 13 activates the camera unit 12 to photograph and focus the target, and the user adjusts the posture of the measuring device 10 to obtain a focus point, thereby determining a point to be measured. When the measuring device 10 is adjusted to a certain attitude and the point to be measured is obtained, the G-sensor unit 11 generates a return value z according to the flip angle of the measuring device 10 . The processor 13 acquires the return value z determined by the G-sensor unit 11, and according to the formula tan(θ)=sqrt((255^2-z^2)/z^2), and L=h×tan(θ ) to calculate the distance L between the measuring device 10 and the target, where θ is the angle between the line connecting the measuring device 10 and the target and the vertical direction.

请参阅图3,当该测量装置10进行平均速度v的测量时,处理器13启动摄像单元12进行目标的第一次拍摄与聚焦,该摄像单元12于第一时间t1确定第一待测点,该处理器13记录该第一时间t1,G-sensor单元11根据该确定的第一待测点相应地获得第一返回值z1。该处理器13根据公式tan(θ1)=sqrt((255^2-z1^2)/z1^2)及L1=h×tan(θ1)计算出该测量装置10在第一时间点t1与第一待测点之间的第一距离L1。同理,该处理器13还根据公式tan(θ2)=sqrt((255^2-z2^2)/z2^2)及L2=h×tan(θ2)计算出该测量装置10在第二时间点t2与第二待测点之间的距离s2。此时,该处理器13根据公式v=(L2-L1)/(t2-t1)计算出在第一时间点t1至第二时间t2点之间,该测量装置10移动的平均速度v。 Referring to Fig. 3, when the measurement device 10 is measuring the average speed v, the processor 13 starts the camera unit 12 to take the first shot and focus of the target, and the camera unit 12 determines the first object to be measured at the first time t1 . point, the processor 13 records the first time t 1 , and the G-sensor unit 11 correspondingly obtains a first return value z 1 according to the determined first point to be measured. The processor 13 calculates the measurement device 10 at the first A first distance L 1 between the time point t 1 and the first point to be measured. Similarly, the processor 13 also calculates the measuring device according to the formula tan(θ 2 )=sqrt((255^2-z 2 ^2)/z 2 ^2) and L 2 =h×tan(θ 2 ) 10 The distance s 2 between the second time point t2 and the second point to be measured. At this time, the processor 13 calculates according to the formula v=(L 2 -L 1 )/(t 2 -t 1 ), the movement of the measuring device 10 between the first time point t 1 and the second time point t 2 The average speed of v.

请参阅图4,当该测量装置10进行目标物体高度H的测量时,该处理器13启动摄像单元12进行目标物体最低点的第一次拍摄与聚焦,从而得到第一待测点,G-sensor单元11根据该确定的第一待测点相应地获得第一返回值z1’。处理器13根据公式tan(θ1’)=sqrt((255^2-z1’^2)/z1’^2)及L’=h×tan(θ1’)计算出该目标物体最低点与该测量装置10的距离L’。同样,该摄像单元12对目标物体最高点进行第二次拍摄与聚焦,从而得到第二待测点。此时,G-sensor单元11根据该确定的第二待测点获得第二返回值z2’。处理器13根据公式tan(θ2’)=sqrt((255^2-z2’^2)/z2’^2)及H=h+L’/tan(θ2’-90°)计算出第一待测点与第二待测点之间的距离H,即目标物体的高度。 Please refer to FIG. 4 , when the measuring device 10 measures the height H of the target object, the processor 13 starts the camera unit 12 to take the first shot and focus of the lowest point of the target object, thereby obtaining the first point to be measured, G- The sensor unit 11 correspondingly obtains a first return value z 1 ′ according to the determined first point to be measured. The processor 13 calculates the minimum value of the target object according to the formula tan (θ 1 ')=sqrt ((255^2-z 1 '^2)/z 1 '^2) and L'=h×tan (θ 1 '). The distance L' between the point and the measuring device 10 . Likewise, the camera unit 12 performs a second shooting and focusing on the highest point of the target object, so as to obtain the second point to be measured. At this time, the G-sensor unit 11 obtains a second return value z 2 ′ according to the determined second point to be measured. The processor 13 calculates according to the formula tan (θ 2 ')=sqrt ((255^2-z 2 '^2)/z 2 '^2) and H=h+L'/tan (θ 2 '-90°) Calculate the distance H between the first point to be measured and the second point to be measured, that is, the height of the target object.

请参阅图5,为本发明进行目标距离测量的方法流程图,该方法包括: Referring to Fig. 5, it is a flow chart of the method for measuring the target distance for the present invention, the method comprising:

步骤S50,使用者通过测量装置10中预存的测量装置10的高度基准值h判断测量装置10当前所处的实际高度值与该基准值h是否一致,若是,则进入步骤S51,否则,进入步骤S54。 In step S50, the user judges whether the actual height value of the measuring device 10 is consistent with the reference value h through the height reference value h of the measuring device 10 prestored in the measuring device 10, and if so, proceeds to step S51, otherwise, proceeds to step S50. S54.

在本实施方式中,该基准值h为用户使用该测量装置10时,该测量装置10与水平面的距离。 In this embodiment, the reference value h is the distance between the measuring device 10 and the horizontal plane when the user uses the measuring device 10 .

步骤S51,该处理器13启动摄像单元12进行目标的拍摄与聚焦,用户通过对测量装置10的姿态进行调整以得到一聚焦点,从而确定一待测点。 Step S51 , the processor 13 activates the camera unit 12 to photograph and focus the target, and the user adjusts the posture of the measuring device 10 to obtain a focus point, thereby determining a point to be measured.

步骤S52,该G-sensor单元11根据测量装置10的翻转角度产生返回值z。 Step S52 , the G-sensor unit 11 generates a return value z according to the flip angle of the measuring device 10 .

当摄像单元12进行目标的拍摄过程中,实际为该测量装置10的姿态由竖直方向向水平方向调整的过程,其返回值z在0-±255的范围内变化。当摄像单元12聚焦一目标时,确定一聚焦点,即确定该待测点时,该G-sensor单元11根据测量装置10的翻转角度相应地获得一返回值z。 When the camera unit 12 is shooting the target, it is actually a process of adjusting the posture of the measuring device 10 from the vertical direction to the horizontal direction, and the return value z varies within the range of 0-±255. When the camera unit 12 focuses on a target and determines a focus point, that is, the point to be measured, the G-sensor unit 11 obtains a return value z correspondingly according to the flip angle of the measuring device 10 .

步骤S53,该处理器13根据该G-sensor单元11确定的返回值z以及第一公式和第二公式计算测量装置10与目标的距离L。 Step S53, the processor 13 calculates the distance L between the measuring device 10 and the target according to the return value z determined by the G-sensor unit 11 and the first formula and the second formula.

在本实施方式中,该第一公式为tan(θ)=sqrt((255^2-z^2)/z^2),该第二公式为L=h×tan(θ)。 In this embodiment, the first formula is tan(θ)=sqrt((255^2−z^2)/z^2), and the second formula is L=h×tan(θ).

步骤S54,使用者通过该测量装置10重新设定该基准值h,然后,返回步骤S50。 In step S54, the user resets the reference value h through the measuring device 10, and then returns to step S50.

请参阅图6,为本发明进行速度测量的方法流程图,该方法包括: Please refer to Fig. 6, it is the flow chart of the method for speed measurement of the present invention, and this method comprises:

步骤S60,使用者通过测量装置10中预存的测量装置10的高度基准值h判断测量装置10当前所处的实际高度值与该基准值h是否一致,若是,则进入步骤S601,否则,进入步骤S68。 In step S60, the user judges whether the actual height value of the measuring device 10 is consistent with the reference value h through the height reference value h of the measuring device 10 prestored in the measuring device 10, and if so, proceeds to step S601, otherwise, proceeds to step S601. S68.

在本实施方式中,该基准值h为用户使用该测量装置10时,该测量装置10与水平面的距离。 In this embodiment, the reference value h is the distance between the measuring device 10 and the horizontal plane when the user uses the measuring device 10 .

步骤S61,该处理器13启动摄像单元12进行目标的第一次拍摄与聚焦,用户通过对测量装置10的姿态进行调整使得该摄像单元12于第一时间t1确定第一待测点,该处理器13记录该第一时间t1In step S61, the processor 13 activates the camera unit 12 for the first shooting and focusing of the target, and the user adjusts the posture of the measuring device 10 so that the camera unit 12 determines the first point to be measured at the first time t1 , the The processor 13 records this first time t 1 .

步骤S62,该G-sensor单元11根据测量装置10的翻转角度产生第一返回值z1Step S62 , the G-sensor unit 11 generates a first return value z 1 according to the flip angle of the measuring device 10 .

步骤S63,该处理器13根据该G-sensor单元11获得的第一返回值z1以及第一公式和第二公式计算在第一时间t1该测量装置10与目标的距离L1Step S63, the processor 13 calculates the distance L 1 between the measuring device 10 and the target at the first time t 1 according to the first return value z 1 obtained by the G-sensor unit 11 and the first formula and the second formula.

在本实施方式中,该第一公式为tan(θ1)=sqrt((255^2-z1^2)/z1^2),该第二公式为L1=h×tan(θ1)。 In this embodiment, the first formula is tan(θ 1 )=sqrt((255^2-z 1 ^2)/z 1 ^2), and the second formula is L 1 =h×tan(θ 1 ).

步骤S64,用户对测量装置10的姿态再次进行调整,使得该摄像单元12在第二时间t2得到第二待测点,该处理器13记录该第二时间t2In step S64, the user adjusts the posture of the measuring device 10 again so that the camera unit 12 obtains a second point to be measured at a second time t 2 , and the processor 13 records the second time t 2 .

步骤S65,该G-sensor单元11根据测量装置10的翻转角度产生第二返回值z2Step S65 , the G-sensor unit 11 generates a second return value z 2 according to the flip angle of the measuring device 10 .

步骤S66,该处理器13根据该G-sensor单元11确定的第二返回值z2以及第一公式和第二公式计算在第二时间t2该测量装置10与目标的距离L2Step S66, the processor 13 calculates the distance L 2 between the measuring device 10 and the target at a second time t 2 according to the second returned value z 2 determined by the G-sensor unit 11 and the first formula and the second formula.

步骤S67,该处理器13根据记录第一时间t1、第二时间t2、计算得出的第一距离L1和第二距离L2,以及第三公式计算在第一时间t1至第二时间t2的过程中,该测量装置10移动的平均速度v。 In step S67, the processor 13 calculates the distance between the first time t 1 and the second time t 2 according to the recorded first time t 1 , the second time t 2 , the calculated first distance L 1 and the second distance L 2 , and the third formula. During the course of time t2 , the measuring device 10 moves with an average velocity v.

在本实施方式中,该第三公式为v=(L2-L1)/(t2-t1)。 In this embodiment, the third formula is v=(L 2 −L 1 )/(t 2 −t 1 ).

步骤S68,使用者通过该测量装置10重新设定该基准值h,然后,返回步骤S60。 In step S68, the user resets the reference value h through the measuring device 10, and then returns to step S60.

请参阅图7,为本发明进行目标物体高度测量的方法流程图,该方法包括: Please refer to Fig. 7, the flow chart of the method for measuring the height of the target object for the present invention, the method includes:

步骤S70,使用者通过测量装置10中预存的测量装置10的高度基准值h判断测量装置10当前所处的实际高度值与该基准值h是否一致,若是,则进入步骤S71,否则,进入步骤S77。 In step S70, the user judges whether the current actual height value of the measuring device 10 is consistent with the reference value h through the height reference value h of the measuring device 10 prestored in the measuring device 10, and if so, proceeds to step S71, otherwise, proceeds to step S70. S77.

在本实施方式中,该基准值h为用户使用该测量装置10时,该测量装置10与水平面的距离。 In this embodiment, the reference value h is the distance between the measuring device 10 and the horizontal plane when the user uses the measuring device 10 .

步骤S71,该处理器13启动摄像单元12,用户通过对测量装置10的姿态进行调整,使得摄像单元12对目标物体最低点进行拍摄与聚焦,得到第一待测点。 In step S71, the processor 13 activates the camera unit 12, and the user adjusts the posture of the measuring device 10, so that the camera unit 12 shoots and focuses on the lowest point of the target object to obtain the first point to be measured.

步骤S72,该G-sensor单元11根据测量装置10的翻转角度产生第一返回值z1’。 Step S72, the G-sensor unit 11 generates a first return value z 1 ′ according to the flip angle of the measuring device 10 .

步骤S73,该处理器13根据该G-sensor单元11获得的第一返回值z1’以及第一公式和第二公式计算在第一时间t1该测量装置10与目标的距离L1Step S73, the processor 13 calculates the distance L 1 between the measuring device 10 and the target at the first time t 1 according to the first return value z 1 ′ obtained by the G-sensor unit 11 and the first formula and the second formula.

步骤S74,用户对测量装置10的姿态再次进行调整,该摄像单元12对目标物体最高点进行拍摄与聚焦,得到第二待测点。 In step S74, the user adjusts the posture of the measuring device 10 again, and the camera unit 12 shoots and focuses on the highest point of the target object to obtain the second point to be measured.

步骤S75,该G-sensor单元11根据测量装置10的翻转角度产生第二返回值z2’。 Step S75, the G-sensor unit 11 generates a second return value z 2 ′ according to the flip angle of the measuring device 10 .

步骤S76,该处理器13根据该G-sensor单元11确定的第二返回值z2’、基准值h,以及第一公式和第三公式计算计算该目标物体的高度H。 Step S76, the processor 13 calculates the height H of the target object according to the second returned value z 2 ′ determined by the G-sensor unit 11, the reference value h, and the first formula and the third formula.

在本实施方式中,该第三公式为H=h+s’/tan(θ2’-90°)。 In this embodiment, the third formula is H=h+s′/tan(θ 2 ′−90°).

步骤S77,使用者通过该测量装置10重新设定该基准值h,然后,返回步骤S70。 In step S77, the user resets the reference value h through the measuring device 10, and then returns to step S70.

使用上述的测量装置与测量方法,通过测量装置中设置的摄像单元对目标物体的一次或多次的聚焦以得到待测点,G-sensor单元根据摄像单元聚焦得到的待测点对应地输出一返回值,处理器根据该返回值与测量装置中预存的基准值进行目标物体的距离、高度以及在一段时间内的移动平均速度的计算,从而解决了现有技术中测量装置利用GPS而无法进行较短地、精确地测量的技术问题。 Using the above-mentioned measuring device and measuring method, the camera unit set in the measuring device focuses on the target object one or more times to obtain the point to be measured, and the G-sensor unit outputs a corresponding output according to the point to be measured obtained by focusing the camera unit. The return value, the processor calculates the distance, height and moving average speed of the target object in a period of time according to the return value and the reference value prestored in the measuring device, thereby solving the problem that the measuring device in the prior art cannot use GPS A technical problem of short, precise measurements.

可以理解的是,对于本领域的普通技术人员来说,可以根据本发明的技术构思做出其它各种相应的改变与变形,而所有这些改变与变形都应属于本发明权利要求的保护范围。 It can be understood that those skilled in the art can make various other corresponding changes and modifications according to the technical concept of the present invention, and all these changes and modifications should belong to the protection scope of the claims of the present invention.

Claims (9)

1.一种测量装置,包括处理器,其特征在于,所述测量装置还包括:1. A measurement device, comprising a processor, characterized in that, the measurement device also includes: 摄像单元,用于当用户调整所述测量装置时拍摄并获取包括至少一个目标的图像;及a camera unit configured to photograph and acquire an image including at least one target when the user adjusts the measuring device; and G-sensor单元,用于当所述摄像单元获取包括至少一个目标的图像时,根据所述测量装置的翻转角度产生至少一返回值z,其中,所述返回值z为所述测量装置在一坐标轴Z轴方向上的分量;The G-sensor unit is configured to generate at least one return value z according to the flip angle of the measurement device when the camera unit acquires an image comprising at least one target, wherein the return value z is the measurement device at a The component in the Z-axis direction of the coordinate axis; 所述处理器预存一高度基准值,所述处理器用于根据所述G-sensor单元产生的返回值z以及所述高度基准值利用一第一公式和一第二公式计算所述测量装置到所述至少一个目标的距离;The processor pre-stores a height reference value, and the processor is used to calculate the distance between the measuring device and the height reference value using a first formula and a second formula according to the return value z generated by the G-sensor unit and the height reference value. the distance to at least one target; 所述第一公式为tan(θ)=sqrt((255^2-z^2)/z^2),所述第二公式为L=h×tan(θ),其中,θ为所述测量装置与所述目标之间的连线与竖直方向的夹角,h为所述处理器预存的高度基准值,L为所述测量装置到所述目标的距离。The first formula is tan(θ)=sqrt((255^2-z^2)/z^2), and the second formula is L=h×tan(θ), where θ is the measurement The angle between the line between the device and the target and the vertical direction, h is the height reference value pre-stored in the processor, and L is the distance from the measuring device to the target. 2.如权利要求1所述的测量装置,其特征在于,所述至少一个目标的数量为两个,包括所述摄像单元在第一时间获取的第一目标的图像及在第二时间获取的第二目标的图像,所述G-sensor单元在所述摄像单元获取第一目标的图像及第二目标的图像时分别对应产生第一返回值与第二返回值。2. The measuring device according to claim 1, wherein the quantity of the at least one target is two, comprising the image of the first target acquired by the camera unit at the first time and the image of the first target acquired at the second time. For the image of the second object, the G-sensor unit correspondingly generates a first return value and a second return value when the camera unit acquires the image of the first object and the image of the second object. 3.如权利要求2所述的测量装置,其特征在于,所述处理器还用于存储所述第一时间和第二时间,并根据所述第一返回值及所述基准值利用所述第一公式和第二公式计算所述测量装置到所述第一目标的第一距离,还根据所述第二返回值及所述基准值利用所述第一公式和第二公式计算所述测量装置到所述第二目标的第二距离,并根据所述第一时间、第二时间、第一距离和第二距离利用第三公式计算所述测量装置在所述第一时间至第二时间的过程中的平均速度;3. The measuring device according to claim 2, wherein the processor is also used to store the first time and the second time, and use the The first formula and the second formula calculate the first distance from the measuring device to the first target, and the measurement is also calculated by using the first formula and the second formula according to the second return value and the reference value The second distance from the device to the second target, and according to the first time, the second time, the first distance and the second distance, calculate the measurement device from the first time to the second time by using a third formula The average speed of the process; 所述第三公式为v=(L2-L1)/(t2-t1),其中,t1为第一时间,t2为第二时间,L1为第一距离,L2为第二距离,v为平均速度。The third formula is v=(L2-L1)/(t2-t1), wherein, t1 is the first time, t2 is the second time, L1 is the first distance, L2 is the second distance, and v is the average speed . 4.如权利要求2所述的测量装置,其特征在于,所述处理器根据所述第一返回值及所述高度基准值利用所述第一公式和第二公式计算所述测量装置到所述第一目标的距离,还根据所述测量装置到所述第一目标的距离、第二返回值及所述基准值利用所述第一公式和一第四公式计算所述第一目标与所述第二目标之间的距离;4. The measuring device according to claim 2, characterized in that, the processor uses the first formula and the second formula to calculate the distance between the measuring device and the height reference value according to the first return value and the height reference value. The distance between the first target and the distance between the measuring device and the first target, the second return value and the reference value are calculated by using the first formula and a fourth formula to calculate the distance between the first target and the first target. the distance between the above-mentioned second objects; 所述第四公式为H=h+L/tan(θ’-90°),其中,θ’为所述处理器根据所述第二返回值及第一公式计算得出的所述测量装置与所述目标之间的连线与竖直方向的夹角,H为所述第一目标与所述第二目标之间的距离。The fourth formula is H=h+L/tan(θ'-90°), where θ' is calculated by the processor according to the second return value and the first formula and the measurement device and The angle between the line between the targets and the vertical direction, H is the distance between the first target and the second target. 5.如权利要求4所述的测量装置,其特征在于,所述第一目标的图像为一目标物体的最低点图像,所述第二目标的图像为所述目标物体的最高点图像,所述第一目标与所述第二目标之间的距离为所述目标物体的高度。5. The measuring device according to claim 4, wherein the image of the first target is the lowest point image of a target object, and the image of the second target is the highest point image of the target object, so The distance between the first target and the second target is the height of the target object. 6.一种测量方法,所述测量方法应用于一测量装置,其特征在于,所述测量方法包括:6. A measuring method, said measuring method being applied to a measuring device, is characterized in that said measuring method comprises: 在第一时间调整所述测量装置的姿态拍摄并获取一目标的图像;Adjusting the posture of the measuring device to capture and acquire an image of a target at the first time; 根据获取的所述目标的图像时所述测量装置的翻转角度相应地产生一返回值,其中,所述返回值为所述测量装置在坐标轴Z轴方向上的分量;A return value is correspondingly generated according to the flip angle of the measuring device when the image of the target is acquired, wherein the return value is a component of the measuring device in the direction of the coordinate axis Z; 根据所述返回值及一预存高度基准值,并利用第一公式和第二公式计算所述测量装置与所述目标之间的距离;calculating the distance between the measuring device and the target according to the return value and a pre-stored height reference value, and using a first formula and a second formula; 所述第一公式为tan(θ)=sqrt((255^2-z^2)/z^2),所述第二公式为L=h×tan(θ),其中,z为所述产生的返回值,θ为所述测量装置与所述目标之间的连线与竖直方向的夹角,h为所述测量装置预存的高度基准值,L为所述测量装置到所述目标的距离。The first formula is tan(θ)=sqrt((255^2-z^2)/z^2), and the second formula is L=h×tan(θ), where z is the generated , θ is the angle between the line between the measuring device and the target and the vertical direction, h is the height reference value pre-stored by the measuring device, and L is the distance from the measuring device to the target distance. 7.如权利要求6所述的应用于一测量装置的测量方法,其特征在于,还包括:7. The measuring method applied to a measuring device as claimed in claim 6, further comprising: 在第二时间调整测量装置的姿态拍摄并获取另一目标的图像;Adjusting the attitude of the measuring device to shoot and acquire an image of another target at a second time; 根据获取的所述另一目标的图像时所述测量装置的翻转角度相应地产生另一返回值;Generate another return value correspondingly according to the flip angle of the measuring device when the image of the other target is acquired; 根据所述另一返回值及所述高度基准值,并利用第一公式和第二公式计算所述测量装置与所述另一目标之间的另一距离;以及calculating another distance between the measuring device and the other target according to the another return value and the height reference value, and using a first formula and a second formula; and 根据所述第一时间、第二时间以及计算得出的所述距离和所述另一距离,利用第三公式计算所述测量装置在所述第一时间至第二时间的过程中的平均速度;According to the first time, the second time and the calculated distance and the other distance, the average speed of the measuring device during the period from the first time to the second time is calculated using a third formula ; 所述第三公式为v=(L2-L1)/(t2-t1),其中,t1为第一时间,t2为第二时间,L1为所述计算得出的距离,L2为所述计算得出的另一距离,v为平均速度。The third formula is v=(L2-L1)/(t2-t1), wherein, t1 is the first time, t2 is the second time, L1 is the calculated distance, and L2 is the calculated distance. Another distance out, v is the average speed. 8.如权利要求6所述的应用于一测量装置的测量方法,其特征在于,还包括:8. The measuring method applied to a measuring device as claimed in claim 6, further comprising: 在第二时间调整所述测量装置的姿态以拍摄并获取另一目标的图像;Adjusting the posture of the measuring device at a second time to photograph and obtain an image of another target; 根据获取的所述另一目标的图像时所述测量装置翻转的角度相应地产生另一返回值;Correspondingly generate another return value according to the angle at which the measuring device flips when the image of the other target is acquired; 根据所述另一返回值、所述高度基准值、计算得出的所述距离,并利用第一公式和第四公式计算所述目标与所述另一目标之间的距离;calculating the distance between the target and the other target by using the first formula and the fourth formula according to the other return value, the height reference value, and the calculated distance; 所述第四公式为H=h+L/tan(θ’-90°),其中,θ’为根据所述另一返回值及第一公式计算得出的所述测量装置与所述目标之间的连线与竖直方向的夹角,H为所述目标与所述另一目标之间的距离。The fourth formula is H=h+L/tan(θ'-90°), where θ' is the distance between the measuring device and the target calculated according to the other return value and the first formula. The angle between the line between and the vertical direction, H is the distance between the target and the other target. 9.如权利要求8所述的应用于一测量装置的测量方法,其特征在于,所述目标的图像为一目标物体的最低点图像,所述另一目标的图像为所述目标物体的最高点图像,所述目标与所述另一目标之间的距离为所述目标物体的高度。9. The measuring method applied to a measuring device as claimed in claim 8, wherein the image of the target is the lowest point image of a target object, and the image of the other target is the highest point of the target object. point image, the distance between the target and the other target is the height of the target object.
CN201210250039.XA 2012-07-19 2012-07-19 Measurement apparatus and measuring method Active CN103575292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210250039.XA CN103575292B (en) 2012-07-19 2012-07-19 Measurement apparatus and measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210250039.XA CN103575292B (en) 2012-07-19 2012-07-19 Measurement apparatus and measuring method

Publications (2)

Publication Number Publication Date
CN103575292A CN103575292A (en) 2014-02-12
CN103575292B true CN103575292B (en) 2016-07-06

Family

ID=50047582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210250039.XA Active CN103575292B (en) 2012-07-19 2012-07-19 Measurement apparatus and measuring method

Country Status (1)

Country Link
CN (1) CN103575292B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106017406A (en) * 2016-05-17 2016-10-12 北京小米移动软件有限公司 Method and device for measuring target distance
CN107664909B (en) * 2016-07-28 2020-06-05 中强光电股份有限公司 Lens Modules and Projectors
CN107967701B (en) * 2017-12-18 2021-10-15 信利光电股份有限公司 Calibration method, device and equipment of depth camera equipment
WO2021258251A1 (en) * 2020-06-22 2021-12-30 深圳市大疆创新科技有限公司 Surveying and mapping method for movable platform, and movable platform and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10300510A (en) * 1997-04-30 1998-11-13 Taisei Corp Moving distance detector
CN1743806A (en) * 2004-09-02 2006-03-08 技研全腾株式会社 Moving-object height determining apparatus
CN101256073A (en) * 2007-02-28 2008-09-03 三洋电机株式会社 Apparatus and method for monitoring a vehicle's surroundings
CN101446493A (en) * 2007-11-27 2009-06-03 同济大学 Range determination method for a bio-robot
CN101617197A (en) * 2007-02-16 2009-12-30 三菱电机株式会社 Road feature measurement mechanism, atural object recognition device, road feature measuring method, road feature process of measurement, measurement mechanism, measuring method, process of measurement, measuring position data, measuring terminals device, measure server unit, make map device, drawing method, plotting program and make diagram data
CN102589525A (en) * 2010-11-19 2012-07-18 三菱电机株式会社 Method and system for determining poses of specular objects

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10300510A (en) * 1997-04-30 1998-11-13 Taisei Corp Moving distance detector
CN1743806A (en) * 2004-09-02 2006-03-08 技研全腾株式会社 Moving-object height determining apparatus
CN101617197A (en) * 2007-02-16 2009-12-30 三菱电机株式会社 Road feature measurement mechanism, atural object recognition device, road feature measuring method, road feature process of measurement, measurement mechanism, measuring method, process of measurement, measuring position data, measuring terminals device, measure server unit, make map device, drawing method, plotting program and make diagram data
CN101256073A (en) * 2007-02-28 2008-09-03 三洋电机株式会社 Apparatus and method for monitoring a vehicle's surroundings
CN101446493A (en) * 2007-11-27 2009-06-03 同济大学 Range determination method for a bio-robot
CN102589525A (en) * 2010-11-19 2012-07-18 三菱电机株式会社 Method and system for determining poses of specular objects

Also Published As

Publication number Publication date
CN103575292A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN107148639B (en) Method and device for determining position information of tracking target, tracking device and system
US11785335B2 (en) Automatic adjusting photographing method and apparatus
CN104613930B (en) Method and device for measuring distance as well as mobile terminal
US10277889B2 (en) Method and system for depth estimation based upon object magnification
CN104279960B (en) Method for measuring size of object by mobile equipment
JP2013122434A (en) Three-dimensional shape position measuring device by monocular camera using laser, method for measuring three-dimensional shape position, and three-dimensional shape position measuring program
CN103575292B (en) Measurement apparatus and measuring method
CN102012625A (en) Derivation of 3d information from single camera and movement sensors
CN106796102A (en) A kind of method and device for measuring dimension of object
CN105136042A (en) A height measurement method, device and mobile terminal
CN102853810A (en) Method and system for measuring object distance by mobile terminal
CN104864810A (en) Digital measuring method and device thereof
CN107025666A (en) Single-camera-based depth detection method, device, and electronic device
TWI524758B (en) Electronic apparatus and method for incremental pose estimation and photographing thereof
WO2023160301A1 (en) Object information determination method, mobile robot system, and electronic device
CN107314761A (en) Measuring method and electronic equipment
CN105301279B (en) A kind of speed measurement method based on camera, device and mobile terminal
CN105100557B (en) Portable electronic device and image extraction method
JP2004093457A (en) Image processing apparatus and image processing method
CN115388887A (en) Parameter estimation method, device and electronic equipment of a pedestrian dead reckoning model
TWI679397B (en) Three-dimensional shape measurement system, detector, camera device, computer device, and measurement time setting method
KR101996226B1 (en) Apparatus for measuring three-dimensional position of subject and method thereof
CN107339957A (en) Floor space measuring method, terminal and electronic equipment
US12115416B2 (en) Tracking repetitions by head-mounted device based on distance
CN106839994B (en) A kind of measuring system for image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180224

Address after: Shanghai City, Songjiang Export Processing Zone South Road No. 1925

Patentee after: Ambit Microsystems (Shanghai) Co., Ltd.

Address before: 201613 Shanghai City, Songjiang District Songjiang Export Processing Zone South Road No. 1925

Co-patentee before: Hon Hai Precision Industry Co., Ltd.

Patentee before: Ambit Microsystems (Shanghai) Co., Ltd.