WO2013189279A1 - Determination method and device for movement information about terminal - Google Patents

Determination method and device for movement information about terminal Download PDF

Info

Publication number
WO2013189279A1
WO2013189279A1 PCT/CN2013/077397 CN2013077397W WO2013189279A1 WO 2013189279 A1 WO2013189279 A1 WO 2013189279A1 CN 2013077397 W CN2013077397 W CN 2013077397W WO 2013189279 A1 WO2013189279 A1 WO 2013189279A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
camera
motion information
image
reference object
Prior art date
Application number
PCT/CN2013/077397
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Priority to KR1020157001080A priority Critical patent/KR20150023775A/en
Publication of WO2013189279A1 publication Critical patent/WO2013189279A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • G06T7/248Analysis of motion using feature-based methods, e.g. the tracking of corners or segments involving reference images or patches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/254Analysis of motion involving subtraction of images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for determining terminal motion information.
  • BACKGROUND OF THE INVENTION With the advancement of smart phone technology and the rapid development and popularity of smart phone applications, the number of users using smart phones is increasing, and mobile phones are more than just a simple communication tool. Due to the various needs of the application on the smartphone and the development of sensor technology, the sensors integrated on the smartphone are also becoming more and more abundant, such as gravity sensors, acceleration sensors, gyroscopes, proximity sensors, light sensors and the like.
  • the gravity sensor on the smartphone can calculate the tilt angle of the mobile device relative to the horizontal plane by measuring the gravitational acceleration due to gravity. By analyzing the dynamic acceleration, you can analyze the direction of the mobile phone movement.
  • the present invention provides a method and apparatus for determining terminal motion information to solve at least the above problems.
  • a method for determining terminal motion information comprising: analyzing a plurality of images captured by a camera; and determining motion information of the terminal according to the analysis result.
  • the method may further include: selecting the camera for capturing the plurality of images; and determining an imaging mode of the camera according to the motion information of the terminal obtained.
  • Determining the shooting mode of the camera according to the motion information of the terminal to be obtained may include: when the motion information is the rotation information of the terminal, the reference object in the image captured by the camera is compared with the reference image in the previous captured image. The rotation information of the terminal is determined by the angle at which the reference object deviates. In the case where the angle of the above deviation exceeds the threshold, the screen of the above terminal can be rotated.
  • Determining the shooting mode of the camera according to the motion information of the terminal to be obtained may include: when the motion information is the moving direction information of the terminal, the reference object in the image captured by the camera is compared with the previous captured image The angle at which the reference object is deviated, and the time difference between the image captured by the camera and the previously captured image determine the moving direction information of the terminal. In the case where the angle of the above deviation exceeds the threshold and the time difference is less than the preset time difference, the screen of the terminal may be transformed.
  • the above threshold may be between 0 and 90 degrees.
  • a device for determining terminal motion information comprising: an image analysis module configured to analyze a plurality of images captured by a camera; and a motion information determining module configured to be according to the image analysis module The analysis results determine the motion information of the terminal.
  • the device may further include: a camera selection module configured to select a camera for capturing the plurality of images; and a shooting mode determining module configured to determine a shooting mode of the camera according to the motion information of the terminal obtained as needed.
  • the shooting mode determining module may include: a first imaging mode determining unit configured to: when the motion information is the rotation information of the terminal, the reference object in the image captured by the camera is compared with the reference in the previous captured image The angle of the object deviation determines the rotation information of the above terminal.
  • the photographing mode determining module may include: a second photographing mode determining unit configured to: in a case where the motion information is the moving direction information of the terminal, the reference object in the image photographed by the camera is relative to the foregoing in the previously photographed image The moving direction information of the terminal is determined by the angle at which the reference object is deviated, and the time difference between the image captured by the camera and the previously captured image.
  • the plurality of images captured by the camera are first analyzed, and then the motion information of the terminal is determined according to the analysis result, which solves the problems of high cost, large area and complicated design of the gravity sensor on the smart mobile terminal in the related art.
  • the use of software technology to realize the function of the virtual gravity sensor not only satisfies the requirements of the upper layer application (APP) for the function of the gravity sensor, but also saves the hardware cost and reduces the board area.
  • APP upper layer application
  • FIG. 1 is a flowchart of a method for determining terminal motion information according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an implementation process for using a Camera virtual G-sensor function according to an embodiment of the present invention
  • FIG. 3 is a flowchart according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing a structure of a device for determining terminal motion information according to an embodiment of the present invention
  • FIG. 5 is a block diagram showing a specific structure of a device for determining motion information of a terminal according to an embodiment of the present invention
  • 6 is a schematic structural diagram of a virtual G-sensor function of a Camera according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a structure implementation process of a virtual G-sensor function according to an embodiment of the present invention.
  • image processing and pattern recognition technologies are increasingly mature.
  • the depth information can be restored according to the reference scene image data acquired from the camera to determine the moving direction of the carrier where the camera is located, and the three-dimensional pose of the camera relative to the reference scene can be calculated in real time.
  • image processing and pattern recognition technology provide algorithmic technical support for implementing a camera instead of a gravity sensor (G-sensor).
  • G-sensor gravity sensor
  • mobile phone chip technology is also developing rapidly, and multi-core processors are gradually becoming mainstream.
  • the powerful processing capability provides hardware support for implementing complex algorithms on mobile phones. Based on this, an embodiment of the present invention provides a method and an apparatus for determining terminal motion information. The details will be described below by way of examples.
  • the embodiment provides a method for determining terminal motion information, and a flowchart for determining a terminal motion information, as shown in FIG. 1.
  • the method includes the following steps (step S102 - step S104): Step S102, analyzing the camera shooting a plurality of images; Step S104, determining motion information of the terminal according to the analysis result.
  • Step S102 analyzing the camera shooting a plurality of images
  • Step S104 determining motion information of the terminal according to the analysis result.
  • the software technology realizes the function of the virtual gravity sensor, which not only satisfies the requirement of the upper layer APP for the gravity sensor function, but also saves the hardware cost and reduces the single board area.
  • the motion information of the terminal there may be multiple kinds of motion information, for example, when the mobile phone is rotated, a corresponding rotating mobile phone screen is needed to improve the user's experience. Or, when the terminal moves faster, the page can be flipped. For example, when the user scrolls through the mobile phone album, if the mobile phone is swung right, the next photo of the current photo can be flipped, if the mobile phone is swung to the left quickly , you can flip to the previous photo of the current photo, etc. Of course, there are other different situations, which are not listed here.
  • the method for determining the shooting mode of the camera is determined according to the motion information of the terminal, and the present embodiment provides a preferred implementation manner, that is, the motion information is the rotation information of the terminal.
  • the rotation information of the terminal is determined based on the angle at which the reference object in the image captured by the camera deviates from the reference object in the previously captured image. And, when the angle of the above deviation exceeds the threshold, the screen of the terminal is rotated.
  • the threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees. Setting the accuracy of a calibration ⁇ ° means that the screen of the terminal will be rotated only when the phone is rotated to ⁇ ° relative to the reference object.
  • the motion information is the movement direction information of the terminal
  • an angle of deviation of the reference object in the image captured by the camera with respect to the reference object in the previous captured image, and a time difference between the image captured by the camera and the previously captured image Determine the direction of movement of the terminal.
  • the angle of the deviation exceeds the threshold and the time difference is less than the preset time difference
  • the screen of the terminal is transformed.
  • the threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees.
  • Step S202 a mobile phone user from a home interface (home Interface) Go to the phone settings menu and select Enable virtual G-sensor in the setup menu. All Camera columns currently integrated on the phone are listed in the settings menu. Table, select the Camera device to replace the G-sensor function.
  • Step S204 after the virtual G-sensor function is turned on in the setting menu, click the virtual G-sensor calibration in the setting menu.
  • the accuracy of the calibration can be set to generally range from 0° to 90°. Setting the accuracy of a calibration ⁇ ° means that only when the mobile phone is rotated to ⁇ ° relative to the reference object, a mobile recognition result is reported to the upper layer.
  • Step S206 after setting the calibration accuracy, click Start Calibration in the menu. At this time, the camera that has been selected to replace the G-sensor function needs to be calibrated to the reference object.
  • the identified reference image data is stored as a reference image for the virtual G-sensor to recognize the mobile phone movement mode.
  • the calibration will be prompted.
  • Step S208 after the calibration is successful, the camera that replaces the G-sensor function can be aligned with the reference object to perform the virtual G-sensor. If you need to replace the Camera that replaces the G-sensor function or replace the reference object, you can reselect and calibrate.
  • Step S210 after the virtual G-sensor function is turned on, select to turn on the automatic rotation screen in the setting menu, and the virtual G-sensor analyzes and compares the identified reference object with the stored standard reference object.
  • FIG. 3 is a schematic diagram of a virtual G-sensor setting window according to an embodiment of the present invention. As shown in FIG. 3, Cameral, Camera2, and the like are listed in the Camera list, and a suitable Camera can be selected therefrom.
  • the virtual G- SenSO r, calibration accuracy [0°-90°], auto-rotate screen options are listed on the left side of the window, and the options are set on the right side of the window: On/Off, Start Calibration, On/Off.
  • the embodiment provides a device for determining terminal motion information, which is used to implement the above embodiment.
  • 4 is a structural block diagram of a device for determining terminal motion information according to an embodiment of the present invention. As shown in FIG. 4, the device includes: an image analysis module 10 and a motion information determination module 20. The structure will be described below.
  • the image analysis module 10 is configured to analyze a plurality of images captured by the camera;
  • the motion information determining module 20 is coupled to the image analyzing module 10 and configured to be according to the image analyzing module described above.
  • the analysis result of 10 determines the motion information of the terminal.
  • the image analysis module 10 first analyzes a plurality of images captured by the camera, and then the motion information determining module 20 determines the motion information of the terminal according to the analysis result, and solves the high cost and area of the gravity sensor on the smart mobile terminal in the related art.
  • Larger, more complex design problems, using software technology to achieve the function of the virtual gravity sensor not only meet the needs of the upper layer APP for gravity sensor function, but also save hardware costs and reduce the board area.
  • the present embodiment provides a specific structural diagram of the terminal motion information determining apparatus shown in FIG. 5, which includes, in addition to the modules in FIG. 4, the camera selection module. 30 and the shooting mode determining module 40.
  • the structure will be described below.
  • the camera selection module 30 is configured to select a camera for capturing a plurality of images;
  • the shooting mode determining module 40 is coupled to the camera selecting module 30 and the image analyzing module 10, and is configured to determine the camera according to the motion information of the terminal obtained as needed.
  • Shooting method According to the motion information of the terminal, which is required to be determined, the image capturing mode of the camera is determined.
  • the shooting mode determining module 40 may include: a first shooting mode determining unit.
  • the motion information is the rotation information of the terminal
  • the rotation information of the terminal is determined based on the angle at which the reference object in the image captured by the camera is deviated from the reference object in the previous captured image. And, when the angle of the above deviation exceeds the threshold, the screen of the terminal is rotated.
  • the threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees. Setting the accuracy of a calibration ⁇ ° means that the screen of the terminal will be rotated only when the phone is rotated to ⁇ ° relative to the reference object.
  • the shooting mode determining module 40 may include: a second shooting mode determining unit configured to set the reference object in the image captured by the camera relative to the previous image in the previous captured image when the motion information is the moving direction information of the terminal.
  • the angle of deviation of the reference object, and the time difference between the image captured by the camera and the previously captured image determine the moving direction information of the terminal. And, in a case where the angle of the deviation exceeds the threshold and the time difference is less than the preset time difference, the screen of the terminal is transformed.
  • the threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees.
  • FIG. 6 is a schematic structural diagram of a virtual G-sensor function of a camera according to an embodiment of the present invention. As shown in FIG.
  • the function of the setting module is equivalent to the function of the shooting mode determining module in the above embodiment, and the setting module acquires the user setting. Parameters, including whether to turn on or off the virtual G- SenSO r, Camera list, calibration accuracy, whether to turn on the auto-rotate screen, etc.
  • the corresponding camera module also called Camera module, which is the camera for capturing images
  • the reference object will be obtained through the Camera module.
  • the image data, the calibration module generates standard reference image data based on the collected reference image data, and stores the calibrated standard reference in the reference database.
  • the function of the recognition algorithm module is equivalent to the functions of the image analysis module and the motion information determination module in the above embodiment, and the recognition algorithm module compares the image data collected from the Camera module with the reference object in the reference object database to calculate the acquisition. The data is offset from the position of the reference object, and then the movement direction of the mobile phone is determined, and the movement direction of the mobile phone is input into the movement direction management module of the mobile phone. Finally, the movement direction management module of the mobile phone reports the movement direction of the mobile phone to the registration use.
  • Virtual G-sensor application The application performs operations such as rotating the phone screen. Based on the structure of the virtual G-sensor function, this embodiment introduces the implementation process of the virtual G-sensor function of the Camera.
  • Step S702 is a flowchart of the structure implementation process of the virtual G-sensor function according to the embodiment of the present invention, such as As shown in FIG. 7, the flow includes the following steps (step S702 - step S720): Step S702, first, the setting module is opened. Step S704, selecting a Camera for implementing the virtual G-sensor in the Camera list in the setting module. In step S706, the virtual G-sensor is turned on in the setting module, and the selected camera is automatically opened after the virtual G-sensor is turned on. In step S708, the calibration accuracy is set in the setting module, and the precision can be set between 0° and 90°. Step S710, click to start calibration, and generate a standard reference object image according to the image data collected by the Camera.
  • Step S712 the standard reference object picture is stored in the reference object database.
  • Step S714 the recognition algorithm analyzes and recognizes the moving angle of the current mobile phone according to the standard reference object picture in the reference object database and the image data collected from the Camera.
  • the upper layer application performs a corresponding operation of rotating the mobile phone screen. For example, when the phone is turned from vertical to landscape, the screen orientation will rotate following the rotation of the phone.
  • the present invention uses the Camera to realize the recognition of the mobile phone's own mobile mode without integrating the G-sensor, and feeds the recognition result to the application layer, and the application layer performs the corresponding operation.
  • the invention utilizes software technology to realize the functions of other sensors, reduces the hardware cost, reduces the hardware board area, and simplifies the single board design.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

