CN108073334B - Vector operation-based suspension touch method and device - Google Patents
Vector operation-based suspension touch method and device Download PDFInfo
- Publication number
- CN108073334B CN108073334B CN201810161072.2A CN201810161072A CN108073334B CN 108073334 B CN108073334 B CN 108073334B CN 201810161072 A CN201810161072 A CN 201810161072A CN 108073334 B CN108073334 B CN 108073334B
- Authority
- CN
- China
- Prior art keywords
- user
- fingertip
- vector
- touch screen
- touch
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明适用于触摸屏技术领域,提供了一种基于矢量运算的悬浮触控方法及装置。所述方法包括:按照预设的时间间隔在触摸屏的预设范围内连续进行多次检测,以获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,记录所述多组坐标信息和对应的时间信息;根据所述多组坐标信息以及对应的时间信息,计算出用户指尖的悬浮操作;根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。从而实现了悬浮触控中的多点触控检测,以及与三维图像交互的悬浮触控操作,大大地提升了用户体验感。
The present invention is applicable to the technical field of touch screens, and provides a floating touch method and device based on vector operation. The method includes: continuously performing multiple detections within a preset range of the touch screen according to a preset time interval, so as to obtain multiple sets of coordinate information and corresponding time on the touch screen corresponding to the user's fingertip performing a hovering operation directly above the touch screen. information, record the multiple sets of coordinate information and the corresponding time information; according to the multiple sets of coordinate information and the corresponding time information, calculate the hovering operation of the user's fingertip; perform the hovering operation on the three-dimensional image displayed on the touch screen The corresponding action event. Thus, the multi-touch detection in the floating touch and the floating touch operation interacting with the three-dimensional image are realized, which greatly improves the user experience.
Description
技术领域technical field
本发明属于触摸屏技术领域,尤其涉及一种基于矢量运算的悬浮触控方法及装置。The invention belongs to the technical field of touch screens, and in particular relates to a floating touch method and device based on vector operations.
背景技术Background technique
现有的触摸屏上有两种电容式传感器,互电容和自电容。其中,互电容用于实现多点触摸检测;自电容能够产生比互电容更强大的信号,检测更远的手指感应,但由于一种被称为“鬼影(ghosting)”的效应,自电容无法进行多点触控。There are two types of capacitive sensors on existing touch screens, mutual capacitance and self capacitance. Among them, mutual capacitance is used to realize multi-touch detection; self-capacitance can generate a stronger signal than mutual capacitance and detect farther finger sensing, but due to an effect called "ghosting", self-capacitance Multi-touch is not possible.
目前的悬浮触控技术普遍采用互电容的距离感应来实现悬浮触控操作,因此现有的悬浮触控操作不能实现多点触控,用户操作不方便,且不能实现对三维图像的触控操作。The current floating touch technology generally uses the distance sensing of mutual capacitance to realize the floating touch operation. Therefore, the existing floating touch operation cannot realize multi-point touch, which is inconvenient for the user to operate, and cannot realize the touch operation of the three-dimensional image. .
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种基于矢量运算的悬浮触控方法及装置,以实现悬浮触控中的多点触控检测,以及与三维图像交互的悬浮触控操作。The purpose of the present invention is to provide a hovering touch method and device based on vector operation, so as to realize multi-touch detection in hovering touch, and hovering touch operation interacting with a three-dimensional image.
本发明是这样实现的,一种基于矢量运算的悬浮触控方法,所述方法包括:The present invention is implemented in this way, a floating touch method based on vector operation, the method comprising:
按照预设的时间间隔在触摸屏的预设范围内连续进行多次检测,以获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,记录所述多组坐标信息和对应的时间信息;Continuously perform multiple detections within the preset range of the touch screen at preset time intervals to obtain multiple sets of coordinate information and corresponding time information on the touch screen corresponding to the user's fingertip hovering directly above the touch screen, and record the Multiple sets of coordinate information and corresponding time information;
对所述多组坐标信息以及对应的时间信息进行矢量运算,以获得用户指尖的悬浮操作;performing vector operations on the multiple sets of coordinate information and the corresponding time information to obtain the levitation operation of the user's fingertip;
根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。A corresponding operation event is executed on the three-dimensional image displayed on the touch screen according to the hovering operation.
进一步地,所述坐标信息包括X轴坐标、Y轴坐标;所述检测包括:Further, the coordinate information includes X-axis coordinates and Y-axis coordinates; the detection includes:
检测触摸屏上电容的变化情况,根据电容的变化情况计算出用户指尖所在位置垂直映射在触摸屏上的X轴坐标与Y轴坐标。The change of capacitance on the touch screen is detected, and the X-axis and Y-axis coordinates of the position of the user's fingertip vertically mapped on the touch screen are calculated according to the change of capacitance.
进一步地,所述坐标信息还包括Z轴坐标;所述检测包括:Further, the coordinate information also includes Z-axis coordinates; the detection includes:
检测电场的衰减程度,根据电场的衰减程度计算出用户指尖与触摸屏的高度距离;Detect the attenuation degree of the electric field, and calculate the height distance between the user's fingertip and the touch screen according to the attenuation degree of the electric field;
在所述高度距离小于预设阈值时,以所述高度距离作为用户指尖在触摸屏上的Z轴坐标。When the height distance is smaller than the preset threshold, the height distance is used as the Z-axis coordinate of the user's fingertip on the touch screen.
进一步地,所述用户指尖的悬浮操作包括用户指尖的运行方向和运行速度;Further, the levitation operation of the user's fingertip includes the running direction and running speed of the user's fingertip;
所述对所述多组坐标信息以及对应的时间信息进行矢量运算,以获得用户指尖的悬浮操作具体为:The vector operation performed on the multiple sets of coordinate information and the corresponding time information to obtain the levitation operation of the user's fingertip is specifically:
以每一组坐标信息作为一个向量,对所述向量进行矢量运算,以获得用户指尖的运行方向;以及,对所述向量及其对应的时间信息进行矢量运算,以获得用户指尖的运行速度;Taking each set of coordinate information as a vector, perform vector operation on the vector to obtain the running direction of the user's fingertip; and, perform vector operation on the vector and its corresponding time information to obtain the running direction of the user's fingertip speed;
所述根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件具体为:The execution of the corresponding operation event on the three-dimensional image displayed on the touch screen according to the floating operation is specifically:
根据所述矢量运算得到的用户指尖的运行方向和运行速度,在触摸屏显示的三维图像上执行相应的操作事件。According to the running direction and running speed of the user's fingertip obtained by the vector operation, a corresponding operation event is executed on the three-dimensional image displayed on the touch screen.
进一步地,所述方法还包括:Further, the method also includes:
在接收到用户输入的返回指令时,结束悬浮触控操作。When the return instruction input by the user is received, the hovering touch operation is ended.
本发明的第二方面,还提供了一种基于矢量运算的悬浮触控装置,所述装置包括:A second aspect of the present invention further provides a floating touch device based on vector operations, the device comprising:
检测模块,用于按照预设的时间间隔在触摸屏的预设范围内连续进行多次检测,以获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,记录所述多组坐标信息和对应的时间信息;The detection module is used to continuously perform multiple detections within the preset range of the touch screen according to the preset time interval, so as to obtain multiple sets of coordinate information and corresponding time on the touch screen corresponding to the user's fingertip hovering operation directly above the touch screen information, record the multiple sets of coordinate information and corresponding time information;
计算模块,用于对所述多组坐标信息以及对应的时间信息进行矢量运算,以获得用户指尖的悬浮操作;a calculation module for performing vector operations on the multiple sets of coordinate information and the corresponding time information to obtain the levitation operation of the user's fingertip;
执行模块,用于根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。The execution module is configured to execute a corresponding operation event on the three-dimensional image displayed on the touch screen according to the floating operation.
进一步地,所述坐标信息包括X轴坐标、Y轴坐标;所述检测模块包括第一检测单元,所述第一检测单元用于:Further, the coordinate information includes X-axis coordinates and Y-axis coordinates; the detection module includes a first detection unit, and the first detection unit is used for:
检测触摸屏上电容的变化情况,根据电容的变化情况计算出用户指尖所在位置垂直映射在触摸屏上的X轴坐标与Y轴坐标。The change of capacitance on the touch screen is detected, and the X-axis and Y-axis coordinates of the position of the user's fingertip vertically mapped on the touch screen are calculated according to the change of capacitance.
进一步地,所述坐标信息还包括Z轴坐标;所述检测模块还包括第二检测单元,所述第二检测单元用于:Further, the coordinate information also includes Z-axis coordinates; the detection module further includes a second detection unit, and the second detection unit is used for:
检测电场的衰减程度,根据电场的衰减程度计算出用户指尖与触摸屏的高度距离;Detect the attenuation degree of the electric field, and calculate the height distance between the user's fingertip and the touch screen according to the attenuation degree of the electric field;
在所述高度距离小于预设阈值时,以所述高度距离作为用户指尖在触摸屏上的Z轴坐标。When the height distance is smaller than the preset threshold, the height distance is used as the Z-axis coordinate of the user's fingertip on the touch screen.
进一步地,所述用户指尖的悬浮操作包括用户指尖的运行轨迹和运行速度;Further, the levitation operation of the user's fingertip includes the running track and running speed of the user's fingertip;
所述计算模块具体用于:The computing module is specifically used for:
以每一组坐标信息作为一个向量,对所述向量进行矢量运算,以获得用户指尖的运行方向;以及,对所述向量及其对应的时间信息进行矢量运算,以获得用户指尖的运行速度;Taking each set of coordinate information as a vector, perform vector operation on the vector to obtain the running direction of the user's fingertip; and, perform vector operation on the vector and its corresponding time information to obtain the running direction of the user's fingertip speed;
所述执行模块具体用于:The execution module is specifically used for:
根据所述矢量运算得到的用户指尖的运行方向和运行速度,在触摸屏显示的三维图像上执行相应的操作事件。According to the running direction and running speed of the user's fingertip obtained by the vector operation, a corresponding operation event is executed on the three-dimensional image displayed on the touch screen.
进一步地,所述装置还包括:Further, the device also includes:
返回模块,用于在接收到用户输入的返回指令时,结束悬浮触控操作。The return module is used to end the hovering touch operation when receiving the return instruction input by the user.
本发明通过在用户设备的触摸屏的预设范围内,按照预设的时间间隔连续进行多次检测,获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,并根据所述多组坐标信息以及对应的时间信息,通过矢量运算计算出用户指尖的悬浮操作;并根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。从而实现了悬浮触控中的多点触控检测,以及与三维图像交互的悬浮触控操作,大大地提升了用户体验感。The present invention obtains multiple sets of coordinate information on the touch screen corresponding to when the user's fingertip hovers directly above the touch screen by continuously performing multiple detections at preset time intervals within the preset range of the touch screen of the user equipment and the corresponding time information, and according to the multiple sets of coordinate information and the corresponding time information, the levitating operation of the user's fingertip is calculated through vector operations; and the corresponding operation event is executed on the three-dimensional image displayed on the touch screen according to the levitating operation. Thus, the multi-touch detection in the floating touch and the floating touch operation interacting with the three-dimensional image are realized, which greatly improves the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明实施例一提供的基于矢量运算的悬浮触控方法的第一实现流程图;FIG. 1 is a first implementation flowchart of a vector operation-based hover touch method provided in Embodiment 1 of the present invention;
图2是本发明实施例二提供的基于矢量运算的悬浮触控方法的第二实现流程图;FIG. 2 is a second implementation flowchart of the vector operation-based hover touch method provided in Embodiment 2 of the present invention;
图3是本发明实施例二提供的基于矢量运算的悬浮触控装置的组成结构图。FIG. 3 is a structural diagram of a floating touch device based on vector operations according to Embodiment 2 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本发明通过在用户设备的触摸屏的预设范围内,按照预设的时间间隔连续进行多次检测,获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,并根据所述多组坐标信息以及对应的时间信息,通过矢量运算计算出用户指尖的悬浮操作;并根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。从而实现了悬浮触控中的多点触控检测,以及与三维图像交互的悬浮触控操作,大大地提升了用户体验感。The present invention obtains multiple sets of coordinate information on the touch screen corresponding to when the user's fingertip hovers directly above the touch screen by continuously performing multiple detections at preset time intervals within the preset range of the touch screen of the user equipment and the corresponding time information, and according to the multiple sets of coordinate information and the corresponding time information, the levitating operation of the user's fingertip is calculated through vector operations; and the corresponding operation event is executed on the three-dimensional image displayed on the touch screen according to the levitating operation. Thus, the multi-touch detection in the floating touch and the floating touch operation interacting with the three-dimensional image are realized, which greatly improves the user experience.
实施例一Example 1
图1示出了本发明实施例一提供的基于矢量运算的悬浮触控方法的第一实现流程。在本实施例中,所述方法适用于具有电容式触摸显示屏的用户设备(UE,UserEquipment)(例如为:手机,智能终端,多媒体设备,流媒体设备等),此处不作限定。FIG. 1 shows a first implementation flow of the vector operation-based hover touch method provided by Embodiment 1 of the present invention. In this embodiment, the method is applicable to a user equipment (UE, UserEquipment) having a capacitive touch display screen (eg, a mobile phone, a smart terminal, a multimedia device, a streaming media device, etc.), which is not limited here.
如图1所示,所述方法包括:As shown in Figure 1, the method includes:
在步骤S101中,按照预设的时间间隔在触摸屏的预设范围内连续进行多次检测,以获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,记录所述多组坐标信息和对应的时间信息。In step S101, multiple detections are continuously performed within a preset range of the touch screen according to a preset time interval to obtain multiple sets of coordinate information and corresponding time on the touch screen corresponding to the user's fingertip hovering directly above the touch screen. information, and record the multiple sets of coordinate information and corresponding time information.
在本实施例中,触摸屏上预先设有一个检测范围。在检测范围内,当人体手指接触到电容式触摸屏时,由于人体接地,手指与电容式触摸屏的工作面就形成一个等效电容,工作面上接有的高频信号可以通过这一等效电容流入地线。用户对触摸屏的操作一般是通过指尖来完成的,因此,指尖一般最靠近电容式触摸屏的工作面。此时,指尖所对应的触摸屏位置上的电容变化是最大的,通过检测电容变化最大的位置来确定悬浮操作中指尖在触摸屏上的对应位置,获得用户指尖在触摸屏上的一组坐标信息,同时记录所述坐标信息对应的时间信息。所述坐标信息包括用户指尖垂直映射在触摸屏上的X轴坐标、Y轴坐标以及Z轴坐标(即用户指尖与触摸屏的垂直距离)。所述时间信息为每一次检测所对应的当前时间。In this embodiment, a detection range is preset on the touch screen. Within the detection range, when a human finger touches the capacitive touch screen, due to the grounding of the human body, an equivalent capacitance is formed between the finger and the working surface of the capacitive touch screen, and the high-frequency signal connected to the working surface can pass through this equivalent capacitance. into the ground wire. The user's operation on the touch screen is generally completed through the fingertip, therefore, the fingertip is generally closest to the working surface of the capacitive touch screen. At this time, the capacitance change on the touch screen position corresponding to the fingertip is the largest. By detecting the position with the largest capacitance change, the corresponding position of the fingertip on the touch screen in the floating operation is determined, and a set of coordinate information of the user's fingertip on the touch screen is obtained. , and simultaneously record the time information corresponding to the coordinate information. The coordinate information includes an X-axis coordinate, a Y-axis coordinate and a Z-axis coordinate of the user's fingertip vertically mapped on the touch screen (ie, the vertical distance between the user's fingertip and the touch screen). The time information is the current time corresponding to each detection.
按照预设的时间间隔进行刷新,检测下一个电容变化最大的位置,并记录所述下一个电容变化最大的位置的坐标信息及其对应的时间信息。作为本发明的一个实施示例,所述预设的时间间隔优选为0.8秒。当用户在触摸屏上方进行悬浮触控操作时,每隔0.8秒进行一次刷新,检测电容式触摸屏上电容变化最大的位置,以确定所述悬浮触控操作对应的一系列离散的悬浮触控操作点的坐标信息及对应的检测时间。Refresh is performed according to a preset time interval, the next position with the largest capacitance change is detected, and the coordinate information of the next position with the largest capacitance change and its corresponding time information are recorded. As an implementation example of the present invention, the preset time interval is preferably 0.8 seconds. When the user performs a floating touch operation on the top of the touch screen, refresh is performed every 0.8 seconds, and the position on the capacitive touch screen where the capacitance changes the most is detected to determine a series of discrete floating touch operation points corresponding to the floating touch operation. The coordinate information and the corresponding detection time.
在步骤S102中,对所述多组坐标信息以及对应的时间信息进行矢量运算,以获得用户指尖的悬浮操作。In step S102, a vector operation is performed on the multiple sets of coordinate information and the corresponding time information to obtain a hovering operation of the user's fingertip.
在本实施例中,所述用户指尖的悬浮操作包括指尖的运行方向和运行速度。以每一组坐标信息作为一个向量,对所述向量进行矢量运算,以获得用户指尖的运行方向;以及,对所述向量及其对应的时间信息进行矢量运算,以获得用户指尖的运行速度。In this embodiment, the hovering operation of the user's fingertip includes the running direction and running speed of the fingertip. Taking each set of coordinate information as a vector, perform vector operation on the vector to obtain the running direction of the user's fingertip; and, perform vector operation on the vector and its corresponding time information to obtain the running direction of the user's fingertip speed.
优选地,所述用户指尖的悬浮操作还可以包括用户指尖的运行加速度。Preferably, the hovering operation of the user's fingertip may further include the running acceleration of the user's fingertip.
在步骤S103中,根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。In step S103, a corresponding operation event is performed on the three-dimensional image displayed on the touch screen according to the hovering operation.
得到指尖的运行方向和运行速度后,在电容式触摸屏显示的三维图像上执行相应的操作事件。After the running direction and running speed of the fingertip are obtained, corresponding operation events are performed on the three-dimensional image displayed by the capacitive touch screen.
在本实施例中,所述操作事件包括三维空间下的不同角度的旋转/翻转操作、不同速度或者路径的滑动操作等,以实现对三维图像的虚拟控制。In this embodiment, the operation events include rotation/flip operations at different angles in a three-dimensional space, sliding operations at different speeds or paths, etc., so as to realize virtual control of the three-dimensional image.
本发明通过在用户设备的触摸屏的预设范围内,按照预设的时间间隔连续进行多次检测,获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,并根据所述多组坐标信息以及对应的时间信息,通过矢量运算计算出用户指尖的悬浮操作;并根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。从而实现了悬浮触控中的多点触控检测,以及与三维图像交互的悬浮触控操作,大大地提升了用户体验感。The present invention obtains multiple sets of coordinate information on the touch screen corresponding to when the user's fingertip hovers directly above the touch screen by continuously performing multiple detections at preset time intervals within the preset range of the touch screen of the user equipment and the corresponding time information, and according to the multiple sets of coordinate information and the corresponding time information, the levitating operation of the user's fingertip is calculated through vector operations; and the corresponding operation event is executed on the three-dimensional image displayed on the touch screen according to the levitating operation. Thus, the multi-touch detection in the floating touch and the floating touch operation interacting with the three-dimensional image are realized, which greatly improves the user experience.
实施例二Embodiment 2
图2示出了本发明实施例二提供的基于矢量运算的悬浮触控方法的第二实现流程。在本实施例中,所述方法适用于具有电容式触摸显示屏的用户设备(UE,UserEquipment)(例如为:手机,智能终端,多媒体设备,流媒体设备等),此处不作限定。FIG. 2 shows a second implementation process of the vector operation-based hover touch method provided in Embodiment 2 of the present invention. In this embodiment, the method is applicable to a user equipment (UE, UserEquipment) having a capacitive touch display screen (eg, a mobile phone, a smart terminal, a multimedia device, a streaming media device, etc.), which is not limited here.
如图2所示,所述方法包括:As shown in Figure 2, the method includes:
在步骤S201中,启动悬浮触控功能。In step S201, the hover touch function is activated.
在本实施例中,用户设备响应用户输入的启动悬浮触控功能的请求信息,根据用户输入的请求信息启动悬浮触控功能。所述请求信息可以为用户通过用户设备上预设的按钮或已有的按钮中一个按钮或者多个按钮的组合发出;或者,由用户通过用户设备触摸屏发出的启动悬浮触控请求信息。In this embodiment, the user equipment responds to the request information input by the user for starting the floating touch function, and starts the floating touch function according to the request information input by the user. The request information may be sent by the user through a preset button on the user equipment or a button or a combination of multiple buttons in the existing buttons; or, the request information for starting the hovering touch sent by the user through the touch screen of the user equipment.
在步骤S202中,在触摸屏的预设范围内判断是否有手指运动。In step S202, it is determined whether there is a finger movement within a preset range of the touch screen.
在本实施例中,在电容式触摸屏预设的检测范围内,判断电容式触摸屏上的电容是否发生变化,以判断电容式触摸屏上是否有手指运动。当手指靠近电容式触摸屏时,电容式触摸屏上的电容将发生变化,表明有手指在运动,此时,按照预设的时间间隔同时执行步骤S203和204。否则,执行步骤S209,不执行任何操作,返回步骤S202。所述预设的时间间隔优选为0.8秒。In this embodiment, within the preset detection range of the capacitive touch screen, it is determined whether the capacitance on the capacitive touch screen changes, so as to determine whether there is finger movement on the capacitive touch screen. When the finger approaches the capacitive touch screen, the capacitance on the capacitive touch screen will change, indicating that a finger is moving. At this time, steps S203 and 204 are performed simultaneously according to a preset time interval. Otherwise, step S209 is performed, no operation is performed, and step S202 is returned. The preset time interval is preferably 0.8 seconds.
在步骤S203中,检测触摸屏上电容的变化情况,根据电容的变化情况计算出用户指尖所在位置垂直映射在触摸屏上的X轴坐标与Y轴坐标。In step S203, the change of the capacitance on the touch screen is detected, and the X-axis coordinate and the Y-axis coordinate of the position of the user's fingertip vertically mapped on the touch screen are calculated according to the change of the capacitance.
所述X轴坐标、Y轴坐标以及Z轴坐标共同构成了指尖在电容式触摸屏上的一组坐标信息。记录下检测的当前时间,所述检测的当前时间即为该组坐标信息对应的时间信息。跳转到步骤S205。The X-axis coordinate, Y-axis coordinate and Z-axis coordinate together constitute a set of coordinate information of the fingertip on the capacitive touch screen. The detected current time is recorded, and the detected current time is the time information corresponding to the set of coordinate information. Jump to step S205.
在步骤S204中,检测电场的衰减程度,根据电场的衰减程度计算出用户指尖与触摸屏的高度距离;在所述高度距离小于预设阈值时,以所述高度距离作为用户指尖在触摸屏上的Z轴坐标。In step S204, the attenuation degree of the electric field is detected, and the height distance between the user's fingertip and the touch screen is calculated according to the attenuation degree of the electric field; when the height distance is less than a preset threshold, the height distance is used as the user's fingertip on the touch screen. the Z coordinate of the .
优选地,在所述高度距离大于等于预设的阈值时,则以所述预设的阈值作为用户指尖在触摸屏上的Z轴坐标,跳转到步骤S205。所述预设阈值优选为10-30毫米中的任一值。Preferably, when the height distance is greater than or equal to a preset threshold, the preset threshold is used as the Z-axis coordinate of the user's fingertip on the touch screen, and the process jumps to step S205. The preset threshold is preferably any value of 10-30 mm.
通过按照预设的时间间隔进行多次检测,从而获得与用户指尖发出的悬浮操作对应的一系列离散的悬浮触作点的坐标信息及其对应的时间信息。By performing multiple detections at preset time intervals, the coordinate information of a series of discrete levitation touch points and corresponding time information corresponding to the levitation operation issued by the user's fingertip are obtained.
在步骤S205中,在触摸屏的预设范围内判断手指运动是否结束。In step S205, it is determined whether the finger movement ends within a preset range of the touch screen.
在本实施例中,若电容式触摸屏上的电容不再发生变化,则表明电容式触摸屏上手指运动已经结束。优选地,在执行完步骤S203与S204之后预设的时间间隔内(如1秒)电容式触摸屏上的电容不再发生变化时,则执行步骤S206,否则,按照预设的时间间隔同时返回步骤S203和204。In this embodiment, if the capacitance on the capacitive touch screen no longer changes, it means that the finger movement on the capacitive touch screen has ended. Preferably, when the capacitance on the capacitive touch screen no longer changes within a preset time interval (for example, 1 second) after steps S203 and S204 are performed, step S206 is performed; otherwise, the process returns to the step according to the preset time interval S203 and 204.
在步骤S206中,以每一组坐标信息作为一个向量,对所述向量进行矢量运算,以获得用户指尖的运行方向;以及,对所述向量及其对应的时间信息进行矢量运算,以获得用户指尖的运行速度。In step S206, using each set of coordinate information as a vector, perform vector operation on the vector to obtain the running direction of the user's fingertip; and perform vector operation on the vector and its corresponding time information to obtain The speed of the user's fingertips.
通过矢量计算,得到用户指尖的运行方向和运行速度,从而拟合出用户指尖悬浮操作的轨迹以及速度信息。Through vector calculation, the running direction and running speed of the user's fingertip are obtained, so as to fit the trajectory and speed information of the user's fingertip hovering operation.
在步骤S207中,根据所述矢量运算得到的用户指尖的运行方向和运行速度,在触摸屏显示的三维图像上执行相应的操作事件。In step S207, according to the running direction and running speed of the user's fingertip obtained by the vector operation, a corresponding operation event is executed on the three-dimensional image displayed on the touch screen.
在本实施例中,所述操作事件包括三维空间下的不同角度的旋转/翻转操作、不同速度或者路径的滑动操作等,以实现对三维图像的悬浮触控。In this embodiment, the operation events include rotation/flip operations at different angles in a three-dimensional space, sliding operations at different speeds or paths, etc., so as to realize the floating touch on the three-dimensional image.
优选地,本发明还包括:Preferably, the present invention also includes:
在步骤S208中,在接收到用户输入的返回指令时,结束悬浮触控操作。In step S208, when a return instruction input by the user is received, the hovering touch operation is ended.
在接收到用户输入的返回指令时,退出悬浮触控功能,返回到普通触屏功能。When receiving the return instruction input by the user, exit the floating touch function and return to the ordinary touch screen function.
本发明通过在用户设备的触摸屏的预设范围内,按照预设的时间间隔连续进行多次检测,获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,并根据所述多组坐标信息以及对应的时间信息,通过矢量运算计算出用户指尖的悬浮操作;并根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。从而实现了悬浮触控中的多点触控检测,以及与三维图像交互的悬浮触控操作,大大地提升了用户体验感。The present invention obtains multiple sets of coordinate information on the touch screen corresponding to when the user's fingertip hovers directly above the touch screen by continuously performing multiple detections at preset time intervals within the preset range of the touch screen of the user equipment and the corresponding time information, and according to the multiple sets of coordinate information and the corresponding time information, the levitating operation of the user's fingertip is calculated through vector operations; and the corresponding operation event is executed on the three-dimensional image displayed on the touch screen according to the levitating operation. Thus, the multi-touch detection in the floating touch and the floating touch operation interacting with the three-dimensional image are realized, which greatly improves the user experience.
实施例三Embodiment 3
图3示出了本发明实施例三提供的基于矢量运算的悬浮触控装置的组成结构图。为了便于说明,仅示出了与本发明相关的部分。FIG. 3 shows a structural diagram of a floating touch device based on a vector operation provided by Embodiment 3 of the present invention. For convenience of explanation, only the parts related to the present invention are shown.
在本实施例中,所述装置应用于具有电容式触摸显示屏的用户设备(UE,UserEquipment)(例如为:手机,智能终端,多媒体设备,流媒体设备等),此处不作限定。In this embodiment, the device is applied to a user equipment (UE, UserEquipment) having a capacitive touch display screen (eg, a mobile phone, a smart terminal, a multimedia device, a streaming media device, etc.), which is not limited here.
如图3所示,所述装置包括:As shown in Figure 3, the device includes:
检测模块31,用于按照预设的时间间隔在触摸屏的预设范围内连续进行多次检测,以获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息,记录所述多组坐标信息和对应的时间信息。The
在本实施例中,所述坐标信息包括X轴坐标、Y轴坐标;所述检测模块31包括第一检测单元311,所述第一检测单元311用于:In this embodiment, the coordinate information includes X-axis coordinates and Y-axis coordinates; the
检测触摸屏上电容的变化情况,根据电容的变化情况计算出用户指尖垂直映射在触摸屏上的X轴坐标与Y轴坐标。The change of the capacitance on the touch screen is detected, and the X-axis coordinate and the Y-axis coordinate of the user's fingertip vertically mapped on the touch screen are calculated according to the change of the capacitance.
在本实施例中,所述坐标信息还包括Z轴坐标;所述检测模块31还包括第二检测单元312,所述第二检测单元312用于:In this embodiment, the coordinate information further includes Z-axis coordinates; the
检测电场的衰减程度,根据电场的衰减程度计算出用户指尖与触摸屏的高度距离;Detect the attenuation degree of the electric field, and calculate the height distance between the user's fingertip and the touch screen according to the attenuation degree of the electric field;
在所述高度距离小于预设阈值时,以所述高度距离作为用户指尖在触摸屏上的Z轴坐标。When the height distance is smaller than the preset threshold, the height distance is used as the Z-axis coordinate of the user's fingertip on the touch screen.
优选地,在所述高度距离大于等于预设的阈值时,则以所述预设的阈值作为用户指尖在触摸屏上的Z轴坐标。所述预设阈值优选为10-30毫米中的任一值。Preferably, when the height distance is greater than or equal to a preset threshold, the preset threshold is used as the Z-axis coordinate of the user's fingertip on the touch screen. The preset threshold is preferably any value of 10-30 mm.
计算模块32,用于对所述多组坐标信息以及对应的时间信息进行矢量运算,以获得用户指尖的悬浮操作。The
执行模块33,用于根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。The
在本实施例中,所述用户指尖的悬浮操作包括用户指尖的运行方向和运行速度;In this embodiment, the hovering operation of the user's fingertip includes the running direction and running speed of the user's fingertip;
在本实施例中,所述计算模块32具体用于:In this embodiment, the
以每一组坐标信息作为一个向量,对所述向量进行矢量运算,以获得用户指尖的运行方向;以及,对所述向量及其对应的时间信息进行矢量运算,以获得用户指尖的运行速度。Taking each set of coordinate information as a vector, perform vector operation on the vector to obtain the running direction of the user's fingertip; and, perform vector operation on the vector and its corresponding time information to obtain the running direction of the user's fingertip speed.
所述执行模块33具体用于:The
根据所述矢量运算得到的用户指尖的运行轨迹和运行速度,在触摸屏显示的三维图像上执行相应的操作事件。According to the running track and running speed of the user's fingertip obtained by the vector operation, the corresponding operation event is executed on the three-dimensional image displayed on the touch screen.
在本实施例中,所述操作事件包括三维空间下的不同角度的旋转/翻转操作、不同速度或者路径的滑动操作等,以实现对三维图像的悬浮触控。In this embodiment, the operation events include rotation/flip operations at different angles in a three-dimensional space, sliding operations at different speeds or paths, etc., so as to realize the floating touch on the three-dimensional image.
优选地,所述装置还包括:Preferably, the device further comprises:
返回模块34,用于在接收到用户输入的返回指令时,结束悬浮触控操作。The returning module 34 is configured to end the hovering touch operation when receiving the returning instruction input by the user.
本实施例中,通过检测模块按照预设的时间间隔在触摸屏的预设范围内连续进行多次检测,获取用户指尖在触摸屏正上方进行悬浮操作时对应的触摸屏上的多组坐标信息和对应的时间信息;由计算模块根据所述多组坐标信息以及对应的时间信息,通过矢量运算计算出用户指尖的悬浮操作;执行模块根据所述悬浮操作在触摸屏显示的三维图像上执行相应的操作事件。从而实现了悬浮触控中的多点触控检测,以及与三维图像交互的悬浮触控操作,大大地提升了用户体验感。In this embodiment, multiple sets of coordinate information on the touch screen corresponding to when the user's fingertip hovers directly above the touch screen and the corresponding The time information of the user's fingertip is calculated by the calculation module according to the multiple sets of coordinate information and the corresponding time information through vector operation; the execution module performs the corresponding operation on the three-dimensional image displayed on the touch screen according to the suspension operation. event. Thus, the multi-touch detection in the floating touch and the floating touch operation interacting with the three-dimensional image are realized, which greatly improves the user experience.
本领域普通技术人员还可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以在存储于一计算机可读取存储介质中,所述的存储介质,包括ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can also understand that all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, so The storage medium described above includes ROM/RAM, magnetic disk, optical disk, etc.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明。例如,各个模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能模块的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For example, each module is only divided according to the functional logic, but it is not limited to the above-mentioned division, as long as the corresponding function can be realized; in addition, the specific names of each functional module are only for the convenience of distinguishing from each other, and are not used to limit the present the scope of protection of the invention.
凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810161072.2A CN108073334B (en) | 2014-07-24 | 2014-07-24 | Vector operation-based suspension touch method and device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810161072.2A CN108073334B (en) | 2014-07-24 | 2014-07-24 | Vector operation-based suspension touch method and device |
| CN201410357136.8A CN104123095B (en) | 2014-07-24 | 2014-07-24 | A floating touch method and device based on vector calculation |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410357136.8A Division CN104123095B (en) | 2014-07-24 | 2014-07-24 | A floating touch method and device based on vector calculation |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108073334A CN108073334A (en) | 2018-05-25 |
| CN108073334B true CN108073334B (en) | 2020-12-25 |
Family
ID=51768522
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410357136.8A Expired - Fee Related CN104123095B (en) | 2014-07-24 | 2014-07-24 | A floating touch method and device based on vector calculation |
| CN201810161072.2A Expired - Fee Related CN108073334B (en) | 2014-07-24 | 2014-07-24 | Vector operation-based suspension touch method and device |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410357136.8A Expired - Fee Related CN104123095B (en) | 2014-07-24 | 2014-07-24 | A floating touch method and device based on vector calculation |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN104123095B (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104834377A (en) * | 2015-05-05 | 2015-08-12 | 成都上生活网络科技有限公司 | Audio control method based on 3D (3-Dimensional) gesture recognition |
| CN105022485B (en) * | 2015-07-09 | 2018-09-28 | 中山大学 | A kind of the suspension exchange method and system of automated teller machine equipment |
| CN106775064B (en) * | 2016-11-24 | 2020-04-28 | 努比亚技术有限公司 | Terminal control device and method thereof |
| CN106775070B (en) * | 2016-11-29 | 2020-05-22 | 努比亚技术有限公司 | Input control device and method thereof |
| CN106873822A (en) * | 2016-12-27 | 2017-06-20 | 努比亚技术有限公司 | A kind of terminal suspension procedure learning device and its method |
| CN108334246B (en) * | 2017-12-11 | 2021-06-22 | 北京硬壳科技有限公司 | Floating touch method and related device |
| CN108469926B (en) * | 2018-03-09 | 2021-05-25 | 北京硬壳科技有限公司 | Equipment control method, device and equipment |
| CN109358750A (en) * | 2018-10-17 | 2019-02-19 | Oppo广东移动通信有限公司 | Control method, mobile terminal, electronic device and storage medium |
| CN109785442B (en) * | 2018-12-11 | 2023-07-11 | 平安科技(深圳)有限公司 | Image rotation control method and device, and image rotation display method and system |
| CN110420463A (en) * | 2019-01-22 | 2019-11-08 | 网易(杭州)网络有限公司 | The control method and device of virtual objects, electronic equipment, storage medium in game |
| CN112328164B (en) * | 2020-11-11 | 2022-08-02 | 维沃移动通信有限公司 | Control method and electronic equipment |
| CN113157504A (en) * | 2021-03-26 | 2021-07-23 | 歌尔股份有限公司 | Touch screen equipment testing method and touch screen equipment testing system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1961281A (en) * | 2004-06-03 | 2007-05-09 | 希尔克瑞斯特实验室公司 | Client-server architecture and method for scalable user interface |
| CN102314269A (en) * | 2010-07-02 | 2012-01-11 | 谊达光电科技股份有限公司 | Touch panel proximity detection device and method |
| CN102467344A (en) * | 2010-11-17 | 2012-05-23 | 索尼公司 | System and method for display proximity-based control of a touch screen user interface |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6031519A (en) * | 1997-12-30 | 2000-02-29 | O'brien; Wayne P. | Holographic direct manipulation interface |
| US7663607B2 (en) * | 2004-05-06 | 2010-02-16 | Apple Inc. | Multipoint touchscreen |
| US7864161B2 (en) * | 2004-06-17 | 2011-01-04 | Adrea, LLC | Use of a two finger input on touch screens |
| US8086971B2 (en) * | 2006-06-28 | 2011-12-27 | Nokia Corporation | Apparatus, methods and computer program products providing finger-based and hand-based gesture commands for portable electronic device applications |
| US20100238119A1 (en) * | 2009-03-18 | 2010-09-23 | Zivthan Dubrovsky | Touchscreen Keyboard Overlay |
| KR101114750B1 (en) * | 2010-01-29 | 2012-03-05 | 주식회사 팬택 | User Interface Using Hologram |
| CN101799733A (en) * | 2010-04-07 | 2010-08-11 | 苏州瀚瑞微电子有限公司 | Method for detecting multi-point touch and touch screen |
| CN101866243A (en) * | 2010-07-09 | 2010-10-20 | 苏州瀚瑞微电子有限公司 | Three-dimensional space touch control operation method and hand gestures thereof |
| CN101976136A (en) * | 2010-08-13 | 2011-02-16 | 苏州瀚瑞微电子有限公司 | Method for detecting multipoint touch on touch screen |
| CN102375587B (en) * | 2010-08-15 | 2015-03-11 | 宸鸿科技(厦门)有限公司 | Touch control panel for detecting multi-touch-point true coordinate and detection method |
| US20120038577A1 (en) * | 2010-08-16 | 2012-02-16 | Floatingtouch, Llc | Floating plane touch input device and method |
-
2014
- 2014-07-24 CN CN201410357136.8A patent/CN104123095B/en not_active Expired - Fee Related
- 2014-07-24 CN CN201810161072.2A patent/CN108073334B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1961281A (en) * | 2004-06-03 | 2007-05-09 | 希尔克瑞斯特实验室公司 | Client-server architecture and method for scalable user interface |
| CN102314269A (en) * | 2010-07-02 | 2012-01-11 | 谊达光电科技股份有限公司 | Touch panel proximity detection device and method |
| CN102467344A (en) * | 2010-11-17 | 2012-05-23 | 索尼公司 | System and method for display proximity-based control of a touch screen user interface |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104123095A (en) | 2014-10-29 |
| CN108073334A (en) | 2018-05-25 |
| CN104123095B (en) | 2018-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108073334B (en) | Vector operation-based suspension touch method and device | |
| KR102113674B1 (en) | Apparatus, method and computer readable recording medium for selecting objects displayed on an electronic device using a multi touch | |
| TWI514248B (en) | Method for preventing from accidentally triggering edge swipe gesture and gesture triggering | |
| WO2015131675A1 (en) | Compensation method for broken slide paths, electronic device and computer storage medium | |
| US20160246383A1 (en) | Floating or mid-air operation processing method and apparatus | |
| JP5656307B1 (en) | Electronics | |
| US20150033326A1 (en) | System and Method for Unlocking Screen | |
| CN103294401A (en) | Icon processing method and device for electronic instrument with touch screen | |
| KR20160057407A (en) | Simultaneous hover and touch interface | |
| JP6005417B2 (en) | Operating device | |
| CN103645844A (en) | Page displaying method and device | |
| WO2014118602A1 (en) | Emulating pressure sensitivity on multi-touch devices | |
| TW201426431A (en) | Tactile feedback system and method for providing tactile feedback | |
| CN104951213B (en) | Method for preventing false triggering of edge sliding gesture | |
| TW201608485A (en) | Touch capacitive device and object identifying method of the capacitive touch device | |
| US20130293477A1 (en) | Electronic apparatus and method for operating the same | |
| US20150242112A1 (en) | Human interface device with touch sensor | |
| US9747021B2 (en) | Document dividing and merging | |
| JP5736551B1 (en) | Electronic device and control method | |
| JP2015230693A (en) | Information processing device, input method, computer program, and recording medium | |
| CN109582171A (en) | Use identifying to the new finger for touching posture for capacitor hovering mode | |
| JP6255321B2 (en) | Information processing apparatus, fingertip operation identification method and program | |
| CN103605460B (en) | Gesture recognition method and related terminal | |
| JP2017021540A (en) | Detection circuit and touch sensor system | |
| CN109716273B (en) | Finger positioning method and device in wet state of touch screen and touch detection device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201225 |