WO2015180392A1 - 方向测量方法、装置及终端 - Google Patents

方向测量方法、装置及终端 Download PDF

Info

Publication number
WO2015180392A1
WO2015180392A1 PCT/CN2014/089324 CN2014089324W WO2015180392A1 WO 2015180392 A1 WO2015180392 A1 WO 2015180392A1 CN 2014089324 W CN2014089324 W CN 2014089324W WO 2015180392 A1 WO2015180392 A1 WO 2015180392A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
camera
facing
angle
module
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.)
Ceased
Application number
PCT/CN2014/089324
Other languages
English (en)
French (fr)
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to BR112015000113A priority Critical patent/BR112015000113A2/pt
Priority to MX2015000198A priority patent/MX358915B/es
Priority to KR1020147035878A priority patent/KR20160000398A/ko
Priority to JP2016522262A priority patent/JP2016529766A/ja
Priority to RU2014154154A priority patent/RU2618949C2/ru
Priority to US14/613,320 priority patent/US20150345944A1/en
Publication of WO2015180392A1 publication Critical patent/WO2015180392A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C17/00Compasses; Devices for ascertaining true or magnetic north for navigation or surveying purposes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C9/00Measuring inclination, e.g. by clinometers, by levels
    • G01C9/02Details
    • G01C9/06Electric or photoelectric indication or reading means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C9/00Measuring inclination, e.g. by clinometers, by levels
    • G01C9/02Details
    • G01C9/06Electric or photoelectric indication or reading means
    • G01C2009/066Electric or photoelectric indication or reading means optical

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a direction measurement method, apparatus, and terminal.
  • the terminal can measure the direction by installing the compass APP (application).
  • the terminal starts the installed compass APP, displays the virtual dial provided by the compass APP on the display interface of the terminal, and displays various directions on the virtual dial.
  • the compass APP only displays various directions on the terminal display interface, and cannot provide the user with the direction in the real scene.
  • the present disclosure provides a direction measuring method, apparatus, and terminal.
  • a method of directional measurement comprising:
  • the facing direction is displayed in the real scene.
  • the camera is started, and the real scene is obtained by the camera, including:
  • the camera is activated, and the real scene is acquired by the camera.
  • the detecting whether the terminal is in an inclined state includes:
  • determining, according to the compass APP, a direction in which the camera is facing includes:
  • the method further includes:
  • the other directions including a direction opposite to the facing direction and The direction perpendicular to the direction;
  • the other directions are correspondingly displayed in the display interface.
  • the method further includes:
  • the deflection angle is displayed in the display interface.
  • a direction measuring apparatus comprising:
  • a real-time acquisition module configured to start a camera when the terminal runs the compass APP, and obtain a real scene through the camera;
  • a direction measuring module configured to determine a facing direction of the camera according to the compass APP
  • a direction display module configured to display, in the real scene acquired by the real-estimation module, the facing direction measured by the direction measuring module.
  • the real-time acquiring module includes:
  • a tilt detecting unit configured to detect, when the terminal runs the compass APP, whether the terminal is in an inclined state
  • a real scene obtaining unit configured to: when the tilt detecting unit detects that the terminal is in a tilt state, activate the camera, and acquire the real scene through the camera.
  • the tilt detecting unit includes:
  • An angle measuring subunit configured to measure an inclination angle between the terminal and a horizontal plane by a direction sensor in the terminal
  • An angle detecting subunit configured to detect whether the tilt angle measured by the angle measuring subunit belongs to a preset angle range
  • the tilt determining subunit is configured to determine that the terminal is in an inclined state when the angle detecting subunit detects that the tilt angle belongs to the angle range.
  • the direction measurement module includes:
  • a parameter determining unit configured to determine a posture of the terminal, and determining, by the compass APP, various directions of the terminal;
  • a direction measuring unit configured to determine a facing direction of the camera according to the posture of the terminal determined by the parameter determining unit and each direction of the terminal.
  • the device further includes:
  • a direction determining module configured to determine other directions according to the facing direction, the other directions including a direction opposite to the facing direction and a direction perpendicular to the facing direction;
  • the first display module is configured to display the other directions determined by the direction determining module in the display interface.
  • the device further includes:
  • Direction setting module for presetting the reference direction
  • An angle calculation module configured to calculate a measured deflection angle of the facing direction relative to the reference direction set by the direction setting module
  • a second display module configured to display the deflection angle calculated by the angle calculation module in the display interface.
  • a terminal including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the facing direction is displayed in the real scene.
  • the camera When the terminal runs the compass APP, the camera is activated, the real scene is obtained by the camera; the facing direction of the camera is determined according to the compass APP; the facing direction is displayed in the real scene, and the facing direction of the camera can be directly displayed in the real scene as the real direction.
  • the problem that the terminal cannot provide the direction in the real scene to the user is solved, and the effect of expanding the direction measurement function of the terminal is achieved.
  • FIG. 1A is a flow chart showing a direction measuring method according to an exemplary embodiment.
  • Fig. 1B is a schematic view showing the direction in which the camera is facing according to the embodiment.
  • FIG. 2A is a flow chart of a direction measurement method, according to another exemplary embodiment.
  • FIG. 2B is a schematic diagram showing a manner of establishing a coordinate system according to the present embodiment.
  • Fig. 2C is a schematic view showing the direction in which the camera is facing according to the embodiment.
  • 2D is an application diagram of the direction measurement shown in accordance with the present embodiment.
  • 2E is a schematic diagram showing a display direction of a terminal according to the present embodiment.
  • Fig. 2F is an application diagram of the deflection angle shown in accordance with the present embodiment.
  • FIG. 3 is a block diagram of a direction measuring device, according to an exemplary embodiment.
  • FIG. 4 is a block diagram of a direction measuring device, according to an exemplary embodiment.
  • FIG. 5 is a block diagram of a direction measuring apparatus, according to an exemplary embodiment.
  • FIG. 1A is a flowchart of a direction measurement method according to an exemplary embodiment.
  • the direction measurement method may be, but is not limited to, applied to a terminal including a camera and a compass APP, and includes the following steps.
  • step 101 when the terminal runs the compass APP, the camera is activated, and the real scene is acquired through the camera.
  • the terminal activates the camera and shoots the current real scene through the camera.
  • step 102 the facing direction of the camera is determined based on the compass APP.
  • the compass APP can determine the direction in which the camera is facing according to the measured directions of the terminal.
  • FIG. 1B is a schematic diagram showing the facing direction of the camera according to the embodiment
  • FIG. 1B(1) is a schematic diagram of the facing direction of the camera in the vertical direction such as a mobile phone
  • FIG. 1B(2) is such as a tablet computer.
  • the reading direction of the class is a schematic diagram of the facing direction of the camera in the horizontal direction.
  • the small dot on the back of the terminal in FIG. 1B is the camera, and the facing direction of the camera is the same as the facing direction of the terminal, which is the direction perpendicular to the back of the terminal from the front of the terminal.
  • step 103 the facing direction is displayed in the real scene.
  • the facing direction of the camera measured by the compass APP is the real direction, and the facing direction is displayed in the real scene, that is, the real direction can be provided to the user.
  • the directional measurement method when the terminal runs the compass APP, starts the camera, obtains the real scene through the camera; determines the facing direction of the camera according to the compass APP; displays the facing direction in the real scene, and the camera can be displayed
  • the positive direction is directly displayed in the real scene as the real direction, which solves the problem that the terminal cannot provide the user with the direction in the real scene, and achieves the effect of expanding the direction measurement function of the terminal.
  • the direction measurement method may be, but is not limited to, applied to a terminal including a camera and a compass APP, and includes the following steps.
  • step 201 when the terminal runs the compass APP, it is detected whether the terminal is in the tilt state; if it is detected that the terminal is in the tilt state, step 202 is performed.
  • the direction measurement method provided by this embodiment is generally applied to the measurement of the real-field direction. Therefore, if there is no angle between the terminal and the horizontal plane, the photographing angle of the camera is perpendicular to the ground, and the real-field direction cannot be measured at this time. Therefore, in order to avoid waste of resources caused by the direction measurement process triggered by the terminal being unable to measure the real direction, it is possible to detect whether the terminal is in a tilt state. If the terminal is in the tilt state, the direction measurement process is started, and the direction measurement is performed by starting the pre-installed camera in the terminal; if the terminal is in the horizontal state, the direction measurement process is not started.
  • detecting whether the terminal is in an inclined state including:
  • the terminal When the measuring terminal is in an inclined state, the terminal can activate a pre-installed direction sensor in the terminal, and measure the tilt angle between the terminal and the horizontal plane through the direction sensor.
  • the tilt angle refers to a rotation angle when the display interface of the terminal is upward and parallel to the horizontal plane, and rotates to the current posture in the direction of the bottom edge or the side edge of the terminal.
  • the direction sensor may be a gyroscope and/or an acceleration sensor. Measuring the tilt angle of the terminal by the direction sensor can be based on various mature technologies, and will not be described here.
  • the terminal After obtaining the tilt angle measured by the direction sensor, the terminal can also compare the tilt angle with the preset angle range. If the tilt angle belongs to the angle range, it is determined that the terminal is in the tilt state; if the tilt angle does not belong to the angle range, it is determined that the terminal is in the horizontal state.
  • the angle range can be set and modified. For example, the angle range is (45°, 135°), or the angle range is modified to (5°, 175°) and so on.
  • the direction of indication of the terminal may change from the direction of the opposite direction of the terminal to the direction opposite to the direction of the opposite direction. Therefore, in order to ensure the accuracy of the direction measurement, the predetermined direction may be The value is set to the maximum value of the angular range.
  • step 202 the camera is activated, and the real scene is acquired through the camera.
  • the camera When the camera is turned on, the camera captures the real scene in real time and displays the captured real scene in the display interface.
  • step 203 the facing direction of the camera is determined based on the compass APP.
  • the compass APP can determine the direction in which the camera is facing according to the measured directions of the terminal.
  • the facing direction of the camera is determined, including:
  • the direction sensor can measure the parameter value of the terminal relative to each axial direction when the terminal is in the current posture, and determine the posture of the terminal according to the measured parameter value.
  • the coordinate system establishment manner generally adopted by the terminal whose reading direction is vertical is taken as an example, and the display interface of the terminal is set to the xz plane, wherein the center of the terminal is the coordinate origin and points to the right of the terminal.
  • the positive half-axis of the x-axis is the z-axis perpendicular to the x-axis on the display interface, the positive half-axis of the z-axis above the terminal in the xz plane, the y-axis perpendicular to the display plane, and the xz plane pointing to the terminal
  • the upper part is the positive half axis of the y-axis.
  • the first parameter value of the terminal about the x-axis rotation, the second parameter value of the rotation about the y-axis, and the third parameter value of the rotation about the z-axis can be measured by the direction sensor.
  • the attitude of the terminal is determined according to the measured three parameter values.
  • the posture of the terminal can be measured by the gyroscope, and the posture of the terminal can be measured by the combination of the gyroscope and the acceleration sensor, which is not limited in this embodiment.
  • the compass APP measures various directions of the terminal according to the attitude of the terminal.
  • the facing direction of the camera is the facing direction of the terminal; when the camera is located in front of the terminal, the facing direction of the camera and the facing direction of the terminal in contrast.
  • the direction in which the terminal is facing refers to the direction perpendicular to the back of the terminal from the front of the terminal.
  • the display interface When the display interface is perpendicular to the horizontal plane, please refer to the schematic diagram of the facing direction of the camera shown in FIG. 1B. When the display interface is not perpendicular to the horizontal plane, please refer to the schematic diagram of the facing direction of the camera shown in FIG. 2C.
  • the coordinate system established by the terminal is represented by the X-axis, the Y-axis, and the Z-axis in Fig. 2C, and the facing direction of the camera is indicated by an arrow M which is parallel to the Y-axis and opposite to the Y-axis direction.
  • the direction sensor may determine the facing direction of the camera every predetermined time during the rotation of the terminal. For example, assuming that the terminal rotates counterclockwise around the bottom edge from the horizontal position, FIG. 2D is an application diagram of the direction measurement shown according to the present embodiment. 2D(1) is a display interface when the rotation angle is small, and FIG. 2D(2) is a display interface when the rotation angle is large.
  • step 204 the facing direction is displayed in the real scene.
  • the facing direction of the camera measured by the compass APP is the real direction, that is, the real direction can be provided to the user.
  • the terminal can display the measured direction of the camera in real time in real scene.
  • the terminal may display the facing direction in the form of a pointer in the real scene, or, preferably, the facing direction may be displayed in a real form in a digital form to improve the accuracy of the direction indication.
  • step 205 other directions are determined according to the facing direction, the other directions including a direction opposite to the facing direction and a direction perpendicular to the facing direction; the other directions are correspondingly displayed in the display interface.
  • the terminal may calculate a direction opposite to the facing direction and a direction perpendicular to the facing direction according to the facing direction of the camera, and display the calculated directions at the relative positions in the display interface.
  • 2E is a schematic diagram showing a display direction of a terminal according to the present embodiment.
  • the compass APP measures that the facing direction of the camera is “North 10°” and “North 10°” is displayed above the display interface, “North 10°” is rotated clockwise by 90 degrees to obtain “North 10°”.
  • the vertical direction is “East 100°”, and “East 100°” is displayed on the right side of the display interface; “North 10°” is rotated 180 degrees clockwise to obtain the direction “South 190°” opposite to “North 10°”.
  • the method also includes:
  • the reference direction can be set and modified.
  • the starting direction is “North 0°”, or the starting direction is "Southeast 130°” and the like.
  • Fig. 2F is an application diagram of the deflection angle shown in accordance with the present embodiment.
  • the preset reference direction is “north 0°”
  • the opposite direction measured by the terminal is “south 180°”
  • the calculated deflection angle is 180°
  • the terminal displays “based on the starting direction” in the display interface.
  • a north deflection of 180°" message to indicate the deflection of the object relative to the reference direction.
  • the directional measurement method starts the camera by running the compass APP when the terminal runs. Head, obtain the real scene through the camera; determine the facing direction of the camera according to the compass APP; display the facing direction in the real scene, the direct facing direction of the camera can be directly displayed in the real scene as the real direction, solving the terminal can not provide the user with a realistic scene
  • the problem of the direction in the direction achieves the effect of extending the direction measurement function of the terminal.
  • the object direction of the real scene can be determined according to the set reference direction and the displayed deflection angle. The effect of further expanding the direction measurement function of the terminal is achieved.
  • FIG. 3 is a block diagram of a direction measuring apparatus according to an exemplary embodiment.
  • the direction measuring apparatus may be, but is not limited to being applied to, a terminal including a camera and a compass APP, including: a real-time acquiring module 301, Direction measurement module 302 and direction display module 303.
  • the real-time acquisition module 301 is configured to: when the terminal runs the compass APP, start the camera, and obtain the real scene through the camera;
  • the direction measuring module 302 is configured to determine a facing direction of the camera according to the compass APP;
  • the direction display module 303 is configured to display the direction of the direction measured by the direction measurement module 302 in the real scene acquired by the live view acquisition module 301.
  • the directional direction measuring device activates the camera when the terminal runs the compass APP, and acquires the real scene through the camera; determines the facing direction of the camera according to the compass APP; and displays the facing direction in the real scene, the camera can be displayed
  • the positive direction is directly displayed in the real scene as the real direction, which solves the problem that the terminal cannot provide the user with the direction in the real scene, and achieves the effect of expanding the direction measurement function of the terminal.
  • FIG. 4 is a block diagram of a direction measuring apparatus according to an exemplary embodiment.
  • the direction measuring apparatus may be, but is not limited to being applied to, a terminal including a camera and a compass APP, including: a real-time acquiring module 301, Direction measurement module 302 and direction display module 303.
  • the real-time acquisition module 301 is configured to: when the terminal runs the compass APP, start the camera, and obtain the real scene through the camera;
  • the direction measuring module 302 is configured to determine a facing direction of the camera according to the compass APP;
  • the direction display module 303 is configured to display the direction of the direction measured by the direction measurement module 302 in the real scene acquired by the live view acquisition module 301.
  • the real scene obtaining module 301 includes: a tilt detecting unit 3011 and a real scene obtaining unit 3012;
  • the tilt detecting unit 3011 is configured to detect whether the terminal is in a tilt state when the terminal runs the compass APP;
  • the live view obtaining unit 3012 is configured to activate the camera when the tilt detecting unit 3011 detects that the terminal is in the tilt state, and acquire the real scene through the camera.
  • the tilt detecting unit 3011 includes: an angle measuring subunit 30111, an angle detecting subunit 30112, and a tilt determining subunit 30113;
  • the angle measuring subunit 30111 is configured to measure an inclination angle between the terminal and the horizontal plane by a direction sensor in the terminal;
  • the angle detecting subunit 30112 is configured to detect whether the tilt angle measured by the angle measuring subunit 30111 belongs to a preset angle range;
  • the tilt determination sub-unit 30113 is configured to determine that the terminal is in an inclined state when the angle detection sub-unit 30112 detects that the tilt angle belongs to the angle range.
  • the direction measuring module 302 includes: a parameter determining unit 3021 and a direction measuring unit 3022;
  • the parameter determining unit 3021 is configured to determine a posture of the terminal, and determine various directions of the terminal through the compass APP;
  • the direction measuring unit 3022 is configured to determine a facing direction of the camera according to the posture of the terminal determined by the parameter determining unit 3021 and the respective directions of the terminal.
  • the device further includes: a direction determining module 304 and a first display module 305;
  • the direction determining module 304 is configured to determine other directions according to the facing direction, the other directions including a direction opposite to the facing direction and a direction perpendicular to the facing direction;
  • the first display module 305 is configured to display other directions determined by the direction determining module 304 in the display interface.
  • the device further includes: a direction setting module 306, an angle calculating module 307, and a second display module 308;
  • the direction setting module 306 is configured to preset a reference direction
  • the angle calculation module 307 is configured to calculate a measured deflection angle of the facing direction with respect to the reference direction set by the direction setting module 306;
  • the second display module 308 is configured to display the deflection angle calculated by the angle calculation module 307 in the display interface.
  • the directional direction measuring device activates the camera when the terminal runs the compass APP, and acquires the real scene through the camera; determines the facing direction of the camera according to the compass APP; and displays the facing direction in the real scene, the camera can be displayed
  • the positive direction is directly displayed in the real scene as the real direction, which solves the problem that the terminal cannot provide the user with the direction in the real scene, and achieves the effect of expanding the direction measurement function of the terminal.
  • the object direction of the real scene can be determined according to the set reference direction and the displayed deflection angle. The effect of further expanding the direction measurement function of the terminal is achieved.
  • An exemplary embodiment of the present disclosure provides a terminal capable of implementing a direction measurement method provided by the present disclosure, the terminal comprising: a processor, a memory for storing processor executable instructions;
  • processor is configured to:
  • the facing direction is displayed in the real scene.
  • FIG. 5 is a block diagram of a direction measuring device 500, according to an exemplary embodiment.
  • device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 500 can include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, And a communication component 516.
  • Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 502 can include one or more processors 518 to execute instructions to perform all or part of the steps described above.
  • processing component 502 can include one or more modules to facilitate interaction between component 502 and other components.
  • processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
  • Memory 504 is configured to store various types of data to support operation at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically erasable programmable read only memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 506 provides power to various components of device 500.
  • Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 500.
  • the multimedia component 508 includes a screen between the device 500 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 510 is configured to output and/or input an audio signal.
  • audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 504 or transmitted via communication component 516.
  • audio component 510 also includes a speaker for outputting an audio signal.
  • the I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, and the peripheral interface module can It is the keyboard, click wheel, button, etc. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 514 includes one or more sensors for providing device 500 with various aspects of status assessment.
  • sensor assembly 514 can detect an open/closed state of device 500, a relative positioning of components, such as the display and keypad of device 500, and sensor component 514 can also detect a change in position of one component of device 500 or device 500. The presence or absence of user contact with device 500, device 500 orientation or acceleration/deceleration, and temperature variation of device 500.
  • Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 514 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices.
  • the device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 516 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 504 comprising instructions executable by processor 518 of apparatus 500 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Details Of Cameras Including Film Mechanisms (AREA)
  • Indication In Cameras, And Counting Of Exposures (AREA)

