WO2018077250A1 - Method and apparatus for determining motion parameters - Google Patents

Method and apparatus for determining motion parameters Download PDF

Info

Publication number
WO2018077250A1
WO2018077250A1 PCT/CN2017/108134 CN2017108134W WO2018077250A1 WO 2018077250 A1 WO2018077250 A1 WO 2018077250A1 CN 2017108134 W CN2017108134 W CN 2017108134W WO 2018077250 A1 WO2018077250 A1 WO 2018077250A1
Authority
WO
WIPO (PCT)
Prior art keywords
contacts
pressure
determining
pressure value
contact
Prior art date
Application number
PCT/CN2017/108134
Other languages
French (fr)
Chinese (zh)
Inventor
蔡睿
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018077250A1 publication Critical patent/WO2018077250A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Definitions

  • step 702 an offset angle of the moving direction of the object is calculated according to the pressure difference between the two secondary contact presses, and the moving direction of the object is adjusted according to the calculated offset angle.
  • the embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
  • the computer can be caused to perform any of the methods provided in the above embodiments.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a variety of media that can store program code such as a hard disk, a disk, or an optical disk.

Abstract

A method and apparatus for determining motion parameters, said method comprising: determining location information and a pressure value of pressing pressure of two or more points of contact acting on a touchscreen, and determining target motion parameters according to at least one from among the location information and the pressure value of the pressing pressure of said two or more points of contact, wherein said motion parameters comprise at least one from among a direction of motion and a speed of motion.

Description

