[go: up one dir, main page]

CN106383597B - Method and device for realizing interaction with intelligent terminal and VR equipment - Google Patents

Method and device for realizing interaction with intelligent terminal and VR equipment Download PDF

Info

Publication number
CN106383597B
CN106383597B CN201610809863.2A CN201610809863A CN106383597B CN 106383597 B CN106383597 B CN 106383597B CN 201610809863 A CN201610809863 A CN 201610809863A CN 106383597 B CN106383597 B CN 106383597B
Authority
CN
China
Prior art keywords
data
period
axis
determining
judging whether
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610809863.2A
Other languages
Chinese (zh)
Other versions
CN106383597A (en
Inventor
孙金波
邵可
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610809863.2A priority Critical patent/CN106383597B/en
Publication of CN106383597A publication Critical patent/CN106383597A/en
Application granted granted Critical
Publication of CN106383597B publication Critical patent/CN106383597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a three-dimensional [3D] space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for realizing interaction with an intelligent terminal and VR equipment. The method comprises the following steps: setting a data acquisition period with the size equal to a preset time length; acquiring data by using a gyroscope and an acceleration sensor in the intelligent terminal; when a data acquisition period is finished, judging whether the intelligent terminal is in the motion process according to data acquired by the gyroscope in the period; if the intelligent terminal is judged not to be in the motion process, whether the terminal equipment is knocked or not is further judged according to the data collected by the acceleration sensor in the period; and if the operation is judged to be knocked, determining the operation corresponding to the knocking instruction and executing the operation in the intelligent terminal. Therefore, the technical scheme of the invention can ensure the convenience and rapidness of interaction with the intelligent terminal or the VR equipment, the accuracy and reliability of operation judgment of interaction with the intelligent terminal or the VR equipment, reduce misjudgment and enhance the experience of a user.

Description

一种实现与智能终端、与VR设备交互的方法和装置A method and device for realizing interaction with smart terminals and VR equipment

技术领域technical field

本发明涉及计算机技术领域,具体涉及一种实现与智能终端、VR设备交互的方法和装置。The present invention relates to the field of computer technology, in particular to a method and device for realizing interaction with an intelligent terminal and a VR device.

背景技术Background technique

近些年来,用户与智能终端之间的交互不再局限于机械式的输入指令与执行指令的关系,而是更加真实、人性化的交互。特别是虚拟现实(VR,Virtual Reality)技术促使人们与智能终端(VR设备)之间的交互趋于小型化、便携化和实际化,我们的生活也因此变得更加便利。但是,在现有的技术和产品中,实现用户与智能终端,特别是与VR设备之间的交互上的操作仍然不便捷,例如,针对视频播放过程中的用户需要进行暂停、快进、后退等一些操作功能键的操作时,为了消除用户的误操作,通常采用悬停的方式,用户将焦点坐标定位到某一操作键上后需被动地等待2-3秒,才能进行该功能键的操作,这样的交互操作不能快速判断用户的意图,浪费用户的时间,给用户带来极大的不便捷、影响用户的体验。In recent years, the interaction between users and smart terminals is no longer limited to the relationship between mechanical input commands and execution commands, but a more realistic and humanized interaction. In particular, virtual reality (VR, Virtual Reality) technology promotes the miniaturization, portability and practicality of the interaction between people and smart terminals (VR devices), and our life becomes more convenient. However, in the existing technologies and products, it is still inconvenient to realize the interaction between users and smart terminals, especially with VR devices. For example, users need to pause, fast-forward, and rewind during video playback. When operating some function keys, in order to eliminate the user's misoperation, the hovering method is usually adopted. After the user locates the focus coordinate on an operation key, he needs to passively wait for 2-3 seconds before the function key can be operated. Such an interactive operation cannot quickly determine the user's intention, wastes the user's time, brings great inconvenience to the user, and affects the user's experience.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的实现与智能终端、VR设备交互的方法和装置。In view of the above problems, the present invention is proposed to provide a method and apparatus for realizing interaction with smart terminals and VR devices that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种实现与智能终端交互的方法,其中,该方法包括:According to one aspect of the present invention, a method for realizing interaction with an intelligent terminal is provided, wherein the method includes:

设定大小等于预设时间长度的数据采集周期;Set the data collection period equal to the preset time length;

利用智能终端中的陀螺仪和加速度传感器采集数据;Use the gyroscope and acceleration sensor in the smart terminal to collect data;

每当一个数据采集周期结束时,Whenever a data acquisition cycle ends,

根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中;Determine whether the smart terminal is in motion according to the data collected by the gyroscope in this period;

如果判断智能终端不在运动过程中,则进一步根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击;If it is determined that the smart terminal is not in motion, further determine whether the terminal device is knocked according to the data collected by the acceleration sensor in the period;

如果判断为受到敲击,则确定与敲击指令对应的操作并在智能终端中执行该操作。If it is determined that a tap has been received, the operation corresponding to the tapping instruction is determined and the operation is executed in the smart terminal.

可选地,所述根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中包括:Optionally, judging whether the intelligent terminal is in motion according to the data collected by the gyroscope in this period includes:

分别计算该周期内陀螺仪三轴数据的平均值;Calculate the average value of the three-axis data of the gyroscope in this period respectively;

如果任一轴的平均值大于第一预设阈值,则确定智能终端在运动过程中,否则确定智能终端不在运动过程中。If the average value of any axis is greater than the first preset threshold, it is determined that the smart terminal is in the process of movement; otherwise, it is determined that the smart terminal is not in the process of movement.

可选地,所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击包括:Optionally, judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period includes:

根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。According to the X, Y, Z three-axis data collected by the acceleration sensor in this period, it is judged whether the change of the X-axis data is less than the preset range, and whether there is a sudden peak in either of the Y-axis and Z-axis data, and if both are judged If yes, it is determined that the terminal device is hit.

可选地,所述判断X轴数据的变化是否小于预设范围包括:Optionally, the judging whether the change of the X-axis data is less than a preset range includes:

判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Determine whether the average value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes, determine that the change in the X-axis data is less than the preset range .

可选地,所述判断Y轴和Z轴数据的任一个中是否有突发峰包括:Optionally, the judging whether there is a burst peak in any of the Y-axis and Z-axis data includes:

该周期内的Y轴/Z轴数据中,如果高于第四预设阈值的数据个数小于n,且最高的m个数据的均值小于第五预设阈值,则确定有突发峰;其中m大于n。In the Y-axis/Z-axis data in this period, if the number of data higher than the fourth preset threshold is less than n, and the average value of the highest m data is less than the fifth preset threshold, it is determined that there is a burst peak; wherein m is greater than n.

可选地,该方法进一步包括:Optionally, the method further includes:

如果判断智能终端是在运动过程中,则终止该周期内的检测并清除该周期内采集的数据;If it is determined that the smart terminal is in motion, the detection in the period is terminated and the data collected in the period is cleared;

以及,如果判断为未受到敲击,则终止该周期内的检测并清除该周期内采集的数据。And, if it is determined that there is no knock, the detection in this period is terminated and the data collected in this period is cleared.

可选地,其中,确定与敲击指令对应的操作包括:Optionally, wherein, determining the operation corresponding to the tapping instruction includes:

根据预先定义的敲击指令以及执行操作的对应关系,确定与敲击指令对应的操作;Determine the operation corresponding to the percussion instruction according to the predefined percussion instruction and the corresponding relationship of the execution operation;

或者,or,

判断智能终端的显示界面上的可操作区域是否被选中,如果是则将该可操作区域对应的执行操作作为与敲击指令对应的操作。It is judged whether the operable area on the display interface of the smart terminal is selected, and if so, the execution operation corresponding to the operable area is regarded as the operation corresponding to the tapping instruction.

根据本发明的另一方面,提供了一种实现与VR设备交互的方法,其中,该方法包括:According to another aspect of the present invention, a method for interacting with a VR device is provided, wherein the method includes:

设定大小等于预设时间长度的数据采集周期;Set the data collection period equal to the preset time length;

利用VR设备中的加速度传感器采集数据;Use the acceleration sensor in the VR device to collect data;

每当一个数据采集周期结束时,Whenever a data acquisition cycle ends,

判断VR视频界面中的可交互区域是否被选中;Determine whether the interactive area in the VR video interface is selected;

如果可以交互区域被选中,则根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击;If the interactive area is selected, judge whether the VR device is knocked according to the data collected by the acceleration sensor in this period;

如果判断为受到敲击,则执行被选中的可交互区域所对应的操作。If it is determined that a tap is received, the operation corresponding to the selected interactive area is performed.

可选地,该方法进一步包括:Optionally, the method further includes:

利用VR设备中的陀螺仪采集数据;Use the gyroscope in the VR device to collect data;

在所述根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击的步骤之前,根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中;如果判断VR设备不在运动过程中,再执行所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击的步骤。Before the step of judging whether the VR device is struck according to the data collected by the acceleration sensor in the cycle, determine whether the VR device is in motion according to the data collected by the gyroscope in the cycle; if it is determined that the VR device is not in motion, Then execute the step of judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period.

可选地,所述根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中包括:Optionally, judging whether the VR device is in motion according to the data collected by the gyroscope in this period includes:

分别计算该周期内陀螺仪三轴数据的平均值;Calculate the average value of the three-axis data of the gyroscope in this period respectively;

如果任一轴的平均值大于第一预设阈值,则确定VR设备在运动过程中,否则确定VR设备不在运动过程中。If the average value of any axis is greater than the first preset threshold, it is determined that the VR device is in the process of movement, otherwise it is determined that the VR device is not in the process of movement.

可选地,所述判断VR视频界面中的可交互区域是否被选中包括:Optionally, the judging whether the interactive area in the VR video interface is selected includes:

判断是否VR视频界面中的用户焦点落在可交互区域且停留时间超过预设时长,如果判断为是则确定所述可交互区域被选中。It is determined whether the user's focus in the VR video interface falls on the interactive area and the stay time exceeds a preset time period, and if it is determined to be yes, it is determined that the interactive area is selected.

可选地,所述执行被选中的可交互区域所对应的操作包括:Optionally, performing the operation corresponding to the selected interactable area includes:

根据所述可交互区域中所绘制的控制键,对VR视频执行相应的操作。According to the control keys drawn in the interactive area, corresponding operations are performed on the VR video.

可选地,所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击包括:Optionally, judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period includes:

根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。According to the X, Y, Z three-axis data collected by the acceleration sensor in this period, it is judged whether the change of the X-axis data is less than the preset range, and whether there is a sudden peak in either of the Y-axis and Z-axis data, and if both are judged If yes, it is determined that the terminal device is hit.

可选地,所述判断X轴数据的变化是否小于预设范围包括:Optionally, the judging whether the change of the X-axis data is less than a preset range includes:

判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Determine whether the average value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes, determine that the change in the X-axis data is less than the preset range .

可选地,所述判断Y轴和Z轴数据的任一个中是否有突发峰包括:Optionally, the judging whether there is a burst peak in any of the Y-axis and Z-axis data includes:

对于该周期内的Y轴/Z轴数据,如果高于第四预设阈值的数据个数小于n,最高的m个数据的均值小于第五预设阈值,则确定有突发峰;其中m大于n。For the Y-axis/Z-axis data in this period, if the number of data higher than the fourth preset threshold is less than n, and the average value of the highest m data is less than the fifth preset threshold, it is determined that there is a burst peak; where m greater than n.

可选地,该方法进一步包括:Optionally, the method further includes:

如果判断VR设备是在运动过程中,则终止该周期内的检测并清除该周期内采集的数据;If it is determined that the VR device is in motion, the detection in this period is terminated and the data collected in this period is cleared;

以及,如果判断为未受到敲击,则终止该周期内的检测并清除该周期内采集的数据。And, if it is determined that there is no knock, the detection in this period is terminated and the data collected in this period is cleared.

根据本发明的又一个方面,提供了一种实现与智能终端交互的装置,其中,该装置包括:According to yet another aspect of the present invention, an apparatus for realizing interaction with a smart terminal is provided, wherein the apparatus includes:

设置单元,适于设定大小等于预设时间长度的数据采集周期;a setting unit, suitable for setting a data collection period whose size is equal to a preset time length;

数据采集单元,适于利用智能终端中的陀螺仪和加速度传感器采集数据;The data acquisition unit is suitable for collecting data by using the gyroscope and the acceleration sensor in the smart terminal;

检测单元,适于每当一个数据采集周期结束时,根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中;如果判断智能终端不在运动过程中,则进一步根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击;如果判断为受到敲击,则通知执行单元;The detection unit is adapted to determine whether the smart terminal is in the process of movement according to the data collected by the gyroscope in the cycle when the data collection cycle ends; if it is determined that the smart terminal is not in the process of movement, then further according to the data collected by the acceleration sensor in the cycle The data judges whether the terminal equipment is knocked; if it is judged to be knocked, the execution unit is notified;

执行单元,适于在收到通知后,确定与敲击指令对应的操作并在智能终端中执行该操作。The execution unit is adapted to, after receiving the notification, determine the operation corresponding to the tapping instruction and execute the operation in the intelligent terminal.

可选地,所述检测单元,适于分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定智能终端在运动过程中,否则确定智能终端不在运动过程中。Optionally, the detection unit is adapted to calculate the average value of the three-axis data of the gyroscope in the cycle respectively; if the average value of any axis is greater than the first preset threshold, it is determined that the intelligent terminal is in the process of movement, otherwise it is determined that The smart terminal is not in motion.

可选地,所述检测单元,适于根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。Optionally, the detection unit is adapted to judge whether the change of the X-axis data is less than a preset range according to the X, Y, Z three-axis data collected by the acceleration sensor in this period, and to judge whether the Y-axis and Z-axis data are any. Whether there is a sudden peak in one of them, and if both are judged to be yes, it is determined that the terminal device is knocked.

可选地,所述检测单元,适于判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Optionally, the detection unit is adapted to determine whether the mean value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes Then it is determined that the change of the X-axis data is less than the preset range.

可选地,所述检测单元,适于当该周期内的X轴/Y轴数据中,高于第四预设阈值的数据个数小于n,且最高的m个数据的均值小于第五预设阈值时,确定有突发峰;其中m大于n。Optionally, the detection unit is adapted to when, in the X-axis/Y-axis data in the period, the number of data higher than the fourth preset threshold is less than n, and the mean value of the highest m data is less than the fifth preset threshold. When the threshold is set, it is determined that there is a burst peak; where m is greater than n.

可选地,所述检测单元,适于当判断智能终端是在运动过程中时,终止该周期内的检测并清除该周期内采集的数据;以及,当判断为未受到敲击时,终止该周期内的检测并清除该周期内采集的数据。Optionally, the detection unit is adapted to terminate the detection in this period and clear the data collected in this period when it is judged that the intelligent terminal is in motion; Detects in a period and clears the data collected in this period.

可选地,所述执行单元,适于根据预先定义的敲击指令以及执行操作的对应关系,确定与敲击指令对应的操作;或者,适于判断智能终端的显示界面上的可操作区域是否被选中,如果被选中,则将该可操作区域对应的执行操作作为与敲击指令对应的操作。Optionally, the execution unit is adapted to determine the operation corresponding to the tapping instruction according to the predefined corresponding relationship between the tapping instruction and the execution operation; or, is adapted to determine whether the operable area on the display interface of the smart terminal is is selected, if it is selected, the execution operation corresponding to the operable area is regarded as the operation corresponding to the tapping instruction.

根据本发明的再一个方面,提供了一种实现与VR设备交互的装置,其中,该装置包括:According to yet another aspect of the present invention, an apparatus for realizing interaction with a VR device is provided, wherein the apparatus includes:

设置单元,适于设定大小等于预设时间长度的数据采集周期;a setting unit, suitable for setting a data collection period whose size is equal to a preset time length;

数据采集单元,适于利用VR设备中的加速度传感器采集数据;The data acquisition unit is suitable for collecting data by using the acceleration sensor in the VR device;

检测单元,适于每当一个数据采集周期结束时,判断VR视频界面中的可交互区域是否被选中;如果可以交互区域被选中,则根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击;如果判断为受到敲击,则通知执行单元;The detection unit is adapted to judge whether the interactive area in the VR video interface is selected every time a data collection period ends; if the interactive area is selected, judge whether the VR device is knocked according to the data collected by the acceleration sensor in the period Strike; if it is judged to be struck, notify the execution unit;

执行单元,适于在收到通知后执行被选中的可交互区域所对应的操作。The execution unit is adapted to execute the operation corresponding to the selected interactive area after receiving the notification.

可选地,所述数据采集单元,进一步适于利用VR设备中的陀螺仪采集数据;Optionally, the data collection unit is further adapted to use a gyroscope in the VR device to collect data;

所述检测单元,进一步适于在所述根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击的步骤之前,根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中;如果判断VR设备不在运动过程中,再执行所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击的步骤。The detection unit is further adapted to determine whether the VR device is in motion according to the data collected by the gyroscope in the cycle before the step of judging whether the VR device is knocked according to the data collected by the acceleration sensor in the cycle; if It is judged that the VR device is not in motion, and then the step of judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period is performed.

可选地,所述检测单元,适于分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定VR设备在运动过程中,否则确定VR设备不在运动过程中。Optionally, the detection unit is adapted to respectively calculate the average value of the three-axis data of the gyroscope in the period; if the average value of any axis is greater than the first preset threshold, it is determined that the VR device is in motion, otherwise, it is determined that the VR device is in motion. The VR device is not in motion.

可选地,所述检测单元,适于判断是否VR视频界面中的用户焦点落在可交互区域且停留时间超过预设时长,如果判断为是则确定所述可交互区域被选中。Optionally, the detection unit is adapted to determine whether the user's focus in the VR video interface falls on the interactable area and the stay time exceeds a preset time period, and if the determination is yes, it is determined that the interactable area is selected.

可选地,所述执行单元,至于根据所述可交互区域中所绘制的控制键,对VR视频执行相应的操作。Optionally, the execution unit performs corresponding operations on the VR video according to the control keys drawn in the interactable area.

可选地,所述检测单元,适于根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。Optionally, the detection unit is adapted to judge whether the change of the X-axis data is less than a preset range according to the X, Y, Z three-axis data collected by the acceleration sensor in this period, and to judge whether the Y-axis and Z-axis data are any. Whether there is a sudden peak in one of them, and if both are judged to be yes, it is determined that the terminal device is knocked.

可选地,所述检测单元,适于判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Optionally, the detection unit is adapted to determine whether the mean value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes Then it is determined that the change of the X-axis data is less than the preset range.

可选地,所述检测单元,适于对于该周期内的X轴/Y轴数据,如果高于第四预设阈值的数据个数小于n,最高的m个数据的均值小于第五预设阈值,则确定有突发峰;其中m大于n。Optionally, the detection unit is adapted to the X-axis/Y-axis data in this period, if the number of data higher than the fourth preset threshold is less than n, the mean value of the highest m data is less than the fifth preset. Threshold, it is determined that there is a burst peak; where m is greater than n.

可选地,所述检测单元,适于当判断VR设备是在运动过程中时,终止该周期内的检测并清除该周期内采集的数据;以及,当判断为未受到敲击时,终止该周期内的检测并清除该周期内采集的数据。Optionally, the detection unit is adapted to terminate the detection in the period and clear the data collected in the period when it is judged that the VR device is in motion; Detects in a period and clears the data collected in this period.

根据本发明的技术方案,在与智能终端进行交互的过程中,充分利用智能终端中现有的陀螺仪和加速度传感器采集设定的时间周期内的数据,判断智能终端是否在运动过程中,若判断为否,进一步判断该智能终端是否受到敲击,若再判断为是,则执行与敲击指令对应的操作。也就是说用户在使用智能终端的过程中,如果想要执行某一功能键的操作,不再需要等待2-3秒,可以采用敲击智能终端的方式进行该功能键的操作确认,实现与智能终端交互的方便快捷;同时为了消除用户在运动过程中使用智能终端时的误操作,减少误判,利用采集的数据进行智能终端是否在运动过程中的判断,保证了智能终端对用户操作的判断的准确性和可靠性。可见,本发明的技术方案保证与智能终端交互的方便快捷,减少用户的被动等待时间,以及保证了与智能终端交互的操作判断的准确性和可靠性,可减少误判,增强用户的体验。According to the technical solution of the present invention, in the process of interacting with the intelligent terminal, the existing gyroscope and acceleration sensor in the intelligent terminal are fully utilized to collect data within a set time period to determine whether the intelligent terminal is in the process of movement. If the judgment is NO, it is further judged whether the smart terminal is knocked, and if it is judged as yes again, the operation corresponding to the knocking instruction is executed. That is to say, in the process of using the smart terminal, if the user wants to perform the operation of a certain function key, he no longer needs to wait for 2-3 seconds. Instead, the user can confirm the operation of the function key by tapping the smart terminal to achieve the same The interaction of the intelligent terminal is convenient and fast; at the same time, in order to eliminate the misoperation of the user when using the intelligent terminal during exercise and reduce misjudgment, the collected data is used to judge whether the intelligent terminal is in the process of exercise, which ensures the intelligent terminal to the user's operation. Accuracy and reliability of judgment. It can be seen that the technical solution of the present invention ensures the convenience and speed of interaction with the intelligent terminal, reduces the passive waiting time of the user, and ensures the accuracy and reliability of the operation judgment of the interaction with the intelligent terminal, which can reduce misjudgments and enhance the user experience.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1示出了根据本发明一个实施例的一种实现与智能终端交互的方法的流程图;1 shows a flowchart of a method for implementing interaction with an intelligent terminal according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的一种实现与VR设备交互的方法的流程图;FIG. 2 shows a flowchart of a method for implementing interaction with a VR device according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的一种实现与智能终端交互的装置的示意图;3 shows a schematic diagram of an apparatus for implementing interaction with a smart terminal according to an embodiment of the present invention;

图4示出了根据本发明一个实施例的一种实现与VR设备交互的装置的示意图。FIG. 4 shows a schematic diagram of an apparatus for implementing interaction with a VR device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

图1示出了根据本发明一个实施例的一种实现与智能终端交互的方法的流程图。如图1所示,该方法包括:FIG. 1 shows a flowchart of a method for implementing interaction with an intelligent terminal according to an embodiment of the present invention. As shown in Figure 1, the method includes:

步骤S110,设定大小等于预设时间长度的数据采集周期。Step S110, setting a data collection period equal to a preset time length.

因为该方法需要进行智能终端是否在运行过程中以及敲击的判断,运动或者敲击的动作均是一个连续的过程,所以判断的过程不是根据某一个特定点的时间的数据进行的,而是根据一段时间内的数据是否符合运动中或者敲击的特点进行判断,所以在初始时,需要设定一个预设时间长度,并且该预设时间长度的数量级很小,保证用户操作过程的实时性,不会让用户感觉到操作执行上的时间延迟。例如,该预设时间长度可以设置为毫秒量级,如300ms。Because this method needs to judge whether the smart terminal is in the process of running and tapping, the movement or tapping is a continuous process, so the judgment process is not based on the time data of a specific point, but Judgment is made according to whether the data in a period of time conforms to the characteristics of movement or tapping. Therefore, at the beginning, a preset time length needs to be set, and the magnitude of the preset time length is very small to ensure the real-time nature of the user's operation process. , which will not make the user feel the time delay in the execution of the operation. For example, the preset time length may be set to the order of milliseconds, such as 300ms.

步骤S120,利用智能终端中的陀螺仪和加速度传感器采集数据。Step S120, using the gyroscope and the acceleration sensor in the smart terminal to collect data.

本步骤中的陀螺仪和加速度传感器均是智能终端(手机、平板电脑等)中自带的功能模块,可在上述的预设时间内周期地进行数据采集,为判断过程提供数据依据。Both the gyroscope and the acceleration sensor in this step are functional modules built into the smart terminal (mobile phone, tablet computer, etc.), and can periodically collect data within the above preset time period to provide data basis for the judgment process.

步骤S130,每当一个数据采集周期结束时,根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中。In step S130, each time a data collection period ends, it is judged whether the smart terminal is in motion according to the data collected by the gyroscope in the period.

可预想的是,用户在使用智能终端进行交互操作时,基本上是在静止或者平稳的状态下进行的。该方法首先需要进行智能终端是否在运动过程中的判断,可以防止用户在运动过程中使用智能终端时的误操作,进一步减少误判,保证与智能终端交互的操作判断的准确性和可靠性。本步骤中根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中,是指采集的数据是否符合处于运动状态时的数据特征。It is conceivable that when a user performs interactive operations using a smart terminal, it is basically performed in a static or stable state. The method first needs to judge whether the smart terminal is in motion, which can prevent the user from misoperation when using the smart terminal during the motion, further reduce misjudgment, and ensure the accuracy and reliability of the operation judgment interacting with the smart terminal. In this step, it is determined whether the intelligent terminal is in the process of movement according to the data collected by the gyroscope in the period, which means whether the collected data conforms to the data characteristics of the movement state.

步骤S140,如果判断智能终端在运动过程中,则不进行任何处理;如果判断智能终端不在运动过程中,则进一步根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击。Step S140, if it is determined that the smart terminal is in motion, no processing is performed; if it is determined that the smart terminal is not in motion, it is further determined whether the terminal device is knocked according to the data collected by the acceleration sensor in the period.

步骤S150,如果判断为受到敲击,则确定与敲击指令对应的操作并在智能终端中执行该操作;如果判断未受到敲击,则不进行任何处理。In step S150, if it is determined that a tap is received, the operation corresponding to the tapping instruction is determined and the operation is executed in the smart terminal; if it is determined that the tap is not received, no processing is performed.

当用户需要进行某一功能操作时,会将焦点坐标置于对应的功能操作上,若用户确定进行该操作,则无需等待,只要敲击一下智能终端,智能终端判断是敲击动作后,确定与敲击指令对应的操作并在智能终端中执行该操作,实现用户与智能终端交互的便捷。When the user needs to perform a certain function operation, the focus coordinate will be placed on the corresponding function operation. If the user decides to perform the operation, there is no need to wait. Just tap the smart terminal. After the smart terminal judges that it is a tapping action, confirm The operation corresponding to the tapping instruction is executed in the intelligent terminal, so as to realize the convenience of the interaction between the user and the intelligent terminal.

综上所述,根据本发明的技术方案,在与智能终端进行交互的过程中,充分利用智能终端中现有的陀螺仪和加速度传感器采集设定的时间周期内的数据,判断智能终端是否在运动过程中,若判断为否,进一步判断该智能终端是否受到敲击,若再判断为是,则执行与敲击指令对应的操作。也就是说用户在使用智能终端的过程中,如果想要执行某一功能键的操作,不再需要等待2-3秒的悬停时间,可以采用敲击智能终端的方式进行该功能键的操作确认,实现与智能终端交互的方便快捷,减少用户的被动等待时间;同时为了消除用户在运动过程中使用智能终端时的误操作,减少误判,利用采集的数据进行智能终端是否在运动过程中的判断,保证了智能终端对用户操作的操作判断的准确性和可靠性。To sum up, according to the technical solution of the present invention, in the process of interacting with the smart terminal, the existing gyroscope and acceleration sensor in the smart terminal are fully utilized to collect data within a set time period to determine whether the smart terminal is in the During the movement, if it is judged as NO, it is further judged whether the intelligent terminal has been tapped, and if it is judged as yes again, the operation corresponding to the tap instruction is executed. That is to say, in the process of using the smart terminal, if the user wants to perform the operation of a certain function key, he no longer needs to wait for the hovering time of 2-3 seconds, and the operation of the function key can be performed by tapping the smart terminal. Confirmation, realizing convenient and quick interaction with the smart terminal and reducing the passive waiting time of the user; at the same time, in order to eliminate the misoperation of the user when using the smart terminal during exercise and reduce misjudgment, the collected data is used to check whether the smart terminal is in the process of exercising. This ensures the accuracy and reliability of the intelligent terminal's operation judgment on the user's operation.

运动中的设备在空间坐标X、Y和Z轴上的角速度会有一个较大的值或者波动,通过对这三个坐标轴上的加速度的平均值和一个预设值进行比较,即可判断该设备是否在运动过程中,而该预设值需满足运动中加速度的基本量值。因此,在本发明的一个实施例中,通过陀螺仪采集智能终端的角速度数据,步骤S130中根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中包括:分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定智能终端在运动过程中,否则确定智能终端不在运动过程中。The angular velocity of the moving equipment on the X, Y and Z axes of the space coordinate will have a large value or fluctuation. By comparing the average value of the acceleration on the three coordinate axes with a preset value, it can be judged Whether the device is in motion, and the preset value must meet the basic magnitude of acceleration in motion. Therefore, in an embodiment of the present invention, the angular velocity data of the smart terminal is collected by the gyroscope, and in step S130, determining whether the smart terminal is in motion according to the data collected by the gyroscope in the cycle includes: separately calculating the gyroscope in the cycle. The average value of the three-axis data; if the average value of any axis is greater than the first preset threshold, it is determined that the smart terminal is in the process of movement, otherwise it is determined that the smart terminal is not in the process of movement.

若设备受到敲击,其空间坐标上的加速度变化特征是:X轴的数据基本稳定无变化;Y轴有小幅突发峰;Z轴有较大的突发峰。因此,在判断设备是否受到敲击,可分别判断该设备三轴上的加速度数据特征。在本发明的一个实施例中,步骤S140中,根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击包括:根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。这里需判断X轴数据的变化是否小于预设范围,是因为设备收到敲击时,X轴的数据会受到影响,不再保持不变,而是会有小范围的浮动,只要是在小范围内浮动,可认定X轴的数据基本稳定。因此,在这里首先预设一个变化范围,只要X轴的数据在该变化范围内浮动就可以判定X轴的数据基本稳定。If the device is knocked, the characteristics of the acceleration change on its spatial coordinates are: the data on the X-axis is basically stable and unchanged; the Y-axis has a small burst peak; the Z-axis has a large burst peak. Therefore, when judging whether the device is knocked, the acceleration data characteristics on the three axes of the device can be judged respectively. In an embodiment of the present invention, in step S140, judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period includes: according to the X, Y, Z three-axis data collected by the acceleration sensor in the period, judging X Whether the change of the axis data is less than the preset range, and whether there is a sudden peak in either of the Y-axis and Z-axis data, if both are determined to be yes, it is determined that the terminal device is knocked. It is necessary to judge whether the change of the X-axis data is smaller than the preset range, because when the device receives a tap, the X-axis data will be affected and will no longer remain unchanged, but will float in a small range. If it floats within the range, it can be determined that the data of the X-axis is basically stable. Therefore, a variation range is preset here first, and as long as the data of the X-axis floats within the variation range, it can be determined that the data of the X-axis is basically stable.

进一步地,判断X轴数据的变化是否小于预设范围包括:判断是否该周期内X轴数据的均值小于第二预设阈值,即X轴数据基本稳定,没有个别突变峰影响X轴的数据;且判断该周期内X轴数据中不存在大于第三预设阈值的数据,即进一步确保X轴数据没有突变峰,如果判断均为是则确定X轴数据的变化小于预设范围,说明X轴的数据基本稳定。Further, judging whether the change of the X-axis data is less than a preset range includes: judging whether the average value of the X-axis data in the cycle is less than a second preset threshold, that is, the X-axis data is basically stable, and no individual sudden change peak affects the X-axis data; And it is judged that there is no data greater than the third preset threshold in the X-axis data in this period, that is, it is further ensured that the X-axis data has no sudden change peak. If the judgment is all yes, it is determined that the change of the X-axis data is less than the preset range, indicating that the X-axis data is within the preset range. data is basically stable.

具体地,判断Y轴和Z轴数据的任一个中是否有突发峰包括:Specifically, judging whether there is a burst peak in any of the Y-axis and Z-axis data includes:

该周期内的Y轴/Z轴数据中,如果高于第四预设阈值的数据个数小于n,且最高的m(m>n)个数据的均值小于第五预设阈值,则确定有突发峰。周期数据内存在突发峰的特点是,突发峰所对应的值的比周期内其他数据的值大很多,否则可能是周期内的平缓波动峰。本实施例中,高于第四预设阈值的数据个数小于n,为了判断Y轴/Z轴上有少量大值数据存在,即可能存在突发峰;最高的m(m>n)个数据的均值小于第五预设阈值,具体是指取出Y轴/Z轴的数据中大于n的m个最大数据取平均值,这m个数据里包括上述的大于第四预设阈值的大值数据,也包括小于第四预设阈值的数据,若大值数据为突发峰,m个数据中的小于第四预设阈值的数据比大值数据要小很多,取平均后的值肯定是一个较小的数据,预设一个第五预设阈值,保证取平均后的值小于第五预设阈值,进一步确定数据中存在的是少量突发峰,而不是Y轴/Z轴数据的平缓波动峰。比如,设定n为3,第四预设阈值为7m/s2,第五预设阈值为5m/s2;若采集的该周期内的Y轴数据中有四个大于7m/s2的数据10m/s2、9m/s2、8m/s2和8m/s2,则不符合高于第四预设阈值的数据个数小于n的条件,即Y轴数据中没有突发峰;若只有两个大于7m/s2的数据10m/s2和8m/s2,则Y轴数据符合高于第四预设阈值的数据个数小于n的条件,可能存在突发峰;进一步,取Y轴数据中的m=5个的最大数据,若Y轴数据最大的5个数据为10m/s2、8m/s2、7m/s2、6m/s2和5m/s2,取平均后为7.2m/s2,则不符合最高的m=5个数据的均值小于第五预设阈值5m/s2,这里10m/s2、8m/s2、7m/s2、6m/s2和5m/s2这5个数据的数值之间相差不大,说明Y轴数据存在的只是平缓波动峰,而不是突发峰;若Y轴数据最大的5个数据为10m/s2、8m/s2、2m/s2、1m/s2和1m/s2,取平均后为4.2m/s2,符合最高的m=5个数据的均值小于第五预设阈值5m/s2,说明10m/s2和8m/s2这两个数值对应的峰为突发峰,即Y轴数据存在突发峰,从这里也可以看出10m/s2和8m/s2相比较2m/s2、1m/s2和1m/s2要大很多,符合突发峰的特点。In the Y-axis/Z-axis data in this period, if the number of data higher than the fourth preset threshold is less than n, and the mean value of the highest m (m>n) data is less than the fifth preset threshold, it is determined that there are Burst peak. The characteristic of the burst peak in the periodic data is that the value corresponding to the burst peak is much larger than the value of other data in the period, otherwise it may be a gentle fluctuation peak in the period. In this embodiment, the number of data higher than the fourth preset threshold is less than n, in order to determine that there is a small amount of large-value data on the Y-axis/Z-axis, that is, there may be a burst peak; the highest m (m>n) The mean value of the data is less than the fifth preset threshold, which specifically refers to taking out the m maximum data greater than n in the data of the Y-axis/Z-axis to take the average value, and the m data includes the above-mentioned large value greater than the fourth preset threshold. The data also includes data less than the fourth preset threshold. If the large value data is a burst peak, the data less than the fourth preset threshold in the m data is much smaller than the large value data, and the averaged value must be For a small data, preset a fifth preset threshold to ensure that the averaged value is less than the fifth preset threshold, and further determine that there are a small number of burst peaks in the data, rather than the flatness of the Y-axis/Z-axis data. fluctuating peaks. For example, if n is set to 3, the fourth preset threshold is 7m/s 2 , and the fifth preset threshold is 5m/s 2 ; if there are four Y-axis data collected in the period greater than 7m/s 2 If the data is 10m/s 2 , 9m/s 2 , 8m/s 2 and 8m/s 2 , it does not meet the condition that the number of data above the fourth preset threshold is less than n, that is, there is no sudden peak in the Y-axis data; If there are only two data 10m/s 2 and 8m/s 2 greater than 7m/s 2 , the Y-axis data meets the condition that the number of data above the fourth preset threshold is less than n, and there may be a burst peak; further, Take the largest data of m=5 in the Y-axis data, if the five largest data of the Y-axis data are 10m/s 2 , 8m/s 2 , 7m/s 2 , 6m/s 2 and 5m/s 2 , take After averaging, it is 7.2m/s 2 , then the mean value of the highest m=5 data is less than the fifth preset threshold 5m/s 2 , here 10m/s 2 , 8m/s 2 , 7m/s 2 , 6m/ There is little difference between the values of the five data of s 2 and 5m/s 2 , which means that the Y-axis data only has a gentle fluctuation peak, not a sudden peak; if the five largest data of the Y-axis data are 10m/s 2 , 8m/s 2 , 2m/s 2 , 1m/s 2 and 1m/s 2 , the average is 4.2m/s 2 , and the mean value of the highest m=5 data is less than the fifth preset threshold 5m/s 2 , indicating that the peaks corresponding to the two values of 10m/s 2 and 8m/s 2 are burst peaks, that is, there are burst peaks in the Y-axis data. It can also be seen from here that 10m/s 2 and 8m/s 2 are compared. 2m/s 2 , 1m/s 2 and 1m/s 2 are much larger, which are in line with the characteristics of burst peaks.

在本发明的一个实施例中,图1所示的方法进一步包括:如果判断智能终端是在运动过程中,则终止该周期内的检测并清除该周期内采集的数据。In an embodiment of the present invention, the method shown in FIG. 1 further includes: if it is determined that the smart terminal is in motion, terminating the detection in the period and clearing the data collected in the period.

以及,如果判断为未受到敲击,则终止该周期内的检测并清除该周期内采集的数据。And, if it is determined that there is no knock, the detection in this period is terminated and the data collected in this period is cleared.

在本发明的一个实施例中,步骤S150中的确定与敲击指令对应的操作包括:根据预先定义的敲击指令以及执行操作的对应关系,确定与敲击指令对应的操作,也就是说预先设定一个特定指令,这个特定指令的触发操作为敲击动作,当检测到敲击动作时,对应执行该指令。例如,将暂停指定为特定指令,当判断为敲击动作时,则将播放的视频进行暂停操作。In an embodiment of the present invention, determining the operation corresponding to the knocking instruction in step S150 includes: determining the operation corresponding to the knocking instruction according to the predefined correspondence between the knocking instruction and the execution operation, that is to say, in advance Set a specific command, the triggering operation of this specific command is a tapping action, and when a tapping action is detected, the command is executed correspondingly. For example, specify a pause as a specific command, and when it is determined to be a tap action, the video being played will be paused.

或者,判断智能终端的显示界面上的可操作区域或者功能按钮是否被选中,如果是则将该可操作区域或者功能按钮对应的执行操作作为与敲击指令对应的操作,如果没有选中可操作区域或者功能按钮,则可能是用户的误操作,不作任何处理。例如,可操作区域或者功能按钮可为暂停键、停止键、或快进键等,则敲击指令对应的操作是指对应的暂停、停止或快进指令的操作。Or, determine whether the operable area or function button on the display interface of the smart terminal is selected, and if so, the execution operation corresponding to the operable area or function button is regarded as the operation corresponding to the tapping instruction, if the operable area is not selected. Or the function button, it may be the user's misoperation, and no action will be taken. For example, the operable area or function button may be a pause key, a stop key, or a fast-forward key, etc., and the operation corresponding to the tapping instruction refers to the operation of the corresponding pause, stop or fast-forward instruction.

图2示出了根据本发明一个实施例的一种实现与VR设备交互的方法的流程图。如图2所示,该方法包括:Fig. 2 shows a flowchart of a method for implementing interaction with a VR device according to an embodiment of the present invention. As shown in Figure 2, the method includes:

步骤S210,设定大小等于预设时间长度的数据采集周期。Step S210, setting a data collection period equal to a preset time length.

步骤S220,利用VR设备中的加速度传感器采集数据。Step S220, using the acceleration sensor in the VR device to collect data.

在使用VR设备时,是配合手机等智能终端进行使用,例如将手机插入VR设备中,在采集数据时,就可利用插入VR设备中的手机中的加速度传感器进行采集。When using a VR device, it is used in conjunction with a smart terminal such as a mobile phone. For example, when the mobile phone is inserted into the VR device, when collecting data, the acceleration sensor in the mobile phone inserted into the VR device can be used to collect data.

步骤S230,每当一个数据采集周期结束时,判断VR视频界面中的可交互区域是否被选中。Step S230, each time a data collection period ends, determine whether the interactive area in the VR video interface is selected.

用户在使用VR设备过程中可能存在误触VR设备的情况,误触时视频界面中的可交互区域可能是没有被选中的,首先判断可交互区域是否被选中,可避免在用户误触的情况下进行下一步骤,浪费有效资源;而且用户与VR设备进行交互时,只有首先判断可交互区域是否被选中后,才可确保在判断为敲击动作后,可执行对应的操作。The user may accidentally touch the VR device when using the VR device. When the user touches the VR device by mistake, the interactive area in the video interface may not be selected. First, determine whether the interactive area is selected to avoid the accidental touch by the user. The next step is to go to the next step, which wastes effective resources; and when the user interacts with the VR device, only after first judging whether the interactive area is selected, can it be ensured that the corresponding operation can be performed after it is judged as a tapping action.

步骤S240,如果可以交互区域被选中,则根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击。如果可交互区域没有被选中,则不进行任何处理。In step S240, if the interactive area is selected, it is determined whether the VR device is knocked according to the data collected by the acceleration sensor in the period. If the interactable area is not selected, nothing is done.

步骤S250,如果判断为受到敲击,则执行被选中的可交互区域所对应的操作。In step S250, if it is determined that a tap has been received, the operation corresponding to the selected interactable area is executed.

在本发明的一个实施例中,图2所示的方法进一步包括:In one embodiment of the present invention, the method shown in FIG. 2 further includes:

为了判断VR设备是否在运动过程中,需要利用VR设备中的陀螺仪采集数据。In order to determine whether the VR device is in motion, it is necessary to use the gyroscope in the VR device to collect data.

在所步骤S240中根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击的步骤之前,根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中;如果判断VR设备不在运动过程中,再执行根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击的步骤。Before the step of judging whether the VR device is hit according to the data collected by the acceleration sensor in the cycle in step S240, it is judged whether the VR device is in motion according to the data collected by the gyroscope in the cycle; if it is judged that the VR device is not in the motion process , and then perform the step of judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period.

具体地,根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中包括:分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定VR设备在运动过程中,否则确定VR设备不在运动过程中。Specifically, judging whether the VR device is in motion according to the data collected by the gyroscope in the period includes: calculating the average value of the three-axis data of the gyroscope in the period respectively; if the average value of any axis is greater than the first preset threshold, Then it is determined that the VR device is in the process of exercising, otherwise it is determined that the VR device is not in the process of exercising.

在本发明的一个实施例中,步骤S230中判断VR视频界面中的可交互区域是否被选中包括:判断是否VR视频界面中的用户焦点落在可交互区域且停留时间超过预设时长,如果判断为是则确定可交互区域被选中。用户使用VR设备进行观看视频时,可在全方位空间内进行观看,为保证用户与VR设备的交互方便,在观看视频时,在用户视线的中心位置设置一个焦点,当用户需要进行交互操作时,需将焦点移动到可交互区域。那么在本实施例中,判断可交互区域是否被选中,就是判断该用户焦点是否落在了可交互区域;另,用户在观看视频时,是可以进行各角度观看的,可能出现用户焦点在可交互区域一览而过的情况,为了防止这种情况下的误判,需判断用户焦点是否落在可交互区域的同时还需判断用户焦点在可交互区域的停留时间是否超过预设时长,如果判断为是则确定可交互区域被选中,如果判断为否,说明是观看过程中用户焦点没有在可交互区域或者只是在可交互区域一览而过的情况,不进行任何处理。In one embodiment of the present invention, judging whether the interactive area in the VR video interface is selected in step S230 includes: judging whether the user's focus in the VR video interface falls on the interactive area and the stay time exceeds a preset time length, if judging whether the user's focus in the VR video interface falls on the interactive area If yes, make sure that the interactive area is selected. When users use VR devices to watch videos, they can watch videos in an omni-directional space. In order to ensure the convenience of interaction between users and VR devices, a focus should be set at the center of the user's line of sight when watching videos. , you need to move the focus to the interactive area. Then, in this embodiment, judging whether the interactive area is selected is to judge whether the user's focus falls on the interactive area; in addition, when the user is watching the video, he can watch from various angles, and it may happen that the user's focus is on the interactive area. In order to prevent misjudgment in this situation, it is necessary to judge whether the user's focus falls on the interactive area and at the same time it is necessary to judge whether the user's focus in the interactive area exceeds the preset time. If yes, it is determined that the interactive area is selected. If it is judged to be no, it means that the user's focus is not in the interactive area or just glanced over the interactive area during the viewing process, and no processing is performed.

在本发明的一个实施例中,步骤S250中执行被选中的可交互区域所对应的操作包括:根据可交互区域中所绘制的控制键,对VR视频执行相应的操作。In an embodiment of the present invention, performing the operation corresponding to the selected interactive area in step S250 includes: performing a corresponding operation on the VR video according to the control keys drawn in the interactive area.

在本发明的一个实施例中,步骤S240中根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击包括:根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。In an embodiment of the present invention, in step S240, judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period includes: according to the X, Y, Z three-axis data collected by the acceleration sensor in the period, judging the X axis Whether the change of the data is less than the preset range, and whether there is a sudden peak in any one of the Y-axis and Z-axis data, if both are determined to be yes, it is determined that the terminal device is knocked.

具体地,判断判断X轴数据的变化是否小于预设范围包括:Specifically, judging whether the change of the X-axis data is less than the preset range includes:

判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Determine whether the average value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes, determine that the change in the X-axis data is less than the preset range .

进一步地,判断Y轴和Z轴数据的任一个中是否有突发峰包括:Further, judging whether there is a burst peak in any of the Y-axis and Z-axis data includes:

对于该周期内的Y轴/Z轴数据,如果高于第四预设阈值的数据个数小于n,最高的m(m>n)个数据的均值小于第五预设阈值,则确定有突发峰。For the Y-axis/Z-axis data in this period, if the number of data higher than the fourth preset threshold is less than n, and the mean value of the highest m (m>n) data is less than the fifth preset threshold, it is determined that there is a sudden peak.

在本发明的一个实施例中,图2所示的方法进一步包括:In one embodiment of the present invention, the method shown in FIG. 2 further includes:

如果判断VR设备是在运动过程中,则终止该周期内的检测并清除该周期内采集的数据;以及,如果判断为未受到敲击,则终止该周期内的检测并清除该周期内采集的数据。If it is judged that the VR device is in motion, the detection in the period is terminated and the data collected in the period is cleared; and, if it is judged that the VR device is not hit, the detection in the period is terminated and the data collected in the period is cleared data.

需要说明的是,图2所示的方法和图1所示的方法的各实施例对应相同,上文已有详细说明,在此不再赘述。It should be noted that the method shown in FIG. 2 corresponds to each embodiment of the method shown in FIG. 1 , which has been described in detail above and will not be repeated here.

图3示出了根据本发明一个实施例的一种实现与智能终端交互的装置的示意图。如图3所示,实现与智能终端交互的装置300包括:Fig. 3 shows a schematic diagram of an apparatus for implementing interaction with a smart terminal according to an embodiment of the present invention. As shown in FIG. 3, the apparatus 300 for realizing interaction with an intelligent terminal includes:

设置单元310,适于设定大小等于预设时间长度的数据采集周期;a setting unit 310, adapted to set a data collection period whose size is equal to a preset time length;

数据采集单元320,适于利用智能终端中的陀螺仪和加速度传感器采集数据;a data acquisition unit 320, adapted to collect data by using a gyroscope and an acceleration sensor in the smart terminal;

检测单元330,适于每当一个数据采集周期结束时,根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中;如果判断智能终端不在运动过程中,则进一步根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击;如果判断为受到敲击,则通知执行单元;The detection unit 330 is adapted to judge whether the smart terminal is in the process of movement according to the data collected by the gyroscope in the cycle whenever a data collection cycle ends; if it is judged that the smart terminal is not in the process of movement, then further according to the acceleration sensor in the cycle The collected data judges whether the terminal equipment is knocked; if it is judged to be knocked, the execution unit is notified;

执行单元340,适于在收到通知后,确定与敲击指令对应的操作并在智能终端中执行该操作。The execution unit 340 is adapted to, after receiving the notification, determine the operation corresponding to the tapping instruction and execute the operation in the smart terminal.

在本发明的一个实施例中,检测单元330,适于分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定智能终端在运动过程中,否则确定智能终端不在运动过程中。In an embodiment of the present invention, the detection unit 330 is adapted to respectively calculate the average value of the three-axis data of the gyroscope in the period; if the average value of any axis is greater than the first preset threshold, it is determined that the smart terminal is in the process of movement , otherwise it is determined that the smart terminal is not in motion.

在本发明的一个实施例中,检测单元330,适于根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。In an embodiment of the present invention, the detection unit 330 is adapted to determine whether the change of the X-axis data is less than a preset range, and to determine whether the change of the X-axis data is less than a preset range, and determine whether the Y-axis and Z-axis data are collected by the acceleration sensor in the period. Whether there is a sudden peak in any of the axis data, and if both are judged to be yes, it is determined that the terminal device is struck.

具体地,检测单元330,适于判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Specifically, the detection unit 330 is adapted to determine whether the average value of the X-axis data in the period is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the period, and if it is determined to be yes, determine The change in the X-axis data is smaller than the preset range.

进一步地,检测单元330,适于当该周期内的X轴/Y轴数据中,高于第四预设阈值的数据个数小于n,且最高的m(m>n)个数据的均值小于第五预设阈值时,确定有突发峰。Further, the detection unit 330 is adapted to when, in the X-axis/Y-axis data in the period, the number of data higher than the fourth preset threshold is less than n, and the mean value of the highest m (m>n) data is less than At the fifth preset threshold, it is determined that there is a sudden peak.

在本发明的一个实施例中,检测单元330,适于当判断智能终端是在运动过程中时,终止该周期内的检测并清除该周期内采集的数据;以及,当判断为未受到敲击时,终止该周期内的检测并清除该周期内采集的数据。In one embodiment of the present invention, the detection unit 330 is adapted to terminate the detection in the period and clear the data collected in the period when it is determined that the smart terminal is in the process of movement; , the detection in this period is terminated and the data collected in this period is cleared.

在本发明的一个实施例中,执行单元340,适于根据预先定义的敲击指令以及执行操作的对应关系,确定与敲击指令对应的操作;或者,适于判断智能终端的显示界面上的可操作区域是否被选中,如果被选中,则将该可操作区域对应的执行操作作为与敲击指令对应的操作。In an embodiment of the present invention, the execution unit 340 is adapted to determine the operation corresponding to the tapping instruction according to the predefined correspondence between the tapping instruction and the execution operation; or, is adapted to determine the operation on the display interface of the smart terminal. Whether the operable area is selected, if so, the execution operation corresponding to the operable area is regarded as the operation corresponding to the tapping instruction.

需要说明的是图3所示装置的各实施例和图1所示方法的各实施例对应相同,上文已有详细说明,在此不再赘述。It should be noted that each embodiment of the apparatus shown in FIG. 3 corresponds to each embodiment of the method shown in FIG. 1 , which has been described in detail above and will not be repeated here.

图4示出了根据本发明一个实施例的一种实现与VR设备交互的装置的示意图。如图4所示,实现与VR设备交互的装置400包括:FIG. 4 shows a schematic diagram of an apparatus for implementing interaction with a VR device according to an embodiment of the present invention. As shown in FIG. 4 , the apparatus 400 for realizing interaction with a VR device includes:

设置单元410,适于设定大小等于预设时间长度的数据采集周期;The setting unit 410 is adapted to set a data collection period whose size is equal to a preset time length;

数据采集单元420,适于利用VR设备中的加速度传感器采集数据;a data acquisition unit 420, adapted to collect data by using an acceleration sensor in the VR device;

检测单元430,适于每当一个数据采集周期结束时,判断VR视频界面中的可交互区域是否被选中;如果可以交互区域被选中,则根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击;如果判断为受到敲击,则通知执行单元;The detection unit 430 is adapted to judge whether the interactable area in the VR video interface is selected every time a data collection period ends; if the interactive area is selected, judge whether the VR device is affected by the data collected by the acceleration sensor in the period. Knock; if it is judged to be knocked, the execution unit is notified;

执行单元440,适于在收到通知后执行被选中的可交互区域所对应的操作。The execution unit 440 is adapted to execute the operation corresponding to the selected interactable area after receiving the notification.

在本发明的一个实施例中,数据采集单元420,进一步适于利用VR设备中的陀螺仪采集数据;In an embodiment of the present invention, the data collection unit 420 is further adapted to collect data by using a gyroscope in the VR device;

则检测单元430,进一步适于在根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击的步骤之前,根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中;如果判断VR设备不在运动过程中,再执行根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击的步骤。Then the detection unit 430 is further adapted to determine whether the VR device is in motion according to the data collected by the gyroscope in the cycle before the step of judging whether the VR device is struck according to the data collected by the acceleration sensor in the cycle; When the device is not in motion, the step of judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period is performed again.

进一步地,检测单元430,适于分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定VR设备在运动过程中,否则确定VR设备不在运动过程中。Further, the detection unit 430 is adapted to calculate the average value of the three-axis data of the gyroscope in the period respectively; if the average value of any axis is greater than the first preset threshold, it is determined that the VR device is in motion, otherwise it is determined that the VR device is in motion not during exercise.

在本发明的一个实施例中,检测单元430,适于判断是否VR视频界面中的用户焦点落在可交互区域且停留时间超过预设时长,如果判断为是则确定可交互区域被选中。In one embodiment of the present invention, the detection unit 430 is adapted to determine whether the user's focus in the VR video interface falls on the interactive area and stays for longer than a preset time period, and if it is determined to be yes, it is determined that the interactive area is selected.

在本发明的一个实施例中,执行单元440,至于根据可交互区域中所绘制的控制键,对VR视频执行相应的操作。In one embodiment of the present invention, the execution unit 440 performs corresponding operations on the VR video according to the control keys drawn in the interactive area.

在本发明的一个实施例中,检测单元430,适于根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。In an embodiment of the present invention, the detection unit 430 is adapted to determine whether the change of the X-axis data is less than a preset range, and to determine whether the change of the X-axis data is less than a preset range, and determine whether the Y-axis and Z-axis Whether there is a sudden peak in any of the axis data, and if both are judged to be yes, it is determined that the terminal device is struck.

具体地,检测单元430,适于判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Specifically, the detection unit 430 is adapted to determine whether the mean value of the X-axis data in the period is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the period, and if it is determined to be yes, then determine The change in the X-axis data is smaller than the preset range.

进一步地,检测单元430,适于对于该周期内的X轴/Y轴数据,如果高于第四预设阈值的数据个数小于n,最高的m(m>n)个数据的均值小于第五预设阈值,则确定有突发峰。Further, the detection unit 430 is adapted to the X-axis/Y-axis data in this cycle, if the number of data higher than the fourth preset threshold is less than n, the mean value of the highest m (m>n) data is less than the th Five preset thresholds, it is determined that there is a sudden peak.

在本发明的一个实施例中,检测单元430,适于当判断VR设备是在运动过程中时,终止该周期内的检测并清除该周期内采集的数据;以及,当判断为未受到敲击时,终止该周期内的检测并清除该周期内采集的数据。In one embodiment of the present invention, the detection unit 430 is adapted to terminate the detection in the period and clear the data collected in the period when it is determined that the VR device is in motion; , the detection in this period is terminated and the data collected in this period is cleared.

需要说明的是图4所示装置的各实施例和图2所示方法的各实施例对应相同,上文已有详细说明,在此不再赘述。It should be noted that each embodiment of the apparatus shown in FIG. 4 corresponds to each embodiment of the method shown in FIG. 2 , which has been described in detail above and will not be repeated here.

综上所述,根据本发明的技术方案,在与智能终端进行交互的过程中,充分利用智能终端中现有的陀螺仪和加速度传感器采集设定的时间周期内的数据,判断智能终端是否在运动过程中,若判断为否,进一步判断该智能终端是否受到敲击,若再判断为是,则执行与敲击指令对应的操作。也就是说用户在使用智能终端的过程中,如果想要执行某一功能键的操作,不再需要等待2-3秒,可以采用轻轻敲击智能终端的方式进行该功能键的操作确认,实现与智能终端交互的方便快捷;同时为了消除用户在运动过程中使用智能终端时的误操作,减少误判,利用采集的数据进行智能终端是否在运动过程中的判断,保证了智能终端对用户操作的判断的准确性和可靠性。可见,本发明的技术方案保证与智能终端交互的方便快捷,减少用户的被动等待时间,以及保证了与智能终端交互的操作判断的准确性和可靠性,可减少误判,增强用户的体验。To sum up, according to the technical solution of the present invention, in the process of interacting with the smart terminal, the existing gyroscope and acceleration sensor in the smart terminal are fully utilized to collect data within a set time period to determine whether the smart terminal is in the During the movement, if it is judged as NO, it is further judged whether the intelligent terminal has been tapped, and if it is judged as yes again, the operation corresponding to the tap instruction is executed. That is to say, in the process of using the smart terminal, if the user wants to perform an operation of a function key, he no longer needs to wait for 2-3 seconds, and can confirm the operation of the function key by gently tapping the smart terminal. Realize the convenience and speed of interaction with the intelligent terminal; at the same time, in order to eliminate the misoperation of the user when using the intelligent terminal during exercise and reduce misjudgment, the collected data is used to judge whether the intelligent terminal is in the process of exercise, and the intelligent terminal is guaranteed to the user. The accuracy and reliability of operational judgments. It can be seen that the technical solution of the present invention ensures the convenience and speed of interaction with the intelligent terminal, reduces the passive waiting time of the user, and ensures the accuracy and reliability of the operation judgment of the interaction with the intelligent terminal, which can reduce misjudgments and enhance the user experience.

需要说明的是:It should be noted:

在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual appliance, or other device. Various general-purpose devices can also be used with the teachings based on this. The structure required to construct such a device is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的实现与智能终端、与VR设备交互的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the components of the apparatus for implementing interaction with a smart terminal and a VR device according to embodiments of the present invention. some or all functions. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

本发明提供了A1、一种实现与智能终端交互的方法,其中,该方法包括:The present invention provides A1, a method for realizing interaction with an intelligent terminal, wherein the method includes:

设定大小等于预设时间长度的数据采集周期;Set the data collection period equal to the preset time length;

利用智能终端中的陀螺仪和加速度传感器采集数据;Use the gyroscope and acceleration sensor in the smart terminal to collect data;

每当一个数据采集周期结束时,Whenever a data acquisition cycle ends,

根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中;Determine whether the smart terminal is in motion according to the data collected by the gyroscope in this period;

如果判断智能终端不在运动过程中,则进一步根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击;If it is determined that the smart terminal is not in motion, further determine whether the terminal device is knocked according to the data collected by the acceleration sensor in the period;

如果判断为受到敲击,则确定与敲击指令对应的操作并在智能终端中执行该操作。If it is determined that a tap has been received, the operation corresponding to the tapping instruction is determined and the operation is executed in the smart terminal.

A2、如A1所述的方法,其中,所述根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中包括:A2. The method of A1, wherein the determining whether the smart terminal is in motion according to the data collected by the gyroscope in the cycle includes:

分别计算该周期内陀螺仪三轴数据的平均值;Calculate the average value of the three-axis data of the gyroscope in this period respectively;

如果任一轴的平均值大于第一预设阈值,则确定智能终端在运动过程中,否则确定智能终端不在运动过程中。If the average value of any axis is greater than the first preset threshold, it is determined that the smart terminal is in the process of movement; otherwise, it is determined that the smart terminal is not in the process of movement.

A3、如A1所述的方法,其中,所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击包括:A3. The method according to A1, wherein the determining whether the terminal device is knocked according to the data collected by the acceleration sensor in the period includes:

根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。According to the X, Y, Z three-axis data collected by the acceleration sensor in this period, it is judged whether the change of the X-axis data is less than the preset range, and whether there is a sudden peak in either of the Y-axis and Z-axis data, and if both are judged If yes, it is determined that the terminal device is hit.

A4、如A3所述的方法,其中,所述判断X轴数据的变化是否小于预设范围包括:A4. The method according to A3, wherein the judging whether the change of the X-axis data is less than a preset range includes:

判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Determine whether the average value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes, determine that the change in the X-axis data is less than the preset range .

A5、如A3所述的方法,其中,所述判断Y轴和Z轴数据的任一个中是否有突发峰包括:A5. The method according to A3, wherein the judging whether there is a burst peak in any one of the Y-axis and Z-axis data includes:

该周期内的Y轴/Z轴数据中,如果高于第四预设阈值的数据个数小于n,且最高的m个数据的均值小于第五预设阈值,则确定有突发峰;其中m大于n。In the Y-axis/Z-axis data in this period, if the number of data higher than the fourth preset threshold is less than n, and the average value of the highest m data is less than the fifth preset threshold, it is determined that there is a burst peak; wherein m is greater than n.

A6、如A1所述的方法,其中,该方法进一步包括:A6. The method of A1, wherein the method further comprises:

如果判断智能终端是在运动过程中,则终止该周期内的检测并清除该周期内采集的数据;If it is determined that the smart terminal is in motion, the detection in the period is terminated and the data collected in the period is cleared;

以及,如果判断为未受到敲击,则终止该周期内的检测并清除该周期内采集的数据。And, if it is determined that there is no knock, the detection in this period is terminated and the data collected in this period is cleared.

A7、如A1-A6中任一项所述的方法,其中,确定与敲击指令对应的操作包括:A7. The method according to any one of A1-A6, wherein determining the operation corresponding to the tapping instruction includes:

根据预先定义的敲击指令以及执行操作的对应关系,确定与敲击指令对应的操作;Determine the operation corresponding to the percussion instruction according to the predefined percussion instruction and the corresponding relationship of the execution operation;

或者,or,

判断智能终端的显示界面上的可操作区域是否被选中,如果是则将该可操作区域对应的执行操作作为与敲击指令对应的操作。It is judged whether the operable area on the display interface of the smart terminal is selected, and if so, the execution operation corresponding to the operable area is regarded as the operation corresponding to the tapping instruction.

本发明还提供了B8、一种实现与VR设备交互的方法,其中,该方法包括:The present invention also provides B8, a method for realizing interaction with a VR device, wherein the method includes:

设定大小等于预设时间长度的数据采集周期;Set the data collection period equal to the preset time length;

利用VR设备中的加速度传感器采集数据;Use the acceleration sensor in the VR device to collect data;

每当一个数据采集周期结束时,Whenever a data acquisition cycle ends,

判断VR视频界面中的可交互区域是否被选中;Determine whether the interactive area in the VR video interface is selected;

如果可以交互区域被选中,则根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击;If the interactive area is selected, judge whether the VR device is knocked according to the data collected by the acceleration sensor in this period;

如果判断为受到敲击,则执行被选中的可交互区域所对应的操作。If it is determined that a tap is received, the operation corresponding to the selected interactive area is performed.

B9、如B8所述的方法,其中,该方法进一步包括:B9. The method of B8, wherein the method further comprises:

利用VR设备中的陀螺仪采集数据;Use the gyroscope in the VR device to collect data;

在所述根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击的步骤之前,根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中;如果判断VR设备不在运动过程中,再执行所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击的步骤。Before the step of judging whether the VR device is struck according to the data collected by the acceleration sensor in the cycle, determine whether the VR device is in motion according to the data collected by the gyroscope in the cycle; if it is determined that the VR device is not in motion, Then execute the step of judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period.

B10、如B9所述的方法,其中,所述根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中包括:B10. The method according to B9, wherein determining whether the VR device is in motion according to the data collected by the gyroscope in the cycle includes:

分别计算该周期内陀螺仪三轴数据的平均值;Calculate the average value of the three-axis data of the gyroscope in this period respectively;

如果任一轴的平均值大于第一预设阈值,则确定VR设备在运动过程中,否则确定VR设备不在运动过程中。If the average value of any axis is greater than the first preset threshold, it is determined that the VR device is in the process of movement, otherwise it is determined that the VR device is not in the process of movement.

B11、如B8所述的方法,其中,所述判断VR视频界面中的可交互区域是否被选中包括:B11. The method according to B8, wherein the determining whether the interactable area in the VR video interface is selected includes:

判断是否VR视频界面中的用户焦点落在可交互区域且停留时间超过预设时长,如果判断为是则确定所述可交互区域被选中。It is determined whether the user's focus in the VR video interface falls on the interactive area and the stay time exceeds a preset time period, and if it is determined to be yes, it is determined that the interactive area is selected.

B12、如B8所述的方法,其中,所述执行被选中的可交互区域所对应的操作包括:B12. The method according to B8, wherein the performing the operation corresponding to the selected interactable area includes:

根据所述可交互区域中所绘制的控制键,对VR视频执行相应的操作。According to the control keys drawn in the interactive area, corresponding operations are performed on the VR video.

B13、如B8所述的方法,其中,所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击包括:B13. The method according to B8, wherein the determining whether the terminal device is knocked according to the data collected by the acceleration sensor in the period includes:

根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。According to the X, Y, Z three-axis data collected by the acceleration sensor in this period, it is judged whether the change of the X-axis data is less than the preset range, and whether there is a sudden peak in either of the Y-axis and Z-axis data, and if both are judged If yes, it is determined that the terminal device is hit.

B14、如B13所述的方法,其中,所述判断X轴数据的变化是否小于预设范围包括:B14. The method according to B13, wherein the judging whether the change of the X-axis data is less than a preset range includes:

判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。Determine whether the average value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes, determine that the change in the X-axis data is less than the preset range .

B15、如B13所述的方法,其中,所述判断Y轴和Z轴数据的任一个中是否有突发峰包括:B15. The method according to B13, wherein the judging whether there is a burst peak in any one of the Y-axis and Z-axis data includes:

对于该周期内的Y轴/Z轴数据,如果高于第四预设阈值的数据个数小于n,最高的m个数据的均值小于第五预设阈值,则确定有突发峰;其中m大于n。For the Y-axis/Z-axis data in this period, if the number of data higher than the fourth preset threshold is less than n, and the average value of the highest m data is less than the fifth preset threshold, it is determined that there is a burst peak; where m greater than n.

B16、如B9所述的方法,其中,该方法进一步包括:B16. The method of B9, wherein the method further comprises:

如果判断VR设备是在运动过程中,则终止该周期内的检测并清除该周期内采集的数据;If it is determined that the VR device is in motion, the detection in this period is terminated and the data collected in this period is cleared;

以及,如果判断为未受到敲击,则终止该周期内的检测并清除该周期内采集的数据。And, if it is determined that there is no knock, the detection in this period is terminated and the data collected in this period is cleared.

本发明还提供了C17、一种实现与智能终端交互的装置,其中,该装置包括:The present invention also provides C17, a device for realizing interaction with an intelligent terminal, wherein the device includes:

设置单元,适于设定大小等于预设时间长度的数据采集周期;a setting unit, suitable for setting a data collection period whose size is equal to a preset time length;

数据采集单元,适于利用智能终端中的陀螺仪和加速度传感器采集数据;The data acquisition unit is suitable for collecting data by using the gyroscope and the acceleration sensor in the smart terminal;

检测单元,适于每当一个数据采集周期结束时,根据该周期内陀螺仪采集的数据判断智能终端是否在运动过程中;如果判断智能终端不在运动过程中,则进一步根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击;如果判断为受到敲击,则通知执行单元;The detection unit is adapted to determine whether the smart terminal is in the process of movement according to the data collected by the gyroscope in the cycle when the data collection cycle ends; if it is determined that the smart terminal is not in the process of movement, then further according to the data collected by the acceleration sensor in the cycle The data judges whether the terminal equipment is knocked; if it is judged to be knocked, the execution unit is notified;

执行单元,适于在收到通知后,确定与敲击指令对应的操作并在智能终端中执行该操作。The execution unit is adapted to, after receiving the notification, determine the operation corresponding to the tapping instruction and execute the operation in the intelligent terminal.

C18、如C17所述的装置,其中,C18. The apparatus of C17, wherein,

所述检测单元,适于分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定智能终端在运动过程中,否则确定智能终端不在运动过程中。The detection unit is adapted to calculate the average value of the three-axis data of the gyroscope in the period respectively; if the average value of any axis is greater than the first preset threshold, it is determined that the smart terminal is in the process of movement, otherwise it is determined that the smart terminal is not in motion in the process.

C19、如C17所述的装置,其中,C19. The apparatus of C17, wherein,

所述检测单元,适于根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。The detection unit is suitable for judging whether the change of the X-axis data is less than the preset range according to the X, Y, Z three-axis data collected by the acceleration sensor in this period, and whether there is any one of the Y-axis and Z-axis data. Burst peaks, if both are judged to be yes, it is determined that the terminal device is knocked.

C20、如C19所述的装置,其中,C20. The apparatus of C19, wherein,

所述检测单元,适于判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。The detection unit is adapted to determine whether the average value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes, determine the X-axis The change in data is less than the preset range.

C21、如C19所述的装置,其中,C21. The apparatus of C19, wherein,

所述检测单元,适于当该周期内的X轴/Y轴数据中,高于第四预设阈值的数据个数小于n,且最高的m个数据的均值小于第五预设阈值时,确定有突发峰;其中m大于n。The detection unit is adapted to when, in the X-axis/Y-axis data in the period, the number of data higher than the fourth preset threshold is less than n, and the mean value of the highest m data is less than the fifth preset threshold, A burst peak is determined; where m is greater than n.

C22、如C17所述的装置,其中,C22. The apparatus of C17, wherein,

所述检测单元,适于当判断智能终端是在运动过程中时,终止该周期内的检测并清除该周期内采集的数据;以及,当判断为未受到敲击时,终止该周期内的检测并清除该周期内采集的数据。The detection unit is adapted to terminate the detection in the period and clear the data collected in the period when it is judged that the smart terminal is in motion; and, when it is judged that it has not been knocked, terminate the detection in the period And clear the data collected in this period.

C23、如C17-C22中任一项所述的装置,其中,C23. The device of any one of C17-C22, wherein,

所述执行单元,适于根据预先定义的敲击指令以及执行操作的对应关系,确定与敲击指令对应的操作;或者,适于判断智能终端的显示界面上的可操作区域是否被选中,如果被选中,则将该可操作区域对应的执行操作作为与敲击指令对应的操作。The execution unit is suitable for determining the operation corresponding to the knocking instruction according to the predefined knocking instruction and the corresponding relationship of the execution operation; or, suitable for judging whether the operable area on the display interface of the intelligent terminal is selected, if If it is selected, the execution operation corresponding to the operable area is regarded as the operation corresponding to the tapping instruction.

本发明还提供了D24、一种实现与VR设备交互的装置,其中,该装置包括:The present invention also provides D24, an apparatus for realizing interaction with VR equipment, wherein the apparatus includes:

设置单元,适于设定大小等于预设时间长度的数据采集周期;a setting unit, suitable for setting a data collection period whose size is equal to a preset time length;

数据采集单元,适于利用VR设备中的加速度传感器采集数据;The data acquisition unit is suitable for collecting data by using the acceleration sensor in the VR device;

检测单元,适于每当一个数据采集周期结束时,判断VR视频界面中的可交互区域是否被选中;如果可以交互区域被选中,则根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击;如果判断为受到敲击,则通知执行单元;The detection unit is adapted to judge whether the interactive area in the VR video interface is selected every time a data collection period ends; if the interactive area is selected, judge whether the VR device has been knocked according to the data collected by the acceleration sensor in the period Strike; if it is judged to be struck, notify the execution unit;

执行单元,适于在收到通知后执行被选中的可交互区域所对应的操作。The execution unit is adapted to execute the operation corresponding to the selected interactive area after receiving the notification.

D25、如D24所述的装置,其中,D25. The device of D24, wherein,

所述数据采集单元,进一步适于利用VR设备中的陀螺仪采集数据;The data acquisition unit is further adapted to use the gyroscope in the VR device to collect data;

所述检测单元,进一步适于在所述根据该周期内加速度传感器采集的数据判断VR设备是否受到敲击的步骤之前,根据该周期内陀螺仪采集的数据判断VR设备是否在运动过程中;如果判断VR设备不在运动过程中,再执行所述根据该周期内加速度传感器采集的数据判断终端设备是否受到敲击的步骤。The detection unit is further adapted to determine whether the VR device is in motion according to the data collected by the gyroscope in the cycle before the step of judging whether the VR device is knocked according to the data collected by the acceleration sensor in the cycle; if It is judged that the VR device is not in motion, and then the step of judging whether the terminal device is knocked according to the data collected by the acceleration sensor in the period is performed.

D26、如D25所述的装置,其中,D26. The device of D25, wherein,

所述检测单元,适于分别计算该周期内陀螺仪三轴数据的平均值;如果任一轴的平均值大于第一预设阈值,则确定VR设备在运动过程中,否则确定VR设备不在运动过程中。The detection unit is adapted to calculate the average value of the three-axis data of the gyroscope in the period respectively; if the average value of any axis is greater than the first preset threshold, it is determined that the VR device is in motion, otherwise it is determined that the VR device is not in motion in the process.

D27、如D24所述的装置,其中,D27. The device of D24, wherein,

所述检测单元,适于判断是否VR视频界面中的用户焦点落在可交互区域且停留时间超过预设时长,如果判断为是则确定所述可交互区域被选中。The detection unit is adapted to determine whether the user's focus in the VR video interface falls on the interactable area and the staying time exceeds a preset time period, and if it is determined to be yes, it is determined that the interactable area is selected.

D28、如D24所述的装置,其中,D28. The device of D24, wherein,

所述执行单元,至于根据所述可交互区域中所绘制的控制键,对VR视频执行相应的操作。The execution unit performs corresponding operations on the VR video according to the control keys drawn in the interactable area.

D29、如D24所述的装置,其中,D29. The device of D24, wherein,

所述检测单元,适于根据该周期内加速度传感器采集的X、Y、Z三轴数据,判断X轴数据的变化是否小于预设范围,以及判断Y轴和Z轴数据的任一个中是否有突发峰,如果都判断为是则确定终端设备受到敲击。The detection unit is suitable for judging whether the change of the X-axis data is less than the preset range according to the X, Y, Z three-axis data collected by the acceleration sensor in this period, and whether there is any one of the Y-axis and Z-axis data. Burst peaks, if both are judged to be yes, it is determined that the terminal device is knocked.

D30、如D29所述的装置,其中,D30. The device of D29, wherein,

所述检测单元,适于判断是否该周期内X轴数据的均值小于第二预设阈值且该周期内X轴数据中不存在大于第三预设阈值的数据,如果判断为是则确定X轴数据的变化小于预设范围。The detection unit is adapted to determine whether the average value of the X-axis data in the cycle is less than the second preset threshold and there is no data greater than the third preset threshold in the X-axis data in the cycle, and if it is determined to be yes, determine the X-axis The change in data is less than the preset range.

D31、如D29所述的装置,其中,D31. The device of D29, wherein,

所述检测单元,适于对于该周期内的X轴/Y轴数据,如果高于第四预设阈值的数据个数小于n,最高的m个数据的均值小于第五预设阈值,则确定有突发峰;其中m大于n。The detection unit is adapted to, for the X-axis/Y-axis data in the cycle, if the number of data higher than the fourth preset threshold is less than n, and the average value of the highest m data is less than the fifth preset threshold, then determine There are burst peaks; where m is greater than n.

D32、如D24所述的装置,其中,D32. The apparatus of D24, wherein,

所述检测单元,适于当判断VR设备是在运动过程中时,终止该周期内的检测并清除该周期内采集的数据;以及,当判断为未受到敲击时,终止该周期内的检测并清除该周期内采集的数据。The detection unit is adapted to terminate the detection in the period and clear the data collected in the period when it is determined that the VR device is in motion; and, when it is determined that the VR device is not hit, terminate the detection in the period And clear the data collected in this period.

Claims (26)

1. A method for realizing interaction with an intelligent terminal is provided, wherein the method comprises the following steps:
setting a data acquisition period with the size equal to a preset time length;
acquiring data by using a gyroscope and an acceleration sensor in the intelligent terminal;
each time a data acquisition cycle is completed,
judging whether the intelligent terminal is in the motion process according to the data acquired by the gyroscope in the period so as to prevent misoperation when a user uses the intelligent equipment in the motion process;
if the intelligent terminal is judged not to be in the motion process, whether the terminal equipment is knocked or not is further judged according to the data collected by the acceleration sensor in the period;
if the intelligent terminal is judged to be knocked, determining the operation corresponding to the knocking instruction and executing the operation in the intelligent terminal;
wherein the operation corresponding to the tapping instruction is determined according to a user focus in the VR video interface;
the method further comprises the following steps:
if the intelligent terminal is judged to be in the motion process, stopping the detection in the period and clearing the data collected in the period;
and if the knocking is judged not to be received, terminating the detection in the period and clearing the data collected in the period.
2. The method of claim 1, wherein the determining whether the intelligent terminal is in motion according to the data collected by the gyroscope in the period comprises:
respectively calculating the average value of the three-axis data of the gyroscope in the period;
and if the average value of any axis is larger than a first preset threshold value, determining that the intelligent terminal is in the motion process, otherwise, determining that the intelligent terminal is not in the motion process.
3. The method of claim 1, wherein the determining whether the terminal device is knocked according to the data collected by the acceleration sensor in the period comprises:
and judging whether the change of the X-axis data is smaller than a preset range or not and whether any one of the Y-axis data and the Z-axis data has a sudden peak or not according to X, Y, Z triaxial data acquired by the acceleration sensor in the period, and if so, determining that the terminal equipment is knocked.
4. The method of claim 3, wherein the determining whether the change of the X-axis data is less than a preset range comprises:
and judging whether the mean value of the X-axis data in the period is smaller than a second preset threshold value and whether data larger than a third preset threshold value does not exist in the X-axis data in the period, and if so, determining that the change of the X-axis data is smaller than a preset range.
5. The method of claim 3, wherein the determining whether there is a burst peak in any of the Y-axis and Z-axis data comprises:
in Y-axis or Z-axis data in the period, if the number of data higher than a fourth preset threshold is less than n and the average value of the highest m data is less than a fifth preset threshold, determining that a burst peak exists; wherein m is greater than n.
6. The method of any of claims 1-5, wherein determining an operation corresponding to a tap instruction comprises:
determining an operation corresponding to the tapping instruction according to a predefined corresponding relation between the tapping instruction and the execution operation;
or,
judging whether an operable area on a display interface of the intelligent terminal is selected, and if so, taking the execution operation corresponding to the operable area as the operation corresponding to the knocking instruction.
7. A method of enabling interaction with a VR device, wherein the method comprises:
setting a data acquisition period with the size equal to a preset time length;
acquiring data by using an acceleration sensor in VR equipment;
each time a data acquisition cycle is completed,
judging whether an interactive area in a VR video interface is selected;
if the interactive area is selected, judging whether the VR equipment is knocked according to data collected by the acceleration sensor in the period;
if the touch is judged to be touched, the operation corresponding to the selected interactive area is executed;
the method further comprises the following steps:
acquiring data by using a gyroscope in VR equipment;
before the step of judging whether the VR equipment is knocked according to the data collected by the acceleration sensor in the period, judging whether the VR equipment is in the motion process according to the data collected by the gyroscope in the period; if the VR equipment is judged not to be in the motion process, the step of judging whether the terminal equipment is knocked or not according to the data collected by the acceleration sensor in the period is executed;
the method further comprises the following steps:
if the VR equipment is judged to be in the motion process, the detection in the period is stopped, and the data collected in the period are cleared;
and if the knocking is judged not to be received, terminating the detection in the period and clearing the data collected in the period.
8. The method of claim 7, wherein determining whether the VR device is in motion based on the data collected by the gyroscope during the period comprises:
respectively calculating the average value of the three-axis data of the gyroscope in the period;
and if the average value of any axis is larger than a first preset threshold value, determining that the VR device is in the process of moving, otherwise, determining that the VR device is not in the process of moving.
9. The method of claim 7, wherein the determining whether an interactable region in the VR video interface is selected comprises:
judging whether a user focus in a VR video interface is in an interactive area and the stay time exceeds a preset time length, and if so, determining that the interactive area is selected.
10. The method of claim 7, wherein the performing the operation corresponding to the selected interactive area comprises:
and executing corresponding operation on the VR video according to the control keys drawn in the interactive area.
11. The method as claimed in claim 7, wherein the determining whether the terminal device is knocked according to the data collected by the acceleration sensor during the period comprises:
and judging whether the change of the X-axis data is smaller than a preset range or not and whether any one of the Y-axis data and the Z-axis data has a sudden peak or not according to X, Y, Z triaxial data acquired by the acceleration sensor in the period, and if so, determining that the terminal equipment is knocked.
12. The method of claim 11, wherein the determining whether the change of the X-axis data is less than a preset range comprises:
and judging whether the mean value of the X-axis data in the period is smaller than a second preset threshold value and whether data larger than a third preset threshold value does not exist in the X-axis data in the period, and if so, determining that the change of the X-axis data is smaller than a preset range.
13. The method of claim 11, wherein the determining whether there is a burst peak in any one of the Y-axis and Z-axis data comprises:
for Y-axis or Z-axis data in the period, if the number of data higher than a fourth preset threshold is less than n and the average value of the highest m data is less than a fifth preset threshold, determining that a burst peak exists; wherein m is greater than n.
14. An apparatus for realizing interaction with a smart terminal, wherein the apparatus comprises:
the setting unit is suitable for setting a data acquisition period with the size equal to the preset time length;
the data acquisition unit is suitable for acquiring data by utilizing a gyroscope and an acceleration sensor in the intelligent terminal;
the detection unit is suitable for judging whether the intelligent terminal is in the motion process or not according to the data collected by the gyroscope in the period when one data collection period is finished so as to prevent misoperation when a user uses the intelligent equipment in the motion process; if the intelligent terminal is judged not to be in the motion process, whether the terminal equipment is knocked or not is further judged according to the data collected by the acceleration sensor in the period; if the knocking is judged to be received, the execution unit is informed;
the execution unit is suitable for determining the operation corresponding to the knocking instruction and executing the operation in the intelligent terminal after receiving the notification;
wherein the operation corresponding to the tapping instruction is determined according to a user focus in the VR video interface;
the detection unit is suitable for terminating the detection in the period and clearing the data collected in the period when the intelligent terminal is judged to be in the motion process; and when the knocking is judged not to be received, terminating the detection in the period and clearing the data collected in the period.
15. The apparatus of claim 14, wherein,
the detection unit is suitable for respectively calculating the average value of the three-axis data of the gyroscope in the period; and if the average value of any axis is larger than a first preset threshold value, determining that the intelligent terminal is in the motion process, otherwise, determining that the intelligent terminal is not in the motion process.
16. The apparatus of claim 14, wherein,
and the detection unit is suitable for judging whether the change of the X-axis data is smaller than a preset range or not and judging whether any one of the Y-axis data and the Z-axis data has a burst peak or not according to the X, Y, Z three-axis data acquired by the acceleration sensor in the period, and if so, determining that the terminal equipment is knocked.
17. The apparatus of claim 16, wherein,
the detection unit is suitable for judging whether the mean value of the X-axis data in the period is smaller than a second preset threshold value and whether data larger than a third preset threshold value does not exist in the X-axis data in the period, and if the mean value of the X-axis data in the period is smaller than the second preset threshold value, the change of the X-axis data is determined to be smaller than a preset range.
18. The apparatus of claim 16, wherein,
the detection unit is suitable for determining that a burst peak exists when the number of data higher than a fourth preset threshold in X-axis or Y-axis data in the period is less than n and the average value of the highest m data is less than a fifth preset threshold; wherein m is greater than n.
19. The apparatus of any one of claims 14-18,
the execution unit is suitable for determining the operation corresponding to the knocking instruction according to the corresponding relation of the predefined knocking instruction and the execution operation; or, the method is suitable for judging whether an operable area on a display interface of the intelligent terminal is selected, and if the operable area is selected, the execution operation corresponding to the operable area is used as the operation corresponding to the tapping instruction.
20. An apparatus that enables interaction with a VR device, wherein the apparatus comprises:
the setting unit is suitable for setting a data acquisition period with the size equal to the preset time length;
the data acquisition unit is suitable for acquiring data by utilizing an acceleration sensor in the VR equipment;
the detection unit is suitable for judging whether an interactive area in the VR video interface is selected or not when one data acquisition cycle is finished; if the interactive area is selected, judging whether the VR equipment is knocked according to data collected by the acceleration sensor in the period; if the knocking is judged to be received, the execution unit is informed;
the execution unit is suitable for executing the operation corresponding to the selected interactive area after receiving the notification;
the data acquisition unit is further suitable for acquiring data by utilizing a gyroscope in the VR device;
the detection unit is further suitable for judging whether the VR equipment is in the motion process according to the data collected by the gyroscope in the period before the step of judging whether the VR equipment is knocked according to the data collected by the acceleration sensor in the period; if the VR equipment is judged not to be in the motion process, the step of judging whether the terminal equipment is knocked or not according to the data collected by the acceleration sensor in the period is executed;
the detection unit is suitable for terminating the detection in the period and clearing the data collected in the period when the VR equipment is judged to be in the motion process; and when the knocking is judged not to be received, terminating the detection in the period and clearing the data collected in the period.
21. The apparatus of claim 20, wherein,
the detection unit is suitable for respectively calculating the average value of the three-axis data of the gyroscope in the period; and if the average value of any axis is larger than a first preset threshold value, determining that the VR device is in the process of moving, otherwise, determining that the VR device is not in the process of moving.
22. The apparatus of claim 20, wherein,
the detection unit is suitable for judging whether a user focus in the VR video interface is in an interactive area and the stay time exceeds preset time, and if yes, the interactive area is determined to be selected.
23. The apparatus of claim 20, wherein,
and the execution unit executes corresponding operation on the VR video according to the control key drawn in the interactive area.
24. The apparatus of claim 20, wherein,
and the detection unit is suitable for judging whether the change of the X-axis data is smaller than a preset range or not and judging whether any one of the Y-axis data and the Z-axis data has a burst peak or not according to the X, Y, Z three-axis data acquired by the acceleration sensor in the period, and if so, determining that the terminal equipment is knocked.
25. The apparatus of claim 24, wherein,
the detection unit is suitable for judging whether the mean value of the X-axis data in the period is smaller than a second preset threshold value and whether data larger than a third preset threshold value does not exist in the X-axis data in the period, and if the mean value of the X-axis data in the period is smaller than the second preset threshold value, the change of the X-axis data is determined to be smaller than a preset range.
26. The apparatus of claim 24, wherein,
the detection unit is suitable for determining that a burst peak exists if the number of data higher than a fourth preset threshold is less than n and the average value of the highest m data is less than a fifth preset threshold for Y-axis or Z-axis data in the period; wherein m is greater than n.
CN201610809863.2A 2016-09-07 2016-09-07 Method and device for realizing interaction with intelligent terminal and VR equipment Active CN106383597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610809863.2A CN106383597B (en) 2016-09-07 2016-09-07 Method and device for realizing interaction with intelligent terminal and VR equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610809863.2A CN106383597B (en) 2016-09-07 2016-09-07 Method and device for realizing interaction with intelligent terminal and VR equipment

Publications (2)

Publication Number Publication Date
CN106383597A CN106383597A (en) 2017-02-08
CN106383597B true CN106383597B (en) 2020-04-28

Family

ID=57939168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610809863.2A Active CN106383597B (en) 2016-09-07 2016-09-07 Method and device for realizing interaction with intelligent terminal and VR equipment

Country Status (1)

Country Link
CN (1) CN106383597B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109539A (en) * 2019-04-02 2019-08-09 努比亚技术有限公司 A kind of gestural control method, wearable device and computer readable storage medium
CN111880655B (en) * 2020-07-28 2024-05-17 拉扎斯网络科技(上海)有限公司 Detection device and method for locating knocking area
CN113687717B (en) * 2021-08-10 2025-01-24 青岛小鸟看看科技有限公司 VR interaction method and system based on position change
CN116055622B (en) * 2022-06-24 2023-10-20 荣耀终端有限公司 Function triggering method, storage medium and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218062A (en) * 2013-04-24 2013-07-24 伍斌 Man-machine interaction method and equipment based on acceleration sensor and motion recognition
CN104866105A (en) * 2015-06-03 2015-08-26 深圳市智帽科技开发有限公司 Eye movement and head movement interaction method for head-mounted display device
CN105549732A (en) * 2015-12-03 2016-05-04 小米科技有限责任公司 Method and device for controlling virtual reality device and virtual reality device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100994774B1 (en) * 2004-04-29 2010-11-16 삼성전자주식회사 Keystroke Devices and Methods
JP5023663B2 (en) * 2006-11-07 2012-09-12 ソニー株式会社 Imaging apparatus and imaging method
KR101839441B1 (en) * 2014-09-17 2018-03-16 (주)에프엑스기어 Head-mounted display controlled by tapping, method for controlling the same and computer program for controlling the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218062A (en) * 2013-04-24 2013-07-24 伍斌 Man-machine interaction method and equipment based on acceleration sensor and motion recognition
CN104866105A (en) * 2015-06-03 2015-08-26 深圳市智帽科技开发有限公司 Eye movement and head movement interaction method for head-mounted display device
CN105549732A (en) * 2015-12-03 2016-05-04 小米科技有限责任公司 Method and device for controlling virtual reality device and virtual reality device

Also Published As

Publication number Publication date
CN106383597A (en) 2017-02-08

Similar Documents

Publication Publication Date Title
US20230280793A1 (en) Adaptive enclosure for a mobile computing device
CN101651796B (en) Remote control method and device
CN107493495B (en) Interactive position determining method, system, storage medium and intelligent terminal
CN106383597B (en) Method and device for realizing interaction with intelligent terminal and VR equipment
JP6658518B2 (en) Information processing apparatus, information processing method and program
CN104383681B (en) Method for controlling game program, device and mobile terminal
JPWO2011142317A1 (en) Gesture recognition apparatus, method, program, and computer-readable medium storing the program
CN113031840B (en) False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN108369447B (en) Method and device for controlling the running state of a wearable electronic device
JPWO2013121807A1 (en) Information processing apparatus, information processing method, and computer program
CN105094288B (en) The method and electronic equipment of a kind of control electronics
WO2015067045A1 (en) Method, device and computer system for performing operations on objects in object list
JP6504058B2 (en) INFORMATION PROCESSING SYSTEM, INFORMATION PROCESSING METHOD, AND PROGRAM
US20150169125A1 (en) Information processing apparatus, method, and storage medium
WO2020108101A1 (en) Virtual data processing method and apparatus, and storage medium, and terminal
TWI692705B (en) Portable electronic device, operating method for the same, and non-transitory computer readable recording
CN106383575B (en) Interaction control method and device for VR video
CN111142396A (en) Information display method and electronic equipment
KR20150081749A (en) Screen updating method, machine-readable storage medium and electronic device
CN101804258A (en) Electronic pet system and control method of electronic pet
CN106547339B (en) Control method and device of computer equipment
CN107479704A (en) Control method, device and equipment of wearable equipment and storage medium
CN116382460A (en) Terminal control method, device, equipment and storage medium
CN107704397B (en) Application program testing method and device and electronic equipment
CN103440191B (en) The lookup method and device of application program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240116

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right