Abstract

本公开是关于一种方向测量方法、装置及终端,属于计算机技术领域。所述方法,包括:当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;根据所述指南针APP确定所述摄像头的正对方向;在所述实景中显示所述正对方向。所述装置包括:实景显示模块、方向测量模块和方向显示模块。本公开可解决终端无法向用户提供现实场景中的方向的问题,达到了扩展终端的方向测量功能的效果。

Description

方向测量方法、装置及终端
本申请基于申请号为201410227627.0、申请日为2014年5月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及计算机技术领域,特别涉及一种方向测量方法、装置及终端。
背景技术
随着终端技术的发展,终端具备的功能越来越多。比如,终端可以通过安装指南针APP(应用程序)来测量方向。当需要测量方向时,终端启动安装的指南针APP,在终端的显示界面上显示指南针APP提供的虚拟表盘,在虚拟表盘上显示各个方向。
发明人在实现本公开的过程中,发现相关技术中至少存在以下缺陷:
指南针APP仅在终端显示界面上显示各个方向,无法向用户提供现实场景中的方向。
发明内容
为解决相关技术中的问题,本公开提供了一种方向测量方法、装置及终端。
根据本公开实施例的第一方面,提供一种方向测量方法,包括:
当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;
根据所述指南针APP确定所述摄像头的正对方向;
在所述实景中显示所述正对方向。
可选的,所述当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景,包括:
当所述终端运行所述指南针APP时,检测所述终端是否处于倾斜状态;
若检测出所述终端处于倾斜状态,则启动所述摄像头,通过所述摄像头获取所述实景。
可选的,所述检测所述终端是否处于倾斜状态,包括:
通过所述终端中的方向传感器测量所述终端与水平面之间的倾斜角度;
检测所述倾斜角度是否属于预设的角度范围;
若检测出所述倾斜角度属于所述角度范围,则确定所述终端处于倾斜状态。
可选的,所述根据所述指南针APP确定所述摄像头的正对方向,包括:
确定所述终端的姿态,以及,通过所述指南针APP确定所述终端的各个方向;
根据所述终端的姿态和所述终端的各个方向确定所述摄像头的正对方向。
可选的,所述方法,还包括:
根据所述正对方向确定其它方向,所述其它方向包括与所述正对方向相反的方向和与 所述正对方向垂直的方向;
将所述其它方向对应显示在所述显示界面中。
可选的,所述方法,还包括:
预先设定基准方向;
计算测得的所述正对方向相对于所述基准方向的偏转角度;
将所述偏转角度显示在所述显示界面中。
根据本公开实施例的第二方面,提供一种方向测量装置,包括:
实景获取模块,用于当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;
方向测量模块,用于根据所述指南针APP确定所述摄像头的正对方向;
方向显示模块,用于在所述实景获取模块获取到的所述实景中显示所述方向测量模块测得的所述正对方向。
可选的,所述实景获取模块,包括:
倾斜检测单元,用于当所述终端运行所述指南针APP时,检测所述终端是否处于倾斜状态;
实景获取单元,用于在所述倾斜检测单元检测出所述终端处于倾斜状态时,启动所述摄像头,通过所述摄像头获取所述实景。
可选的,所述倾斜检测单元,包括:
角度测量子单元,用于通过所述终端中的方向传感器测量所述终端与水平面之间的倾斜角度;
角度检测子单元,用于检测所述角度测量子单元测得的所述倾斜角度是否属于预设的角度范围;
倾斜确定子单元,用于在所述角度检测子单元检测出所述倾斜角度属于所述角度范围时,确定所述终端处于倾斜状态。
可选的,所述方向测量模块,包括:
参数确定单元,用于确定所述终端的姿态,以及,通过所述指南针APP确定所述终端的各个方向;
方向测量单元,用于根据所述参数确定单元确定的所述终端的姿态和所述终端的各个方向确定所述摄像头的正对方向。
可选的,所述装置,还包括:
方向确定模块,用于根据所述正对方向确定其它方向,所述其它方向包括与所述正对方向相反的方向和与所述正对方向垂直的方向;
第一显示模块,用于将所述方向确定模块确定的所述其它方向对应显示在所述显示界面中。
可选的,所述装置,还包括:
方向设置模块,用于预先设定基准方向;
角度计算模块,用于计算测得的所述正对方向相对于所述方向设置模块设置的所述基准方向的偏转角度;
第二显示模块,用于将所述角度计算模块计算得到的所述偏转角度显示在所述显示界面中。
根据本公开实施例的第三方面,提供一种终端,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;
根据所述指南针APP确定所述摄像头的正对方向;
在所述实景中显示所述正对方向。
本公开的实施例提供的技术方案可以包括以下有益效果:
通过当终端运行指南针APP时,启动摄像头,通过摄像头获取实景;根据指南针APP确定摄像头的正对方向;在实景中显示正对方向,可以将摄像头的正对方向作为实景方向直接显示在实景中,解决了终端无法向用户提供现实场景中的方向的问题,达到了扩展终端的方向测量功能的效果。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。
图1A是根据一示例性实施例示出的一种方向测量方法的流程图。
图1B是根据本实施例示出的摄像头正对方向的示意图。
图2A是根据另一示例性实施例示出的一种方向测量方法的流程图。
图2B是根据本实施例示出的坐标系建立方式的示意图。
图2C是根据本实施例示出的摄像头正对方向的示意图。
图2D是根据本实施例示出的方向测量的应用图。
图2E是根据本实施例示出的终端显示方向的示意图。
图2F是根据本实施例示出的偏转角度的应用图。
图3是根据一示例性实施例示出的一种方向测量装置的框图。
图4是根据一示例性实施例示出的一种方向测量装置的框图。
图5是根据一示例性实施例示出的一种用于方向测量装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1A是根据一示例性实施例示出的一种方向测量方法的流程图,如图1A所示,方向测量方法可以但不限于应用于包括摄像头和指南针APP的终端中,包括以下步骤。
在步骤101中,当终端运行指南针APP时,启动摄像头,通过该摄像头获取实景。
在运行指南针APP的过程中,终端启动摄像头,通过摄像头对当前的实景进行拍摄。
在步骤102中,根据指南针APP确定摄像头的正对方向。
由于摄像头安装在终端中,而指南针APP可以测量终端的各个方向,因此,指南针APP可以根据测得的终端的各个方向确定摄像头的正对方向。
图1B是根据本实施例示出的摄像头正对方向的示意图,图1B(1)是诸如手机之类的阅读方向为竖向的摄像头正对方向的示意图,图1B(2)是诸如平板电脑之类的阅读方向为横向的摄像头正对方向的示意图。图1B中位于终端背面的小圆点即为摄像头,摄像头的正对方向与终端的正对方向相同,均为由终端前面垂直指向终端背面的方向。
在步骤103中,在实景中显示正对方向。
由于实景正对摄像头,因此,指南针APP测得的摄像头的正对方向即为实景方向,将该正对方向显示在实景中,即可以向用户提供实景方向。
综上所述,本公开提供的方向测量方法,通过当终端运行指南针APP时,启动摄像头,通过摄像头获取实景;根据指南针APP确定摄像头的正对方向;在实景中显示正对方向,可以将摄像头的正对方向作为实景方向直接显示在实景中,解决了终端无法向用户提供现实场景中的方向的问题,达到了扩展终端的方向测量功能的效果。
图2A是根据另一示例性实施例示出的一种方向测量方法的流程图,如图2A所示,方向测量方法可以但不限于应用于包括摄像头和指南针APP的终端中,包括如下步骤。
在步骤201中,当终端运行指南针APP时,检测终端是否处于倾斜状态;若检测出终端处于倾斜状态,则执行步骤202。
本实施例提供的方向测量方法通常应用于实景方向的测量,因此,若终端与水平面之间不存在夹角,摄像头的拍摄角度是垂直于地面的,此时无法测量实景方向。因此,为了避免终端无法测量实景方向而触发方向测量流程所造成的资源浪费,可以检测终端是否处于倾斜状态。若终端处于倾斜状态,则启动方向测量流程,通过启动终端中预先安装的摄像头以进行方向测量;若终端处于水平状态,则不启动方向测量流程。
其中,检测终端是否处于倾斜状态,包括:
1)通过终端中的方向传感器测量终端与水平面之间的倾斜角度;
2)检测倾斜角度是否属于预设的角度范围;
3)若检测出倾斜角度属于角度范围,则确定终端处于倾斜状态。
在测量终端是否处于倾斜状态时,终端可以启动终端中预先安装的方向传感器,通过方向传感器测量终端与水平面之间的倾斜角度。其中,倾斜角度是指终端的显示界面向上且与水平面平行时,绕终端的底边或侧边所在方向旋转到当前姿态时的旋转角度。
本实施例中,方向传感器可以是陀螺仪和/或加速度传感器。通过方向传感器测量终端的倾斜角度可以依据各种成熟技术,此处不作赘述。
终端在获取到方向传感器测得的倾斜角度后,还可以比较该倾斜角度与预设的角度范围。若该倾斜角度属于角度范围,则确定终端处于倾斜状态;若该倾斜角度不属于角度范围,则确定终端处于水平状态。其中,角度范围可以进行设置和修改。比如,角度范围是(45°,135°),或,角度范围修改为(5°,175°)等等。
需要补充说明的是,当倾斜角度大于预定角度时,终端的指示方向会由终端的正对方向变化为与该正对方向相反的方向,因此,为了保证方向测量的准确性,可以将该预定值设置为角度范围的最大值。
在步骤202中,启动摄像头,通过该摄像头获取实景。
当摄像头处于开启状态时,摄像头实时拍摄实景,并将拍摄到的实景显示在显示界面中。
在步骤203中,根据指南针APP确定摄像头的正对方向。
由于摄像头安装在终端中,而指南针APP可以测量终端的各个方向,因此,指南针APP可以根据测得的终端的各个方向确定摄像头的正对方向。
其中,根据指南针APP确定摄像头的正对方向,包括:
1)确定终端的姿态,以及,通过指南针APP确定终端的各个方向;
2)根据终端的姿态和终端的各个方向确定摄像头的正对方向。
由于终端中预先建立有坐标系,因此,可以通过方向传感器测量终端处于当前姿态时相对于各个轴向的参数值,根据测得的参数值确定终端的姿态。其中,本实施例以阅读方向为竖向的终端通常采用的坐标系建立方式为例进行说明,则设定终端的显示界面为xz平面,其中,终端的中心为坐标原点,指向终端右方的为x轴的正半轴,在显示界面上垂直于x轴的为z轴,xz平面内指向终端上方的为z轴的正半轴,垂直于显示平面的为y轴,xz平面外指向终端上方的为y轴的正半轴,详情请参考图2B所示的坐标系建立方式的示意图。
假设参数值是绕各个轴向转动的角度,则可以通过方向传感器测得终端绕x轴转动的第一参数值、绕y轴转动的第二参数值和绕z轴转动的第三参数值,根据测得的三个参数值确定终端的姿态。其中,可以通过陀螺仪测得终端的姿态,也可以通过陀螺仪和加速度传感器的结合测得终端的姿态,本实施例不作限定。
指南针APP根据终端的姿态测量出终端的各个方向,当摄像头位于终端背面时,摄像头的正对方向即终端的正对方向;当摄像头位于终端前面时,摄像头的正对方向与终端的正对方向相反。终端的正对方向是指由终端前面垂直指向终端背面的方向。
当显示界面与水平面垂直时,请参考图1B所示的摄像头正对方向的示意图。当显示界面与水平面不垂直时,请参考图2C所示的摄像头正对方向的示意图。图2C中用X轴、Y轴和Z轴表示终端建立的坐标系,摄像头的正对方向用箭头M表示,该箭头M与Y轴平行且与Y轴方向相反。
可选的,为了使用户明确转动方向,在转动终端的过程中,方向传感器可以每隔预定时间确定摄像头的正对方向。比如,假设终端从水平位置开始绕底边逆时针旋转,则图2D是根据本实施例示出的方向测量的应用图。其中,图2D(1)是旋转角度较小时的显示界面,图2D(2)是旋转角度较大时的显示界面。
在步骤204中,在实景中显示正对方向。
由于实景正对摄像头,因此,指南针APP测得的摄像头的正对方向即为实景方向,即可以向用户提供实景方向。
终端可以将测得的摄像头的正对方向实时显示在实景中。其中,终端可以将正对方向以指针的形式显示在实景中,或,优选地,可以将正对方向以数字的形式显示在实景中,以提高方向指示的精确性。
在步骤205中,根据正对方向确定其它方向,该其它方向包括与正对方向相反的方向和与正对方向垂直的方向;将其它方向对应显示在显示界面中。
终端可以根据摄像头的正对方向计算出与该正对方向相反的方向和与该正对方向垂直的方向,并将计算得到的方向分别显示在显示界面中的相对位置处。
图2E是根据本实施例示出的终端显示方向的示意图。当指南针APP测得摄像头的正对方向是“北10°”且将“北10°”显示在显示界面的上方时,将“北10°”顺时针旋转90度,得到与“北10°”垂直的方向“东100°”,将“东100°”显示在显示界面的右方;将“北10°”顺时针旋转180度,得到与“北10°”相反的方向“南190°”,将“南190°”显示在显示界面的下方;将“北10°”顺时针旋转270度,得到与“北10°”垂直的方向“西280°”,将“西280°”显示在显示界面的坐方。
需要补充说明的是,该方法,还包括:
1)预先设定基准方向;
2)计算测得的正对方向相对于基准方向的偏转角度;
3)将偏转角度显示在显示界面中。
其中,基准方向可以进行设置和修改。比如,起始方向是“北0°”,或,起始方向是“东南130°”等。
图2F是根据本实施例示出的偏转角度的应用图。其中,预先设置的基准方向是“北0°”,假设终端测得的正对方向是“南180°”,则计算得到的偏转角度是180°,终端在显示界面中显示“基于起始方向北偏转180°”的提示信息,以指示物体相对于基准方向的偏转。
综上所述,本公开提供的方向测量方法,通过当终端运行指南针APP时,启动摄像 头,通过摄像头获取实景;根据指南针APP确定摄像头的正对方向;在实景中显示正对方向,可以将摄像头的正对方向作为实景方向直接显示在实景中,解决了终端无法向用户提供现实场景中的方向的问题,达到了扩展终端的方向测量功能的效果。
另外,通过预先设定基准方向;计算测得的正对方向相对于基准方向的偏转角度;将偏转角度显示在显示界面中,可以根据设置的基准方向和显示的偏转角度确定实景的物体方向,达到了进一步扩展终端的方向测量功能的效果。
图3是根据一示例性实施例示出的一种方向测量装置的框图,如图3所示,方向测量装置可以但不限于应用于包括摄像头和指南针APP的终端中,包括:实景获取模块301、方向测量模块302和方向显示模块303。
该实景获取模块301被配置为,用于当终端运行指南针APP时,启动摄像头,通过摄像头获取实景;
该方向测量模块302被配置为,用于根据指南针APP确定摄像头的正对方向;
该方向显示模块303被配置为,用于在实景获取模块301获取到的实景中显示方向测量模块302测得的正对方向。
综上所述,本公开提供的方向测量装置,通过当终端运行指南针APP时,启动摄像头,通过摄像头获取实景;根据指南针APP确定摄像头的正对方向;在实景中显示正对方向,可以将摄像头的正对方向作为实景方向直接显示在实景中,解决了终端无法向用户提供现实场景中的方向的问题,达到了扩展终端的方向测量功能的效果。
图4是根据一示例性实施例示出的一种方向测量装置的框图,如图4所示,方向测量装置可以但不限于应用于包括摄像头和指南针APP的终端中,包括:实景获取模块301、方向测量模块302和方向显示模块303。
该实景获取模块301被配置为,用于当终端运行指南针APP时,启动摄像头,通过摄像头获取实景;
该方向测量模块302被配置为,用于根据指南针APP确定摄像头的正对方向;
该方向显示模块303被配置为,用于在实景获取模块301获取到的实景中显示方向测量模块302测得的正对方向。
可选的,实景获取模块301,包括:倾斜检测单元3011和实景获取单元3012;
该倾斜检测单元3011被配置为,用于当终端运行指南针APP时,检测终端是否处于倾斜状态;
该实景获取单元3012被配置为,用于在倾斜检测单元3011检测出终端处于倾斜状态时,启动摄像头,通过摄像头获取实景。
可选的,倾斜检测单元3011,包括:角度测量子单元30111、角度检测子单元30112和倾斜确定子单元30113;
该角度测量子单元30111被配置为,用于通过终端中的方向传感器测量终端与水平面之间的倾斜角度;
该角度检测子单元30112被配置为,用于检测角度测量子单元30111测得的倾斜角度是否属于预设的角度范围;
该倾斜确定子单元30113被配置为,用于在角度检测子单元30112检测出倾斜角度属于角度范围时,确定终端处于倾斜状态。
可选的,方向测量模块302,包括:参数确定单元3021和方向测量单元3022;
该参数确定单元3021被配置为,用于确定终端的姿态,以及,通过指南针APP确定终端的各个方向;
该方向测量单元3022被配置为,用于根据参数确定单元3021确定的终端的姿态和终端的各个方向确定摄像头的正对方向。
可选的,装置,还包括:方向确定模块304和第一显示模块305;
该方向确定模块304被配置为,用于根据正对方向确定其它方向,其它方向包括与正对方向相反的方向和与正对方向垂直的方向;
该第一显示模块305被配置为,用于将方向确定模块304确定的其它方向对应显示在显示界面中。
可选的,装置,还包括:方向设置模块306、角度计算模块307和第二显示模块308;
该方向设置模块306被配置为,用于预先设定基准方向;
该角度计算模块307被配置为,用于计算测得的正对方向相对于方向设置模块306设置的基准方向的偏转角度;
该第二显示模块308被配置为,用于将角度计算模块307计算得到的偏转角度显示在显示界面中。
综上所述,本公开提供的方向测量装置,通过当终端运行指南针APP时,启动摄像头,通过摄像头获取实景;根据指南针APP确定摄像头的正对方向;在实景中显示正对方向,可以将摄像头的正对方向作为实景方向直接显示在实景中,解决了终端无法向用户提供现实场景中的方向的问题,达到了扩展终端的方向测量功能的效果。
另外,通过预先设定基准方向;计算测得的正对方向相对于基准方向的偏转角度;将偏转角度显示在显示界面中,可以根据设置的基准方向和显示的偏转角度确定实景的物体方向,达到了进一步扩展终端的方向测量功能的效果。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开一示例性实施例提供了一种终端,能够实现本公开提供的方向测量方法,该终端包括:处理器、用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;
根据所述指南针APP确定所述摄像头的正对方向;
在所述实景中显示所述正对方向。
关于上述实施例中的终端,其中处理器执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图5是根据一示例性实施例示出的一种用于方向测量装置500的框图。例如,装置500可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)的接口512,传感器组件514,以及通信组件516。
处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器518来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。
存储器504被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。
多媒体组件508包括在所述装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以 是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如所述组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器518执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (13)

  1. 一种方向测量方法,其特征在于,包括:
    当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;
    根据所述指南针APP确定所述摄像头的正对方向;
    在所述实景中显示所述正对方向。
  2. 根据权利要求1所述的方法,其特征在于,所述当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景,包括:
    当所述终端运行所述指南针APP时,检测所述终端是否处于倾斜状态;
    若检测出所述终端处于倾斜状态,则启动所述摄像头,通过所述摄像头获取所述实景。
  3. 根据权利要求2所述的方法,其特征在于,所述检测所述终端是否处于倾斜状态,包括:
    测量所述终端与水平面之间的倾斜角度;
    检测所述倾斜角度是否属于预设的角度范围;
    若检测出所述倾斜角度属于所述角度范围,则确定所述终端处于倾斜状态。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述指南针APP确定所述摄像头的正对方向,包括:
    确定所述终端的姿态,以及,通过所述指南针APP确定所述终端的各个方向;
    根据所述终端的姿态和所述终端的各个方向确定所述摄像头的正对方向。
  5. 根据权利要求4所述的方法,其特征在于,所述方法,还包括:
    根据所述正对方向确定其它方向,所述其它方向包括与所述正对方向相反的方向和与所述正对方向垂直的方向;
    将所述其它方向对应显示在所述显示界面中。
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述方法,还包括:
    预先设定基准方向;
    计算测得的所述正对方向相对于所述基准方向的偏转角度;
    将所述偏转角度显示在所述显示界面中。
  7. 一种方向测量装置,其特征在于,包括:
    实景获取模块,用于当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;
    方向测量模块,用于根据所述指南针APP确定所述摄像头的正对方向;
    方向显示模块,用于在所述实景获取模块获取到的所述实景中显示所述方向测量模块测得的所述正对方向。
  8. 根据权利要求7所述的装置,其特征在于,所述实景获取模块,包括:
    倾斜检测单元,用于当所述终端运行所述指南针APP时,检测所述终端是否处于倾斜状态;
    实景获取单元,用于在所述倾斜检测单元检测出所述终端处于倾斜状态时,启动所述摄像头,通过所述摄像头获取所述实景。
  9. 根据权利要求8所述的装置,其特征在于,所述倾斜检测单元,包括:
    角度测量子单元,用于通过所述终端中的方向传感器测量所述终端与水平面之间的倾斜角度;
    角度检测子单元,用于检测所述角度测量子单元测得的所述倾斜角度是否属于预设的角度范围;
    倾斜确定子单元,用于在所述角度检测子单元检测出所述倾斜角度属于所述角度范围时,确定所述终端处于倾斜状态。
  10. 根据权利要求7所述的装置,其特征在于,所述方向测量模块,包括:
    参数确定单元,用于确定所述终端的姿态,以及,通过所述指南针APP确定所述终端的各个方向;
    方向测量单元,用于根据所述参数确定单元确定的所述终端的姿态和所述终端的各个方向确定所述摄像头的正对方向。
  11. 根据权利要求10所述的装置,其特征在于,所述装置,还包括:
    方向确定模块,用于根据所述正对方向确定其它方向,所述其它方向包括与所述正对方向相反的方向和与所述正对方向垂直的方向;
    第一显示模块,用于将所述方向确定模块确定的所述其它方向对应显示在所述显示界面中。
  12. 根据权利要求7至11任一项所述的装置,其特征在于,所述装置,还包括:
    方向设置模块,用于预先设定基准方向;
    角度计算模块,用于计算测得的所述正对方向相对于所述方向设置模块设置的所述基准方向的偏转角度;
    第二显示模块,用于将所述角度计算模块计算得到的所述偏转角度显示在所述显示界面中。
  13. 一种终端,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    当终端运行指南针APP时,启动摄像头,通过所述摄像头获取实景;
    根据所述指南针APP确定所述摄像头的正对方向;
    在所述实景中显示所述正对方向。
