WO2013178045A1 - Method and device for detecting operation command - Google Patents

Method and device for detecting operation command Download PDF

Info

Publication number
WO2013178045A1
WO2013178045A1 PCT/CN2013/076295 CN2013076295W WO2013178045A1 WO 2013178045 A1 WO2013178045 A1 WO 2013178045A1 CN 2013076295 W CN2013076295 W CN 2013076295W WO 2013178045 A1 WO2013178045 A1 WO 2013178045A1
Authority
WO
WIPO (PCT)
Prior art keywords
intersection
operation command
touch screen
user
coordinate array
Prior art date
Application number
PCT/CN2013/076295
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 WO2013178045A1 publication Critical patent/WO2013178045A1/en

Links

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for detecting an operation command. Background technique
  • tap gesture Quickly touch the touch screen to launch the application or activate an image
  • Double tap gesture Tap the touch screen twice in quick succession to open or close the application or document;
  • Flashing gesture Quickly move the finger in the up, down, left and right direction on the touch screen to scroll or slide a series of items or pages;
  • zoom gesture Place two fingers on the touch screen and let them close or separate to enlarge or reduce the display item
  • Turn gesture Place two fingers on the touch screen to rotate the object on the display in a clockwise or counterclockwise direction.
  • the touch screen is a relatively small button when displaying these commands. It is very inconvenient to operate, and sometimes even a mistake can be made by mistakenly clicking the command. Of course, the direct operation of the button can also execute the corresponding command, but these are not fully utilized. Out of the advantages of the touch screen, the use is not very convenient.
  • the embodiment of the invention provides a method and a device for detecting an operation command, which are used to detect an operation command sent through the touch screen more accurately and quickly, so that the speed and accuracy of the execution of the operation command can be improved.
  • An operation command corresponding to the touch track is determined by detecting an intersection of a touch trajectory of the user on the touch screen with the coordinate array.
  • a coordinate array establishing unit configured to determine an initial point touched by the user on the touch screen, and establish an coordinate array by using the initial point as a coordinate origin, wherein the coordinate array includes an X axis and a Y axis, and at least two are parallel to the X axis a horizontal line, at least two vertical lines parallel to the Y axis;
  • an operation command determining unit configured to determine an operation command corresponding to the touch track by detecting an intersection of a touch track of the user on the touch screen and the coordinate array.
  • an initial point touched by the user on the touch screen is determined, and the coordinate point is established by using the initial point as a coordinate origin, the coordinate array includes an X axis and a Y axis, and at least two horizontal lines parallel to the X axis a line, at least two vertical lines parallel to the Y axis, determining an operation command corresponding to the touch track by detecting an intersection of a touch track of the user on the touch screen and the coordinate array, thereby detecting the touch screen through the touch screen more accurately and quickly
  • the issued operation command can further improve the speed and accuracy of the execution of the operation command.
  • the user can directly slide on the touch screen to execute related operation commands, thereby providing a more convenient experience for the user.
  • FIG. 1 is a schematic flowchart of a method for detecting an operation command according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an intersection of a touch track and a coordinate array of a user on a touch screen according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic diagram of an intersection of a touch track and a coordinate array of a user on a touch screen according to Embodiment 2 of the embodiment of the present disclosure
  • Embodiment 4 is a schematic diagram of an intersection of a touch trajectory of a user on a touch screen and a coordinate array in Embodiment 3 according to an embodiment of the present disclosure
  • Embodiment 5 is a schematic diagram of an intersection of a touch track and a coordinate array of a user on a touch screen in Embodiment 4 according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an apparatus for detecting an operation command according to an embodiment of the present invention. detailed description
  • the embodiment of the invention provides a method and a device for detecting an operation command, which are used to detect an operation command sent through the touch screen more accurately and quickly, so that the speed and accuracy of the execution of the operation command can be improved.
  • the sliding when the user operates the touch screen, the sliding can be performed directly on the touch screen, and the related operation command can be executed.
  • the related operation command can be executed.
  • a user reads an e-book using a mobile phone
  • the track of "Z” means that the mobile phone directly enters the standby mode and the like, thereby greatly facilitating the user's operation and bringing a more convenient experience to the user.
  • a method for detecting an operation command includes the following steps:
  • determining an operation command corresponding to the touch track by detecting a intersection of the touch track on the touch screen with the coordinate array, the method comprising: determining a touch track of the user on the touch screen and the The position of the intersection of the coordinate array and the time at which the intersection occurs; the corresponding operation command is determined based on the position of the intersection and the time at which the intersection occurs.
  • determining the corresponding operation command according to the position of the intersection and the time when the intersection occurs including: when the new intersection is not present on the touch screen over the preset duration, according to the time of the intersection , determine the order in which the intersections appear; determine the corresponding operation commands based on the position of the intersections and the order in which the intersections appear.
  • the position of the intersection may be the coordinates of the intersection or the relative position of the intersection.
  • intersection of the touch trajectory of the user on the touch screen and the coordinate array may include a partial intersection of the touch trajectory of the user on the touch screen with the coordinate array, and may also include all intersections of the user's touch trajectory on the touch screen and the coordinate array.
  • the spacing between each of two mutually adjacent adjacent lines is equal.
  • the spacing is preset in the user equipment according to the needs of the user, that is, may be set by the user; the spacing may also be fixedly set in the user equipment by the manufacturer in advance, and the user cannot change.
  • the method further comprises: executing the operation command after determining an operation command corresponding to the touch track.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the technical solution provided by the embodiment of the present invention specifically includes:
  • Step 1 The initial point of the user clicking the touch screen is the identifier 1 and the coordinate is (0,0).
  • the X/Y coordinate system is established with the marker 1 as the origin, and a plurality of parallel lines are constructed according to a certain distance from the X/Y axis.
  • the distance between the parallel lines is L, so that you can draw a coordinate array similar to Figure 2, including the horizontal lines: X10/X00/X01/X02/X03, including the vertical lines: Y30/Y20 /Y10/Y00/Y01.
  • the spacing L value can be set according to user needs, for example, 1 cm.
  • Step 2 When the user slides on the touch screen, the touch track shown in FIG. 2 appears. At this time, it can be seen that the sliding track and the Y10 have two intersections of the mark 2 and the mark 3 in addition to the initial point mark 1. , with ⁇ 00 has a mark 4 intersection; Specifically, the terminal starts from the initial point identification point 1 and detects that the identifier 2 is generated, and the command is used to execute the current screen to fast forward to the left, that is, fast backward.
  • the corresponding operation command is to advance to the left of the page for executing the current screen as long as the identification 1, the identification 2, and the identification 3 intersection point appear successively.
  • the above four identifiers may be in multiple sequences, and each corresponding operation command is fast forward to the left page of the page for executing the current screen, for example, when the identifier 4, the identifier 3, the identifier 2, and the identifier 1 appear in sequence. , or when the ID 2, ID 1, ID 3, and ID 4 appear in sequence, the corresponding operation commands are fast forward to the left of the page for executing the current screen.
  • Step 3 After detecting that no new intersection occurs for more than the preset time length, the corresponding operation instruction is determined according to the order and relative position of each intersection.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • Step 1 The initial point of the user clicking the touch screen is the identifier 1 and the coordinate is (0,0).
  • the X/Y coordinate system is established with the marker 1 as the origin, and a plurality of parallel lines are constructed according to a certain distance from the X/Y axis.
  • the distance between the parallel lines is L, so that you can draw a coordinate array similar to Figure 3, including the horizontal lines: X10/X00/X01/X02/X03, including the vertical lines: Y30/Y20 /Y10/Y00/Y01.
  • the spacing L value can be set according to user needs, for example, 1 cm.
  • Step 2 When the user slides on the touch screen, the touch track shown in FIG. 3 appears. At this time, it can be seen that the sliding track and the Y01 have two intersections of the mark 2 and the mark 3 in order except the initial point mark 1. ;
  • the terminal starts from the initial point identification point 1 and detects that the identifier appears. 2.
  • the logo executes the current screen to fast forward to the right, that is, fast forward.
  • the above three identifiers may be in multiple sequences, and each corresponding operation command is fast forward to the left of the page for executing the current screen.
  • each corresponding operation command is fast forward to the left of the page for executing the current screen.
  • the identifier 3 the identifier 2, and the identifier 1 appear in sequence, corresponding The operation commands are fast forward to the right for the page that executes the current screen.
  • Step 3 After detecting that no new intersection occurs for more than a preset length of time, determine a corresponding operation instruction according to the order and relative position of each intersection, and execute the operation command.
  • a new window may pop up, prompting the back or forward to the page for the user to operate. If there are a lot of pages, you can also pop back the percentage of back or forward, which is convenient for users to operate. Of course, you can also pop up the page thumbnails of the forward or backward, so that the user can better distinguish the corresponding page.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the technical solution provided by the embodiment of the present invention specifically includes:
  • Step 1 Pre-set the correspondence between various touch trajectories and operation commands, for example: Touch track “ ⁇ ” track indicates fast backward, touch track “>” track indicates fast forward, touch track “S” means close current application software, Touching the track “Z” means that the phone goes directly to standby mode.
  • Step 2 When the user uses the smart terminal to read the electronic magazine, if he wants to move forward, click the initial point of the touch screen as the marker 1 and the coordinate is (0,0), and establish the X/Y coordinate system with the marker 1 as the origin, according to the distance.
  • the X/Y axis constructs a plurality of parallel lines at a certain distance, and the distance between adjacent parallel lines is L, so that a coordinate array similar to that shown in Fig. 4 can be drawn, and the horizontal lines included are:
  • the interval L value can be set according to user needs, such as 1 cm;
  • Step 3 When the user slides on the touch screen, the trajectory shown in FIG. 4 appears. After the sliding trajectory appears at the intersection of the identifier 2 and the marker 3 with Y10, the trajectory continues to slide to appear the marker 4 and the marker 5; On the trajectory line, the logo 6 and the logo 7 appear.
  • Step 4 After detecting that no new intersection occurs for more than a predetermined length of time, determining a corresponding operation instruction according to the order and relative position of each intersection.
  • the intersections of the identifier 1, the identifier 2, the identifier 3, the identifier 4, the identifier 5, the identifier 6, and the identifier 7 appear successively.
  • the corresponding operation command is to close the current application software. Therefore, in the actual application, when the terminal detects the occurrence of the "S" track, Close the current application software, execute the close command, and pop up a small window to close the application command. After the user confirms, close it. Of course, you can also directly execute the close command without pop-up window.
  • the tubeizing operation it may be set as long as the identifier 1, the identifier 2, the marker 3 appear in sequence.
  • the identification 4, the identification 6 intersection point, or the identification 1, the identification 2, the identification 3, and the identification 7 intersection point may be determined to determine that the shutdown command needs to be executed.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • Step 1 Pre-set the correspondence between various touch trajectories and operation commands, for example: Touch track “ ⁇ ” track indicates fast backward, touch track “>” track indicates fast forward, touch track “S” means close current application software, Touching the track “Z” means that the phone goes directly to standby mode.
  • Step 2 When the user uses the smart terminal, if you want to let the terminal enter the standby mode, refer to Figure 5.
  • the initial point of the touch screen is the marker 1 and the coordinate is (0,0).
  • the X/Y coordinate is established with the marker 1 as the origin.
  • System construct a plurality of parallel lines at a certain distance from the X/Y axis, and the distance between adjacent parallel lines is L, so that a coordinate array similar to that shown in Fig. 5 can be drawn, and the horizontal lines included are: X10 /X00/X01/X02/X03, including the vertical line: Y30/Y20/Y10/Y00/Y01.
  • the spacing L value can be set according to user needs, such as 1 cm;
  • Step 3 When the user slides on the touch screen, the trajectory shown in FIG. 5 appears.
  • the trajectory appears at the intersection of the mark 2 and the mark 3 with Y01, the trajectory continues to slide and the intersection of the X01 appearance mark 4, and finally again The mark 5 appears in Y01.
  • Step 4 After detecting that no new intersection occurs for more than a predetermined length of time, determining a corresponding operation instruction according to the order and relative position of each intersection.
  • the intersections of the identifier 1, the logo 2, the logo 3, the logo 4, and the logo 5 appear one after another.
  • the corresponding operation command is to make the terminal in the standby mode. Therefore, in the actual application, when the terminal detects the occurrence of the "Z" track The terminal needs to be in the standby mode, and pops up a small window that causes the terminal to be in the standby mode. After the user confirms, the terminal is in the standby mode. Of course, the terminal may be in the standby mode without popping up the window.
  • an apparatus for detecting an operation command includes: a coordinate array establishing unit 11 configured to determine an initial point touched by a user on a touch screen, and use the initial point as a coordinate origin to establish a coordinate array.
  • the coordinate array includes an X-axis and a Y-axis, and at least two horizontal lines parallel to the X-axis, and at least two vertical lines parallel to the Y-axis;
  • the operation command determining unit 12 is configured to determine an operation command corresponding to the touch track by detecting an intersection of the touch track of the user on the touch screen and the coordinate array.
  • the operation command determining unit 12 is specifically configured to:
  • the corresponding operation command is determined according to the position of the intersection and the time when the intersection appears.
  • the operation command determining unit 12 is specifically configured to: when determining the corresponding operation command according to the position of the intersection and the time when the intersection occurs;
  • the order in which the intersections appear is determined according to the time when the intersection occurs;
  • the corresponding operation command is determined according to the position of the intersection and the order in which the intersection appears.
  • the preset spacing between each of two mutually parallel adjacent lines is equal.
  • the pitch is previously set in the operation command determining unit 12 by the user as needed.
  • the device further includes:
  • the operation command execution unit 13 is configured to execute the operation command after the operation command determining unit 12 determines an operation command corresponding to the touch track.
  • the device is a user device, such as a cell phone.
  • an initial point touched by a user on a touch screen is determined, and a coordinate array is established by using the point as a coordinate origin, wherein the coordinate array includes an X axis and a Y axis, and multiple and X axes Parallel horizontal lines, a plurality of vertical lines parallel to the Y axis, determining an operation command corresponding to the touch track by detecting an intersection of a touch track on the touch screen and the coordinate array, thereby detecting more accurately and quickly
  • the operation command issued by the touch screen the speed and accuracy of the execution of the operation command can be improved, and when the user operates the touch screen, the user can directly slide on the touch screen, thereby executing related operation commands, thereby providing a more convenient experience for the user.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.