Disclosed are a determination method and device for movement information about a terminal. The method comprises: analyzing a plurality of images shot by a camera; and determining the movement information about a terminal according to the analysis result. Through the present invention, a plurality of images shot by a camera are analyzed first, and then the movement information about a terminal is determined according to the analysis result, and therefore the problems of relatively high cost, relatively large volume and relatively complicated design of a gravity sensor on an intelligent mobile terminal in the related art are solved. The function of a virtual gravity sensor is achieved by using the software technology; the demand of an upper APP for the function of the gravity sensor is met, the cost of the hardware is saved, and the area of the single board is reduced.

Description

终端运动信息的确定方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种终端运动信息的确定方法及装置。 背景技术 随着智能手机技术的进步, 以及智能手机应用的飞速发展和普及, 使用智能手机 的用户日益增加, 手机已经不仅仅是个简单的通信工具。 由于智能手机上应用的各种 需求及传感器技术的发展, 使得在智能手机上集成的传感器也越来越丰富, 例如重力 感应器、 加速度传感器、 陀螺仪、 接近传感器、 光线感应器等等。 智能手机上的重力 感应器通过测量由于重力引起的重力加速度, 可以计算出移动设备相对于水平面的倾 斜角度。 通过分析动态加速度, 可以分析出手机移动的方向。 由于手机上集成了如此 众多的传感器, 硬件成本在不断升高, 硬件单板面积也更大, 单板设计也变的更加复 杂。 针对相关技术中智能移动终端上的重力感应器成本较高、 面积较大、 设计较复杂 的问题, 目前尚未提出有效的解决方案。 发明内容 针对相关技术中智能移动终端上的重力感应器成本较高、 面积较大、 设计较复杂 的问题, 本发明提供了一种终端运动信息的确定方法及装置, 以至少解决上述问题。 根据本发明的一个方面, 提供了一种终端运动信息的确定方法, 该方法包括: 分 析摄像头拍摄的多个图像; 根据分析结果确定终端的运动信息。 分析上述摄像头拍摄的上述多个图像之前, 上述方法还可以包括: 选择用于拍摄 上述多个图像的上述摄像头; 根据需要得到的上述终端的运动信息, 确定上述摄像头 的拍摄方式。 根据需要得到的上述终端的运动信息, 确定上述摄像头的拍摄方式可以包括: 在 上述运动信息为上述终端的旋转信息的情况下, 根据上述摄像头拍摄的图像中的参照 物相对于之前拍摄图像中的上述参照物偏离的角度, 确定上述终端的旋转信息。 在上述偏离的角度超过阈值的情况下, 可以对上述终端的屏幕进行旋转。 根据需要得到的上述终端的运动信息, 确定上述摄像头的拍摄方式可以包括: 在 上述运动信息为上述终端的移动方向信息的情况下, 根据上述摄像头拍摄的图像中的 参照物相对于之前拍摄图像中的上述参照物偏离的角度, 以及上述摄像头拍摄的图像 与之前拍摄图像的时间差, 确定上述终端的移动方向信息。 在上述偏离的角度超过阈值以及上述时间差小于预设时间差的情况下, 可以对上 述终端的屏幕进行变换。 上述阈值可以在 0度到 90度之间。 根据本发明的另一方面, 提供了一种终端运动信息的确定装置, 该装置包括: 图 像分析模块, 设置为分析摄像头拍摄的多个图像; 运动信息确定模块, 设置为根据上 述图像分析模块的分析结果确定终端的运动信息。 上述装置还可以包括: 摄像头选择模块, 设置为选择用于拍摄上述多个图像的摄 像头; 拍摄方式确定模块, 设置为根据需要得到的上述终端的运动信息, 确定上述摄 像头的拍摄方式。 上述拍摄方式确定模块可以包括: 第一拍摄方式确定单元, 设置为在上述运动信 息为上述终端的旋转信息的情况下, 根据上述摄像头拍摄的图像中的参照物相对于之 前拍摄图像中的上述参照物偏离的角度, 确定上述终端的旋转信息。 上述拍摄方式确定模块可以包括: 第二拍摄方式确定单元, 设置为在上述运动信 息为上述终端的移动方向信息的情况下, 根据上述摄像头拍摄的图像中的参照物相对 于之前拍摄图像中的上述参照物偏离的角度, 以及上述摄像头拍摄的图像与之前拍摄 图像的时间差, 确定上述终端的移动方向信息。 通过本发明, 首先分析摄像头拍摄的多个图像, 然后根据分析结果确定终端的运 动信息, 解决了相关技术中智能移动终端上的重力感应器成本较高、 面积较大、 设计 较复杂的问题, 利用软件技术实现虚拟重力传感器的功能, 既满足了上层应用 (APP) 对重力传感器功能的需求, 又节约了硬件成本、 减小了单板面积。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据本发明实施例的终端运动信息的确定方法的流程图; 图 2是根据本发明实施例的用 Camera虚拟 G-sensor功能的实现过程的流程图; 图 3是根据本发明实施例的虚拟 G-sensor设置窗口的示意图; 图 4是根据本发明实施例的终端运动信息的确定装置的结构框图; 图 5是根据本发明实施例的终端运动信息的确定装置的具体结构框图; 图 6是根据本发明实施例的 Camera的虚拟 G-sensor功能的结构示意图; 图 7是根据本发明实施例的虚拟 G-sensor功能的结构实现过程的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 相关技术中, 图像处理及模式识别技术日益成熟, 例如能够根据从摄像头获取的 参考场景图像数据来恢复深度信息, 以确定摄像头所在载体的移动方向, 实时计算摄 像头相对于参考场景的三维位姿等。 因此, 图像处理及模式识别技术为实现用摄像头 (Camera)替代重力传感器(Gravity sensor, 简称为 G-sensor)提供了算法技术支撑。 并且, 手机芯片技术也在快速发展, 多核处理器逐渐成为主流, 强劲的处理能力为在 手机上实现复杂算法提供了硬件支撑。 基于此, 本发明实施例提供了一种终端运动信 息的确定方法及装置。 下面通过实施例进行详细说明。 本实施例提供了一种终端运动信息的确定方法, 如图 1所示的终端运动信息的确 定方法的流程图, 该方法包括以下步骤 (步骤 S102-步骤 S104): 步骤 S102, 分析摄像头拍摄的多个图像; 步骤 S104, 根据分析结果确定终端的运动信息。 通过上述方法, 首先分析摄像头拍摄的多个图像, 然后根据分析结果确定终端的 运动信息, 解决了相关技术中智能移动终端上的重力感应器成本较高、 面积较大、 设 计较复杂的问题, 利用软件技术实现虚拟重力传感器的功能, 既满足了上层 APP对重 力传感器功能的需求, 又节约了硬件成本、 减小了单板面积。 在分析摄像头拍摄的图像之前, 需要在移动终端的摄像头列表中选择合适的摄像 头, 具体如何选择摄像头可以根据实际情况确定。 在选择出合适的摄像头之后, 需要 确定拍摄方式, 例如可以根据需要得到的终端的运动信息来确定。 因此, 本实施例提 供了一种优选实施方式, 即在分析摄像头拍摄的图像之前, 上述方法还包括: 选择用 于拍摄多个图像的摄像头; 根据需要得到的终端的运动信息, 确定上述摄像头的拍摄 方式。 对于需要得到的终端的运动信息而言, 可能有多种运动信息, 例如在手机被旋转 时, 需要对应的旋转手机屏幕, 以提高用户的体验度。 或者, 在终端移动速度较快时, 可以翻转页面, 例如用户在翻看手机相册时, 如果快速的向右晃动手机, 就可以翻转 到当前照片的下一张照片, 如果快速的向左晃动手机, 就可以翻转到当前照片的前一 张照片等。 当然, 还存在其他不同的情况, 在此不再一一列举。 基于上述几种情况, 根据需要得到的上述终端的运动信息确定上述摄像头的拍摄 方式, 可以有多种实现方式, 本实施例提供了一种优选实施方式, 即在运动信息为终 端的旋转信息的情况下, 根据摄像头拍摄的图像中的参照物相对于之前拍摄图像中的 参照物偏离的角度, 确定终端的旋转信息。 并且, 在上述偏离的角度超过阈值的情况 下, 对终端的屏幕进行旋转。 其中, 该阈值即校准精度, 该阈值可以设置在 0度到 90 度之间。 设置一个校准的精确度 α°, 是指只有当手机相对于参照物旋转到了 α°, 会将 终端的屏幕进行旋转。 或者, 在运动信息为终端的移动方向信息的情况下, 根据摄像头拍摄的图像中的 参照物相对于之前拍摄图像中的参照物偏离的角度, 以及上述摄像头拍摄的图像与之 前拍摄图像的时间差, 确定终端的移动方向信息。 并且, 在上述偏离的角度超过阈值 以及上述时间差小于预设时间差的情况下, 对终端的屏幕进行变换。 其中, 该阈值即 校准精度, 该阈值可以设置在 0度到 90度之间。 下面结合优选实施例和附图对上述实施例的实现过程进行详细说明。 本实施例用移动终端上的 Camera (摄像头) 来替代 G-sensor的功能, Camera打 开后, 会不断的抓取图像数据, 通过分析图像数据, 获取对手机自身移动方式的识别 结果, 然后将识别结果上报给需要使用 G-sensor功能的应用层, 应用层相应的进行旋 转显示内容的操作。 图 2是根据本发明实施例的用 Camera虚拟 G-sensor功能的实现 过程的流程图, 如图 2所示, 该方法包括 (步骤 S202-步骤 S212): 步骤 S202, 手机用户从主界面 (home界面) 进入手机设置菜单, 在设置菜单中 选择开启虚拟 G-sensor功能。 设置菜单中会列出目前在手机上集成的所有 Camera列 表, 选择用于替代 G-sensor功能的 Camera设备。 这样在开启虚拟 G-sensor功能后, 用于替代 G-sensor功能的 Camera也会自动打开。 步骤 S204, 在设置菜单中开启虚拟 G-sensor 功能后, 点击设置菜单中的虚拟 G-sensor校准。 可以设置校准的精确度的范围一般是从 0°到 90°。 设置一个校准的精 确度 α°, 是指只有当手机相对于参照物旋转到了 α°, 才会向上层上报一个移动识别结 果。 步骤 S206, 设置校准精度后, 点击菜单中的开始校准, 这个时候需要将已经选择 为替代 G-sensor功能的摄像头正对参照物进行校准。 校准时会将识别到的参照物图像 数据存储, 作为虚拟 G-sensor识别手机移动方式的基准图像。 校准结束后, 会提示校 准成功。 步骤 S208, 在校准成功后, 就可以将替代 G-sensor功能的摄像头对准参照物, 以 进行虚拟 G-sensor的使用。 如果需要更换替代 G-sensor功能的 Camera或者更换参照 物, 可以重新进行选择和校准。 步骤 S210, 在虚拟 G-sensor功能开启后, 在设置菜单中选择开启自动旋转屏幕, 虚拟 G-sensor根据识别到的参照物与存储的标准参照物进行分析对比。 步骤 S212, 将分析结果上报给需要使用 G-sensor功能的应用层, 应用层根据获取 到的手机自身移动方式信息, 旋转显示内容, 以达到与 G-sensor类似的根据重力感应 自动旋转屏幕的结果。 图 3是根据本发明实施例的虚拟 G-sensor设置窗口的示意图,如图 3所示, Camera 列表中列出了 Cameral、 Camera2等, 可以从中选择一个合适的 Camera。 窗口左侧列 出了虚拟 G-SenSOr、 校准精度 [0°-90°]、 自动旋转屏幕选项, 窗口右侧对应设置了选择 项: 开启 /关闭、 开始校准、 开启 /关闭。 用户可以在此设置窗口上设置相关的选项, 从 而实现用 Camera代替虚拟 G-sensor功能。 对应于上述终端运动信息的确定方法, 本实施例提供了一种终端运动信息的确定 装置, 该装置用于实现上述实施例。 图 4是根据本发明实施例的终端运动信息的确定 装置的结构框图, 如图 4所示, 该装置包括: 图像分析模块 10和运动信息确定模块 20。 下面对该结构进行说明。 图像分析模块 10, 设置为分析摄像头拍摄的多个图像; 运动信息确定模块 20, 耦合至图像分析模块 10, 设置为根据上述图像分析模块The present invention relates to the field of communications, and in particular to a method and apparatus for determining terminal motion information. BACKGROUND OF THE INVENTION With the advancement of smart phone technology and the rapid development and popularity of smart phone applications, the number of users using smart phones is increasing, and mobile phones are more than just a simple communication tool. Due to the various needs of the application on the smartphone and the development of sensor technology, the sensors integrated on the smartphone are also becoming more and more abundant, such as gravity sensors, acceleration sensors, gyroscopes, proximity sensors, light sensors and the like. The gravity sensor on the smartphone can calculate the tilt angle of the mobile device relative to the horizontal plane by measuring the gravitational acceleration due to gravity. By analyzing the dynamic acceleration, you can analyze the direction of the mobile phone movement. Since so many sensors are integrated on the mobile phone, the hardware cost is increasing, the hardware board area is larger, and the board design is more complicated. Aiming at the problems of high cost, large area and complicated design of the gravity sensor on the intelligent mobile terminal in the related art, an effective solution has not been proposed yet. SUMMARY OF THE INVENTION In view of the problems of high cost, large area, and complicated design of a gravity sensor on a smart mobile terminal in the related art, the present invention provides a method and apparatus for determining terminal motion information to solve at least the above problems. According to an aspect of the present invention, a method for determining terminal motion information is provided, the method comprising: analyzing a plurality of images captured by a camera; and determining motion information of the terminal according to the analysis result. Before analyzing the plurality of images captured by the camera, the method may further include: selecting the camera for capturing the plurality of images; and determining an imaging mode of the camera according to the motion information of the terminal obtained. Determining the shooting mode of the camera according to the motion information of the terminal to be obtained may include: when the motion information is the rotation information of the terminal, the reference object in the image captured by the camera is compared with the reference image in the previous captured image. The rotation information of the terminal is determined by the angle at which the reference object deviates. In the case where the angle of the above deviation exceeds the threshold, the screen of the above terminal can be rotated. Determining the shooting mode of the camera according to the motion information of the terminal to be obtained may include: when the motion information is the moving direction information of the terminal, the reference object in the image captured by the camera is compared with the previous captured image The angle at which the reference object is deviated, and the time difference between the image captured by the camera and the previously captured image determine the moving direction information of the terminal. In the case where the angle of the above deviation exceeds the threshold and the time difference is less than the preset time difference, the screen of the terminal may be transformed. The above threshold may be between 0 and 90 degrees. According to another aspect of the present invention, a device for determining terminal motion information is provided, the device comprising: an image analysis module configured to analyze a plurality of images captured by a camera; and a motion information determining module configured to be according to the image analysis module The analysis results determine the motion information of the terminal. The device may further include: a camera selection module configured to select a camera for capturing the plurality of images; and a shooting mode determining module configured to determine a shooting mode of the camera according to the motion information of the terminal obtained as needed. The shooting mode determining module may include: a first imaging mode determining unit configured to: when the motion information is the rotation information of the terminal, the reference object in the image captured by the camera is compared with the reference in the previous captured image The angle of the object deviation determines the rotation information of the above terminal. The photographing mode determining module may include: a second photographing mode determining unit configured to: in a case where the motion information is the moving direction information of the terminal, the reference object in the image photographed by the camera is relative to the foregoing in the previously photographed image The moving direction information of the terminal is determined by the angle at which the reference object is deviated, and the time difference between the image captured by the camera and the previously captured image. Through the invention, the plurality of images captured by the camera are first analyzed, and then the motion information of the terminal is determined according to the analysis result, which solves the problems of high cost, large area and complicated design of the gravity sensor on the smart mobile terminal in the related art. The use of software technology to realize the function of the virtual gravity sensor not only satisfies the requirements of the upper layer application (APP) for the function of the gravity sensor, but also saves the hardware cost and reduces the board area. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawing - 1 is a flowchart of a method for determining terminal motion information according to an embodiment of the present invention; FIG. 2 is a flowchart of an implementation process for using a Camera virtual G-sensor function according to an embodiment of the present invention; FIG. 3 is a flowchart according to an embodiment of the present invention. FIG. 4 is a block diagram showing a structure of a device for determining terminal motion information according to an embodiment of the present invention; FIG. 5 is a block diagram showing a specific structure of a device for determining motion information of a terminal according to an embodiment of the present invention; 6 is a schematic structural diagram of a virtual G-sensor function of a Camera according to an embodiment of the present invention; FIG. 7 is a flowchart of a structure implementation process of a virtual G-sensor function according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In the related art, image processing and pattern recognition technologies are increasingly mature. For example, the depth information can be restored according to the reference scene image data acquired from the camera to determine the moving direction of the carrier where the camera is located, and the three-dimensional pose of the camera relative to the reference scene can be calculated in real time. . Therefore, image processing and pattern recognition technology provide algorithmic technical support for implementing a camera instead of a gravity sensor (G-sensor). Moreover, mobile phone chip technology is also developing rapidly, and multi-core processors are gradually becoming mainstream. The powerful processing capability provides hardware support for implementing complex algorithms on mobile phones. Based on this, an embodiment of the present invention provides a method and an apparatus for determining terminal motion information. The details will be described below by way of examples. The embodiment provides a method for determining terminal motion information, and a flowchart for determining a terminal motion information, as shown in FIG. 1. The method includes the following steps (step S102 - step S104): Step S102, analyzing the camera shooting a plurality of images; Step S104, determining motion information of the terminal according to the analysis result. Through the above method, the plurality of images captured by the camera are first analyzed, and then the motion information of the terminal is determined according to the analysis result, which solves the problems of high cost, large area and complicated design of the gravity sensor on the smart mobile terminal in the related art. The software technology realizes the function of the virtual gravity sensor, which not only satisfies the requirement of the upper layer APP for the gravity sensor function, but also saves the hardware cost and reduces the single board area. Before analyzing the image taken by the camera, you need to select the appropriate camera in the camera list of the mobile terminal. How to select the camera can be determined according to the actual situation. After selecting a suitable camera, it is necessary to determine the shooting mode, for example, it can be determined according to the motion information of the terminal that needs to be obtained. Therefore, the embodiment provides a preferred embodiment, that is, before analyzing the image captured by the camera, the method further includes: selecting a camera for capturing a plurality of images; determining the camera according to the motion information of the terminal obtained as needed Shooting method. For the motion information of the terminal that needs to be obtained, there may be multiple kinds of motion information, for example, when the mobile phone is rotated, a corresponding rotating mobile phone screen is needed to improve the user's experience. Or, when the terminal moves faster, the page can be flipped. For example, when the user scrolls through the mobile phone album, if the mobile phone is swung right, the next photo of the current photo can be flipped, if the mobile phone is swung to the left quickly , you can flip to the previous photo of the current photo, etc. Of course, there are other different situations, which are not listed here. Based on the foregoing, the method for determining the shooting mode of the camera is determined according to the motion information of the terminal, and the present embodiment provides a preferred implementation manner, that is, the motion information is the rotation information of the terminal. In this case, the rotation information of the terminal is determined based on the angle at which the reference object in the image captured by the camera deviates from the reference object in the previously captured image. And, when the angle of the above deviation exceeds the threshold, the screen of the terminal is rotated. The threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees. Setting the accuracy of a calibration α° means that the screen of the terminal will be rotated only when the phone is rotated to α° relative to the reference object. Or, in a case where the motion information is the movement direction information of the terminal, an angle of deviation of the reference object in the image captured by the camera with respect to the reference object in the previous captured image, and a time difference between the image captured by the camera and the previously captured image, Determine the direction of movement of the terminal. And, in a case where the angle of the deviation exceeds the threshold and the time difference is less than the preset time difference, the screen of the terminal is transformed. The threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees. The implementation process of the above embodiment will be described in detail below in conjunction with the preferred embodiments and the accompanying drawings. In this embodiment, the Camera (camera) on the mobile terminal is used instead of the G-sensor function. After the camera is opened, the image data is continuously captured, and the image data is analyzed to obtain the recognition result of the mobile phone's own mobile mode, and then the recognition is performed. The result is reported to the application layer that needs to use the G-sensor function, and the application layer performs the operation of rotating the display content accordingly. 2 is a flowchart of an implementation process of using the Camera virtual G-sensor function according to an embodiment of the present invention. As shown in FIG. 2, the method includes (Step S202 - Step S212): Step S202, a mobile phone user from a home interface (home Interface) Go to the phone settings menu and select Enable virtual G-sensor in the setup menu. All Camera columns currently integrated on the phone are listed in the settings menu. Table, select the Camera device to replace the G-sensor function. In this way, after the virtual G-sensor function is turned on, the Camera used to replace the G-sensor function is also automatically turned on. Step S204, after the virtual G-sensor function is turned on in the setting menu, click the virtual G-sensor calibration in the setting menu. The accuracy of the calibration can be set to generally range from 0° to 90°. Setting the accuracy of a calibration α° means that only when the mobile phone is rotated to α° relative to the reference object, a mobile recognition result is reported to the upper layer. Step S206, after setting the calibration accuracy, click Start Calibration in the menu. At this time, the camera that has been selected to replace the G-sensor function needs to be calibrated to the reference object. At the time of calibration, the identified reference image data is stored as a reference image for the virtual G-sensor to recognize the mobile phone movement mode. After the calibration is completed, the calibration will be prompted. Step S208, after the calibration is successful, the camera that replaces the G-sensor function can be aligned with the reference object to perform the virtual G-sensor. If you need to replace the Camera that replaces the G-sensor function or replace the reference object, you can reselect and calibrate. Step S210, after the virtual G-sensor function is turned on, select to turn on the automatic rotation screen in the setting menu, and the virtual G-sensor analyzes and compares the identified reference object with the stored standard reference object. In step S212, the analysis result is reported to the application layer that needs to use the G-sensor function, and the application layer rotates the display content according to the obtained mobile phone mobile mode information to achieve the result of automatically rotating the screen according to gravity sensing similar to G-sensor. . FIG. 3 is a schematic diagram of a virtual G-sensor setting window according to an embodiment of the present invention. As shown in FIG. 3, Cameral, Camera2, and the like are listed in the Camera list, and a suitable Camera can be selected therefrom. The virtual G- SenSO r, calibration accuracy [0°-90°], auto-rotate screen options are listed on the left side of the window, and the options are set on the right side of the window: On/Off, Start Calibration, On/Off. Users can set related options on this setup window to implement the virtual G-sensor function instead of Camera. Corresponding to the method for determining the terminal motion information, the embodiment provides a device for determining terminal motion information, which is used to implement the above embodiment. 4 is a structural block diagram of a device for determining terminal motion information according to an embodiment of the present invention. As shown in FIG. 4, the device includes: an image analysis module 10 and a motion information determination module 20. The structure will be described below. The image analysis module 10 is configured to analyze a plurality of images captured by the camera; The motion information determining module 20 is coupled to the image analyzing module 10 and configured to be according to the image analyzing module described above.
10的分析结果确定终端的运动信息。 通过上述装置, 首先图像分析模块 10分析摄像头拍摄的多个图像,然后运动信息 确定模块 20根据分析结果确定终端的运动信息,解决了相关技术中智能移动终端上的 重力感应器成本较高、 面积较大、 设计较复杂的问题, 利用软件技术实现虚拟重力传 感器的功能, 既满足了上层 APP对重力传感器功能的需求, 又节约了硬件成本、 减小 了单板面积。 在分析摄像头拍摄的图像之前, 需要在移动终端的摄像头列表中选择合适的摄像 头, 具体如何选择摄像头可以根据实际情况确定。 在选择出合适的摄像头之后, 需要 确定拍摄方式, 例如可以根据需要得到的终端的运动信息来确定。 因此, 本实施例提 供了一种优选实施方式, 如图 5所示的终端运动信息的确定装置的具体结构框图, 该 装置除了包括上述图 4中的各个模块之外,还包括: 摄像头选择模块 30和拍摄方式确 定模块 40。 下面对该结构进行说明。 摄像头选择模块 30, 设置为选择用于拍摄多个图像的摄像头; 拍摄方式确定模块 40, 耦合至摄像头选择模块 30和图像分析模块 10, 设置为根 据需要得到的终端的运动信息, 确定上述摄像头的拍摄方式。 根据需要得到的上述终端的运动信息确定上述摄像头的拍摄方式, 可以有多种实 现方式, 本实施例提供了一种优选实施方式, 即上述拍摄方式确定模块 40可以包括: 第一拍摄方式确定单元, 设置为在运动信息为终端的旋转信息的情况下, 根据上述摄 像头拍摄的图像中的参照物相对于之前拍摄图像中的上述参照物偏离的角度, 确定终 端的旋转信息。并且, 在上述偏离的角度超过阈值的情况下, 对终端的屏幕进行旋转。 其中, 该阈值即校准精度, 该阈值可以设置在 0度到 90度之间。设置一个校准的精确 度 α°, 是指只有当手机相对于参照物旋转到了 α°, 会将终端的屏幕进行旋转。 或者, 上述拍摄方式确定模块 40可以包括: 第二拍摄方式确定单元, 设置为在运 动信息为终端的移动方向信息的情况下, 根据摄像头拍摄的图像中的参照物相对于之 前拍摄图像中的上述参照物偏离的角度, 以及上述摄像头拍摄的图像与之前拍摄图像 的时间差, 确定终端的移动方向信息。 并且, 在上述偏离的角度超过阈值以及上述时 间差小于预设时间差的情况下, 对终端的屏幕进行变换。 其中, 该阈值即校准精度, 该阈值可以设置在 0度到 90度之间。 图 6是根据本发明实施例的 Camera的虚拟 G-sensor功能的结构示意图, 如图 6 所示, 设置模块的功能与上述实施例中的拍摄方式确定模块的功能相当, 设置模块获 取用户设置的参数, 包括是否开启或关闭虚拟 G-SenSOr、 Camera列表、 校准精度、 是 否开启自动旋转屏幕等。从 Camera列表中选择了合适的 Camera,并开启虚拟 G-sensor 后, 相应的摄像头模组 (也称 Camera模组, 即用于拍摄图像的摄像头) 会自动打开, 通过 Camera模组获取参照物的图像数据, 校准模块根据采集到的参照物图像数据生 成标准的参照物图像数据, 将校准过后的标准参照物存入参照物数据库。 识别算法模块的功能与上述实施例中的图像分析模块和运动信息确定模块的功能 相当, 识别算法模块将从 Camera模组采集到的图像数据与参照物数据库中的参照物 进行对比, 计算出采集到的数据相对于参照物的位置角度偏移, 进而判断出手机的运 动方向, 将手机的运动方向输入手机的运动方向管理模块, 最后手机的运动方向管理 模块将手机的运动方向上报给注册使用虚拟 G-sensor的应用。 应用进行相应的旋转手 机屏幕等操作。 基于上述虚拟 G-sensor功能的结构, 本实施例对用 Camera虚拟 G-sensor功能的 实现过程进行介绍, 图 7是根据本发明实施例的虚拟 G-sensor功能的结构实现过程的 流程图, 如图 7所示, 该流程包括以下步骤 (步骤 S702-步骤 S720): 步骤 S702, 首先打开设置模块。 步骤 S704, 在设置模块中选择 Camera列表中用于实现虚拟 G-sensor的 Camera。 步骤 S706,在设置模块中开启虚拟 G-sensor,虚拟 G-sensor开启后已选中的 Camera 会自动打开。 步骤 S708, 在设置模块中设置校准精度, 精度可以设置在 0°到 90°之间。 步骤 S710, 点击开始校准, 根据 Camera采集的图像数据生成标准参照物图片。 步骤 S712, 将标准参照物图片存入参照物数据库。 步骤 S714, 识别算法根据参照物数据库中的标准参照物图片和从 Camera采集到 的图像数据, 分析识别出当前手机的移动角度。 步骤 S716, 实时管理更新手机的运动角度。 步骤 S718, 将运动角度更新反馈到上层应用。 步骤 S720, 上层应用进行相应的旋转手机屏幕的操作。 例如, 手机在从竖向转向 横向, 屏幕方向会跟随手机的转动而旋转。 从以上的描述中可以看出, 本发明在没有集成 G-sensor的情况下, 用 Camera来 实现对手机自身移动方式的识别, 并将识别结果反馈到应用层, 应用层执行相应的操 作。 本发明利用软件技术来实现另外一些传感器的功能, 降低了硬件成本, 减小了硬 件单板面积, 简化了单板设计。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The analysis result of 10 determines the motion information of the terminal. Through the above device, the image analysis module 10 first analyzes a plurality of images captured by the camera, and then the motion information determining module 20 determines the motion information of the terminal according to the analysis result, and solves the high cost and area of the gravity sensor on the smart mobile terminal in the related art. Larger, more complex design problems, using software technology to achieve the function of the virtual gravity sensor, not only meet the needs of the upper layer APP for gravity sensor function, but also save hardware costs and reduce the board area. Before analyzing the image taken by the camera, you need to select the appropriate camera in the camera list of the mobile terminal. How to select the camera can be determined according to the actual situation. After selecting a suitable camera, it is necessary to determine the shooting mode, for example, it can be determined according to the motion information of the terminal that needs to be obtained. Therefore, the present embodiment provides a specific structural diagram of the terminal motion information determining apparatus shown in FIG. 5, which includes, in addition to the modules in FIG. 4, the camera selection module. 30 and the shooting mode determining module 40. The structure will be described below. The camera selection module 30 is configured to select a camera for capturing a plurality of images; the shooting mode determining module 40 is coupled to the camera selecting module 30 and the image analyzing module 10, and is configured to determine the camera according to the motion information of the terminal obtained as needed. Shooting method. According to the motion information of the terminal, which is required to be determined, the image capturing mode of the camera is determined. The present embodiment provides a preferred embodiment, that is, the shooting mode determining module 40 may include: a first shooting mode determining unit. When the motion information is the rotation information of the terminal, the rotation information of the terminal is determined based on the angle at which the reference object in the image captured by the camera is deviated from the reference object in the previous captured image. And, when the angle of the above deviation exceeds the threshold, the screen of the terminal is rotated. The threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees. Setting the accuracy of a calibration α° means that the screen of the terminal will be rotated only when the phone is rotated to α° relative to the reference object. Alternatively, the shooting mode determining module 40 may include: a second shooting mode determining unit configured to set the reference object in the image captured by the camera relative to the previous image in the previous captured image when the motion information is the moving direction information of the terminal The angle of deviation of the reference object, and the time difference between the image captured by the camera and the previously captured image, determine the moving direction information of the terminal. And, in a case where the angle of the deviation exceeds the threshold and the time difference is less than the preset time difference, the screen of the terminal is transformed. The threshold is the calibration accuracy, and the threshold can be set between 0 and 90 degrees. FIG. 6 is a schematic structural diagram of a virtual G-sensor function of a camera according to an embodiment of the present invention. As shown in FIG. 6, the function of the setting module is equivalent to the function of the shooting mode determining module in the above embodiment, and the setting module acquires the user setting. Parameters, including whether to turn on or off the virtual G- SenSO r, Camera list, calibration accuracy, whether to turn on the auto-rotate screen, etc. After selecting the appropriate Camera from the Camera list and turning on the virtual G-sensor, the corresponding camera module (also called Camera module, which is the camera for capturing images) will automatically open, and the reference object will be obtained through the Camera module. The image data, the calibration module generates standard reference image data based on the collected reference image data, and stores the calibrated standard reference in the reference database. The function of the recognition algorithm module is equivalent to the functions of the image analysis module and the motion information determination module in the above embodiment, and the recognition algorithm module compares the image data collected from the Camera module with the reference object in the reference object database to calculate the acquisition. The data is offset from the position of the reference object, and then the movement direction of the mobile phone is determined, and the movement direction of the mobile phone is input into the movement direction management module of the mobile phone. Finally, the movement direction management module of the mobile phone reports the movement direction of the mobile phone to the registration use. Virtual G-sensor application. The application performs operations such as rotating the phone screen. Based on the structure of the virtual G-sensor function, this embodiment introduces the implementation process of the virtual G-sensor function of the Camera. FIG. 7 is a flowchart of the structure implementation process of the virtual G-sensor function according to the embodiment of the present invention, such as As shown in FIG. 7, the flow includes the following steps (step S702 - step S720): Step S702, first, the setting module is opened. Step S704, selecting a Camera for implementing the virtual G-sensor in the Camera list in the setting module. In step S706, the virtual G-sensor is turned on in the setting module, and the selected camera is automatically opened after the virtual G-sensor is turned on. In step S708, the calibration accuracy is set in the setting module, and the precision can be set between 0° and 90°. Step S710, click to start calibration, and generate a standard reference object image according to the image data collected by the Camera. Step S712, the standard reference object picture is stored in the reference object database. Step S714, the recognition algorithm analyzes and recognizes the moving angle of the current mobile phone according to the standard reference object picture in the reference object database and the image data collected from the Camera. Step S716, real-time management updates the movement angle of the mobile phone. Step S718, feeding back the motion angle update to the upper application. In step S720, the upper layer application performs a corresponding operation of rotating the mobile phone screen. For example, when the phone is turned from vertical to landscape, the screen orientation will rotate following the rotation of the phone. As can be seen from the above description, the present invention uses the Camera to realize the recognition of the mobile phone's own mobile mode without integrating the G-sensor, and feeds the recognition result to the application layer, and the application layer performs the corresponding operation. The invention utilizes software technology to realize the functions of other sensors, reduces the hardware cost, reduces the hardware board area, and simplifies the single board design. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种终端运动信息的确定方法, 包括: A method for determining terminal motion information, comprising:
分析摄像头拍摄的多个图像;  Analyzing multiple images taken by the camera;
根据分析结果确定终端的运动信息。  The motion information of the terminal is determined according to the analysis result.
2. 根据权利要求 1所述的方法,其中,分析所述摄像头拍摄的所述多个图像之前, 所述方法还包括: 2. The method of claim 1, wherein before the analyzing the plurality of images captured by the camera, the method further comprises:
选择用于拍摄所述多个图像的所述摄像头;  Selecting the camera for capturing the plurality of images;
根据需要得到的所述终端的运动信息, 确定所述摄像头的拍摄方式。  Determining the shooting mode of the camera according to the motion information of the terminal that needs to be obtained.
3. 根据权利要求 1所述的方法, 其中, 根据需要得到的所述终端的运动信息, 确 定所述摄像头的拍摄方式包括: The method according to claim 1, wherein, according to the motion information of the terminal that is required to be determined, determining a shooting manner of the camera comprises:
在所述运动信息为所述终端的旋转信息的情况下, 根据所述摄像头拍摄的 图像中的参照物相对于之前拍摄图像中的所述参照物偏离的角度, 确定所述终 端的旋转信息。  In the case where the motion information is the rotation information of the terminal, the rotation information of the terminal is determined based on an angle at which the reference object in the image captured by the camera deviates from the reference object in the previously captured image.
4. 根据权利要求 3所述的方法, 包括: 在所述偏离的角度超过阈值的情况下, 对 所述终端的屏幕进行旋转。 4. The method of claim 3, comprising: rotating the screen of the terminal if the angle of the deviation exceeds a threshold.
5. 根据权利要求 1所述的方法, 其中, 根据需要得到的所述终端的运动信息, 确 定所述摄像头的拍摄方式包括: The method according to claim 1, wherein, according to the motion information of the terminal that is required to be determined, determining a shooting manner of the camera includes:
在所述运动信息为所述终端的移动方向信息的情况下, 根据所述摄像头拍 摄的图像中的参照物相对于之前拍摄图像中的所述参照物偏离的角度, 以及所 述摄像头拍摄的图像与之前拍摄图像的时间差,确定所述终端的移动方向信息。  In the case where the motion information is the moving direction information of the terminal, an angle according to a reference object in the image captured by the camera with respect to the reference object in the previously captured image, and an image captured by the camera The moving direction information of the terminal is determined from the time difference of the previously taken image.
6. 根据权利要求 5所述的方法, 包括: 在所述偏离的角度超过阈值以及所述时间 差小于预设时间差的情况下, 对所述终端的屏幕进行变换。 6. The method of claim 5, comprising: transforming a screen of the terminal if the angle of the deviation exceeds a threshold and the time difference is less than a preset time difference.
7. 根据权利要求 1-6中任一项所述的方法, 其中, 所述阈值在 0度到 90度之间。 The method according to any one of claims 1 to 6, wherein the threshold is between 0 and 90 degrees.
8. 一种终端运动信息的确定装置, 包括: 8. A device for determining terminal motion information, comprising:
图像分析模块, 设置为分析摄像头拍摄的多个图像; 运动信息确定模块, 设置为根据所述图像分析模块的分析结果确定终端的 运动信息。 An image analysis module, configured to analyze a plurality of images captured by the camera; The motion information determining module is configured to determine motion information of the terminal according to the analysis result of the image analyzing module.
9. 根据权利要求 8所述的装置, 还包括: 摄像头选择模块, 设置为选择用于拍摄所述多个图像的摄像头; 拍摄方式确定模块, 设置为根据需要得到的所述终端的运动信息, 确定所 述摄像头的拍摄方式。 9. The apparatus according to claim 8, further comprising: a camera selection module configured to select a camera for capturing the plurality of images; a shooting mode determining module configured to obtain motion information of the terminal according to the need, Determine how the camera is shot.
10. 根据权利要求 8所述的装置, 其中, 所述拍摄方式确定模块包括: The device according to claim 8, wherein the shooting mode determining module comprises:
第一拍摄方式确定单元, 设置为在所述运动信息为所述终端的旋转信息的 情况下, 根据所述摄像头拍摄的图像中的参照物相对于之前拍摄图像中的所述 参照物偏离的角度, 确定所述终端的旋转信息。  a first photographing mode determining unit configured to set an angle at which a reference object in an image captured by the camera is deviated from the reference object in a previously captured image, in a case where the motion information is rotation information of the terminal , determining rotation information of the terminal.
11. 根据权利要求 8所述的装置, 其中, 所述拍摄方式确定模块包括: The device according to claim 8, wherein the shooting mode determining module comprises:
第二拍摄方式确定单元, 设置为在所述运动信息为所述终端的移动方向信 息的情况下, 根据所述摄像头拍摄的图像中的参照物相对于之前拍摄图像中的 所述参照物偏离的角度,以及所述摄像头拍摄的图像与之前拍摄图像的时间差, 确定所述终端的移动方向信息。  a second photographing mode determining unit configured to, in a case where the motion information is moving direction information of the terminal, deviate from a reference object in an image captured by the camera with respect to the reference object in a previously captured image The angle, and the time difference between the image captured by the camera and the previously captured image, determine the moving direction information of the terminal.
PCT/CN2013/077397 2012-06-19 2013-06-18 Determination method and device for movement information about terminal WO2013189279A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020157001080A KR20150023775A (en) 2012-06-19 2013-06-18 Determination method and device for movement information about terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210203052.XA CN103516866A (en) 2012-06-19 2012-06-19 Method and device for determining movement information of terminal
CN201210203052.X 2012-06-19