PCT/CN2014/089324 2014-05-27 2014-10-23 方向测量方法、装置及终端 Ceased WO2015180392A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
BR112015000113A BR112015000113A2 (pt) 2014-05-27 2014-10-23 método e aparelho para medir direção e terminal
MX2015000198A MX358915B (es) 2014-05-27 2014-10-23 Método y aparato para medir dirección y terminal.
KR1020147035878A KR20160000398A (ko) 2014-05-27 2014-10-23 방향 측정 방법, 장치, 단말기, 프로그램 및 기록매체
JP2016522262A JP2016529766A (ja) 2014-05-27 2014-10-23 方向測定方法、装置、端末、プログラム、及び記憶媒体
RU2014154154A RU2618949C2 (ru) 2014-05-27 2014-10-23 Способ и аппарат для измерения направления и терминал
US14/613,320 US20150345944A1 (en) 2014-05-27 2015-02-03 Method, apparatus, and terminal for measuring direction

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410227627.0A CN104199640B (zh) 2014-05-27 2014-05-27 方向测量方法、装置及终端
CN201410227627.0 2014-05-27

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/613,320 Continuation US20150345944A1 (en) 2014-05-27 2015-02-03 Method, apparatus, and terminal for measuring direction

Publications (1)

Publication Number Publication Date
WO2015180392A1 true WO2015180392A1 (zh) 2015-12-03

Family

ID=52084937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089324 Ceased WO2015180392A1 (zh) 2014-05-27 2014-10-23 方向测量方法、装置及终端

Country Status (10)

Country Link
US (1) US20150345944A1 (zh)
EP (1) EP2950183B1 (zh)
JP (1) JP2016529766A (zh)
KR (1) KR20160000398A (zh)
CN (1) CN104199640B (zh)
BR (1) BR112015000113A2 (zh)
ES (1) ES2966687T3 (zh)
MX (1) MX358915B (zh)
RU (1) RU2618949C2 (zh)
WO (1) WO2015180392A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110986880B (zh) * 2019-12-11 2022-02-15 微民保险代理有限公司 方向检测方法、装置、计算机可读存储介质及移动终端
EP4343455A4 (en) 2021-08-10 2024-10-30 Samsung Electronics Co., Ltd. ELECTRONIC DEVICE AND ASSOCIATED OPERATING METHOD

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220415A (zh) * 2013-03-28 2013-07-24 东软集团(上海)有限公司 一对一手机实景位置跟踪方法和系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL169934A (en) * 2005-07-27 2013-02-28 Rafael Advanced Defense Sys Real-time geographic information system and method
JP4816748B2 (ja) * 2009-03-06 2011-11-16 ソニー株式会社 ナビゲーション装置及びナビゲーション方法
WO2011063034A1 (en) * 2009-11-17 2011-05-26 Rtp, Llc Systems and methods for augmented reality
JP4910061B2 (ja) * 2010-06-18 2012-04-04 株式会社東芝 情報端末、そのプログラムおよび方法
RU2475968C1 (ru) * 2011-06-28 2013-02-20 Федеральное государственное унитарное предприятие "Государственный космический научно-производственный центр имени М.В. Хруничева" (ФГУП "ГКНПЦ им. М.В. Хруничева") Многофункциональный мобильный комплекс обеспечения потребителей мониторинговой информацией (мкопми)
JP2013038734A (ja) * 2011-08-11 2013-02-21 Nikon Corp 画像記録装置
JP6010925B2 (ja) * 2012-02-29 2016-10-19 カシオ計算機株式会社 撮影装置、撮影制御方法及びプログラム
KR101923929B1 (ko) * 2012-06-06 2018-11-30 삼성전자주식회사 증강 현실 서비스를 제공하는 이동통신 단말기 및 증강 현실 서비스에 대한 화면으로의 화면 전환 방법
CN103677220B (zh) * 2012-08-30 2019-05-07 百度在线网络技术(北京)有限公司 一种自动开启实景地图的方法及具有该功能的移动终端
CN103398658A (zh) * 2013-07-01 2013-11-20 李雄 用于空间物体测量的手机装置

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220415A (zh) * 2013-03-28 2013-07-24 东软集团(上海)有限公司 一对一手机实景位置跟踪方法和系统