Abstract

Disclosed are a method and device for detecting an operation command, which are used for more correctly and rapidly detecting an operation command sent through a touch screen, thereby improving the speed and correctness of executing the operation command. A method for detecting an operation command provided by the present invention comprises: determining an initial point touched by a user on a touch screen, and establishing a coordinate array by using the initial point as the origin of coordinates, the coordinate array comprising an X axis, a Y axis, and at least two horizontal lines parallel to the X axis, and at least two vertical lines parallel to the Y axis; and determining, by detecting an intersection of a touch track of the user on the touch screen and the coordinate array, an operation command corresponding to the touch track.

Description

一种操作命令的检测方法及装置 技术领域  Method and device for detecting operation command
本发明涉及通信技术领域, 尤其涉及一种操作命令的检测方法及装置。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for detecting an operation command. Background technique
目前, 随着触摸屏技术的普遍应用, 各种采用触摸屏的用户设备越来越 多, 其中, 最为广泛使用的是触摸屏智能手机。 用户对触摸屏的操作手势可 以概括为以下几种:  At present, with the universal application of touch screen technology, there are more and more user devices using touch screens, among which the most widely used touch screen smart phones. The user's gestures on the touch screen can be summarized as follows:
1、 采用轻点手势: 快速碰触触摸屏来启动应用程序或激活一个图像; 1. Use the tap gesture: Quickly touch the touch screen to launch the application or activate an image;
2、 双轻点手势: 连续快速轻点触摸屏两次以开启或关闭应用程序或文 档; 2. Double tap gesture: Tap the touch screen twice in quick succession to open or close the application or document;
3、 轻点滑动手势: 将手指放在触摸屏上并滑动, 以移动显示屏上的项 目或放大缩小页面、 地图和图片;  3. Tap the swipe gesture: Place your finger on the touch screen and slide to move the item on the display or zoom in or out on the page, map and picture;
4、 按压手势: 将手指放置在触摸屏上维持一段时间来开启文档, 启动 应用程序或其他功能;  4. Press the gesture: Place the finger on the touch screen for a period of time to open the document, launch the application or other functions;
5、 闪动手势: 快速在触摸屏上于上下左右方向移动手指以便卷动或滑 动一系列项目或页面;  5. Flashing gesture: Quickly move the finger in the up, down, left and right direction on the touch screen to scroll or slide a series of items or pages;
6、 缩放手势: 将两个手指放置在触摸屏上并让它们靠近或分开以放大 或缩小显示项目;  6, zoom gesture: Place two fingers on the touch screen and let them close or separate to enlarge or reduce the display item;
7、 转动手势: 将两个手指放置在触摸屏上以顺时钟或逆时钟方向旋动 来转动显示屏上的物体。  7. Turn gesture: Place two fingers on the touch screen to rotate the object on the display in a clockwise or counterclockwise direction.
用户启动某个程序或者在某个程序下执行其他操作时, 均采用点击屏幕 上相应应用软件的操作图标或操作按键, 或者通过手机本身的结构按键来操 作。 但是, 触摸屏在显示这些命令时都是比较小的按钮, 操作起来非常不方 便, 有时甚至会误点击命令而出现误操作, 当然直接操作按键这个方式也能 执行相应命令, 但这些都没有充分发挥出触摸屏的优势, 使用不是很方便。  When the user starts a program or performs other operations under a certain program, it is operated by clicking the operation icon or operation button of the corresponding application software on the screen, or by the structure button of the mobile phone itself. However, the touch screen is a relatively small button when displaying these commands. It is very inconvenient to operate, and sometimes even a mistake can be made by mistakenly clicking the command. Of course, the direct operation of the button can also execute the corresponding command, but these are not fully utilized. Out of the advantages of the touch screen, the use is not very convenient.
例如, 用户通过智能手机终端阅读电子书或者浏览网页时, 当已经阅读 了很多页后, 如果想返回到之前浏览过的页面时, 这时只能点击返回键一页 一页返回。 在智能手机上执行其他程序时, 也会遇到同样的问题, 必须找到 相应的设置菜单, 然后在设置菜单中点击相应的操作项, 才能执行相应的操 作。 For example, when a user reads an e-book or browses a webpage through a smartphone terminal, when he has read a lot of pages, if he wants to return to the previously viewed page, he can only return by clicking the return button one page at a time. When you execute other programs on your smartphone, you will also encounter the same problem, you must find Corresponding settings menu, then click the corresponding action item in the setup menu to perform the corresponding operation.
综上所述, 现有技术中由于触摸屏显示的操作命令的选择按鈕都是比较 小的按鈕, 操作起来非常不方便, 有时甚至会误点击命令而出现误操作。 发明内容  In summary, in the prior art, since the selection buttons of the operation commands displayed on the touch screen are relatively small buttons, the operation is very inconvenient, and sometimes the operation may be mistakenly clicked. Summary of the invention
本发明实施例提供了一种操作命令的检测方法及装置, 用以更加准确、 快速地检测通过触摸屏发出的操作命令, 从而可以提高操作命令的执行的速 度和准确性。  The embodiment of the invention provides a method and a device for detecting an operation command, which are used to detect an operation command sent through the touch screen more accurately and quickly, so that the speed and accuracy of the execution of the operation command can be improved.
本发明实施例提供的一种操作命令的检测方法包括:  A method for detecting an operation command provided by an embodiment of the present invention includes:
确定用户在触摸屏上触摸的初始点, 并以该初始点为坐标原点, 建立坐 标阵列, 所述坐标阵列包括 X轴和 Y轴, 以及由至少两条与 X轴平行的横 线, 至少两条与 Y轴平行的纵线;  Determining an initial point touched by the user on the touch screen, and using the initial point as a coordinate origin, establishing a coordinate array, the coordinate array including an X axis and a Y axis, and at least two horizontal lines parallel to the X axis, at least two a vertical line parallel to the Y axis;
通过检测用户在触摸屏上的触摸轨迹与所述坐标阵列的交叉点, 确定所 述触摸轨迹对应的操作命令。  An operation command corresponding to the touch track is determined by detecting an intersection of a touch trajectory of the user on the touch screen with the coordinate array.
本发明实施例提供的一种操作命令的检测装置包括:  An apparatus for detecting an operation command according to an embodiment of the present invention includes:
坐标阵列建立单元, 用于确定用户在触摸屏上触摸的初始点, 并以该初 始点为坐标原点, 建立坐标阵列, 所述坐标阵列包括 X轴和 Y轴, 以及由 至少两条与 X轴平行的横线, 至少两条与 Y轴平行的纵线;  a coordinate array establishing unit, configured to determine an initial point touched by the user on the touch screen, and establish an coordinate array by using the initial point as a coordinate origin, wherein the coordinate array includes an X axis and a Y axis, and at least two are parallel to the X axis a horizontal line, at least two vertical lines parallel to the Y axis;
操作命令确定单元, 用于通过检测用户在触摸屏上的触摸轨迹与所述坐 标阵列的交叉点, 确定所述触摸轨迹对应的操作命令。  And an operation command determining unit, configured to determine an operation command corresponding to the touch track by detecting an intersection of a touch track of the user on the touch screen and the coordinate array.
本发明实施例, 确定用户在触摸屏上触摸的初始点, 并以该初始点为坐 标原点, 建立坐标阵列, 所述坐标阵列包括 X轴和 Y轴, 以及由至少两条 与 X轴平行的横线, 至少两条与 Y轴平行的纵线, 通过检测用户在触摸屏 上的触摸轨迹与所述坐标阵列的交叉点, 确定所述触摸轨迹对应的操作命 令, 从而更加准确、 快速地检测通过触摸屏发出的操作命令, 进而可以提高 操作命令的执行的速度和准确性, 用户在操作触摸屏时, 能直接在触摸屏上 进行滑动, 进而执行相关的操作命令, 给用户带来更加便捷的体验效果。 附图说明 图 1为本发明实施例提供的一种操作命令的检测方法的流程示意图; 图 2为本发明实施例提供的实施例一中的用户在触摸屏上的触摸轨迹与 坐标阵列的交叉点示意图; In the embodiment of the present invention, an initial point touched by the user on the touch screen is determined, and the coordinate point is established by using the initial point as a coordinate origin, the coordinate array includes an X axis and a Y axis, and at least two horizontal lines parallel to the X axis a line, at least two vertical lines parallel to the Y axis, determining an operation command corresponding to the touch track by detecting an intersection of a touch track of the user on the touch screen and the coordinate array, thereby detecting the touch screen through the touch screen more accurately and quickly The issued operation command can further improve the speed and accuracy of the execution of the operation command. When the user operates the touch screen, the user can directly slide on the touch screen to execute related operation commands, thereby providing a more convenient experience for the user. DRAWINGS 1 is a schematic flowchart of a method for detecting an operation command according to an embodiment of the present invention; FIG. 2 is a schematic diagram of an intersection of a touch track and a coordinate array of a user on a touch screen according to Embodiment 1 of the present invention;
图 3为本发明实施例提供的实施例二中的用户在触摸屏上的触摸轨迹与 坐标阵列的交叉点示意图;  FIG. 3 is a schematic diagram of an intersection of a touch track and a coordinate array of a user on a touch screen according to Embodiment 2 of the embodiment of the present disclosure;
图 4为本发明实施例提供的实施例三中的用户在触摸屏上的触摸轨迹与 坐标阵列的交叉点示意图;  4 is a schematic diagram of an intersection of a touch trajectory of a user on a touch screen and a coordinate array in Embodiment 3 according to an embodiment of the present disclosure;
图 5为本发明实施例提供的实施例四中的用户在触摸屏上的触摸轨迹与 坐标阵列的交叉点示意图;  5 is a schematic diagram of an intersection of a touch track and a coordinate array of a user on a touch screen in Embodiment 4 according to an embodiment of the present invention;
图 6为本发明实施例提供的一种操作命令的检测装置的结构示意图。 具体实施方式  FIG. 6 is a schematic structural diagram of an apparatus for detecting an operation command according to an embodiment of the present invention. detailed description
本发明实施例提供了一种操作命令的检测方法及装置, 用以更加准确、 快速地检测通过触摸屏发出的操作命令, 从而可以提高操作命令的执行的速 度和准确性。  The embodiment of the invention provides a method and a device for detecting an operation command, which are used to detect an operation command sent through the touch screen more accurately and quickly, so that the speed and accuracy of the execution of the operation command can be improved.
通过本发明实施例提供的技术方案, 使得当用户操作触摸屏时, 可以实 现直接在触摸屏上进行滑动, 就能执行相关的操作命令。 例如, 用户在使用 手机阅读电子书籍的过程中, 当用户在触摸屏上滑动出类似 "<" 的轨迹时 就表示快速后退, ">" 轨迹时表示快速前进, "S" 的轨迹就表示关闭当 前应用软件, "Z" 的轨迹就表示手机直接进入待机模式等等, 从而大大方 便了用户操作, 给用户带来更加便捷的体验效果。  According to the technical solution provided by the embodiment of the present invention, when the user operates the touch screen, the sliding can be performed directly on the touch screen, and the related operation command can be executed. For example, when a user reads an e-book using a mobile phone, when the user slides a track like "<" on the touch screen, it means that the track is fast backward, ">" when the track indicates fast forward, and the track of "S" means that the current track is closed. The application software, the track of "Z" means that the mobile phone directly enters the standby mode and the like, thereby greatly facilitating the user's operation and bringing a more convenient experience to the user.
下面结合附图对本发明实施例提供的技术方案进行说明。  The technical solutions provided by the embodiments of the present invention are described below with reference to the accompanying drawings.
参见图 1 , 本发明实施例提供的一种操作命令的检测方法, 包括步骤: Referring to FIG. 1 , a method for detecting an operation command according to an embodiment of the present invention includes the following steps:
5101、 确定用户在触摸屏上触摸的初始点, 并以该初始点为坐标原点, 建立坐标阵列, 该坐标阵列包括 X轴和 Y轴, 以及由至少两条与 X轴平行 的横线, 至少两条与 Y轴平行的纵线; 5101. Determine an initial point touched by the user on the touch screen, and use the initial point as a coordinate origin to establish a coordinate array, where the coordinate array includes an X axis and a Y axis, and at least two horizontal lines parallel to the X axis, at least two a vertical line parallel to the Y axis;
5102、 通过检测用户在触摸屏上的触摸轨迹与坐标阵列的交叉点, 确定 触摸轨迹对应的操作命令。  5102. Determine an operation command corresponding to the touch track by detecting an intersection of the touch track of the user on the touch screen and the coordinate array.
较佳地, 通过检测用户在触摸屏上的触摸轨迹与坐标阵列的交叉点, 确 定触摸轨迹对应的操作命令, 包括: 确定用户在触摸屏上的触摸轨迹与所述 坐标阵列的交叉点的位置, 以及交叉点出现的时间; 根据交叉点的位置, 以 及交叉点出现的的时间, 确定对应的操作命令。 Preferably, determining an operation command corresponding to the touch track by detecting a intersection of the touch track on the touch screen with the coordinate array, the method comprising: determining a touch track of the user on the touch screen and the The position of the intersection of the coordinate array and the time at which the intersection occurs; the corresponding operation command is determined based on the position of the intersection and the time at which the intersection occurs.
较佳地, 根据交叉点的位置, 以及交叉点出现的的时间, 确定对应的操 作命令, 包括: 当超过预设时长所述触摸屏上没有出现新的交叉点时, 根据 交叉点出现的的时间, 确定交叉点出现的顺序; 根据交叉点的位置, 以及交 叉点出现的的顺序, 确定对应的操作命令。  Preferably, determining the corresponding operation command according to the position of the intersection and the time when the intersection occurs, including: when the new intersection is not present on the touch screen over the preset duration, according to the time of the intersection , determine the order in which the intersections appear; determine the corresponding operation commands based on the position of the intersections and the order in which the intersections appear.
其中, 交叉点的位置, 可以是交叉点的坐标, 也可以是交叉点的相对位 置。  The position of the intersection may be the coordinates of the intersection or the relative position of the intersection.
用户在触摸屏上的触摸轨迹与坐标阵列的交叉点, 可以包括用户在触摸 屏上的触摸轨迹与坐标阵列的部分交叉点, 也可以包括用户在触摸屏上的触 摸轨迹与坐标阵列的全部交叉点。  The intersection of the touch trajectory of the user on the touch screen and the coordinate array may include a partial intersection of the touch trajectory of the user on the touch screen with the coordinate array, and may also include all intersections of the user's touch trajectory on the touch screen and the coordinate array.
较佳地, 坐标阵列中, 每两条相互平行的相邻的线 (包括横线和纵线) 之间的间距相等。  Preferably, in the coordinate array, the spacing between each of two mutually adjacent adjacent lines (including the horizontal and vertical lines) is equal.
较佳地, 该间距是预先由用户根据需要设置在用户设备中的, 即可以由 用户设置; 该间距也可以是预先由生产商固定设置在用户设备中, 用户无法 改变。  Preferably, the spacing is preset in the user equipment according to the needs of the user, that is, may be set by the user; the spacing may also be fixedly set in the user equipment by the manufacturer in advance, and the user cannot change.
较佳地, 该方法还包括: 在确定触摸轨迹对应的操作命令后, 执行该操 作命令。  Preferably, the method further comprises: executing the operation command after determining an operation command corresponding to the touch track.
下面给出两个具体实施例的说明。  A description of two specific embodiments is given below.
实施例一:  Embodiment 1:
参见图 2 , 本发明实施例提供的技术方案具体包括:  Referring to FIG. 2, the technical solution provided by the embodiment of the present invention specifically includes:
步骤一、 用户点击触摸屏的初始点为标识 1 , 坐标为 (0,0 ) , 以该标识 1作为原点建立 X/Y坐标系, 按距离 X/Y轴一定距离构造多条平行线, 相临 平行的各条线之间距离都为 L, 这样就可以画出类似图 2的坐标阵列, 其中 包 括 的 横 线 有 : X10/X00/X01/X02/X03 , 包 括 的 纵 线 有 : Y30/Y20/Y10/Y00/Y01。  Step 1. The initial point of the user clicking the touch screen is the identifier 1 and the coordinate is (0,0). The X/Y coordinate system is established with the marker 1 as the origin, and a plurality of parallel lines are constructed according to a certain distance from the X/Y axis. The distance between the parallel lines is L, so that you can draw a coordinate array similar to Figure 2, including the horizontal lines: X10/X00/X01/X02/X03, including the vertical lines: Y30/Y20 /Y10/Y00/Y01.
其中, 间距 L值可以根据用户需要进行设置, 例如 1厘米。  Among them, the spacing L value can be set according to user needs, for example, 1 cm.
步骤二、 用户在触摸屏上进行滑动时, 出现如图 2所示的触摸轨迹, 这 时可以看到除初始点标识 1以外, 滑动轨迹与 Y10按顺序会有标识 2、 标识 3两个交叉点, 与 Υ00有标识 4交叉点; 具体的, 终端从初始点标识 1点开始, 先后检测到出现了标识 2、 标识 作命令为执行当前屏幕的页面往左快进, 也就是快速后退。 Step 2: When the user slides on the touch screen, the touch track shown in FIG. 2 appears. At this time, it can be seen that the sliding track and the Y10 have two intersections of the mark 2 and the mark 3 in addition to the initial point mark 1. , with Υ00 has a mark 4 intersection; Specifically, the terminal starts from the initial point identification point 1 and detects that the identifier 2 is generated, and the command is used to execute the current screen to fast forward to the left, that is, fast backward.
进一步, 为了筒化操作, 甚至可以设定只要先后出现标识 1、 标识 2、 标识 3交叉点也可以确定对应的操作命令为执行当前屏幕的页面往左快进。  Further, in order to perform the binning operation, it may even be set that the corresponding operation command is to advance to the left of the page for executing the current screen as long as the identification 1, the identification 2, and the identification 3 intersection point appear successively.
较佳的, 上述 4个标识出现的顺序可以有多种, 每种对应的操作命令都 为执行当前屏幕的页面往左快进,例如, 当依次出现标识 4、标识 3、标识 2、 标识 1 , 或者依次出现标识 2、 标识 1、 标识 3、 标识 4时, 对应的操作命令 都为执行当前屏幕的页面往左快进。  Preferably, the above four identifiers may be in multiple sequences, and each corresponding operation command is fast forward to the left page of the page for executing the current screen, for example, when the identifier 4, the identifier 3, the identifier 2, and the identifier 1 appear in sequence. , or when the ID 2, ID 1, ID 3, and ID 4 appear in sequence, the corresponding operation commands are fast forward to the left of the page for executing the current screen.
步骤三、 检测到未有新的交叉点出现的时间超过预设的时间长度后, 根 据各个交叉点出现的顺序和相对位置, 确定出对应的操作指令。  Step 3: After detecting that no new intersection occurs for more than the preset time length, the corresponding operation instruction is determined according to the order and relative position of each intersection.
实施例二:  Embodiment 2:
同理, 如果滑动轨迹是反方向的, 即: 从 Y00开始, 滑动轨迹先与 Y01 交叉后, 又返回重新与 Y01交叉, 这时可以确定当前屏幕的页面往右快进, 也就是快速前进, 具体方案包括:  Similarly, if the sliding track is in the opposite direction, that is: starting from Y00, the sliding track first crosses Y01, and then returns to cross with Y01 again. At this time, it can be determined that the current screen is fast-forwarding to the right, that is, fast forward. Specific solutions include:
步骤一、 用户点击触摸屏的初始点为标识 1 , 坐标为 (0,0 ) , 以该标识 1作为原点建立 X/Y坐标系, 按距离 X/Y轴一定距离构造多条平行线, 相临 平行的各条线之间距离都为 L, 这样就可以画出类似图 3的坐标阵列, 其中 包 括 的 横 线 有 : X10/X00/X01/X02/X03 , 包 括 的 纵 线 有 : Y30/Y20/Y10/Y00/Y01。  Step 1. The initial point of the user clicking the touch screen is the identifier 1 and the coordinate is (0,0). The X/Y coordinate system is established with the marker 1 as the origin, and a plurality of parallel lines are constructed according to a certain distance from the X/Y axis. The distance between the parallel lines is L, so that you can draw a coordinate array similar to Figure 3, including the horizontal lines: X10/X00/X01/X02/X03, including the vertical lines: Y30/Y20 /Y10/Y00/Y01.
其中, 间距 L值可以根据用户需要进行设置, 例如 1厘米。  Among them, the spacing L value can be set according to user needs, for example, 1 cm.
步骤二、 用户在触摸屏上进行滑动时, 出现如图 3所示的触摸轨迹, 这 时可以看到除初始点标识 1以外, 滑动轨迹与 Y01按顺序会有标识 2、 标识 3两个交叉点;  Step 2: When the user slides on the touch screen, the touch track shown in FIG. 3 appears. At this time, it can be seen that the sliding track and the Y01 have two intersections of the mark 2 and the mark 3 in order except the initial point mark 1. ;
具体的, 终端从初始点标识 1点开始, 先后检测到出现了标识 2、 标识 执行当前屏幕的页面往右快进, 也就是快速前进。  Specifically, the terminal starts from the initial point identification point 1 and detects that the identifier appears. 2. The logo executes the current screen to fast forward to the right, that is, fast forward.
较佳的, 上述 3个标识出现的顺序可以有多种, 每种对应的操作命令都 为执行当前屏幕的页面往左快进, 例如, 当依次出现标识 3、 标识 2、 标识 1 时, 对应的操作命令都为执行当前屏幕的页面往右快进。 步骤三、 检测到未有新的交叉点出现的时间超过预设的时间长度后, 根 据各个交叉点出现的顺序和相对位置, 确定出对应的操作指令, 并执行该操 作命令。 Preferably, the above three identifiers may be in multiple sequences, and each corresponding operation command is fast forward to the left of the page for executing the current screen. For example, when the identifier 3, the identifier 2, and the identifier 1 appear in sequence, corresponding The operation commands are fast forward to the right for the page that executes the current screen. Step 3: After detecting that no new intersection occurs for more than a preset length of time, determine a corresponding operation instruction according to the order and relative position of each intersection, and execute the operation command.
综上,在执行快速后退、快速前进命令时,如果之前或后续有很多页面, 这时可以弹出新的窗口来, 提示后退或前进到的页面来, 以便用户操作。 如 果页面很多, 也可以弹出后退或前进的百分比, 方便用户操作。 当然还可以 弹出前进或后退的页面缩略图, 以便用户能更好的分辨出相应的页面来。  In summary, when executing the fast back and fast forward commands, if there are many pages before or after, a new window may pop up, prompting the back or forward to the page for the user to operate. If there are a lot of pages, you can also pop back the percentage of back or forward, which is convenient for users to operate. Of course, you can also pop up the page thumbnails of the forward or backward, so that the user can better distinguish the corresponding page.
实施例三:  Embodiment 3:
参见图 4, 本发明实施例提供的技术方案具体包括:  Referring to FIG. 4, the technical solution provided by the embodiment of the present invention specifically includes:
步骤一、 预先设定各种触摸轨迹与操作命令的对应关系, 例如: 触摸轨 迹 "<"轨迹表示快速后退,触摸轨迹 ">"轨迹表示快速前进, 触摸轨迹 "S" 表示关闭当前应用软件, 触摸轨迹 "Z" 表示手机直接进入待机模式等。  Step 1: Pre-set the correspondence between various touch trajectories and operation commands, for example: Touch track "<" track indicates fast backward, touch track ">" track indicates fast forward, touch track "S" means close current application software, Touching the track "Z" means that the phone goes directly to standby mode.
步骤二、 用户使用智能终端阅读电子杂志时, 若希望向前, 则点击触摸 屏的初始点为标识 1 , 坐标为( 0,0 ) , 以该标识 1作为原点建立 X/Y坐标系, 按距离 X/Y轴一定距离构造多条平行线, 相邻的平行线之间距离都为 L, 这 样就可以画出类似图 4 所示的坐标阵列, 其中包括的横线有: Step 2: When the user uses the smart terminal to read the electronic magazine, if he wants to move forward, click the initial point of the touch screen as the marker 1 and the coordinate is (0,0), and establish the X/Y coordinate system with the marker 1 as the origin, according to the distance. The X/Y axis constructs a plurality of parallel lines at a certain distance, and the distance between adjacent parallel lines is L, so that a coordinate array similar to that shown in Fig. 4 can be drawn, and the horizontal lines included are:
X10/X00/X01/X02/X03 , 包括的纵线有: Y30/Y20/Y10/Y00/Y01。 其中, 间 距 L值可以根据用户需要进行设置, 比如 1厘米; X10/X00/X01/X02/X03, including the vertical line: Y30/Y20/Y10/Y00/Y01. Wherein, the interval L value can be set according to user needs, such as 1 cm;
步骤三、 用户在触摸屏上进行滑动时, 出现图 4所示的轨迹, 当滑动轨 迹在与 Y10先后出现标识 2、 标识 3交叉点后, 轨迹继续滑动出现标识 4、 标识 5; 再继续返回的轨迹线上, 出现标识 6和标识 7。  Step 3: When the user slides on the touch screen, the trajectory shown in FIG. 4 appears. After the sliding trajectory appears at the intersection of the identifier 2 and the marker 3 with Y10, the trajectory continues to slide to appear the marker 4 and the marker 5; On the trajectory line, the logo 6 and the logo 7 appear.
步骤四、 检测到未有新的交叉点出现的时间超过预定的时间长度后, 根 据各个交叉点出现的顺序和相对位置, 确定出对应的操作指令。  Step 4: After detecting that no new intersection occurs for more than a predetermined length of time, determining a corresponding operation instruction according to the order and relative position of each intersection.
综合上述的步骤, 先后出现了标识 1、 标识 2、 标识 3、 标识 4、 标识 5、 标识 6、标识 7交叉点。预先设定当触摸屏上按照该顺序出现上述交叉点时, 即出现 "S" 触摸轨迹时, 对应的操作命令为关闭当前应用软件, 因此, 实 际应用中, 当终端检测出现 "S" 轨迹时, 关闭当前应用软件, 执行关闭命 令, 弹出关闭应用命令的小窗口, 由用户确认后进行关闭, 当然, 也可以不 弹出窗口直接执行关闭命令。  Based on the above steps, the intersections of the identifier 1, the identifier 2, the identifier 3, the identifier 4, the identifier 5, the identifier 6, and the identifier 7 appear successively. Presetting When the above-mentioned intersection point appears in the order on the touch screen, when the "S" touch track appears, the corresponding operation command is to close the current application software. Therefore, in the actual application, when the terminal detects the occurrence of the "S" track, Close the current application software, execute the close command, and pop up a small window to close the application command. After the user confirms, close it. Of course, you can also directly execute the close command without pop-up window.
较佳的, 为了筒化操作,可以设定只要依次出现标识 1、标识 2、标识 3、 标识 4、 标识 6交叉点, 或者依次出现标识 1、 标识 2、 标识 3、 标识 7交叉 点就可以判断为需要执行上述关闭命令。 Preferably, for the tubeizing operation, it may be set as long as the identifier 1, the identifier 2, the marker 3 appear in sequence. The identification 4, the identification 6 intersection point, or the identification 1, the identification 2, the identification 3, and the identification 7 intersection point may be determined to determine that the shutdown command needs to be executed.
实施例四:  Embodiment 4:
同理, 触摸轨迹为 "Z" 时, 对应另一预设的操作命令, 比如手机直接 进入待机、 解锁等, 具体方案包括:  Similarly, when the touch track is "Z", it corresponds to another preset operation command, such as the mobile phone directly enters standby, unlock, etc., and the specific solutions include:
步骤一、 预先设定各种触摸轨迹与操作命令的对应关系, 例如: 触摸轨 迹 "<"轨迹表示快速后退,触摸轨迹 ">"轨迹表示快速前进, 触摸轨迹 "S" 表示关闭当前应用软件, 触摸轨迹 "Z" 表示手机直接进入待机模式等。  Step 1: Pre-set the correspondence between various touch trajectories and operation commands, for example: Touch track "<" track indicates fast backward, touch track ">" track indicates fast forward, touch track "S" means close current application software, Touching the track "Z" means that the phone goes directly to standby mode.
步骤二、 用户使用智能终端时, 若希望让终端进入待机模式, 则参见图 5 , 点击触摸屏的初始点为标识 1 , 坐标为 (0,0 ) , 以该标识 1作为原点建 立 X/Y坐标系, 按距离 X/Y轴一定距离构造多条平行线, 相邻的平行线之 间距离都为 L, 这样就可以画出类似图 5所示的坐标阵列, 其中包括的横线 有: X10/X00/X01/X02/X03 , 包括的纵线有: Y30/Y20/Y10/Y00/Y01。 其中, 间距 L值可以根据用户需要进行设置, 比如 1厘米;  Step 2: When the user uses the smart terminal, if you want to let the terminal enter the standby mode, refer to Figure 5. The initial point of the touch screen is the marker 1 and the coordinate is (0,0). The X/Y coordinate is established with the marker 1 as the origin. System, construct a plurality of parallel lines at a certain distance from the X/Y axis, and the distance between adjacent parallel lines is L, so that a coordinate array similar to that shown in Fig. 5 can be drawn, and the horizontal lines included are: X10 /X00/X01/X02/X03, including the vertical line: Y30/Y20/Y10/Y00/Y01. Wherein, the spacing L value can be set according to user needs, such as 1 cm;
步骤三、 用户在触摸屏上进行滑动时, 出现图 5所示的轨迹, 当滑动轨 迹在与 Y01先后出现标识 2、 标识 3交叉点后, 轨迹继续滑动与 X01出现标 识 4交叉点, 最后再次与 Y01先后出现标识 5。  Step 3: When the user slides on the touch screen, the trajectory shown in FIG. 5 appears. When the sliding trajectory appears at the intersection of the mark 2 and the mark 3 with Y01, the trajectory continues to slide and the intersection of the X01 appearance mark 4, and finally again The mark 5 appears in Y01.
步骤四、 检测到未有新的交叉点出现的时间超过预定的时间长度后, 根 据各个交叉点出现的顺序和相对位置, 确定出对应的操作指令。  Step 4: After detecting that no new intersection occurs for more than a predetermined length of time, determining a corresponding operation instruction according to the order and relative position of each intersection.
综合上述的步骤, 先后出现了标识 1、 标识 2、 标识 3、 标识 4、 标识 5 交叉点。 预先设定当触摸屏上按照该顺序出现上述交叉点时, 即出现 "Z" 触摸轨迹时, 对应的操作命令为令终端处于待机模式, 因此, 实际应用中, 当终端检测出现 "Z" 轨迹时, 需要令终端处于待机模式, 弹出是否令终端 处于待机模式的小窗口, 由用户确认后令终端处于待机模式, 当然, 也可以 不弹出窗口直接令终端处于待机模式。  In the above steps, the intersections of the identifier 1, the logo 2, the logo 3, the logo 4, and the logo 5 appear one after another. Pre-set When the above-mentioned intersection point appears in the order on the touch screen, when the "Z" touch track appears, the corresponding operation command is to make the terminal in the standby mode. Therefore, in the actual application, when the terminal detects the occurrence of the "Z" track The terminal needs to be in the standby mode, and pops up a small window that causes the terminal to be in the standby mode. After the user confirms, the terminal is in the standby mode. Of course, the terminal may be in the standby mode without popping up the window.
上述四个实施例中, 由于只是检测触摸轨迹与坐标阵列的先后出现的交 叉点, 若用户在滑动时出现不规则图形, 比如预先设置触摸轨迹 "<" 对应 的操作命令为快速后退, 但当出现触摸轨迹 "C" 、 、 " (,, 等时, 只要根据各个交叉点位置和出现顺序能够确定对应的操作命令为快速后退, 就都可以按快速后退的命令来执行。 参见图 6, 本发明实施例提供的一种操作命令的检测装置, 包括: 坐标阵列建立单元 11 , 用于确定用户在触摸屏上触摸的初始点, 并以该 初始点为坐标原点, 建立坐标阵列, 所述坐标阵列包括 X轴和 Y轴, 以及 由至少两条与 X轴平行的横线, 至少两条与 Y轴平行的纵线; In the above four embodiments, since only the intersection of the touch trajectory and the coordinate array is detected, if the user has an irregular pattern when sliding, for example, the operation command corresponding to the touch trajectory "<" is set to be fast backward, but when When the touch tracks "C", ", (,, etc.) appear, it can be determined that the corresponding operation command is a fast back according to the position and appearance order of each intersection, and the command can be executed by the fast back command. Referring to FIG. 6, an apparatus for detecting an operation command according to an embodiment of the present invention includes: a coordinate array establishing unit 11 configured to determine an initial point touched by a user on a touch screen, and use the initial point as a coordinate origin to establish a coordinate array. The coordinate array includes an X-axis and a Y-axis, and at least two horizontal lines parallel to the X-axis, and at least two vertical lines parallel to the Y-axis;
操作命令确定单元 12,用于通过检测用户在触摸屏上的触摸轨迹与坐标 阵列的交叉点, 确定触摸轨迹对应的操作命令。  The operation command determining unit 12 is configured to determine an operation command corresponding to the touch track by detecting an intersection of the touch track of the user on the touch screen and the coordinate array.
较佳地, 所述操作命令确定单元 12具体用于:  Preferably, the operation command determining unit 12 is specifically configured to:
确定用户在触摸屏上的触摸轨迹与坐标阵列的交叉点的位置, 以及交叉 点出现的时间;  Determining the position of the intersection of the user's touch track on the touch screen with the coordinate array, and the time at which the intersection occurs;
根据交叉点的位置, 以及交叉点出现的的时间, 确定对应的操作命令。 较佳地, 所述操作命令确定单元 12根据交叉点的位置, 以及交叉点出 现的的时间, 确定对应的操作命令时, 具体用于:  The corresponding operation command is determined according to the position of the intersection and the time when the intersection appears. Preferably, the operation command determining unit 12 is specifically configured to: when determining the corresponding operation command according to the position of the intersection and the time when the intersection occurs;
当超过预设时长触摸屏上没有出现新的交叉点时, 根据交叉点出现的的 时间, 确定交叉点出现的顺序;  When there is no new intersection on the touch screen beyond the preset duration, the order in which the intersections appear is determined according to the time when the intersection occurs;
根据交叉点的位置, 以及交叉点出现的的顺序, 确定对应的操作命令。 较佳地, 该坐标阵列中, 每两条相互平行的相邻的线之间的预置间距相 等。  The corresponding operation command is determined according to the position of the intersection and the order in which the intersection appears. Preferably, in the coordinate array, the preset spacing between each of two mutually parallel adjacent lines is equal.
较佳地,该间距是预先由用户根据需要设置在所述操作命令确定单元 12 中的。  Preferably, the pitch is previously set in the operation command determining unit 12 by the user as needed.
较佳地, 所述装置还包括:  Preferably, the device further includes:
操作命令执行单元 13 , 用于在所述操作命令确定单元 12确定触摸轨迹 对应的操作命令后, 执行该操作命令。  The operation command execution unit 13 is configured to execute the operation command after the operation command determining unit 12 determines an operation command corresponding to the touch track.
较佳地, 该装置为用户设备, 例如手机。  Preferably, the device is a user device, such as a cell phone.
综上所述, 本发明实施例, 确定用户在触摸屏上触摸的初始点, 并以该 点为坐标原点, 建立坐标阵列, 所述坐标阵列包括 X轴和 Y轴, 以及由多 条与 X轴平行的横线, 多条与 Y轴平行的纵线, 通过检测用户在触摸屏上 的触摸轨迹与所述坐标阵列的交叉点, 确定所述触摸轨迹对应的操作命令, 从而更加准确、 快速地检测通过触摸屏发出的操作命令, 进而可以提高操作 命令的执行的速度和准确性, 用户在操作触摸屏时, 能直接在触摸屏上进行 滑动, 进而执行相关的操作命令, 给用户带来更加便捷的体验效果。 本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或 计算机程序产品。 因此, 本发明可采用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可采用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等)上实施的计算机程序产品的形式。 In summary, in the embodiment of the present invention, an initial point touched by a user on a touch screen is determined, and a coordinate array is established by using the point as a coordinate origin, wherein the coordinate array includes an X axis and a Y axis, and multiple and X axes Parallel horizontal lines, a plurality of vertical lines parallel to the Y axis, determining an operation command corresponding to the touch track by detecting an intersection of a touch track on the touch screen and the coordinate array, thereby detecting more accurately and quickly Through the operation command issued by the touch screen, the speed and accuracy of the execution of the operation command can be improved, and when the user operates the touch screen, the user can directly slide on the touch screen, thereby executing related operation commands, thereby providing a more convenient experience for the user. . Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
本发明是参照根据本发明实施例的方法、 设备(系统) 、 和计算机程序 产品的流程图和 /或方框图来描述的。应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中的流 程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算 机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使 得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实 现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定 的功能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of processes and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存储 器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个流程 或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现 的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程 图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 步骤。 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of the inventions

Claims

权利要求 Rights request
1、 一种操作命令的检测方法, 其特征在于, 该方法包括: 1. A method for detecting operation commands, characterized in that the method includes:
确定用户在触摸屏上触摸的初始点, 并以该初始点为坐标原点, 建立坐 标阵列, 所述坐标阵列包括 X轴和 Y轴, 以及由至少两条与 X轴平行的横 线, 至少两条与 Y轴平行的纵线; Determine the initial point touched by the user on the touch screen, and use the initial point as the origin of the coordinates to establish a coordinate array. The coordinate array includes an X-axis and a Y-axis, and at least two horizontal lines parallel to the X-axis. A vertical line parallel to the Y-axis;
通过检测用户在触摸屏上的触摸轨迹与所述坐标阵列的交叉点, 确定所 述触摸轨迹对应的操作命令。 By detecting the intersection point of the user's touch trajectory on the touch screen and the coordinate array, the operation command corresponding to the touch trajectory is determined.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述通过检测用户在触 摸屏上的触摸轨迹与所述坐标阵列的交叉点, 确定所述触摸轨迹对应的操作 命令, 包括: 2. The method according to claim 1, characterized in that, by detecting the intersection point of the user's touch trajectory on the touch screen and the coordinate array, determining the operation command corresponding to the touch trajectory includes:
确定用户在触摸屏上的触摸轨迹与所述坐标阵列的交叉点的位置, 以及 交叉点出现的时间; Determine the position of the intersection between the user's touch trajectory on the touch screen and the coordinate array, and the time when the intersection occurs;
根据交叉点的位置, 以及交叉点出现的的时间, 确定对应的操作命令。 According to the location of the intersection and the time when the intersection occurs, the corresponding operation command is determined.
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据交叉点的位置, 以及交叉点出现的的时间, 确定对应的操作命令, 包括: 3. The method according to claim 2, wherein determining the corresponding operation command according to the location of the intersection and the time when the intersection occurs includes:
当超过预设时长所述触摸屏上没有出现新的交叉点时, 根据交叉点出现 的的时间, 确定交叉点出现的顺序; When no new intersection points appear on the touch screen for more than the preset time period, the order in which the intersection points appear is determined based on the time when the intersection points appear;
根据交叉点的位置, 以及交叉点出现的的顺序, 确定对应的操作命令。 According to the location of the intersection and the order in which the intersection appears, the corresponding operation command is determined.
4、根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述坐标阵列中, 每两条相互平行的相邻的线之间的预置间距相等。 4. The method according to claim 1, 2 or 3, characterized in that, in the coordinate array, the preset spacing between every two mutually parallel adjacent lines is equal.
5、 根据权利要求 1所述的方法, 其特征在于, 该方法还包括: 在确定所述触摸轨迹对应的操作命令后, 执行该操作命令。 5. The method according to claim 1, further comprising: after determining the operation command corresponding to the touch track, executing the operation command.
6、 一种操作命令的检测装置, 其特征在于, 该装置包括: 6. An operation command detection device, characterized in that the device includes:
坐标阵列建立单元, 用于确定用户在触摸屏上触摸的初始点, 并以该初 始点为坐标原点, 建立坐标阵列, 所述坐标阵列包括 X轴和 Y轴, 以及由 至少两条与 X轴平行的横线, 至少两条与 Y轴平行的纵线; The coordinate array establishment unit is used to determine the initial point touched by the user on the touch screen, and use the initial point as the origin of the coordinates to establish a coordinate array. The coordinate array includes an X axis and a Y axis, and consists of at least two lines parallel to the X axis. horizontal lines and at least two vertical lines parallel to the Y-axis;
操作命令确定单元, 用于通过检测用户在触摸屏上的触摸轨迹与所述坐 标阵列的交叉点, 确定所述触摸轨迹对应的操作命令。 An operation command determination unit is configured to determine the operation command corresponding to the touch trajectory by detecting the intersection point of the user's touch trajectory on the touch screen and the coordinate array.
7、 根据权利要求 6所述的装置, 其特征在于, 所述操作命令确定单元 具体用于: 确定用户在触摸屏上的触摸轨迹与所述坐标阵列的交叉点的位置, 以及 交叉点出现的时间; 7. The device according to claim 6, characterized in that the operation command determining unit is specifically used to: Determine the position of the intersection between the user's touch trajectory on the touch screen and the coordinate array, and the time when the intersection occurs;
根据交叉点的位置, 以及交叉点出现的的时间, 确定对应的操作命令。 According to the location of the intersection and the time when the intersection occurs, the corresponding operation command is determined.
8、 根据权利要求 7所述的装置, 其特征在于, 所述操作命令确定单元 根据交叉点的位置, 以及交叉点出现的的时间, 确定对应的操作命令时, 具 体用于: 8. The device according to claim 7, wherein the operation command determination unit is specifically used to determine the corresponding operation command based on the location of the intersection and the time when the intersection occurs:
当超过预设时长所述触摸屏上没有出现新的交叉点时, 根据交叉点出现 的的时间, 确定交叉点出现的顺序; When no new intersection points appear on the touch screen for more than the preset time period, the order in which the intersection points appear is determined based on the time when the intersection points appear;
根据交叉点的位置, 以及交叉点出现的的顺序, 确定对应的操作命令。 According to the location of the intersection and the order in which the intersection appears, the corresponding operation command is determined.
9、根据权利要求 6、 7或 8所述的装置, 其特征在于, 所述坐标阵列中, 每两条相互平行的相邻的线之间的预置间距相等。 9. The device according to claim 6, 7 or 8, characterized in that, in the coordinate array, the preset spacing between each two mutually parallel adjacent lines is equal.
10、 根据权利要求 6所述的装置, 其特征在于, 所述装置还包括: 操作命令执行单元, 用于在所述操作命令确定单元确定所述触摸轨迹对 应的操作命令后, 执行该操作命令。 10. The device according to claim 6, wherein the device further includes: an operation command execution unit, configured to execute the operation command after the operation command determination unit determines the operation command corresponding to the touch track. .
PCT/CN2013/076295 2012-05-29 2013-05-28 Method and device for detecting operation command WO2013178045A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210171344.X 2012-05-29
CN201210171344XA CN103455259A (en) 2012-05-29 2012-05-29 Operation command detection method and device

