WO2020001178A1 - 模式切换方法、装置和计算机可读存储介质 - Google Patents
模式切换方法、装置和计算机可读存储介质 Download PDFInfo
- Publication number
- WO2020001178A1 WO2020001178A1 PCT/CN2019/086587 CN2019086587W WO2020001178A1 WO 2020001178 A1 WO2020001178 A1 WO 2020001178A1 CN 2019086587 W CN2019086587 W CN 2019086587W WO 2020001178 A1 WO2020001178 A1 WO 2020001178A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- touch
- finger
- gesture
- information
- writing
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04808—Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
Definitions
- the present invention relates to the technical field of touch input software, and in particular, to a method, a device, and a computer-readable storage medium for mode switching.
- Touch input devices such as touch screens and electronic whiteboards are becoming more and more widely used in daily life.
- Various types of software with specific functions can be installed to implement text, picture, multimedia and other format data editing functions.
- writing, selecting, and erasing are three commonly used functions.
- switching between multiple functions is generally achieved by clicking the function button. That is, the user clicks the "write” button to enter the writing function, clicks the “select” button to enter the selection function, and clicks the "erase” button to enter. Erase function.
- Such an operation process is complicated and inconvenient to use.
- the present invention proposes a mode switching method, a device and a computer-readable storage medium, which can realize fast switching between various functions such as writing, selecting, erasing, etc., and the operation is simple and convenient.
- a mode switch is performed according to the touch condition that the touch information meets.
- the touch information includes: a position and time of a touch point
- the above gesture operation information includes: a type of the touch point, a position of the touch point, a position distance of the touch point, and a time interval of the touch point;
- the above-mentioned processing of the touch information to obtain gesture operation information includes:
- the time interval of the touch points is determined according to the touch time.
- one of the foregoing determining whether the gesture operation information meets at least one preset touch condition includes: determining whether the gesture operation information meets a single-finger writing determination condition, a two-finger selection determination condition, a five-finger Erasing judgment condition is one of three.
- the above determining whether the gesture operation information meets the single-finger writing determination condition includes: determining whether the type of the touch point in the gesture information is a single-finger touch point and is not located in any two-finger selection gesture area Within the range or within the range of any five-finger erase gesture area, if the above two conditions are met at the same time, it is determined that the gesture information meets the single-finger writing determination condition.
- the foregoing determining condition for determining whether the gesture operation information meets two-finger selection includes:
- the foregoing determining whether the gesture operation information meets a five-finger erasure determination condition includes:
- the foregoing determining whether the gesture operation information meets a five-finger erasure determination condition includes:
- the above-mentioned mode switching according to a touch condition that the touch information meets includes:
- the writing operation mode is entered
- the selection operation mode is entered
- the foregoing method may further include:
- the foregoing method may further include:
- a five-finger erasing gesture area range is dynamically determined.
- a touch information acquisition module for detecting touch information input by a user
- a touch information processing module configured to process the touch information to obtain gesture operation information
- a mode determination module configured to determine whether the gesture operation information meets one of at least one preset touch condition
- a mode switching module is configured to perform mode switching according to a touch condition that the touch information meets when the gesture operation information meets a preset touch condition.
- the touch information processing module includes:
- a type determining unit configured to determine the number of touch points according to the position of the touch points, and determine the type of the touch points according to the number of the touch points;
- a position spacing determining unit configured to determine the position spacing of the touch points according to the positions of the touch points
- a time interval determining unit is configured to determine a time interval between touch points according to a touch time.
- the mode determining module includes:
- a single-finger writing determination unit configured to determine whether the gesture operation information meets a single-finger writing determination condition
- a two-finger selection determination unit configured to determine whether the gesture operation information meets a two-finger selection determination condition
- the five-finger erasure determination unit is configured to determine whether the gesture operation information meets a five-finger erasure determination condition.
- the mode switching module is used to call the writing function and enter the writing operation mode when the single-finger writing determination condition is met; when the two-finger selection determination condition is met, the selection function is called to enter the selection operation mode; And when the five-finger erase judgment condition is met, the erase function is called to enter the erase operation mode.
- An embodiment of the present invention provides an electronic device, including:
- At least one processor At least one processor
- a computer program executable on the at least one processor is stored in the memory, and the mode switching method is implemented when the at least one processor executes the program.
- An embodiment of the present invention further provides a computer-readable storage medium having computer instructions stored thereon, and implementing the foregoing mode switching method when a processor executes the computer instructions.
- the mode switching scheme provided by the present invention allows the user to quickly switch between various functional modes by performing a touch operation on a touch input device, without the need to click the relevant function buttons, etc. Switching, convenient operation, fast response and easy to use.
- FIG. 1 is a flowchart of a mode switching method according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a judgment process for a single-finger writing judgment embodiment according to the present invention
- FIG. 3 is a schematic flowchart of a two-finger selection determination condition according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart of a five-finger erasure determination condition according to an embodiment of the present invention.
- FIG. 5 is an example diagram of multiple gesture regions on the same touch input device according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a mode switching device according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- the mode switching method and device provided by the embodiments of the present invention can be applied to touch input devices such as a touch screen and an electronic whiteboard.
- touch input devices such as a touch screen and an electronic whiteboard.
- the user can implement various functions such as writing, selecting, and erasing through touch gestures, as well as the rapidity between various functions such as writing, selecting, and erasing. Switching, convenient operation, fast response and easy to use.
- the above editing software supports touch device input, which is generally a touch screen of an electronic whiteboard or a terminal, and supports input operations of common touch gestures, such as picture zooming.
- FIG. 1 shows a flow of a mode switching method according to an embodiment of the present invention.
- the mode switching method according to the embodiment of the present invention can be applied to a touch input device such as a touch screen or an electronic whiteboard.
- the mode switching method according to the embodiment of the present invention includes the following steps:
- Step 101 Detect touch information input by a user.
- the touch information refers to touch information sent by the system to the software when a user interacts with a touch input device through a finger, and may include: a position of a touch point, and a touch time.
- the touch information may further include information such as the width, height, and pressure of the touch point.
- Step 102 Process the touch information to obtain gesture operation information.
- the gesture operation information may include information such as a type of a touch point, a position of the touch point, a position interval of the touch points, and a time interval of the touch points.
- Step 103 Determine whether the gesture operation information meets one of at least one preset touch condition.
- the touch condition includes one or any combination of the following determination conditions: a single-finger writing determination condition, a two-finger selection determination condition, and a five-finger erasure determination condition.
- Step 104 When the gesture operation information meets a preset touch condition, perform a mode switch according to the touch condition that the touch information meets.
- the above-mentioned mode switching according to the touch condition that the touch information meets may include:
- the writing function is called to enter the writing operation mode
- the selection function is called to enter the selection operation mode
- the erase function is called to enter the erase operation mode.
- the above method may further include:
- the above method may further include: if the touch information does not meet any one of the preset touch conditions, returning to the above step 101 to re-detect the touch information input by the user .
- step 104 in the description of step 104 in the embodiment shown in FIG. 1, the judgment of the single-finger writing judgment condition, the two-finger selection judgment condition, and the five-finger erasure judgment condition are described in order, It is only an exemplary description, and the embodiment of the present invention does not limit the determination order of the three determination conditions.
- the type of the touch point, the position of the touch point, and the touch point can be obtained by processing according to the detected touch information (including signals such as the position of the touch point and the touch time) input by the user.
- Gesture operation information such as position interval and touch point time interval.
- the number of touch points can be determined according to the position of the touch points in the touch information. Generally, the number of touch points can be any number from 1 to 5. Further, according to the number of touch points, the types of touch points can be divided into single-finger touch points, two-finger touch points, three-finger touch points, four-finger touch points, five-finger touch points, and the like.
- the above-mentioned touch point position interval refers to a distance between a touch point and another touch point closest to the touch point position.
- the above-mentioned touch point position interval may be determined according to the positions of the touch points in the touch information.
- the foregoing touch point time interval refers to a time difference between the earliest touch point and the latest touch point, that is, the time difference between the first touch point and the last touch point obtained by detection.
- the time interval of the touch points can be determined according to the time of the touch points in the touch information.
- FIG. 2 is a schematic diagram of a determination process of a single-finger writing determination condition according to an embodiment of the present invention.
- the above-mentioned single-finger writing judgment condition includes:
- Condition 2 The position of the single-finger touch point is not within the range of any two-finger selection gesture
- Condition three The position of the single-finger touch point is not within the range of any five-finger erase gesture area.
- the writing operation mode can be entered.
- the writing operation can be performed by one-finger touch.
- the method for judging the single-finger writing judgment condition includes the following steps:
- Step 201 determine whether the type of the touch point in the gesture information is a single-finger touch point, and if so, execute step 202; otherwise, exit the process;
- Step 202 Determine whether the position of the touch point in the gesture information is within the range of any two-finger selection gesture area or any five-finger erase gesture area, and if so, exit this process; otherwise, go to step 203;
- Step 203 Determine that the gesture information meets a single-finger writing determination condition.
- FIG. 3 is a schematic flowchart of a two-finger selection determination condition according to an embodiment of the present invention.
- the two-finger selection determination conditions include:
- Condition 1 The number of touch points is two, that is, two-finger touch points
- Condition 2 The position of the two-finger touch point is not within the range of any single-finger writing gesture area
- Condition 3 The position of the two-finger touch point is not within the range of any five-finger erase gesture area
- the position distance between two-finger touch points is greater than a preset selection position distance, for example, the selection position distance is 40 pixels;
- the time interval between two-finger touch points is less than or equal to a preset selection time interval, for example, the selection time interval is 320 milliseconds;
- the selection operation mode can be entered.
- the same object can be selected and dragged by two-finger touch.
- the determination method of the two-finger selection determination condition includes the following steps:
- Step 301 Determine whether the type of the touch point in the gesture information is a two-finger touch point, and if so, perform step 302; otherwise, exit the process;
- Step 302 Determine whether the position of the touch point in the gesture information is within the range of any one-finger writing gesture area or any five-finger erase gesture area, and if so, exit this process; otherwise, proceed to step 303;
- Step 303 Determine whether the distance between the touch point positions in the gesture information is greater than a preset selected position distance, and if yes, perform step 304; otherwise, exit this process;
- Step 304 Determine whether the time interval of the touch points in the gesture information is less than or equal to a preset selection time interval, and if so, execute step 305; otherwise, exit this process;
- Step 305 Determine whether the positions of the touch points in the gesture information all fall on the same object, and if so, execute step 306; otherwise, exit this process;
- Step 306 It is determined that the gesture information meets a two-finger selection determination condition.
- FIG. 4 is a schematic flowchart of a five-finger erasure determination condition according to an embodiment of the present invention.
- the five-finger erasure determination condition includes:
- Condition 2 The position of the five-finger touch point is not within the range of any single-finger writing gesture area
- Condition 3 The position of the five-finger touch point is not within the range of any two-finger selection gesture
- Condition 4 The position distance between five-finger touch points (the distance between any one of the five touch points and the nearest touch point) is less than or equal to the erase position distance, for example, the erase position distance Is 120 pixels;
- the time interval of the five-finger touch points (the time difference between the first touch point and the fifth touch point detected) is less than or equal to the erase time interval.
- the erase time interval is 400 milliseconds.
- the erasing operation mode can be entered.
- the operation object can be erased by five-finger touch.
- the determination method of the five-finger erasure determination condition includes the following steps:
- Step 401 Determine whether the type of the touch point in the gesture information is a five-finger touch point, and if so, perform step 402; otherwise, exit the process;
- Step 402 Determine whether the position of the touch point in the gesture information is within the range of any one-finger writing gesture area or any two-finger selection gesture area, and if so, exit this process; otherwise, proceed to step 403;
- Step 403 It is determined whether all touch point positions in the gesture information are smaller than or equal to a preset erase position pitch. If so, step 404 is performed; otherwise, the process is exited;
- Step 404 Determine whether the time interval of the touch points in the gesture information is less than or equal to a preset erasing time interval, and if so, execute step 405; otherwise, exit the process;
- Step 405 It is determined that the gesture information meets a five-finger erasure determination condition.
- a judgment condition for a five-finger erasure can be added separately.
- Six There is no other five-finger erasure. Except gesture. That is, it is stipulated that only one erasing operation is performed at the same time and the same object to ensure the correctness of the operation object data. However, condition six is not a condition that must be satisfied to determine the five-finger erasure judgment condition, and erasing operations can also be performed on different locations of the same object at the same time.
- the above figures 2, 3, and 4 show the situations where each of the above determination conditions are separately determined.
- the determination may also be combined together.
- the touch in the gesture information is determined.
- the type of point if it is a single-finger touch point, proceed to step 202; if it is a two-finger touch point, proceed to step 302; if it is a five-finger touch point, proceed to step 402.
- the above-mentioned single-finger writing gesture area range, two-finger selection gesture area range, and five-finger delete gesture area range can all be dynamically determined through specific operation modes.
- the range of the single-finger writing gesture area is dynamically determined according to the writing operation range. For example, according to writing habits, a certain area range including a single-finger touch point is determined as a single-finger writing gesture area range.
- the range of the two-finger selection gesture area is dynamically determined according to the selection operation range. For example, an area having a certain range, such as a circle or a rectangle, which is determined from the start point to the end point of the two-finger drag operation, is determined as the range of the two-finger selection gesture area.
- the range of the five-finger erase gesture area is dynamically determined according to the erase operation range. For example, an area having a certain range such as a circle determined by the five-finger touch point is determined as the range of the five-finger erase gesture area. It can be understood that the range of the five-finger erasing gesture area determined by the five-finger touch point is used as an eraser for erasing an arbitrary position of an operation object.
- FIG. 5 shows an example of multiple gesture regions on the same touch input device according to an embodiment of the present invention.
- a single-finger writing gesture area range 502 on the same touch input device 501, a single-finger writing gesture area range 502, a two-finger selection gesture area range 503, and a five-finger erasing gesture area range can be divided at the same time.
- Multiple operation areas such as 504, that is, multiple operations such as writing, selecting, and erasing can be performed simultaneously on the same touch input device.
- these operations perform corresponding operations only within the range of the gesture area dynamically determined this time, and functions such as writing, selecting, and erasing are mutually exclusive.
- only one writing operation can be performed within the single-finger writing gesture area range 502, and other operations such as selection and erasing cannot be performed; only two selection operations can be performed within the two-finger selection gesture area range 503, and writing and erasing cannot be performed And other operations; and within the range 504 of the five-finger erase gesture, only the erase operation can be performed, and other operations such as writing and selecting cannot be performed.
- various functions such as handwriting, selection, and erasing can be implemented separately, and rapid switching between various functions such as handwriting, selection, and erasing can be achieved.
- the writing operation mode according to the touch information input in real time, if it is determined that the two-finger selection determination condition is met, the writing operation mode is exited, and the selection operation mode is switched. If it is determined that the five-finger erasure determination condition is met, the system is exited. In writing operation mode, switch to erase operation mode.
- the selection operation mode based on real-time input touch information, if it is determined that the single-finger writing determination condition is met, exit the selection operation mode and switch to the writing operation mode.
- the erasure judgment condition exit the selection operation mode and switch to the erasure operation mode; in the erasure operation mode, according to the touch information input in real time, if it is determined that the single-finger writing judgment condition is met, the erasure operation mode is exited and switched Enter the writing operation mode. If it is determined that the two-finger selection determination condition is met, the erase operation mode is exited and the selection operation mode is switched. In this way, there is no need to click a function button to switch functions, and the corresponding touch gestures can be used to quickly switch between multiple functions such as handwriting, selection, and erasure.
- the operation is simple, the response is fast, and the use is extremely convenient.
- An embodiment of the present invention further provides a mode switching device.
- the internal structure is shown in FIG. 6 and mainly includes:
- the touch information acquisition module 601 is configured to detect touch information input by a user.
- the touch information processing module 602 is configured to process the touch information to obtain gesture operation information.
- the mode determining module 603 is configured to determine whether the gesture operation information meets one of at least one touch condition set in advance.
- the touch condition includes one or any combination of the following determination conditions: a single-finger writing determination condition, a two-finger selection determination condition, and a five-finger erasure determination condition.
- the mode switching module 604 is configured to perform mode switching according to a touch condition that the touch information meets when the gesture operation information meets a preset touch condition.
- the above-mentioned mode switching module 604 will call the writing function and enter the writing operation mode; when the two-finger selection determination condition is met, the above-mentioned mode switching module 604 will call the selection function and enter the selection operation mode; When the five-finger erase determination condition is met, the mode switching module 604 will call the erase function and enter the erase operation mode.
- an embodiment of the present invention further provides an electronic device, whose structure is shown in FIG. 7 and includes a memory 701 and a processor 702; the memory 701 and the processor 702 are connected through a bus; A computer program 703 running on a processor, and when the processor executes the program, the mode switching method according to any one of the foregoing embodiments is implemented.
- the electronic device in the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, and details are not described herein again.
- an embodiment of the present invention further provides a computer-readable storage medium having computer instructions stored thereon, and when the processor executes the computer instructions, the mode switching method according to any one of the foregoing embodiments is implemented.
- the method and device for mode switching process and judge input touch information. If the single-finger writing judgment condition is met, the single-finger writing operation mode is entered. The finger selects the operation mode. If the five-finger erase determination condition is met, the five-finger erase operation mode is entered.
- fast switching between various functions such as writing, selecting, and erasing can be achieved without the need to switch functions by operating the function buttons, which is easy to operate.
- Quick response and extremely convenient for users For example, when writing with one finger on a touch input device, the user does not have to wait for the recognition result of the two-finger selection and five-finger erase gesture, and can quickly enter the writing operation mode.
- the apparatus in the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, and details are not described herein again.
- DRAM dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种模式切换方法、装置和计算机可读存储介质,包括:检测用户输入的触控信息;对上述触控信息进行处理得到手势操作信息;确定所述手势操作信息是否符合预先设定的至少一个触控条件之一;以及在所述手势操作信息符合预先设定的一个触控条件时,根据所述触控信息符合的触控条件进行模式切换。本发明可实现多种功能之间的快速切换,无需通过操作功能按钮进行功能切换,操作方便,响应迅速,用户使用极为方便。
Description
本发明涉及触控输入软件技术领域,特别涉及一种模式切换方法、装置和计算机可读存储介质。
触摸屏、电子白板等触摸输入设备在日常生活中的应用越来越广泛,安装具有特定功能的各式软件,可实现文字、图片、多媒体等多种格式数据的编辑功能。在编辑过程中,书写、选择、擦除是常用的三种功能。目前一般是通过点击功能按钮方式实现多种功能之间的切换,即用户通过点击“书写”按钮,进入书写功能,通过点击“选择”按钮,进入选择功能,通过点击“擦除”按钮,进入擦除功能。这样的操作过程较为繁琐,使用不方便。
发明内容
有鉴于此,本发明提出一种模式切换方法、装置和计算机可读存储介质,可实现书写、选择、擦除等多种功能之间的快速切换,操作简便、使用方便。
本发明实施例提供的模式切换方法,包括以下步骤:
检测用户输入的触控信息;
对上述触控信息进行处理得到手势操作信息;
确定所述手势操作信息是否符合预先设定的至少一个触控条件之一;以及
在所述手势操作信息符合预先设定的一个触控条件时,根据所述触控信息符合的触控条件进行模式切换。
在本发明的实施例中,上述触控信息包括:触控点的位置、时间;
上述手势操作信息包括:触控点的类型、触控点的位置及触控点位置间距以及触控点时间间距;
上述对上述触控信息进行处理得到手势操作信息包括:
根据所述触控点的位置确定触控点的个数,并根据所述触控点的个数确定所述触控点的类型;
根据所述触控点的位置确定所述触控点位置间距;以及
根据所述触控时间确定所述触控点时间间距。
在本发明的实施例中上述确定所述手势操作信息是否符合预先设定的至少一个触控条件之一包括:确定所述手势操作信息是否符合单指书写判定条件、两指选择判定条件、五指擦除判定条件三者之一。
在本发明的实施例中,上述确定所述手势操作信息是否符合单指书写判定条件包括:判断手势信息中的触控点的类型是否为单指触控点且不位于任何两指选择手势区域范围之内或者任何五指擦除手势区域范围之内,如果上述两个条件同时满足,则判定上述手势信息符合单指书写判定条件。
在本发明的实施例中,上述确定所述手势操作信息是否符合两指选择判定条件包括:
判断手势信息中的触控点的类型是否为两指触控点;
判断手势信息中的触控点的位置是否没有位于任何单指书写手势区域范围之内;
判断手势信息中的触控点的位置是否没有位于任何五指擦除手势区域范围之内;
判断手势信息中的触控点位置间距是否大于预先设定的选择位置间距;
判断手势信息中的触控点时间间距是否小于或等于预先设定的选择时间间距;
判断手势信息中的触控点的位置是否均落在同一个对象上;
如果上述条件均满足,则判定上述手势信息符合两指选择判定条件。
在本发明的实施例中,上述确定所述手势操作信息是否符合五指擦除判定条件包括:
判断手势信息中的触控点的类型是否为五指触控点;
判断手势信息中的触控点的位置是否没有位于任何单指书写手势区 域范围之内;
判断手势信息中的触控点的位置是否没有位于任何两指选择手势区域范围之内;
判断手势信息中的所有触控点位置间距是否均小于或等于预先设定的擦除位置间距;
判断手势信息中的触控点时间间距是否小于或等于预先设定的擦除时间间距;
如果上述条件均满足,则判定上述手势信息符合五指擦除判定条件。
在本发明的实施例中,上述确定所述手势操作信息是否符合五指擦除判定条件包括:
判断手势信息中的触控点的类型是否为五指触控点;
判断手势信息中的触控点的位置是否没有位于任何单指书写手势区域范围之内;
判断手势信息中的触控点的位置是否没有位于任何两指选择手势区域范围之内;
判断手势信息中的所有触控点位置间距是否均小于或等于预先设定的擦除位置间距;
判断手势信息中的触控点时间间距是否小于或等于预先设定的擦除时间间距;
判断没有另外一个五指擦除手势正在进行;
如果上述条件均满足,则判定上述手势信息符合五指擦除判定条件。
在本发明的实施例中,上述根据所述触控信息符合的触控条件进行模式切换包括:
在符合单指书写判定条件时,进入书写操作模式;
在符合两指选择判定条件时,进入选择操作模式;
在符合五指擦除判定条件时,进入擦除操作模式;
在本发明的实施例中,上述方法可以进一步包括:
在进入所述书写操作模式后,退出所述选择操作模式,退出所述擦除操作模式;
在进入所述选择操作模式后,退出所述书写操作模式,退出所述擦除操作模式;或者
在进入所述擦除操作模式后,退出所述书写操作模式,退出所述选择操作模式。
在本发明的实施例中,上述方法可以进一步包括:
在所述书写操作模式下,动态确定单指书写手势区域范围;
在所述选择操作模式下,动态确定两指选择手势区域范围;或者
在所述擦除操作模式下,动态确定五指擦除手势区域范围。
本发明实施例所述的模式切换装置包括:
触控信息获取模块,用于检测用户输入的触控信息;
触控信息处理模块,用于对所述触控信息进行处理得到手势操作信息;
模式确定模块,用于确定所述手势操作信息是否符合预先设定的至少一个触控条件之一;以及
模式切换模块,用于在所述手势操作信息符合预先设定的一个触控条件时,根据所述触控信息符合的触控条件进行模式切换。
在本发明的实施例中,上述触控信息处理模块包括:
类型确定单元,用于根据触控点的位置确定触控点的个数,并根据所述触控点的个数确定触控点的类型;
位置间距确定单元,用于根据触控点的位置确定触控点位置间距;
时间间距确定单元,用于根据触控时间确定触控点时间间距。
在本发明的实施例中,上述模式确定模块包括:
单指书写判定单元,用于确定所述手势操作信息是否符合单指书写判定条件;
两指选择判定单元,用于确定所述手势操作信息是否符合两指选择判定条件;以及
五指擦除判定单元,用于确定所述手势操作信息是否符合五指擦除判定条件。
在本发明的实施例中,上述模式切换模块用于在符合单指书写判定条件时,调用书写功能,进入书写操作模式;在符合两指选择判定条件时,调用选择功能,进入选择操作模式;以及在符合五指擦除判定条件 时,调用擦除功能,进入擦除操作模式。
本发明的实施例提供了一种电子设备,包括:
存储器;
至少一个处理器;其中,
存储器上存储有可在所述至少一个处理器上运行的计算机程序,所述至少一个处理器执行所述程序时实现上述模式切换方法。
本发明的实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,在处理器执行上述计算机指令时实现上述模式切换方法。
从上面所述可以看出,本发明提供的模式切换方案,用户在触摸输入设备上进行触控操作即可完成在各种功能模式之间的快速切换,而无需通过点击相关功能按钮等方式进行切换,操作便利、响应迅速、使用方便。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例所述的模式切换方法流程图;
图2为本发明实施例的单指书写判定条件的判断流程示意图;
图3为本发明实施例的两指选择判定条件的判断流程示意图;
图4为本发明实施例的五指擦除判定条件的判断流程示意图;
图5为本发明实施例的同一触摸输入设备上多个手势区域的示例图;
图6为本发明实施例所述的模式切换装置结构示意图;
图7为本发明实施例所述的电子设备结构示意图。
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。
本发明实施例提出的模式切换方法和装置,可应用于触摸屏、电子白板等触摸输入设备。在用户利用触摸输入设备中安装的编辑软件编辑数据对象时,可以通过触控手势分别实现书写、选择、擦除等多种功能,以及实现书写、选择、擦除等多种功能之间的快速切换,操作便捷、响应迅速、使用方便。上述编辑软件支持触摸设备输入,一般是电子白板或终端的触屏,且支持常用的触控手势的输入操作,如图片缩放等。
图1显示了本发明实施例所述的模式切换方法流程。如前所述,本发明实施例所述的模式切换方法可以应用于触摸屏、电子白板等触摸输入设备。如图1所示,本发明实施例所述的模式切换方法包括以下步骤:
步骤101:检测用户输入的触控信息。
在本发明的实施例中,触控信息是指用户通过手指在触摸输入设备上进行交互时,系统发给软件的触控信息,可以包括:触控点的位置、以及触控时间。上述触控信息还可以包括触控点的宽、高以及压力等信息。
步骤102:对上述触控信息进行处理得到手势操作信息。
在本发明的实施例中,上述手势操作信息可以包括:触控点的类型、触控点的位置、触控点位置间距以及触控点时间间距等信息。
步骤103:确定所述手势操作信息是否符合预先设定的至少一个触控条件之一。
在本发明的实施例中,上述触控条件包括如下判定条件之一或其任意组合:单指书写判定条件、两指选择判定条件以及五指擦除判定条件。
步骤104:在所述手势操作信息符合预先设定的一个触控条件时,根据所述触控信息符合的触控条件进行模式切换。
在本发明的实施例中,上述根据所述触控信息符合的触控条件进行 模式切换可以包括:
在符合单指书写判定条件时,调用书写功能,进入书写操作模式;
在符合两指选择判定条件时,调用选择功能,进入选择操作模式;
在符合五指擦除判定条件时,调用擦除功能,进入擦除操作模式。
在本发明的一些实施例中,上述方法可以进一步包括:
在进入书写操作模式后,退出选择功能,退出擦除功能;
在进入选择操作模式后,退出书写功能,退出擦除功能;或者
在进入擦除操作模式后,退出书写功能,退出选择功能。
在本发明的另一些实施例中,上述方法还可以进一步包括:若所述触控信息不符合预先设定的任意一个触控条件时,则可以返回上述步骤101重新检测用户输入的触控信息。
需要说明的是,虽然在对图1所示实施例中步骤104的描述中,依次对单指书写判定条件、两指选择判定条件、五指擦除判定条件的判断进行了描述,但是,上述描述仅为示例性说明,本发明的实施例并不对上述三个判定条件的判断顺序进行限定。
下面将进一步结合附图详细说明上述图1所示实施例各个步骤的具体实现方法。
在上述步骤102中,依据检测到的用户输入的触控信息(包括触控点的位置以及触控时间等信号),可以通过处理得到触控点的类型,触控点的位置及触控点位置间距以及触控点时间间距等手势操作信息。
其中,根据触控信息中触控点的位置可以确定触控点的个数,通常,该触控点的个数可以是1~5中的任意数值。进一步,根据触控点的个数,可以将触控点类型分为单指触控点、两指触控点、三指触控点、四指触控点、五指触控点等。
上述触控点位置间距是指一个触控点与其距离该触控点位置最近的另一个触控点之间的间距。上述触控点位置间距可以根据触控信息中触控点的位置确定。
上述触控点时间间距是指落下最早的触控点与落下最晚的触控点之间的时间差,即检测获取的第一个触控点与最后一个触控点之间的时间差值。上述触控点时间间距可以根据触控信息中触控点的时间确定。
在得到手势操作信息之后,则可进一步判断上述操作信息是否符合 预先设定的至少一个触控条件之一。
图2为本发明实施例的单指书写判定条件的判断流程示意图。
在本发明的实施例中,上述单指书写判定条件包括:
条件一:触控点的个数为一个,即为单指触控点;
条件二:单指触控点的位置不在任何两指选择手势区域范围之内;
条件三:单指触控点的位置不在任何五指擦除手势区域范围之内。
上述三个条件同时满足,则判定为符合单指书写判定条件,可进入书写操作模式,在书写操作模式下,可通过单指触控进行书写操作。
如此,如图2所示,上述单指书写判定条件的判断方法包括如下步骤:
步骤201:判断手势信息中的触控点的类型是否为单指触控点,如果是,则执行步骤202;否则,退出本流程;
步骤202:判断手势信息中的触控点的位置是否位于任何两指选择手势区域范围之内或者任何五指擦除手势区域范围之内,如果是,则退出本流程;否则,执行步骤203;
步骤203:判定上述手势信息符合单指书写判定条件。
图3为本发明实施例的两指选择判定条件的判断流程示意图。
在本发明的实施例中,上述两指选择判断条件包括:
条件一:触控点的个数为两个,即为两指触控点;
条件二:两指触控点的位置不在任何单指书写手势区域范围之内;
条件三:两指触控点的位置不在任何五指擦除手势区域范围之内;
条件四:两指触控点的位置间距大于预先设定的选择位置间距,例如,该选择位置间距为40像素;
条件五:两指触控点的时间间距小于或等于预先设定的选择时间间距,例如,该选择时间间距为320毫秒;
条件六:两指触控点落在同一个对象上。
上述六个条件同时满足,则判定为符合两指选择判定条件,可进入选择操作模式,在选择操作模式下,可通过两指触控对同一对象进行选定、拖拽等操作。
如此,如图3所示,上述两指选择判定条件的判断方法包括如下步骤:
步骤301:判断手势信息中的触控点的类型是否为两指触控点,如果是,则执行步骤302;否则,退出本流程;
步骤302:判断手势信息中的触控点的位置是否位于任何单指书写手势区域范围之内或者任何五指擦除手势区域范围之内,如果是,则退出本流程;否则,执行步骤303;
步骤303:判断手势信息中的触控点位置间距是否大于预先设定的选择位置间距,如果是,则执行步骤304;否则,退出本流程;
步骤304:判断手势信息中的触控点时间间距是否小于或等于预先设定的选择时间间距,如果是,则执行步骤305;否则,退出本流程;
步骤305:判断手势信息中的触控点的位置是否均落在同一个对象上,如果是,则执行步骤306;否则,退出本流程;
步骤306:判定上述手势信息符合两指选择判定条件。
图4为本发明实施例的五指擦除判定条件的判断流程示意图。
在本发明的实施例中,上述五指擦除判定条件包括:
条件一:触控点的个数为五个,即为五指触控点;
条件二:五指触控点的位置不在任何单指书写手势区域范围之内;
条件三:五指触控点的位置不在任何两指选择手势区域范围之内;
条件四:五指触控点的位置间距(五个触控点中任意一个触控点与距离其最近的触控点之间的间距)小于或等于擦除位置间距,例如,该擦除位置间距为120像素;
条件五:五指触控点的时间间距(检测到的第一个触控点与第五个触控点之间的时间差值)小于或等于擦除时间间距,例如,该擦除时间间距为400毫秒。
上述五个条件同时满足,则判定为符合五指擦除判定条件,可进入擦除操作模式,在擦除操作模式下,可通过五指触控对操作对象进行擦除操作。
如此,如图4所示,上述五指擦除判定条件的判断方法包括如下步骤:
步骤401:判断手势信息中的触控点的类型是否为五指触控点,如果是,则执行步骤402;否则,退出本流程;
步骤402:判断手势信息中的触控点的位置是否位于任何单指书写手 势区域范围之内或者任何两指选择手势区域范围之内,如果是,则退出本流程;否则,执行步骤403;
步骤403:判断手势信息中的所有触控点位置间距是否均小于或等于预先设定的擦除位置间距,如果是,则执行步骤404;否则,退出本流程;
步骤404:判断手势信息中的触控点时间间距是否小于或等于预先设定的擦除时间间距,如果是,则执行步骤405;否则,退出本流程;
步骤405:判定上述手势信息符合五指擦除判定条件。
另外,在本发明的实施例中,为避免对同一对象的不同位置同时进行擦除而引发操作对象数据错误的问题,对于五指擦除判定条件,可另行增加判定条件六:没有另外一个五指擦除手势正在进行。即,规定同一时间、同一对象仅执行一项擦除操作,以保证操作对象数据的正确性。然而,条件六不作为判断五指擦除判定条件必须满足的条件,也可以对同一对象的不同位置同时进行擦除操作。
需要说明的是,上述图2、3和4显示的是上述各个判定条件分别判断的情形,在本发明的实施例中,也可以结合在一起进行判断,例如,首先确定手势信息中的触控点的类型那种类型,如果是单指触控点,则继续执行步骤202;如果是两指触控点,则继续执行步骤302;如果是五指触控点,则继续执行步骤402。
需要说明的是,在本发明的实施例中,上述的单指书写手势区域范围、两指选择手势区域范围、五指删除手势区域范围,均是可以通过具体操作模式动态确定的。
具体来说,进入书写操作模式后,根据书写操作范围,动态确定出单指书写手势区域范围。例如,根据书写习惯,将包括单指触控点的一定区域范围,确定为单指书写手势区域范围。
进入选择操作模式后,根据选择操作范围,动态确定出两指选择手势区域范围。例如,将由两指拖拽操作的起点到终点所确定的圆形或矩形等具有一定范围的区域,确定为两指选择手势区域范围。
进入五指擦除模式后,根据擦除操作范围,动态确定出五指擦除手势区域范围。例如,将由五指触控点所确定的圆形等具有一定范围的区域,确定为五指擦除手势区域范围。可以理解为,将五指触控点所确定 出的五指擦除手势区域范围作为橡皮擦,用于对操作对象的任意位置进行擦除操作。
图5显示了本发明实施例的同一触摸输入设备上多个手势区域的示例。如图5所示,根据本发明实施例所述的方法,在同一触摸输入设备501上,可同时划分出单指书写手势区域范围502、两指选择手势区域范围503、五指擦除手势区域范围504等多个操作区域,即,在同一个触摸输入设备上,可同时进行书写、选择、擦除等多种操作。而且,这些操作仅在其本次动态确定出的手势区域范围之内执行相应的操作,书写、选择、擦除等功能互斥。例如,在单指书写手势区域范围502之内仅可执行书写操作,不可执行选择、擦除等其他操作;在两指选择手势区域范围503之内仅可执行选择操作,不可执行书写、擦除等其他操作;而在五指擦除手势区域范围504之内仅可执行擦除操作,不可执行书写、选择等其他操作。
根据本发明实施例所述的方法,可分别实现手写、选择、擦除等多种功能,以及可以实现手写、选择、擦除等多种功能之间的快速切换。具体的说,在书写操作模式下,根据实时输入的触控信息,若判断符合两指选择判定条件,则退出书写操作模式,切换进入选择操作模式,若判断符合五指擦除判定条件,则退出书写操作模式,切换进入擦除操作模式;在选择操作模式下,根据实时输入的触控信息,若判断符合单指书写判定条件,则退出选择操作模式,切换进入书写操作模式,若判断符合五指擦除判定条件,则退出选择操作模式,切换进入擦除操作模式;在擦除操作模式下,根据实时输入的触控信息,若判断符合单指书写判定条件,则退出擦除操作模式,切换进入书写操作模式,若判断符合两指选择判定条件,则退出擦除操作模式,切换进入选择操作模式。如此,无需另外点击功能按钮进行功能切换,即可通过相应的触控手势实现手写、选择、擦除等多种功能之间的快速切换,操作简便,响应速度快,使用极为便利。
本发明的实施例还提供了一种模式切换装置,其内部结构如图6所示,主要包括:
触控信息获取模块601、触控信息处理模块602、模式确定模块603 以及模式切换模块604。
其中,上述触控信息获取模块601用于检测用户输入的触控信息。
上述触控信息处理模块602用于对上述触控信息进行处理得到手势操作信息。
上述模式确定模块603用于确定所述手势操作信息是否符合预先设定的至少一个触控条件之一。
在本发明的实施例中,上述触控条件包括如下判定条件之一或其任意组合:单指书写判定条件、两指选择判定条件以及五指擦除判定条件。
上述模式切换模块604用于在所述手势操作信息符合预先设定的一个触控条件时,根据所述触控信息符合的触控条件进行模式切换。
例如,在符合单指书写判定条件时,上述模式切换模块604将调用书写功能,进入书写操作模式;在符合两指选择判定条件时,上述模式切换模块604将调用选择功能,进入选择操作模式;而在符合五指擦除判定条件时,上述模式切换模块604将调用擦除功能,进入擦除操作模式。
基于同一方面构思,本发明实施例还提供了一种电子设备,其结构如图7所示,包括存储器701、处理器702;存储器701和处理器702通过总线连接;存储器上存储有可在处理器上运行的计算机程序703,所述处理器执行所述程序时实现如上述任意一实施例所述的模式切换方法。
上述实施例的电子设备用于实现前述实施例中相应的方法,并且具有相应的方法实施例的有益效果,在此不再赘述。
基于同一方面构思,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,在处理器执行上述计算机指令时实现如上述任意一实施例所述的模式切换方法。
本发明实施例的模式切换方法和装置,通过对输入的触控信息进行处理及判断,若符合单指书写判定条件,则进入单指书写操作模式,若符合两指选择判定条件,则进入两指选择操作模式,若符合五指擦除判定条件,则进入五指擦除操作模式。通过对实时输入的触控信息进行处理及判断,以执行相应的操作,可实现书写、选择、擦除等多种功能之间的快速切换,而无需通过操作功能按钮进行功能切换,操作方便,响 应迅速,用户使用极为方便。例如,用户在触摸输入设备上进行单指书写时,不必等待两指选择、五指擦除手势的识别结果,可快速进入书写操作模式;同时,使用两指选择或是五指擦除功能时,无需通过点击相关功能按钮等方式进行切换,从而无需打断手写过程,可通过两指选择、五指擦除的触控手势方式,快速切换至相应功能,实现交互目的。
上述实施例的装置用于实现前述实施例中相应的方法,并且具有相应的方法实施例的有益效果,在此不再赘述。
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明它们没有在细节中提供。
另外,为简化说明和讨论,并且为了不会使本发明难以理解,在所提供的附图中可以示出或可以不示出与集成电路(IC)芯片和其它部件的公知的电源/接地连接。此外,可以以框图的形式示出装置,以便避免使本发明难以理解,并且这也考虑了以下事实,即关于这些框图装置的实施方式的细节是高度取决于将要实施本发明的平台的(即,这些细节应当完全处于本领域技术人员的理解范围内)。在阐述了具体细节(例如,电路)以描述本发明的示例性实施例的情况下,对本领域技术人员来说显而易见的是,可以在没有这些具体细节的情况下或者这些具体细节有变化的情况下实施本发明。因此,这些描述应被认为是说明性的而不是限制性的。
尽管已经结合了本发明的具体实施例对本发明进行了描述,但是根据前面的描述,这些实施例的很多替换、修改和变型对本领域普通技术人员来说将是显而易见的。例如,其它存储器架构(例如,动态RAM(DRAM))可以使用所讨论的实施例。
本发明的实施例旨在涵盖落入所附权利要求的宽泛范围之内的所有这样的替换、修改和变型。因此,凡在本发明的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (16)
- 一种模式切换方法,其特征在于,包括以下步骤:检测用户输入的触控信息;对上述触控信息进行处理得到手势操作信息;确定所述手势操作信息是否符合预先设定的至少一个触控条件之一;以及在所述手势操作信息符合预先设定的一个触控条件时,根据所述触控信息符合的触控条件进行模式切换。
- 根据权利要求1所述的方法,其特征在于,所述触控信息包括:触控点的位置、时间;所述手势操作信息包括:触控点的类型、触控点的位置及触控点位置间距以及触控点时间间距;对上述触控信息进行处理得到手势操作信息包括:根据所述触控点的位置确定触控点的个数,并根据所述触控点的个数确定所述触控点的类型;根据所述触控点的位置确定所述触控点位置间距;以及根据所述触控时间确定所述触控点时间间距。
- 根据权利要求1所述的方法,其特征在于,确定所述手势操作信息是否符合预先设定的至少一个触控条件之一包括:确定所述手势操作信息是否符合单指书写判定条件、两指选择判定条件、五指擦除判定条件三者之一。
- 根据权利要求3所述的方法,其特征在于,确定所述手势操作信息是否符合单指书写判定条件包括:判断手势信息中的触控点的类型是否为单指触控点且不位于任何两指选择手势区域范围之内或者任何五指擦除手势区域范围之内,如果上述两个条件同时满足,则判定上述手势信息符合单指书写判定条件。
- 根据权利要求3所述的方法,其特征在于,确定所述手势操作信息是否符合两指选择判定条件包括:判断手势信息中的触控点的类型是否为两指触控点;判断手势信息中的触控点的位置是否没有位于任何单指书写手势区 域范围之内;判断手势信息中的触控点的位置是否没有位于任何五指擦除手势区域范围之内;判断手势信息中的触控点位置间距是否大于预先设定的选择位置间距;判断手势信息中的触控点时间间距是否小于或等于预先设定的选择时间间距;判断手势信息中的触控点的位置是否均落在同一个对象上;如果上述条件均满足,则判定上述手势信息符合两指选择判定条件。
- 根据权利要求3所述的方法,其特征在于,确定所述手势操作信息是否符合五指擦除判定条件包括:判断手势信息中的触控点的类型是否为五指触控点;判断手势信息中的触控点的位置是否没有位于任何单指书写手势区域范围之内;判断手势信息中的触控点的位置是否没有位于任何两指选择手势区域范围之内;判断手势信息中的所有触控点位置间距是否均小于或等于预先设定的擦除位置间距;判断手势信息中的触控点时间间距是否小于或等于预先设定的擦除时间间距;如果上述条件均满足,则判定上述手势信息符合五指擦除判定条件。
- 根据权利要求3所述的方法,其特征在于,确定所述手势操作信息是否符合五指擦除判定条件包括:判断手势信息中的触控点的类型是否为五指触控点;判断手势信息中的触控点的位置是否没有位于任何单指书写手势区域范围之内;判断手势信息中的触控点的位置是否没有位于任何两指选择手势区域范围之内;判断手势信息中的所有触控点位置间距是否均小于或等于预先设定 的擦除位置间距;判断手势信息中的触控点时间间距是否小于或等于预先设定的擦除时间间距;判断没有另外一个五指擦除手势正在进行;如果上述条件均满足,则判定上述手势信息符合五指擦除判定条件。
- 根据权利要求3所述的方法,其特征在于,根据所述触控信息符合的触控条件进行模式切换包括:在符合单指书写判定条件时,进入书写操作模式;在符合两指选择判定条件时,进入选择操作模式;在符合五指擦除判定条件时,进入擦除操作模式。
- 根据权利要求8所述的方法,其特征在于,所述方法进一步包括:在进入所述书写操作模式后,退出所述选择操作模式,退出所述擦除操作模式;在进入所述选择操作模式后,退出所述书写操作模式,退出所述擦除操作模式;或者在进入所述擦除操作模式后,退出所述书写操作模式,退出所述选择操作模式。
- 根据权利要求8所述的方法,其特征在于,所述方法进一步包括:在所述书写操作模式下,动态确定单指书写手势区域范围;在所述选择操作模式下,动态确定两指选择手势区域范围;或者在所述擦除操作模式下,动态确定五指擦除手势区域范围。
- 一种模式切换装置,其特征在于,包括:触控信息获取模块,用于检测用户输入的触控信息;触控信息处理模块,用于对所述触控信息进行处理得到手势操作信息;模式确定模块,用于确定所述手势操作信息是否符合预先设定的至少一个触控条件之一;以及模式切换模块,用于在所述手势操作信息符合预先设定的一个触控 条件时,根据所述触控信息符合的触控条件进行模式切换。
- 根据权利要求11所述的装置,其特征在于,所述触控信息处理模块包括:类型确定单元,用于根据触控点的位置确定触控点的个数,并根据所述触控点的个数确定触控点的类型;位置间距确定单元,用于根据触控点的位置确定触控点位置间距;时间间距确定单元,用于根据触控时间确定触控点时间间距。
- 根据权利要求11所述的装置,其特征在于,所述模式确定模块包括:单指书写判定单元,用于确定所述手势操作信息是否符合单指书写判定条件;两指选择判定单元,用于确定所述手势操作信息是否符合两指选择判定条件;以及五指擦除判定单元,用于确定所述手势操作信息是否符合五指擦除判定条件。
- 根据权利要求13所述的装置,其特征在于,所述模式切换模块用于在符合单指书写判定条件时,调用书写功能,进入书写操作模式;在符合两指选择判定条件时,调用选择功能,进入选择操作模式;以及在符合五指擦除判定条件时,调用擦除功能,进入擦除操作模式。
- 一种电子设备,其特征在于,包括:存储器;至少一个处理器;其中,存储器上存储有可在所述至少一个处理器上运行的计算机程序,所述至少一个处理器执行所述程序时实现如权利要求1至10任意一项所述的模式切换方法。
- 一种计算机可读存储介质,其特征在于,其上存储有计算机指令,在处理器执行上述计算机指令时实现如权利要求1至10任意一项所述的模式切换方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810662815.4A CN110633041B (zh) | 2018-06-25 | 2018-06-25 | 一种利用手势切换书写、选择、擦除模式的方法和装置 |
CN201810662815.4 | 2018-06-25 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020001178A1 true WO2020001178A1 (zh) | 2020-01-02 |
Family
ID=68968684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/086587 WO2020001178A1 (zh) | 2018-06-25 | 2019-05-13 | 模式切换方法、装置和计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110633041B (zh) |
WO (1) | WO2020001178A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112667105A (zh) * | 2020-12-28 | 2021-04-16 | 广州华欣电子科技有限公司 | 触摸屏控制方法、装置、设备和存储介质 |
CN114647359B (zh) * | 2022-02-28 | 2024-12-17 | 成都读写科技有限公司 | 一种状态切换方法、装置、设备及存储介质 |
CN114863433A (zh) * | 2022-03-31 | 2022-08-05 | 北京科技大学 | 一种实时手写交互的线上辅助教学系统 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060036944A1 (en) * | 2004-08-10 | 2006-02-16 | Microsoft Corporation | Surface UI for gesture-based interaction |
US20090284478A1 (en) * | 2008-05-15 | 2009-11-19 | Microsoft Corporation | Multi-Contact and Single-Contact Input |
CN103186268A (zh) * | 2011-12-29 | 2013-07-03 | 盛乐信息技术(上海)有限公司 | 手写输入方法及系统 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104423717A (zh) * | 2013-08-26 | 2015-03-18 | 鸿合科技有限公司 | 手势输入方法及数字白板 |
CN106990900A (zh) * | 2016-01-21 | 2017-07-28 | 阿里巴巴集团控股有限公司 | 一种书写实现方法和装置 |
CN106383657A (zh) * | 2016-09-26 | 2017-02-08 | 广东小天才科技有限公司 | 手写输入控制方法和手写输入控制装置 |
CN106598351B (zh) * | 2016-10-19 | 2023-06-20 | 海信视像科技股份有限公司 | 一种触摸点处理方法及设备 |
-
2018
- 2018-06-25 CN CN201810662815.4A patent/CN110633041B/zh active Active
-
2019
- 2019-05-13 WO PCT/CN2019/086587 patent/WO2020001178A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060036944A1 (en) * | 2004-08-10 | 2006-02-16 | Microsoft Corporation | Surface UI for gesture-based interaction |
US20090284478A1 (en) * | 2008-05-15 | 2009-11-19 | Microsoft Corporation | Multi-Contact and Single-Contact Input |
CN103186268A (zh) * | 2011-12-29 | 2013-07-03 | 盛乐信息技术(上海)有限公司 | 手写输入方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN110633041A (zh) | 2019-12-31 |
CN110633041B (zh) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11487426B2 (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 | |
US8707170B2 (en) | Gesture based edit mode | |
US9563353B2 (en) | Gesture detection zones | |
US20160004373A1 (en) | Method for providing auxiliary information and touch control display apparatus using the same | |
US20220214784A1 (en) | Systems and methods for a touchscreen user interface for a collaborative editing tool | |
CN110058782B (zh) | 基于交互式电子白板的触摸操作方法及其系统 | |
WO2017028436A1 (zh) | 一种绘图工具的实现方法、装置、设备和计算机存储介质 | |
JP2019516189A (ja) | タッチスクリーントラック認識方法及び装置 | |
US20140189482A1 (en) | Method for manipulating tables on an interactive input system and interactive input system executing the method | |
TWI389014B (zh) | Touchpad detection method | |
JP2007317159A (ja) | 電子装置の入力装置およびその入力方法 | |
JP2009259079A (ja) | タッチボードカーソル制御方法 | |
WO2020001178A1 (zh) | 模式切换方法、装置和计算机可读存储介质 | |
KR102323892B1 (ko) | 멀티 터치 가상 마우스 | |
US8081170B2 (en) | Object-selecting method using a touchpad of an electronic apparatus | |
WO2021203815A1 (zh) | 页面操作方法、装置、终端及存储介质 | |
CN104714637B (zh) | 多边形手势检测及互动方法、装置及计算机程序产品 | |
CN108984096A (zh) | 触控操作方法、装置、存储介质及电子设备 | |
CN101196791A (zh) | 数字文件选取方法与装置 | |
WO2014146516A1 (zh) | 一种左右手交互装置及方法 | |
CN101587390A (zh) | 延伸游标产生方法及其延伸游标产生装置 | |
CN113535057B (zh) | 一种手势交互方法及终端设备 | |
KR20210023434A (ko) | 디스플레이장치 및 그 제어방법 | |
US20150153925A1 (en) | Method for operating gestures and method for calling cursor | |
WO2023231860A1 (zh) | 输入方法、装置、设备和存储介质 |
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: 19826916 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: 19826916 Country of ref document: EP Kind code of ref document: A1 |