Touch method, device, equipment and computer readable storage medium
By calculating the number of touch points and the change in the included angle, combined with a time threshold, the intention of two-finger touch is accurately identified, solving the problem of low operating efficiency in existing technologies and realizing fast and accurate zoom or move operations.
Patent Information
- Application Number
- CN202310133111.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2043-02-17
AI Technical Summary
Existing touch technology cannot effectively distinguish between zoom and move operations of two-finger touch, resulting in low operating efficiency and complex or inconvenient gesture operations.
By calculating the number of touch points, touch point positions, and changes in the included angle, and combining this with a time threshold to determine the touch intent, the system can accurately identify zoom-in or unidirectional movement operations and achieve cross-screen display using a multi-screen splicing processor.
It achieves accurate recognition of zoom and unidirectional movement operations, and makes full use of the convenience of two-finger swipe operation, improving the speed and accuracy of operation.
Smart Images

Figure CN116991300B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent interactive technology, and more specifically to touch control methods, devices, equipment, and computer-readable storage media. Background Technology
[0002] Existing touch technologies can respond based on touch information from a single finger touch or two fingers touch. For example, they can move a file based on the movement trajectory of a single finger touch or zoom the screen based on the relative movement distance of two fingers touch. For two-finger touch, refer to... Figure 1a It is known that when two touch points move unidirectionally from their original positions F1 and F2 to positions G1 and G2 respectively to achieve a unidirectional touch control intention, due to operating habits, the distance between G1 and G2 may be greater than the distance between F1 and F2, as shown in the figure. Existing technologies either only define unidirectional movement operations for two fingers or only define zoom operations for two fingers, failing to distinguish between movement and zoom in the case of Figure 1, which involves both zooming and movement. Alternatively, existing technologies may interpret touch control as zooming based on the movement of the touch points in directions 1 and 2, and simultaneously interpret it as unidirectional movement based on the movement of the touch points in direction 3. In short, existing technologies cannot truly distinguish between the aforementioned two touch control intentions, thus failing to fully utilize the convenience of two-finger touch control.
[0003] In addition, existing technologies often use gesture operations by pre-defining complex and specific movement trajectories (such as the character W) to correspond to specific operation commands, or by using multiple steps. For example, first inputting W to put the screen into layout adjustment mode, and then adjusting the layout of the display window on the screen by continuing to recognize the direction of the gesture movement.
[0004] In other words, existing technologies that allow for finger-based operations are very limited, inconvenient, and inefficient. Summary of the Invention
[0005] In view of the above-mentioned problems in the prior art, this application provides a touch control method, apparatus, device and computer-readable storage medium.
[0006] A first aspect of this application provides a touch method, the method comprising:
[0007] Receive touch information from the screen;
[0008] Calculate the number of contacts. When the number of contacts is 2, obtain the first time when the number of contacts is 2, as well as the first and second contact positions at the first time. Calculate the direction of the first connection between the first and second contacts, and enter a waiting state.
[0009] When the waiting time exceeds the first time threshold, the angle between the first touch point and the first connecting line direction, and the angle between the second touch point and the first connecting line direction are obtained. It is determined whether the angle between the first touch point and the angle between the second touch point are both less than the first angle threshold within the second threshold time. If so, the touch is determined to be a magnification operation. If not, the second time when any one of the angles between the first touch point and the second touch point is greater than the first angle threshold is recorded. The first touch point position and the second touch point position at the second time are obtained. The second time angle formed by the line connecting the first touch point position at the second time and the first touch point position at the first time and the line connecting the second touch point position at the second time and the second touch point position at the first time is calculated, and the waiting state is continued.
[0010] When the waiting time is greater than the third time threshold, the first touch point position and the second touch point position at this time are obtained, and the third time angle formed by the line connecting the first touch point position at this time and the first touch point position at the second time and the line connecting the second touch point position at this time and the second touch point position at the second time is calculated. It is then determined whether the angle is greater than the second threshold angle. If it is, the touch is judged as a zoom operation; otherwise, the touch is judged as a one-way movement operation.
[0011] According to some embodiments of the present invention, the first time threshold is 100ms.
[0012] According to some embodiments of the present invention, the method includes: when the touch is determined to be a zoom operation, performing a zoom operation on a display window on the screen according to the touch information; when the touch is determined to be a one-way movement operation, performing a corresponding operation on the content of the display window on the screen according to the touch information.
[0013] According to some embodiments of the present invention, the method includes: when the touch is determined to be a zoom operation, performing a zoom operation on the image on the screen according to the touch information; when the touch is determined to be a one-way movement operation, performing one-way movement on the image on the screen according to the touch information.
[0014] According to some embodiments of the present invention, the screen is formed by splicing at least two sub-screens via a multi-screen splicing processor, and the touch information comes from the first sub-screen on the screen; when the touch is determined to be a one-way movement operation, the multi-screen splicing processor is controlled to output the display window of the first sub-screen to other sub-screens for display, or the multi-screen splicing processor is controlled to output the display window of the first sub-screen to the first sub-screen and other sub-screens for display.
[0015] This application also provides a touch device, the device comprising a receiving unit, a judging unit, a first execution unit, and a second execution unit; wherein:
[0016] The receiving unit is used to receive touch information from the screen;
[0017] The judgment unit is used to calculate the number of contacts. When the number of contacts is 2, it obtains the first time when the number of contacts is 2, the position of the first contact and the position of the second contact at the first time, and calculates the direction of the first connection between the first contact and the second contact, and enters the waiting state.
[0018] When the waiting time exceeds the first time threshold, obtain the angle between the first touch point and the direction of the first connection, and the angle between the second touch point and the direction of the first connection. Determine whether the angle between the first touch point and the angle between the second touch point are both less than the first angle threshold within the second threshold time. If so, the touch is judged as a magnification operation. If not, record the second time when any one of the angles between the first touch point and the second touch point is greater than the first angle threshold, obtain the first touch point position and the second touch point position at the second time, calculate the second time angle formed by the line connecting the first touch point position at the second time and the first touch point position at the first time and the line connecting the second touch point position at the second time and the second touch point position at the first time, and continue to enter the waiting state.
[0019] When the waiting time is greater than the third time threshold, the first touch point position and the second touch point position at this time are obtained, and the third time angle formed by the line connecting the first touch point position at this time and the first touch point position at the second time and the line connecting the second touch point position at this time and the second touch point position at the second time is calculated. It is then determined whether the angle is greater than the second threshold angle. If it is, the touch is judged as the first operation; otherwise, the touch is judged as the second operation.
[0020] The first execution unit is used to execute the action corresponding to the first operation when the judgment unit determines that the touch is the first operation;
[0021] The second execution unit is used to execute the action corresponding to the second operation when the judgment unit determines that the touch is a second operation.
[0022] According to some embodiments of the present invention, when the touch is determined to be a zoom operation, the first execution unit performs a zoom operation on the display window on the screen according to the touch information; when the touch is determined to be a one-way movement operation, the second execution unit performs a corresponding operation on the content of the display window on the screen according to the touch information.
[0023] According to some embodiments of the present invention, the screen is formed by splicing at least two sub-screens via a multi-screen splicing processor, and the touch information comes from the first sub-screen on the screen; when the touch is determined to be a one-way movement operation, the second execution unit controls the multi-screen splicing processor to output the display window of the first sub-screen to other sub-screens for display, or controls the multi-screen splicing processor to output the display window of the first sub-screen to the first sub-screen and other sub-screens for display.
[0024] This application also provides a touch device, wherein the device includes a memory and a processor, wherein,
[0025] The memory is used to store executable program code;
[0026] The processor is used to read executable program code stored in the memory to execute the touch method.
[0027] This application also provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the touch method.
[0028] This invention enables precise identification of magnification and one-way movement operations, allowing for the full utilization of two-finger sliding operations to quickly and accurately achieve predefined magnification or movement operations. Attached Figure Description
[0029] Figure 1a This shows a common trajectory for two-point touch.
[0030] Figure 1b A flowchart of a two-contact touch method according to some embodiments of the present invention is shown.
[0031] Figure 2a Figures 2b and 2c show schematic diagrams of the touch trajectory at various time points.
[0032] Figure 3 This is a schematic diagram of the structure of a two-contact touch device according to some embodiments of the present invention.
[0033] Figure 4 This is a schematic structural diagram of a touch device according to some embodiments of the present invention. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0035] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other.
[0036] According to some embodiments of the present invention, such as Figure 1b As shown, the touch method includes:
[0037] S11: Receive touch information from the screen.
[0038] In this application, the screen encompasses a screen that integrates touch and display, including screens that display images in various ways and enable touch functionality. Touch input can be captured by the screen and its attached sensors using various methods such as inductive, magnetic, thermal, and optical sensing, and processed by a processor or server. The touch screen may include, for example, capacitive, resistive, infrared bezel-type, or surface acoustic wave touch input and display screens.
[0039] The touchscreen may also include screens capable of directly displaying images (such as LCD displays), with an infrared light curtain and an infrared camera arranged on the screen surface. When a finger touches a display window on the screen surface, the infrared camera attached to the screen can capture touch information of the finger's touch point, including, for example, touch location information. The touch signal is then transmitted to a processor, server, or computer for subsequent judgment and processing, as described below. The infrared light curtain may be emitted by infrared laser diodes located at the edge of the screen; for example, the infrared laser diode array may be positioned above any edge of the screen.
[0040] The touchscreen may also include, for example, a screen with an infrared light screen disposed on its surface, and a projection device for displaying images and an infrared camera disposed on the screen. When a finger touches a display window on the screen surface, the infrared camera attached to the screen can capture the touch signal of the finger's touch point, which may include, for example, touch position information. The touch information is then transmitted to a processor, server, or computer for subsequent judgment and processing, as will be described below. The infrared light screen may be implemented, for example, by an infrared laser emitter placed at the edge of the screen or an infrared light screen projector placed behind the screen.
[0041] In addition to the above, there are various other screen touch technologies and touch screens in the prior art. Since these technologies are well known to those skilled in the art, they are not described in detail here.
[0042] In this application, the screen can also be formed by splicing together at least two sub-screens, for example, by using a multi-screen splicing processor. The spliced sub-screens can be placed adjacent to each other in space or set up separately in space. Here, the multi-screen splicing processor can also enable at least two sub-screens to display different signal source content, or the same signal source content, or it can enable at least two sub-screens to display different images, and the different images can be spliced together to form a complete signal source content or image content.
[0043] The splicing processor can be implemented in hardware or in software within a server. Since splicing processors are well known to those skilled in the art, such as the Bird Multi-Screen Splicing Controller produced by Bird Technology, which is sold on the market, they will not be described in detail here.
[0044] The content of at least one computer is displayed on at least two sub-screens through a corresponding display window. For example, the content of each computer is displayed on different sub-screens through its own display window. The server, through a multi-screen splicing processor, can read the correspondence between the content of each computer and each sub-screen, as well as the layout information of each sub-screen on the large screen formed by splicing.
[0045] S12: Calculate the number of contacts. When the number of contacts is 2, obtain the first time when the number of contacts is 2, the position of the first contact and the position of the second contact at the first time, calculate the direction of the first connection between the first contact and the second contact, and enter the waiting state.
[0046] Based on usage habits, it is not possible to touch the screen with two fingers at the same time. Therefore, this invention needs to monitor the number of touch points in the initial stage, and only proceeds to further calculation and judgment when both touch points are acting on the screen.
[0047] like Figure 2a As shown, the line L connecting A1 and A2 indicates the direction of the first line.
[0048] S13: When the waiting time is greater than the first time threshold, obtain the angle between the first touch point and the first connecting line direction, and the angle between the second touch point and the first connecting line direction. Determine whether the angle between the first touch point and the angle between the second touch point are both less than the first angle threshold within the second threshold time. If yes, the touch is determined to be a magnification operation. If no, record the second time when any one of the angles between the first touch point and the second touch point is greater than the first angle threshold, obtain the first touch point position and the second touch point position at the second time, calculate the second time angle formed by the line connecting the first touch point position at the second time and the line connecting the second touch point position at the second time and the second touch point position at the first time, and continue to enter the waiting state.
[0049] Based on experience, the first time threshold can be 100ms, which corresponds to when the user actually begins to take an intentional action.
[0050] like Figure 2aAs shown in the diagram, after a period of waiting, the two contacts move to H1 and H2 respectively. As can be seen from the diagram, H1, H2, and the aforementioned connecting line each form an angle J1 and J2. The two contacts may also move to H11 and H22 respectively. As can be seen from the diagram, H11, H22, and the aforementioned connecting line each form an angle M1 and M2.
[0051] At this point, it is determined whether all the included angles in the diagram are less than a threshold within a certain threshold time period. If they are all less than a threshold, this action is judged as an amplification operation. If not, no judgment is made until a certain time t, when it is determined that one of the included angles J1 or J2 is greater than the threshold. At this time, the positions of the two contact points at time t, Ht1 and Ht2, are recorded, and the included angle K2 or G2 is calculated (see...). Figure 2b and Figure 2c ), and continue to enter the waiting state;
[0052] S14: When the waiting time is greater than the third time threshold, obtain the first touch position and the second touch position at this time, and calculate the third time angle formed by the line connecting the first touch position at this time and the first touch position at the second time and the line connecting the second touch position at this time and the second touch position at the second time, and determine whether it is greater than the second threshold angle. If it is, the touch is judged as a zoom operation; if not, the touch is judged as a one-way movement operation.
[0053] refer to Figure 2b and 2c In step S13, the positions of the two contacts at time t are recorded, denoted as Ht1 and Ht2. The system then enters a waiting state from time t, waiting for a threshold time. Upon completion of the waiting period, in step S14, the positions of the contacts C1 and C2 (or...) are obtained. Figure 2c D1, D2), and record the angle K1 between C1Ht1 and C2Ht2 shown in the figure. Figure 2c (G1). If the included angle (set as G1) is greater than the threshold, the touch is judged as a zoom operation; otherwise (set as K1), the touch is judged as a one-way movement operation.
[0054] According to some embodiments of the present invention, when the touch is determined to be a zoom operation, a zoom operation is performed on the display window on the screen according to the touch information; when the touch is determined to be a one-way movement operation, a corresponding operation is performed on the content of the display window on the screen according to the touch information.
[0055] According to some embodiments of the present invention, the screen is formed by splicing at least two sub-screens via a multi-screen splicing processor, and the touch information comes from the first sub-screen on the screen; when the touch is determined to be a one-way movement operation, the multi-screen splicing processor is controlled to output the display window of the first sub-screen to other sub-screens for display, or the multi-screen splicing processor is controlled to output the display window of the first sub-screen to the first sub-screen and other sub-screens for display.
[0056] According to some embodiments of the present invention, when the touch is determined to be a zoom operation, the image on the screen is zoomed in according to the touch information; when the touch is determined to be a one-way movement operation, the image on the screen is moved in one direction according to the touch information.
[0057] This invention enables precise identification of magnification and one-way movement operations, allowing for the full utilization of two-finger sliding operations to quickly and accurately achieve predefined magnification or movement operations.
[0058] Figure 3 This is a schematic diagram of the structure of a touch device according to another embodiment of the present invention, as shown below. Figure 3 As shown, the device includes a receiving unit 31, a judging unit 32, a first execution unit 33, and a second execution unit 34.
[0059] The receiving unit is used to receive touch information from the screen. The judging unit is used to calculate the number of touch points. When the number of touch points is 2, it obtains the first time when the number of touch points is 2, the position of the first touch point and the position of the second touch point at the first time, and calculates the direction of the first connection between the first touch point and the second touch point, and enters a waiting state.
[0060] When the waiting time exceeds the first time threshold, obtain the angle between the first touch point and the direction of the first connection, and the angle between the second touch point and the direction of the first connection. Determine whether the angle between the first touch point and the angle between the second touch point are both less than the first angle threshold within the second threshold time. If so, the touch is judged as a magnification operation. If not, record the second time when any one of the angles between the first touch point and the second touch point is greater than the first angle threshold, obtain the first touch point position and the second touch point position at the second time, calculate the second time angle formed by the line connecting the first touch point position at the second time and the first touch point position at the first time and the line connecting the second touch point position at the second time and the second touch point position at the first time, and continue to enter the waiting state.
[0061] When the waiting time is greater than the third time threshold, the first touch position and the second touch position at this time are obtained, and the third time angle formed by the line connecting the first touch position at this time and the first touch position at the second time and the line connecting the second touch position at this time and the second touch position at the second time is calculated. It is then determined whether the angle is greater than the second threshold angle. If it is, the touch is judged as the first operation; otherwise, the touch is judged as the second operation.
[0062] The first execution unit is used to execute the action corresponding to the first operation when the judgment unit determines that the touch is the first operation;
[0063] The second execution unit is used to execute the action corresponding to the second operation when the judgment unit determines that the touch is a second operation.
[0064] According to some embodiments of the present invention, when the touch is determined to be a zoom operation, the first execution unit performs a zoom operation on the display window on the screen according to the touch information; when the touch is determined to be a one-way movement operation, the second execution unit performs a corresponding operation on the content of the display window on the screen according to the touch information.
[0065] According to some embodiments of the present invention, the screen is formed by splicing at least two sub-screens via a multi-screen splicing processor, and the touch information comes from the first sub-screen on the screen; when the touch is determined to be a one-way movement operation, the second execution unit controls the multi-screen splicing processor to output the display window of the first sub-screen to other sub-screens for display, or controls the multi-screen splicing processor to output the display window of the first sub-screen to the first sub-screen and other sub-screens for display.
[0066] According to some embodiments of the present invention, when the touch is determined to be a zoom operation, the image on the screen is zoomed in according to the touch information; when the touch is determined to be a one-way movement operation, the image on the screen is moved in one direction according to the touch information.
[0067] Figure 4 This is a schematic structural diagram of a touch device according to another embodiment of the present invention. At least a portion of the touch device can be implemented by touch device 400, such as... Figure 4 As shown, the touch device 400 includes a processor 41, a memory 42, and a bus 43.
[0068] In some instances, the touch device 400 may further include an input device 401, an input port 402, an output port 403, and an output device 404. The input port 402, processor 41, memory 42, and output port 403 are interconnected via a bus 43. The input device 401 and output device 404 are connected to the bus 43 via the input port 402 and output port 403, respectively, and thus connected to other components of the touch device 400. It should be noted that the output interface and input interface here can also be represented by I / O interfaces. Specifically, the input device 401 receives input information from the outside and transmits the input information to the processor 41 via the input port 402. The processor 41 processes the input information based on computer-executable instructions stored in the memory 42 to generate output information, temporarily or permanently stores the output information in the memory 42, and then transmits the output information to the output device 404 via the output port 403. The output device 404 outputs the output information to the outside of the touch device 400.
[0069] The aforementioned memory 42 includes a large-capacity memory for data or instructions. For example, and not limitingly, memory 42 may include an HDD, floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where suitable, memory 42 may include removable or non-removable (or fixed) media. Where suitable, memory 42 may be internal or external to touch device 400. In a particular embodiment, memory 42 is a non-volatile solid-state memory. In a particular embodiment, memory 42 includes read-only memory (ROM). Where suitable, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0070] Bus 43 includes hardware, software, or both, that couples components of touch device 400 together. For example, and not limitingly, bus 43 may include Accelerated Graphics Port (AGP) or other graphics buses, Enhanced Industry Standard Architecture (EISA) buses, Front Side Bus (FSB), HyperTransport (HT) interconnects, Industry Standard Architecture (ISA) buses, Infinite Bandwidth Interconnects, Low Pin Count (LPC) buses, memory buses, Microchannel Architecture (MCA) buses, Peripheral Component Interconnect (PCI) buses, PCI-Express (PCI-X) buses, Serial Advanced Technology Attachment (SATA) buses, Video Electronics Standards Association Local (VLB) buses, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 43 may include one or more buses 43. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0071] When passing Figure 4 When the touch device 400 shown implements a touch device, the input device 401 receives touch information from a finger touch input in a display window on the screen. In a particular embodiment, the I / O interface connected to the output device may include hardware, software, or both, providing one or more interfaces for communication between the touch device 400 and one or more I / O devices. Where appropriate, the touch device 400 may include one or more of these I / O devices. One or more of these I / O devices may allow communication between a person and the touch device 400. For example, and not limitingly, the I / O device may include a touchscreen, a video camera, another suitable I / O device, or a combination of two or more of these. The I / O device may include one or more sensors. Embodiments of the present invention contemplate any suitable I / O device and any suitable I / O interface for them. Where appropriate, the I / O interface may include one or more devices or a software driver capable of allowing the processor 41 to drive one or more of these I / O devices. Where appropriate, the I / O interface may include one or more I / O interfaces. Although specific I / O interfaces are described and shown in embodiments of the present invention, embodiments of the present invention contemplate any suitable I / O interface. The processor 41 is based on computer-executable instructions stored in memory 42, including:
[0072] Receive touch information from the screen;
[0073] Calculate the number of contacts. When the number of contacts is 2, obtain the first time when the number of contacts is 2, as well as the first and second contact positions at the first time. Calculate the direction of the first connection between the first and second contacts, and enter a waiting state.
[0074] When the waiting time exceeds the first time threshold, the angle between the first touch point and the first connecting line direction, and the angle between the second touch point and the first connecting line direction are obtained. It is determined whether the angle between the first touch point and the angle between the second touch point are both less than the first angle threshold within the second threshold time. If so, the touch is determined to be a magnification operation. If not, the second time when any one of the angles between the first touch point and the second touch point is greater than the first angle threshold is recorded. The first touch point position and the second touch point position at the second time are obtained. The second time angle formed by the line connecting the first touch point position at the second time and the first touch point position at the first time and the line connecting the second touch point position at the second time and the second touch point position at the first time is calculated, and the waiting state is continued.
[0075] When the waiting time is greater than the third time threshold, the first touch position and the second touch position at this time are obtained, and the third time angle formed by the line connecting the first touch position at this time and the first touch position at the second time and the line connecting the second touch position at this time and the second touch position at the first time is calculated. It is then determined whether the angle is greater than the second threshold angle. If it is, the touch is judged as a zoom operation; otherwise, the touch is judged as a one-way movement operation.
[0076] The judgment result can then be output via output port 403 and output device 404 when needed.
[0077] This application also provides a computer-readable storage medium that may include instructions that, when executed on a computer, cause the computer to perform the above-described touch method.
[0078] In the above examples, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)).
[0079] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0080] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A touch control method, wherein, The method includes: Receive touch information from the screen; Calculate the number of contacts. When the number of contacts is 2, obtain the first time when the number of contacts is 2, the position of the first contact and the position of the second contact at the first time, and calculate the direction of the first connection between the first contact and the second contact, and enter the waiting state. The connection between the first contact and the second contact indicates the direction of the first connection. When the waiting time is greater than the first time threshold, the angle between the first touch point and the direction of the first connecting line generated after the first touch point moves within the first time threshold is obtained, and the angle between the second touch point and the direction of the first connecting line generated after the second touch point moves within the first time threshold is obtained. It is determined whether the angle between the first touch point and the angle between the second touch point are both less than the first angle threshold within the second time threshold. If so, the touch is determined to be a magnification operation. If not, the second time when any one of the angles between the first touch point and the second touch point is greater than the first angle threshold is recorded, and the first touch point position and the second touch point position at the second time are obtained. The second time angle formed by the line connecting the first touch point position at the second time and the first touch point position at the first time and the line connecting the second touch point position at the second time and the second touch point position at the first time is calculated, and the waiting state is continued. When the waiting time is greater than the third time threshold, the first touch point position and the second touch point position at this time are obtained, and the third time angle formed by the line connecting the first touch point position at this time and the first touch point position at the second time and the line connecting the second touch point position at this time and the second touch point position at the second time is calculated. It is then determined whether the angle is greater than the second threshold angle. If it is, the touch is judged as a zoom operation; otherwise, the touch is judged as a one-way movement operation.
2. The touch method according to claim 1, wherein, The first time threshold is 100ms.
3. The touch method according to claim 1, comprising: When the touch is determined to be a zoom operation, the display window on the screen is zoomed in based on the touch information; when the touch is determined to be a one-way movement operation, the corresponding operation is performed on the content in the display window on the screen based on the touch information.
4. The touch method according to claim 1, comprising: When the touch is determined to be a zoom operation, the image on the screen is zoomed in based on the touch information; when the touch is determined to be a one-way movement operation, the image on the screen is moved in one direction based on the touch information.
5. The touch method according to claim 1, wherein, The screen is composed of at least two sub-screens spliced together by a multi-screen splicing processor. The touch information comes from the first sub-screen on the screen. When the touch is determined to be a one-way movement operation, the multi-screen splicing processor is controlled to output the display window of the first sub-screen to other sub-screens for display, or the multi-screen splicing processor is controlled to output the display window of the first sub-screen to the first sub-screen and other sub-screens for display.
6. A touch device, the device comprising a receiving unit, a judging unit, a first execution unit, and a second execution unit; wherein: The receiving unit is used to receive touch information from the screen; The judgment unit is used to calculate the number of contacts. When the number of contacts is 2, it obtains the first time when the number of contacts is 2, the first contact position and the second contact position at the first time, and calculates the direction of the first connection between the first contact and the second contact, and enters the waiting state. The connection between the first contact and the second contact indicates the direction of the first connection. When the waiting time exceeds the first time threshold, obtain the angle between the first touch point and the direction of the first connecting line after the first touch point moves within the first time threshold, and the angle between the second touch point and the direction of the first connecting line after the second touch point moves within the first time threshold. Determine whether the angle between the first touch point and the angle between the second touch point are both less than the first angle threshold within the second time threshold. If so, the touch is judged as a magnification operation. If not, record the second time when any one of the angles between the first touch point and the second touch point is greater than the first angle threshold, obtain the first touch point position and the second touch point position at the second time, calculate the second time angle formed by the line connecting the first touch point position at the second time and the first touch point position at the first time and the line connecting the second touch point position at the second time and the second touch point position at the first time, and continue to enter the waiting state. When the waiting time is greater than the third time threshold, the first touch point position and the second touch point position at this time are obtained, and the third time angle formed by the line connecting the first touch point position at this time and the first touch point position at the second time and the line connecting the second touch point position at this time and the second touch point position at the second time is calculated. It is then determined whether the angle is greater than the second threshold angle. If it is, the touch is judged as the first operation; otherwise, the touch is judged as the second operation. The first execution unit is used to execute the action corresponding to the first operation when the judgment unit determines that the touch is the first operation; The second execution unit is used to execute the action corresponding to the second operation when the judgment unit determines that the touch is a second operation.
7. The touch device according to claim 6, wherein, When the touch is determined to be a zoom operation, the first execution unit performs a zoom operation on the display window on the screen according to the touch information; when the touch is determined to be a one-way movement operation, the second execution unit performs a corresponding operation on the content of the display window on the screen according to the touch information.
8. The touch device according to claim 6, wherein, The screen is composed of at least two sub-screens spliced together by a multi-screen splicing processor. The touch information comes from the first sub-screen on the screen. When the touch is determined to be a one-way movement operation, the second execution unit controls the multi-screen splicing processor to output the display window of the first sub-screen to other sub-screens for display, or controls the multi-screen splicing processor to output the display window of the first sub-screen to the first sub-screen and other sub-screens for display.
9. A touch device, wherein, The device includes a memory and a processor, wherein, The memory is used to store executable program code; The processor is used to read executable program code stored in the memory to execute the touch method according to any one of claims 1-5.
10. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the touch method according to any one of claims 1-5.
Citation Information
Patent Citations
Multi-point touch control interactive large screen system and control method of multi-point touch control interactive large screen system
CN104281335A
Methods and systems for connecting multiple devices to form a combined virtual touch screen
US20160078840A1