技术领域technical field
本发明涉及在电子设备屏幕上进行手势操作的技术,尤其涉及在车载系统的电子设备的屏幕上通过手势操作控制设备操作的方法和装置。The invention relates to the technology of performing gesture operation on the screen of electronic equipment, in particular to a method and a device for controlling the operation of the equipment through gesture operation on the screen of the electronic equipment of the vehicle-mounted system.
背景技术Background technique
用户通过车载系统实现音乐的播放功能,在选取所需的音乐专辑之前,在车载系统的屏幕上会陈列系统中的音乐专辑的名称。用户在这些音乐专辑中选取自己想听的专辑进行播放。The user realizes the music playing function through the vehicle-mounted system, and before selecting the required music album, the title of the music album in the system will be displayed on the screen of the vehicle-mounted system. Users choose the album they want to listen to from these music albums to play.
专辑名称的陈列和用户进行选择的方式多种多样,比较常见的是以表格方式列出专辑名称,用户通过方向键在专辑名称中进行选取。然而,这样的专辑陈列方式单一,用户的选择操作单调,而且不适用于专辑封面(图片)的显示方式和选择操作。There are various ways to display album names and users to select them. It is more common to list album names in a tabular form, and the user can select from the album names through the arrow keys. However, such an album display method is single, and the user's selection operation is monotonous, and it is not suitable for the display method and selection operation of the album cover (picture).
发明内容Contents of the invention
本发明的目的在于解决上述问题,提供了一种通过电子设备屏幕的手势控制设备操作的方法,使得屏幕的操作界面简单明了,从而提升用户体验。The purpose of the present invention is to solve the above problems, and provides a method for controlling the operation of the device through gestures on the screen of the electronic device, so that the operation interface of the screen is simple and clear, thereby improving user experience.
本发明的另一目的在于提供了一种通过电子设备屏幕的手势控制设备操作的装置。Another object of the present invention is to provide an apparatus for controlling the operation of an electronic device through gestures on the screen of the electronic device.
本发明的技术方案为:本发明揭示了一种通过电子设备屏幕的手势控制设备操作的方法,包括:The technical solution of the present invention is: the present invention discloses a method for controlling device operation through gestures on the screen of an electronic device, including:
(1)检测手指在电子设备屏幕上针对多个操作对象其中之一的拖动手势的起始点;(1) Detecting the starting point of a finger's drag gesture for one of the multiple operation objects on the screen of the electronic device;
(2)跟随该拖动手势,在预设轨迹上移动该多个操作对象;(2) Following the drag gesture, moving the plurality of operation objects on a preset trajectory;
(3)检测该拖动手势的结束点,让该多个操作对象随着该拖动手势的结束停留在当前的预停留位置;(3) Detect the end point of the drag gesture, allowing the plurality of operation objects to stay in the current pre-stay position along with the end of the drag gesture;
(4)检查预设的被选位置上是否存在一操作对象,如果该预设的被选位置上没有操作对象,则对预停留位置进行修正,将与该预设的被选位置上邻近的一操作对象移动至该预设的被选位置上。(4) Check whether there is an operation object on the preset selected position, if there is no operation object on the preset selected position, correct the pre-stay position, and replace the adjacent position with the preset selected position An operation object is moved to the preset selected position.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该拖动手势的起始点是手指碰触屏幕的位置,该拖动手势的结束点是手指离开屏幕的位置。According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, the starting point of the drag gesture is the position where the finger touches the screen, and the end point of the drag gesture is the position where the finger leaves the screen.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,在步骤(4)中,如果该多个操作对象的移动方向是固定的,则将位于该移动方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上;如果该多个操作对象的移动方向不是固定的,则将位于任一方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device in the present invention, in step (4), if the moving direction of the plurality of operating objects is fixed, the distance between the operating objects located in the moving direction An operation object closest to the preset selected position moves to the preset selected position; if the movement direction of the plurality of operation objects is not fixed, it will be located in any direction away from the preset selected position The nearest operation object is moved to the preset selected position.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的移动过程是函数拟合实现的,以使该多个操作对象在预设轨迹上的移动位置是连续的。According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, the moving process of the multiple operating objects is implemented by function fitting, so that the moving positions of the multiple operating objects on the preset track is continuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的移动过程是由多个离散的位置组成的,该多个操作对象在预设轨迹上的移动位置是间断的。According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, the movement process of the plurality of operation objects is composed of a plurality of discrete positions, and the movement of the plurality of operation objects on the preset trajectory The positions are intermittent.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的预设轨迹是非封闭的线性图。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are non-closed linear graphs.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的预设轨迹是封闭的循环图形。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are closed circular graphics.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该操作对象包括图片、文字、或标签。According to an embodiment of the method for controlling the operation of the electronic device through gestures on the screen of the electronic device, the operation object includes a picture, a text, or a label.
本发明还揭示了一种通过电子设备屏幕的手势控制设备操作的方法,包括:The present invention also discloses a method for controlling the operation of the device through gestures on the screen of the electronic device, including:
(1)检测手指在电子设备屏幕上针对多个操作对象之一的甩动手势的结束点;(1) Detect the end point of the finger's flicking gesture for one of the multiple operation objects on the screen of the electronic device;
(2)检测手指在该结束点的瞬时速度;(2) detect the instantaneous speed of the finger at the end point;
(3)基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算该多个操作对象的移动距离;(3) Based on the preset physical model, calculate the moving distance of the plurality of operating objects according to the detected instantaneous speed and the preset damping value;
(4)通过对瞬时速度和预设的阻尼值所确定的物理模型的模拟,来移动该多个操作对象,最后该多个操作对象根据计算出的移动距离停留在预停留位置。(4) The multiple operating objects are moved by simulating the physical model determined by the instantaneous velocity and the preset damping value, and finally the multiple operating objects stay at the pre-stop position according to the calculated moving distance.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,在步骤(4)之后还包括:According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, after step (4), it also includes:
(5)检查预设的被选位置上是否存在一操作对象,如果该预设的被选位置上没有操作对象,则对预停留位置进行修正,将与该预设的被选位置上邻近的一操作对象移动至该预设的被选位置上。(5) Check whether there is an operation object on the preset selected position, if there is no operation object on the preset selected position, correct the pre-stay position, and replace the adjacent position with the preset selected position An operation object is moved to the preset selected position.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该甩动手势的结束点是手指离开屏幕的位置。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device according to the present invention, the end point of the flicking gesture is the position where the finger leaves the screen.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,在步骤(5)中,如果该多个操作对象的移动方向是固定的,则将位于该移动方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上;如果该多个操作对象的移动方向不是固定的,则将位于任一方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device in the present invention, in step (5), if the moving direction of the plurality of operation objects is fixed, the distance from the operating object located in the moving direction An operation object closest to the preset selected position moves to the preset selected position; if the movement direction of the plurality of operation objects is not fixed, it will be located in any direction away from the preset selected position The nearest operation object is moved to the preset selected position.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的移动过程是由函数拟合实现的,以使该多个操作对象在预设轨迹上的移动位置是连续的。According to an embodiment of the method for controlling the operation of an electronic device through gestures on the screen of an electronic device, the movement process of the plurality of operation objects is realized by function fitting, so that the movement of the plurality of operation objects on the preset trajectory The positions are contiguous.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的移动过程是由多个离散的位置组成的,该多个操作对象在预设轨迹上的移动位置是离散的。According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, the movement process of the plurality of operation objects is composed of a plurality of discrete positions, and the movement of the plurality of operation objects on the preset trajectory The positions are discrete.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的预设轨迹是非封闭的线性图。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are non-closed linear graphs.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的预设轨迹是封闭的循环图形。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are closed circular graphics.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该操作对象包括图片、文字、或标签。According to an embodiment of the method for controlling the operation of the electronic device through gestures on the screen of the electronic device, the operation object includes a picture, a text, or a label.
本发明又揭示了一种通过电子设备屏幕的手势控制设备操作的方法,包括:The present invention also discloses a method for controlling the operation of the device through gestures on the screen of the electronic device, including:
(1)判断手势的起始点和结束点;(1) judge the starting point and the ending point of the gesture;
(2)检测手指在该结束点的瞬时速度,如果瞬时速度为0,则表示该手势是拖动手势,进行下面的步骤(3)~(4);如果瞬时速度不为0,则表示该手势是甩动手势,进行下面的步骤(5)~(6);(2) Detect the instantaneous speed of the finger at the end point. If the instantaneous speed is 0, it means that the gesture is a drag gesture, and proceed to the following steps (3)-(4); if the instantaneous speed is not 0, it means that the gesture is dragging. The gesture is a shaking gesture, and the following steps (5) to (6) are performed;
(3)跟随该拖动手势,在预设轨迹上移动该多个操作对象;(3) Following the dragging gesture, moving the plurality of operation objects on a preset trajectory;
(4)让该多个操作对象随着该拖动手势的结束停留在当前的预停留位置;(4) Let the plurality of operation objects stay in the current pre-stay position along with the end of the drag gesture;
(5)基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算该多个操作对象的移动距离;(5) Based on the preset physical model, calculate the moving distance of the plurality of operation objects according to the detected instantaneous speed and the preset damping value;
(6)通过对由瞬时速度和预设的阻尼值所确定的物理模型的模拟,来移动该多个操作对象,最后该多个操作对象根据计算出的移动距离停留在预停留位置。(6) Moving the multiple operating objects by simulating the physical model determined by the instantaneous velocity and the preset damping value, and finally the multiple operating objects stay at the pre-stop position according to the calculated moving distance.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,在步骤(4)中进一步包括:According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, step (4) further includes:
在该多个操作对象停留在当前的预停留位置之后,检查预设的被选位置上是否存在一操作对象,如果该预设的被选位置上没有操作对象,则对预停留位置进行修正,将与该预设的被选位置上邻近的一操作对象移动至该预设的被选位置上;After the plurality of operation objects stay at the current pre-stay position, check whether there is an operation object at the preset selected position, if there is no operation object at the preset selected position, correct the pre-stay position, moving an operation object adjacent to the preset selected position to the preset selected position;
在步骤(6)中进一步包括:In step (6), further include:
在该多个操作对象停留在当前的预停留位置之后,检查预设的被选位置上是否存在一操作对象,如果该预设的被选位置上没有操作对象,则对预停留位置进行修正,将与该预设的被选位置上邻近的一操作对象移动至该预设的被选位置上。After the plurality of operation objects stay at the current pre-stay position, check whether there is an operation object at the preset selected position, if there is no operation object at the preset selected position, correct the pre-stay position, An operation object adjacent to the preset selected position is moved to the preset selected position.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该手势的起始点是手指碰触屏幕的位置,该手势的结束点是手指离开屏幕的位置。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device of the present invention, the starting point of the gesture is the position where the finger touches the screen, and the ending point of the gesture is the position where the finger leaves the screen.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,步骤(4)和步骤(6)中,如果该多个操作对象的移动方向是固定的,则将位于该移动方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上;如果该多个操作对象的移动方向不是固定的,则将位于任一方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上。According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, in step (4) and step (6), if the moving direction of the plurality of operation objects is fixed, they will be located in the moving direction An operation object closest to the preset selected position on the above is moved to the preset selected position; if the moving direction of the plurality of operation objects is not fixed, the operation object in any direction is An operation object closest to the selected position is moved to the preset selected position.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,对于拖动手势和甩动手势,该多个操作对象的移动过程是由函数拟合实现的,以使该多个操作对象在预设轨迹上的移动位置是连续的。According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, for the drag gesture and the flick gesture, the moving process of the multiple operation objects is realized by function fitting, so that the multiple The moving position of the operation object on the preset trajectory is continuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,对于拖动手势和甩动手势,该多个操作对象的移动过程是由多个离散的位置组成的,该多个操作对象在预设轨迹上的移动位置是离散的。According to an embodiment of the method for controlling device operation through gestures on the electronic device screen of the present invention, for the dragging gesture and the flicking gesture, the moving process of the plurality of operating objects is composed of a plurality of discrete positions, and the plurality of The moving position of the operation object on the preset trajectory is discrete.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的预设轨迹是非封闭的线性图。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are non-closed linear graphs.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象的预设轨迹是封闭的循环图形。According to an embodiment of the method for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are closed circular graphics.
根据本发明的通过电子设备屏幕的手势控制设备操作的方法的一实施例,该多个操作对象包括图片、文字或标签。According to an embodiment of the method for controlling device operation through gestures on the screen of the electronic device of the present invention, the plurality of operation objects include pictures, text or labels.
本发明另外揭示了一种通过电子设备屏幕的手势控制设备操作的装置,包括:The present invention additionally discloses a device for controlling the operation of the device through gestures on the screen of the electronic device, including:
手势检测模块,检测手指在电子设备屏幕上针对多个操作对象其中之一的拖动手势的起始点和结束点;A gesture detection module, which detects the start point and end point of a finger's drag gesture for one of the multiple operation objects on the screen of the electronic device;
操作对象移动模块,连接手势检测模块,跟随该拖动手势,在预设轨迹上移动该多个操作对象,在检测到该起始点时开始移动,在检测到该结束点时停止移动,当停止移动时该多个操作对象停留在当前的预停留位置;The operation object movement module is connected with the gesture detection module, follows the drag gesture, moves the plurality of operation objects on the preset track, starts to move when the starting point is detected, stops moving when the end point is detected, and stops moving when the end point is detected. When moving, the multiple operation objects stay at the current pre-stay position;
位置修正模块,连接操作对象移动模块,当检查出预设的被选位置上不存在一操作对象时,对预停留位置进行修正,将与该预设的被选位置上邻近的一操作对象移动至该预设的被选位置上。The position correction module is connected to the operation object moving module. When it is detected that there is no operation object at the preset selected position, the pre-stay position is corrected, and an operation object adjacent to the preset selected position is moved. to the selected position of the preset.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,在该手势检测模块中,将手指碰触屏幕的位置判断为该拖动手势的起始点,将手指离开屏幕的位置判断为该拖动手势的结束点。According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, in the gesture detection module, the position where the finger touches the screen is judged as the starting point of the drag gesture, and the position where the finger leaves the screen Determined as the end point of the drag gesture.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该位置修正模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the position correction module further includes:
第一修正单元,在该多个操作对象的移动方向是固定的情况下,将位于该移动方向上的离该预设的被选位置最近的一操作对象移动至预设的被选位置上;The first correction unit moves an operation object closest to the preset selected position in the moving direction to the preset selected position when the moving directions of the plurality of operating objects are fixed;
第二修正单元,在该多个操作对象的移动方向不是固定的情况下,将位于任一方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上。The second correction unit moves an operation object closest to the preset selected position in any direction to the preset selected position when the moving directions of the plurality of operation objects are not fixed.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该操作对象移动模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the operation object moving module further includes:
函数拟合单元,以函数拟合的方式实现该多个操作对象的移动过程,以使该多个操作对象在预设轨迹上的移动位置是连续的。The function fitting unit realizes the moving process of the plurality of operating objects in a function fitting manner, so that the moving positions of the plurality of operating objects on the preset trajectory are continuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该操作对象移动模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the operation object moving module further includes:
间断移动单元,通过预设轨迹上的多个间隔的位置形成该多个操作对象的移动过程,该多个操作对象在预设轨迹上的移动位置是间断的。The discontinuous moving unit is configured to form a movement process of the plurality of operation objects through a plurality of spaced positions on the preset trajectory, and the movement positions of the plurality of operation objects on the preset trajectory are discontinuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该多个操作对象的预设轨迹是非封闭的线性图。According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are non-closed linear graphs.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该多个操作对象的预设轨迹是封闭的循环图形。According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are closed loop graphics.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该操作对象包括图片、文字或标签。According to an embodiment of the apparatus for controlling device operation through gestures on a screen of an electronic device according to the present invention, the operation object includes a picture, a text or a label.
本发明还揭示了一种通过电子设备屏幕的手势控制设备操作的装置,包括:The present invention also discloses a device for controlling the operation of the device through gestures on the screen of the electronic device, including:
手势检测模块,检测手指在电子设备屏幕上针对多个操作对象之一的甩动手势的起始点和结束点;A gesture detection module, which detects the starting point and the ending point of a finger's flicking gesture for one of the multiple operation objects on the screen of the electronic device;
速度检测模块,连接手势检测模块,检测手指在该结束点的瞬时速度;The speed detection module is connected to the gesture detection module to detect the instantaneous speed of the finger at the end point;
移动距离计算模块,连接速度检测模块,基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算该多个操作对象的移动距离;The movement distance calculation module is connected to the speed detection module, and based on the preset physical model, calculates the movement distance of the plurality of operation objects according to the detected instantaneous speed and the preset damping value;
操作对象移动模块,连接移动距离计算模块,通过对由瞬时速度和预设的阻尼值所确定的物理模型的模拟,来移动该多个操作对象,最后该多个操作对象根据计算出的移动距离停止在预停留位置。The operation object movement module is connected to the movement distance calculation module, and the plurality of operation objects are moved by simulating the physical model determined by the instantaneous speed and the preset damping value, and finally the plurality of operation objects are moved according to the calculated movement distance Stop at the pre-stop position.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该装置还包括:According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the device further includes:
位置修正模块,连接操作对象移动模块,当检查出预设的被选位置上不存在一操作对象时,对预停留位置进行修正,将与该预设的被选位置上邻近的一操作对象移动至该预设的被选位置上。The position correction module is connected to the operation object moving module. When it is detected that there is no operation object at the preset selected position, the pre-stay position is corrected, and an operation object adjacent to the preset selected position is moved. to the selected position of the preset.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,在该手势检测模块中,将手指碰触屏幕的位置判断为该拖动手势的起始点,将手指离开屏幕的位置判断为该拖动手势的结束点。According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, in the gesture detection module, the position where the finger touches the screen is judged as the starting point of the drag gesture, and the position where the finger leaves the screen Determined as the end point of the drag gesture.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该位置修正模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the position correction module further includes:
第一修正单元,在该多个操作对象的移动方向是固定的情况下,将位于该移动方向上的离该预设的被选位置最近的一操作对象移动至预设的被选位置上;The first correction unit moves an operation object closest to the preset selected position in the moving direction to the preset selected position when the moving directions of the plurality of operating objects are fixed;
第二修正单元,在该多个操作对象的移动方向不是固定的情况下,将位于任一方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上。The second correction unit moves an operation object closest to the preset selected position in any direction to the preset selected position when the moving directions of the plurality of operation objects are not fixed.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该操作对象移动模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the operation object moving module further includes:
函数拟合单元,以函数拟合的方式实现该多个操作对象的移动过程,以使该多个操作对象在预设轨迹上的移动位置是连续的。The function fitting unit realizes the moving process of the plurality of operating objects in a function fitting manner, so that the moving positions of the plurality of operating objects on the preset trajectory are continuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该操作对象移动模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the operation object moving module further includes:
间断移动单元,通过预设轨迹上的多个间隔的位置形成该多个操作对象的移动过程,该多个操作对象在预设轨迹上的移动位置是间断的。The discontinuous moving unit is configured to form a movement process of the plurality of operation objects through a plurality of spaced positions on the preset trajectory, and the movement positions of the plurality of operation objects on the preset trajectory are discontinuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该多个操作对象的预设轨迹是非封闭的线性图。According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are non-closed linear graphs.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该多个操作对象的预设轨迹是封闭的循环图形。According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are closed loop graphics.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该操作对象包括图片、文字或标签。According to an embodiment of the apparatus for controlling device operation through gestures on a screen of an electronic device according to the present invention, the operation object includes a picture, a text or a label.
本发明另外揭示了一种通过电子设备屏幕的手势控制设备操作的装置,包括:The present invention additionally discloses a device for controlling the operation of the device through gestures on the screen of the electronic device, including:
手势检测模块,检测手指在电子设备屏幕上针对多个操作对象之一的起始点和结束点;The gesture detection module detects the starting point and the ending point of the finger on the screen of the electronic device for one of the multiple operation objects;
速度检测模块,连接手势检测模块,检测手指在该结束点的瞬时速度;The speed detection module is connected to the gesture detection module to detect the instantaneous speed of the finger at the end point;
手势判断模块,连接速度检测模块,如果检测出的手指在结束点的瞬时速度为0,则判断出该手势是拖动手势,如果检测出的手指在结束点的瞬时速度不为0,则判断出该手势是甩动手势;The gesture judgment module is connected to the speed detection module. If the detected instantaneous speed of the finger at the end point is 0, then it is judged that the gesture is a drag gesture. If the detected instantaneous speed of the finger at the end point is not 0, then it is judged The gesture is a shake gesture;
第一操作对象移动模块,连接手势判断模块,在判断出该手势是拖动手势的情况下运作,跟随该拖动手势,在预设轨迹上移动该多个操作对象,在检测到该起始点时开始移动,在检测到该结束点时停止移动,当停止移动时该多个操作对象停留在当前的预停留位置;The first operation object movement module is connected to the gesture judgment module, which operates when the gesture is judged to be a drag gesture, follows the drag gesture, moves the plurality of operation objects on a preset track, and detects the starting point Start moving when the end point is detected, and stop moving when the end point is detected. When the movement stops, the multiple operation objects stay at the current pre-stay position;
移动距离计算模块,连接手势判断模块和速度检测模块,在判断出该手势是甩动手势的情况下运作,基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算该多个操作对象的移动距离;The movement distance calculation module is connected to the gesture judgment module and the speed detection module, and operates when it is judged that the gesture is a swing gesture. Based on the preset physical model, the distance is calculated according to the detected instantaneous speed and the preset damping value. The moving distance of an operation object;
第二操作对象移动模块,连接移动距离计算模块,通过对由瞬时速度和预设的阻尼值所确定的物理模型的模拟,来移动该多个操作对象,最后该多个操作对象根据计算出的移动距离停止在预停留位置。The second operation object movement module is connected to the movement distance calculation module, and moves the plurality of operation objects by simulating the physical model determined by the instantaneous speed and the preset damping value, and finally the plurality of operation objects according to the calculated The travel distance stops at the pre-stop position.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该装置还包括:According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the device further includes:
位置修正模块,连接第一操作对象移动模块和第二操作对象移动模块,当检查出预设的被选位置上不存在一操作对象时,对预停留位置进行修正,将与该预设的被选位置上邻近的一操作对象移动至该预设的被选位置上。The position correction module is connected to the first operation object movement module and the second operation object movement module. When it is checked that there is no operation object in the preset selected position, the pre-stay position is corrected, and the preset operation object will be adjusted. An operation object adjacent to the selected position is moved to the preset selected position.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,在该手势检测模块中,将手指碰触屏幕的位置判断为该手势的起始点,将手指离开屏幕的位置判断为该手势的结束点。According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, in the gesture detection module, the position where the finger touches the screen is judged as the starting point of the gesture, and the position where the finger leaves the screen is judged as The end point of this gesture.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该位置修正模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the position correction module further includes:
第一修正单元,在该多个操作对象的移动方向是固定的情况下,将位于该移动方向上的离该预设的被选位置最近的一操作对象移动至预设的被选位置上;The first correction unit moves an operation object closest to the preset selected position in the moving direction to the preset selected position when the moving directions of the plurality of operating objects are fixed;
第二修正单元,在该多个操作对象的移动方向不是固定的情况下,将位于任一方向上的离该预设的被选位置最近的一操作对象移动至该预设的被选位置上。The second correction unit moves an operation object closest to the preset selected position in any direction to the preset selected position when the moving directions of the plurality of operation objects are not fixed.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该第一操作对象移动模块和该第二操作对象移动模块各自进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, each of the first operation object moving module and the second operation object moving module further includes:
函数拟合单元,以函数拟合的方式实现该多个操作对象的移动过程,以使该多个操作对象在预设轨迹上的移动位置是连续的。The function fitting unit realizes the moving process of the plurality of operating objects in a function fitting manner, so that the moving positions of the plurality of operating objects on the preset trajectory are continuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该第一操作对象移动模块和该第二操作对象移动模块进一步包括:According to an embodiment of the device for controlling device operation through gestures on the electronic device screen of the present invention, the first operation object moving module and the second operation object moving module further include:
间断移动单元,通过预设轨迹上的多个间隔的位置形成该多个操作对象的移动过程,该多个操作对象在预设轨迹上的移动位置是间断的。The discontinuous moving unit is configured to form a movement process of the plurality of operation objects through a plurality of spaced positions on the preset trajectory, and the movement positions of the plurality of operation objects on the preset trajectory are discontinuous.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该多个操作对象的预设轨迹是非封闭的线性图。According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are non-closed linear graphs.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该多个操作对象的预设轨迹是封闭的循环图形。According to an embodiment of the device for controlling device operation through gestures on the screen of an electronic device according to the present invention, the preset trajectories of the plurality of operation objects are closed loop graphics.
根据本发明的通过电子设备屏幕的手势控制设备操作的装置的一实施例,该多个操作对象包括图片、文字或标签。According to an embodiment of the device for controlling device operation through gestures on a screen of an electronic device according to the present invention, the multiple operation objects include pictures, text or labels.
本发明对比现有技术有如下的有益效果:本发明通过检测手指离开屏幕瞬间的瞬时速度来判断手势是拖动手势还是甩动手势,如果是拖动手势,则根据手指在屏幕上的拖动动作将目标拖动到预定位置,如果是甩动手势,则随着手指在屏幕上划过而产生图像转动效果。Compared with the prior art, the present invention has the following beneficial effects: the present invention judges whether the gesture is a dragging gesture or a flicking gesture by detecting the instantaneous speed at which the finger leaves the screen. The action drags the target to the predetermined position, and if it is a flicking gesture, the image rotation effect will be generated as the finger slides across the screen.
附图说明Description of drawings
图1是本发明的通过电子设备屏幕的手势控制设备操作的方法的第一实施例的流程图。FIG. 1 is a flow chart of a first embodiment of a method for controlling device operations through gestures on a screen of an electronic device according to the present invention.
图2是本发明的通过电子设备屏幕的手势控制设备操作的方法的第二实施例的流程图。FIG. 2 is a flow chart of a second embodiment of the method for controlling the operation of an electronic device through gestures on the screen of the electronic device according to the present invention.
图3是本发明的通过电子设备屏幕的手势控制设备操作的方法的第三实施例的流程图。Fig. 3 is a flow chart of a third embodiment of the method for controlling device operation through gestures on the screen of the electronic device according to the present invention.
图4是本发明的通过电子设备屏幕的手势控制设备操作的方法的第四实施例的流程图。FIG. 4 is a flow chart of a fourth embodiment of the method for controlling device operation through gestures on the screen of the electronic device according to the present invention.
图5是本发明的通过电子设备屏幕的手势控制设备操作的方法的第五实施例的流程图。FIG. 5 is a flow chart of a fifth embodiment of the method for controlling device operation through gestures on the screen of the electronic device according to the present invention.
图6是本发明的专辑封面示例的示意图。Fig. 6 is a schematic diagram of an example of an album cover of the present invention.
图7是本发明的通过电子设备屏幕的手势控制设备操作的装置的第一实施例的原理图。FIG. 7 is a schematic diagram of a first embodiment of an apparatus for controlling device operation through gestures on a screen of an electronic device according to the present invention.
图8是本发明的通过电子设备屏幕的手势控制设备操作的装置的第二实施例的原理图。FIG. 8 is a schematic diagram of a second embodiment of an apparatus for controlling device operation through gestures on a screen of an electronic device according to the present invention.
图9是本发明的通过电子设备屏幕的手势控制设备操作的装置的第三实施例的原理图。FIG. 9 is a schematic diagram of a third embodiment of an apparatus for controlling device operation through gestures on a screen of an electronic device according to the present invention.
图10是本发明的通过电子设备屏幕的手势控制设备操作的装置的第四实施例的原理图。FIG. 10 is a schematic diagram of a fourth embodiment of an apparatus for controlling device operation through gestures on the screen of an electronic device according to the present invention.
图11是本发明的通过电子设备屏幕的手势控制设备操作的装置的第五实施例的原理图。FIG. 11 is a schematic diagram of a fifth embodiment of an apparatus for controlling device operation through gestures on the screen of an electronic device according to the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
通过电子设备屏幕的手势控制设备操作的方法的第一实施例The first embodiment of the method for controlling the operation of the device through gestures on the screen of the electronic device
图1示出了本发明的通过电子设备屏幕的手势控制设备操作的方法的第一实施例的流程。请参见图1,下面是对本实施例中各个步骤的详细描述。Fig. 1 shows the flow of the first embodiment of the method for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Please refer to FIG. 1 , the following is a detailed description of each step in this embodiment.
步骤S10:检测手指在电子设备屏幕上针对多个操作对象其中之一的拖动手势的起始点。Step S10: Detect the starting point of the finger's drag gesture on the screen of the electronic device for one of the plurality of operation objects.
本实施例(包括以下的实施例)以车载系统的电子设备为例,操作对象以车载系统电子设备上显示的专辑图片为例。当然,本发明的实际保护范围并不局限于此,例如可以是应用于其他系统和场合的电子设备(如手机、便携式计算机或个人数字助理),操作对象也可以是文字、标签等。This embodiment (including the following embodiments) takes the electronic device of the vehicle system as an example, and the operation object takes the album picture displayed on the electronic device of the vehicle system as an example. Of course, the actual protection scope of the present invention is not limited thereto, for example, it can be electronic equipment (such as mobile phone, portable computer or personal digital assistant) applied to other systems and occasions, and the operation object can also be text, labels, etc.
为了描述方便以及便于理解,本实施例(包括以下的实施例)以图6中的示例来说明,在图中,多张专辑封面在屏幕上形成一个无穷大符号的轨迹,每一格中的数字代表专辑封面的编号,在初始状态下,无穷大符号的前半部分(图中编号为0~12的专辑格)的专辑格中填充了位于专辑数据库前端的专辑封面,无穷大符号的后半部分(图中编号为23~33的专辑格)的专辑格中填充了位于专辑数据库末端的专辑封面。For the convenience of description and understanding, this embodiment (including the following embodiments) is illustrated with the example in Figure 6. In the figure, multiple album covers form a track of an infinity symbol on the screen, and the numbers in each grid Represents the number of the album cover. In the initial state, the first half of the infinity symbol (album cells numbered 0 to 12 in the figure) is filled with the album cover located at the front end of the album database, and the second half of the infinity symbol (the album cells numbered 0 to 12 in the figure) is filled with the album cover at the front end of the album database. The album boxes numbered 23-33) are filled with the album covers located at the end of the album database.
本实施例中的拖动手势是指用户这样的操作:用户用手指按住屏幕,将目标专辑封面拖动到预定的位置。而拖动手势的起始点就是手指碰触屏幕的位置。因此,当手指碰触屏幕时,本实施例就检测出拖动手势的起始点。The drag gesture in this embodiment refers to an operation of the user: the user presses and holds the screen with a finger, and drags the target album cover to a predetermined position. The starting point of the drag gesture is the position where the finger touches the screen. Therefore, when a finger touches the screen, this embodiment detects the starting point of the drag gesture.
步骤S11:一检测到拖动手势的起始点,这些操作对象开始跟随拖动手势在预设轨迹上移动。Step S11: Once the starting point of the drag gesture is detected, the operating objects start to move along the preset trajectory following the drag gesture.
例如,无穷大符号中的各个专辑封面的整体移动方向有两个,是由拖动手势的方向来决定专辑封面的移动方向的。For example, there are two overall moving directions of each album cover in the infinity symbol, and the moving direction of the album cover is determined by the direction of the dragging gesture.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象的移动过程可以有两种实现方式。其一是通过函数拟合来实现,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。The moving process of the operation object can be implemented in two ways. One is to achieve it through function fitting. The movement of the operation object on the preset trajectory is fitted with a function. The advantage of this implementation is that the operation object can be distributed at any point on the fitting trajectory, and these operation objects can be moved at any time. The movement process on the preset trajectory is continuous, and the movement is relatively smooth from the visual effect.
另一种是让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。The other is to make the moving process of these operating objects consist of multiple discrete positions, and the moving positions of multiple operating objects on the preset track are intermittent, so that the moving positions of these operating objects on the preset track are intermittent . For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
步骤S12:检测拖动手势的结束点。Step S12: Detect the end point of the drag gesture.
将手指离开电子设备屏幕的位置判断为拖动手势的结束点。The position where the finger leaves the screen of the electronic device is determined as the end point of the drag gesture.
步骤S13:当检测出拖动手势的结束点时,让这些操作对象停止移动。Step S13: When the end point of the drag gesture is detected, make these operation objects stop moving.
在本申请中将停止移动时的当前位置称为预停留位置。In this application, the current position when the movement stops is referred to as a pre-stay position.
步骤S14:在操作对象停止移动的同时,检查预设的被选位置上是否存在一操作对象,如果预设的被选位置上存在操作对象,则将预停留位置作为最终的位置,如果预设的被选位置上不存在操作对象,则进行步骤S15的处理。Step S14: When the operation object stops moving, check whether there is an operation object at the preset selected position, if there is an operation object at the preset selected position, take the pre-stay position as the final position, if the preset If there is no operation object at the selected position, the process of step S15 is performed.
步骤S15:对预停留位置进行修正,将与预设的被选位置上邻近的操作对象移动到预设的被选位置上。Step S15: Correct the pre-stay position, and move the operation object adjacent to the preset selected position to the preset selected position.
本步骤的修正操作可分为两种情况。第一种情况下,操作对象的移动方向是规定的,则将位于这一方向上的离预设的被选位置最近的操作对象移动到预设的被选位置上。第二种情况下,操作对象的移动方向不是固定的,则将位于任一方向上的离预设的被选位置最近的(即,选择最近的操作对象,不考虑其位于哪个方向)的操作对象移动至预设的被选位置上。The correction operation in this step can be divided into two situations. In the first case, the moving direction of the operating object is specified, and the operating object located in this direction and closest to the preset selected position is moved to the preset selected position. In the second case, the moving direction of the operation object is not fixed, then the operation object located in any direction closest to the preset selected position (that is, select the nearest operation object, regardless of which direction it is located) Move to the preset selected position.
例如,在图示的无穷大符号中,当移动停止时10号专辑格恰好停在6号专辑格和7号专辑格之间,此时预停留位置就是10号专辑格当前停止的位置,预设的被选位置是6号专辑格所处的位置,在修正操作中就是对所有的图片再进行一次微调的移动,以使10号专辑格落入6号专辑格所处的位置上。For example, in the infinity symbol shown in the figure, when the movement stops, the No. 10 album box just stops between the No. 6 album box and the No. 7 album box. At this time, the pre-stop position is the current stop position of the No. 10 album box. The selected position is the position where the No. 6 album frame is located. In the correction operation, all the pictures are fine-tuned again, so that the No. 10 album frame falls into the position where the No. 6 album frame is located.
通过电子设备屏幕的手势控制设备操作的方法的第二实施例The second embodiment of the method of controlling the operation of the device through gestures on the screen of the electronic device
图2示出了本发明的通过电子设备屏幕的手势控制设备操作的方法的第二实施例的流程。请参见图2,下面是对本实施例中各个步骤的详细描述。Fig. 2 shows the flow of the second embodiment of the method for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Referring to FIG. 2, the following is a detailed description of each step in this embodiment.
步骤S20:检测手指在电子设备屏幕上针对多个操作对象其中之一的甩动手势的结束点。Step S20: Detect the end point of the finger's flick gesture on the screen of the electronic device for one of the plurality of operation objects.
本实施例中的甩动手势是指用户这样的操作:用户用手指在屏幕上划过,对操作对象的定位无特定目标,只产生转动的效果。而甩动手势的起始点就是手指碰触屏幕的位置,结束点就是手指离开屏幕的位置。因此,当手指离开屏幕时,本实施例就检测出甩动手势的结束点。The flicking gesture in this embodiment refers to the operation of the user: the user slides his finger across the screen, and there is no specific target for the positioning of the operation object, and only the effect of rotation is generated. The starting point of the shaking gesture is the position where the finger touches the screen, and the end point is the position where the finger leaves the screen. Therefore, when the finger leaves the screen, this embodiment detects the end point of the flick gesture.
步骤S22:检测手指在结束点的瞬时速度。Step S22: Detect the instantaneous speed of the finger at the end point.
步骤S24:基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。Step S24: Based on the preset physical model, calculate the moving distance of the operation object according to the detected instantaneous speed and the preset damping value.
预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
步骤S26:利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置。Step S26: Use the above physical model to simulate the moving process, move the operation object on the preset track, and make the operation object stop at the pre-stop position according to the calculated moving distance.
在本申请中将停止移动时的当前位置称为预停留位置。In this application, the current position when the movement stops is referred to as a pre-stay position.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象的移动过程可以有两种实现方式。其一是通过函数拟合来实现,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。The moving process of the operation object can be implemented in two ways. One is to achieve it through function fitting. The movement of the operation object on the preset trajectory is fitted with a function. The advantage of this implementation is that the operation object can be distributed at any point on the fitting trajectory, and these operation objects can be moved at any time. The movement process on the preset trajectory is continuous, and the movement is relatively smooth from the visual effect.
另一种是让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。The other is to make the moving process of these operating objects consist of multiple discrete positions, and the moving positions of multiple operating objects on the preset track are intermittent, so that the moving positions of these operating objects on the preset track are intermittent . For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
通过电子设备屏幕的手势控制设备操作的方法的第三实施例The third embodiment of the method for controlling the operation of the device through gestures on the screen of the electronic device
图3示出了本发明的通过电子设备屏幕的手势控制设备操作的方法的第三实施例的流程。请参见图3,下面是对本实施例中各个步骤的详细描述。Fig. 3 shows the flow of the third embodiment of the method for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Please refer to FIG. 3 , the following is a detailed description of each step in this embodiment.
步骤S30:检测手指在电子设备屏幕上针对多个操作对象其中之一的甩动手势的结束点。Step S30: Detect the end point of the finger's flicking gesture on the screen of the electronic device for one of the plurality of operation objects.
本实施例中的甩动手势是指用户这样的操作:用户用手指在屏幕上划过,对操作对象的定位无特定目标,只产生转动的效果。而甩动手势的起始点就是手指碰触屏幕的位置,结束点就是手指离开屏幕的位置。因此,当手指离开屏幕时,本实施例就检测出甩动手势的结束点。The flicking gesture in this embodiment refers to the operation of the user: the user slides his finger across the screen, and there is no specific target for the positioning of the operation object, and only the effect of rotation is produced. The starting point of the shaking gesture is the position where the finger touches the screen, and the end point is the position where the finger leaves the screen. Therefore, when the finger leaves the screen, this embodiment detects the end point of the flick gesture.
步骤S31:检测手指在结束点的瞬时速度。Step S31: Detect the instantaneous speed of the finger at the end point.
步骤S32:基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。Step S32: Based on the preset physical model, calculate the moving distance of the operation object according to the detected instantaneous speed and the preset damping value.
预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
步骤S33:利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置。Step S33: Use the above physical model to simulate the moving process, move the operation object on the preset track, and make the operation object stop at the pre-stop position according to the calculated moving distance.
在本申请中将停止移动时的当前位置称为预停留位置。In this application, the current position when the movement stops is referred to as a pre-stay position.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象的移动过程可以有两种实现方式。其一是通过函数拟合来实现,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。The moving process of the operation object can be implemented in two ways. One is to achieve it through function fitting. The movement of the operation object on the preset trajectory is fitted with a function. The advantage of this implementation is that the operation object can be distributed at any point on the fitting trajectory, and these operation objects can be moved at any time. The movement process on the preset trajectory is continuous, and the movement is relatively smooth from the visual effect.
另一种是让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。The other is to make the moving process of these operating objects consist of multiple discrete positions, and the moving positions of multiple operating objects on the preset track are intermittent, so that the moving positions of these operating objects on the preset track are intermittent . For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
步骤S34:在操作对象停止移动的同时,检查预设的被选位置上是否存在一操作对象,如果预设的被选位置上存在操作对象,则将预停留位置作为最终的位置,如果预设的被选位置上不存在操作对象,则进行步骤S35的处理。Step S34: When the operation object stops moving, check whether there is an operation object at the preset selected position, if there is an operation object at the preset selected position, take the pre-stay position as the final position, if the preset If there is no operation object at the selected position, the process of step S35 is performed.
步骤S35:对预停留位置进行修正,将与预设的被选位置上邻近的操作对象移动到预设的被选位置上。Step S35: Correct the pre-stay position, and move the operation object adjacent to the preset selected position to the preset selected position.
本步骤的修正操作可分为两种情况。第一种情况下,操作对象的移动方向是规定的,则将位于这一方向上的离预设的被选位置最近的操作对象移动到预设的被选位置上。第二种情况下,操作对象的移动方向不是固定的,则将位于任一方向上的离预设的被选位置最近的(即,选择最近的操作对象,不考虑其位于哪个方向)的操作对象移动至预设的被选位置上。The correction operation in this step can be divided into two situations. In the first case, the moving direction of the operating object is specified, and the operating object located in this direction and closest to the preset selected position is moved to the preset selected position. In the second case, the moving direction of the operation object is not fixed, then the operation object located in any direction closest to the preset selected position (that is, select the nearest operation object, regardless of which direction it is located) Move to the preset selected position.
通过电子设备屏幕的手势控制设备操作的方法的第四实施例The fourth embodiment of the method for controlling the operation of the device through gestures on the screen of the electronic device
图4示出了本发明的通过电子设备屏幕的手势控制设备操作的方法的第四实施例的流程。请参见图4,下面是对本实施例中各个步骤的详细描述。Fig. 4 shows the flow of the fourth embodiment of the method for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Please refer to FIG. 4 , the following is a detailed description of each step in this embodiment.
步骤S40:检测手势的起始点和结束点。Step S40: Detect the start point and end point of the gesture.
将手指碰触屏幕时的位置作为手势的起始点,将手指离开屏幕时的位置作为手势的结束点。The position when the finger touches the screen is used as the start point of the gesture, and the position when the finger leaves the screen is used as the end point of the gesture.
步骤S41:检测手指在结束点的瞬时速度。Step S41: Detect the instantaneous speed of the finger at the end point.
步骤S42:判断瞬时速度是否为0,如果瞬时速度为0,表示是拖动手势,进行步骤S43~S44的处理,如果瞬时速度不为0,表示是甩动手势,进行步骤S45~S46的处理。Step S42: Determine whether the instantaneous speed is 0. If the instantaneous speed is 0, it means that it is a drag gesture, and proceed to the processing of steps S43-S44. If the instantaneous speed is not 0, it means that it is a shaking gesture, and proceed to the processing of steps S45-S46 .
本实施例中的拖动手势是指用户这样的操作:用户用手指按住屏幕,将目标专辑封面拖动到预定的位置。The drag gesture in this embodiment refers to an operation of the user: the user presses and holds the screen with a finger, and drags the target album cover to a predetermined position.
本实施例中的甩动手势是指用户这样的操作:用户用手指在屏幕上划过,对操作对象的定位无特定目标,只产生转动的效果。The flicking gesture in this embodiment refers to the operation of the user: the user slides his finger across the screen, and there is no specific target for the positioning of the operation object, and only the effect of rotation is produced.
步骤S43:操作对象开始跟随拖动手势在预设轨迹上移动。Step S43: The operation object starts to move on the preset track following the drag gesture.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象的移动过程可以有两种实现方式。其一是通过函数拟合来实现,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。The moving process of the operation object can be implemented in two ways. One is to achieve it through function fitting. The movement of the operation object on the preset trajectory is fitted with a function. The advantage of this implementation is that the operation object can be distributed at any point on the fitting trajectory, and these operation objects can be moved at any time. The movement process on the preset trajectory is continuous, and the movement is relatively smooth from the visual effect.
另一种是让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。The other is to make the moving process of these operating objects consist of multiple discrete positions, and the moving positions of multiple operating objects on the preset track are intermittent, so that the moving positions of these operating objects on the preset track are intermittent . For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
步骤S44:当拖动手势到达结束点时,让这些操作对象停止移动。Step S44: When the drag gesture reaches the end point, make these operation objects stop moving.
在本申请中将停止移动时的当前位置称为预停留位置。In this application, the current position when the movement stops is referred to as a pre-stay position.
步骤S45:基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。Step S45: Based on the preset physical model, calculate the moving distance of the operation object according to the detected instantaneous speed and the preset damping value.
预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
步骤S46:利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置。Step S46: Use the above physical model to simulate the moving process, move the operation object on the preset trajectory, and make the operation object stop at the pre-stop position according to the calculated moving distance.
在本申请中将停止移动时的当前位置称为预停留位置。In this application, the current position when the movement stops is referred to as a pre-stay position.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象的移动过程可以有两种实现方式。其一是通过函数拟合来实现,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。The moving process of the operation object can be implemented in two ways. One is to achieve it through function fitting. The movement of the operation object on the preset trajectory is fitted with a function. The advantage of this implementation is that the operation object can be distributed at any point on the fitting trajectory, and these operation objects can be moved at any time. The movement process on the preset trajectory is continuous, and the movement is relatively smooth from the visual effect.
另一种是让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。The other is to make the moving process of these operating objects consist of multiple discrete positions, and the moving positions of multiple operating objects on the preset track are intermittent, so that the moving positions of these operating objects on the preset track are intermittent . For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
通过电子设备屏幕的手势控制设备操作的方法的第五实施例The fifth embodiment of the method for controlling device operation through gestures on the screen of an electronic device
图5示出了本发明的通过电子设备屏幕的手势控制设备操作的方法的第五实施例的流程。请参见图5,下面是对本实施例中各个步骤的详细描述。Fig. 5 shows the flow of the fifth embodiment of the method for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Please refer to FIG. 5 , the following is a detailed description of each step in this embodiment.
步骤S50:检测手势的起始点和结束点。Step S50: Detect the start point and end point of the gesture.
将手指碰触屏幕时的位置作为手势的起始点,将手指离开屏幕时的位置作为手势的结束点。The position when the finger touches the screen is used as the start point of the gesture, and the position when the finger leaves the screen is used as the end point of the gesture.
步骤S51:检测手指在结束点的瞬时速度。Step S51: Detect the instantaneous speed of the finger at the end point.
步骤S52:判断瞬时速度是否为0,如果瞬时速度为0,表示是拖动手势,进行步骤S53~S54的处理,如果瞬时速度不为0,表示是甩动手势,进行步骤S55~S56的处理。Step S52: Determine whether the instantaneous speed is 0. If the instantaneous speed is 0, it means that it is a dragging gesture, and proceed to the processing of steps S53-S54. If the instantaneous speed is not 0, it means that it is a shaking gesture, and proceed to the processing of steps S55-S56 .
本实施例中的拖动手势是指用户这样的操作:用户用手指按住屏幕,将目标专辑封面拖动到预定的位置。The drag gesture in this embodiment refers to an operation of the user: the user presses and holds the screen with a finger, and drags the target album cover to a predetermined position.
本实施例中的甩动手势是指用户这样的操作:用户用手指在屏幕上划过,对操作对象的定位无特定目标,只产生转动的效果。The flicking gesture in this embodiment refers to the operation of the user: the user slides his finger across the screen, and there is no specific target for the positioning of the operation object, and only the effect of rotation is generated.
步骤S53:操作对象开始跟随拖动手势在预设轨迹上移动。Step S53: the operation object starts to move on the preset track following the drag gesture.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象的移动过程可以有两种实现方式。其一是通过函数拟合来实现,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。The moving process of the operation object can be implemented in two ways. One is to achieve it through function fitting. The movement of the operation object on the preset trajectory is fitted with a function. The advantage of this implementation is that the operation object can be distributed at any point on the fitting trajectory, and these operation objects can be moved at any time. The movement process on the preset trajectory is continuous, and the movement is relatively smooth from the visual effect.
另一种是让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。The other is to make the moving process of these operating objects consist of multiple discrete positions, and the moving positions of multiple operating objects on the preset track are intermittent, so that the moving positions of these operating objects on the preset track are intermittent . For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
步骤S54:当拖动手势到达结束点时,让这些操作对象停止移动,然后进入步骤S57的处理。Step S54: When the drag gesture reaches the end point, make these operation objects stop moving, and then enter the processing of step S57.
在本申请中将停止移动时的当前位置称为预停留位置。In this application, the current position when the movement stops is referred to as a pre-stay position.
步骤S55:基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。Step S55: Based on the preset physical model, calculate the moving distance of the operation object according to the detected instantaneous speed and the preset damping value.
预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
步骤S56:利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置,然后进入步骤S57的处理。Step S56: Use the above physical model to simulate the moving process, move the operation object on the preset trajectory, and make the operation object stop at the pre-stop position according to the calculated moving distance, and then enter the processing of step S57.
在本申请中将停止移动时的当前位置称为预停留位置。In this application, the current position when the movement stops is referred to as a pre-stay position.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象的移动过程可以有两种实现方式。其一是通过函数拟合来实现,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。The moving process of the operation object can be implemented in two ways. One is to achieve it through function fitting. The movement of the operation object on the preset trajectory is fitted with a function. The advantage of this implementation is that the operation object can be distributed at any point on the fitting trajectory, and these operation objects can be moved at any time. The movement process on the preset trajectory is continuous, and the movement is relatively smooth from the visual effect.
另一种是让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。The other is to make the moving process of these operating objects consist of multiple discrete positions, and the moving positions of multiple operating objects on the preset track are intermittent, so that the moving positions of these operating objects on the preset track are intermittent . For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
步骤S57:在操作对象停止移动的同时,检查预设的被选位置上是否存在一操作对象,如果预设的被选位置上存在操作对象,则将预停留位置作为最终的位置,如果预设的被选位置上不存在操作对象,则进行步骤S58的处理。Step S57: When the operation object stops moving, check whether there is an operation object at the preset selected position, if there is an operation object at the preset selected position, take the pre-stay position as the final position, if the preset If there is no operation object at the selected position, the process of step S58 is performed.
步骤S58:对预停留位置进行修正,将与预设的被选位置上邻近的操作对象移动到预设的被选位置上。Step S58: Correct the pre-stay position, and move the operation object adjacent to the preset selected position to the preset selected position.
本步骤的修正操作可分为两种情况。第一种情况下,操作对象的移动方向是规定的,则将位于这一方向上的离预设的被选位置最近的操作对象移动到预设的被选位置上。第二种情况下,操作对象的移动方向不是固定的,则将位于任一方向上的离预设的被选位置最近的(即,选择最近的操作对象,不考虑其位于哪个方向)的操作对象移动至预设的被选位置上。The correction operation in this step can be divided into two situations. In the first case, the moving direction of the operating object is specified, and the operating object located in this direction and closest to the preset selected position is moved to the preset selected position. In the second case, the moving direction of the operation object is not fixed, then the operation object located in any direction closest to the preset selected position (that is, select the nearest operation object, regardless of which direction it is located) Move to the preset selected position.
通过电子设备屏幕的手势控制设备操作的装置的第一实施例The first embodiment of the device for controlling the operation of the device through gestures on the screen of the electronic device
图7示出了本发明的通过电子设备屏幕的手势控制设备操作的装置的第一实施例的原理。请参见图7,本实施例的装置包括:手势检测模块10、操作对象移动模块12以及位置修正模块14。Fig. 7 shows the principle of the first embodiment of the device for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Referring to FIG. 7 , the device of this embodiment includes: a gesture detection module 10 , an operation object moving module 12 and a position correction module 14 .
模块之间的连接关系是:操作对象移动模块12连接手势检测模块10,位置修正模块14连接操作对象移动模块12。The connection relationship between the modules is: the operation object movement module 12 is connected to the gesture detection module 10 , and the position correction module 14 is connected to the operation object movement module 12 .
装置的工作原理如下。在手势检测模块10中,检测手指在电子设备屏幕上针对多个操作对象其中之一的拖动手势的起始点和结束点。本实施例中的拖动手势是指用户这样的操作:用户用手指按住屏幕,将目标专辑封面拖动到预定的位置。而拖动手势的起始点就是手指碰触屏幕的位置。因此,当手指碰触屏幕时,本实施例就检测出拖动手势的起始点。而当手指离开屏幕时,本实施例就检测出拖动手势的结束点。The working principle of the device is as follows. In the gesture detection module 10, a start point and an end point of a finger's drag gesture for one of the plurality of operation objects on the screen of the electronic device are detected. The drag gesture in this embodiment refers to an operation of the user: the user presses and holds the screen with a finger, and drags the target album cover to a predetermined position. The starting point of the drag gesture is the position where the finger touches the screen. Therefore, when a finger touches the screen, this embodiment detects the starting point of the drag gesture. And when the finger leaves the screen, the present embodiment detects the end point of the drag gesture.
在操作对象移动模块12中,使得操作对象随着拖动手势在预设轨迹上移动,在手势检测模块10检测到起始点时开始移动,在手势检测模块10检测到结束点时停止移动。当停止移动时,这些操作对象停留在当前的位置,该位置被称为预停留位置。预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In the operation object moving module 12, the operation object is moved along the preset trajectory with the drag gesture, and starts to move when the gesture detection module 10 detects the starting point, and stops moving when the gesture detection module 10 detects the end point. When stopping moving, these operands stay at the current position, which is called the pre-stay position. There are two types of preset trajectories, one is a non-closed linear graph, such as a straight line or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or the illustrated infinity symbol.
操作对象移动模块12的一种实现方式是其中设有函数拟合单元,在函数拟合单元中,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。One implementation of the operation object moving module 12 is that a function fitting unit is arranged therein. In the function fitting unit, the movement of the operation object on the preset trajectory is fitted by a function. The advantage of this implementation is that the operation object can be Arbitrary points distributed on the fitting trajectory can make the moving process of these operating objects on the preset trajectory continuous, which is relatively smooth from the visual effect.
操作对象移动模块12的另一种实现方式是其中设有间断移动单元,在间断移动单元中,让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。Another implementation of the operation object movement module 12 is that an intermittent movement unit is provided therein. In the intermittent movement unit, the movement process of these operation objects is composed of multiple discrete positions, and the movement of the operation objects on the preset track The moving position is discontinuous, so the moving positions of these operands on the preset track are discontinuous. For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
位置修正模块14负责当检查出预设的被选位置上不存在操作对象时,对预停留位置进行修正,将与预设的被选位置上邻近的一个操作对象移动到预设的被选位置上。The position correction module 14 is responsible for correcting the pre-stay position when it is detected that there is no operation object at the preset selected position, and moving an operation object adjacent to the preset selected position to the preset selected position superior.
位置修正模块14包括第一修正单元和第二修正单元。在第一修正单元中,操作对象的移动方向是规定的,将位于这一方向上的离预设的被选位置最近的操作对象移动到预设的被选位置上。在第二修正单元中,操作对象的移动方向不是固定的,则将位于任一方向上的离预设的被选位置最近的(即,选择最近的操作对象,不考虑其位于哪个方向)的操作对象移动至预设的被选位置上。The position correction module 14 includes a first correction unit and a second correction unit. In the first correction unit, the moving direction of the operation object is specified, and the operation object located in this direction and closest to the preset selected position is moved to the preset selected position. In the second correction unit, if the moving direction of the operation object is not fixed, the operation that is closest to the preset selected position in any direction (that is, select the nearest operation object, regardless of which direction it is located) The object moves to the preset selected position.
通过电子设备屏幕的手势控制设备操作的装置的第二实施例The second embodiment of the device for controlling the operation of the device through gestures on the screen of the electronic device
图8示出了本发明的通过电子设备屏幕的手势控制设备操作的装置的第二实施例的原理。请参见图8,本实施例的装置包括:手势检测模块20、速度检测模块22、移动距离计算模块24、以及操作对象移动模块26。Fig. 8 shows the principle of the second embodiment of the device for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Referring to FIG. 8 , the device of this embodiment includes: a gesture detection module 20 , a speed detection module 22 , a movement distance calculation module 24 , and an operation object movement module 26 .
模块之间的连接关系是:速度检测模块22连接手势检测模块20,移动距离计算模块24连接速度检测模块22,操作对象移动模块26连接移动距离计算模块24。The connection relationship between the modules is: the speed detection module 22 is connected to the gesture detection module 20 , the movement distance calculation module 24 is connected to the speed detection module 22 , and the operation object movement module 26 is connected to the movement distance calculation module 24 .
装置的工作原理如下。手势检测模块20检测手指在电子设备屏幕上针对多个操作对象之一的甩动手势的起始点和结束点。本实施例中的甩动手势是指用户这样的操作:用户用手指在屏幕上划过,对操作对象的定位无特定目标,只产生转动的效果。而甩动手势的起始点就是手指碰触屏幕的位置,结束点就是手指离开屏幕的位置。因此,当手指离开屏幕时,本实施例就检测出甩动手势的结束点。The working principle of the device is as follows. The gesture detection module 20 detects a start point and an end point of a finger's flick gesture on the screen of the electronic device for one of the plurality of operation objects. The flicking gesture in this embodiment refers to the operation of the user: the user slides his finger across the screen, and there is no specific target for the positioning of the operation object, and only the effect of rotation is produced. The starting point of the shaking gesture is the position where the finger touches the screen, and the end point is the position where the finger leaves the screen. Therefore, when the finger leaves the screen, this embodiment detects the end point of the flick gesture.
速度检测模块22检测手指在结束点的瞬时速度。移动距离计算模块24基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。The speed detection module 22 detects the instantaneous speed of the finger at the end point. The moving distance calculation module 24 calculates the moving distance of the operation object according to the detected instantaneous speed and the preset damping value based on the preset physical model. The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
操作对象移动模块26利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置。The operation object moving module 26 simulates the moving process by using the above-mentioned physical model, moves the operation object on a preset trajectory, and makes the operation object stop at a pre-stop position according to the calculated moving distance.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象移动模块26的一种实现方式是其中设有函数拟合单元,在函数拟合单元中,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。One implementation of the operation object moving module 26 is that a function fitting unit is arranged therein. In the function fitting unit, the movement of the operation object on the preset trajectory is fitted by a function. The advantage of this implementation is that the operation object can be Arbitrary points distributed on the fitting trajectory can make the moving process of these operating objects on the preset trajectory continuous, which is relatively smooth from the visual effect.
操作对象移动模块26的另一种实现方式是其中设有间断移动单元,在间断移动单元中,让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。Another implementation of the operation object movement module 26 is that an intermittent movement unit is provided therein. In the intermittent movement unit, the movement process of these operation objects is composed of a plurality of discrete positions, and the movement of the operation objects on the preset trajectory The moving position is discontinuous, so the moving positions of these operands on the preset track are discontinuous. For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
通过电子设备屏幕的手势控制设备操作的装置的第三实施例The third embodiment of the device for controlling the operation of the device through gestures on the screen of the electronic device
图9示出了本发明的通过电子设备屏幕的手势控制设备操作的装置的第三实施例的原理。请参见图9,本实施例的装置包括:手势检测模块30、速度检测模块32、移动距离计算模块34、操作对象移动模块36以及位置修正模块38。Fig. 9 shows the principle of the third embodiment of the device for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Referring to FIG. 9 , the device of this embodiment includes: a gesture detection module 30 , a speed detection module 32 , a movement distance calculation module 34 , an operation object movement module 36 and a position correction module 38 .
模块之间的连接关系是:速度检测模块32连接手势检测模块30,移动距离计算模块34连接速度检测模块32,操作对象移动模块36连接移动距离计算模块34,位置修正模块38连接操作对象移动模块36。The connection relationship between the modules is: the speed detection module 32 is connected to the gesture detection module 30, the movement distance calculation module 34 is connected to the speed detection module 32, the operation object movement module 36 is connected to the movement distance calculation module 34, and the position correction module 38 is connected to the operation object movement module 36.
装置的工作原理如下。手势检测模块30检测手指在电子设备屏幕上针对多个操作对象之一的甩动手势的起始点和结束点。本实施例中的甩动手势是指用户这样的操作:用户用手指在屏幕上划过,对操作对象的定位无特定目标,只产生转动的效果。而甩动手势的起始点就是手指碰触屏幕的位置,结束点就是手指离开屏幕的位置。因此,当手指离开屏幕时,本实施例就检测出甩动手势的结束点。The working principle of the device is as follows. The gesture detection module 30 detects a start point and an end point of a finger's flick gesture on the screen of the electronic device for one of the plurality of operation objects. The flicking gesture in this embodiment refers to the operation of the user: the user slides his finger across the screen, and there is no specific target for the positioning of the operation object, and only the effect of rotation is generated. The starting point of the shaking gesture is the position where the finger touches the screen, and the end point is the position where the finger leaves the screen. Therefore, when the finger leaves the screen, this embodiment detects the end point of the flick gesture.
速度检测模块32检测手指在结束点的瞬时速度。移动距离计算模块34基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。The speed detection module 32 detects the instantaneous speed of the finger at the end point. The moving distance calculation module 34 calculates the moving distance of the operating object according to the detected instantaneous speed and the preset damping value based on the preset physical model. The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
操作对象移动模块36利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置。The operation object moving module 36 simulates the moving process by using the above-mentioned physical model, moves the operation object on a preset trajectory, and makes the operation object stop at a pre-stop position according to the calculated moving distance.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
操作对象移动模块36的一种实现方式是其中设有函数拟合单元,在函数拟合单元中,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。One implementation of the operation object moving module 36 is that a function fitting unit is arranged therein. In the function fitting unit, the movement of the operation object on the preset trajectory is fitted by a function. The advantage of this realization is that the operation object can be Arbitrary points distributed on the fitting trajectory can make the moving process of these operating objects on the preset trajectory continuous, which is relatively smooth from the visual effect.
操作对象移动模块36的另一种实现方式是其中设有间断移动单元,在间断移动单元中,让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。Another implementation of the operation object movement module 36 is that an intermittent movement unit is provided therein. In the intermittent movement unit, the movement process of these operation objects is composed of a plurality of discrete positions, and the movement of the operation objects on the preset track The moving position is discontinuous, so the moving positions of these operands on the preset track are discontinuous. For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
位置修正模块38在检查出预设的被选位置上不存在操作对象时,对预停留位置进行修正,将与预设的被选位置上邻近的操作对象移动到预设的被选位置上。When the position correction module 38 detects that there is no operation object at the preset selected position, it corrects the pre-stay position, and moves the operation object adjacent to the preset selected position to the preset selected position.
位置修正模块38包括第一修正单元和第二修正单元。在第一修正单元中,操作对象的移动方向是规定的,将位于这一方向上的离预设的被选位置最近的操作对象移动到预设的被选位置上。在第二修正单元中,操作对象的移动方向不是固定的,则将位于任一方向上的离预设的被选位置最近的(即,选择最近的操作对象,不考虑其位于哪个方向)的操作对象移动至预设的被选位置上。The position correction module 38 includes a first correction unit and a second correction unit. In the first correction unit, the moving direction of the operation object is specified, and the operation object located in this direction and closest to the preset selected position is moved to the preset selected position. In the second correction unit, if the moving direction of the operation object is not fixed, the operation that is closest to the preset selected position in any direction (that is, select the nearest operation object, regardless of which direction it is located) The object moves to the preset selected position.
通过电子设备屏幕的手势控制设备操作的装置的第四实施例The fourth embodiment of the device for controlling the operation of the device through gestures on the screen of the electronic device
图10示出了本发明的通过电子设备屏幕的手势控制设备操作的装置的第四实施例的原理。请参见图10,本实施例的装置包括:手势检测模块40、速度检测模块41、手势判断模块42、第一操作对象移动模块43、移动距离计算模块44以及第二操作对象移动模块45。Fig. 10 shows the principle of the fourth embodiment of the device for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Referring to FIG. 10 , the device of this embodiment includes: a gesture detection module 40 , a speed detection module 41 , a gesture judgment module 42 , a first operation object movement module 43 , a movement distance calculation module 44 and a second operation object movement module 45 .
模块之间的连接关系是:速度检测模块41连接手势检测模块40,手势判断模块42连接速度检测模块41,第一操作对象移动模块43连接手势判断模块42,移动距离计算模块44同时连接手势判断模块42和速度检测模块41,第二操作对象移动模块45连接移动距离计算模块44。The connection relationship between the modules is: the speed detection module 41 is connected to the gesture detection module 40, the gesture judgment module 42 is connected to the speed detection module 41, the first operation object moving module 43 is connected to the gesture judgment module 42, and the moving distance calculation module 44 is connected to the gesture judgment module at the same time. The module 42 is connected with the speed detection module 41 and the second operation object movement module 45 is connected with the movement distance calculation module 44 .
装置的工作原理如下。手势检测模块40检测手指在电子设备屏幕上针对多个操作对象之一的起始点和结束点。其中,将手指碰触屏幕的位置判断为手势的起始点,将手指离开屏幕的位置判断为手势的结束点。The working principle of the device is as follows. The gesture detection module 40 detects a start point and an end point of a finger on one of the plurality of operation objects on the screen of the electronic device. Wherein, the position where the finger touches the screen is judged as the start point of the gesture, and the position where the finger leaves the screen is judged as the end point of the gesture.
速度检测模块41检测手指在结束点的瞬时速度。再由手势判断模块42根据速度检测模块41计算出的手指在结束点的瞬时速度来判断手势是属于拖动手势还是甩动手势。如果瞬时速度为0,则判断出是拖动手势,如果瞬时速度不为0,则判断出是甩动手势。The speed detection module 41 detects the instantaneous speed of the finger at the end point. Then the gesture judging module 42 judges whether the gesture belongs to a dragging gesture or a flicking gesture according to the instantaneous speed of the finger at the end point calculated by the speed detecting module 41 . If the instantaneous speed is 0, it is judged to be a dragging gesture, and if the instantaneous speed is not 0, it is judged to be a shaking gesture.
当判断出是拖动手势后,进行第一操作对象移动模块43的运行。在第一操作对象移动模块43中,使得操作对象随着拖动手势在预设轨迹上移动,在手势检测模块40检测到起始点时开始移动,在手势检测模块40检测到结束点时停止移动。当停止移动时,这些操作对象停留在当前的位置,该位置被称为预停留位置。预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。When it is determined that it is a drag gesture, the first operation object moving module 43 is executed. In the first operation object moving module 43, make the operation object move on the preset track along with the drag gesture, start moving when the gesture detection module 40 detects the starting point, and stop moving when the gesture detection module 40 detects the end point . When stopping moving, these operands stay at the current position, which is called the pre-stay position. There are two types of preset trajectories, one is a non-closed linear graph, such as a straight line or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or the illustrated infinity symbol.
第一操作对象移动模块43的一种实现方式是其中设有函数拟合单元,在函数拟合单元中,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。One implementation of the first operation object moving module 43 is that a function fitting unit is arranged therein. In the function fitting unit, the movement of the operation object on the preset track is fitted by a function. The benefit of this realization is that the operation Objects can be distributed at any point on the fitting trajectory, which can make the movement process of these operating objects on the preset trajectory continuous, which is smoother in terms of visual effects.
第一操作对象移动模块43的另一种实现方式是其中设有间断移动单元,在间断移动单元中,让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。Another implementation of the first operation object moving module 43 is that an intermittent movement unit is provided therein. In the intermittent movement unit, the movement process of these operation objects is composed of a plurality of discrete positions, and the plurality of operation objects are on the preset trajectory. The movement position on is discontinuous, so that the movement position of these operands on the preset track is discontinuous. For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
当判断出是甩动手势后,进行移动距离计算模块44的运行。移动距离计算模块44基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。After judging that it is a shaking gesture, the operation of the movement distance calculation module 44 is performed. The movement distance calculation module 44 calculates the movement distance of the operation object according to the detected instantaneous speed and the preset damping value based on the preset physical model. The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
第二操作对象移动模块45利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置。The second operation object moving module 45 uses the above physical model to simulate the moving process, moves the operation object on a preset trajectory, and makes the operation object stop at a pre-stop position according to the calculated moving distance.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
第二操作对象移动模块45的一种实现方式是其中设有函数拟合单元,在函数拟合单元中,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。One implementation of the second operation object moving module 45 is that a function fitting unit is arranged therein. In the function fitting unit, the movement of the operation object on the preset trajectory is fitted by a function. The benefit of this realization is that the operation Objects can be distributed at any point on the fitting trajectory, which can make the movement process of these operating objects on the preset trajectory continuous, which is smoother in terms of visual effects.
第二操作对象移动模块45的另一种实现方式是其中设有间断移动单元,在间断移动单元中,让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。Another implementation of the second operation object movement module 45 is that an intermittent movement unit is provided therein. In the intermittent movement unit, the movement process of these operation objects is composed of a plurality of discrete positions, and the plurality of operation objects are on the preset trajectory. The movement position on is discontinuous, so that the movement position of these operands on the preset track is discontinuous. For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
通过电子设备屏幕的手势控制设备操作的装置的第五实施例A fifth embodiment of an apparatus for controlling device operation through gestures on the screen of an electronic device
图11示出了本发明的通过电子设备屏幕的手势控制设备操作的装置的第五实施例的原理。请参见图11,本实施例的装置包括:手势检测模块50、速度检测模块51、手势判断模块52、第一操作对象移动模块53、移动距离计算模块54、第二操作对象移动模块55以及位置修正模块56。Fig. 11 shows the principle of the fifth embodiment of the device for controlling the operation of the electronic device through gestures on the screen of the electronic device according to the present invention. Please refer to FIG. 11 , the device of this embodiment includes: a gesture detection module 50, a speed detection module 51, a gesture judgment module 52, a first operation object movement module 53, a movement distance calculation module 54, a second operation object movement module 55 and a position Modification module 56.
模块之间的连接关系是:速度检测模块51连接手势检测模块50,手势判断模块52连接速度检测模块51,第一操作对象移动模块53连接手势判断模块52,移动距离计算模块54分别连接手势判断模块52和速度检测模块51,第二操作对象移动模块55连接移动距离计算模块54。位置修正模块56分别连接第一操作对象移动模块53和第二操作对象移动模块55。The connection relationship between the modules is: the speed detection module 51 is connected to the gesture detection module 50, the gesture judgment module 52 is connected to the speed detection module 51, the first operation object moving module 53 is connected to the gesture judgment module 52, and the moving distance calculation module 54 is connected to the gesture judgment module 54 respectively. The module 52 is connected with the speed detection module 51 and the second operation object movement module 55 is connected with the movement distance calculation module 54 . The position correction module 56 is respectively connected to the first operation object moving module 53 and the second operation object moving module 55 .
装置的工作原理如下。手势检测模块50检测手指在电子设备屏幕上针对多个操作对象之一的起始点和结束点。其中,将手指碰触屏幕的位置判断为手势的起始点,将手指离开屏幕的位置判断为手势的结束点。The working principle of the device is as follows. The gesture detection module 50 detects a start point and an end point of a finger on one of the plurality of operation objects on the screen of the electronic device. Wherein, the position where the finger touches the screen is judged as the start point of the gesture, and the position where the finger leaves the screen is judged as the end point of the gesture.
速度检测模块51检测手指在结束点的瞬时速度。再由手势判断模块52根据速度检测模块51计算出的手指在结束点的瞬时速度来判断手势是属于拖动手势还是甩动手势。如果瞬时速度为0,则判断出是拖动手势,如果瞬时速度不为0,则判断出是甩动手势。The speed detection module 51 detects the instantaneous speed of the finger at the end point. Then, the gesture judging module 52 judges whether the gesture belongs to a dragging gesture or a flicking gesture according to the instantaneous speed of the finger at the end point calculated by the speed detecting module 51 . If the instantaneous speed is 0, it is judged to be a dragging gesture, and if the instantaneous speed is not 0, it is judged to be a shaking gesture.
当判断出是拖动手势后,进行第一操作对象移动模块53的运行。在第一操作对象移动模块53中,使得操作对象随着拖动手势在预设轨迹上移动,在手势检测模块50检测到起始点时开始移动,在手势检测模块50检测到结束点时停止移动。当停止移动时,这些操作对象停留在当前的位置,该位置被称为预停留位置。预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。When it is determined that it is a drag gesture, the first operation object moving module 53 is executed. In the first operation object moving module 53, the operation object is moved on the preset track along with the drag gesture, and starts to move when the gesture detection module 50 detects the starting point, and stops moving when the gesture detection module 50 detects the end point . When stopping moving, these operands stay at the current position, which is called the pre-stay position. There are two types of preset trajectories, one is a non-closed linear graph, such as a straight line or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or the illustrated infinity symbol.
第一操作对象移动模块53的一种实现方式是其中设有函数拟合单元,在函数拟合单元中,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。One implementation of the first operation object moving module 53 is that a function fitting unit is arranged therein. In the function fitting unit, the movement of the operation object on the preset trajectory is fitted by a function. The benefit of this realization is that the operation Objects can be distributed at any point on the fitting trajectory, which can make the movement process of these operating objects on the preset trajectory continuous, which is smoother in terms of visual effects.
第一操作对象移动模块53的另一种实现方式是其中设有间断移动单元,在间断移动单元中,让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。Another implementation of the first operation object movement module 53 is that an intermittent movement unit is provided therein. In the intermittent movement unit, the movement process of these operation objects is composed of a plurality of discrete positions, and the plurality of operation objects are on the preset trajectory. The movement position on is discontinuous, so that the movement position of these operands on the preset track is discontinuous. For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
当判断出是甩动手势后,进行移动距离计算模块54的运行。移动距离计算模块54基于预设的物理模型,根据检测到的瞬时速度和预设的阻尼值计算操作对象的移动距离。预设的阻尼值可人为设定,是一个常数,物理模型中的公式也是公知的或人为设定的,基于瞬时速度、阻尼值以及模型中的公知,可得出操作对象在瞬时速度的推动下,能够移动的距离。When it is judged that it is a shaking gesture, the operation of the movement distance calculation module 54 is performed. The moving distance calculation module 54 calculates the moving distance of the operation object according to the detected instantaneous speed and the preset damping value based on the preset physical model. The preset damping value can be set artificially, which is a constant. The formula in the physical model is also known or artificially set. Based on the instantaneous speed, damping value and the known in the model, it can be obtained that the operation object is pushed at the instantaneous speed Next, the distance that can be moved.
第二操作对象移动模块55利用上述的物理模型模拟移动过程,在预设轨迹上移动操作对象,并根据计算出的移动距离使操作对象停在预停留位置。The second operation object moving module 55 uses the above physical model to simulate the moving process, moves the operation object on a preset trajectory, and makes the operation object stop at a pre-stop position according to the calculated moving distance.
在本实施例中,预设轨迹可以分为两种,一种是非封闭的线性图,例如直线、或者曲线等,一种是封闭的循环图形,例如圆形、椭圆、长方形、或者图示的无穷大符号等。In this embodiment, the preset trajectory can be divided into two types, one is an unclosed linear graph, such as a straight line, or a curve, and the other is a closed circular graph, such as a circle, ellipse, rectangle, or illustrated infinity symbol etc.
第二操作对象移动模块55的一种实现方式是其中设有函数拟合单元,在函数拟合单元中,将操作对象在预设轨迹上的移动用函数来拟合,这样实现的好处是操作对象可以分布在拟合轨迹上的任意点,可以使这些操作对象在预设轨迹上的移动过程是连续的,从视觉效果上看这样的移动较为平顺。One implementation of the second operation object moving module 55 is that a function fitting unit is arranged therein. In the function fitting unit, the movement of the operation object on the preset trajectory is fitted by a function. The benefit of this realization is that the operation Objects can be distributed at any point on the fitting trajectory, which can make the movement process of these operating objects on the preset trajectory continuous, which is smoother in terms of visual effects.
第二操作对象移动模块55的另一种实现方式是其中设有间断移动单元,在间断移动单元中,让这些操作对象的移动过程由多个离散的位置组成,多个操作对象在预设轨迹上的移动位置是间断的,这样这些操作对象在预设轨迹上的移动位置是间断的。举例来说,对于图6中的无穷大符号的专辑封面,将图片的显示位置在屏幕上按照一定的角度等分布置,特点是由于相邻显示位置之间存在距离,因此在视觉上会产生图片跳格的现象。Another implementation of the second operation object moving module 55 is that an intermittent movement unit is provided therein. In the intermittent movement unit, the movement process of these operation objects is composed of a plurality of discrete positions, and the plurality of operation objects are on the preset trajectory. The movement position on is discontinuous, so that the movement position of these operands on the preset track is discontinuous. For example, for the album cover of the infinity symbol in Figure 6, the display position of the picture is arranged in equal parts on the screen according to a certain angle. The characteristic is that there is a distance between adjacent display positions, so visually it will produce The jumping phenomenon.
位置修正模块56在检查出预设的被选位置上不存在操作对象时,对预停留位置进行修正,将与预设的被选位置上邻近的操作对象移动到预设的被选位置上。When the position correction module 56 detects that there is no operation object at the preset selected position, it corrects the pre-stay position, and moves the operation object adjacent to the preset selected position to the preset selected position.
位置修正模块56包括第一修正单元和第二修正单元。在第一修正单元中,操作对象的移动方向是规定的,将位于这一方向上的离预设的被选位置最近的操作对象移动到预设的被选位置上。在第二修正单元中,操作对象的移动方向不是固定的,则将位于任一方向上的离预设的被选位置最近的(即,选择最近的操作对象,不考虑其位于哪个方向)的操作对象移动至预设的被选位置上。The position correction module 56 includes a first correction unit and a second correction unit. In the first correction unit, the moving direction of the operation object is specified, and the operation object located in this direction and closest to the preset selected position is moved to the preset selected position. In the second correction unit, if the moving direction of the operation object is not fixed, the operation that is closest to the preset selected position in any direction (that is, select the nearest operation object, regardless of which direction it is located) The object moves to the preset selected position.
上述实施例是提供给本领域普通技术人员来实现或使用本发明的,本领域普通技术人员可在不脱离本发明的发明思想的情况下,对上述实施例做出种种修改或变化,因而本发明的保护范围并不被上述实施例所限,而应该是符合权利要求书提到的创新性特征的最大范围。The above-mentioned embodiments are provided for those of ordinary skill in the art to implement or use the present invention. Those of ordinary skill in the art can make various modifications or changes to the above-mentioned embodiments without departing from the inventive idea of the present invention. Therefore, the present invention The scope of protection of the invention is not limited by the above-mentioned embodiments, but should be the maximum scope consistent with the innovative features mentioned in the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510478396.5ACN105159574A (en) | 2010-08-19 | 2010-08-19 | Method and apparatus for controlling device operation through gesture on screen of electronic device |
| CN201010257613.5ACN102375588B (en) | 2010-08-19 | 2010-08-19 | Method and device for controlling device operation through gestures on screen of electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010257613.5ACN102375588B (en) | 2010-08-19 | 2010-08-19 | Method and device for controlling device operation through gestures on screen of electronic device |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510478396.5ADivisionCN105159574A (en) | 2010-08-19 | 2010-08-19 | Method and apparatus for controlling device operation through gesture on screen of electronic device |
| Publication Number | Publication Date |
|---|---|
| CN102375588A CN102375588A (en) | 2012-03-14 |
| CN102375588Btrue CN102375588B (en) | 2016-01-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510478396.5APendingCN105159574A (en) | 2010-08-19 | 2010-08-19 | Method and apparatus for controlling device operation through gesture on screen of electronic device |
| CN201010257613.5AActiveCN102375588B (en) | 2010-08-19 | 2010-08-19 | Method and device for controlling device operation through gestures on screen of electronic device |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510478396.5APendingCN105159574A (en) | 2010-08-19 | 2010-08-19 | Method and apparatus for controlling device operation through gesture on screen of electronic device |
| Country | Link |
|---|---|
| CN (2) | CN105159574A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103309599A (en)* | 2012-03-15 | 2013-09-18 | 华为终端有限公司 | Touch screen sliding finding method and touch screen equipment |
| US9703469B2 (en)* | 2012-10-18 | 2017-07-11 | Dreamworks Animation Llc | Distinguishing between impulses and continuous drag operations on a touch-sensitive surface |
| CN103777878B (en)* | 2012-10-22 | 2018-04-27 | 联想(北京)有限公司 | A kind of method and electronic equipment for controlling positioning mark |
| US9171223B2 (en)* | 2012-12-18 | 2015-10-27 | Hyundai Motor Company | System and method for effective section detecting of hand gesture |
| CN107608508B (en)* | 2012-12-19 | 2021-07-16 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN103902216B (en)* | 2012-12-29 | 2017-09-12 | 深圳雷柏科技股份有限公司 | Use gesture the method and system for realizing that file is pulled on a kind of peripheral hardware touch pad |
| TW201430688A (en)* | 2013-01-25 | 2014-08-01 | Wen-Fu Chang | Control method of touch control device |
| CN104346026B (en)* | 2013-07-29 | 2019-07-05 | 阿尔派株式会社 | The display methods of display operating device and display operating device |
| CN105117124B (en)* | 2015-08-10 | 2021-04-13 | 联想(北京)有限公司 | Window processing method and system |
| CN107025894A (en)* | 2016-02-02 | 2017-08-08 | 上海嘉车信息科技有限公司 | Vehicular screen brightness and content show adaptive control system and control method |
| WO2017185264A1 (en)* | 2016-04-27 | 2017-11-02 | 华为技术有限公司 | Interface element selection method and apparatus, and terminal |
| CN106454468A (en)* | 2016-12-19 | 2017-02-22 | 深圳Tcl数字技术有限公司 | Television interface operation method and device |
| CN107219970A (en)* | 2017-05-19 | 2017-09-29 | 智器云南京信息科技有限公司 | Operating method and device, readable storage medium storing program for executing, the terminal of visual analyzing chart |
| CN108829323B (en)* | 2018-06-22 | 2022-04-22 | 联想(北京)有限公司 | Information processing method and device and electronic equipment |
| CN109814788B (en)* | 2019-01-30 | 2021-07-20 | 广州华多网络科技有限公司 | Method, system, equipment and computer readable medium for determining display target |
| CN113568549A (en)* | 2021-04-20 | 2021-10-29 | 华为技术有限公司 | Graphical interface display method, electronic device, medium, and program product |
| CN113552987B (en)* | 2021-04-20 | 2022-09-16 | 华为技术有限公司 | Graphical interface display method, electronic device, medium, and program product |
| CN117032851B (en)* | 2023-06-29 | 2024-09-24 | 荣耀终端有限公司 | Method for displaying objects in chessboard layout, electronic device and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1326564A (en)* | 1998-09-15 | 2001-12-12 | 艾利森公司 | Apparatus and method for moving an object on a touch-sensitive display screen |
| US20090058820A1 (en)* | 2007-09-04 | 2009-03-05 | Microsoft Corporation | Flick-based in situ search from ink, text, or an empty selection region |
| CN101539833A (en)* | 2008-03-21 | 2009-09-23 | Lg电子株式会社 | Mobile terminal and screen display method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6690387B2 (en)* | 2001-12-28 | 2004-02-10 | Koninklijke Philips Electronics N.V. | Touch-screen image scrolling system and method |
| US7958456B2 (en)* | 2005-12-23 | 2011-06-07 | Apple Inc. | Scrolling list with floating adjacent index symbols |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1326564A (en)* | 1998-09-15 | 2001-12-12 | 艾利森公司 | Apparatus and method for moving an object on a touch-sensitive display screen |
| US20090058820A1 (en)* | 2007-09-04 | 2009-03-05 | Microsoft Corporation | Flick-based in situ search from ink, text, or an empty selection region |
| CN101539833A (en)* | 2008-03-21 | 2009-09-23 | Lg电子株式会社 | Mobile terminal and screen display method thereof |
| Publication number | Publication date |
|---|---|
| CN105159574A (en) | 2015-12-16 |
| CN102375588A (en) | 2012-03-14 |
| Publication | Publication Date | Title |
|---|---|---|
| CN102375588B (en) | Method and device for controlling device operation through gestures on screen of electronic device | |
| CN101819498B (en) | Screen display-controlling method facing to slide body of touch screen | |
| US8751955B2 (en) | Scrollbar user interface for multitouch devices | |
| KR102733918B1 (en) | Prevent rolling gestures and touch errors on rolling devices | |
| US20130080951A1 (en) | Device and method for moving icons across different desktop screens and related computer readable storage media comprising computer executable instructions | |
| RU2701988C2 (en) | Parametric inertia and application programming interfaces | |
| CN101727230B (en) | Method and device for controlling cursor of touch screen, and mobile communication terminal | |
| CN106681603B (en) | A kind of method and mobile terminal for adjusting video playing progress | |
| JP2014520313A5 (en) | ||
| KR101504310B1 (en) | User terminal and interfacing method of the same | |
| US10877565B2 (en) | Method and system for controlling play of multimedia content | |
| CN104102418A (en) | Method and device for locating target position of input box in mobile terminal browser | |
| CN103150119B (en) | The method and system of touch panel device and wherein control electrical form location | |
| CN102750260B (en) | Describe electronic equipment and the curve plotting method of curve | |
| CN103873771A (en) | Image processing device and image processing method | |
| CN105955599A (en) | Realization method for simulating document reading mode in electronic device | |
| JP2015049353A (en) | Information processor, information processing method, and program | |
| TWI768407B (en) | Prediction control method, input system and computer readable recording medium | |
| CN110942519B (en) | Computer assembly virtual experiment system and implementation method thereof | |
| CN104317485B (en) | electronic blackboard display control method and device | |
| CN104166508B (en) | A kind of touch-control implementation method and device | |
| JP6230338B2 (en) | Information processing apparatus, learning support system, and learning support program | |
| JP2013054401A5 (en) | ||
| CN103309581A (en) | A method and device for positioning a progress bar | |
| KR101329050B1 (en) | System and method for creating learning contents for children |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | Address after:201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai Patentee after:Botai vehicle networking technology (Shanghai) Co.,Ltd. Patentee after:SHANGHAI PATEO INTERNET TECHNOLOGY SERVICE Co.,Ltd. Address before:200235 block D1, 2nd floor, Zhaofeng global building, 1800 Zhongshan West Road, Shanghai Patentee before:SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING Co.,Ltd. Patentee before:SHANGHAI PATEO INTERNET TECHNOLOGY SERVICE Co.,Ltd. | |
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address | Address after:Room 3701, No. 866 East Changzhi Road, Hongkou District, Shanghai, 200080 Patentee after:Botai vehicle networking technology (Shanghai) Co.,Ltd. Country or region after:China Patentee after:SHANGHAI PATEO INTERNET TECHNOLOGY SERVICE Co.,Ltd. Address before:201821 room 208, building 4, No. 1411, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai Patentee before:Botai vehicle networking technology (Shanghai) Co.,Ltd. Country or region before:China Patentee before:SHANGHAI PATEO INTERNET TECHNOLOGY SERVICE Co.,Ltd. | |
| CP03 | Change of name, title or address |