CN114415857B - Terminal operation method and device, terminal and storage medium - Google Patents

Terminal operation method and device, terminal and storage medium Download PDF

Info

Publication number
CN114415857B
CN114415857B CN202210061104.8A CN202210061104A CN114415857B CN 114415857 B CN114415857 B CN 114415857B CN 202210061104 A CN202210061104 A CN 202210061104A CN 114415857 B CN114415857 B CN 114415857B
Authority
CN
China
Prior art keywords
sliding
data
terminal
window
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210061104.8A
Other languages
Chinese (zh)
Other versions
CN114415857A (en
Inventor
郭恒军
赵允国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202210061104.8A priority Critical patent/CN114415857B/en
Publication of CN114415857A publication Critical patent/CN114415857A/en
Application granted granted Critical
Publication of CN114415857B publication Critical patent/CN114415857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a terminal operation method, a terminal operation device, a terminal and a storage medium; the embodiment of the application comprises the following steps: when the user is detected to carry out sliding operation on the terminal through the touch equipment, sliding data corresponding to the sliding operation can be obtained; identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes; based on the operation attribute, utilizing the sliding window to adjust the sliding data to obtain adjusted sliding data; and reporting the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data, and the response sensitivity of the terminal to sliding operation is improved, and the experience of a user in using the terminal is improved.

Description

Terminal operation method and device, terminal and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for operating a terminal, and a storage medium.
Background
Along with the progress of information technology, a touch terminal has gradually become a tool with the highest utilization rate in daily life of people due to the convenience of the touch terminal. The convenience of the touch terminal is shown in that people can control the terminal to realize functions in a touch mode. For example, people can perform sliding operation on the touch terminal through the touch device, so as to control the terminal to realize functions. However, in the practice of the prior art, the inventor of the present application found that when a sliding operation is performed on a touch terminal by a touch device, the response sensitivity of the terminal to the sliding operation may be insufficient due to the touch device, and the sliding operation may not be correctly responded, thereby affecting the experience of using the terminal by a user.
Disclosure of Invention
The embodiment of the application provides an operation method, an operation device, a terminal and a storage medium of the terminal, which can improve the response sensitivity of the terminal to sliding operation, thereby improving the experience of a user in using the terminal.
The embodiment of the application provides an operation method of a terminal, which comprises the following steps:
when detecting that a user performs sliding operation on a terminal through touch equipment, acquiring sliding data corresponding to the sliding operation;
identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes;
based on the operation attribute, the sliding window is utilized to adjust the sliding data, so that adjusted sliding data are obtained;
and reporting the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
Correspondingly, the embodiment of the application also provides an operation device of the terminal, which comprises:
the acquisition unit is used for acquiring sliding data corresponding to sliding operation when detecting that a user performs the sliding operation on the terminal through the touch equipment;
the generating unit is used for identifying the operation attribute corresponding to the sliding operation and generating a sliding window based on the operation attribute;
The adjustment unit is used for adjusting the sliding data by utilizing the sliding window based on the operation attribute to obtain adjusted sliding data;
and the response unit is used for reporting the adjusted sliding data to an operating system corresponding to the terminal so that the operating system responds to the adjusted sliding data.
In an embodiment, the adjusting unit may include:
an identification subunit, configured to identify a window width of the sliding window and a data amount of the sliding data;
a comparison subunit, configured to compare a window width of the sliding window with a data amount of the sliding data, to obtain a comparison result;
and the adjustment subunit is used for adjusting the sliding data by utilizing the sliding window based on the compared result and the operation attribute to obtain the adjusted sliding data.
In an embodiment, the adjusting subunit may include:
the matching module is used for matching the operation attribute with a preset adjustment judgment condition to obtain a matching result;
the determining module is used for determining a target adjustment mode from a plurality of preset adjustment modes based on the matching result;
And the adjustment module is used for adjusting the sliding data by utilizing the sliding window based on the target adjustment mode and the comparison result to obtain adjusted sliding data.
In an embodiment, the adjusting module may include:
a determining submodule for determining an adjustment parameter based on the comparison result;
the generation sub-module is used for generating adjustment parameters conforming to the adjustment parameter quantity based on the target adjustment mode;
the sub-module is used for sampling the sliding data by utilizing the sliding window to obtain sampled sliding data;
and the logic operation sub-module is used for carrying out logic operation processing on the sampled sliding data and the adjustment parameters to obtain the adjusted sliding data.
In an embodiment, the generating unit may include:
a window width determining subunit, configured to determine a window width of the sliding window according to the operation attribute;
the parameter generation subunit is used for setting function parameters of a preset window generation function based on the window width to obtain a target window generation function;
and the calling subunit is used for calling the target window generating function to generate the sliding window.
In an embodiment, the acquiring unit may include:
the data acquisition subunit is used for acquiring touch data of the terminal when detecting that a user performs sliding operation on the terminal through the touch equipment;
and the coordinate conversion subunit is used for carrying out coordinate conversion processing on the touch data to obtain the sliding data.
In an embodiment, the coordinate transformation subunit may include:
the data identification module is used for identifying the touch data to obtain change data in the touch data;
the data positioning module is used for positioning the change data to obtain coordinate information of the change data;
and the mapping module is used for mapping the change data and the coordinate information to obtain the sliding data.
Correspondingly, the embodiment of the application also provides a terminal, which comprises a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory, so as to execute the operation method of the terminal provided in any one of the embodiments of the present application.
Accordingly, the embodiment of the present application further provides a storage medium, where a computer program is stored, where the computer program when executed by a processor implements the method of operating a terminal provided in any one of the embodiments of the present application.
The embodiment of the application comprises the following steps: when the user is detected to carry out sliding operation on the terminal through the touch equipment, sliding data corresponding to the sliding operation can be obtained; identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes; based on the operation attribute, utilizing the sliding window to adjust the sliding data to obtain adjusted sliding data; the adjusted sliding data is reported to the corresponding operating system of the terminal, so that the operating system responds to the adjusted sliding data, the response sensitivity of the terminal to sliding operation is improved, and the experience of a user in using the terminal is improved
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of an operation method of a terminal provided in an embodiment of the present application;
fig. 2 is a flow chart of an operation method of a terminal provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of sliding data provided by an embodiment of the present application;
fig. 4 is a schematic diagram of touch data provided in an embodiment of the present application;
fig. 5 is a schematic diagram of touch data according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a data adjustment method according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a data adjustment method according to an embodiment of the present disclosure;
FIG. 8 is yet another schematic diagram of sliding data provided by an embodiment of the present application;
fig. 9 is a flowchart of an operation method of a terminal provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an operation device of a terminal provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of a terminal provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which embodiments of the present application are shown, however, in which embodiments are shown, by way of illustration, only, and not in any way all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides an operation method of a terminal, which can be executed by an operation device of the terminal, and the operation device of the terminal can be integrated in a terminal with at least one operation hardware of the terminal.
The terminal may include a Camera television (Camera television, camera TV), a smart television, a smart phone, a smart home, a wearable terminal, a VR/AR device, a car computer, and the like, among others.
In an embodiment, as shown in fig. 1, the operation device of the terminal may be integrated on the terminal 10 to implement the operation method of the terminal according to the embodiment of the present application. Specifically, when it is detected that the user performs a sliding operation on the terminal 10 through the touch device 20, the terminal 10 may acquire sliding data corresponding to the sliding operation; identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes; based on the operation attribute, utilizing the sliding window to adjust the sliding data to obtain adjusted sliding data; the adjusted sliding data is reported to the corresponding operating system of the terminal 10, so that the operating system responds to the adjusted sliding data.
The following detailed description is given, respectively, of the embodiments, and the description sequence of the following embodiments is not to be taken as a limitation of the preferred sequence of the embodiments.
The embodiments of the present application will be described in terms of an operating device of a terminal, which may be integrated in a terminal, which may include a device such as a camera tv having at least one operating hardware of a target terminal.
As shown in fig. 2, there is provided a method for operating a terminal, which specifically includes:
101. when the user is detected to carry out sliding operation on the terminal through the touch equipment, sliding data corresponding to the sliding operation are obtained.
The terminal may include a terminal having a touch function. For example, the terminal may include a device having a touch screen. For example, the terminal may include a device having a touch screen such as a screen or a drawing board.
The touch device may include a device for inputting instructions to the terminal. For example, the touch device may include a stylus, or the like.
In an embodiment, the existing touch device may have insufficient sensitivity of the terminal to the sliding operation due to a smaller contact area with the terminal. For example, the tip of the existing stylus may be a contact diameter of 2 mm, and the terminal cannot definitely feel the touch of the stylus due to the small tip of the stylus, so that it cannot sensitively respond to the sliding operation of the user. For example, as shown in fig. 3, the stylus writes a sliding drawing trace, so that writing linearity is poor, and a very bad user experience is brought.
In an embodiment, in order to solve the problem that the terminal cannot sensitively respond to the sliding operation of the user due to the touch device, when the sliding operation of the user on the terminal through the touch device is detected, the terminal may acquire the sliding data corresponding to the sliding operation.
The sliding data may include data generated by the terminal and capable of indicating a corresponding position of the sliding operation in the terminal when the user performs the sliding operation on the terminal by using the touch device. For example, the slide data may be coordinate position information, or the like. For example, a rectangular coordinate system may be established on the display interface of the terminal, and then the sliding data may be represented by the rectangular coordinate system.
In one embodiment, the touch function of the terminal is generally implemented based on a touch screen and a display screen. The touch screen (also called as touch screen) is an induction type liquid crystal display device capable of receiving input signals such as contact, when the touch screen contacts with graphic buttons on the screen, the touch feedback system on the screen can drive various connecting devices according to a preprogrammed program, and can be used for replacing a mechanical button panel and producing vivid video and audio effects by virtue of a liquid crystal display picture. The touch screen may respond to a touch event of a user and display the touch event on the display screen.
In an embodiment, the touch screen may include a capacitive touch screen or a resistive touch screen, or the like.
The capacitive touch screen works by utilizing current induction of a human body, a layer of transparent special metal conductive substance is stuck on the surface of glass, and when a conductive object touches, the capacitance of a contact point can be changed, so that the touch position can be detected.
The resistance touch screen is controlled by pressure induction, the surface layer of the resistance touch screen is a layer of plastic, the bottom layer is a layer of glass, and the resistance touch screen can bear the interference of severe environmental factors.
In an embodiment, when a user touches a terminal through a touch device, the touch screen of the terminal responds to the touch operation of the user. Then, the terminal locates the touch data on the touch screen and maps the touch data of the touch screen to the sliding data on the display screen. Therefore, when the user is detected to perform sliding operation on the terminal through the touch equipment, the touch data of the terminal can be acquired, and then coordinate conversion processing is performed on the touch data to obtain sliding data. Specifically, the step of "when detecting that the user performs the sliding operation on the terminal through the touch device, obtaining the sliding data corresponding to the sliding operation" may include:
when the user is detected to carry out sliding operation on the terminal through the touch equipment, touch data of the terminal are obtained;
and performing coordinate conversion processing on the touch data to obtain sliding data.
The touch data may refer to data generated by a touch screen of the terminal in order to respond to a sliding operation of the touch device. For example, when the touch screen of the terminal is a capacitive touch screen, the touch data may be a capacitance change amount. For example, as shown in fig. 4, when the touch screen of the terminal is a capacitive touch screen, the touch screen has many capacitors to form an array, thereby increasing the accuracy of detecting the touch.
In an embodiment, when it is detected that a user performs a sliding operation on a terminal through a touch device, touch data of the terminal may be acquired.
For example, when the display screen of the terminal is a capacitive touch screen, if it is detected that the user performs a sliding operation on the terminal through the stylus, the terminal may detect the capacitance of the touch screen and use the capacitance as touch data.
In an embodiment, after the touch data is obtained, coordinate conversion processing may be performed on the touch data to obtain the sliding data.
The coordinate conversion processing of the touch data may refer to mapping the touch data of the touch screen to sliding data of the display screen. Specifically, the step of performing coordinate transformation processing on the touch data to obtain sliding data may include
Identifying the touch data to obtain change data in the touch data;
positioning the change data to obtain coordinate information of the change data;
and mapping the change data and the coordinate information to obtain sliding data.
In an embodiment, when a user touches the terminal, the position data touched by the touch screen of the terminal will change, so that when the coordinate conversion is performed on the touch data, the terminal can identify the touch data to obtain the change data in the touch data. Then, the change data can be positioned, and coordinate information of the change data is obtained. Then, the change data and the coordinate information may be mapped to obtain sliding data.
For example, as shown in fig. 5, when the touch screen is a capacitive touch screen, in fig. 5, there is a 3*3 capacitive image, and each grid is a capacitance-returned power change value. Light represents no change and dark represents a change in charge. Of these, a change of 1 and a change of 2 can be seen from fig. 5. Since the more forceful the power change is at the time of clicking, it can be presumed that the coordinates of clicking should be in two grids with a change of 2. The click coordinates are calculated by multiplying each grid power change value by their x, y coordinates, summing, and dividing by the sum of all grid power change values to calculate the average coordinates. For example, as shown in fig. 5, if x represents a column and y represents a row, then the grid (0, 0), (0, 2), (2, 0), (2, 2) charge variations of all four corners are negligible for 0. Wherein the capacitance variation amounts of the lattices (0, 1), (1, 0) and (1, 2) are 1, and the capacitance variation amounts of the lattices (1, 1) and (2, 1) are 2. Then, they can be multiplied by their x-and y-coordinates and summed, respectively, with: the sum of x is 0.1+1.1+1.1+1.2+2.2=8 to: and the sum of y is 1×1+0×1+2×1+1×2+1×2=7. Wherein the sum of all grid power change values is 7. Then, the coordinate of x is 8/7=1.14, the coordinate of y is 7/7=1, and the click coordinate (corresponding to the slide data) is (1.14,1).
102. And identifying the operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute.
In an embodiment, in order to improve the response sensitivity of the terminal to the sliding operation, the embodiment of the present application may process the sliding data, where the sliding data may be processed by using a sliding window. Accordingly, it is possible to identify the operation attribute corresponding to the sliding operation and generate the sliding window based on the operation attribute.
The operation attributes may include data describing a sliding operation rule, among others. For example, the operation attribute may be data illustrating how fast the sliding operation is performed. For another example, the operation attribute may be data illustrating a sliding operation direction, or the like.
In an embodiment, after identifying the operation attribute corresponding to the sliding operation, a sliding window may be generated based on the operation attribute. Specifically, the step of generating a sliding window based on the operation attribute may include:
determining the window width of the sliding window according to the operation attribute;
setting function parameters of a preset window generating function based on the window width to obtain a target window generating function;
and calling a target window generation function to generate a sliding window.
In one embodiment, the window width of the sliding window may be determined based on the operational attributes. For example, when the sliding operation is relatively fast, the width of the sliding window may be relatively small, and when the sliding operation is relatively slow, the width of the sliding window may be relatively large. For example, the window width of the sliding window may be set to 3 according to the operation attribute.
In an embodiment, after determining the window width, the function parameters of the preset window generating function may be set based on the window width to obtain the target window generating function. The target window generation function may then be invoked to generate a sliding window.
The preset window generating function comprises a function capable of generating a sliding window. For example, the preset window generation function may include a function in various programming languages that may generate a sliding window.
In an embodiment, window width parameters in the preset window generating function can be adjusted according to window width to obtain a target window generating function, so that the target window generating function can be called to generate a sliding window.
103. Based on the operation attribute, the sliding window is utilized to adjust the sliding data, and adjusted sliding data are obtained.
In an embodiment, after the sliding window is generated, the sliding data may be adjusted by using the sliding window based on the operation attribute, so as to obtain adjusted sliding data.
In order to solve the problem of shaking caused by large linearity deviation due to small signal quantity when the touch equipment slides due to small contact area with a terminal, sliding data are stored by generating a sliding window, and the sliding data in the sliding window are adjusted, so that the obtained adjusted sliding data are obtained.
Wherein the sliding data within the sliding window may be adjusted in a number of ways. For example, the sliding data in the sliding window may be adjusted by means of arithmetic average or weighted average, so as to obtain adjusted sliding data.
For example, X (n) may be set to indicate slide data, n may be set to indicate nth slide data, and Y (n) may be set to indicate adjusted slide data.
When the sliding data in the sliding window is adjusted by using an arithmetic average manner, the adjustment manner may be as shown in fig. 6, where the window width of the sliding window is 3. When there is only 1 sliding data, the sliding data can be directly made to be the adjusted sliding data. When there are 2 sliding data, the window width of the sliding window is 3, the sliding window samples 2 sliding data, and averages the two sliding data, so as to obtain adjusted sliding data Y (2). For another example, when there are greater than or equal to 3 sliding data, since the window width of the sliding window is 3, the sliding window samples 3 sliding data at a time, and averages the 3 sliding data, thereby obtaining adjusted sliding data. For example, when n=3, the sliding window samples X (1), X (2), and X (3), and averages X (1), X (2), and X (3) to obtain the adjusted sliding data Y (3). For another example, when n=4, the sliding window samples X (2), X (3), and X (4), and averages X (2), X (3), and X (4) to obtain the adjusted sliding data Y (4).
When the sliding data is adjusted by adopting a weighted average manner, the window width of the sliding window is 3, as shown in fig. 7. Wherein w1, w2, and w3 may be adjustment parameters for adjusting the sliding data.
In an embodiment, the adjustment of the sliding window to the sliding data is affected by the data amount of the sliding data. For example, the amount of data of the sliding data may affect the adjustment parameters. For example, as shown in the figure, the adjustment parameter is 1/2 when the data amount of the sliding data is smaller than the window width of the sliding window, and is 1/3 when the data amount of the sliding data is greater than or equal to the window width of the sliding window. Therefore, the window width of the sliding window and the data amount of the sliding data can be identified, and then the window width of the sliding window and the data amount of the sliding data are compared to obtain a comparison result, so that the sliding data is subjected to adjustment processing by the sliding window based on the comparison result. Specifically, the step of "adjusting the sliding data by using the sliding window based on the operation attribute to obtain the adjusted sliding data" may include:
identifying a window width of the sliding window and a data amount of the sliding data;
Comparing the window width of the sliding window with the data quantity of the sliding data to obtain a comparison result;
based on the comparison result and the operation attribute, the sliding window is utilized to adjust the sliding data, and the adjusted sliding data is obtained.
Wherein the data amount may comprise the amount of sliding data.
In an embodiment, in addition to the data amount of the sliding data affecting the operation process of the sliding data, the operation attribute of the sliding operation affects the adjustment manner of the sliding data. For example, when the sliding operation is relatively fast, the sliding data may be adjusted in a weighted average manner. When the sliding operation is slower, the sliding data can be adjusted in an arithmetic average manner. Specifically, the step of "adjusting the sliding data by using the sliding window to obtain adjusted sliding data based on the comparison result and the operation attribute" may include:
matching the operation attribute with a preset adjustment judgment condition to obtain a matching result;
determining a target adjustment mode from a plurality of preset adjustment modes based on the matching result;
and based on the target adjustment mode and the comparison result, utilizing the sliding window to adjust the sliding data, and obtaining the adjusted sliding data.
In an embodiment, after the target adjustment mode is determined, the sliding data may be adjusted by using the sliding window based on the target adjustment mode and the comparison result, so as to obtain adjusted sliding data. Specifically, the step of "adjusting the sliding data by using the sliding window to obtain adjusted sliding data based on the target adjustment manner and the comparison result" may include:
determining an adjustment parameter based on the comparison;
generating adjustment parameters conforming to the adjustment parameter number based on the target adjustment mode;
sampling the sliding data by utilizing a sliding window to obtain sampled sliding data;
and carrying out logic operation processing on the sampled sliding data and the adjustment parameters to obtain the adjusted sliding data.
The adjustment parameters may include parameters that may be used when adjusting the sliding data.
Wherein, adjusting the parameter number may include adjusting the number of parameters needed when the sliding data is adjusted.
For example, the window width of the sliding window is 3, and when the data amount of the sliding data is 2, the adjustment parameter amount may be determined to be 2. And when the data amount of the slide data is 3, the adjustment parameter amount may be determined to be 3.
Then, after the adjustment parameter amount is determined, an adjustment parameter conforming to the adjustment parameter amount may be generated based on the target adjustment manner.
For example, when the sliding data is processed in an arithmetic average manner, the same adjustment parameters may be generated according to the adjustment parameter number. For example, when the window width of the sliding window is 3, when the data amount of the sliding data is 2, adjustment parameters of 1/2 can be generated. For another example, when the window width of the sliding window is 3, when the data amount of the sliding data is 3, three adjustment parameters each of which is 1/3 may be generated.
For example, when the sliding data is processed in a weighted average manner, adjustment parameters which do not exceed 1 in addition may be generated according to the adjustment parameter number.
Then, the sliding window may be used to sample the sliding data, so as to obtain the sliding data after sampling. And then, carrying out logic operation processing on the sampled sliding data and the adjustment parameters to obtain the adjusted sliding data.
In one embodiment, since the sliding data may be coordinate values, the following may be adopted when the sampled sliding data and the adjustment parameters are logically processed.
For example, the post-sample sliding data in the sliding window includes X (1), X (2), and X (3). Wherein, the data of X (1) on the X axis is X1, and the data on the y axis is y1. The data of X (2) on the X-axis is X2 and the data on the y-axis is y2. The data of X (3) on the X-axis is X3 and the data on the y-axis is y3. The adjustment parameter is 1/3.
In the logic operation processing of the post-use sliding data and the adjustment parameters, x1, x2, and x3 may be multiplied by 1/3, respectively, and then added, and Y1, Y2, and Y3 may be multiplied by 1/3, respectively, and then added, thereby obtaining the adjusted sliding data Y (3).
104. And reporting the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
In an embodiment, after the adjusted sliding data is obtained, the adjusted sliding data may be reported to the operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
For example, as shown in fig. 8, 002 is slip data before adjustment, and 001 is slip data after adjustment. As can be seen by 002, the sliding data is much flattened.
The embodiment of the application provides an operation method of a terminal, which comprises the following steps: when detecting that a user performs sliding operation on the terminal through the touch equipment, acquiring sliding data corresponding to the sliding operation; identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes; based on the operation attribute, utilizing the sliding window to adjust the sliding data to obtain adjusted sliding data; and reporting the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data. According to the embodiment of the application, sliding data can be subjected to mobile filtering, so that small fluctuation can be smoother, and long-term overall trend can be displayed. After the sliding filtering scheme is optimized, sliding data can be smoother. And the user experience is effectively improved.
According to the method described in the above embodiments, examples are described in further detail below.
The method of the embodiment of the application will be described by taking the example that the operation method of the terminal is integrated in the smart phone.
In one embodiment, as shown in fig. 9, a method for operating a terminal includes the following specific procedures:
201. when the sliding operation of the smart phone through the touch equipment by the user is detected, the smart phone acquires sliding data corresponding to the sliding operation.
202. The smart phone identifies operation attributes corresponding to the sliding operation and generates a sliding window based on the operation attributes.
For example, the smartphone may generate a sliding window with a window width of 3.
203. Based on the operation attribute, the smart phone adjusts the sliding data by utilizing the sliding window to obtain the adjusted sliding data.
Wherein the sliding data within the sliding window may be adjusted in a number of ways. For example, the sliding data in the sliding window may be adjusted by means of arithmetic average or weighted average, so as to obtain adjusted sliding data.
For example, X (n) may be set to indicate slide data, n may be set to indicate nth slide data, and Y (n) may be set to indicate adjusted slide data.
When the sliding data in the sliding window is adjusted by using an arithmetic average manner, the adjustment manner may be as shown in the figure, where the window width of the sliding window is 3. When there is only 1 sliding data, the sliding data can be directly made to be the adjusted sliding data. When there are 2 sliding data, the window width of the sliding window is 3, the sliding window samples 2 sliding data, and averages the two sliding data, so as to obtain adjusted sliding data Y (2). For another example, when there are greater than or equal to 3 sliding data, since the window width of the sliding window is 3, the sliding window samples 3 sliding data at a time, and averages the 3 sliding data, thereby obtaining adjusted sliding data. For example, when n=3, the sliding window samples X (1), X (2), and X (3), and averages X (1), X (2), and X (3) to obtain the adjusted sliding data Y (3). For another example, when n=4, the sliding window samples X (2), X (3), and X (4), and averages X (2), X (3), and X (4) to obtain the adjusted sliding data Y (4).
When the sliding data is adjusted by adopting a weighted average manner, the window width of the sliding window is 3 as shown in the figure. Wherein w1, w2, and w3 may be adjustment parameters for adjusting the sliding data.
204. And the smart phone reports the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
The embodiment of the application provides an operation method, which comprises the following steps: when detecting that a user performs sliding operation on the smart phone through the touch equipment, the smart phone acquires sliding data corresponding to the sliding operation; the smart phone identifies operation attributes corresponding to the sliding operation and generates a sliding window based on the operation attributes; the intelligent mobile phone adjusts the sliding data by utilizing the sliding window based on the operation attribute to obtain adjusted sliding data; the smart phone reports the adjusted sliding data to the corresponding operating system of the terminal, so that the operating system responds to the adjusted sliding data, the response sensitivity of the terminal to sliding operation is improved, and the experience of a user using the terminal is improved.
In order to better implement the operation method of the terminal provided by the embodiment of the application, in an embodiment, an operation device of the terminal is also provided, and the operation device of the terminal can be integrated in the terminal. Where the meaning of a noun is the same as in the method of operation of the terminal of the product described above, specific implementation details may be referred to the description in the method embodiments.
In an embodiment, an operating device of a terminal is provided, which may be specifically integrated in a terminal, for example, a television, as shown in fig. 10, and includes: the acquiring unit 301, the generating unit 302, the adjusting unit 303, and the responding unit 304 are specifically as follows:
an obtaining unit 301, configured to obtain sliding data corresponding to a sliding operation when detecting that a user performs the sliding operation on a terminal through a touch device;
a generating unit 302, configured to identify an operation attribute corresponding to the sliding operation, and generate a sliding window based on the operation attribute;
an adjusting unit 303, configured to adjust the sliding data by using the sliding window based on the operation attribute, so as to obtain adjusted sliding data;
and the response unit 304 is configured to report the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
In an embodiment, the adjusting unit 303 may include:
an identification subunit, configured to identify a window width of the sliding window and a data amount of the sliding data;
a comparison subunit, configured to compare a window width of the sliding window with a data amount of the sliding data, to obtain a comparison result;
And the adjustment subunit is used for adjusting the sliding data by utilizing the sliding window based on the compared result and the operation attribute to obtain the adjusted sliding data.
In an embodiment, the adjusting subunit may include:
the matching module is used for matching the operation attribute with a preset adjustment judgment condition to obtain a matching result;
the determining module is used for determining a target adjustment mode from a plurality of preset adjustment modes based on the matching result;
and the adjustment module is used for adjusting the sliding data by utilizing the sliding window based on the target adjustment mode and the comparison result to obtain adjusted sliding data.
In an embodiment, the adjusting module may include:
a determining submodule for determining an adjustment parameter based on the comparison result;
the generation sub-module is used for generating adjustment parameters conforming to the adjustment parameter quantity based on the target adjustment mode;
the sub-module is used for sampling the sliding data by utilizing the sliding window to obtain sampled sliding data;
and the logic operation sub-module is used for carrying out logic operation processing on the sampled sliding data and the adjustment parameters to obtain the adjusted sliding data.
In an embodiment, the generating unit 302 may include:
a window width determining subunit, configured to determine a window width of the sliding window according to the operation attribute;
the parameter generation subunit is used for setting function parameters of a preset window generation function based on the window width to obtain a target window generation function;
and the calling subunit is used for calling the target window generating function to generate the sliding window.
In an embodiment, the acquiring unit 30 may include:
the data acquisition subunit is used for acquiring touch data of the terminal when detecting that a user performs sliding operation on the terminal through the touch equipment;
and the coordinate conversion subunit is used for carrying out coordinate conversion processing on the touch data to obtain the sliding data.
In an embodiment, the coordinate transformation subunit may include:
the data identification module is used for identifying the touch data to obtain change data in the touch data;
the data positioning module is used for positioning the change data to obtain coordinate information of the change data;
and the mapping module is used for mapping the change data and the coordinate information to obtain the sliding data.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
The response sensitivity of the terminal to the sliding operation can be improved through the operation device of the terminal, so that the experience of a user in using the terminal is improved.
The embodiment of the application also provides a terminal, which may include a terminal or a server, for example, the terminal may be used as an operation terminal of the terminal, and the operation terminal of the terminal may be a smart television or the like; for another example, the computer device may be a server, such as an operation server of a terminal, or the like. As shown in fig. 11, a schematic structural diagram of a terminal according to an embodiment of the present application is shown, specifically:
the terminal may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 11 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The processor 401 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the terminal. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user page, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and operations of the terminal by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The terminal further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, power consumption management, etc. are achieved by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The terminal may also include an input unit 404, which input unit 404 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the terminal may further include a display unit or the like, which is not described herein. In this embodiment, the processor 401 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions as follows:
when detecting that a user performs sliding operation on a terminal through touch equipment, acquiring sliding data corresponding to the sliding operation;
Identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes;
based on the operation attribute, the sliding window is utilized to adjust the sliding data, so that adjusted sliding data are obtained;
and reporting the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations of the above embodiments.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present embodiments also provide a storage medium in which a computer program is stored, the computer program being capable of being loaded by a processor to perform steps in any of the methods of operating a terminal provided in the embodiments of the present application. For example, the computer program may perform the steps of:
when detecting that a user performs sliding operation on a terminal through touch equipment, acquiring sliding data corresponding to the sliding operation;
identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes;
based on the operation attribute, the sliding window is utilized to adjust the sliding data, so that adjusted sliding data are obtained;
and reporting the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The steps in the operation method of any terminal provided in the embodiment of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that can be achieved by the operation method of any terminal provided in the embodiment of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing describes in detail the operation method, apparatus, terminal and storage medium of a terminal provided in the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (7)

1. A method of operating a terminal, comprising:
when detecting that a user performs sliding operation on a terminal through touch equipment, acquiring sliding data corresponding to the sliding operation;
identifying operation attributes corresponding to the sliding operation, and generating a sliding window based on the operation attributes;
identifying the window width of the sliding window and the data volume of the sliding data, and comparing the window width of the sliding window with the data volume of the sliding data to obtain a comparison result;
matching the operation attribute with a preset adjustment judgment condition to obtain a matching result, and determining a target adjustment mode from a plurality of preset adjustment modes based on the matching result, wherein the preset adjustment judgment condition is a judgment condition for determining the sliding operation speed in the operation attribute;
Determining an adjustment parameter based on the comparison result, generating an adjustment parameter conforming to the adjustment parameter based on the target adjustment mode, and sampling the sliding data by utilizing the sliding window to obtain sampled sliding data;
performing logic operation processing on the sampled sliding data and the adjustment parameters to obtain adjusted sliding data;
and reporting the adjusted sliding data to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data.
2. The method of claim 1, wherein the generating a sliding window based on the operational attribute comprises:
determining the window width of the sliding window according to the operation attribute;
setting function parameters of a preset window generating function based on the window width to obtain a target window generating function;
and calling the target window generation function to generate the sliding window.
3. The method of claim 1, wherein when detecting that a user performs a sliding operation on a terminal through a touch device, obtaining sliding data corresponding to the sliding operation includes:
When detecting that a user performs sliding operation on a terminal through touch equipment, acquiring touch data of the terminal;
and performing coordinate conversion processing on the touch data to obtain the sliding data.
4. The method of claim 3, wherein the performing coordinate transformation on the touch data to obtain the sliding data includes:
identifying the touch data to obtain change data in the touch data;
positioning the change data to obtain coordinate information of the change data;
and mapping the change data and the coordinate information to obtain the sliding data.
5. An operating device of a terminal, characterized by comprising:
the acquisition unit is used for acquiring sliding data corresponding to sliding operation when detecting that a user performs the sliding operation on the terminal through the touch equipment;
the identification unit is used for identifying the operation attribute corresponding to the sliding operation and generating a sliding window based on the operation attribute;
the adjusting unit is used for identifying the window width of the sliding window and the data volume of the sliding data, and comparing the window width of the sliding window with the data volume of the sliding data to obtain a comparison result; matching the operation attribute with a preset adjustment judgment condition to obtain a matching result, and determining a target adjustment mode from a plurality of preset adjustment modes based on the matching result, wherein the preset adjustment judgment condition is a judgment condition for determining the sliding operation speed in the operation attribute; determining an adjustment parameter based on the comparison result, generating an adjustment parameter conforming to the adjustment parameter based on the target adjustment mode, and sampling the sliding data by utilizing the sliding window to obtain sampled sliding data; performing logic operation processing on the sampled sliding data and the adjustment parameters to obtain adjusted sliding data;
And the response unit is used for reporting the adjusted sliding data to an operating system corresponding to the terminal so that the operating system responds to the adjusted sliding data.
6. A terminal comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the operation method of the terminal according to any one of claims 1 to 4.
7. A storage medium storing a plurality of computer programs adapted to be loaded by a processor to perform the method of operation of the terminal of any of claims 1 to 4.
CN202210061104.8A 2022-01-19 2022-01-19 Terminal operation method and device, terminal and storage medium Active CN114415857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210061104.8A CN114415857B (en) 2022-01-19 2022-01-19 Terminal operation method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210061104.8A CN114415857B (en) 2022-01-19 2022-01-19 Terminal operation method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114415857A CN114415857A (en) 2022-04-29
CN114415857B true CN114415857B (en) 2024-02-09

Family

ID=81276160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210061104.8A Active CN114415857B (en) 2022-01-19 2022-01-19 Terminal operation method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114415857B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639743A (en) * 2009-07-06 2010-02-03 友达光电股份有限公司 Touch-control detection method
JP2014067285A (en) * 2012-09-26 2014-04-17 Sharp Corp Handwriting input device, handwriting input program, and control method for handwriting input device
CN104834468A (en) * 2015-04-24 2015-08-12 青岛海信移动通信技术股份有限公司 Touch operation method and touch operation device in terminal
CN104881203A (en) * 2015-04-24 2015-09-02 青岛海信移动通信技术股份有限公司 Touch operation method and device in terminal
CN105760067A (en) * 2014-12-16 2016-07-13 广州市动景计算机科技有限公司 Sliding control method and device for touch screen as well as electronic equipment
CN109407882A (en) * 2018-09-13 2019-03-01 深圳市天英联合教育股份有限公司 The smooth method, apparatus of contact track, equipment and storage medium
KR20190028963A (en) * 2017-09-11 2019-03-20 주식회사 엣지아이앤디 Apparatus of correcting touch input based on compensation hand vibration
WO2021081738A1 (en) * 2019-10-29 2021-05-06 深圳市汇顶科技股份有限公司 Slide signal recognition method, mcu, touch-control device, and storage medium
CN112925466A (en) * 2019-12-06 2021-06-08 北京小米移动软件有限公司 Touch control method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100097329A1 (en) * 2008-10-21 2010-04-22 Martin Simmons Touch Position Finding Method and Apparatus
KR20110138095A (en) * 2010-06-18 2011-12-26 삼성전자주식회사 Method and apparatus for coordinate correction in touch system
US9983731B2 (en) * 2014-02-21 2018-05-29 Qualcomm Incorporated System and method for reducing shadow effects in touch systems
JP6022137B1 (en) * 2016-03-22 2016-11-09 三菱電機株式会社 Coordinate correction apparatus, coordinate correction method, and coordinate correction program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639743A (en) * 2009-07-06 2010-02-03 友达光电股份有限公司 Touch-control detection method
JP2014067285A (en) * 2012-09-26 2014-04-17 Sharp Corp Handwriting input device, handwriting input program, and control method for handwriting input device
CN105760067A (en) * 2014-12-16 2016-07-13 广州市动景计算机科技有限公司 Sliding control method and device for touch screen as well as electronic equipment
CN104834468A (en) * 2015-04-24 2015-08-12 青岛海信移动通信技术股份有限公司 Touch operation method and touch operation device in terminal
CN104881203A (en) * 2015-04-24 2015-09-02 青岛海信移动通信技术股份有限公司 Touch operation method and device in terminal
KR20190028963A (en) * 2017-09-11 2019-03-20 주식회사 엣지아이앤디 Apparatus of correcting touch input based on compensation hand vibration
CN109407882A (en) * 2018-09-13 2019-03-01 深圳市天英联合教育股份有限公司 The smooth method, apparatus of contact track, equipment and storage medium
WO2021081738A1 (en) * 2019-10-29 2021-05-06 深圳市汇顶科技股份有限公司 Slide signal recognition method, mcu, touch-control device, and storage medium
CN112925466A (en) * 2019-12-06 2021-06-08 北京小米移动软件有限公司 Touch control method and device

Also Published As

Publication number Publication date
CN114415857A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
US10747368B2 (en) Method and device for preventing false-touch on touch screen, mobile terminal and storage medium
JP5721662B2 (en) Input receiving method, input receiving program, and input device
US9535576B2 (en) Touchscreen apparatus user interface processing method and touchscreen apparatus
US8773369B2 (en) Sensoring apparatus of proximity and contact, and display devices
CN106415472B (en) Gesture control method and device, terminal equipment and storage medium
CN108958627B (en) Touch operation method and device, storage medium and electronic equipment
CN105183284A (en) Short message viewing method and user terminal
CN110794976B (en) Touch device and method
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
KR20120082819A (en) Positional information correction device, touch sensor, positional information correction method, and program
CN105159582A (en) Video region adjusting method and terminal
WO2012155470A1 (en) Interface control method, device, and mobile terminal
CN103492986A (en) Input device, input method, and recording medium
CN109976654A (en) A kind of screen content method of adjustment, device, mobile terminal and storage medium
CN107390931A (en) Response control mehtod, device, storage medium and the mobile terminal of touch operation
CN103353804B (en) A kind of cursor control method based on touch pad and device
KR20140010593A (en) The method and apparatus of reducing current consumption by checking e-pen inserting and picking out
US20140223328A1 (en) Apparatus and method for automatically controlling display screen density
CN112578967B (en) Chart information reading method and mobile terminal
CN114415857B (en) Terminal operation method and device, terminal and storage medium
CN109085983A (en) Method of controlling operation thereof, device, storage medium and electronic equipment
CN108446062A (en) A kind of object fixing means, device, terminal device and storage medium
CN108984097B (en) Touch operation method and device, storage medium and electronic equipment
CN107422975A (en) The control method and control device of mobile terminal
Wu et al. Touchware: A software–based technique for high–resolution multi–touch sensing devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant