WO2015109797A1 - 移动终端、基于移动终端的测量方法及计算机存储介质 - Google Patents

移动终端、基于移动终端的测量方法及计算机存储介质 Download PDF

Info

Publication number
WO2015109797A1
WO2015109797A1 PCT/CN2014/082912 CN2014082912W WO2015109797A1 WO 2015109797 A1 WO2015109797 A1 WO 2015109797A1 CN 2014082912 W CN2014082912 W CN 2014082912W WO 2015109797 A1 WO2015109797 A1 WO 2015109797A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
measured
length
angular velocity
flip
Prior art date
Application number
PCT/CN2014/082912
Other languages
English (en)
French (fr)
Inventor
矫晓敏
张伟
付建山
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015109797A1 publication Critical patent/WO2015109797A1/zh

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness

Definitions

  • Mobile terminal mobile terminal based measurement method and computational accumulation medium
  • the present invention relates to data measurement technologies in the field of wireless communications, and in particular, to a mobile terminal, a mobile terminal-based measurement method, and a computer storage medium. Background technique
  • some daily communication devices such as mobile terminals have the function of measuring the distance between the mobile terminal and the measured object.
  • the front end of the mobile terminal is equipped with an ultrasonic transmitter, and the propagation speed of the ultrasonic wave in the air is known, and the time when the sound wave is reflected by the measured object after the emission is measured, and the emission point is calculated according to the time difference between the transmission and the reception.
  • the actual distance to the measured object Fourth, using software technology, installing ranging software in the mobile terminal, by inputting the height of the measured object and other data into the software, using the trigonometric function to calculate the between the mobile terminal and the object being j distance.
  • the above four methods based on the distance measurement of the mobile terminal can measure the distance between the mobile terminal and the object to be measured, but cannot automatically measure the length of the object to be tested.
  • the embodiments of the present invention provide a mobile terminal and a measurement method based on the mobile terminal, which can accurately measure the length of the object, meet the needs of the user, and are convenient for the user to use.
  • the embodiment of the present invention provides a measurement method based on a mobile terminal, and determines that the measured reference value is the length of any side of the mobile terminal.
  • the method further includes:
  • the mobile terminal determines that the side edge of the measurement reference value is placed in parallel with the to-be-measured direction of the object to be tested, and the starting position of the side of the mobile terminal Aligning with a starting position of the object to be tested in the direction to be measured; the inversion of the mobile terminal is that the mobile terminal flips from the starting position of the object to be tested to the ending position of the object to be tested along the direction of the object to be tested;
  • calculating the length of the object to be tested in the direction to be measured according to the flip angle includes:
  • the length of the object to be tested is calculated according to the following formula:
  • determining the measured reference value is the length fl of any one side of the mobile terminal, c is the thickness of the mobile terminal, S is the flip angle of the mobile terminal, and L is the length of the object to be tested in the direction to be measured, n: ⁇ The number of times the mobile terminal is flipped.
  • the method further includes: Outputting and displaying the measured length of the object to be tested to be measured.
  • the method further includes:
  • the flip angle velocity of the mobile terminal is not measured, the flip angle velocity of the mobile terminal and the sampling time are re-measured according to the set time interval.
  • the embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: a determining module, an angular velocity measuring module, and a computing module;
  • the determining module is configured to determine that the measured reference value is a length of any one side of the mobile terminal
  • the angular velocity measuring module is configured to measure a flipping angular velocity of the mobile terminal and a sampling time; wherein, the mobile terminal determines that a side edge of the measured reference value is placed in parallel with a to-be-measured direction of the object to be tested, and the The starting position of the side of the mobile terminal is aligned with the starting position of the object to be tested; the flipping of the mobile terminal is to flip from the starting position of the object to be tested to the object to be tested along the direction of the object to be tested. End position
  • the calculating module is configured to determine a flip angle of the mobile terminal according to the flip angle speed and the sampling time; and calculate a length of the object to be tested in a direction to be measured according to the flip angle.
  • the mobile terminal further includes:
  • the display module is configured to output and display the measured length of the object to be tested to be measured.
  • the angular velocity measurement module is further configured to:
  • the flip angle velocity of the mobile terminal is not measured, the flip angle velocity of the mobile terminal and the sampling time are re-measured according to the set time interval.
  • the angular velocity measuring module is implemented by using a gyroscope.
  • the determining module and the computing module are implemented by a central processing unit CPU.
  • the display module is implemented by a display.
  • An embodiment of the present invention further provides a computer storage medium, where the computer storage medium is stored Computer-executable instructions are stored for performing the mobile terminal-based measurement method of any one of claims 1 to 5.
  • the mobile terminal and the measurement method based on the mobile terminal provided by the embodiment of the present invention first determine that the measured reference value is the length of any one side of the mobile terminal; and then measure the flip angle speed of the mobile terminal and the sampling time;
  • the mobile terminal determines that the side edge of the measurement reference value is placed in parallel with the direction to be measured of the object to be tested, and the starting position of the side of the mobile terminal is aligned with the starting position of the object to be tested in the direction to be measured;
  • the flipping of the terminal is performed by the mobile terminal flipping from the starting position of the object to be tested to the ending position of the object to be tested along the direction of the object to be tested; and finally determining the flipping of the mobile terminal according to the flipping angular velocity and the sampling time Angle; calculating a length of the object to be tested in a direction to be measured according to the flip angle.
  • the embodiment of the present invention determines the flip angle of the mobile terminal according to the flip angle velocity and the sampling time, calculates the length of the object to be tested in the direction to be measured according to the flip angle, and can accurately measure the length of the object. Meet the needs of users in daily life and is convenient for users.
  • FIG. 1 is a schematic flowchart of a method for implementing measurement based on a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of a mobile terminal according to an embodiment of the present invention. detailed description
  • the measured reference value is the length of any one side of the mobile terminal; then measuring the flipping angular velocity of the mobile terminal and the sampling time; wherein the mobile terminal determines the side of the measured reference value
  • the edge is placed in parallel with the direction to be measured of the object to be tested, and the starting position of the side of the mobile terminal is aligned with the starting position of the object to be tested in the direction to be measured; the flipping of the mobile terminal is performed along the mobile terminal
  • the direction of the object to be measured is inverted from the starting position of the object to be tested to the end position of the object to be tested; finally according to the flipping angular velocity and the sampling time
  • Determining a flip angle of the mobile terminal calculating a length of the object to be tested in a direction to be measured according to the flip angle. In this way, the length of the object can be accurately measured to meet the needs and use of the user.
  • the mobile terminal may be a device with an intelligent measurement and display function, for example, a mobile terminal device such as a smart phone or a tablet ipad.
  • the embodiment of the present invention provides a measurement method based on a mobile terminal. As shown in FIG. 1, the method includes:
  • Step S100 Determine that the measured reference value is the length of any one side of the mobile terminal.
  • any one side of the mobile terminal is a long side or a wide side of the mobile terminal.
  • Step S101 Measure the flipping angular velocity of the mobile terminal and the sampling time; wherein the mobile terminal determines that the side edge of the measurement reference value is placed in parallel with the to-be-measured direction of the object to be tested, and the side of the mobile terminal The starting position is aligned with the starting position of the object to be tested in the direction to be measured; the inversion of the mobile terminal is the end of the moving terminal from the starting position of the object to be tested to the end of the object to be tested along the direction of the object to be tested position.
  • Step S102 Determine a turning angle of the mobile terminal according to the flipping angular velocity and the sampling time; and calculate a length of the to-be-measured object to be measured according to the flipping angle.
  • the turning angle of the mobile terminal is determined to be 0t according to the flip angle speed and the sampling time t.
  • the measured reference value is the length fl of the long side of the mobile terminal, and assuming that the thickness of the mobile terminal is c, then the length of the object to be tested is calculated according to the flip angle ⁇ of the mobile terminal :
  • the measured length of the measured object to be tested is outputted and displayed.
  • the flipping angular velocity of the mobile terminal and the sampling time are re-measured according to a preset time interval; and then according to the re-measured flipping angular velocity and the sampling time Determining a flip angle of the mobile terminal; calculating a length of the object to be tested in a direction to be measured according to the flip angle; wherein the time interval may be set according to actual needs.
  • an embodiment of the present invention further provides a mobile terminal, because the mobile
  • the principle and method for solving the problem in the terminal are similar. Therefore, the implementation process and implementation principle of the mobile terminal can be described in the implementation process and implementation principle of the foregoing method, and the repeated description is not repeated.
  • the mobile terminal provided by the embodiment of the present invention includes: a determining module 200, an angular velocity measuring module 202, and a calculating module 203;
  • the determining module 200 is configured to determine that the measured reference value is the length of any side of the mobile terminal
  • any one side of the mobile terminal is a long side or a wide side of the mobile terminal
  • the angular velocity measurement module 202 is configured to measure the flip angular velocity of the mobile terminal and the sampling time; wherein the mobile terminal determines that the side edge of the measurement reference value is placed in parallel with the to-be-measured direction of the object to be tested, and The starting position of the side of the mobile terminal is aligned with the starting position of the object to be tested in the direction to be measured; the flipping of the mobile terminal is to flip from the starting position of the object to be tested to the object to be tested along the direction of the object to be tested End position
  • the calculating module 203 is configured to determine a flip angle of the mobile terminal according to the flip angle speed and the sampling time; and calculate a length of the object to be tested direction to be measured according to the flip angle.
  • the mobile terminal further includes:
  • the display module 204 is configured to output and display the measured length of the object to be tested to be measured.
  • the angular velocity measurement module is further configured to:
  • the flip angle speed of the mobile terminal is not measured, the flip angle speed of the mobile terminal and the sampling time are re-measured according to a preset time interval;
  • the flip angle of the mobile terminal is determined according to the re-measured flip angle speed and the sampling time; and the length of the object to be tested is calculated according to the flip angle.
  • the angular velocity measurement module 202 may be implemented by a gyroscope located in the mobile terminal, or implemented by software or hardware having a gyroscope ranging function; the determining module 200 and the computing module 203 may be implemented by a central processor located in the mobile terminal. (Central Processing Unit, CPU) implementation;
  • the display module 204 can be implemented by a display located on the mobile terminal.
  • the mobile terminal includes: a gyroscope 300, a CPU 301, and a memory 302;
  • the memory 302 is configured to store a measured reference value
  • the measured reference value is the length of any one side of the mobile terminal; the side is the long side or the wide side of the mobile terminal.
  • the gyro 300 is configured to measure a flip angular velocity of the mobile terminal and a sampling time; wherein, the mobile terminal determines that a side edge of the measurement reference value is placed in parallel with a to-be-measured direction of the object to be tested, and the The starting position of the side of the mobile terminal is aligned with the starting position of the object to be tested; the flipping of the mobile terminal is to flip from the starting position of the object to be tested to the object to be tested along the direction of the object to be tested. End position
  • the CPU 301 is configured to determine that the measured reference value is the length of any one side of the mobile terminal; and determine the flip angle of the mobile terminal according to the flip angle speed measured by the gyroscope 300 and the sampling time; Calculating the length of the object to be tested in the direction to be measured;
  • the mobile terminal further includes: a display 303 configured to output and display the measured length of the object to be tested to be measured.
  • the CPU 301 is communicably connected to the gyroscope 300 through an Inter Integrated Circuit (I 2 C) bus interface.
  • the CPU 301 first determines that the measured reference value is the length of any one side of the mobile terminal; and then the gyro 300 measures the flip angular velocity of the mobile terminal and the sampling time;
  • the mobile terminal determines that the side edge of the measurement reference value is placed in parallel with the to-be-measured direction of the object to be tested, and the starting position of the side of the mobile terminal is aligned with the starting position of the object to be tested in the direction to be measured; Flipping to the direction of the object to be tested from the starting position of the object to be tested to the end position of the object to be tested; finally determined by the CPU 301 according to the flip angle velocity measured by the gyroscope 300 and the sampling time The flip angle of the mobile terminal is calculated according to the flip angle, and the length of the object to be tested is measured and displayed.
  • the display 303 outputs and displays the measured length of the
  • the gyroscope 300 converts the inverted angular velocity simulation data, which is converted into digital data by analog-to-digital conversion by an A/D converter, and then filters the filter to obtain angular velocity data w, which will be measured.
  • the flip angular velocity ⁇ of the mobile terminal and the sampling time t are input to the CPU 301 through the / 2 C bus interface for processing, and the CPU 301 reads or receives the flip angular velocity output by the gyroscope 300 and the sampling time t
  • the flip angle of the mobile terminal is determined according to the flip angle velocity w and the sample time t, and the length of the object to be tested is calculated according to the flip angle, and is output through the display 303. display.
  • the A/D converter and the filter may be software having an A/D conversion function and a filtering function running in the gyroscope 300, that is, implemented by an internal module of the gyroscope 300;
  • the /D converter and the filter may also be a physical device in a bridge mode, independent of an external device of the gyroscope 300, that is, an external device connected between the gyroscope 300 and the CPU 301, to the The analog data of the CPU 301 needs to be converted by the A/D converter, the filter is filtered, and then input to the CPU 301 for processing through the / 2 C bus interface.
  • the flip angle speed of the mobile terminal is not measured, the flip angle speed of the mobile terminal and the sampling time are re-measured by the gyroscope 300 according to the set time interval.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing storage medium includes: a removable storage device, a read only memory (ROM), a magnetic disk or an optical disk, and the like, which can store program codes.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product.
  • the computer software product is stored in a storage medium and includes a plurality of instructions.
  • Make a computer device (can be a personal computing A machine, server, or network device, etc.) performs all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a medium that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种基于移动终端的测量方法,包括:确定测量的基准值为移动终端长边或宽边的长度;测量出所述移动终端的翻转角速度以及采样时间;其中,所述移动终端确定为测量基准值的侧边沿与待测物体的待测方向平行放置,且所述移动终端侧边的起始位置与待测物体待测方向的起始位置对齐;所述移动终端的翻转为所述移动终端沿待测物体的待测方向从待测物体的起始位置翻转到待测物体的结束位置;根据所述翻转角速度以及采样时间确定所述移动终端的翻转角度;根据所述翻转角度计算出所述待测物体待测方向的长度。本发明还同时公开了一种移动终端及计算机存储介质。

Description

移动终端、 基于移动终端的测量方法及计算积 储介质 技术领域
本发明涉及无线通信领域的数据测量技术, 尤其涉及一种移动终端、 基于移动终端的测量方法及计算机存储介质。 背景技术
在曰常生活中, 经常需要判断物体的长度, 在一般情况下, 都釆用目 测方式进行, 然而目测的精确度很低, 在很多情况下不能满足人们的需求。 因此, 通常需要釆用测量仪器精确测量物体的长度, 但测量仪器属于工程 测绘专用设备, 在日常生活中不方便随时携带。
目前的一些移动终端等日常通讯设备上, 已经具有测量移动终端与被 测物体之间的间距的功能, 移动终端测距的主要方法大致有四种: 其一、 通过移动终端的摄像头或利用被测物体移动的速度计算移动终端与被测物 体之间的距离; 其二、 移动终端前端安装有红外线收发器, 通过红外线收 发器一次信号的收发时间, 计算移动终端与被测物体之间的距离; 其三、 移动终端前端安装有超声波发射器, 利用超声波在空气中的传播速度为已 知, 测量声波在发射后遇到被测物体反射回来的时间, 根据发射和接收的 时间差计算出发射点到被测物体的实际距离; 其四、 釆用软件技术, 在移 动终端安装测距软件, 通过向软件内输入被测物体高度等数据, 利用三角 函数计算移动终端与被 ' j物体之间的距离。
上述基于移动终端测距的四种方法, 均能够测量出移动终端与被测物 体之间的间距, 但不能够自动测量出待测物体自身的长度。
由此可见, 目前亟需一种自动测量待测物体自身长度的移动终端, 能 够精确地测量物体的长度, 在日常生活中满足人们的需求且方便用户使用。 发明内容
本发明实施例提供一种移动终端及基于移动终端的测量方法, 能够精 确地测量物体长度, 满足用户的需求且方便用户使用。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种基于移动终端的测量方法, 确定测量的基准 值为移动终端任意一个侧边的长度; 该方法还包括:
测量出所述移动终端的翻转角速度以及釆样时间; 其中, 所述移动终 端确定为测量基准值的侧边沿与待测物体的待测方向平行放置, 且所述移 动终端侧边的起始位置与待测物体待测方向的起始位置对齐; 所述移动终 端的翻转为所述移动终端沿待测物体的待测方向从待测物体的起始位置翻 转到待测物体的结束位置;
根据所述翻转角速度以及釆样时间确定所述移动终端的翻转角度; 根 据所述翻转角度计算出所述待测物体待测方向的长度。
上述方案中, 根据所述翻转角度计算出所述待测物体待测方向的长度, 包括:
根据所述翻转角度, 按照如下公式计算出所述待测物体待测方向的长 度:
Λ
4>η≥3,6>η≥5,···
一 ,
5>η≥4,7 >η≥6 ···
Figure imgf000004_0001
其中, 确定测量的基准值为所述移动终端任意一个侧边的长度 fl, c为 移动终端的厚度, S为移动终端的翻转角度, L为待测物体待测方向的长度, n: ―为移动终端的翻转次数。
90° 上述方案中, 该方法还包括: 输出并显示测量出的所述待测物体待测方向的长度。
上述方案中, 该方法还包括:
若未测量出所述移动终端的翻转角速度, 则按照设定时间间隔重新测 量出所述移动终端的翻转角速度以及釆样时间。
本发明实施例还提供了一种移动终端, 该移动终端包括: 确定模块、 角速度测量模块、 计算模块; 其中,
所述确定模块, 配置为确定测量的基准值为移动终端任意一个侧边的 长度;
所述角速度测量模块, 配置为测量出所述移动终端的翻转角速度以及 釆样时间; 其中, 所述移动终端确定为测量基准值的侧边沿与待测物体的 待测方向平行放置, 且所述移动终端侧边的起始位置与待测物体待测方向 的起始位置对齐; 所述移动终端的翻转为沿待测物体的待测方向从待测物 体的起始位置翻转到待测物体的结束位置;
所述计算模块, 配置为根据所述翻转角速度以及釆样时间确定所述移 动终端的翻转角度; 根据所述翻转角度计算出所述待测物体待测方向的长 度。
上述方案中, 所述移动终端还包括:
显示模块, 配置为输出并显示测量出的所述待测物体待测方向的长度。 上述方案中, 所述角速度测量模块还配置为:
若未测量出所述移动终端的翻转角速度, 则按照设定时间间隔重新测 量出所述移动终端的翻转角速度以及釆样时间。
上述方案中, 所述角速度测量模块釆用陀螺仪实现。
上述方案中, 所述确定模块、 计算模块由中央处理器 CPU实现。
上述方案中, 所述显示模块由显示器实现。
本发明实施例还提供一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令用于执行权利要求 1 至 5 任一项所述的基于移动终端的测量方法。
本发明实施例所提供的移动终端及基于移动终端的测量方法, 首先确 定测量的基准值为移动终端任意一个侧边的长度; 然后测量出所述移动终 端的翻转角速度以及釆样时间; 其中, 所述移动终端确定为测量基准值的 侧边沿与待测物体的待测方向平行放置, 且所述移动终端侧边的起始位置 与待测物体待测方向的起始位置对齐; 所述移动终端的翻转为所述移动终 端沿待测物体的待测方向从待测物体的起始位置翻转到待测物体的结束位 置; 最终根据所述翻转角速度以及釆样时间确定所述移动终端的翻转角度; 根据所述翻转角度计算出所述待测物体待测方向的长度。 如此, 本发明实 施例根据所述翻转角速度以及釆样时间确定所述移动终端的翻转角度, 根 据所述翻转角度计算出所述待测物体待测方向的长度, 能够精确地测量物 体长度, 在日常生活中满足用户的需求且方便用户使用。 附图说明
图 1为本发明实施例基于移动终端的测量的方法实现流程示意图; 图 2为本发明实施例移动终端组成结构示意图;
图 3为本发明实施例移动终端的结构图。 具体实施方式
本发明实施例中, 首先确定测量的基准值为移动终端任意一个侧边的 长度; 然后测量出所述移动终端的翻转角速度以及釆样时间; 其中, 所述 移动终端确定为测量基准值的侧边沿与待测物体的待测方向平行放置, 且 所述移动终端侧边的起始位置与待测物体待测方向的起始位置对齐; 所述 移动终端的翻转为所述移动终端沿待测物体的待测方向从待测物体的起始 位置翻转到待测物体的结束位置; 最终根据所述翻转角速度以及釆样时间 确定所述移动终端的翻转角度; 根据所述翻转角度计算出所述待测物体待 测方向的长度。 如此, 能够精确地测量物体长度, 满足用户的需求和使用。
本发明实施例中, 所述移动终端可以是具备智能化测量和显示功能的 设备, 例如, 可以为: 智能手机、 平板电脑 ipad等移动终端设备。
下面结合附图和具体实施方式对本发明所述方法和装置作进一步说 明。
本发明实施例提出了一种基于移动终端的测量方法, 如图 1 所示, 该 方法包括:
步骤 S100: 确定测量的基准值为移动终端任意一个侧边的长度。
这里, 所述移动终端任意一个侧边为移动终端的长边或宽边。
步骤 S101 : 测量出所述移动终端的翻转角速度以及釆样时间; 其中, 所述移动终端确定为测量基准值的侧边沿与待测物体的待测方向平行放 置, 且所述移动终端侧边的起始位置与待测物体待测方向的起始位置对齐; 所述移动终端的翻转为所述移动终端沿待测物体的待测方向从待测物体的 起始位置翻转到待测物体的结束位置。
步骤 S102: 根据所述翻转角速度以及釆样时间确定所述移动终端的翻 转角度; 根据所述翻转角度计算出所述待测物体待测方向的长度。
这里, 根据所述翻转角速度 以及釆样时间 t, 确定所述移动终端的翻 转角度 = 0t。
这里, 确定测量的基准值为所述移动终端的长边的长度 fl,假设移动终 端的厚度为 c, 那么, 根据所述移动终端的翻转角度^ 计算出所述待测物 体待测方向的长度 :
当翻转角度 = 0°时, L = a ;
当翻转角度 0° < < 90°时, J = a * |cos S| ;
当翻转角度 = 90°时, L = a + c 当翻转角度 90° < <180°时, J = a + c + a*|cos^|;
当翻转角度 = 180°时, L = 2a + c
当翻转角度 180° < <270°时, L = 2a + c
当翻转角度 = 270°时, L = 2a + 2c;
当翻转角度 270° < <360°时, L = 2a + 2c + a*\cos0\;
当翻转角度 = 360°时, J = 3a + 2c;
当翻转角度 360° < <450°时, L = 3a + 2c
当翻转角度 = 450°时, J = 3a + 3c;
当翻转角度 450° 540°时, J = 3a + 3c + a*|cos^|;
依此类推, 按照如下公式计算出所述待测物体待测方向的长度:
Figure imgf000008_0001
其中, 确定测量的基准值为所述移动终端的长边的长度 fl, c为移动终 端的厚度, S为移动终端的翻转角度, 为待测物体待测方向的长度, n= i 为移动终端的翻转次数。
优选地, 根据所述翻转角度计算出所述待测物体待测方向的长度之后, 输出并显示测量出的所述待测物体待测方向的长度。
优选地, 若未测量出所述移动终端的翻转角速度, 则按照预先设定的 时间间隔重新测量出所述移动终端的翻转角速度以及釆样时间; 再根据重 新测量出的翻转角速度以及釆样时间确定所述移动终端的翻转角度; 根据 所述翻转角度计算出所述待测物体待测方向的长度; 这里, 所述时间间隔 可以根据实际需要设定。
为实现上述方法, 本发明实施例还提供了一种移动终端, 由于该移动 终端解决问题的原理与方法相似, 因此, 移动终端的实施过程及实施原理 均可以参见前述方法的实施过程及实施原理描述, 重复之处不再赘述。
如图 2所示, 本发明实施例提供的移动终端, 包括: 确定模块 200、 角 速度测量模块 202、 计算模块 203; 其中,
所述确定模块 200,配置为确定测量的基准值为移动终端任意一个侧边 的长度;
这里, 所述移动终端任意一个侧边为移动终端长边或宽边;
所述角速度测量模块 202,配置为测量出所述移动终端的翻转角速度以 及釆样时间; 其中, 所述移动终端确定为测量基准值的侧边沿与待测物体 的待测方向平行放置, 且所述移动终端侧边的起始位置与待测物体待测方 向的起始位置对齐; 所述移动终端的翻转为沿待测物体的待测方向从待测 物体的起始位置翻转到待测物体的结束位置;
所述计算模块 203,配置为根据所述翻转角速度以及釆样时间确定所述 移动终端的翻转角度; 根据所述翻转角度计算出所述待测物体待测方向的 长度。
以上功能模块的划分方式仅为本发明实施例给出的一种优选实现方 式, 功能模块的划分方式不构成对本发明的限制。
具体实施中, 所述移动终端还包括:
显示模块 204, 配置为输出并显示测量出的所述待测物体待测方向的长 度。
具体实施中, 所述角速度测量模块还配置为:
若未测量出所述移动终端的翻转角速度, 则按照预先设定的时间间隔 重新测量出所述移动终端的翻转角速度以及釆样时间;
优选地, 再根据重新测量出的翻转角速度以及釆样时间确定所述移动 终端的翻转角度; 根据所述翻转角度计算出所述待测物体待测方向的长度。 在实际应用中, 所述角速度测量模块 202可由位于移动终端的陀螺仪 实现, 或具有陀螺仪测距功能的软件或硬件实现; 所述确定模块 200、 计算 模块 203可由位于移动终端的中央处理器( Central Processing Unit, CPU ) 实现; 所述显示模块 204可由位于移动终端的显示器实现。
基于相同的技术构思, 下面举个具体例子说明本发明实施例移动终端 的组成结构及功能, 该移动终端解决问题的原理与方法与前面所述相似, 重复之处不再赘述。
如图 3所示, 该移动终端包括: 陀螺仪 300、 CPU 301、 存储器 302; 其中,
所述存储器 302, 配置为存储测量的基准值;
这里, 所述测量的基准值为移动终端任意一个侧边的长度; 所述侧边 为移动终端的长边或宽边。
所述陀螺仪 300,配置为测量出所述移动终端的翻转角速度以及釆样时 间; 其中, 所述移动终端确定为测量基准值的侧边沿与待测物体的待测方 向平行放置, 且所述移动终端侧边的起始位置与待测物体待测方向的起始 位置对齐; 所述移动终端的翻转为沿待测物体的待测方向从待测物体的起 始位置翻转到待测物体的结束位置;
所述 CPU 301, 配置为确定测量的基准值为移动终端任意一个侧边的 长度; 以及根据所述陀螺仪 300测量出的翻转角速度以及釆样时间确定所 述移动终端的翻转角度; 根据所述翻转角度计算出所述待测物体待测方向 的长度;
进一步的, 该移动终端还包括: 显示器 303, 配置为输出并显示测量出 的所述待测物体待测方向的长度。
其中, 所述 CPU 301通过内部集成电路( Inter Integrated Circuit, I2C ) 总线接口与所述陀螺仪 300进行通信连接。 具体实施中, 首先由所述 CPU 301确定测量的基准值为移动终端任意 一个侧边的长度; 然后由所述陀螺仪 300测量出所述移动终端的翻转角速 度以及釆样时间; 其中, 所述移动终端确定为测量基准值的侧边沿与待测 物体的待测方向平行放置, 且所述移动终端侧边的起始位置与待测物体待 测方向的起始位置对齐; 所述移动终端的翻转为沿待测物体的待测方向从 待测物体的起始位置翻转到待测物体的结束位置; 最终由所述 CPU 301根 据所述陀螺仪 300测量出的翻转角速度以及釆样时间确定出所述移动终端 的翻转角度, 根据所述翻转角度计算出所述待测物体待测方向的长度, 由 所述显示器 303输出并显示测量出的所述待测物体待测方向的长度。
具体的, 所述陀螺仪 300将釆集到的翻转角速度模拟数据, 经过 A/D 转换器进行模数转换后变为数字数据, 再经过滤波器滤波后得到角速度数 据 w,将测量出所述移动终端的翻转角速度 ω以及釆样时间 t通过 /2C总线接 口输入到所述 CPU 301中进行处理, 所述 CPU 301读取或接收到所述陀螺 仪 300输出的翻转角速度 以及釆样时间 t后,根据所述翻转角速度 w以及 釆样时间 t确定出所述移动终端的翻转角度 ^ = , 根据所述翻转角度计算 出所述待测物体待测方向的长度, 通过所述显示器 303输出并显示。
其中, 所述 A/D转换器与滤波器可以是运行在所述陀螺仪 300中的具 有 A/D转换功能和滤波功能的软件,即由所述陀螺仪 300的内部模块实现; 所述 A/D转换器与滤波器也可以是桥接模式的物理设备, 独立于所述陀螺 仪 300的外部设备, 即连接在所述陀螺仪 300与所述 CPU 301之间的外部 设备, 发往所述 CPU 301的模拟数据需要经过所述 A/D转换器进行转化, 所述滤波器进行滤波,然后通过 /2C总线接口输入到所述 CPU 301中进行处 理。
优选地, 若未测量出所述移动终端的翻转角速度, 则按照设定时间间 隔由所述陀螺仪 300重新测量出所述移动终端的翻转角速度以及釆样时间。 在本发明所提供的几个实施例中, 应该理解到, 所揭露的设备和方法, 可以通过其它的方式实现。 以上所描述的设备实施例仅仅是示意性的, 例 如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外 的划分方式, 如: 多个单元或组件可以结合, 或可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的各组成部分相互 之间的耦合、 或直接耦合、 或通信连接可以是通过一些接口, 设备或单元 的间接耦合或通信连接, 可以是电性的、 机械的或其它形式的。
上述作为分离部件说明的单元可以是、 或也可以不是物理上分开的, 作为单元显示的部件可以是、 或也可以不是物理单元, 即可以位于一个地 方, 也可以分布到多个网络单元上; 可以根据实际的需要选择其中的部分 或全部单元来实现本实施例方案的目的。
另外, 在本发明各实施例中的各功能单元可以全部集成在一个处理单 元中, 也可以是各单元分别单独作为一个单元, 也可以两个或两个以上单 元集成在一个单元中; 上述集成的单元既可以釆用硬件的形式实现, 也可 以釆用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: 移动存储设备、 只读存储器 (ROM, ead-Only Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。
或者, 本发明上述集成的单元如果以软件功能模块的形式实现并作为 独立的产品销售或使用时, 也可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明实施例的技术方案本质上或者说对现有技术做出 贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一 个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算 机、 服务器、 或者网络设备等)执行本发明各个实施例所述方法的全部或 部分。 而前述的存储介质包括: 移动存储设备、 ROM、 磁碟或者光盘等各 种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应以所述权利要求的保护范围为准。

