CN114415857A - 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
CN114415857A
CN114415857A CN202210061104.8A CN202210061104A CN114415857A CN 114415857 A CN114415857 A CN 114415857A CN 202210061104 A CN202210061104 A CN 202210061104A CN 114415857 A CN114415857 A CN 114415857A
Authority
CN
China
Prior art keywords
sliding
data
terminal
window
adjusted
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.)
Granted
Application number
CN202210061104.8A
Other languages
Chinese (zh)
Other versions
CN114415857B (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

Images

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

Abstract

The embodiment of the application discloses an operation method and device of a terminal, the terminal and a storage medium; the embodiment of the application comprises the following steps: when the fact that a user performs sliding operation on the terminal through the touch control equipment is detected, sliding data corresponding to the sliding operation can be obtained; identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute; based on the operation attribute, adjusting the sliding data by using a sliding window to obtain adjusted sliding data; the adjusted sliding data are reported to an operating system corresponding to the terminal, so that the operating system responds to the adjusted sliding data, the response sensitivity of the terminal to the 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 application relates to the field of communications technologies, and in particular, to a method and an apparatus for operating a terminal, and a storage medium.
Background
With the progress of information technology, touch terminals have gradually become the most highly available tool in people's daily life due to their convenience. The convenience of the touch terminal is realized by controlling the terminal to realize functions in a touch mode by people. For example, people can slide the touch terminal through the touch device, so as to control the terminal to realize functions. However, the inventor of the present application found in the practice of the prior art that when a touch terminal is slid by a touch device, due to the touch device, the sensitivity of the terminal to the sliding operation may be insufficient, and the sliding operation cannot be correctly responded, thereby affecting the experience of the user using the terminal.
Disclosure of Invention
The embodiment of the application provides an operation method and device of a terminal, the terminal and a storage medium, 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 the fact that a user performs sliding operation on a terminal through touch equipment is detected, sliding data corresponding to the sliding operation are obtained;
identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute;
based on the operation attribute, the sliding window is utilized 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.
Correspondingly, an embodiment of the present application further provides an operating device for a terminal, including:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring sliding data corresponding to sliding operation when the sliding operation of a terminal is detected through a touch device by a user;
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 adjusting unit is used for adjusting the sliding data by using 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 identifying subunit, configured to identify a window width of the sliding window and a data amount of the sliding data;
the comparison subunit is used for comparing the window width of the sliding window with the data volume of the sliding data to obtain a comparison result;
and the adjusting subunit is used for adjusting the sliding data by using the sliding window based on the comparison 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 adjusting mode from a plurality of preset adjusting modes based on the matching result;
and the adjusting module is used for adjusting the sliding data by utilizing the sliding window based on the target adjusting mode and the comparison result to obtain the adjusted sliding data.
In an embodiment, the adjusting module may include:
a determination submodule for determining an adjustment parameter amount based on the comparison result;
the generation submodule is used for generating an adjustment parameter which accords with the adjustment parameter quantity based on the target adjustment mode;
the sub-module is used for sampling the sliding data by using the sliding window to obtain sampled sliding data;
and the logic operation submodule 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 generating subunit is used for setting function parameters of a preset window generating function based on the window width to obtain a target window generating function;
and the calling subunit is used for calling the target window generating function to generate the sliding window.
In an embodiment, the obtaining 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 execute the computer program in the memory to perform the operation method of the terminal provided in any embodiment of the present application.
Correspondingly, an embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements the operation method of the terminal provided in any embodiment of the present application.
The embodiment of the application comprises the following steps: when the fact that a user performs sliding operation on the terminal through the touch control equipment is detected, sliding data corresponding to the sliding operation can be obtained; identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute; based on the operation attribute, adjusting the sliding data by using a sliding window to obtain adjusted sliding data; reporting the adjusted sliding data to an operating system corresponding to the terminal so that the operating system responds to the adjusted sliding data, thereby improving the response sensitivity of the terminal to the sliding operation and improving the experience of a user in using the terminal
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of an operation method of a terminal according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an operation method of a terminal according to 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 another schematic diagram of touch data provided in the embodiment of the present application;
FIG. 6 is a diagram illustrating a data adjustment method according to an embodiment of the present disclosure;
FIG. 7 is a further schematic diagram of a data adjustment method provided in an embodiment of the present application;
FIG. 8 is a further illustration of the sliding data provided by an embodiment of the present application;
fig. 9 is a flowchart illustrating an operation method of a terminal according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an operating device of a terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, however, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection 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 the terminal with at least one operation hardware of the terminal.
The terminal may include a Camera television (Camera TV), a smart TV, a smart phone, a smart home, a wearable terminal, a VR/AR device, a vehicle-mounted computer, and the like.
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 obtain sliding data corresponding to the sliding operation; identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute; based on the operation attribute, adjusting the sliding data by using a sliding window to obtain adjusted sliding data; and reporting the adjusted sliding data to an operating system corresponding to the terminal 10, so that the operating system responds to the adjusted sliding data.
The following are detailed below, and it should be noted that the order of description of the following examples is not intended to limit the preferred order of the examples.
The embodiments of the present application will be described from the perspective of an operating device of a terminal, which may be integrated in the terminal, which may include a device such as a camera television having at least one operating hardware of a target terminal.
As shown in fig. 2, an operation method of a terminal is provided, and a specific flow includes:
101. when the fact that a user performs sliding operation on the terminal through the touch control equipment is detected, 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 an instruction to the terminal. For example, the touch device may include a stylus, and the like.
In an embodiment, the conventional touch device may have insufficient response sensitivity of the terminal to the sliding operation due to a small area in contact with the terminal. For example, the tip of a conventional stylus may have a contact diameter of 2 mm, and the terminal may not be clearly sensitive to the touch of the stylus due to the small tip of the stylus, and thus may not respond sensitively to the sliding operation of the user. For example, as shown in fig. 3, when a stylus writes a sliding drawing track, it can be seen that writing linearity is poor, which brings a very bad user experience.
In an embodiment, to solve the problem that the terminal cannot sensitively respond to the sliding operation of the user due to the touch device, when it is detected that the user performs the sliding operation on the terminal through the touch device, the terminal may acquire sliding data corresponding to the sliding operation.
The sliding data may include data generated by the terminal and capable of explaining 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 slide 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 inductive liquid crystal display device capable of receiving input signals of a touch head and the like, when a graphical button on the screen is touched, a touch feedback system on the screen can drive various connecting devices according to a pre-programmed program, so that a mechanical button panel can be replaced, and vivid video and audio effects can be produced by the liquid crystal display picture. The touch screen can respond to a touch event of a user and display the touch event on the display screen.
In one embodiment, the touch screen may include a capacitive touch screen or a resistive touch screen, among others.
The capacitive touch screen works by utilizing current induction of a human body, a layer of transparent special metal conductive substance is pasted on the surface of glass, and when a conductive object touches the capacitive touch screen, the capacitance of a contact point can be changed, so that the touched 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, and the bottom layer of the resistance touch screen is a layer of glass, so that the resistance touch screen can bear the interference of severe environment factors.
In an embodiment, when a user touches the terminal through the touch device, first, the terminal touch screen responds to the touch operation of the user. Then, the terminal locates the touch data on the touch screen and maps the touch data on the touch screen to the sliding data on the display screen. Therefore, when it is detected that the user performs the sliding operation on the terminal through the touch device, the touch data of the terminal can be acquired, and then the coordinate conversion processing is performed on the touch data to obtain the sliding data. Specifically, the step "obtaining sliding data corresponding to a sliding operation when it is detected that a user performs the sliding operation on the terminal through the touch device" may include:
when the fact that a user performs sliding operation on the terminal through touch equipment is detected, 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 response 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 a plurality of capacitors forming an array, thereby increasing the accuracy of detecting touch.
In an embodiment, when it is detected that a user performs a sliding operation on the terminal through the 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 a stylus pen, 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 sliding data.
The coordinate conversion processing of the touch data may refer to mapping the touch data of the touch screen to the sliding data of the display screen. Specifically, the step of performing coordinate conversion processing on the touch data to obtain the 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 touched position data of the touch screen of the terminal changes, so that when the coordinate conversion is performed on the touch data, the terminal can identify the touch data to obtain the changed data in the touch data. Next, the changed data may be located to obtain coordinate information of the changed data. Then, the change data and the coordinate information may be subjected to mapping processing to obtain sliding data.
For example, as shown in fig. 5, when the touch screen is a capacitive touch screen, fig. 5 is a 3 × 3 capacitive image, and each grid is an electric quantity change value returned by a capacitor. Light colors represent no change and dark colors represent a change in charge. In fig. 5, some changes 1 and some changes 2 are shown. Since the power amount is changed more and more when clicking, it can be presumed that the coordinates of the click should be in two grids with the change amount of 2. The click coordinate calculating method includes multiplying the power change value of each grid by the x and y coordinates of the grid, summing, and dividing by the sum of the power change values of all the grids to calculate the average coordinate. For example, as shown in fig. 5, if x represents a column and y represents a row, the electrical quantity changes of the four corners of the grids (0,0), (0,2), (2,0), (2,2) are negligible to be 0. Wherein the amount of capacitance change of the lattices (0,1), (1,0) and (1,2) is 1, and the amount of capacitance change of the lattices (1,1) and (2,1) is 2. Then, their x and y coordinates can be multiplied separately and summed with: the sum of x is 0 x 1+1 x 2+2 x 8 and the sum of y is 1 x 1+0 x 1+2 x 1+1 x2 x 7. Wherein the sum of all grid charge variation values is 7. Then, if the x coordinate is 8/7 ═ 1.14 and the y coordinate is 7/7 ═ 1, the click coordinate (corresponding to the swipe data) is (1.14, 1).
102. And identifying an 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 sensitivity of the terminal to respond 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. Therefore, the operation attribute corresponding to the sliding operation can be identified, and the sliding window can be generated based on the operation attribute.
The operation attribute may include data describing a sliding operation rule. For example, the operation attribute may be data that describes how fast the slide operation is. For another example, the operation attribute may be data that specifies the direction of the slide operation, or the like.
In an embodiment, after the operation attribute corresponding to the sliding operation is identified, the sliding window may be generated based on the operation attribute. Specifically, the step "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 an embodiment, the window width of the sliding window may be determined according to the operation attribute. For example, when the sliding operation is fast, the width of the sliding window may be small, and when the sliding operation is slow, the width of the sliding window may be large. For example, the window width of the sliding window may be set to 3 according to the operation attribute.
In an embodiment, after the window width is determined, function parameters of a preset window generating function may be set based on the window width to obtain a target window generating function. Then, a target window generation function may be invoked to generate a sliding window.
The preset window generation function comprises a function capable of generating a sliding window. For example, the preset window generation function may include a function that can generate a sliding window in various programming languages.
In an embodiment, a window width parameter in a preset window generating function may be adjusted according to a window width to obtain a target window generating function, so that the target window generating function may be called to generate a sliding window.
103. And adjusting the sliding data by using the sliding window based on the operation attribute to obtain the adjusted sliding data.
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 the adjusted sliding data.
In order to solve the problem of jitter caused by small signal quantity when the touch device slides due to small contact area with the terminal, the embodiment of the application stores sliding data by generating a sliding window and adjusts the sliding data in the sliding window, so that the obtained adjusted sliding data is obtained.
The sliding data in the sliding window can be adjusted in various ways. For example, the sliding data in the sliding window may be adjusted by an arithmetic average or a weighted average, so as to obtain the adjusted sliding data.
For example, x (n) may represent slip data, n may represent nth slip data, and y (n) may represent adjusted slip data.
When the sliding data in the sliding window is adjusted by using the arithmetic mean, the adjustment manner may be as shown in fig. 6, where the window width of the sliding window is 3. When only 1 sliding data exists, the sliding data can be directly used as the adjusted sliding data. When there are 2 sliding data and the window width of the sliding window is 3, the sliding window samples the 2 sliding data and averages the two sliding data, thereby obtaining the adjusted sliding data Y (2). For another example, when there are 3 or more sliding data, since the window width of the sliding window is 3, the sliding window samples 3 sliding data each time, and averages the 3 sliding data, thereby obtaining adjusted sliding data. For example, when n is equal to 3, the sliding window samples X (1), X (2), and X (3), and averages X (1), X (2), and X (3) to obtain adjusted sliding data Y (3). For another example, when n is equal to 4, the sliding window samples X (2), X (3), and X (4), and averages X (2), X (3), and X (4) to obtain adjusted sliding data Y (4).
When the sliding data is adjusted by means of weighted average, it can be as shown in fig. 7, where the window width of the sliding window is 3. Wherein w1, w2 and w3 may be adjustment parameters for adjusting the sliding data.
In one 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 slip data may affect the tuning parameters. For example, as shown in the figure, when the data amount of the sliding data is smaller than the window width of the sliding window, the adjustment parameter is 1/2, and when the data amount of the sliding data is greater than or equal to the window width of the sliding window, the adjustment parameter is 1/3. Therefore, it is possible to identify the window width of the sliding window and the data amount of the sliding data, and then compare the window width of the sliding window and the data amount of the sliding data to obtain a comparison result, thereby performing adjustment processing on the sliding data using 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 a sliding window and a data amount of sliding data;
comparing the window width of the sliding window with the data amount of the sliding data to obtain a comparison result;
and adjusting the sliding data by using the sliding window based on the comparison result and the operation attribute to obtain the adjusted sliding data.
Wherein the data amount may include the amount of the sliding data.
In one embodiment, in addition to the data amount of the sliding data affecting the operation process on the sliding data, the operation attribute of the sliding operation also affects the adjustment mode on the sliding data. For example, when the sliding operation is fast, the adjustment process may be performed on the sliding data in a weighted average manner. When the sliding operation is slow, the sliding data can be adjusted in an arithmetic mean manner. Specifically, the step of adjusting the sliding data by using the sliding window based on the comparison result and the operation attribute to obtain the adjusted sliding data 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 adjusting the sliding data by using the sliding window based on the target adjustment mode and the comparison result to obtain the adjusted sliding data.
In an embodiment, after the target adjustment manner is determined, the sliding data may be adjusted by using a sliding window based on the target adjustment manner and the comparison result, so as to obtain adjusted sliding data. Specifically, the step of adjusting the sliding data by using the sliding window based on the target adjustment manner and the comparison result to obtain the adjusted sliding data may include:
determining an adjustment parameter number based on the comparison result;
generating an adjusting parameter according with the adjusting parameter quantity based on the target adjusting mode;
sampling the sliding data by using a sliding window to obtain sampled sliding data;
and performing logical operation processing on the sampled sliding data and the adjustment parameters to obtain adjusted sliding data.
The adjustment parameters may include parameters used when adjusting the sliding data.
The adjusting parameter number may include a number of parameters required for adjusting the sliding data.
For example, the window width of the sliding window is 3, and when the data amount of the sliding data is 2, it may be determined that the adjustment parameter amount is 2. And when the data amount of the slide data is 3, the adjustment parameter number may be determined to be 3.
Then, after the adjustment parameter amount is determined, an adjustment parameter in accordance with the adjustment parameter amount may be generated based on the target adjustment manner.
For example, when the sliding data is processed in the manner of arithmetic mean, the same adjustment parameter may be generated according to the adjustment parameter number. For example, when the window width of the sliding window is 3, and when the data amount of the sliding data is 2, adjustment parameters both of which are 1/2 may be generated. For another example, when the window width of the sliding window is 3 and 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 by weighted averaging, the adjustment parameters that do not exceed 1 in addition may be generated according to the adjustment parameter number.
Then, the sliding data may be sampled using a sliding window, resulting in sampled sliding data. And then, performing logical operation processing on the sampled sliding data and the adjustment parameters to obtain adjusted sliding data.
In an embodiment, since the sliding data may be a coordinate value, when the post-sampling sliding data and the adjustment parameter are subjected to the logical operation processing, the following manner may be adopted.
For example, the post-sampling sliding data in the sliding window includes X (1), X (2), and X (3). The data of X (1) on the X axis is X1, and the data on the y axis is y 1. The data of X (2) on the X-axis is X2 and the data on the y-axis is y 2. X (3) data on the X-axis is X3 and data on the y-axis is y 3. The adjustment parameter is 1/3.
When logical operation processing is performed on the post-application slip data and the adjustment parameter, x1, x2, and x3 may be multiplied by 1/3 and added, respectively, and Y1, Y2, and Y3 may be multiplied by 1/3 and added, respectively, to obtain adjusted slip 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 an 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 the slip data before adjustment, and 001 is the slip data after adjustment. It can be seen by 002 that the slip data is much flatter.
The embodiment of the application provides an operation method of a terminal, which comprises the following steps: when the fact that a user performs sliding operation on the terminal through the touch control equipment is detected, sliding data corresponding to the sliding operation are obtained; identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute; based on the operation attribute, adjusting the sliding data by using a sliding window 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. By the embodiment of the application, the sliding data can be subjected to moving filtering, so that small fluctuation can be smoother, and a long-term overall trend can be displayed. After the sliding filtering scheme is optimized, the sliding data can be smoother. The user experience is effectively improved.
The method described in the above examples is further illustrated in detail below by way of example.
The method of the embodiment of the application is introduced by taking the example that the operation method of the terminal is integrated in the smart phone.
In an embodiment, as shown in fig. 9, an operation method of a terminal includes the following specific processes:
201. when the situation that a user slides the smart phone through the touch device is detected, the smart phone obtains sliding data corresponding to the sliding operation.
202. The smart phone identifies an operation attribute corresponding to the sliding operation and generates a sliding window based on the operation attribute.
For example, the smartphone may generate a sliding window with a window width of 3.
203. And the smart phone adjusts the sliding data by using the sliding window based on the operation attribute to obtain the adjusted sliding data.
The sliding data in the sliding window can be adjusted in various ways. For example, the sliding data in the sliding window may be adjusted by an arithmetic average or a weighted average, so as to obtain the adjusted sliding data.
For example, x (n) may represent slip data, n may represent nth slip data, and y (n) may represent adjusted slip data.
When the sliding data in the sliding window is adjusted by using an arithmetic mean, the adjustment manner may be as shown in the figure, where the window width of the sliding window is 3. When only 1 sliding data exists, the sliding data can be directly used as the adjusted sliding data. When there are 2 sliding data and the window width of the sliding window is 3, the sliding window samples the 2 sliding data and averages the two sliding data, thereby obtaining the adjusted sliding data Y (2). For another example, when there are 3 or more sliding data, since the window width of the sliding window is 3, the sliding window samples 3 sliding data each time, and averages the 3 sliding data, thereby obtaining adjusted sliding data. For example, when n is equal to 3, the sliding window samples X (1), X (2), and X (3), and averages X (1), X (2), and X (3) to obtain adjusted sliding data Y (3). For another example, when n is equal to 4, the sliding window samples X (2), X (3), and X (4), and averages X (2), X (3), and X (4) to obtain adjusted sliding data Y (4).
When the sliding data is adjusted by means of weighted average, the window width of the sliding window may be 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 the situation that a user performs sliding operation on the smart phone through the touch control equipment is detected, the smart phone acquires sliding data corresponding to the sliding operation; the smart phone identifies an operation attribute corresponding to the sliding operation and generates a sliding window based on the operation attribute; the smart phone adjusts the sliding data by using the sliding window based on the operation attribute to obtain adjusted sliding data; 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 response sensitivity of the terminal to the sliding operation is improved, and the experience of a user in using the terminal is improved.
In order to better implement the operation method of the terminal provided by the embodiment of the present application, in an embodiment, an operation device of the terminal is further provided, and the operation device of the terminal may be integrated in the terminal. The terms are the same as those in the operation method of the terminal of the product, and the details of the implementation can be referred to the description in the method embodiment.
In an embodiment, an operating device of a terminal is provided, where the operating device of the terminal may be specifically integrated in a terminal, such as a television, and as shown in fig. 10, the operating device of the terminal includes: the acquiring unit 301, the generating unit 302, the adjusting unit 303 and the responding unit 304 are specifically as follows:
the acquiring unit 301 is configured to acquire sliding data corresponding to a sliding operation when it is detected 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 perform adjustment processing on the sliding data by using the sliding window based on the operation attribute, so as to obtain adjusted sliding data;
a responding unit 304, 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 identifying subunit, configured to identify a window width of the sliding window and a data amount of the sliding data;
the comparison subunit is used for comparing the window width of the sliding window with the data volume of the sliding data to obtain a comparison result;
and the adjusting subunit is used for adjusting the sliding data by using the sliding window based on the comparison 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 adjusting mode from a plurality of preset adjusting modes based on the matching result;
and the adjusting module is used for adjusting the sliding data by utilizing the sliding window based on the target adjusting mode and the comparison result to obtain the adjusted sliding data.
In an embodiment, the adjusting module may include:
a determination submodule for determining an adjustment parameter amount based on the comparison result;
the generation submodule is used for generating an adjustment parameter which accords with the adjustment parameter quantity based on the target adjustment mode;
the sub-module is used for sampling the sliding data by using the sliding window to obtain sampled sliding data;
and the logic operation submodule 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 generating subunit is used for setting function parameters of a preset window generating function based on the window width to obtain a target window generating function;
and the calling subunit is used for calling the target window generating function to generate the sliding window.
In an embodiment, the obtaining 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 a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
The operation device of the terminal can improve the response sensitivity of the terminal to the sliding operation, thereby improving the experience of a user using the terminal.
The embodiment of the application also provides a terminal, which may include a terminal or a server, for example, the terminal may be an operation terminal of the terminal, and the operation terminal of the terminal may be an intelligent television or the like; for another example, the computer device may be a server, such as an operation server of a terminal. As shown in fig. 11, it shows a schematic structural diagram of a terminal according to an embodiment of the present application, specifically:
the terminal may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the terminal structure shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, 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 operating 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 handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. 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 may execute various functional applications and operations of the terminal by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the 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 access to the memory 402.
The terminal further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input in relation to user settings and function control.
Although not shown, the terminal may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 401 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
when the fact that a user performs sliding operation on a terminal through touch equipment is detected, sliding data corresponding to the sliding operation are obtained;
identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute;
based on the operation attribute, the sliding window is utilized 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.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being 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 method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in the operation method of the terminal provided in the present application. For example, the computer program may perform the steps of:
when the fact that a user performs sliding operation on a terminal through touch equipment is detected, sliding data corresponding to the sliding operation are obtained;
identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute;
based on the operation attribute, the sliding window is utilized 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.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Since the computer program stored in the storage medium can execute the steps in any of the terminal operation methods provided in the embodiments of the present application, beneficial effects that can be achieved by any of the terminal operation methods provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the sake of detail in the foregoing embodiments.
The foregoing detailed description is directed to a method, an apparatus, a terminal and a storage medium for operating the terminal provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An operating method of a terminal, comprising:
when the fact that a user performs sliding operation on a terminal through touch equipment is detected, sliding data corresponding to the sliding operation are obtained;
identifying an operation attribute corresponding to the sliding operation, and generating a sliding window based on the operation attribute;
based on the operation attribute, the sliding window is utilized 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.
2. The method of claim 1, wherein the adjusting the sliding data using the sliding window based on the operation attribute to obtain adjusted sliding data comprises:
identifying a window width of the sliding window and a data volume of the sliding data;
comparing the window width of the sliding window with the data volume of the sliding data to obtain a comparison result;
and adjusting the sliding data by utilizing the sliding window based on the comparison result and the operation attribute to obtain the adjusted sliding data.
3. The method of claim 2, wherein the adjusting the sliding data using the sliding window based on the comparison result and the operation attribute to obtain the adjusted sliding data comprises:
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 adjusting the sliding data by using the sliding window based on the target adjustment mode and the comparison result to obtain adjusted sliding data.
4. The method according to claim 3, wherein the adjusting the sliding data by using the sliding window based on the target adjustment manner and the comparison result to obtain adjusted sliding data comprises:
determining an adjustment parameter amount based on the comparison result;
generating an adjusting parameter according with the adjusting parameter quantity based on the target adjusting mode;
sampling the sliding data by using the sliding window to obtain sampled sliding data;
and performing logical operation processing on the sampled sliding data and the adjustment parameters to obtain the adjusted sliding data.
5. The method of claim 1, wherein generating a sliding window based on the operational property 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 generating function to generate the sliding window.
6. The method according to claim 1, wherein when it is detected that a user performs a sliding operation on a terminal through a touch device, acquiring sliding data corresponding to the sliding operation includes:
when the fact that a user performs sliding operation on a terminal through touch equipment is detected, touch data of the terminal are obtained;
and performing coordinate conversion processing on the touch data to obtain the sliding data.
7. The method according to claim 6, wherein the performing coordinate transformation processing on the touch data to obtain the sliding data comprises:
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.
8. An operation device of a terminal, comprising:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring sliding data corresponding to sliding operation when the sliding operation of a terminal is detected through a touch device by a user;
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 adjusting the sliding data by using 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.
9. 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 7.
10. A storage medium, characterized in that it stores a plurality of computer programs adapted to be loaded by a processor to perform the method of operation of a terminal according to any one of claims 1 to 7.
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 true CN114415857A (en) 2022-04-29
CN114415857B 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 (13)

* 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
US20100097329A1 (en) * 2008-10-21 2010-04-22 Martin Simmons Touch Position Finding Method and Apparatus
US20110310038A1 (en) * 2010-06-18 2011-12-22 Samsung Electronics Co., Ltd. Method and apparatus for correcting touch coordinates in touch system
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
US20150242052A1 (en) * 2014-02-21 2015-08-27 Qualcomm Incorporated System and method for reducing shadow effects in touch systems
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
US20190310755A1 (en) * 2016-03-22 2019-10-10 Mitsubishi Electric Corporation Coordinate correction apparatus
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

Patent Citations (13)

* 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
CN101639743A (en) * 2009-07-06 2010-02-03 友达光电股份有限公司 Touch-control detection method
US20110310038A1 (en) * 2010-06-18 2011-12-22 Samsung Electronics Co., Ltd. Method and apparatus for correcting touch coordinates in touch system
JP2014067285A (en) * 2012-09-26 2014-04-17 Sharp Corp Handwriting input device, handwriting input program, and control method for handwriting input device
US20150242052A1 (en) * 2014-02-21 2015-08-27 Qualcomm Incorporated System and method for reducing shadow effects in touch systems
CN105760067A (en) * 2014-12-16 2016-07-13 广州市动景计算机科技有限公司 Sliding control method and device for touch screen as well as electronic equipment
CN104881203A (en) * 2015-04-24 2015-09-02 青岛海信移动通信技术股份有限公司 Touch operation method and device in terminal
CN104834468A (en) * 2015-04-24 2015-08-12 青岛海信移动通信技术股份有限公司 Touch operation method and touch operation device in terminal
US20190310755A1 (en) * 2016-03-22 2019-10-10 Mitsubishi Electric Corporation Coordinate correction apparatus
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
CN114415857B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US8773369B2 (en) Sensoring apparatus of proximity and contact, and display devices
CN108958633B (en) Split screen display method and device, storage medium and electronic equipment
CN112329740B (en) Image processing method, image processing apparatus, storage medium, and electronic device
EP2975502A1 (en) Adjustment of touch sensing stimulation voltage levels based on touch performance
CN108958627B (en) Touch operation method and device, storage medium and electronic equipment
WO2008085787A2 (en) Multi buffer asynchronous scheme for processing incoming information
US8462113B2 (en) Method for executing mouse function of electronic device and electronic device thereof
CN110794976B (en) Touch device and method
CN103616972A (en) Touch screen control method and terminal device
US9880644B2 (en) Computer input apparatus and method using smart terminal with electronic pen
CN112068698A (en) Interaction method and device, electronic equipment and computer storage medium
CN105159582A (en) Video region adjusting method and terminal
WO2012155470A1 (en) Interface control method, device, and mobile terminal
CN108984096A (en) touch operation method, device, storage medium and electronic equipment
CN108845752A (en) touch operation method, device, storage medium and electronic equipment
CN110389684B (en) Touch identification method, touch equipment and display equipment
CN110658935B (en) Data detection method and device, storage medium and touch device
CN113065317B (en) Editing content recovery method and device, electronic equipment, medium and product
CN112578967B (en) Chart information reading method and mobile terminal
CN108446062A (en) A kind of object fixing means, device, terminal device and storage medium
CN114415857B (en) Terminal operation method and device, terminal and storage medium
CN108984097B (en) Touch operation method and device, storage medium and electronic equipment
Wu et al. Touchware: A software–based technique for high–resolution multi–touch sensing devices
CN113791725A (en) Touch pen operation identification method, intelligent terminal and computer readable storage medium
CN107422975A (en) The control method and control device of mobile terminal

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