Touch resolution dynamic adjustment method and device, storage medium and interactive panel
By dynamically adjusting the number of detection points on the touchscreen and mapping the application scenario and touch coefficient, the problems of latency at high resolution and insufficient accuracy at low resolution are solved, thus achieving high accuracy and low latency requirements in different application scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU SHIYUAN ELECTRONICS CO LTD
- Filing Date
- 2022-01-25
- Publication Date
- 2026-05-08
AI Technical Summary
Existing touchscreens suffer from touch latency issues at high touch resolutions and insufficient touch accuracy at low touch resolutions, making it difficult to meet the needs of different application scenarios.
By dynamically adjusting the touch resolution on the touchscreen, the target touch resolution is obtained based on the application scenario identifier and the touch coefficient mapping relationship, and the number of detection points on the touchscreen is adjusted to achieve high touch accuracy and low touch latency.
Dynamically adjusting the touch resolution can meet the needs of high touch accuracy and low touch latency in different application scenarios, thereby improving the user experience.
Smart Images

Figure CN116540889B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of multimedia technology, and in particular to a method, apparatus, storage medium, and interactive flat panel for dynamically adjusting touch resolution. Background Technology
[0002] Touchscreen technology is a new type of human-computer interaction input method. Compared with traditional keyboard and mouse input methods, touchscreen input is more intuitive. With the development of touchscreen technology, touchscreens are increasingly being used in electronic products such as smart tablets and laptops. A touchscreen typically consists of multiple touch points arranged in an array. The number of touch points is fixed after the touchscreen is manufactured. During use, some touch points can be controlled to respond to the user's touch operations and generate touch data, thereby locating the user's touch position. These touch points that can respond to the user's touch operations and generate touch data are called touch detection points. Generally, touch resolution is used to represent the number of touch detection points on a touchscreen.
[0003] In the process of developing this invention, the inventors discovered that while high touch resolution can achieve high touch accuracy, it also means a large volume of touch data is collected. Since the data transmission rate is fixed, sending such large amounts of touch data to the touchscreen's data processing system results in significant touch latency. Conversely, low touch resolution means a smaller volume of touch data is collected, achieving low touch latency, but this reduces the number of touch points, leading to lower touch accuracy. In applications where writing is performed on a touchscreen, high touch resolution is required for precise writing; if the current touchscreen resolution is lower than a high touch resolution, the user's touch accuracy requirements cannot be met. Conversely, in applications where application settings are performed on a touchscreen, low touch resolution is required for low touch latency; if the current touchscreen resolution is higher than a low touch resolution, latency is increased. Summary of the Invention
[0004] Based on this, the purpose of the present invention is to provide a method, apparatus, storage medium and interactive flat panel for dynamically adjusting touch resolution, which has the advantages of dynamically adjusting touch resolution and reducing touch latency.
[0005] According to a first aspect of the embodiments of this application, a method for dynamically adjusting touch resolution is provided, comprising the following steps:
[0006] When a touch operation on the touchscreen meets preset conditions, the application scenario identifier of the touchscreen and the current display resolution of the touchscreen are obtained.
[0007] Based on the preset mapping relationship between application scenario identifiers and touch coefficients, the touch coefficient corresponding to the current application scenario identifier is obtained;
[0008] Obtaining the target touch resolution based on the display resolution and the touch coefficient includes:
[0009] Obtain the maximum touch resolution of the touchscreen; multiply the current display resolution and the touch coefficient according to the current display resolution and the touch coefficient, and use the product as the first touch resolution to match; compare the first touch resolution with the maximum touch resolution, and use the minimum value of the comparison results as the target touch resolution of the touchscreen;
[0010] The touch resolution of the touchscreen is adjusted to the target touch resolution to detect touch operations on the touchscreen according to the target touch resolution; wherein, the touch resolution is adjusted by controlling some touch points to generate touch data in response to the user's touch operation, and the touch resolution is the number of touch detection points in the touchscreen used to respond to touch operations.
[0011] According to a second aspect of the embodiments of this application, a touch resolution dynamic adjustment device is provided, comprising:
[0012] The application scenario identifier acquisition module is used to acquire the application scenario identifier of the touch screen and the current display resolution of the touch screen when the touch operation on the touch screen meets the preset conditions.
[0013] The touch coefficient acquisition module is used to obtain the touch coefficient corresponding to the current application scenario identifier based on the preset mapping relationship between the application scenario identifier and the touch coefficient.
[0014] A target touch resolution obtaining module, configured to obtain a target touch resolution based on the display resolution and the touch coefficient, includes:
[0015] Obtain the maximum touch resolution of the touchscreen; multiply the current display resolution and the touch coefficient according to the current display resolution and the touch coefficient, and use the product as the first touch resolution to match; compare the first touch resolution with the maximum touch resolution, and use the minimum value of the comparison results as the target touch resolution of the touchscreen;
[0016] A touch resolution adjustment module is used to adjust the touch resolution of the touch screen to the target touch resolution, so as to detect touch operations on the touch screen according to the target touch resolution; wherein, the touch resolution is adjusted by controlling some touch points to generate touch data in response to the user's touch operation, and the touch resolution is the number of touch detection points in the touch screen used to respond to touch operations.
[0017] According to a third aspect of the embodiments of this application, an interactive flat panel is provided, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in any one of the preceding claims.
[0018] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the touch resolution dynamic adjustment method as described in any of the preceding claims.
[0019] This application embodiment obtains the current application scenario identifier and the current display resolution of the touchscreen when a touch operation on the touchscreen meets preset conditions; obtains the touch coefficient corresponding to the current application scenario identifier according to a preset mapping relationship between the application scenario identifier and the touch coefficient; obtains the target touch resolution according to the display resolution and the touch coefficient; adjusts the touch resolution of the touchscreen to the target touch resolution to detect touch operations on the touchscreen according to the target touch resolution; wherein, the touch resolution is the number of touch detection points in the touchscreen used to respond to touch operations, thereby dynamically adjusting the touch resolution of the touchscreen according to the current display resolution of the touchscreen and the touch coefficient corresponding to the current application scenario, dynamically achieving the requirements of high touch accuracy and low touch latency.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.
[0021] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description
[0022] Figure 1 A flowchart illustrating a method for dynamically adjusting touch resolution according to an embodiment of this application;
[0023] Figure 2 This application provides a flowchart illustrating the process of obtaining the current application scenario identifier and the current display resolution of a touch screen when a touch operation on a touch screen meets preset conditions, according to one embodiment of the present application.
[0024] Figure 3 A flowchart illustrating the process of obtaining the application scene identifier and the current display resolution of the touch screen when a touch operation on the touch screen meets preset conditions, as provided in another embodiment of this application;
[0025] Figure 4This is a schematic diagram illustrating a process for obtaining a target touch resolution based on the current display resolution and the touch coefficient, as provided in one embodiment of this application.
[0026] Figure 5 This is a structural block diagram of a touch resolution dynamic adjustment device provided in one embodiment of this application;
[0027] Figure 6 This is a structural block diagram of an application scenario identifier acquisition module provided in one embodiment of this application;
[0028] Figure 7 This is a structural block diagram of an application scenario identifier acquisition module provided in another embodiment of this application;
[0029] Figure 8 This is a schematic block diagram of the structure of an interactive flat panel provided in one embodiment of this application. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0031] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0032] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0033] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0034] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0035] The touch resolution dynamic adjustment method provided in this embodiment can be executed by a touch resolution dynamic adjustment device. This device can be implemented through software and / or hardware, and can consist of two or more physical entities, or a single physical entity. The touch resolution dynamic adjustment device can be any electronic device with data processing software installed, such as a computer, mobile phone, tablet, or interactive whiteboard, or other smart device.
[0036] For ease of understanding, the embodiments use an interactive flat panel as an example to illustrate dynamically adjustable touch resolution. The interactive flat panel can be an integrated device that uses touch technology to control content displayed on a flat panel and achieve human-computer interaction. It integrates one or more functions such as a projector, electronic whiteboard, screen, audio system, television, and video conferencing terminal.
[0037] Generally, an interactive flat panel includes at least one display screen. For example, an interactive flat panel may have a touch-enabled display screen, which can be resistive, capacitive, infrared, electromagnetic, or surface acoustic wave (SAW) type. In one embodiment, a user can perform touch operations by touching the display screen with their finger or a stylus. The interactive flat panel detects the touch location and determines a response scheme based on the corresponding display content, thus implementing the touch function. For example, if the touch location indicates that the corresponding display content is a control for a specific function, the response scheme is to execute that function. It is understood that in practical applications, users can also perform control operations using a keyboard, mouse, physical buttons, etc.
[0038] Typically, an interactive flat panel is equipped with at least one operating system, including but not limited to Android, Linux, and Windows. In one embodiment, the interactive flat panel can install at least one application based on the operating system; for example, it may have an electronic whiteboard application with drawing capabilities. This application can be a built-in application of the operating system or an application downloaded from a third-party device or server. The touch data compression device can also be the application itself. Optionally, in addition to drawing capabilities, the application may also have other editing functions, such as writing, inserting tables, inserting images, inserting multimedia, inserting graphics, and drawing tables.
[0039] The interactive flat panel may include one or more processing cores, which can implement the touch data compression method of this application through pure software or through a combination of software and hardware. For example, it can be implemented using at least one hardware form selected from digital signal processing, field-programmable gate arrays, and programmable logic arrays. It can integrate one or more of the following: a central processing unit, an image processor, and a modem. The interactive flat panel can run an application for the touch data compression method. The application can be presented in a form adapted to the interactive flat panel, such as an APP application. In some examples, it can also be presented in the form of, for example, a system plugin or a web page plugin.
[0040] Example 1
[0041] To better understand the technical solution of this application, the touch resolution is described below.
[0042] Interactive flat panels typically include multiple touch points arranged in an array. The number of touch points is fixed after the interactive flat panel is manufactured. When the display screen on the interactive flat panel is an infrared touchscreen, infrared emitters and receivers are installed on opposite sides of the infrared touchscreen in the X and Y directions, respectively, to emit and receive detection light. The intersection of the detection light rays in the X and Y directions is the touch point. For example, if the number of infrared emitters in the X and Y directions of the infrared touchscreen is 1920 and 1080 respectively, then the number of touch points on the infrared touchscreen is 1920. 1080.
[0043] In the use of an infrared touchscreen, some touch points can be controlled to generate touch data in response to the user's touch operation, thereby locating the user's touch position. These touch points that generate touch data in response to the user's touch operation are called touch detection points, and touch resolution indicates the number of touch detection points on the touchscreen. A higher touch resolution results in more touch detection points, and vice versa. For example, if the number of infrared emitters in the X and Y directions of an infrared touchscreen is 1920 and 1080 respectively, then the number of touch points on the infrared touchscreen is 1920. 1080, at this point, the touch resolution of the infrared touchscreen is 1920. 1080; however, by controlling the infrared touchscreen to perform interlaced scanning in the X direction, the number of touch detection points on the infrared touchscreen becomes 960. 1080, at this point, the touch resolution of the infrared touchscreen is 960. 1080. Similarly, the infrared touchscreen can be controlled to perform interlaced scanning in the Y direction, thereby changing the number of detection points of the infrared touchscreen to 1920. 540, touch resolution is 1920 540.
[0044] Similarly, when the display on the interactive flat panel is a capacitive touchscreen or other touchscreen, the touch resolution can be adjusted by controlling some touch points to respond to the user's touch operation and generate touch data.
[0045] For example, when the display screen on an interactive flat panel is a capacitive touchscreen, it typically has M+N physical capacitive touch sensors. These M+N interleaved sensors form M×N capacitive sensing points. When a user's finger approaches the touchscreen, the capacitance value of these sensing points changes accordingly. By controlling some of these sensing points to respond to the user's touch operation and generate touch data, the user's touch position can be located. These capacitive sensing points that generate touch data in response to the user's touch operation are called touch detection points, and touch resolution indicates the number of touch detection points on the capacitive touchscreen. A higher touch resolution indicates a larger number of touch detection points, and vice versa.
[0046] For example, when the display on an interactive flat panel is a resistive touchscreen, the resistive touchscreen has a structure of a thin film plus glass, with an ITO conductive coating on the adjacent surfaces of the film and glass. When a user touches the resistive touchscreen, the two mutually insulated ITO conductive coatings make contact at the touch point. A corresponding electrical signal is transmitted via a sensor, which can control some touch points to respond to the user's touch operation and generate touch data, thereby locating the user's touch position. The touch points that generate touch data in response to the user's touch operation are called touch detection points, and the touch resolution indicates the number of touch detection points on the resistive touchscreen. A higher touch resolution means more touch detection points, and vice versa.
[0047] Please see Figure 1 This is a flowchart illustrating a method for dynamically adjusting touch resolution according to an embodiment of this application. The method for dynamically adjusting touch resolution according to an embodiment of this application includes the following steps:
[0048] S10. When the touch operation on the touch screen meets the preset conditions, obtain the current application scenario identifier of the touch screen and the current display resolution of the touch screen.
[0049] When a touch operation on the touchscreen meets preset conditions, it can open a preset application or a preset control. The application scenario identifier is used to identify and mark the application scenario and can be a number, letter, or other identifier. The application scenario is launching a preset application on the touchscreen or launching a preset control within that application. Display resolution is the resolution of the display screen when displaying images; specifically, display resolution refers to the number of horizontal and vertical pixels across the entire visible area of the display screen. In this embodiment, when a user performs a touch operation on the touchscreen, and the touch operation meets preset conditions, the user enters a specific application scenario, and the application scenario identifier and current display resolution corresponding to the current application scenario are obtained.
[0050] S20. Based on the preset mapping relationship between application scenario identifiers and touch coefficients, obtain the touch coefficient corresponding to the current application scenario identifier.
[0051] Touch coefficient is an indicator used to measure touch resolution. Generally, higher touch resolution corresponds to a larger touch coefficient, and lower touch resolution corresponds to a smaller touch coefficient. In the preset mapping relationship between application scenario identifiers and touch coefficients, each application scenario identifier corresponds to a unique touch coefficient. In this embodiment, the preset mapping relationship between application scenario identifiers and touch coefficients is created as a mapping table. For example, application scenario identifier k1 corresponds to touch coefficient e1, application scenario identifier k2 corresponds to touch coefficient e2, and so on. After obtaining the current application scenario identifier, the mapping table is searched based on the application scenario identifier to obtain the touch coefficient corresponding to the current application scenario identifier.
[0052] S30. Obtain the target touch resolution based on the display resolution and the touch coefficient.
[0053] Since each pixel touched by a user corresponds to one or more touch detection points, the target touch resolution of the touchscreen can be obtained based on the current display resolution and touch coefficient of the touchscreen.
[0054] S40. Adjust the touch resolution of the touch screen to the target touch resolution to detect touch operations on the touch screen according to the target touch resolution; wherein, the touch resolution is the number of touch detection points within the touch screen used to respond to touch operations.
[0055] In touchscreen writing applications, the writing process involves adjusting the thickness of the handwriting and recognizing the strokes of the characters, thus requiring a large number of touch detection points, i.e., setting a high touch resolution to achieve fine writing. In touchscreen application settings, which involve enabling and disabling multiple application options, rapid response is required, i.e., setting a low touch resolution to achieve low touch latency. In this embodiment, after obtaining the target touch resolution corresponding to different application scenarios, the touch resolution of the touchscreen is adjusted to the target touch resolution to detect touch operations on the touchscreen according to the target touch resolution. For example, the touch resolution of the touchscreen is 1920. 1080p, target touch resolution is 480p. 270, the number of touch detection points that will generate touch data is increased from 1920. 1080 adjusted to 480 270. Touch operations on the touchscreen are detected according to the adjusted target touch resolution to achieve high touch accuracy and low touch latency. The touch operation is any touch action performed by the user on the touchscreen; in response to the touch operation, the touch detection point generates touch data.
[0056] By applying the embodiments of this application, when a touch operation on the touchscreen meets preset conditions, the application scenario identifier and the current display resolution of the touchscreen are obtained; according to the preset mapping relationship between the application scenario identifier and the touch coefficient, the touch coefficient corresponding to the current application scenario identifier is obtained; according to the display resolution and the touch coefficient, the target touch resolution is obtained; the touch resolution of the touchscreen is adjusted to the target touch resolution, so as to detect touch operations on the touchscreen according to the target touch resolution; wherein, the touch resolution is the number of touch detection points in the touchscreen used to respond to touch operations, thereby dynamically adjusting the touch resolution of the touchscreen according to the current display resolution of the touchscreen and the touch coefficient corresponding to the current application scenario, and dynamically achieving the requirements of high touch accuracy and low touch latency.
[0057] In an optional embodiment, please refer to Figure 2 The preset conditions include at least one preset application identifier. When the touch operation on the touch screen in step S10 meets the preset conditions, the current application scene identifier and the current display resolution of the touch screen are obtained, including S11~S12, as follows:
[0058] S11. When the startup trigger operation of the first application on the touch screen is detected, the application identifier of the first application and the current display resolution of the first application are obtained.
[0059] The interactive whiteboard has multiple applications installed. Application identifiers are used to identify and mark the applications installed on the whiteboard; these identifiers can include the application's name, type, installation path, etc. The first application is a third-party application installed on the whiteboard, such as WPS Spreadsheet or WPS Docs. The application identifier for the first application is used to identify and mark the first application installed on the whiteboard; it can include the application's name, type, installation path, etc. The current display resolution of the first application is the resolution used when displaying images. Specifically, WPS Spreadsheet is used for data entry, editing, presentation, and creating various complex tables, requiring dense touch detection points; therefore, a high touch resolution is needed to meet high touch accuracy requirements. WPS Docs is used for document presentations and uses a lower touch resolution to reduce touch latency.
[0060] S12. If the application identifier of the first application is a preset application identifier, obtain the application scenario identifier corresponding to the currently launched first application according to the preset mapping relationship between application scenario identifier and application identifier.
[0061] When a user taps the application icon of a first application on the touchscreen, launching the first application, the system listens for the launch of the first application and obtains its application identifier. If the application identifier of the first application is a preset application identifier, then the corresponding application scenario identifier for the first application is obtained according to the preset mapping relationship between application scenario identifiers and application identifiers. If the application identifier of the first application is not a preset application identifier, then the touch resolution of the first application is not adjusted; that is, the touch operation on the touchscreen is detected based on the original touch resolution of the first application. Since different first applications require different touch resolutions, by setting corresponding application scenario identifiers for different applications, the touch resolution of the touchscreen can be automatically and accurately adjusted dynamically.
[0062] In an optional embodiment, before step S12, steps S121-S122 are included, as follows:
[0063] S121. Obtain the application identifier corresponding to the first application on the touch screen;
[0064] S122. A preset application scenario identifier is given to the application identifier, and a mapping relationship between the application identifier and the application scenario identifier is established.
[0065] In this embodiment of the application, by establishing a mapping relationship between application identifier and application scenario identifier, after obtaining the application identifier of the first application, the application scenario identifier corresponding to the currently launched first application can be automatically and quickly obtained according to the mapping relationship.
[0066] In an optional embodiment, please refer to Figure 3 The preset conditions include at least one preset control identifier. When the touch operation on the touch screen meets the preset conditions in step S10, the current application scenario identifier and the current display resolution of the touch screen are obtained, including S13~S14, as follows:
[0067] S13. When a trigger operation of a target control within a second application on the touchscreen is detected, the control identifier of the target control and the current display resolution of the target control are obtained.
[0068] A control is an encapsulation of data and methods, and is a component with a user interface. Multiple applications are installed on the interactive flat panel, and each application contains multiple controls. Control identifiers are used to identify and mark the controls, and may include information such as the control's name, type, and installation path. The current display resolution of the control is the resolution at which the control displays an image. In this embodiment, the second application can be a self-use application installed on the touchscreen, such as the Seewo Whiteboard application. The Seewo Whiteboard application includes multiple preset controls, such as controls for Chinese character writing, musical instrument games, timing, and settings. Specifically, the use of the Chinese character writing control involves adjusting the thickness and style of Chinese characters, requiring a high touch resolution for precise writing. The use of the settings control requires a low touch resolution for low touch latency. The second application can be a third-party application whose internal controls can be monitored, such as the VLC multimedia player. Specifically, the VLC multimedia player's lyrics editing control involves adjusting the color and size of lyrics, requiring a high touch resolution for precise editing. The VLC multimedia player's settings control is used for modifying audio and video file formats, requiring a low touch resolution for low touch latency.
[0069] S14. If the control identifier of the target control is a preset control identifier, obtain the application scenario identifier corresponding to the target control according to the preset mapping relationship between application scenario identifier and control identifier.
[0070] When a user clicks on a target control within the second application, the system listens for the target control's activation, retrieves its control identifier and current display resolution, and if the target control's identifier matches a preset identifier, obtains the corresponding application scenario identifier based on a preset mapping between application scenario identifiers and control identifiers. If the target control's identifier is not a preset identifier, the touch resolution of the target control is not adjusted; that is, the touch operation on the touchscreen is detected based on the target control's original touch resolution. Since different controls within the second application require different touch resolutions, by setting corresponding application scenario identifiers for different controls, the touchscreen's touch resolution can be automatically and accurately adjusted dynamically.
[0071] In an optional embodiment, before step S14, steps S141-S142 are included, as follows:
[0072] S141. Obtain the control identifiers corresponding to each control within the second application on the touchscreen;
[0073] S142. A preset application scenario identifier is given to the control identifier, and a mapping relationship between the control identifier and the application scenario identifier is established.
[0074] In this embodiment of the application, by establishing a mapping relationship between control identifiers and application scenario identifiers, after obtaining the control identifier of the preset control in the second application, the application scenario identifier corresponding to the preset control can be automatically and quickly obtained according to the mapping relationship.
[0075] In an optional embodiment, please refer to Figure 4 Step S30, which obtains the target touch resolution based on the current display resolution and the touch coefficient, includes steps S31 to S33, as follows:
[0076] S31. Obtain the maximum touch resolution of the touchscreen;
[0077] S32. Obtain a matching first touch resolution based on the current display resolution and the touch coefficient;
[0078] S33. Compare the first touch resolution with the maximum touch resolution, and take the minimum value in the comparison result as the target touch resolution of the touch screen.
[0079] In this embodiment, after obtaining the current display resolution and the touch coefficient, the current display resolution and the touch coefficient are multiplied together, and the product is used as the first touch resolution for matching. The first touch resolution is compared with the maximum touch resolution. If the first touch resolution is less than the maximum touch resolution, the first touch resolution is used as the target touch resolution of the touchscreen; if the first touch resolution is greater than the maximum touch resolution, the maximum touch resolution is used as the target touch resolution of the touchscreen.
[0080] Based on the current display resolution and the touch coefficient, a matching first touch resolution can be obtained quickly and accurately. Since the matching first touch resolution may be greater than the maximum touch resolution during the calculation process, the first touch resolution is compared with the maximum touch resolution, and the minimum value in the comparison result is taken as the target touch resolution of the touch screen. This avoids the target touch resolution being greater than the maximum touch resolution and ensures the reliability of dynamically adjusting the touch resolution.
[0081] Example 2
[0082] The following are embodiments of the apparatus of this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method described in Embodiment 1 of this application.
[0083] Please see Figure 5This illustration shows a structural schematic diagram of the touch resolution dynamic adjustment device 5 provided in an embodiment of this application. The touch resolution dynamic adjustment device 5 provided in this embodiment includes:
[0084] The application scenario identifier acquisition module 51 is used to acquire the application scenario identifier of the touch screen and the current display resolution of the touch screen when the touch operation on the touch screen meets the preset conditions.
[0085] The touch coefficient acquisition module 52 is used to obtain the touch coefficient corresponding to the current application scenario identifier according to the preset mapping relationship between the application scenario identifier and the touch coefficient;
[0086] The target touch resolution obtaining module 53 is used to obtain the target touch resolution based on the display resolution and the touch coefficient;
[0087] The touch resolution adjustment module 54 is used to adjust the touch resolution of the touch screen to the target touch resolution, so as to detect touch operations on the touch screen according to the target touch resolution; wherein, the touch resolution is the number of touch detection points in the touch screen used to respond to touch operations.
[0088] By applying the embodiments of this application, when a touch operation on the touchscreen meets preset conditions, the application scenario identifier and the current display resolution of the touchscreen are obtained; according to the preset mapping relationship between the application scenario identifier and the touch coefficient, the touch coefficient corresponding to the current application scenario identifier is obtained; according to the display resolution and the touch coefficient, the target touch resolution is obtained; the touch resolution of the touchscreen is adjusted to the target touch resolution, so as to detect touch operations on the touchscreen according to the target touch resolution; wherein, the touch resolution is the number of touch detection points in the touchscreen used to respond to touch operations, thereby dynamically adjusting the touch resolution of the touchscreen according to the current display resolution of the touchscreen and the touch coefficient corresponding to the current application scenario, and dynamically achieving the requirements of high touch accuracy and low touch latency.
[0089] In one embodiment of this application, please refer to Figure 6 The application scenario identifier acquisition module 51 includes:
[0090] The application identifier acquisition unit 511 is used to acquire the application identifier of the first application and the current display resolution of the first application when the launch trigger operation of the first application on the touch screen is detected.
[0091] The first application scenario identifier acquisition unit 512 is used to obtain the application scenario identifier corresponding to the currently launched first application according to the preset mapping relationship between the application scenario identifier and the application identifier if the application identifier of the first application is a preset application identifier.
[0092] In one embodiment of this application, please refer to Figure 7 The application scenario identifier acquisition module 51 includes:
[0093] The control identifier acquisition unit 513 is used to acquire the control identifier of the target control and the current display resolution of the target control when a trigger operation of the target control in the second application on the touch screen is detected.
[0094] The second application scenario identifier acquisition unit 514 is used to obtain the application scenario identifier corresponding to the target control according to the preset mapping relationship between the application scenario identifier and the control identifier if the control identifier of the target control is a preset control identifier.
[0095] In one embodiment of this application, the target touch resolution obtaining module 53 includes:
[0096] Maximum touch resolution acquisition unit 531 is used to acquire the maximum touch resolution of the touch screen;
[0097] The first touch resolution obtaining unit 532 is used to obtain a matching first touch resolution based on the current display resolution and the touch coefficient;
[0098] The touch resolution comparison unit 533 is used to compare the first touch resolution with the maximum touch resolution, and take the minimum value in the comparison result as the target touch resolution of the touch screen.
[0099] Example 3
[0100] The following are embodiments of the device described in this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the embodiments of the device described in this application, please refer to the method described in Embodiment 1 of this application.
[0101] Please see Figure 8 This application also provides an electronic device 300, which may specifically be a computer, mobile phone, tablet computer, interactive flat panel, etc. In an exemplary embodiment of this application, the electronic device 300 is an interactive flat panel, which may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, user interface 304, and at least one communication bus 305.
[0102] The user interface 304 is primarily used to provide an input interface for the user and to acquire user input data. Optionally, the user interface may also include a standard wired interface or a wireless interface.
[0103] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0104] The communication bus 305 is used to enable communication between these components.
[0105] The processor 301 may include one or more processing cores. The processor connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the processor may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.
[0106] The memory 302 may include random access memory (RAM) or read-only memory. Optionally, the memory may include a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor. Figure 8 As shown, a memory, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and operating applications.
[0107] The processor can be used to call the application program for video resolution adjustment method stored in the memory, and specifically execute the method steps of Embodiment 1 shown above. For the specific execution process, please refer to the detailed description shown in Embodiment 1, which will not be repeated here.
[0108] Example 4
[0109] This application also provides a computer-readable storage medium storing a computer program thereon, the instructions of which are adapted to be loaded by a processor and executed by the method steps of Embodiment 1 shown above. The specific execution process can be found in the detailed description of the embodiments, and will not be repeated here. The device containing the storage medium can be an electronic device such as a personal computer, laptop computer, smartphone, or tablet computer.
[0110] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and 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 modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0111] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0112] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.
[0113] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function selected in one or more boxes.
[0114] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0115] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0116] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0117] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0118] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for dynamically adjusting touch resolution, characterized in that, Includes the following steps: When a touch operation on the touchscreen meets preset conditions, the application scenario identifier of the touchscreen and the current display resolution of the touchscreen are obtained. Based on the preset mapping relationship between application scenario identifiers and touch coefficients, the touch coefficient corresponding to the current application scenario identifier is obtained; Obtaining the target touch resolution based on the display resolution and the touch coefficient includes: Obtain the maximum touch resolution of the touchscreen; multiply the current display resolution and the touch coefficient according to the current display resolution and the touch coefficient, and use the product as the first touch resolution to match; compare the first touch resolution with the maximum touch resolution, and use the minimum value of the comparison results as the target touch resolution of the touchscreen; The touch resolution of the touchscreen is adjusted to the target touch resolution to detect touch operations on the touchscreen according to the target touch resolution; wherein, the touch resolution is adjusted by controlling some touch points to generate touch data in response to the user's touch operation, and the touch resolution is the number of touch detection points in the touchscreen used to respond to touch operations.
2. The method for dynamically adjusting touch resolution according to claim 1, characterized in that: The preset conditions include at least one preset application identifier; When a touch operation on the touchscreen meets preset conditions, the step of obtaining the application scene identifier of the touchscreen and the current display resolution of the touchscreen includes: When a startup trigger operation of the first application on the touchscreen is detected, the application identifier of the first application and the current display resolution of the first application are obtained; If the application identifier of the first application is a preset application identifier, the application scenario identifier corresponding to the currently launched first application is obtained according to the preset mapping relationship between application scenario identifiers and application identifiers.
3. The method for dynamically adjusting touch resolution according to claim 2, characterized in that: Before the step of obtaining the application scenario identifier corresponding to the currently launched first application based on the preset mapping relationship between application scenario identifiers and application identifiers, the following steps are included: Obtain the application identifier corresponding to the first application on the touchscreen; An application scenario identifier is preset for the application identifier, and a mapping relationship between the application identifier and the application scenario identifier is established.
4. The method for dynamically adjusting touch resolution according to claim 1, characterized in that: The preset conditions include at least one preset control identifier; When a touch operation on the touchscreen meets preset conditions, the step of obtaining the application scene identifier of the touchscreen and the current display resolution of the touchscreen includes: When a trigger operation of a target control within a second application is detected on the touchscreen, the control identifier of the target control and the current display resolution of the target control are obtained; If the control identifier of the target control is a preset control identifier, the application scenario identifier corresponding to the target control is obtained according to the preset mapping relationship between the application scenario identifier and the control identifier.
5. The touch resolution dynamic adjustment method according to claim 4, characterized in that: Before the step of obtaining the application scenario identifier corresponding to the target control based on the preset mapping relationship between application scenario identifiers and control identifiers, the following steps are included: Obtain the control identifiers corresponding to each control within the second application on the touchscreen; An application scenario identifier is preset for the control identifier, and a mapping relationship between the control identifier and the application scenario identifier is established.
6. A touch resolution dynamic adjustment device, characterized in that, include: The application scenario identifier acquisition module is used to acquire the application scenario identifier of the touch screen and the current display resolution of the touch screen when the touch operation on the touch screen meets the preset conditions. The touch coefficient acquisition module is used to obtain the touch coefficient corresponding to the current application scenario identifier based on the preset mapping relationship between the application scenario identifier and the touch coefficient. A target touch resolution obtaining module, configured to obtain a target touch resolution based on the display resolution and the touch coefficient, includes: Obtain the maximum touch resolution of the touchscreen; multiply the current display resolution and the touch coefficient according to the current display resolution and the touch coefficient, and use the product as the first touch resolution to match; compare the first touch resolution with the maximum touch resolution, and use the minimum value of the comparison results as the target touch resolution of the touchscreen; A touch resolution adjustment module is used to adjust the touch resolution of the touch screen to the target touch resolution, so as to detect touch operations on the touch screen according to the target touch resolution; wherein, the touch resolution is adjusted by controlling some touch points to generate touch data in response to the user's touch operation, and the touch resolution is the number of touch detection points in the touch screen used to respond to touch operations.
7. The touch resolution dynamic adjustment device according to claim 6, characterized in that, The application scenario identifier acquisition module includes: The application identifier acquisition unit is used to acquire the application identifier of the first application and the current display resolution of the first application when the launch trigger operation of the first application on the touch screen is detected. The first application scenario identifier acquisition unit is used to obtain the application scenario identifier corresponding to the currently launched first application based on the preset mapping relationship between the application scenario identifier and the application identifier if the application identifier of the first application is a preset application identifier.
8. An interactive flat panel, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the touch resolution dynamic adjustment method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Touch event reporting method and device, terminal and storage medium
CN113031814A