Publications (1)

Publication Number Publication Date
WO2013189279A1 true WO2013189279A1 (en) 2013-12-27

Family

ID=49768115

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/077397 WO2013189279A1 (en) 2012-06-19 2013-06-18 Determination method and device for movement information about terminal

Country Status (3)

Country Link
KR (1) KR20150023775A (en)
CN (1) CN103516866A (en)
WO (1) WO2013189279A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227844A (en) * 2015-10-22 2016-01-06 上海斐讯数据通信技术有限公司 image acquiring method and device, mobile terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704290A (en) * 2014-11-25 2016-06-22 比亚迪股份有限公司 Mobile terminal screen control method, device and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457674A (en) * 2010-10-27 2012-05-16 赛龙通信技术(深圳)有限公司 Method for simulating gravity sensor with camera
CN103108121A (en) * 2011-11-02 2013-05-15 联发科技股份有限公司 Image-based motion sensor and related multi-purpose camera system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3655824B2 (en) * 2000-12-07 2005-06-02 日本電気株式会社 Portable information terminal device and display method thereof
CN101226407B (en) * 2008-01-24 2010-08-11 北京中星微电子有限公司 System and method for automatically adjusting display device angle
CN102043576A (en) * 2009-10-26 2011-05-04 鸿富锦精密工业(深圳)有限公司 System and method for automatically adjusting display picture
CN102164209B (en) * 2011-03-23 2013-07-31 北京百纳威尔科技有限公司 Mobile terminal screen display control method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457674A (en) * 2010-10-27 2012-05-16 赛龙通信技术(深圳)有限公司 Method for simulating gravity sensor with camera
CN103108121A (en) * 2011-11-02 2013-05-15 联发科技股份有限公司 Image-based motion sensor and related multi-purpose camera system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WANG, JINGTAO ET AL.: "Camera phone based motion sensing: Interaction techniques, Applications and performance study", UIST'06, 18 October 2006 (2006-10-18), pages 1-3,5,6,8 - 10 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227844A (en) * 2015-10-22 2016-01-06 上海斐讯数据通信技术有限公司 image acquiring method and device, mobile terminal
CN105227844B (en) * 2015-10-22 2018-10-12 上海斐讯数据通信技术有限公司 Image acquiring method and device, mobile terminal