Also Published As

Publication number Publication date
RU2618949C2 (ru) 2017-05-12
US20150345944A1 (en) 2015-12-03
ES2966687T3 (es) 2024-04-23
EP2950183A1 (en) 2015-12-02
MX358915B (es) 2018-09-07
BR112015000113A2 (pt) 2017-06-27
CN104199640A (zh) 2014-12-10
MX2015000198A (es) 2016-03-03
JP2016529766A (ja) 2016-09-23
CN104199640B (zh) 2017-05-10
KR20160000398A (ko) 2016-01-04
EP2950183B1 (en) 2023-10-04
RU2014154154A (ru) 2016-08-20

Similar Documents

Publication Publication Date Title
KR101685277B1 (ko) 각도 측정 방법, 장치, 단말기, 프로그램 및 기록매체
CN105159640B (zh) 显示界面旋转方法、装置和移动终端
WO2016110145A1 (zh) 屏幕亮度设置方法及装置
WO2019080614A1 (zh) 防止终端误触的方法及装置
CN107202574B (zh) 运动轨迹信息修正方法及装置
CN106790043B (zh) 直播应用中发送消息的方法及装置
CN107576321A (zh) 确定磁方位角的方法、装置及移动终端
WO2017012269A1 (zh) 通过图像确定空间参数的方法、装置及终端设备
CN107820024B (zh) 图像拍摄方法、装置及存储介质
US9897439B2 (en) Method and terminal for measuring angle
CN106503682B (zh) 视频数据中的关键点定位方法及装置
KR20150124371A (ko) 이미지 표시 방법, 장치, 프로그램 및 기록매체
WO2016045323A1 (zh) 控制视频画面呈现的方法及装置
CN107454204B (zh) 用户信息标注方法及装置
CN108020374B (zh) 气压值确定方法及装置
CN106502522A (zh) 移动终端的操作控制方法及装置
US9619016B2 (en) Method and device for displaying wallpaper image on screen
CN106289161A (zh) 高度测量方法及装置
WO2015180392A1 (zh) 方向测量方法、装置及终端
CN106055093A (zh) 旋转图片的方法及装置
CN106790953B (zh) 信息拦截方法及装置
CN106569725A (zh) 为智能眼镜提供输入的方法、装置及触摸设备
CN105446573B (zh) 显示方向的方法及装置
CN106959875B (zh) 前置摄像头的打开方法、装置及设备
CN110060355B (zh) 界面显示方法、装置、设备及存储介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016522262

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20147035878

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/000198

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2014154154

Country of ref document: RU

Kind code of ref document: A

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

Ref document number: 14893207

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015000113

Country of ref document: BR

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14893207

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 112015000113

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20150105