CN-116540889-B - Touch resolution dynamic adjustment method and device, storage medium and interactive tablet
Abstract
The application relates to a dynamic adjustment method, a device, a storage medium and an interactive tablet of touch resolution, wherein the method comprises the steps of obtaining an application scene identifier of a touch screen and the current display resolution of the touch screen when touch operation on the touch screen meets preset conditions, obtaining the touch coefficient corresponding to the current application scene identifier according to the mapping relation between the preset application scene identifier and the touch coefficient, obtaining target touch resolution according to the display resolution and the touch coefficient, and adjusting the touch resolution of the touch screen to the target touch resolution to detect the touch operation on the touch screen according to the target touch resolution, so that the touch resolution of the touch screen is dynamically adjusted according to the current display resolution of the touch screen and the touch coefficient corresponding to the current application scene, and the high touch precision requirement and the low touch delay requirement are dynamically realized.
Inventors
- WANG FUPING
Assignees
- 广州视源电子科技股份有限公司
- 广州视睿电子科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20220125
Claims (9)
- 1. The dynamic touch resolution adjustment method is characterized by comprising the following steps of: When touch operation on a touch screen meets preset conditions, acquiring an application scene identifier of the touch screen at present and the current display resolution of the touch screen; obtaining a touch coefficient corresponding to the current application scene identifier according to a preset mapping relation between the application scene identifier and the touch coefficient; Obtaining the target touch resolution according to the display resolution and the touch coefficient, including: The method comprises the steps of obtaining the maximum touch resolution of a touch screen, multiplying the current display resolution by the touch coefficient according to the current display resolution and the touch coefficient, and taking the product result as a matched first touch resolution; The touch resolution of the touch screen is adjusted to the target touch resolution, so that touch operation on the touch screen is detected according to the target touch resolution, touch data are generated by a control part of touch points in response to the touch operation of a user, and the adjustment of the touch resolution is realized, wherein the touch resolution is the number of touch detection points in the touch screen, which are used for responding to the touch operation.
- 2. The method for dynamically adjusting touch resolution according to claim 1, wherein: The preset conditions comprise at least one preset application identifier; When the touch operation on the touch screen meets the preset condition, the step of acquiring the application scene identifier of the touch screen at present and the display resolution of the touch screen at present comprises the following steps: when a starting triggering operation of a first application on the touch screen is monitored, an application identifier of the first application and the current display resolution of the first application are obtained; And if the application identifier of the first application is a preset application identifier, acquiring an application scene identifier corresponding to the first application which is started currently according to a mapping relation between the preset application scene identifier and the application identifier.
- 3. The method for dynamically adjusting touch resolution according to claim 2, wherein: before the step of obtaining the application scene identifier corresponding to the first application which is started currently according to the mapping relation between the preset application scene identifier and the application identifier, the method comprises the following steps: acquiring an application identifier corresponding to a first application on the touch screen; Presetting an application scene identifier for the application identifier, and establishing a mapping relation between the application identifier and the application scene identifier.
- 4. The method for dynamically adjusting touch resolution according to claim 1, wherein: The preset conditions comprise at least one preset control mark; When the touch operation on the touch screen meets the preset condition, the step of acquiring the application scene identifier of the touch screen at present and the display resolution of the touch screen at present comprises the following steps: When triggering operation of a target control in a second application on the touch screen is monitored, a control identification of the target control and the current display resolution of the target control are obtained; and if the control identifier of the target control is a preset control identifier, acquiring an application scene identifier corresponding to the target control according to the mapping relation between the preset application scene identifier and the control identifier.
- 5. The method for dynamically adjusting touch resolution according to claim 4, wherein: before the step of obtaining the application scene identifier corresponding to the target control according to the mapping relation between the preset application scene identifier and the control identifier, the method comprises the following steps: acquiring control identifiers corresponding to all the controls in the second application on the touch screen; presetting an application scene identifier for the control identifier, and establishing a mapping relation between the control identifier and the application scene identifier.
- 6. A touch resolution dynamic adjustment device, comprising: The touch screen comprises an application scene identification acquisition module, a display module and a display module, wherein the application scene identification acquisition module is used for acquiring an application scene identification where the touch screen is currently positioned and the current display resolution of the touch screen when touch operation on the touch screen meets preset conditions; the touch coefficient obtaining module is used for obtaining a touch coefficient corresponding to the current application scene identifier according to a preset mapping relation between the application scene identifier and the touch coefficient; The target touch resolution obtaining module is configured to obtain a target touch resolution according to the display resolution and the touch coefficient, and includes: The method comprises the steps of obtaining the maximum touch resolution of a touch screen, multiplying the current display resolution by the touch coefficient according to the current display resolution and the touch coefficient, and taking the product result as a matched first touch resolution; The touch resolution adjustment module is used for adjusting the touch resolution of the touch screen to the target touch resolution so as to detect touch operation on the touch screen according to the target touch resolution, wherein touch data are generated by a control part of touch points in response to the touch operation of a user, and the adjustment of the touch resolution is realized, and the touch resolution is the number of touch detection points in the touch screen for responding to the touch operation.
- 7. The device for dynamically adjusting touch resolution according to claim 6, wherein the application scene identification acquisition module comprises: The application identification acquisition unit is used for acquiring an application identification of the first application and the current display resolution of the first application when the starting triggering operation of the first application on the touch screen is monitored; The first obtaining unit of the application scene identifier is used for obtaining the application scene identifier corresponding to the first application which is started currently according to the mapping relation between the preset application scene identifier and the application identifier if the application identifier of the first application is the preset application identifier.
- 8. An interactive tablet comprising a processor and a memory, wherein the memory stores a computer program adapted to be loaded by the processor and to perform the touch resolution dynamic adjustment method according to any one of claims 1 to 5.
- 9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the touch resolution dynamic adjustment method according to any one of claims 1 to 5.
Description
Touch resolution dynamic adjustment method and device, storage medium and interactive tablet Technical Field The present invention relates to the field of multimedia technologies, and in particular, to a method and apparatus for dynamically adjusting touch resolution, a storage medium, and an interactive tablet. Background The touch screen technology is a novel man-machine interaction input mode, and compared with the traditional keyboard and mouse input mode, the touch screen input is more visual. With the development of touch screen technology, touch screens are increasingly applied to electronic products such as smart tablets or notebook computers. Touch screens typically include a plurality of touch points arranged in an array, the number of touch points being fixed after the touch screen is manufactured. In the use process of the touch screen, a part of touch points can be controlled to generate touch data in response to the touch operation of a user, so that the touch position of the user is positioned, wherein the touch points which can generate the touch data in response to the touch operation of the user are touch detection points, and generally, the touch resolution is used for representing the number of the touch detection points of the touch screen. In the process of realizing the invention, the inventor finds that high touch resolution can realize high touch precision, but high touch resolution means that the acquired touch data has large capacity, and because the data transmission rate is fixed, larger touch delay is generated when the large-capacity touch data is sent to a data processing system of a touch screen, and low touch resolution means that the acquired touch data has small capacity and low touch delay can be realized, but the touch precision is low due to the reduction of the number of touch points. In the application scene of application setting on the touch screen, low touch resolution is required to realize low touch delay, and delay is increased if the touch resolution of the current touch screen is higher than the low touch resolution. Disclosure of Invention Accordingly, the present invention is directed to a method and apparatus for dynamically adjusting touch resolution, a storage medium, and an interactive pad, which have the advantages of dynamically adjusting touch resolution and reducing touch delay. According to a first aspect of an embodiment of the present application, there is provided a method for dynamically adjusting touch resolution, including the steps of: When touch operation on a touch screen meets preset conditions, acquiring an application scene identifier of the touch screen at present and the current display resolution of the touch screen; obtaining a touch coefficient corresponding to the current application scene identifier according to a preset mapping relation between the application scene identifier and the touch coefficient; Obtaining the target touch resolution according to the display resolution and the touch coefficient, including: The method comprises the steps of obtaining the maximum touch resolution of a touch screen, multiplying the current display resolution by the touch coefficient according to the current display resolution and the touch coefficient, and taking the product result as a matched first touch resolution; The touch resolution of the touch screen is adjusted to the target touch resolution, so that touch operation on the touch screen is detected according to the target touch resolution, touch data are generated by a control part of touch points in response to the touch operation of a user, and the adjustment of the touch resolution is realized, wherein the touch resolution is the number of touch detection points in the touch screen, which are used for responding to the touch operation. According to a second aspect of an embodiment of the present application, there is provided a touch resolution dynamic adjustment apparatus, including: The touch screen comprises an application scene identification acquisition module, a display module and a display module, wherein the application scene identification acquisition module is used for acquiring an application scene identification where the touch screen is currently positioned and the current display resolution of the touch screen when touch operation on the touch screen meets preset conditions; the touch coefficient obtaining module is used for obtaining a touch coefficient corresponding to the current application scene identifier according to a preset mapping relation between the application scene identifier and the touch coefficient; The target touch resolution obtaining module is configured to obtain a target touch resolution according to the display resolution and the touch coefficient, and includes: The method comprises the steps of obtaining the maximum touch resolution of a touch screen, multiplying the current display resolution by the touch coefficient according to the current