Publications (1)

Publication Number Publication Date
WO2013178045A1 true WO2013178045A1 (en) 2013-12-05

Family

ID=49672417

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076295 WO2013178045A1 (en) 2012-05-29 2013-05-28 Method and device for detecting operation command

Country Status (2)

Country Link
CN (1) CN103455259A (en)
WO (1) WO2013178045A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881235B (en) * 2015-06-04 2018-06-15 广东欧珀移动通信有限公司 A kind of method and device for closing application program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4945504A (en) * 1986-04-30 1990-07-31 Casio Computer Co., Ltd. Instruction input system for electronic processor
US20110074719A1 (en) * 2009-09-30 2011-03-31 Higgstec Inc. Gesture detecting method for touch panel
CN102012759A (en) * 2009-09-08 2011-04-13 万达光电科技股份有限公司 Touch panel gesture detection method.

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101349956A (en) * 2008-08-11 2009-01-21 深圳华为通信技术有限公司 Method and apparatus for executing pattern touch order
CN101673168B (en) * 2008-09-09 2012-03-28 联想(北京)有限公司 Method and device for selecting target object on interface
CN101403954A (en) * 2008-09-25 2009-04-08 深圳华为通信技术有限公司 Touch detection method, apparatus and system
CN101599001B (en) * 2009-07-13 2012-11-14 青岛海信移动通信技术股份有限公司 Update method for touch-screen display interface and multimedia electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4945504A (en) * 1986-04-30 1990-07-31 Casio Computer Co., Ltd. Instruction input system for electronic processor
CN102012759A (en) * 2009-09-08 2011-04-13 万达光电科技股份有限公司 Touch panel gesture detection method.
US20110074719A1 (en) * 2009-09-30 2011-03-31 Higgstec Inc. Gesture detecting method for touch panel