Also Published As

Publication number Publication date
CN103516866A (en) 2014-01-15
KR20150023775A (en) 2015-03-05

Similar Documents

Publication Publication Date Title
CN107113415B (en) The method and apparatus for obtaining and merging for more technology depth maps
KR102099635B1 (en) Method for providing guide of camera and electronic device
KR101678483B1 (en) Auto-focusing method, auto-focusing device, program and recording medium
CN108932051B (en) Augmented reality image processing method, apparatus and storage medium
US9159169B2 (en) Image display apparatus, imaging apparatus, image display method, control method for imaging apparatus, and program
US20170228864A1 (en) System and method for camera calibration by use of rotatable three-dimensional calibration object
US20140354874A1 (en) Method and apparatus for auto-focusing of an photographing device
WO2015085589A1 (en) Method and terminal for acquiring panoramic image
WO2018223381A1 (en) Video shake-prevention method and mobile device
WO2018045945A1 (en) Focusing method and terminal, storage medium
WO2022100265A1 (en) Camera calibration method, apparatus, and system
US9380214B2 (en) Image photographing apparatus and method thereof
JP6532958B2 (en) Smart airplane device photographing method, smart airplane device, program and recording medium
WO2022042350A1 (en) Target sky area image acquisition method and astrophotography device
WO2022156683A1 (en) Image processing method and apparatus, and photographic support, electronic device and readable storage medium
CN110740260B (en) Shooting method and device and computer readable storage medium
CN103546676A (en) Automatic photographing device and method
KR20220124244A (en) Image processing method, electronic device and computer readable storage medium
TWI630824B (en) Electronic device and method for capturing image
WO2014169582A1 (en) Configuration parameter sending and receiving method and device
KR20150119793A (en) Imaging apparatus, camera unit, display unit, image-taking method, display method and computer readable recording medium recording program thereon
WO2015154359A1 (en) Method and device for implementing photographing
WO2015024367A1 (en) Shot image processing method and apparatus
WO2017015959A1 (en) Method, control device and control system for controlling mobile device to photograph
US20150189151A1 (en) Information processing apparatus, imaging apparatus, information processing method, information processing program, and imaging system

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: 13806341

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20157001080

Country of ref document: KR

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 13806341

Country of ref document: EP

Kind code of ref document: A1