Claims

权利要求书
1、 一种基于移动终端的测量方法, 包括: 确定测量的基准值为移动终 端任意一个侧边的长度; 所述方法还包括:
测量出所述移动终端的翻转角速度以及釆样时间; 其中, 所述移动终 端确定为测量基准值的侧边沿与待测物体的待测方向平行放置, 且所述移 动终端侧边的起始位置与待测物体待测方向的起始位置对齐; 所述移动终 端的翻转为所述移动终端沿待测物体的待测方向从待测物体的起始位置翻 转到待测物体的结束位置;
根据所述翻转角速度以及釆样时间确定所述移动终端的翻转角度; 根 据所述翻转角度计算出所述待测物体待测方向的长度。
2、 根据权利要求 1所述的方法, 其中, 根据所述翻转角度计算出所述 待测物体待测方向的长度, 包括:
根据所述翻转角度, 按照如下公式计算出所述待测物体待测方向的长 度:
Λ
4>η≥3,6>η≥5,···
一 ,
5>η≥4,7 >η≥6 ···
Figure imgf000014_0001
其中, 确定测量的基准值为所述移动终端任意一个侧边的长度 fl, c为 移动终端的厚度, S为移动终端的翻转角度, L为待测物体待测方向的长度,
Θ
n: 为移动终端的翻转次数(
90
3、 根据权利要求 1或 2所述的方法, 其中, 所述方法还包括:
输出并显示测量出的所述待测物体待测方向的长度。
4、 根据权利要求 1或 2所述的方法, 其中, 所述方法还包括: 若未测量出所述移动终端的翻转角速度, 则按照设定时间间隔重新测 量出所述移动终端的翻转角速度以及釆样时间。
5、 一种移动终端, 包括: 确定模块、 角速度测量模块、 计算模块; 其 中,
所述确定模块, 配置为确定测量的基准值为移动终端任意一个侧边的 长度;
所述角速度测量模块, 配置为测量出所述移动终端的翻转角速度以及 釆样时间; 其中, 所述移动终端确定为测量基准值的侧边沿与待测物体的 待测方向平行放置, 且所述移动终端侧边的起始位置与待测物体待测方向 的起始位置对齐; 所述移动终端的翻转为沿待测物体的待测方向从待测物 体的起始位置翻转到待测物体的结束位置;
所述计算模块, 配置为根据所述翻转角速度以及釆样时间确定所述移 动终端的翻转角度; 根据所述翻转角度计算出所述待测物体待测方向的长 度。
6、 根据权利要求 5所述的移动终端, 其中, 所述移动终端还包括: 显示模块, 配置为输出并显示测量出的所述待测物体待测方向的长度。
7、 根据权利要求 5所述的移动终端, 其中, 所述角速度测量模块还配 置为:
若未测量出所述移动终端的翻转角速度, 则按照设定时间间隔重新测 量出所述移动终端的翻转角速度以及釆样时间。
8、 根据权利要求 5至 7任一项所述的移动终端, 其中, 所述角速度测 量模块釆用陀螺仪实现。
9、根据权利要求 5至 7任一项所述的移动终端,其中, 所述确定模块、 计算模块由中央处理器 CPU实现。
10、 根据权利要求 6所述的移动终端, 其中, 所述显示模块由显示器 实现。
11、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于执行权利要求 1至 5任一项所述的基 于移动终端的测量方法。
PCT/CN2014/082912 2014-01-23 2014-07-24 移动终端、基于移动终端的测量方法及计算机存储介质 WO2015109797A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410033719.5A CN104807423A (zh) 2014-01-23 2014-01-23 一种移动终端及基于移动终端的测量方法
CN201410033719.5 2014-01-23

Publications (1)

Publication Number Publication Date
WO2015109797A1 true WO2015109797A1 (zh) 2015-07-30

Family

ID=53680755

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082912 WO2015109797A1 (zh) 2014-01-23 2014-07-24 移动终端、基于移动终端的测量方法及计算机存储介质

Country Status (2)

Country Link
CN (1) CN104807423A (zh)
WO (1) WO2015109797A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436134A (zh) * 2016-05-25 2017-12-05 西安中兴新软件有限责任公司 一种长度测量方法及终端
CN106931924A (zh) * 2017-03-20 2017-07-07 上海与德科技有限公司 一种测量长度的方法和终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201011724Y (zh) * 2007-01-09 2008-01-23 中兴通讯股份有限公司 手机
CN102927942A (zh) * 2011-08-08 2013-02-13 联想(北京)有限公司 电子设备以及利用电子设备的长度测量方法
CN103188360A (zh) * 2013-03-25 2013-07-03 上海斐讯数据通信技术有限公司 一种具有测量长度和角度功能的智能手机及其测量方法
CN103546605A (zh) * 2013-10-17 2014-01-29 Tcl通讯(宁波)有限公司 一种具有测量长度功能的移动终端及其测量方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006314018A (ja) * 2005-05-09 2006-11-16 Sony Ericsson Mobilecommunications Japan Inc 携帯通信端末
CN1881982A (zh) * 2005-06-14 2006-12-20 明基电通股份有限公司 可携式电子装置
CN102494616B (zh) * 2011-11-22 2015-01-07 捷开通讯科技(上海)有限公司 基于移动终端的长度测量方法
CN103167079B (zh) * 2012-09-14 2015-08-05 深圳市金立通信设备有限公司 一种手机测量系统及方法
CN103383253A (zh) * 2013-07-17 2013-11-06 深圳市欧珀通信软件有限公司 一种测量长度的方法及装置
CN103513788B (zh) * 2013-09-13 2016-07-06 广东欧珀移动通信有限公司 基于陀螺仪传感器的手势识别方法、系统及移动终端
CN103512528B (zh) * 2013-09-18 2016-05-11 广东欧珀移动通信有限公司 一种利用智能终端进行测量的方法及智能终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201011724Y (zh) * 2007-01-09 2008-01-23 中兴通讯股份有限公司 手机
CN102927942A (zh) * 2011-08-08 2013-02-13 联想(北京)有限公司 电子设备以及利用电子设备的长度测量方法
CN103188360A (zh) * 2013-03-25 2013-07-03 上海斐讯数据通信技术有限公司 一种具有测量长度和角度功能的智能手机及其测量方法
CN103546605A (zh) * 2013-10-17 2014-01-29 Tcl通讯(宁波)有限公司 一种具有测量长度功能的移动终端及其测量方法

Also Published As

Publication number Publication date
CN104807423A (zh) 2015-07-29

Similar Documents

Publication Publication Date Title
CN106597462B (zh) 测距方法及测距装置
CN107005242A (zh) 用于mems传感器系统同步的系统和方法
US8655620B2 (en) Method and module for measuring rotation and portable apparatus comprising the module
CN110146106B (zh) 惯性导航设备标定方法、装置、电子设备及存储介质
CN109211275A (zh) 一种陀螺仪的零偏温度补偿方法
CN110647212A (zh) 一种折叠角度的确定方法、装置、电子设备及存储介质
WO2015109797A1 (zh) 移动终端、基于移动终端的测量方法及计算机存储介质
CN107764234A (zh) 快速测量两点间距离的装置及方法
CN114051717A (zh) 用于检测折叠角度的可折叠电子装置及其操作方法
JP6392656B2 (ja) 音源方向推定方法
CN109615360A (zh) 一种图形编码展示方法和装置
CN104809259B (zh) 混响三维空间定位方法和装置
CN108955633A (zh) 多功能激光测距仪
JP2010236939A (ja) 音源推定方法及び音源推定装置
US9618336B2 (en) Measuring device and measurement method
CN206042082U (zh) 移动终端
CN110865170B (zh) 确定含砂量的方法、装置及存储介质
WO2016165449A1 (zh) 一种实现测距的方法和装置
CN104655149A (zh) 一种惯导系统测试系统
CN105509709A (zh) 一种便携式高度测量系统、方法及移动终端
CN111829601B (zh) 流体的多状态参数同步测量方法及装置、电子设备和介质
CN115097379A (zh) 一种定位追踪方法、装置、设备及存储介质
JP2015161659A (ja) 音源方向推定装置、及び、音源推定用画像の表示装置
CN207570544U (zh) 一种基于bim的测绘放样装置
JP6415975B2 (ja) 音源方向推定装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14879423

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14879423

Country of ref document: EP

Kind code of ref document: A1