Also Published As

Publication number Publication date
CN103455259A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
EP2763023B1 (en) Method and apparatus for multitasking
US10275151B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
CA2892143C (en) Using clamping to modify scrolling
EP3557395B1 (en) Information processing apparatus, information processing method, and computer program
US9696871B2 (en) Method and portable terminal for moving icon
US9459704B2 (en) Method and apparatus for providing one-handed user interface in mobile device having touch screen
KR102168648B1 (en) User terminal apparatus and control method thereof
US20150199125A1 (en) Displaying an application image on two or more displays
US20120235926A1 (en) Handheld devices and related data transmission methods
WO2011127796A1 (en) Method for operating and controlling electronic equipment and electronic equipment
CN103064627B (en) A kind of application management method and device
KR20140126327A (en) Thumbnail-image selection of applications
WO2013182090A1 (en) Method and system for controlling display position of desktop icon
WO2014029207A1 (en) Multi-selection processing method based on touch screen and ue (user equipment)
KR20150014084A (en) Device based on touch screen and method for controlling object thereof
WO2014056338A1 (en) Method and device for interaction of list data of mobile terminal
CN104063128A (en) Information processing method and electronic equipment
WO2015131630A1 (en) Replacement method and device for desktop icon
CN103616994A (en) Method and device for controlling electronic device
WO2015169010A1 (en) Element deleting method and apparatus based on touch screen
EP2998838B1 (en) Display apparatus and method for controlling the same
WO2016173307A1 (en) Message copying method and device, and smart terminal
WO2014187394A1 (en) Method and device for controlling electronic device having touch-sensitive display, and electronic device
WO2013178045A1 (en) Method and device for detecting operation command
CN103809794A (en) Information processing method and electronic device

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: 13796881

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: 13796881

Country of ref document: EP

Kind code of ref document: A1