CN103823576B - The control data inputting method of a kind of intelligent terminal and system - Google Patents
The control data inputting method of a kind of intelligent terminal and system Download PDFInfo
- Publication number
- CN103823576B CN103823576B CN201210465024.5A CN201210465024A CN103823576B CN 103823576 B CN103823576 B CN 103823576B CN 201210465024 A CN201210465024 A CN 201210465024A CN 103823576 B CN103823576 B CN 103823576B
- Authority
- CN
- China
- Prior art keywords
- transformation
- coordinate system
- control information
- dimensional
- information input
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000009466 transformation Effects 0.000 claims abstract description 115
- 230000001133 acceleration Effects 0.000 claims abstract description 16
- 230000000694 effects Effects 0.000 claims abstract description 8
- 238000010606 normalization Methods 0.000 claims description 29
- 238000013519 translation Methods 0.000 claims description 27
- 238000013507 mapping Methods 0.000 claims description 21
- 230000000737 periodic effect Effects 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 8
- 238000007781 pre-processing Methods 0.000 claims description 4
- 230000001131 transforming effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000006698 induction Effects 0.000 description 2
- 210000003813 thumb Anatomy 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本发明涉及一种智能终端的控制信息输入方法及系统,所述方法用于将能够在三维空间活动的控制信息输入端的三维活动信息转化为二维控制信息从而通过二维信息控制智能终端的具体操作,所述方法包含如下步骤:用于采用三轴加速度传感器和三轴角加速度传感器获取控制信息输入终端的感应信息的步骤,且所述的感应信息包含输入终端的初始旋转角度值a0、b0和c0,及任意时刻该终端的旋转角度值a1、b1和c1,且上述各角度值均基于设定的三维坐标系确定;用于将获取的上述两个时刻旋转角度值的差值进行坐标系变换,进而得到该差值在设定的二维平面坐标系的坐标x和y;用于将获取的二维坐标值(x,y)作为控制信息输入给智能终端,从而控制智能终端的行为。
The present invention relates to a method and system for inputting control information of an intelligent terminal. The method is used to convert the three-dimensional activity information at the input end of the control information that can move in three-dimensional space into two-dimensional control information, so as to control the specific details of the intelligent terminal through the two-dimensional information. Operation, the method includes the following steps: the step of acquiring the sensing information of the control information input terminal by using the triaxial acceleration sensor and the triaxial angular acceleration sensor, and the sensing information includes the initial rotation angle values a0, b0 of the input terminal and c0, and the rotation angle values a1, b1, and c1 of the terminal at any time, and the above-mentioned angle values are all determined based on the set three-dimensional coordinate system; it is used to coordinate the difference between the acquired two-time rotation angle values System transformation, and then obtain the coordinates x and y of the difference in the set two-dimensional plane coordinate system; it is used to input the acquired two-dimensional coordinate value (x, y) as control information to the smart terminal, thereby controlling the smart terminal Behavior.
Description
技术领域technical field
本发明涉及人机交互技术领域,具体地说,涉及一种将移动终端设备的位置信息转换为二维平面坐标系的坐标的方法,即本发明提供一种智能终端的控制信息输入方法及系统。The present invention relates to the field of human-computer interaction technology, in particular, to a method for converting position information of a mobile terminal device into coordinates of a two-dimensional plane coordinate system, that is, the present invention provides a control information input method and system for an intelligent terminal .
背景技术Background technique
移动终端设备在迅速发展,尤其是智能手机的快速发展和普及,目前智能手机的数字处理能力在不断提高且大部分都内置了各种各样的传感器以提高用户体验。采用了加速度传感器和角加速度传感器的移动终端设备能够通过检测其传感器的感应信息并利用已有方法计算出设备的位置状态。Mobile terminal devices are developing rapidly, especially the rapid development and popularization of smart phones. At present, the digital processing capabilities of smart phones are constantly improving and most of them have built-in various sensors to improve user experience. A mobile terminal device using an acceleration sensor and an angular acceleration sensor can calculate the position state of the device by detecting the sensing information of its sensor and using an existing method.
本发明利用移动终端设备在三维空间的不同的位置状态实现不同遥控功能,控制其他的智能终端设备,的技术构思还未见有相关文献记载。The present invention realizes different remote control functions by using different positions and states of the mobile terminal equipment in the three-dimensional space, and controls other intelligent terminal equipments. The technical conception of the invention has not yet been documented in relevant documents.
发明内容Contents of the invention
本发明的目的在于,为克服上述问题,本发明提供一种智能终端的控制信息输入方法及系统。The object of the present invention is to provide a control information input method and system for an intelligent terminal in order to overcome the above problems.
为实现上述目的本发明提供了一种智能终端的控制信息输入方法,所述方法用于将能够在三维空间活动的控制信息输入端的三维活动信息转化为二维控制信息从而通过二维信息控制智能终端的具体操作,所述方法包含如下步骤:In order to achieve the above object, the present invention provides a control information input method for an intelligent terminal, the method is used to convert the three-dimensional activity information at the input end of the control information that can move in three-dimensional space into two-dimensional control information, so as to control the intelligent terminal through the two-dimensional information. The specific operation of the terminal, the method includes the following steps:
步骤101)用于采用三轴加速度传感器和三轴角加速度传感器获取控制信息输入终端的感应信息的步骤,且所述的感应信息包含输入终端的初始旋转角度值a0、b0和c0,及任意时刻该终端的旋转角度值a1、b1和c1,且上述各角度值均基于设定的三维坐标系确定;Step 101) is used to obtain the sensing information of the control information input terminal by using the triaxial acceleration sensor and the triaxial angular acceleration sensor, and the sensing information includes the initial rotation angle values a0, b0 and c0 of the input terminal, and any time The rotation angle values a1, b1, and c1 of the terminal, and the above-mentioned angle values are all determined based on the set three-dimensional coordinate system;
步骤102)用于将获取的上述两个时刻旋转角度值的差值进行坐标系变换,进而得到该差值在设定的二维平面坐标系的坐标x和y;Step 102) is used to carry out the coordinate system transformation on the difference between the rotation angle values obtained at the above two moments, and then obtain the coordinates x and y of the difference in the set two-dimensional plane coordinate system;
步骤103)用于将获取的二维坐标值(x,y)作为控制信息输入给智能终端,从而控制智能终端的行为。Step 103) is used to input the obtained two-dimensional coordinate value (x, y) as control information to the smart terminal, so as to control the behavior of the smart terminal.
上述步骤102)进一步包含:Above-mentioned step 102) further comprises:
步骤102-1)对两个时刻旋转角度值的差值进行非周期性变换、映射变换和平移变换,且所述的非周期性变换、映射变换、平移变换能够以任何顺序进行;Step 102-1) Perform aperiodic transformation, mapping transformation, and translation transformation on the difference between the rotation angle values at two moments, and the aperiodic transformation, mapping transformation, and translation transformation can be performed in any order;
步骤102-2)对上步骤输出的结果进行归一化变换;Step 102-2) performing normalized transformation on the result output by the previous step;
步骤102-3)将归一化后的信息所得的平面坐标变换到目标平面所在的坐标系中;Step 102-3) transforming the plane coordinates obtained from the normalized information into the coordinate system where the target plane is located;
其中,目标平面指的是受控的智能终端的显示屏幕所在的二维平面。Wherein, the target plane refers to the two-dimensional plane where the display screen of the controlled smart terminal is located.
上述步骤102-2)所述的归一化变换是指将经步骤102-1)处理后的位置信息的取值区间归一化变换到指定的平面坐标系中指定的取值区间,即将控制信息输入端的信息所在的取值区间和指定的平面坐标系中指定的取值区间进行对数函数处理得到归一化比例,利用归一化比例将当前控制信息输入端的信息转换为指定平面坐标系中的坐标;The normalized transformation described in the above step 102-2) refers to the normalized transformation of the value interval of the position information processed by the step 102-1) to the specified value interval in the specified plane coordinate system, that is, the control The value interval of the information at the information input terminal and the value interval specified in the specified plane coordinate system are processed by a logarithmic function to obtain a normalized ratio, and the information at the current control information input terminal is converted into the specified plane coordinate system by using the normalized ratio coordinates in
其中,所述指定的平面坐标系就是指受控的智能终端的显示屏幕所在的二维平面。Wherein, the specified plane coordinate system refers to the two-dimensional plane where the display screen of the controlled smart terminal is located.
当控制信息输入端绕z、x轴的旋转角度值的取值区间长度分别为Length_x,Length_y,指定的平面坐标系的x、y轴的取值区间长度分别是width,height;经非周期性变换、映射变换、平移变换后所得的二维平面坐标系为Z'O'X',假定归一化变换前Z'轴的取值z'经归一化变换后为z”,归一化变换前X'轴的取值x'经归一化变换后为x',上述各参量之间的关系式为:When the interval lengths of the rotation angle values of the control information input terminal around the z and x axes are Length_x and Length_y respectively, the interval lengths of the x and y axes of the specified plane coordinate system are width and height respectively; The two-dimensional plane coordinate system obtained after transformation, mapping transformation, and translation transformation is Z'O'X', assuming that the value z' of the Z' axis before normalization transformation is z" after normalization transformation, normalization The value x' of the X' axis before transformation is x' after normalization transformation, and the relationship between the above parameters is:
即z”=z'log(width)log(Length_x) That is, z"=z' log(width)log(Length_x)
即x”=x'log(height)log(Length_y)。 That is, x"=x' log(height)log(Length_y) .
上述非周期性变换是指取周期函数的最小正周期,将其线性插值到整个实数域区间上成为非周期函数;所述的平移变换是指将坐标系沿着坐标轴正向平移指定数目的单位长度。The above-mentioned aperiodic transformation refers to taking the minimum positive period of the periodic function, and linearly interpolating it to the entire real number domain interval to become an aperiodic function; the translation transformation refers to shifting the coordinate system along the coordinate axis in the positive direction by a specified number unit length.
基于上述方法本发明还提供了一种智能终端的控制信息输入系统,所述系统用于将能够控制信息输入终端在三维空间活动的信息输入转化为某智能终端的二维控制信息,所述系统包含:Based on the above method, the present invention also provides a control information input system for an intelligent terminal, the system is used to convert information input capable of controlling the activities of an information input terminal in a three-dimensional space into two-dimensional control information for a certain intelligent terminal, and the system Include:
用于采集控制信息输入终端的三维信息的采集模块,该模块采用三轴加速度传感器和三轴角加速度传感器获取控制信息输入终端的感应信息的步骤,且所述的感应信息包含输入终端的初始旋转角度值a0、b0和c0,及任意时刻该终端的旋转角度值a1、b1和c1,且上述各角度值均基于设定的三维坐标系确定;A collection module for collecting three-dimensional information of a control information input terminal, the module adopts a three-axis acceleration sensor and a three-axis angular acceleration sensor to obtain the sensing information of the control information input terminal, and the sensing information includes the initial rotation of the input terminal The angle values a0, b0, and c0, and the rotation angle values a1, b1, and c1 of the terminal at any time, and the above-mentioned angle values are all determined based on the set three-dimensional coordinate system;
第一处理模块,用于将获取的上述两个时刻旋转角度值的差值进行坐标系变换,进而得到该差值在设定的二维平面坐标系的坐标x和y;The first processing module is used to perform coordinate system transformation on the difference between the acquired rotation angle values at the above two moments, and then obtain the coordinates x and y of the difference in the set two-dimensional plane coordinate system;
二维控制信息输出模块,用于将获取的二维坐标值(x,y)作为控制信息输入给智能终端,从而控制智能终端的行为。The two-dimensional control information output module is configured to input the obtained two-dimensional coordinate values (x, y) as control information to the smart terminal, so as to control the behavior of the smart terminal.
上述第一处理模块:The above-mentioned first processing module:
预处理子模块,用于对两个时刻旋转角度值的差值进行非周期性变换、映射变换和平移变换,且所述的非周期性变换、映射变换、平移变换能够以任何顺序进行;The preprocessing sub-module is used to perform aperiodic transformation, mapping transformation and translation transformation on the difference between the rotation angle values at two moments, and the aperiodic transformation, mapping transformation and translation transformation can be performed in any order;
归一化处理子模块,用于对预处理子模块的输出结果进行归一化变换;和A normalization processing submodule is used to perform normalization transformation on the output result of the preprocessing submodule; and
坐标转换子模块,用于将归一化后的信息所得的平面坐标变换到目标平面所在的坐标系中;Coordinate transformation sub-module, used to transform the plane coordinates obtained from the normalized information into the coordinate system where the target plane is located;
其中,目标平面指的是智能终端的显示屏幕所在的二维平面。Wherein, the target plane refers to a two-dimensional plane where the display screen of the smart terminal is located.
上述的归一化变换是指将移动终端设备的位置信息的取值区间归一化变换到指定的平面坐标系中指定的取值区间,即将控制信息输入端的信息所在的取值区间和指定的平面坐标系中指定的取值区间进行对数函数处理得到归一化比例,利用归一化比例将当前控制信息输入端的信息转换为指定平面坐标系中的坐标。The above-mentioned normalized transformation refers to the normalized transformation of the value interval of the position information of the mobile terminal device to the specified value interval in the specified plane coordinate system, that is, the value interval where the information of the control information input terminal is located and the specified value interval. The value interval specified in the plane coordinate system is processed by a logarithmic function to obtain a normalized ratio, and the information of the current control information input terminal is converted into coordinates in the specified plane coordinate system by using the normalized ratio.
当控制信息输入端绕z、x轴的旋转角度值的取值区间长度分别为Length_x,Length_y,指定的平面坐标系的x、y轴的取值区间长度分别是width,height。经非周期性变换、映射变换、平移变换后所得的二维平面坐标系为Z'O'X',假定归一化变换前Z'轴的取值z'经归一化变换后为z”,归一化变换前X'轴的取值x'经归一化变换后为x”:When the interval lengths of the rotation angle values of the control information input terminal around the z and x axes are Length_x and Length_y respectively, the interval lengths of the x and y axes of the specified plane coordinate system are width and height respectively. The two-dimensional plane coordinate system obtained after aperiodic transformation, mapping transformation, and translation transformation is Z'O'X', assuming that the value z' of the Z' axis before normalization transformation is z after normalization transformation" , the value x' of the X' axis before the normalization transformation is x" after the normalization transformation:
即z”=z'log(width)log(Length_x) That is, z"=z' log(width)log(Length_x)
即x”=x'log(height)log(Length_y)。 That is, x"=x' log(height)log(Length_y) .
上述的非周期性变换是指取周期函数的最小正周期,将其线性插值到整个实数域区间上成为非周期函数;The above-mentioned non-periodic transformation refers to taking the minimum positive period of the periodic function, and linearly interpolating it to the entire real number domain interval to become a non-periodic function;
所述的平移变换是指将坐标系沿着坐标轴正向平移指定数目的单位长度。The translation transformation refers to positive translation of the coordinate system along the coordinate axis by a specified number of unit lengths.
本发明一种将移动终端设备的位置信息转换为二维平面坐标系的坐标的方法所述的线性变换是指将移动终端设备的位置信息经非周期性变换、映射变换、平移变换、归一化变换后所得的平面坐标系线性变换到指定的平面坐标系中。A method of converting the position information of a mobile terminal device into the coordinates of a two-dimensional plane coordinate system according to the present invention. The linear transformation refers to aperiodic transformation, mapping transformation, translation transformation, normalization The plane coordinate system obtained after transformation is linearly transformed into the specified plane coordinate system.
与现有技术相比,本发明的技术优势在于:Compared with prior art, the technical advantage of the present invention is:
通过上述技术方案,在三维空间活动的控制信息输入端的三维活动信息将被转换为智能终端的显示屏幕所在的二维控制信息,从而实现对智能终端的行为的控制。实施本发明,用户通过改变控制信息输入端的设备状态,便可实现对智能终端的控制,操作便捷准确且符合用户的行为习惯,能很好地提高用户体验,增强操作的趣味性。Through the above technical solution, the three-dimensional activity information at the input terminal of the three-dimensional space activity control information will be converted into the two-dimensional control information where the display screen of the smart terminal is located, thereby realizing the control of the behavior of the smart terminal. By implementing the present invention, the user can realize the control of the smart terminal by changing the device state of the control information input terminal, the operation is convenient and accurate, and conforms to the user's behavior habits, which can well improve the user experience and enhance the fun of operation.
附图说明Description of drawings
图1是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的程序流程图。FIG. 1 is a program flow chart of a method for converting position information of a mobile terminal device (ie, a control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention.
图2是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的移动终端设备的局部空间坐标系及设备绕轴旋转示意图。FIG. 2 is a schematic diagram of the local space coordinate system of the mobile terminal device and the rotation of the device around an axis according to a method of converting the position information of the mobile terminal device (ie, the control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention.
图3是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的移动终端设备绕轴旋转角度值的周期性示意图。FIG. 3 is a periodic schematic diagram of the rotation angle value of the mobile terminal device around an axis in a method for converting the position information of the mobile terminal device (ie, the control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention.
图4是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的移动终端设备绕轴旋转角度值的非周期性变换前的示意图。Fig. 4 is a schematic diagram of a method for converting the position information of a mobile terminal device (that is, the control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention before the non-periodic transformation of the rotation angle value of the mobile terminal device around the axis .
图5是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的移动终端设备绕轴旋转角度值的非周期性变换后的示意图。Fig. 5 is a schematic diagram of the non-periodic transformation of the rotation angle value of the mobile terminal device around the axis in a method of converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system according to the present invention .
图6是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法中将移动终端设备绕轴旋转角度值所在的三维空间坐标系映射变换后的二维平面坐标系Z'O'X'的示意图。Fig. 6 is a mapping of the three-dimensional space coordinate system where the rotation angle value of the mobile terminal equipment around the axis is located in a method of converting the position information of the mobile terminal equipment (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system according to the present invention Schematic diagram of the transformed two-dimensional plane coordinate system Z'O'X'.
图7是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法进行平移变换后的二维平面坐标系Z'O'X'的示意图。Fig. 7 is a method of converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system according to the present invention, and the two-dimensional plane coordinate system Z'O'X' after translation transformation schematic diagram.
图8是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法进行归一化变换后的二维平面坐标系Z'O'X'的示意图。Fig. 8 is the two-dimensional plane coordinate system Z'O'X after normalized transformation by a method of converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system according to the present invention 'schematic.
图9是本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法中指定的平面坐标系中XOY的示意图。9 is a schematic diagram of XOY in the plane coordinate system specified in the method for converting the position information of the mobile terminal device (ie, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system according to the present invention.
具体实施方式detailed description
下面结合附图对本发明的内容进行详细阐述。The content of the present invention will be described in detail below in conjunction with the accompanying drawings.
本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法所述的移动终端设备是三维实体,其所在的局部空间坐标系以其几何中心为坐标原点,将设备以正常状态正面朝上平放在水平面上,z轴垂直于水平面贯穿设备正面、底面且向上为正,x轴贯穿设备的左、右侧且向右为正,y轴贯穿设备的前面和后面。设备的x、y、z轴遵循右手法则。A method of converting the position information of a mobile terminal device (that is, the control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention. The mobile terminal device is a three-dimensional entity, and its local space coordinate system is defined by its geometry. The center is the origin of the coordinates. Put the device face up on the horizontal plane in a normal state. The z-axis runs through the front and bottom of the device perpendicular to the horizontal plane and is positive upwards. The x-axis runs through the left and right sides of the device and is positive to the right. y The shaft runs through the front and back of the device. The x, y, z axes of the device follow the right-hand rule.
本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法所述的移动终端设备绕x、y、z轴的旋转角度值是指移动终端设备绕其局部空间坐标系的x、y、z轴的旋转角度值。设备绕旋转轴旋转的角度值有正负之分,在一个旋转周期内,旋转角度值的正负遵循右手定则:右手握着旋转轴,大拇指指向旋转轴正向,设备逆时针旋转则旋转角度值为正,顺时针旋转则角度值为负。A method of converting the position information of a mobile terminal device (that is, the control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention. The rotation angle value of the mobile terminal device around the x, y, and z axes refers to the movement The rotation angle value of the terminal device around the x, y, and z axes of its local space coordinate system. The rotation angle of the device around the rotation axis can be positive or negative. In a rotation period, the rotation angle value follows the right-hand rule: the right hand holds the rotation axis, the thumb points to the positive direction of the rotation axis, and the device rotates counterclockwise. Rotation angle values are positive, and clockwise rotation angle values are negative.
本发明提供夫人一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法所述的非周期性变换是指取周期函数的最小正周期,将其线性插值到整个实数域区间上成为非周期函数。设备绕轴旋转的角度值是周期变化的,通过非周期性变换以准确计算出当前旋转角度值相对于初始旋转角度值的差值。The present invention provides a method for converting the position information of a mobile terminal device (that is, the control information input terminal) into coordinates of a two-dimensional plane coordinate system. The aperiodic transformation refers to taking the minimum positive period of a periodic function, and converting Its linear interpolation to the entire real number domain interval becomes a non-periodic function. The angle value of the rotation of the device around the axis changes periodically, and the difference between the current rotation angle value and the initial rotation angle value is accurately calculated through aperiodic transformation.
本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法所述的映射变换是指将三维空间坐标系映射成二维平面坐标系。本发明所述的映射变换所得的二维平面坐标系由设备绕z轴旋转角度所在的z'轴、设备绕x轴旋转角度所在的x'轴组成。根据旋转角度值的正负,本发明取z'轴的正方向为水平向左,x'轴的正方向为竖直向上,假定此二维平面坐标系为Z'O'X'坐标系。A method of converting position information of a mobile terminal device (that is, a control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention. The mapping transformation refers to mapping a three-dimensional spatial coordinate system into a two-dimensional plane coordinate system. The two-dimensional plane coordinate system obtained by the mapping transformation described in the present invention is composed of the z' axis where the device rotates around the z axis, and the x' axis where the device rotates around the x axis. According to the positive and negative values of the rotation angle, the present invention takes the positive direction of the z' axis to be horizontal to the left, and the positive direction of the x' axis to be vertically upward, assuming that the two-dimensional plane coordinate system is the Z'O'X' coordinate system.
本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法所述的平移变换是指将Z'O'X'平面坐标系沿着坐标轴正向平移指定数目的单位长度,以将设备绕轴旋转角度值变换为非负数。A method of converting the position information of a mobile terminal device (that is, the control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention. The translation transformation refers to converting the Z'O'X' plane coordinate system along the coordinates The axis is shifted positively by the specified number of units to convert the device's rotation angle value around the axis to a non-negative number.
本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法所述的归一化变换是指将移动终端设备的位置信息的取值区间归一化变换到指定的平面坐标系中指定的取值区间,以更符合用户操作习惯的方式将传感器的信息变换为平面坐标的信息。假定移动终端设备绕z、x轴的旋转角度值的取值区间长度分别为Length_x,Length_y,指定的平面坐标系的x、y轴的取值区间长度分别是width,height。经非周期性变换、映射变换、平移变换后所得的二维平面坐标系为Z'O'X',假定归一化变换前Z'轴的取值z'经归一化变换后为z”,归一化变换前X'轴的取值x'经归一化变换后为x”:A method of converting the position information of a mobile terminal device (that is, the control information input terminal) into coordinates of a two-dimensional plane coordinate system according to the present invention. The normalized transformation refers to converting the value interval of the position information of the mobile terminal device Normalization transforms to the specified value range in the specified plane coordinate system, and transforms the sensor information into plane coordinate information in a way that is more in line with the user's operating habits. Assume that the interval lengths of the rotation angle values of the mobile terminal device around the z and x axes are Length_x and Length_y respectively, and the interval lengths of the x and y axes of the specified plane coordinate system are width and height respectively. The two-dimensional plane coordinate system obtained after aperiodic transformation, mapping transformation, and translation transformation is Z'O'X', assuming that the value z' of the Z' axis before normalization transformation is z after normalization transformation" , the value x' of the X' axis before the normalization transformation is x" after the normalization transformation:
即z”=z'log(width)log(Length_x) That is, z"=z' log(width)log(Length_x)
即x”=x'log(height))/log(Length_y)。 That is x"= x'log(height))/log(Length_y) .
本发明涉及一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法,为了使本发明的技术方案更加清晰、准确,以下将结合附图与实施例对本发明进行详细说明。The present invention relates to a method for converting the position information of a mobile terminal device (that is, the control information input terminal) into coordinates of a two-dimensional plane coordinate system. In order to make the technical solution of the present invention clearer and more accurate, the following will combine the drawings and Examples illustrate the present invention in detail.
如图1所示,本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的具体实现步骤为:As shown in Figure 1, the specific implementation steps of a method for converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system in the present invention are as follows:
S1、在移动终端设备(即,控制信息输入端)中采用三轴加速度传感器和三轴角加速度传感器,设置传感器的更新频率并启动传感器更新。S1. Using a three-axis acceleration sensor and a three-axis angular acceleration sensor in the mobile terminal device (ie, the control information input terminal), setting the update frequency of the sensors and starting the update of the sensors.
S2、检测加速度传感器和角加速度传感器的感应信息,根据这些感应信息,利用已有方法计算出移动终端设备绕x、y、z轴的旋转角度值a1、b1、c1,并计算出当前旋转角度值a1、b1、c1相对于初始旋转角度值a0、b0、c0的差a、b、c,即a=a1-a0;b=b1-b0;c=c1-c0;S2. Detect the induction information of the acceleration sensor and the angular acceleration sensor, and use the existing method to calculate the rotation angle values a1, b1, and c1 of the mobile terminal device around the x, y, and z axes according to the induction information, and calculate the current rotation angle The difference a, b, c of the value a1, b1, c1 relative to the initial rotation angle value a0, b0, c0, that is, a=a1-a0; b=b1-b0; c=c1-c0;
S3、对a、b、c进行坐标系变换,得到二维平面坐标系的坐标x,y;所述的坐标系变换,包括以下步骤:S3, carry out coordinate system transformation to a, b, c, obtain the coordinate x of two-dimensional plane coordinate system, y; Described coordinate system transformation comprises the following steps:
t1、首先进行非周期性变换、映射变换和平移变换,所述的非周期性变换、映射变换、平移变换可以以任何顺序进行;t1. First perform non-periodic transformation, mapping transformation and translation transformation. The non-periodic transformation, mapping transformation and translation transformation can be performed in any order;
t2、对t1所得的结果进行归一化变换;归一化变换将传感器的感应信息区间变换到目标平面所在的坐标系区间,以更符合用户操作习惯的方式将传感器的信息变换为平面坐标的信息。t2. Perform normalized transformation on the results obtained in t1; the normalized transformation transforms the sensing information interval of the sensor to the coordinate system interval where the target plane is located, and transforms the sensor information into plane coordinates in a way that is more in line with the user's operating habits information.
t3、线性变换;将t2所得的平面坐标变换到目标平面所在的坐标系中。t3, linear transformation; transform the plane coordinates obtained in t2 into the coordinate system where the target plane is located.
如图2所示,本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的移动终端设备的局部空间坐标系是以移动终端设备的几何中心为坐标原点,将设备以正常状态正面朝上平放在水平面上,z轴垂直于水平面贯穿设备正面、底面且向上为正,x轴贯穿设备的左、右侧且向右为正,y轴贯穿设备的前面和后面,设备的x、y、z轴遵循右手法则。设备绕x、y、z轴的旋转角度值是指移动终端设备绕其局部空间坐标系的x、y、z轴的旋转角度值。设备绕旋转轴旋转的角度值有正负之分,在一个旋转周期内,旋转角度值的正负遵循右手定则:右手握着旋转轴,大拇指指向旋转轴正向,设备逆时针旋转则旋转角度值为正,顺时针旋转则角度值为负。As shown in Figure 2, a method of converting the position information of a mobile terminal device (that is, the control information input terminal) into the coordinates of a two-dimensional plane coordinate system according to the present invention, the local space coordinate system of the mobile terminal device is based on the mobile terminal device The geometric center of the device is the origin of the coordinates. Put the device face up in a normal state on a horizontal plane. The z-axis runs through the front and bottom of the device perpendicular to the horizontal plane and is positive upwards. The x-axis runs through the left and right sides of the device and is positive to the right. , the y-axis runs through the front and back of the device, and the x, y, and z-axes of the device follow the right-hand rule. The rotation angle value of the device around the x, y, z axis refers to the rotation angle value of the mobile terminal device around the x, y, z axis of its local space coordinate system. The rotation angle of the device around the rotation axis can be positive or negative. In a rotation period, the rotation angle value follows the right-hand rule: the right hand holds the rotation axis, the thumb points to the positive direction of the rotation axis, and the device rotates counterclockwise. Rotation angle values are positive, and clockwise rotation angle values are negative.
如图3所示,本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法的移动终端设备绕轴旋转的角度值是周期性变化的。设备从静止状态开始沿逆时针方向绕轴旋转,所得的旋转角度为正且在0°到180°之间变化,当旋转角度超过180°且继续逆时针旋转时,所得的旋转角度为负且在-180°到0°之间变化。若某一时刻设备绕轴旋转角度值为170°,旋转方向为逆时针方向,下一时刻设备的旋转角度值为-170°,从数值上计算前后两次检测中设备的旋转角度变化是340°,而实际上设备只旋转了20°,从170°旋转到180°,即-180°,再从-180°旋转到-170°。通过如图4所示的本发明一种将移动终端设备的位置信息转换为二维平面坐标系的坐标的方法的移动终端设备绕轴旋转角度值的非周期性变换可以得到设备实际绕轴旋转角度值。As shown in FIG. 3 , in a method of converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system in the present invention, the angle value of the mobile terminal device rotating around the axis changes periodically. of. The device starts to rotate around the axis in the counterclockwise direction from the static state, and the resulting rotation angle is positive and varies between 0° and 180°. When the rotation angle exceeds 180° and continues to rotate counterclockwise, the resulting rotation angle is negative and Varies from -180° to 0°. If the rotation angle value of the device around the axis is 170° at a certain moment, and the rotation direction is counterclockwise, and the rotation angle value of the device at the next moment is -170°, the change in the rotation angle of the device in the two detections before and after the numerical calculation is 340° °, but in fact the device only rotates 20°, from 170° to 180°, which is -180°, and then from -180° to -170°. Through the non-periodic transformation of the rotation angle value of the mobile terminal device around the axis according to the method of converting the position information of the mobile terminal device into the coordinates of the two-dimensional plane coordinate system of the present invention as shown in Figure 4, the actual rotation of the device around the axis can be obtained. angle value.
如图5所示,本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法中将移动终端设备绕轴旋转角度值所在的三维空间坐标系映射变换到二维平面坐标系Z'O'X'。考虑到用户的操作习惯,本发明选择了设备绕z轴旋转角度值所在的z'轴、设备绕x轴旋转角度值所在的x'轴组成二维平面坐标系Z'O'X'。As shown in Figure 5, in a method of converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system in the present invention, the three-dimensional space where the mobile terminal device is rotated around the axis and the angle value is located The coordinate system mapping transforms to the two-dimensional plane coordinate system Z'O'X'. Considering the user's operating habits, the present invention selects the z' axis where the device rotates around the z axis, and the x' axis where the device rotates around the x axis to form a two-dimensional plane coordinate system Z'O'X'.
如图7所示,本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法中将图6的二维平面坐标系Z'O'X'进行平移变换。平移变换是指沿着z'轴正向、x'轴正向平移指定的单位长度使得本发明在二维平面坐标系Z'O'X'中的取值为非负数。As shown in FIG. 7, in a method of converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system in the present invention, the two-dimensional plane coordinate system Z'O' of FIG. X' performs a translation transformation. The translation transformation means to translate a specified unit length along the positive direction of the z' axis and the positive direction of the x' axis so that the value of the present invention in the two-dimensional plane coordinate system Z'O'X' is a non-negative number.
如图8所示,本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法中将图7的二维平面坐标系Z'O'X'进行归一化变换。归一化变换后,本发明在二维平面坐标系Z'O'X'中的z'轴的取值区间为[0,width],x'轴的取值区间为[0,height],其中width是指定的平面坐标系的x轴的取值区间长度,height是指定的平面坐标系的y轴的取值区间长度。As shown in FIG. 8, in a method of converting the position information of the mobile terminal device (that is, the control information input terminal) into the coordinates of the two-dimensional plane coordinate system in the present invention, the two-dimensional plane coordinate system Z'O' of FIG. X' is normalized. After the normalized transformation, the value interval of the z' axis in the two-dimensional plane coordinate system Z'O'X' of the present invention is [0, width], and the value interval of the x' axis is [0, height]. Among them, width is the value range length of the x-axis of the specified plane coordinate system, and height is the value range length of the y-axis of the specified plane coordinate system.
如图9所示,本发明一种将移动终端设备(即,控制信息输入端)的位置信息转换为二维平面坐标系的坐标的方法指定的二维平面坐标系XOY。本发明所述的指定的二维平面坐标系包括智能电视屏幕、计算机屏幕等所在的二维平面坐标系。As shown in FIG. 9 , the present invention specifies a two-dimensional plane coordinate system XOY for a method of converting position information of a mobile terminal device (ie, control information input terminal) into coordinates of a two-dimensional plane coordinate system. The designated two-dimensional plane coordinate system described in the present invention includes the two-dimensional plane coordinate system where the smart TV screen, computer screen, etc. are located.
综上所述,本发明将移动终端设备的位置信息转换为指定的二维平面坐标系的坐标,将移动终端设备作为一种鼠标输入设备,增加了操作的娱乐性和趣味性,增强了用户体验。In summary, the present invention converts the position information of the mobile terminal device into the coordinates of the designated two-dimensional plane coordinate system, and uses the mobile terminal device as a mouse input device, which increases the entertainment and interest of the operation and enhances the user experience. experience.
最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制。尽管参照实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,对本发明的技术方案进行修改或者等同替换,都不脱离本发明技术方案的精神和范围,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than limit them. Although the present invention has been described in detail with reference to the embodiments, those skilled in the art should understand that modifications or equivalent replacements to the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention, and all of them should be included in the scope of the present invention. within the scope of the claims.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210465024.5A CN103823576B (en) | 2012-11-16 | 2012-11-16 | The control data inputting method of a kind of intelligent terminal and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210465024.5A CN103823576B (en) | 2012-11-16 | 2012-11-16 | The control data inputting method of a kind of intelligent terminal and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103823576A CN103823576A (en) | 2014-05-28 |
| CN103823576B true CN103823576B (en) | 2016-08-03 |
Family
ID=50758676
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210465024.5A Expired - Fee Related CN103823576B (en) | 2012-11-16 | 2012-11-16 | The control data inputting method of a kind of intelligent terminal and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103823576B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1021000A (en) * | 1996-06-28 | 1998-01-23 | Sumitomo Metal Ind Ltd | Signal input device |
| CN1842186A (en) * | 2005-03-28 | 2006-10-04 | 英华达(上海)电子有限公司 | Method for realizing acceleration transducer in mobile phone and mobile phone for realizing same |
| CN101124534A (en) * | 2005-02-24 | 2008-02-13 | 诺基亚公司 | Motion input device for computing terminal and method of operating the same |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100630806B1 (en) * | 2005-11-29 | 2006-10-04 | 한국전자통신연구원 | Command input method using gesture recognition device |
| US8010313B2 (en) * | 2008-06-27 | 2011-08-30 | Movea Sa | Hand held pointing device with roll compensation |
-
2012
- 2012-11-16 CN CN201210465024.5A patent/CN103823576B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1021000A (en) * | 1996-06-28 | 1998-01-23 | Sumitomo Metal Ind Ltd | Signal input device |
| CN101124534A (en) * | 2005-02-24 | 2008-02-13 | 诺基亚公司 | Motion input device for computing terminal and method of operating the same |
| CN1842186A (en) * | 2005-03-28 | 2006-10-04 | 英华达(上海)电子有限公司 | Method for realizing acceleration transducer in mobile phone and mobile phone for realizing same |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103823576A (en) | 2014-05-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104007819B (en) | Gesture recognition method and device and Leap Motion system | |
| US8581901B2 (en) | Methods and apparatus for interactive rotation of 3D objects using multitouch gestures | |
| JP5807686B2 (en) | Image processing apparatus, image processing method, and program | |
| KR20190134589A (en) | System and method for concurrent localization and mapping | |
| WO2013050652A1 (en) | Methods, apparatus and computer program products to determine user interface orientation | |
| CN104035552B (en) | Three-dimensional manipulating method and three-dimensional manipulating device | |
| WO2022111609A1 (en) | Grid encoding method and computer system | |
| CN105302407A (en) | Application icon display method and apparatus | |
| US10467799B2 (en) | Dynamically modeling an object in an environment from different perspectives | |
| TW201346640A (en) | Image processing device, and computer program product | |
| US20160085296A1 (en) | Wearable input device | |
| CN106767584B (en) | Object surface point three-dimensional coordinate measuring device and measuring method | |
| CN112020694B (en) | Methods, systems, and non-transitory computer-readable recording media for supporting object control | |
| EP3667564A1 (en) | Gesture acquisition system | |
| WO2015131630A1 (en) | Replacement method and device for desktop icon | |
| TWI493425B (en) | Near-surface object sensing device and sensing method | |
| JP2014216006A (en) | System, program and method for receiving input of user | |
| US10025420B2 (en) | Method for controlling display of touchscreen, and mobile device | |
| CN116945130A (en) | Robotic arm calibration, teaching methods, devices, teaching pens and applications | |
| WO2016161851A1 (en) | Mobile terminal control method and mobile terminal | |
| CN106648378A (en) | Image display method, device and mobile terminal | |
| CN103000161B (en) | A kind of method for displaying image, device and a kind of intelligent hand-held terminal | |
| CN118070572B (en) | Method and system for collaborative computer aided design and ultrasonic numerical simulation | |
| CN103823576B (en) | The control data inputting method of a kind of intelligent terminal and system | |
| CN107229407B (en) | Information processing method and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160803 |