运动参数的确定方法及装置Method and device for determining motion parameters 技术领域Technical field
本公开涉及通信技术领域,例如涉及一种运动参数的确定方法及装置。The present disclosure relates to the field of communication technologies, for example, to a method and apparatus for determining motion parameters.
背景技术Background technique
随着科技的发展,能够感知触摸方向及触摸力度的触摸屏的兴起为更多维度的输入操作提供了可能,利用上述触摸屏能够实现更多的操作,从而为用户带来不一样的体验。例如,在传统赛车游戏中,除了提供重力感应的操作方式,还提供了触摸屏的操作方式,但对赛车的触摸按压控制通常是一维的,在控制赛车进行转向时只会提供一种固定转向角度,对赛车的调整不灵活,不便于用户的控制操作。With the development of technology, the rise of touch screens capable of sensing the direction of touch and the touch force provides a possibility for more dimensional input operations, and the above touch screen can realize more operations, thereby bringing a different experience to the user. For example, in the traditional racing game, in addition to the gravity sensing operation mode, the touch screen operation mode is also provided, but the touch control of the racing car is usually one-dimensional, and only provides a fixed steering when controlling the car to turn. Angle, the adjustment of the car is not flexible, it is not convenient for the user to control the operation.
在一种方案中,可以在屏幕上划分不同区域,其中,不同的区域代表不同的方向,按压的力度代表该方向上的速度,比如将屏幕划分成上下左右四块区域,分别代表上下左右四个方向,通过由一根手指在触摸屏上不同的区域进行按压,能够实现赛车在不同的方向上移动,按压的力度大小代表在某一方向上的行进速度。但是,这种方式手指需要不停地在屏幕的不同区域之间来回地进行移动,从而造成操作不方便,来回的移动手指也会遮挡屏幕,影响用户体验。In one solution, different regions may be divided on the screen, wherein different regions represent different directions, and the pressing force represents speed in the direction, for example, dividing the screen into four regions of up, down, left, and right, respectively representing up, down, left, and right. In one direction, the car can be moved in different directions by pressing a finger on different areas on the touch screen, and the magnitude of the pressing force represents the traveling speed in a certain direction. However, in this way, the finger needs to constantly move back and forth between different areas of the screen, thereby causing inconvenience in operation, and moving the finger back and forth will block the screen and affect the user experience.
发明内容Summary of the invention
本公开提供了一种运动参数的确定方法及装置,可以解决相关技术中触摸屏控制对象移动时操作不方便,用户体验差的问题。The present disclosure provides a method and a device for determining a motion parameter, which can solve the problem that the touch screen control object is inconvenient to operate and the user experience is poor when moving in the related art.
本公开提供了一种运动参数的确定方法,可以包括:确定作用于触摸屏上的两个以上触点的位置信息和按压力的压力值;根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定对象的运动参数,其中,所述运动 参数包括运动方向和运动速度中的至少一个。The present disclosure provides a method for determining a motion parameter, which may include: determining position information of two or more contacts acting on a touch screen and a pressure value of a pressing force; and determining position information and pressing force according to the two or more contacts At least one of the pressure values determining a motion parameter of the object, wherein the motion The parameter includes at least one of a moving direction and a moving speed.
本公开还提供一种运动参数的确定装置,可以包括:第一确定模块,设置为确定作用于触摸屏上的两个以上触点的位置信息和按压力的压力值;第二确定模块,设置为根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定对象的运动参数,其中,所述运动参数包括运动方向和运动速度中的至少一个The present disclosure further provides a determining device for a motion parameter, which may include: a first determining module configured to determine position information of two or more contacts acting on the touch screen and a pressure value of the pressing force; and a second determining module configured to Determining a motion parameter of the object according to at least one of position information of the two or more contacts and a pressure value of the pressing force, wherein the motion parameter includes at least one of a motion direction and a motion speed
本公开还提供了一种存储介质,该存储介质设置为存储用于执行以上任意步骤的程序代码,该存储介质可以为计算机可读的存储介质,存储有计算机可执行指令(如上述程序代码),所述计算机可执行指令用于执行上述任意一种方法。The present disclosure also provides a storage medium configured to store program code for performing any of the above steps, the storage medium being a computer readable storage medium storing computer executable instructions (such as the program code described above) The computer executable instructions are for performing any of the methods described above.
本公开还提供一种移动终端,该移动终端包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述任意一种方法。The present disclosure also provides a mobile terminal comprising one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory when executed by one or more processors , perform any of the above methods.
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。The present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, Having the computer perform any of the methods described above.
本公开能够更加灵活的调整对象的运动方向及运动速度,无需频繁的移动触控位置,不会造成操作不方便以及遮挡屏幕的问题,可以有效解决相关技术中存在的触摸屏移动操作不方便,影响用户体验的问题,可以方便触摸屏对对象的移动操作,还可以避免屏幕遮挡,有效提高用户体验的效果。The disclosure can more flexibly adjust the moving direction and the moving speed of the object, does not need to frequently move the touch position, does not cause inconvenience in operation and obscures the problem of the screen, and can effectively solve the inconvenience and influence of the touch screen moving operation existing in the related art. The user experience problem can facilitate the movement of the touch screen on the object, and can also avoid screen occlusion and effectively improve the user experience.
附图说明DRAWINGS
图1为一实施例提供的一种移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal according to an embodiment;
图2为一实施例提供的运动参数的确定方法的流程图; 2 is a flow chart of a method for determining a motion parameter provided by an embodiment;
图3为一实施例提供的确定运动参数的模块框架图;3 is a block diagram of a module for determining motion parameters provided by an embodiment;
图4为一实施例提供的判断运动方向的示意图;4 is a schematic diagram of determining a motion direction provided by an embodiment;
图5为一实施例提供的偏移示意图;FIG. 5 is a schematic diagram of an offset provided by an embodiment; FIG.
图6为一实施例提供的移动交互系统的工作流程图;6 is a working flow chart of a mobile interaction system according to an embodiment;
图7为一实施例提供的将运动参数的确定方法应用在竞速类游戏中的工作流程;FIG. 7 is a workflow diagram of applying a method for determining a motion parameter in a racing game according to an embodiment; FIG.
图8为一实施例提供的四触点情况下的触点分布示意图;FIG. 8 is a schematic diagram of contact distribution in the case of a four-contact provided by an embodiment; FIG.
图9为一实施例提供的旋转方向示意图;Figure 9 is a schematic view showing the direction of rotation provided by an embodiment;
图10为一实施例提供的四触点情况下的运动参数的确定方法的流程图;10 is a flow chart of a method for determining motion parameters in the case of a four-contact provided by an embodiment;
图11为一实施例提供的运动参数的确定装置的结构框图;FIG. 11 is a structural block diagram of an apparatus for determining motion parameters according to an embodiment; FIG.
图12为实施例一提供的运动参数的确定装置的第二确定模块1102的结构框图;FIG. 12 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters according to the first embodiment;
图13为实施例二提供的运动参数的确定装置的第二确定模块1102的结构框图;FIG. 13 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters provided by Embodiment 2;
图14为实施例三提供的运动参数的确定装置的第二确定模块1102的结构框图;14 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters provided in Embodiment 3;
图15为实施例四提供的运动参数的确定装置的第二确定模块1102的结构框图。FIG. 15 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters provided in Embodiment 4.
具体实施方式detailed description
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。The terms "first", "second" and the like in the specification and claims of the present disclosure and the above-mentioned figures are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
本实施例所提供的方法可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本实施例提供的一种移动终端的硬 件结构框图。如图1所示,移动终端10可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器控制单元(Microcontroller Unit,MCU)或可编程逻辑器件现场可编程门阵列(Field-Programmable Gate Array,FPGA)等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示移动终端不同的配置。The method provided by this embodiment can be performed in a mobile terminal, a computer terminal or the like. Taking a mobile terminal as an example, FIG. 1 is a hard type of a mobile terminal provided by this embodiment. Block diagram of the structure. As shown in FIG. 1, mobile terminal 10 may include one or more (only one of which is shown in FIG. 1) processor 102 (processor 102 may include, but is not limited to, a Microcontroller Unit (MCU) or programmable A processing device such as a Field-Programmable Gate Array (FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative, and does not limit the structure of the above mobile terminal. For example, the mobile terminal 10 may also include more or less components than those shown in FIG. 1, or have a different configuration than the mobile terminal shown in FIG.
存储器104可用于存储应用软件的软件程序以及模块,如本实施例中的运动参数的确定方法对应的程序指令或模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行多种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs of the application software and modules, such as program instructions or modules corresponding to the determination method of the motion parameters in the embodiment, and the processor 102 executes the software program and the modules stored in the memory 104 to execute A functional application and data processing, that is, the above method is implemented. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,用于通过无线方式与互联网进行通讯。Transmission device 106 is for receiving or transmitting data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module for communicating wirelessly with the Internet.
在本实施例中提供了一种运行于上述移动终端的运动参数的确定方法,图2是本实施例提供的运动参数的确定方法的流程图,如图2所示,该流程包括如下步骤: In this embodiment, a method for determining a motion parameter of the mobile terminal is provided. FIG. 2 is a flowchart of a method for determining a motion parameter provided by the embodiment. As shown in FIG. 2, the process includes the following steps:
在步骤202中,确定作用于触摸屏上的两个以上触点的位置信息和按压力的压力值。In step 202, position information of two or more contacts acting on the touch screen and a pressure value of the pressing force are determined.
在步骤204中,根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定对象的运动参数,其中,所述运动参数包括运动方向和运动速度中的至少一个。In step 204, a motion parameter of the object is determined according to at least one of position information of the two or more contacts and a pressure value of the pressing force, wherein the motion parameter includes at least one of a motion direction and a motion speed.
通过上述步骤,在对对象的运动参数进行确定时,是根据两个以上触点的位置信息以及两个以上触点上的按压力的压力值进行确定的,相对于上述仅根据一个触点的位置以及该一个触点上的按压力的压力值对对象的运动参数进行确定的方式,采用本实施例中提供的方法能够更加灵活的调整对象的运动方向及运动速度,无需频繁的移动触控位置,因此也不会造成操作不方便以及遮挡屏幕的问题。可以达到方便触摸屏移动操作,避免屏幕遮挡,有效提高用户体验的效果。Through the above steps, when determining the motion parameter of the object, it is determined according to the position information of the two or more contacts and the pressure value of the pressing force on the two or more contacts, with respect to the above only one contact The position and the pressure value of the pressing force on the one contact determine the motion parameter of the object, and the method provided in this embodiment can more flexibly adjust the moving direction and the moving speed of the object without frequent moving touch. The location, therefore, does not cause inconvenience in operation and occlusion of the screen. It can achieve convenient touch screen movement operation, avoid screen occlusion, and effectively improve the user experience.
可选地,上述步骤的执行主体可以为终端(例如,手机、电脑)等,但不限于此,上述的对象可以是虚拟的对象(例如,手游或网游中的虚拟赛车、虚拟自行车、虚拟飞机),也可以是实体的对象。Optionally, the execution body of the foregoing steps may be a terminal (for example, a mobile phone, a computer), etc., but is not limited thereto, and the foregoing object may be a virtual object (for example, a virtual racing car in a mobile game or an online game, a virtual bicycle, and a virtual Aircraft) can also be an object of the entity.
在本实施例中,当作用于触摸屏上的触点是两个触点时,可以根据两个触点的位置信息以及两个触点的上的按压力的压力值确定对象的运动速度和运动方向中的至少一个,其中,在确定对象的运动方向时,可以由按压力小的触控点向按压力大的触控点做射线,将射线的方向作为对象运动的方向,在确定对象的运动速度时,可以根据两个触点中按压力的压力值较大的那个触点上的压力值确定对象的运动速度,并可以根据按压力的大小调整对象的运动速度,当按压力变大时,相应的增加对象的运动速度,当按压力变小时,相应的减小对象的运动速度。 In the present embodiment, when the contact for the touch screen is two contacts, the motion speed and motion of the object can be determined according to the position information of the two contacts and the pressure value of the pressing force on the two contacts. At least one of the directions, wherein, when determining the moving direction of the object, the touch point with a small pressing force may be used to make a ray to the touch point with a large pressing force, and the direction of the ray is taken as the direction of the object movement, and the object is determined. When the speed is moving, the moving speed of the object can be determined according to the pressure value on the contact with the pressure value of the two contacts, and the moving speed of the object can be adjusted according to the pressing force, and the pressing force becomes larger. When correspondingly, the moving speed of the object is increased, and when the pressing force becomes small, the moving speed of the object is correspondingly reduced.
可选地,根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数可以包括:根据所述两个以上触点上的按压力的压力值确定一个主触点;根据所述主触点上的按压力的压力值确定所述对象的运动速度。Optionally, determining the motion parameter of the object according to at least one of position information of the two or more contacts and a pressure value of the pressing force may include: pressing pressure according to the pressing force on the two or more contacts The value determines a main contact; the speed of movement of the object is determined based on the pressure value of the pressing force on the main contact.
可选地,根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数可以包括:根据所述两个以上触点上的按压力的压力值确定一个主触点;根据所述主触点与其他触点的位置关系确定所述对象的运动方向,其中,所述其他触点为所述两个以上触点中除所述主触点之外的触点。Optionally, determining the motion parameter of the object according to at least one of position information of the two or more contacts and a pressure value of the pressing force may include: pressing pressure according to the pressing force on the two or more contacts Determining a main contact; determining a moving direction of the object according to a positional relationship between the main contact and other contacts, wherein the other contact is the main contact except the two or more contacts Contacts outside.
可选地,根据所述两个以上触点上的按压力的压力值确定主触点可以包括:确定所述两个以上触点上的按压力的压力值最大的一个触点为所述主触点。例如,当上述两个以上触点的数量为三个时,根据三个触点上的按压力的压力值确定一个主触点;根据上述主触点上的按压力的压力值确定上述运动速度。Optionally, determining the main contact according to the pressure value of the pressing force on the two or more contacts may include: determining a contact with the largest pressure value of the pressing force on the two or more contacts as the main Contact. For example, when the number of the two or more contacts is three, a main contact is determined according to the pressure value of the pressing force on the three contacts; and the moving speed is determined according to the pressure value of the pressing force on the main contact .
在本实施例中,可以先对触摸屏上的手势信息进行匹配,例如对当前的触摸点的数量对应的操作进行匹配,可以预先在终端中设置有效的触摸点的数量(如2个、3个或4个),当实际的触摸点的数量与预设的触摸点的数量一致时,才会触发后续的对对象的运动控制,当手势信息与预设的手势信息不匹配时,则不进行响应,以防止误操作;当手势信息与预设的手势信息匹配成功时,则根据手势信息进行触点个数的判断,例如,当判断出触摸屏上有三个触点操作时,可以利用检测装置(或者其他方式)检测三个触点的按压力的压力值,检测装置可以安装在触摸屏所在的终端的内部,也可以安装在其他终端中。直接将检测到的按压力的压力值最大的那个触点确定为主触点,可以根据主触点相对于其他触点的位置确定对象运动的主方向,根据主触点的压力值确定对象运 动的移动速度,可以设置压力值越大,移动的速度越快,也可以设置压力值越小,移动的速度越快。从而有效简化了对象移动主及对象移动速度的确定操作。In this embodiment, the gesture information on the touch screen may be matched first, for example, the operation corresponding to the number of current touch points is matched, and the number of valid touch points may be set in the terminal in advance (for example, 2 or 3) Or 4), when the actual number of touch points coincides with the preset number of touch points, the subsequent motion control on the object is triggered, and when the gesture information does not match the preset gesture information, the motion information is not performed. Responding to prevent misoperation; when the gesture information is successfully matched with the preset gesture information, the number of contacts is determined according to the gesture information, for example, when it is determined that there are three contact operations on the touch screen, the detecting device can be utilized (or other means) detecting the pressure value of the pressing force of the three contacts, the detecting device may be installed inside the terminal where the touch screen is located, or may be installed in other terminals. The contact that detects the maximum pressure value of the pressing force is directly determined as the main contact, and the main direction of the object motion can be determined according to the position of the main contact relative to the other contact, and the object transport is determined according to the pressure value of the main contact. The moving speed can be set. The larger the pressure value is, the faster the moving speed is. The smaller the pressure value, the faster the moving speed. Thereby, the operation of determining the moving speed of the object moving object and the object is effectively simplified.
再例如,当上述两个以上触点的数量为三个时,可以根据三个触点上的按压力的压力值确定一个主触点;根据上述主触点与其他触点的位置关系确定上述对象的运动方向,其中,上述其他触点为上述三个触点中除上述主触点之外的触点。For another example, when the number of the two or more contacts is three, one main contact can be determined according to the pressure value of the pressing force on the three contacts; and the above relationship is determined according to the positional relationship between the main contact and the other contacts. The direction of movement of the object, wherein the other contacts are contacts other than the main contacts among the three contacts.
在本实施例中,主触点与其他两个触点的位置关系可以是二维位置关系,也可以是三维空间位置关系,即,当触摸屏为是具备弯曲变形能力的触摸屏时,三个触点之间可以形成空间上的三维位置关系。In this embodiment, the positional relationship between the main contact and the other two contacts may be a two-dimensional positional relationship, or may be a three-dimensional spatial positional relationship, that is, when the touchscreen is a touchscreen with bending deformation capability, three touches A spatial three-dimensional positional relationship can be formed between the points.
可选地,根据上述两个以上触点上的按压力的压力值确定主触点包括:确定上述三个触点上的按压力的压力值最大的一个触点作为上述主触点。Optionally, determining the main contact according to the pressure value of the pressing force on the two or more contacts includes: determining one contact having the largest pressure value of the pressing force on the three contacts as the main contact.
在本实施例中,可以通过选择压力值最大的触点作为对象运动的主触点,也可以是通过其他的方式选择主触点,选择的条件可以预先设置的,灵活调整的。In this embodiment, the contact with the largest pressure value can be selected as the main contact of the object movement, or the main contact can be selected by other means, and the selected condition can be preset and flexibly adjusted.
可选地,当触点的数量为三个时,根据上述主触点与其他触点的位置关系确定上述对象的运动方向包括:由主触点向两个上述其他触点的连线做垂直线;确定上述垂直线指向上述主触点的方向为上述对象的运动方向。Optionally, when the number of the contacts is three, determining the moving direction of the object according to the positional relationship between the main contact and the other contacts includes: vertically connecting the main contact to the connecting lines of the two other contacts a line; determining a direction in which the vertical line points to the main contact is a moving direction of the object.
在本实施例中,通过作垂直线确定对象的运动主方向,能够实现无论在触摸屏哪个位置进行触摸,都可以精确的确定对象的运动主方向,从而提高了对象移动操作的精准化。In the present embodiment, by determining the main direction of motion of the object by making a vertical line, it is possible to accurately determine the main direction of motion of the object regardless of where the touch screen is touched, thereby improving the accuracy of the object movement operation.
可选地,在根据上述主触点与其他触点的位置关系确定上述对象的运动方向之后,上述方法还包括:根据两个上述其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整。 Optionally, after determining the moving direction of the object according to the positional relationship between the main contact and the other contact, the method further includes: pressing the pressure value according to the pressure on the two other contacts and the two other contacts The pressure difference of the pressure on the upper side adjusts the direction of movement of the above object.
可选地,根据两个上述其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整包括通过如下公式确定相对于所述对象的运动方向的第一偏移角度:第一偏移角度=第一预定偏移角度×(|两个所述其他触点上的压力的压力差|÷两个所述其他触点上的最大压力值);按照所述第一偏移角度对所述对象的运动方向进行调整。Optionally, adjusting the direction of motion of the object based on the pressure value of the pressure on the two other contacts and the pressure difference between the pressures on the two other contacts includes determining motion relative to the object by the following formula First offset angle of direction: first offset angle = first predetermined offset angle x (|pressure difference of pressure on two of the other contacts | 最大 maximum pressure value on two of the other contacts Adjusting the direction of motion of the object according to the first offset angle.
在本实施例中,通过对压力差值的确定,计算出对象运动的第一偏移角度,根据第一运动偏移角度对对象的运动方向进行微调,能够更加精准地控制对象运动的方向,特别是在对象进行转弯的操作(比如赛车游戏),可以实现控制对象进行固定角度的转弯,减少了转弯角度的误差。第一预定偏移角度可以为预设的最大偏移角度,|两个上述其他触点上的压力的压力差|即两个上述其他触点上的压力的压力差的绝对值,比如,汽车转向的最大偏移角度可以是45度,两个上述其他触点上的压力值分别是X1、X2,则第一预定偏移角度=45×(|X1-X2|÷Max[X1,X2])。In this embodiment, by determining the pressure difference value, the first offset angle of the object motion is calculated, and the motion direction of the object is finely adjusted according to the first motion offset angle, so that the direction of the object motion can be controlled more accurately. Especially in the case where the object is turned (such as a racing game), it is possible to control the object to make a fixed angle of turning, which reduces the error of the turning angle. The first predetermined offset angle may be a preset maximum offset angle, | the pressure difference of the pressures on the two other contacts, ie the absolute value of the pressure difference of the pressures on the two other contacts, for example, a car The maximum offset angle of the steering may be 45 degrees, and the pressure values on the two other contacts are X1 and X2, respectively, and the first predetermined offset angle = 45×(|X1-X2|÷Max[X1, X2] ).
可选地,根据两个上述其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整包括:在确定两个上述其他触点上的压力的压力差超过第一预定阈值的情况下,根据两个上述其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整。Optionally, adjusting the direction of motion of the object according to a pressure value of the pressure on the two other contacts and a pressure difference between the pressures of the two other contacts includes: determining two of the other contacts In the case where the pressure difference of the pressure exceeds the first predetermined threshold, the direction of movement of the object is adjusted based on the pressure value of the pressure on the two other contacts and the pressure difference between the pressures on the two other contacts.
在本实施例中,判断两个其他触点上的压力的压力差是否超过第一预定阈值,在超过第一预定阈值的情况下,根据压力差值对运动方向进行调整,在没有超过第一预定阈值的情况下,不对运动方向进行调整,以避免误操作。第一预定阈值可以是设定的固定的数值,也可以根据控制的对象类型或者不同的应用场景(比如三个触点的应用场景或者是四个触点的应用场景等)进行实时设 定的。In this embodiment, it is determined whether the pressure difference of the pressures on the two other contacts exceeds a first predetermined threshold, and if the first predetermined threshold is exceeded, the direction of motion is adjusted according to the pressure difference, without exceeding the first In the case of a predetermined threshold, the direction of motion is not adjusted to avoid erroneous operation. The first predetermined threshold may be a fixed value set, or may be set in real time according to the type of the controlled object or a different application scenario (such as an application scenario of three contacts or an application scenario of four contacts). Fixed.
可选地,当上述两个以上触点的数量为四个时,根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数包括:按照四个触点的位置关系对所述四个触点进行两两组对,并从两对触点中确定一对主触点;根据所述主触点上的按压力的压力值确定所述对象的运动速度。Optionally, when the number of the two or more contacts is four, determining the motion parameter of the object according to at least one of the position information of the two or more contacts and the pressure value of the pressing force comprises: following Positional relationship of four contacts: two pairs of pairs of the four contacts, and a pair of main contacts are determined from the two pairs of contacts; determining the pressure according to the pressure value of the pressing force on the main contact The speed of movement of the object.
在本实施例中,当有四个触点时,可以控制3D空间中对象的运动状态,比如控制虚拟飞机或者实际的飞机,飞机是没有前进和后退的,飞机只有上升和下降,四个触点中前后两个触点的压力差可以决定飞机机头是抬起(即上升)还是降低(即下降),左右两个触点的压力差可以决定飞机机身是向左倾斜还是向右倾斜。四个触点中可以按照矩形对角线的形式进行组对,对角线上的两个触点组成一对,也可以是通过其他方式进行组对。In this embodiment, when there are four contacts, the motion state of the object in the 3D space can be controlled, such as controlling the virtual aircraft or the actual aircraft, the aircraft is not moving forward and backward, the aircraft only rises and falls, and the four touches The pressure difference between the front and rear contacts can determine whether the aircraft nose is raised (ie, raised) or lowered (ie, lowered). The pressure difference between the left and right contacts can determine whether the aircraft body is tilted to the left or to the right. . The four contacts may be paired in the form of a rectangular diagonal, and the two contacts on the diagonal form a pair, or may be paired by other means.
可选地,当上述两个以上触点的数量为四个时,根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数包括:按照四个触点的位置关系对四个触点进行两两组对,并从两对触点中确定一对主触点;根据所述主触点上的压力的压力值和位置信息确定所述对象的运动方向。Optionally, when the number of the two or more contacts is four, determining the motion parameter of the object according to at least one of the position information of the two or more contacts and the pressure value of the pressing force comprises: following The positional relationship of the four contacts performs two sets of two pairs of contacts, and determines a pair of main contacts from the two pairs of contacts; determining the pressure according to the pressure value and position information of the pressure on the main contact The direction of movement of the object.
可选地,从两对触点中确定一对主触点包括:从上述两对触点中确定压力的压力值之和最大的一对触点作为上述主触点。Optionally, determining a pair of main contacts from the two pairs of contacts comprises: forming a pair of contacts having the largest sum of pressure values from the two pairs of contacts as the main contacts.
在本实施例中,通过对比两对触点压力值之和的大小,确定一对主触控点,并根据主触控点中的两个触控点的压力值,确定对象的旋转方向,例如当前后两个触点压力值之和大于左右两个触点压力值之和时,将前后两个触控点确定为一对主触控点,若前触点的压力值大于后触点的压力值时,对象的旋转方向是向前倾,如控制机头抬起,当前触点的压力值小于后触点的压力值时,则对象的旋转方向是向后仰,如控制机头降低。根据左右两个触点确定对象的旋转 方向和根据前后两个触点的方向的触点相似,如当左触点的压力值大于右触点的压力值,则控制机身左倾,若左触点的压力值小于右触点的压力值,则控制机身右倾。In this embodiment, a pair of main touch points are determined by comparing the sum of the pressure values of the two pairs of contacts, and the rotation direction of the object is determined according to the pressure values of the two touch points in the main touch point. For example, when the sum of the pressure values of the last two contacts is greater than the sum of the pressure values of the left and right contacts, the two touch points are determined as a pair of main touch points, if the pressure value of the front contact is greater than the rear contact The pressure value of the object is forward tilting. If the control head is lifted and the pressure value of the current contact is less than the pressure value of the rear contact, the rotation direction of the object is backward, such as the control head. reduce. Determine the rotation of the object based on the left and right contacts The direction is similar to the contact according to the direction of the two front and rear contacts. For example, when the pressure value of the left contact is greater than the pressure value of the right contact, the left side of the control body is tilted, if the pressure of the left contact is less than the pressure of the right contact Value, then control the right side of the fuselage.
可选地,根据上述主触点的压力的压力值和上述主触点的位置信息确定上述对象的运动方向可以包括:由上述主触点中压力的压力值小的触点向压力值大的触点做射线,确定上述射线的方向为上述对象的运动方向。Optionally, determining the moving direction of the object according to the pressure value of the pressure of the main contact and the position information of the main contact may include: a contact with a pressure value having a small pressure value of the pressure in the main contact The contact makes a ray, and the direction of the ray is determined to be the moving direction of the object.
在本实施例中,在确定运动方向时,可以是当前后两个触点压力值之和大于左右两个触点压力值之和,且前触点的压力值大于后触点的压力值时,由后触点向前触点作射线,将射线的方向作为对象的运动方向,即对象的运动主方向。In this embodiment, when determining the direction of motion, the sum of the pressure values of the current two contacts may be greater than the sum of the pressure values of the two contacts, and the pressure value of the front contact is greater than the pressure of the rear contact. The ray is made by the rear contact to the front contact, and the direction of the ray is taken as the moving direction of the object, that is, the main direction of motion of the object.
可选地,根据所述主触点的压力的压力值和位置信息确定所述对象的运动方向之后,所述方法还包括:Optionally, after determining the moving direction of the object according to the pressure value and the position information of the pressure of the main contact, the method further includes:
确定所述主触点中压力的压力值大的触点为第一触点,压力值小的触点为第二触点;根据以下至少一种方式控制所述对象的运动:根据所述第一触点的位置信息确定所述对象的旋转方向,并按照所述旋转方向旋转所述对象;和根据所述第一触点上的压力的压力值与所述第二触点上的压力的压力值的差值确定所述对象的旋转角度,并按照所述旋转角度旋转所述对象。Determining that the contact having a large pressure value of the pressure in the main contact is a first contact, and the contact having a small pressure value is a second contact; controlling movement of the object according to at least one of: according to the Position information of a contact determines a direction of rotation of the object and rotates the object in the direction of rotation; and a pressure value according to a pressure on the first contact and a pressure on the second contact The difference in pressure values determines the angle of rotation of the object and rotates the object in accordance with the angle of rotation.
例如,在控制飞机运动的过程中,机头的触点为前触点,机尾的触点为后触点,前后两个触点为一对主触点,当前触点的压力大于后触点的压力时,前触点为第一触点,位于机头处,则控制机头下降,当前触点的压力小于后触点的压力时,后触点为第一触点,位于机尾处,则控制机头上升,即机尾下降,旋转方向可参考图9。For example, in the process of controlling the movement of the aircraft, the contact of the nose is the front contact, the contact at the tail is the rear contact, and the front and rear contacts are a pair of main contacts, and the pressure of the current contact is greater than the rear contact. When the pressure is applied, the front contact is the first contact, which is located at the head, and the control head is lowered. When the pressure of the current contact is less than the pressure of the rear contact, the rear contact is the first contact and is located at the tail. At the same time, the control head is raised, that is, the tail is lowered, and the direction of rotation can be referred to FIG.
在本实施例中,在确定对象的运动方向之后,确定对象的运动速度时,可 以测量第一触点和第二触点的差值,测量方式不限,可以通过第一触点和第二触点的差值对运动速度进行计算,如第一触点和第二触点上的压力差值越大,则对象的运动速度越大,也可以通过其他方式对对象的运动速度进行确定。In this embodiment, after determining the moving direction of the object, when determining the moving speed of the object, To measure the difference between the first contact and the second contact, the measurement manner is not limited, and the motion speed can be calculated by the difference between the first contact and the second contact, such as the first contact and the second contact The larger the pressure difference is, the larger the moving speed of the object is, and the moving speed of the object can be determined by other means.
可选地,根据所述第一触点上的压力的压力值与所述第二触点上的压力的压力值的差值确定所述对象的旋转角度可以包括:通过如下公式确定上述对象的旋转角度:旋转角度=预定旋转角度×(|上述第一触点上的压力的压力值与上述第二触点上的压力的压力值的差值|÷第一触点上的压力的压力值);之后可以按照上述旋转角度旋转上述对象。Optionally, determining the rotation angle of the object according to a difference between a pressure value of the pressure on the first contact and a pressure value of the pressure on the second contact may include: determining the object by using the following formula Rotation angle: rotation angle = predetermined rotation angle × (| the difference between the pressure value of the pressure on the first contact and the pressure value of the pressure on the second contact | 压力 the pressure value of the pressure on the first contact ); the object can then be rotated at the above rotation angle.
在本实施例中,可以在上述第一触点上与上述第二触点上的压力的压力差值不大于预定阈值时,则不进行旋转角度的计算,以避免误操作。例如,飞机在一个方向上的预定旋转角度是90度,第一触点上的压力的压力值和第二触点上的压力的压力值分别为Y1和Y2,则旋转角度的计算公式=90×(|Y1-Y2|÷Max[Y1,Y2]),,增加了对象的旋转方向的准确性。In this embodiment, when the pressure difference between the pressure on the first contact and the second contact is not greater than a predetermined threshold, the calculation of the rotation angle is not performed to avoid erroneous operation. For example, the predetermined rotation angle of the aircraft in one direction is 90 degrees, the pressure value of the pressure on the first contact and the pressure value of the pressure on the second contact are Y1 and Y2, respectively, and the calculation formula of the rotation angle = 90 ×(|Y1-Y2|÷Max[Y1, Y2]), increases the accuracy of the rotation direction of the object.
可选地,在根据上述主触点的压力的压力值和位置信息确定上述对象的运动方向之后,上述方法还可以包括:根据两个其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整,其中,上述其他触点为上述四个触点中除上述主触点之外的触点。Optionally, after determining the moving direction of the object according to the pressure value and the position information of the pressure of the main contact, the method may further include: pressing the pressure according to the pressure on the two other contacts and the two other touches The pressure difference of the pressure at the point adjusts the moving direction of the object, wherein the other contact is a contact other than the main contact among the four contacts.
可选地,根据两个其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整可以包括:通过如下公式确定上述对象的运动方向的第二偏移角度:第二偏移角度=第二预定偏移角度×(|两个上述其他触点上的压力的压力差|÷两个上述其他触点上的最大压力的压力值);按照上述第二偏移角度对上述对象的运动方向进行调整。Alternatively, adjusting the moving direction of the object according to the pressure value of the pressure on the two other contacts and the pressure difference between the pressures on the two other contacts may include: determining the moving direction of the object by the following formula Second offset angle: second offset angle=second predetermined offset angle×(|pressure difference of pressure on two other above-mentioned other contacts|÷pressure value of maximum pressure on two other above-mentioned contacts); The moving direction of the object is adjusted according to the second offset angle described above.
在本实施例中,在确定了对象的运动主方向之后,为了更加的精准确定对 象的运动方向,可以对对象的运动主方向进行微调,比如可以实现飞机固定角度的旋转,提高了三维对象运动方向的准确性。In this embodiment, after determining the main direction of motion of the object, in order to more accurately determine the pair The direction of motion of the image can be fine-tuned to the main direction of motion of the object. For example, the rotation of the fixed angle of the aircraft can be achieved, and the accuracy of the motion direction of the three-dimensional object is improved.
可选地,根据两个其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整可以包括:在确定两个其他触点上的压力的压力差超过第二预定阈值的情况下,根据两个其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整。Alternatively, adjusting the direction of motion of the object based on the pressure value of the pressure on the two other contacts and the pressure difference between the pressures on the two other contacts may include determining the pressure on the two other contacts In the case where the pressure difference exceeds the second predetermined threshold, the direction of motion of the object is adjusted based on the pressure value of the pressure on the two other contacts and the pressure difference between the pressures on the two other contacts.
在本实施例中,在对对象的运动方向进行调整之前可以对是否调整对象的运动方向进行判断。判断成对触点(即除上述主触点之外的两个其他触点)的压力差值是否超过第二预定阈值(第二预定阈值可以是设定的固定的数值,也可以是根据控制的对象类型或者不同的应用场景进行实时设定的),当两个其他触点压力差值超过第二预定阈值时,则对对象的运动方向进行调整,当两个其他触点压力差值未超过第二预定阈值时,则不对对象的运动方向进行调整。可以避免出现不必要的误操作,提高对象运动方向的准确性。In the present embodiment, it is possible to judge whether or not to adjust the moving direction of the object before adjusting the moving direction of the object. Determining whether the pressure difference of the pair of contacts (ie, two other contacts except the above main contacts) exceeds a second predetermined threshold (the second predetermined threshold may be a set fixed value, or may be based on the control The object type or different application scenarios are set in real time), when the pressure difference between the two other contacts exceeds the second predetermined threshold, the movement direction of the object is adjusted, when the pressure difference between the two other contacts is not When the second predetermined threshold is exceeded, the direction of motion of the object is not adjusted. It can avoid unnecessary misoperation and improve the accuracy of the object's moving direction.
可选地,在根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数后,上述方法还包括:控制上述对象按照确定的运动参数进行运动。Optionally, after determining the motion parameter of the object according to at least one of the position information of the two or more contacts and the pressure value of the pressing force, the method further includes: controlling the object to perform according to the determined motion parameter. motion.
综上所述,通过识别用户的多指手势来判定对象进行哪个方向的移动,通过计算两指按压力的差值进行对象运动方向微调,这种运动的控制方法可以应用在多个场景下,不局限在某个特定区域进行运动操作,通过压力差来计算偏转角度符合用户的本能反应,使用户在触摸屏上或者其他终端上的交互更自然,更方便。In summary, by identifying the user's multi-finger gesture to determine which direction the object is moving, the object movement direction is fine-tuned by calculating the difference between the two finger pressing pressures, and the motion control method can be applied to multiple scenes. It is not limited to performing a motion operation in a specific area. The pressure difference is used to calculate the deflection angle to conform to the user's instinctive reaction, so that the user's interaction on the touch screen or other terminals is more natural and convenient.
图3为本实施例提供的确定运动参数的模块框架图,可以包含以下模块: FIG. 3 is a block diagram of a module for determining motion parameters according to the embodiment, which may include the following modules:
手势判断模块310,设置为判断多指手势,当屏幕出现多指按压操作时开始检测当前手势,当检测到有三个触点操作时,启动预检测模式,如果对其中一个触点进行了大力按压,则将该触点判断为主触点(即上述两个以上触点上的按压力的压力值最大的一个触点),主触点之外的两个触点判定为次触点(对应上述两个其他触点)。从主触点向两个次触点的连线做垂直线(如图4所示),将该垂线指向主触点的方向为对象的移动主方向,并将触点信息传给压力计算模块。The gesture judging module 310 is configured to determine the multi-finger gesture, and start detecting the current gesture when the multi-finger pressing operation occurs on the screen. When three contact operations are detected, the pre-detection mode is activated, and if one of the contacts is strongly pressed , the contact is judged as a main contact (ie, one contact with the highest pressure value of the pressing force on the two or more contacts), and two contacts other than the main contact are determined as the secondary contact (corresponding to The above two other contacts). Make a vertical line from the main contact to the connection of the two secondary contacts (as shown in Figure 4), point the direction of the perpendicular to the main contact as the main direction of movement of the object, and pass the contact information to the pressure calculation. Module.
移动模块320,可以设置为执行以下操作,(1)根据手势判断模块传入的主方向控制对象进行移动;(2)根据压力计算模块传来的主触点的按压压力计算对象的移动速度,例如,力度越大,速度越快;(3)根据压力计算模块传来的两个次触点的压力值计算主方向的偏移角度,如图5所示,使主方向向按压力度大的那个次方向触点进行偏移,偏移角度=预设偏移角度×(两个次触点的压力差的绝对值÷两个次触点中的最大压力值),其中,偏移角度对应上述第一偏移角度、两个次触点的压力差的绝对值÷两个次触点中的最大压力值,对应上述|两个其他触点上的压力的压力差|÷其他触点上的最大压力的压力值。由压力计算模块330计算按压三个触点的压力信息,将压力信息传给移动模块,其中压力信息可以包括压力的压力值。The moving module 320 may be configured to perform the following operations, (1) moving according to the main direction control object sent by the gesture judgment module; (2) calculating the moving speed of the object according to the pressing pressure of the main contact transmitted from the pressure calculation module, For example, the greater the velocity, the faster the speed; (3) the offset angle of the main direction is calculated according to the pressure values of the two secondary contacts transmitted from the pressure calculation module, as shown in FIG. 5, the main direction is pressed to a large force. The secondary direction contact is offset, the offset angle = the preset offset angle × (the absolute value of the pressure difference of the two secondary contacts 最大 the maximum pressure value of the two secondary contacts), wherein the offset angle corresponds to The first offset angle, the absolute value of the pressure difference of the two secondary contacts 最大 the maximum pressure value of the two secondary contacts, corresponding to the pressure difference of the pressure on the two other contacts | ÷ other contacts The maximum pressure value of the pressure. Pressure information for pressing the three contacts is calculated by the pressure calculation module 330, and the pressure information is transmitted to the mobile module, wherein the pressure information may include the pressure value of the pressure.
图6为本实施例提供的移动交互系统的工作流程图,如图6所示,该流程可以包括如下步骤:FIG. 6 is a flowchart of the operation of the mobile interaction system according to the embodiment. As shown in FIG. 6, the process may include the following steps:
在步骤602中,对触摸屏幕的手势信息进行检测,其中手势信息可以包括触摸点的个数,还可以包括每一个触摸点的位置信息和压力的压力值。In step 602, the gesture information of the touch screen is detected, wherein the gesture information may include the number of touch points, and may also include location information of each touch point and a pressure value of the pressure.
在步骤604中,判断是否检测结果是否为三指手势,若否,则执行步骤606,若是,则执行步骤608。 In step 604, it is determined whether the detection result is a three-finger gesture. If not, step 606 is performed, and if yes, step 608 is performed.
在步骤606中,不予响应。In step 606, no response is received.
在步骤608中,进入移动模式,根据手势信息,确定主触点和两个次触点,并对对象进行移动。In step 608, the movement mode is entered, and the main contact and the two secondary contacts are determined according to the gesture information, and the object is moved.
其中,主触点也可以叫做主方向触点,次触点也可以叫做次方向触点。Among them, the main contact can also be called the main direction contact, and the secondary contact can also be called the secondary direction contact.
在步骤610中,根据主触点按压的力度计算对象的移动速度。In step 610, the moving speed of the object is calculated based on the velocity of the main contact press.
在步骤612中,判断两个次触点按压的压力差是否超过阈值,若是,则执行步骤614,若否,则执行步骤618。In step 612, it is determined whether the pressure difference between the two secondary contact presses exceeds a threshold. If yes, step 614 is performed, and if no, step 618 is performed.
在步骤614中,根据两个次触点按压的压力差计算对对象进行移动的移动方向的偏移角度。In step 614, the offset angle of the moving direction of the object is calculated based on the pressure difference of the two secondary contact presses.
在步骤616中,不对对象的移动方向进行处理。In step 616, the direction of movement of the object is not processed.
图7为本实施例提供的将运动参数的确定方法应用在竞速类游戏中的工作流程,其中,在图7所示的步骤702之前可以执行上述步骤602-步骤612,该流程可以包括如下步骤。FIG. 7 is a workflow of applying the method for determining a motion parameter in a racing game according to the embodiment. The step 602 to step 612 may be performed before the step 702 shown in FIG. 7 , and the process may include the following steps. step.
在步骤702中,根据两个次触点按压的压力差计算对对象进行移动的移动方向的偏移角度,并根据计算出的偏移角度对对象的移动方向进行调整,。In step 702, an offset angle of the moving direction of the object is calculated according to the pressure difference between the two secondary contact presses, and the moving direction of the object is adjusted according to the calculated offset angle.
在步骤704中,以调整后的角度为转弯角度,控制对象进行转弯。In step 704, the controlled object is turned by using the adjusted angle as the turning angle.
在步骤706中,实时监测并判断两个次触点的压力差是否大于阈值,若是,则返回执行步骤702,重新计算偏移角度,若否,则执行步骤708。In step 706, it is monitored and determined in real time whether the pressure difference between the two secondary contacts is greater than a threshold. If yes, the process returns to step 702 to recalculate the offset angle. If not, step 708 is performed.
在步骤708中,则停止转向,控制对象依据当前的移动方向进行运动。In step 708, the steering is stopped and the control object moves in accordance with the current direction of movement.
图8为本实施例提供的四触点情况下触点分布的示意图,如图8所示,触点两两成对,以此来控制3D控件中物体的运动。FIG. 8 is a schematic diagram of the contact distribution in the case of the four-contact case provided in the embodiment. As shown in FIG. 8, the contacts are paired in pairs to control the motion of the object in the 3D control.
通过对比成对触点中两个触点的压力大小,决定物体旋转的方向,例如前后两个触点中,当前触点的压力大于后触点的压力时,则物体的旋转方向是向 前倾,例如机头下降,当前触点的压力小于后触点的压力时,向物体的旋转方向是后仰,例如机头上升。旋转方向如图9所示。By comparing the pressure of the two contacts in the pair of contacts, the direction of rotation of the object is determined. For example, in the front and rear two contacts, when the pressure of the current contact is greater than the pressure of the rear contact, the rotation direction of the object is Forward tilting, for example, when the nose drops, when the pressure of the current contact is less than the pressure of the rear contact, the direction of rotation of the object is backward, for example, the nose rises. The direction of rotation is shown in Figure 9.
在确定了旋转方向后,判断成对触点中非主触点的其他两个触点的压力差是否大于阈值,如果大于阈值则根据旋转角度=预设旋转角度×(其他两个触点的压力差的绝对值÷其他两个触点中的最大压力值)计算旋转角度。After determining the direction of rotation, it is determined whether the pressure difference of the other two contacts of the pair of contacts is greater than a threshold value, and if it is greater than the threshold, according to the rotation angle = the preset rotation angle × (the other two contacts The absolute value of the pressure difference 最大 the maximum pressure value of the other two contacts) calculates the angle of rotation.
图10为本实施例提供的四触点情况下的运动参数的确定方法的流程图,如图10所示,该流程可以包括如下步骤:FIG. 10 is a flowchart of a method for determining a motion parameter in a four-contact case according to the embodiment. As shown in FIG. 10, the process may include the following steps:
在步骤1010中,当屏幕上出现四触点时,获取四个触点的压力信息,以四触点组成的四边形的对角线上的两个触点为一组成对触点,并判断成对触点的压力大小,确定一对主触点和一对次触点,其中压力信息可以包括压力值和触点的位置信息。In step 1010, when four contacts appear on the screen, the pressure information of the four contacts is acquired, and the two contacts on the diagonal of the quadrilateral composed of the four contacts are a pair of contacts, and are determined as A pair of main contacts and a pair of secondary contacts are determined for the magnitude of the pressure of the contacts, wherein the pressure information may include pressure values and positional information of the contacts.
在步骤1020中,根据主触点的压力信息,设置物体的运动体态,其中物体的运动体态包括物体的运动方向。In step 1020, a moving posture of the object is set according to the pressure information of the main contact, wherein the moving posture of the object includes the moving direction of the object.
在步骤1030中,判断次触点的压力差是否超过阈值,若否,则执行步骤1040,若是,则执行步骤1050。In step 1030, it is determined whether the pressure difference of the secondary contacts exceeds a threshold. If not, step 1040 is performed, and if so, step 1050 is performed.
在步骤1040中,则不对物体的运动体态进行调整。In step 1040, the moving posture of the object is not adjusted.
在步骤1050中,根据次触点的压力差计算偏转角度。In step 1050, the deflection angle is calculated based on the pressure difference of the secondary contacts.
在步骤1060中,根据计算的偏转角度,对步骤1020中确定的物体的运动方向进行调整。In step 1060, the direction of motion of the object determined in step 1020 is adjusted based on the calculated deflection angle.
综上所述,通过识别用户的多指手势来判定对对象进行哪个方向的移动,通过计算两指按压力的力度差值进行对象运动方向的微调,这种运动的控制方法可以应用在多个场景下,不局限在某个特定区域进行运动操作,通过压力差来计算偏转角度符合用户的本能反应,使用户在触摸屏上或者其他终端上的交 互更自然,更方便。In summary, by identifying the user's multi-finger gesture to determine which direction to move the object, by calculating the difference between the two fingers pressing the force to fine-tune the object's motion direction, the motion control method can be applied to multiple In the scenario, the motion operation is not limited to a specific area, and the deflection angle is calculated by the pressure difference to conform to the instinctive reaction of the user, so that the user pays on the touch screen or other terminals. Mutual and more convenient.
上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本实施例的方法可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备可以(可以是手机,计算机,服务器,或者网络设备等)执行任意实施例提供的方法。The method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases the former is a better implementation. Based on such understanding, the method of the present embodiment can be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM, a magnetic disk, an optical disk), including a plurality of instructions for causing a terminal. The device may (which may be a cell phone, computer, server, or network device, etc.) perform the methods provided by any of the embodiments.
在本实施例中还提供了一种运动的控制装置,该装置可以实现上述实施例提供的任意一种方法,已经进行过说明的不再赘述。以下所使用的术语“模块”可以实现预定功能的软件和/或硬件的组合。In this embodiment, a motion control device is also provided, and the device can implement any one of the methods provided in the foregoing embodiments, and details are not described herein. The term "module" as used hereinafter may implement a combination of software and/or hardware of a predetermined function.
图11是本实施例提供的运动参数的确定装置的结构框图,如图11所示,该装置可以包括:第一确定模块1101和第二确定模块1102。FIG. 11 is a structural block diagram of the apparatus for determining motion parameters provided by the embodiment. As shown in FIG. 11, the apparatus may include: a first determining module 1101 and a second determining module 1102.
第一确定模块1101,设置为确定作用于触摸屏上的两个以上触点的位置信息和按压力的压力值;第二确定模块1102,连接至上述第一确定模块1101,设置为根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定对象的运动参数,其中,所述运动参数包括运动方向和运动速度中的至少一个。The first determining module 1101 is configured to determine position information of two or more contacts acting on the touch screen and a pressure value of the pressing force; the second determining module 1102 is connected to the first determining module 1101, and is configured to be according to the two The motion parameter of the object is determined by at least one of position information of the plurality of contacts and a pressure value of the pressing force, wherein the motion parameter includes at least one of a moving direction and a moving speed.
图12为实施例一提供的运动参数的确定装置的第二确定模块1102的结构框图,如图12所示,第二确定模块1102可以包括:第一确定单元1201和第二确定单元1202。FIG. 12 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters according to the first embodiment. As shown in FIG. 12, the second determining module 1102 may include: a first determining unit 1201 and a second determining unit 1202.
第一确定单元1201,设置为根据所述两个以上触点上的按压力的压力值确定一个主触点(对应上述预检测模块);第二确定单元1202,连接至上述第一确定单元1201,设置为根据所述主触点上的按压力的压力值确定所述对象的运动速度(对应上述计算模块)。 The first determining unit 1201 is configured to determine one main contact (corresponding to the pre-detection module) according to the pressure value of the pressing force on the two or more contacts; the second determining unit 1202 is connected to the first determining unit 1201 And determining to determine a moving speed of the object according to a pressure value of the pressing force on the main contact (corresponding to the calculating module).
图13为实施例二提供的运动参数的确定装置的第二确定模块1102的结构框图,如图13所示,第二确定模块1102可以包括:第三确定单元1301和第四确定单元1302。FIG. 13 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters provided by the second embodiment. As shown in FIG. 13, the second determining module 1102 may include: a third determining unit 1301 and a fourth determining unit 1302.
第三确定单元1301,设置为根据所述两个以上触点上的按压力的压力值确定一个主触点;第四确定单元1302,连接至上述第三确定模块1301,设置为根据所述主触点与其他触点的位置关系确定所述对象的运动方向,其中,所述其他触点为所述两个以上触点中除所述主触点之外的触点。The third determining unit 1301 is configured to determine one main contact according to the pressure value of the pressing force on the two or more contacts; the fourth determining unit 1302 is connected to the third determining module 1301, and is set according to the main The positional relationship of the contacts with other contacts determines the direction of motion of the object, wherein the other contacts are contacts of the two or more contacts other than the main contacts.
可选地,上述第三确定单元1301还可以设置为:确定上述两个以上触点上的按压力的压力值最大的一个触点作为上述主触点。Optionally, the third determining unit 1301 may be further configured to: determine, as the main contact, a contact having a maximum pressure value of the pressing force on the two or more contacts.
可选地,第四确定单元1302还可以设置为:当触点的数量为三个时,由所述主触点向两个所述其他触点的连线做垂直线;确定所述垂直线指向所述主触点的方向为所述对象的运动方向。Optionally, the fourth determining unit 1302 is further configured to: when the number of the contacts is three, make a vertical line from the main contact to the connecting lines of the two other contacts; determine the vertical line The direction pointing to the main contact is the direction of motion of the object.
可选地,上述装置还可以包括:调整模块,设置为:在根据上述主触点与其他触点的位置关系确定上述对象的运动方向之后,根据两个上述其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整。Optionally, the apparatus may further include: an adjustment module configured to: according to the positional relationship between the main contact and the other contacts, determine the motion direction of the object, according to the pressure value of the pressure on the two other contacts And the pressure difference of the pressures on the two other contacts described above adjusts the direction of motion of the object.
可选地,调整模块还设置为:通过如下公式确定相对于上述对象的运动方向的第一偏移角度:第一偏移角度=第一预定偏移角度×(|两个上述其他触点上的压力的压力差|÷两个上述其他触点上的最大压力的压力值);按照上述第一偏移角度对上述对象的运动方向进行调整。Optionally, the adjustment module is further configured to: determine a first offset angle relative to a moving direction of the object by a formula: a first offset angle=a first predetermined offset angle×(| The pressure difference of the pressure | 压力 the pressure value of the maximum pressure on the two other contacts described above; the movement direction of the object is adjusted according to the first offset angle described above.
可选地,上述调整模块在确定两个上述其他触点上的压力的压力差超过第一预定阈值的情况下,可以根据两个上述其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整。 Optionally, the adjusting module may determine the pressure value of the pressure on the two other contacts and the two other touches in a case where the pressure difference between the pressures on the two other contacts is determined to exceed the first predetermined threshold. The pressure difference of the pressure at the point adjusts the direction of movement of the object.
图14为实施例三提供的运动参数的确定装置的第二确定模块1102的结构框图,如图14所示,第二确定模块1102可以包括:第五确定单元1401和第六确定单元1402。14 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters provided by the third embodiment. As shown in FIG. 14, the second determining module 1102 may include: a fifth determining unit 1401 and a sixth determining unit 1402.
第五确定单元1401,设置为当上述两个以上触点的数量为四个时,按照四个触点的位置关系对所述四个触点进行两两组对,并从两对触点中确定一对主触点;第六确定单元1402,连接至上述第五确定模块1401,设置为根据所述主触点上的按压力的压力值确定所述对象的运动速度。The fifth determining unit 1401 is configured to perform two pairs of pairs of the four contacts according to the positional relationship of the four contacts when the number of the two or more contacts is four, and from the two pairs of contacts Determining a pair of main contacts; a sixth determining unit 1402, coupled to the fifth determining module 1401, configured to determine a moving speed of the object based on a pressure value of the pressing force on the main contact.
图15为实施例四提供的运动参数的确定装置的第二确定模块1102的结构框图,如图15所示,第二确定模块1102可以包括:第七确定单元1501和第八确定单元1502。15 is a structural block diagram of a second determining module 1102 of the apparatus for determining motion parameters provided by the fourth embodiment. As shown in FIG. 15, the second determining module 1102 may include: a seventh determining unit 1501 and an eighth determining unit 1502.
第七确定单元1501,设置为当上述两个以上触点的数量为四个时,按照四个触点的位置关系对所述四个触点进行两两组对,并从两对触点中确定一对主触点;第八确定单元1502,连接至上述第七确定模块1501,设置为根据所述主触点上的压力的压力值和位置信息确定所述对象的运动方向。The seventh determining unit 1501 is configured to perform two pairs of pairs of the four contacts according to the positional relationship of the four contacts when the number of the two or more contacts is four, and from the two pairs of contacts Determining a pair of main contacts; an eighth determining unit 1502, coupled to the seventh determining module 1501, configured to determine a direction of motion of the object based on pressure values and position information of pressure on the main contacts.
可选地,第五确定单元1401还设置为:从上述两对触点中确定压力的压力值之和最大的一对触点为上述主触点。Optionally, the fifth determining unit 1401 is further configured to: the pair of contacts having the largest sum of pressure values of the pressures determined from the two pairs of contacts are the main contacts.
可选地,第八确定单元1502还设置为:由上述主触点中压力的压力值小的触点向压力值大的触点做射线,确定上述射线的方向为上述对象的运动方向。Optionally, the eighth determining unit 1502 is further configured to: illuminate the contact with a large pressure value by the contact with a small pressure value of the pressure in the main contact, and determine that the direction of the ray is the moving direction of the object.
可选地,上述装置还可以包括:第三确定模块和旋转模块,Optionally, the foregoing apparatus may further include: a third determining module and a rotating module,
第三确定模块,设置为在根据上述主触点的压力的压力值和上述主触点的位置信息确定上述对象的运动方向之后,确定上述主触点中压力的压力值大的触点为第一触点,压力值小的触点为第二触点;旋转模块,连接至上述第三确定模块,设置为根据以下至少一种方式控制所述对象的运动:根据所述第一触 点的位置信息确定所述对象的旋转方向,并按照所述旋转方向旋转所述对象;和根据所述第一触点上的压力的压力值与所述第二触点上的压力的压力值的差值确定所述对象的旋转角度,并按照所述旋转角度旋转所述对象。The third determining module is configured to determine, after determining the moving direction of the object according to the pressure value of the pressure of the main contact and the position information of the main contact, determining that the pressure of the pressure in the main contact is large a contact having a small pressure value as a second contact; a rotation module coupled to the third determining module, configured to control movement of the object according to at least one of: according to the first touch Position information of the point determines a rotation direction of the object, and rotates the object in the rotation direction; and a pressure value according to a pressure on the first contact and a pressure value on a pressure on the second contact The difference is determined by the angle of rotation of the object and the object is rotated according to the angle of rotation.
可选地,上述旋转模块还可以设置为:通过如下公式确定上述对象的旋转角度:旋转角度=预定旋转角度×(|上述第一触点上的压力的压力值与上述第二触点上的压力的压力值的差值|÷第一触点上的压力的压力值),之后可以按照上述旋转角度旋转上述对象。Optionally, the rotating module may further be configured to: determine a rotation angle of the object by using a rotation angle=predetermined rotation angle×(|the pressure value of the pressure on the first contact and the second contact The difference in pressure value of the pressure | 压力 the pressure value of the pressure on the first contact), after which the object can be rotated at the above-described rotation angle.
可选地,上述装置还可以包括:Optionally, the foregoing apparatus may further include:
第二调整模块,设置为:在根据上述主触点的压力的压力值和上述主触点的位置信息确定上述对象的运动方向之后,根据两个其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整,其中,所述其他触点为所述四个触点中除所述主触点之外的触点。The second adjustment module is configured to: after determining the moving direction of the object according to the pressure value of the pressure of the main contact and the position information of the main contact, according to the pressure value of the pressure on the two other contacts, and two The pressure difference of the pressure on the other contacts adjusts the direction of movement of the object, wherein the other contacts are contacts of the four contacts other than the main contacts.
可选地,上述第二调整模块还可以设置为:通过如下公式确定上述对象的运动方向的第二偏移角度:第二偏移角度=第二预定偏移角度×(|两个上述其他触点上的压力的压力差|÷两个上述其他触点上的最大压力的压力值);按照确定的上述第二偏移角度对上述对象的运动方向进行调整。Optionally, the second adjustment module may be further configured to: determine a second offset angle of the moving direction of the object by using a formula: a second offset angle=the second predetermined offset angle×(| The pressure difference of the pressure at the point | 压力 the pressure value of the maximum pressure on the two other contacts described above; the direction of movement of the object is adjusted according to the determined second offset angle.
可选地,上述第二调整模块还可以设置为:在确定两个其他触点上的压力的压力差超过第二预定阈值的情况下,根据两个其他触点上的压力的压力值以及两个上述其他触点上的压力的压力差对上述对象的运动方向进行调整。Optionally, the second adjustment module may further be configured to: according to the pressure value of the pressure on the two other contacts and the two in the case where the pressure difference between the pressures on the two other contacts is determined to exceed the second predetermined threshold The pressure difference of the pressure on the other contacts described above adjusts the direction of movement of the object.
可选地,上述装置还包括控制模块,设置为:在根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数后,控制所述对象按照上述运动参数进行运动。Optionally, the device further includes a control module configured to: after determining the motion parameter of the object according to at least one of position information of the two or more contacts and a pressure value of the pressing force, controlling the object Exercise according to the above motion parameters.
上述每一个模块是可以通过软件或硬件来实现的,对于后者,可以通过以 下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述多个模块以任意组合的形式分别位于不同的处理器中。Each of the above modules can be implemented by software or hardware. For the latter, The following manners are implemented, but are not limited thereto: the above modules are all located in the same processor; or, the above multiple modules are respectively located in different processors in any combination.
本实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以上任意步骤的程序代码,其中,该存储介质可以为计算机可读的存储介质,存储有计算机可执行指令(如上述程序代码),所述计算机可执行指令用于执行上述实施例提供的任意一种方法。This embodiment also provides a storage medium. Optionally, in this embodiment, the foregoing storage medium may be configured to store program code for performing any of the above steps, wherein the storage medium may be a computer readable storage medium storing computer executable instructions (eg, The above program code) is used to execute any one of the methods provided in the above embodiments.
本实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,可以使所述计算机执行上述实施例提供的任意一种方法。可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等多种可以存储程序代码的介质。The embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer The computer can be caused to perform any of the methods provided in the above embodiments. Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行以上多个步骤。Optionally, in the embodiment, the processor performs the above multiple steps according to the stored program code in the storage medium.
本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
上述的每一个模块或步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本实施例不限制于任何特 定的硬件和软件结合。Each of the above-described modules or steps may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of computing devices. Alternatively, they may be executed by a computing device Program code is implemented so that they can be stored in a storage device by a computing device, and in some cases, the steps shown or described can be performed in a different order than here, or they can be separated It is implemented as an integrated circuit module, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, the embodiment is not limited to any special The combination of hardware and software.
工业实用性Industrial applicability
本公开提供一种运动参数的确定方法及装置,在通过触摸屏控制对象进行移动操作时,能够方便用户的移动操作,提高控制的灵活性和准确性,还可以避免屏幕遮挡,提升用户体验。 The present disclosure provides a method and a device for determining a motion parameter. When the object is moved by the touch screen, the user can move the operation, improve the flexibility and accuracy of the control, and avoid screen occlusion and enhance the user experience.

Claims (25)

  1. 一种运动参数的确定方法,包括:A method for determining a motion parameter, comprising:
    确定作用于触摸屏上的两个以上触点的位置信息和按压力的压力值;Determining position information of two or more contacts acting on the touch screen and a pressure value of the pressing force;
    根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定对象的运动参数,其中,所述运动参数包括运动方向和运动速度中的至少一个。The motion parameter of the object is determined according to at least one of position information of the two or more contacts and a pressure value of the pressing force, wherein the motion parameter includes at least one of a moving direction and a moving speed.
  2. 根据权利要求1所述的方法,其中,所述根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数包括:The method of claim 1, wherein the determining the motion parameters of the object based on at least one of position information of the two or more contacts and a pressure value of the pressing force comprises:
    根据所述两个以上触点上的按压力的压力值确定一个主触点;Determining a main contact according to a pressure value of the pressing force on the two or more contacts;
    根据所述主触点上的按压力的压力值确定所述对象的运动速度。The speed of movement of the object is determined based on a pressure value of the pressing force on the main contact.
  3. 根据权利要求1或2所述的方法,其中,所述根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数包括:The method according to claim 1 or 2, wherein the determining the motion parameter of the object according to at least one of position information of the two or more contacts and a pressure value of the pressing force comprises:
    根据所述两个以上触点上的按压力的压力值确定一个主触点;Determining a main contact according to a pressure value of the pressing force on the two or more contacts;
    根据所述主触点与其他触点的位置关系确定所述对象的运动方向,其中,所述其他触点为所述两个以上触点中除所述主触点之外的触点。Determining a direction of movement of the object according to a positional relationship of the main contact with other contacts, wherein the other contacts are contacts of the two or more contacts other than the main contacts.
  4. 根据权利要求2或3所述的方法,其中,根据所述两个以上触点上的按压力的压力值确定主触点包括:The method according to claim 2 or 3, wherein determining the main contact based on the pressure value of the pressing force on the two or more contacts comprises:
    确定所述两个以上触点上的按压力的压力值最大的一个触点为所述主触点。A contact that determines that the pressure value of the pressing force on the two or more contacts is the largest is the main contact.
  5. 根据权利要求3所述的方法,其中,当触点的数量为三个时,根据所述主触点与其他触点的位置关系确定所述对象的运动方向包括:The method according to claim 3, wherein when the number of the contacts is three, determining the moving direction of the object according to the positional relationship of the main contact with the other contacts comprises:
    由所述主触点向两个所述其他触点的连线做垂直线;Making a vertical line from the main contact to the connection of the two other contacts;
    确定所述垂直线指向所述主触点的方向为所述对象的运动方向。Determining the direction in which the vertical line points toward the main contact is the direction of motion of the object.
  6. 根据权利要求5所述的方法,其中,在根据所述主触点与其他触点的位置关系确定所述对象的运动方向之后,所述方法还包括: The method according to claim 5, wherein after determining the direction of motion of the object based on the positional relationship between the main contact and the other contacts, the method further comprises:
    根据两个所述其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整。The direction of motion of the object is adjusted based on the pressure values of the pressures on the two other contacts and the pressure difference between the pressures on the two other contacts.
  7. 根据权利要求6所述的方法,其中,根据两个所述其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整包括:The method of claim 6 wherein adjusting the direction of motion of the object based on a pressure value of pressure on the two other contacts and a pressure difference across two of the other contacts comprises:
    通过如下公式确定相对于所述对象的运动方向的第一偏移角度:第一偏移角度=第一预定偏移角度×(|两个所述其他触点上的压力的压力差|÷两个所述其他触点上的最大压力值);A first offset angle with respect to a direction of motion of the object is determined by a first offset angle = a first predetermined offset angle x (|pressure difference of pressure on two of the other contacts | ÷ two The maximum pressure value on the other contacts);
    按照所述第一偏移角度对所述对象的运动方向进行调整。The direction of motion of the object is adjusted according to the first offset angle.
  8. 根据权利要求6或7所述的方法,其中,根据两个所述其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整包括:Method according to claim 6 or 7, wherein the direction of movement of the object is adjusted based on the pressure value of the pressure on the two other contacts and the pressure difference of the pressure on the two other contacts include:
    在确定两个所述其他触点上的压力的压力差超过第一预定阈值的情况下,根据两个所述其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整。In the case where it is determined that the pressure difference of the pressures on the two other contacts exceeds a first predetermined threshold, the pressure values according to the pressures on the two other contacts and the pressure on the two other contacts The pressure difference adjusts the direction of motion of the object.
  9. 根据权利要求1所述的方法,其中,当触点的数量为四个时,所述根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数包括:The method according to claim 1, wherein when the number of the contacts is four, the determining of the object is based on at least one of position information of the two or more contacts and a pressure value of the pressing force The motion parameters include:
    按照四个触点的位置关系对所述四个触点进行两两组对,并从两对触点中确定一对主触点;Performing two pairs of pairs on the four contacts according to the positional relationship of the four contacts, and determining a pair of main contacts from the two pairs of contacts;
    根据所述主触点上的按压力的压力值确定所述对象的运动速度。The speed of movement of the object is determined based on a pressure value of the pressing force on the main contact.
  10. 根据权利要求1或9所述的方法,其中,当触点的数量为四个时,根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象 的运动参数包括:The method according to claim 1 or 9, wherein when the number of the contacts is four, the object is determined based on at least one of position information of the two or more contacts and a pressure value of the pressing force The motion parameters include:
    按照四个触点的位置关系对所述四个触点进行两两组对,并从两对触点中确定一对主触点;Performing two pairs of pairs on the four contacts according to the positional relationship of the four contacts, and determining a pair of main contacts from the two pairs of contacts;
    根据所述主触点上的压力的压力值和位置信息确定所述对象的运动方向。The direction of motion of the object is determined based on the pressure value and position information of the pressure on the primary contact.
  11. 根据权利要求9或10所述的方法,其中,从两对触点中确定一对主触点包括:The method of claim 9 or 10, wherein determining a pair of main contacts from the two pairs of contacts comprises:
    从所述两对触点中确定压力的压力值之和最大的一对触点为所述主触点。A pair of contacts having the largest sum of pressure values of the pressures determined from the two pairs of contacts are the main contacts.
  12. 根据权利要求10所述的方法,其中,根据所述主触点的压力的压力值和位置信息确定所述对象的运动方向包括:The method according to claim 10, wherein determining the direction of motion of the object based on the pressure value and position information of the pressure of the main contact comprises:
    由所述主触点中压力的压力值小的触点向压力值大的触点做射线,确定所述射线的方向为所述对象的运动方向。A ray having a small pressure value of the pressure in the main contact is made to a contact having a large pressure value, and the direction of the ray is determined to be a moving direction of the object.
  13. 根据权利要求10所述的方法,其中,根据所述主触点的压力的压力值和位置信息确定所述对象的运动方向之后,所述方法还包括:The method according to claim 10, wherein after determining the direction of motion of the object based on the pressure value and the position information of the pressure of the main contact, the method further comprises:
    确定所述主触点中压力的压力值大的触点为第一触点,压力值小的触点为第二触点;以及Determining that the contact having a large pressure value of the pressure in the main contact is a first contact, and the contact having a small pressure value is a second contact;
    根据以下至少一种方式控制所述对象的运动:The motion of the object is controlled according to at least one of the following:
    根据所述第一触点的位置信息确定所述对象的旋转方向,并按照所述旋转方向旋转所述对象;和根据所述第一触点上的压力的压力值与所述第二触点上的压力的压力值的差值确定所述对象的旋转角度,并按照所述旋转角度旋转所述对象。Determining a rotation direction of the object according to position information of the first contact, and rotating the object according to the rotation direction; and a pressure value according to a pressure on the first contact with the second contact The difference in pressure values of the upper pressure determines the angle of rotation of the object and rotates the object according to the angle of rotation.
  14. 根据权利要求13所述的方法,其中,根据所述第一触点上的压力的压力值与所述第二触点上的压力的压力值的差值确定所述对象的旋转角度包括:The method according to claim 13, wherein determining the rotation angle of the object based on a difference between a pressure value of the pressure on the first contact and a pressure value of the pressure on the second contact comprises:
    通过如下公式确定所述对象的旋转角度:旋转角度=预定旋转角度×(|所述 第一触点上的压力的压力值与所述第二触点上的压力的压力值的差值|÷所述第一触点上的压力的压力值)。The rotation angle of the object is determined by the following formula: rotation angle = predetermined rotation angle × (| The difference between the pressure value of the pressure on the first contact and the pressure value of the pressure on the second contact | 压力 the pressure value of the pressure on the first contact).
  15. 根据权利要求10所述的方法,其中,根据所述主触点上的压力的压力值和所述主触点的位置信息确定所述对象的运动方向之后,所述方法还包括:The method according to claim 10, wherein after determining the direction of motion of the object based on the pressure value of the pressure on the main contact and the position information of the main contact, the method further comprises:
    根据两个其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整,其中,所述其他触点为所述四个触点中除所述主触点之外的触点。Adjusting the direction of movement of the object based on a pressure value of a pressure on two other contacts and a pressure difference between pressures on the two other contacts, wherein the other contacts are the four contacts A contact other than the main contact.
  16. 根据权利要求15所述的方法,其中,根据两个其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整包括:The method of claim 15 wherein adjusting the direction of motion of the object based on a pressure value of the pressure on the two other contacts and a pressure difference between the pressures on the two other contacts comprises:
    通过如下公式确定所述对象的运动方向的第二偏移角度:第二偏移角度=第二预定偏移角度×(|两个所述其他触点上的压力的压力差|÷两个所述其他触点上的最大压力的压力值);Determining a second offset angle of the moving direction of the object by a formula: a second offset angle = a second predetermined offset angle x (| a pressure difference between the pressures of the two other contacts) The pressure value of the maximum pressure on the other contacts);
    按照所述第二偏移角度对所述对象的运动方向进行调整。The direction of motion of the object is adjusted in accordance with the second offset angle.
  17. 根据权利要求15或16所述的方法,其中,根据两个所述其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整包括:The method according to claim 15 or 16, wherein the direction of movement of the object is adjusted based on a pressure value of pressure on the two other contacts and a pressure difference of pressure on the two other contacts include:
    在确定两个所述其他触点上的压力的压力差超过第二预定阈值的情况下,根据两个所述其他触点上的压力的压力值以及两个所述其他触点上的压力的压力差对所述对象的运动方向进行调整。In the case where it is determined that the pressure difference of the pressures on the two other contacts exceeds a second predetermined threshold, the pressure values according to the pressures on the two other contacts and the pressure on the two other contacts The pressure difference adjusts the direction of motion of the object.
  18. 根据权利要求1所述的方法,其中,在根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定所述对象的运动参数后,所述方法还包括: The method according to claim 1, wherein after determining the motion parameter of the object based on at least one of the position information of the two or more contacts and the pressure value of the pressing force, the method further comprises:
    控制所述对象按照所述运动参数进行运动。The object is controlled to move in accordance with the motion parameters.
  19. 根据权利要求3所述的方法,当触点的数量为两个时,所述根据所述主触点与其他触点的位置关系确定所述对象的运动方向包括:The method according to claim 3, when the number of the contacts is two, the determining the moving direction of the object according to the positional relationship between the main contact and the other contacts comprises:
    由另一触点向所述主触点做射线,确定所述射线的方向为所述对象的运动方向。A ray is made to the main contact by another contact to determine the direction of the ray as the direction of motion of the object.
  20. 一种运动参数的确定装置,包括:A device for determining motion parameters, comprising:
    第一确定模块,设置为确定作用于触摸屏上的两个以上触点的位置信息和按压力的压力值;a first determining module configured to determine position information of two or more contacts acting on the touch screen and a pressure value of the pressing force;
    第二确定模块,设置为根据所述两个以上触点的位置信息和按压力的压力值中的至少一个,确定对象的运动参数,其中,所述运动参数包括运动方向和运动速度中的至少一个。a second determining module, configured to determine a motion parameter of the object according to at least one of position information of the two or more contacts and a pressure value of the pressing force, wherein the motion parameter includes at least one of a moving direction and a moving speed One.
  21. 根据权利要求20所述的装置,其中,所述第二确定模块包括:The apparatus of claim 20, wherein the second determining module comprises:
    第一确定单元,设置为根据所述两个以上触点上的按压力的压力值确定一个主触点;a first determining unit, configured to determine a main contact according to a pressure value of the pressing force on the two or more contacts;
    第二确定单元,设置为根据所述主触点上的按压力的压力值确定所述对象的运动速度。The second determining unit is configured to determine a moving speed of the object according to a pressure value of the pressing force on the main contact.
  22. 根据权利要求20所述的装置,其中,所述第二确定模块包括:The apparatus of claim 20, wherein the second determining module comprises:
    第三确定单元,设置为根据所述两个以上触点上的按压力的压力值确定一个主触点;a third determining unit, configured to determine a main contact according to a pressure value of the pressing force on the two or more contacts;
    第四确定单元,设置为根据所述主触点与其他触点的位置关系确定所述对象的运动方向,其中,所述其他触点为所述两个以上触点中除所述主触点之外的触点。a fourth determining unit, configured to determine a moving direction of the object according to a positional relationship between the main contact and other contacts, wherein the other contact is the main contact except the two or more contacts Contacts outside.
  23. 根据权利要求20所述的装置,其中,当触点的数量为四个时,所述第 二确定模块包括:The apparatus according to claim 20, wherein said number of said contacts is four The second determining module includes:
    第五确定单元,设置为按照四个触点的位置关系对所述四个触点进行两两组对,并从两对触点中确定一对主触点;a fifth determining unit configured to perform two sets of two pairs of the four contacts according to a positional relationship of the four contacts, and determine a pair of main contacts from the two pairs of contacts;
    第六确定单元,设置为根据所述主触点上的按压力的压力值确定所述对象的运动速度。And a sixth determining unit configured to determine a moving speed of the object according to a pressure value of the pressing force on the main contact.
  24. 根据权利要求20所述的装置,其中,当触点的数量为四个时,所述第二确定模块包括:The apparatus according to claim 20, wherein when the number of contacts is four, the second determining module comprises:
    第七确定单元,设置为按照四个触点的位置关系对所述四个触点进行两两组对,并从两对触点中确定一对主触点;a seventh determining unit configured to perform two pairs of pairs of the four contacts according to a positional relationship of the four contacts, and determine a pair of main contacts from the two pairs of contacts;
    第八确定单元,设置为根据所述主触点上的压力的压力值和位置信息确定所述对象的运动方向。An eighth determining unit is configured to determine a moving direction of the object based on a pressure value and position information of the pressure on the main contact.
  25. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-19任一项所述的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-19.
PCT/CN2017/108134 2016-10-27 2017-10-27 Method and apparatus for determining motion parameters WO2018077250A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610952223.7 2016-10-27
CN201610952223.7A CN107992259A (en) 2016-10-27 2016-10-27 The definite method and device of kinematic parameter

Publications (1)

Publication Number Publication Date
WO2018077250A1 true WO2018077250A1 (en) 2018-05-03

Family

ID=62024346

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108134 WO2018077250A1 (en) 2016-10-27 2017-10-27 Method and apparatus for determining motion parameters

Country Status (2)

Country Link
CN (1) CN107992259A (en)
WO (1) WO2018077250A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108693990A (en) * 2017-04-12 2018-10-23 中兴通讯股份有限公司 A kind of terminal touch screen exchange method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561723A (en) * 2009-05-18 2009-10-21 苏州瀚瑞微电子有限公司 Operation gesture of virtual game
CN103092406A (en) * 2011-11-07 2013-05-08 伊梅森公司 Systems and methods for multi-pressure interaction on touch-sensitive surface
CN105183348A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Application role control method and apparatus
CN105425952A (en) * 2015-11-04 2016-03-23 腾讯科技(深圳)有限公司 Interactive method and apparatus for control interface of unmanned aerial vehicle
CN105912162A (en) * 2016-04-08 2016-08-31 网易(杭州)网络有限公司 Method and apparatus for controlling virtual object, and touch control device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110202934A1 (en) * 2010-02-12 2011-08-18 Ludwig Lester F Window manger input focus control for high dimensional touchpad (htpd), advanced mice, and other multidimensional user interfaces
KR101739054B1 (en) * 2010-09-08 2017-05-24 삼성전자주식회사 Motion control method and apparatus in a device
CN103246476B (en) * 2013-04-27 2016-12-28 华为技术有限公司 The spinning solution of a kind of screen content, device and terminal unit
CN103513882B (en) * 2013-05-31 2016-12-28 展讯通信(上海)有限公司 The control method of a kind of touch control device, device and touch control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561723A (en) * 2009-05-18 2009-10-21 苏州瀚瑞微电子有限公司 Operation gesture of virtual game
CN103092406A (en) * 2011-11-07 2013-05-08 伊梅森公司 Systems and methods for multi-pressure interaction on touch-sensitive surface
CN105183348A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Application role control method and apparatus
CN105425952A (en) * 2015-11-04 2016-03-23 腾讯科技(深圳)有限公司 Interactive method and apparatus for control interface of unmanned aerial vehicle
CN105912162A (en) * 2016-04-08 2016-08-31 网易(杭州)网络有限公司 Method and apparatus for controlling virtual object, and touch control device

Also Published As

Publication number Publication date
CN107992259A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
EP3113114B1 (en) Image processing method and device
US9069386B2 (en) Gesture recognition device, method, program, and computer-readable medium upon which program is stored
EP2998852B1 (en) Screen capture method, device and terminal equipment
KR101472455B1 (en) User interface apparatus based on hand gesture and method thereof
WO2016188318A1 (en) 3d human face reconstruction method, apparatus and server
US10558351B2 (en) Data processing method and apparatus
EP3223119B1 (en) Method and device for adjusting object attribute information
US10452205B2 (en) Three-dimensional touch device and method of providing the same
WO2015142662A1 (en) Determining user handedness and orientation using a touchscreen device
TW201439855A (en) Method and computing device for determining angular contact geometry
US20160320846A1 (en) Method for providing user commands to an electronic processor and related processor program and electronic circuit
WO2018090705A1 (en) Method of moving and controlling character, device, data synchronization method, and system
US20200218424A1 (en) Touch detection method and computer-readable storage medium
JP2020533706A (en) How to steer virtual objects, devices and storage media
CN104317398A (en) Gesture control method, wearable equipment and electronic equipment
WO2014112132A1 (en) Information apparatus and information processing method
EP3467792B1 (en) Image processing apparatus, image processing method, and program
TW201520810A (en) Method and related apparatus for confirmation processing and system thereof
CN106598422B (en) hybrid control method, control system and electronic equipment
WO2018076720A1 (en) One-hand operation method and control system
CN108170295A (en) Virtual camera condition control method, device, electronic equipment and storage medium
WO2019149123A1 (en) Control execution method, device, storage medium and electronic device
WO2018077250A1 (en) Method and apparatus for determining motion parameters
US20160224111A1 (en) Method for controlling touch screen by detecting position of line of sight of user
CN104978018A (en) Touch system and touch method

Legal Events

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

Ref document number: 17863317

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17863317

Country of ref document: EP

Kind code of ref document: A1