CN108089813B - Touch screen scribing operation processing method and device, electronic equipment and storage medium - Google Patents

Touch screen scribing operation processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108089813B
CN108089813B CN201810030601.5A CN201810030601A CN108089813B CN 108089813 B CN108089813 B CN 108089813B CN 201810030601 A CN201810030601 A CN 201810030601A CN 108089813 B CN108089813 B CN 108089813B
Authority
CN
China
Prior art keywords
coordinates
actual
points
report points
point
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.)
Expired - Fee Related
Application number
CN201810030601.5A
Other languages
Chinese (zh)
Other versions
CN108089813A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810030601.5A priority Critical patent/CN108089813B/en
Publication of CN108089813A publication Critical patent/CN108089813A/en
Application granted granted Critical
Publication of CN108089813B publication Critical patent/CN108089813B/en
Expired - Fee Related 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a method and a device for processing scribing operation of a touch screen, electronic equipment and a storage medium. The method comprises the following steps: when the touch screen is detected to be in a line drawing state currently, acquiring coordinates of the first N newly generated actual report points in the current line drawing operation process, wherein the actual report points are used for indicating touch points scanned according to a preset scanning frequency, and N is a positive integer greater than 2; generating coordinates of at least one simulated report point according to the coordinates of the first N actual report points; and generating a marking track of the current marking operation according to the coordinates of the actual report points and the coordinates of the simulated report points generated in the current marking operation process. The method can enable the finally obtained curve to be more accurate, can reflect the actual lineation path more truly, and does not need to solve the overhigh touch screen point reporting frequency in the whole process, so that the point reporting rate of the touch screen can be reduced, and the power consumption of the touch screen is greatly reduced.

Description

Touch screen scribing operation processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method and an apparatus for processing a touch screen scribing operation, an electronic device, and a computer-readable storage medium.
Background
Currently, the touch screen usually adopts an actual touch reporting mode, for example, if the touch IC (integrated circuit for processing touch operation) has a touch reporting rate set to 100hz, the touch IC scans whether there is a touch point on the touch screen according to a frequency of scanning once every 10ms, and if the touch point is scanned, the touch point coordinate is reported and recorded as a touch reporting point.
In practical application, in order to improve the accuracy of the scribing operation on the touch screen, in the related art, generally, the scanning frequency of the touch IC is improved to obtain a faster report rate, so that more reports can be obtained through the faster report rate, and then a more accurate scribing track can be obtained according to the more reports.
However, there are problems that: the prior art is limited by the scanning frequency of the touch IC, and obtains more accurate scribing operation by improving the dot reporting rate, which can greatly increase the power consumption of the touch screen.
Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present invention is to provide a method for processing a scribing operation of a touch screen. The method can enable the finally obtained curve to be more accurate, and does not need to solve the overhigh point reporting frequency of the touch screen, so that the point reporting rate of the touch screen can be reduced, and the power consumption of the touch screen is greatly reduced.
The second purpose of the invention is to provide a processing device for scribing the touch screen.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a computer-readable storage medium.
In order to achieve the above object, an embodiment of the invention provides a method for processing a scribing operation of a touch screen, including: when the touch screen is detected to be in a line drawing state currently, acquiring coordinates of the first N newly generated actual report points in the current line drawing operation process, wherein the actual report points are used for indicating touch points scanned according to a preset scanning frequency, and N is a positive integer greater than 2; generating coordinates of at least one simulated report point according to the coordinates of the first N actual report points; and generating a marking track of the current marking operation according to the coordinates of the actual report points and the coordinates of the simulated report points generated in the current marking operation process.
According to the processing method of the touch screen scribing operation, when the touch screen is detected to be in the scribing state at present, the coordinates of the first N newly-generated actual report points in the current scribing operation process are obtained, the coordinates of at least one simulated report point are generated according to the coordinates of the first N actual report points, and the scribing track of the current scribing operation is generated according to the coordinates of the actual report points and the coordinates of the simulated report points generated in the current scribing operation process. The method comprises the steps of simulating other positions in a marking track by using known actual point reporting coordinates, generating the marking track according to the known actual point reporting coordinates and the coordinates of the other positions, enabling a finally obtained curve to be more accurate, reflecting a path of actual marking more truly, and avoiding the need of calculating too high point reporting frequency of a touch screen in the whole process, so that the point reporting rate of the touch screen can be reduced, and the power consumption of the touch screen is greatly reduced.
In order to achieve the above object, a processing device for scribing a touch screen according to an embodiment of a second aspect of the present invention includes: the detection module is used for detecting whether the touch screen is in a scribing state at present; the obtaining module is used for obtaining coordinates of the first N newly generated actual report points in the current scribing operation process when the touch screen is detected to be in the scribing state currently, wherein the actual report points are used for indicating touch points scanned according to a preset scanning frequency, and N is a positive integer greater than 2; the first generation module is used for generating the coordinates of at least one simulated report point according to the coordinates of the first N actual report points; and the second generating module is used for generating the marking track of the current marking operation according to the coordinates of the actual marking point and the coordinates of the simulated marking point generated in the current marking operation process.
According to the processing device for the scribing operation of the touch screen, provided by the embodiment of the invention, when the acquisition module detects that the touch screen is in the scribing state at present, the coordinates of the first N latest actual report points generated in the current scribing operation process are acquired, the first generation module generates the coordinates of at least one simulated report point according to the coordinates of the first N actual report points, and the second generation module generates the scribing track of the current scribing operation according to the coordinates of the actual report points and the coordinates of the simulated report points generated in the current scribing operation process. The method comprises the steps of simulating other positions in a marking track by using known actual point reporting coordinates, generating the marking track according to the known actual point reporting coordinates and the coordinates of the other positions, enabling a finally obtained curve to be more accurate, reflecting a path of actual marking more truly, and avoiding the need of calculating too high point reporting frequency of a touch screen in the whole process, so that the point reporting rate of the touch screen can be reduced, and the power consumption of the touch screen is greatly reduced.
In order to achieve the above object, an electronic device according to an embodiment of the third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for processing the touch screen scribing operation according to the embodiment of the first aspect of the present invention.
To achieve the above object, a non-transitory computer-readable storage medium according to a fourth embodiment of the present invention is provided, on which a computer program is stored, and the computer program is executed by a processor to implement the method for processing the scribing operation of the touch screen according to the first embodiment of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow diagram of a method of processing a touch screen scribing operation according to one embodiment of the invention;
FIG. 2(a) is an exemplary diagram of touch screen touchpoints obtained using the prior art;
FIG. 2(b) is an exemplary diagram of actual and simulated touch points of a touch screen obtained using a method of processing a touch screen scribing operation according to an embodiment of the invention;
FIG. 3 is a flow diagram of a method of processing a touch screen scribing operation according to another embodiment of the invention;
FIG. 4 is a flow diagram of a method of processing a touch screen scribing operation in accordance with one embodiment of the present invention;
FIG. 5 is a schematic diagram of a processing device for scribing a touch screen according to an embodiment of the invention;
FIG. 6 is a schematic diagram of a processing device for scribing a touch screen in accordance with one embodiment of the present invention;
FIG. 7 is a schematic diagram of a processing device for scribing a touch screen according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A method, an apparatus, an electronic device, and a computer-readable storage medium for processing a touch screen scribing operation according to embodiments of the present invention are described below with reference to the accompanying drawings.
FIG. 1 is a flow diagram of a method of processing a touch screen scribing operation according to one embodiment of the invention. The method for processing the scribing operation of the touch screen according to the embodiment of the invention can be applied to a processing device for the scribing operation of the touch screen according to the embodiment of the invention, and the processing device can be configured on an electronic device. Wherein the electronic device may be a mobile terminal. For example, the mobile terminal may be a hardware device having various operating systems, such as a mobile phone, a tablet computer, a personal digital assistant, and the like.
As shown in fig. 1, the processing method of the scribing operation of the touch screen may include:
and S110, detecting whether the touch screen is in a line drawing state at present.
As an example, it may be determined whether an actual report point is continuously received, and if so, it is detected that the touch screen is currently in the line drawing state, where the actual report point is used to indicate a touch point scanned according to a preset scanning frequency. That is, whether a touch point is scanned in a plurality of consecutive scanning periods may be determined, and if so, it may be determined that the touch screen is currently in the scribing state. The line drawing state can be understood as a state of the touch screen when a user performs line drawing operation on the touch screen.
It should be noted that, in the embodiment of the present invention, the touch screen may be a capacitive touch screen. Alternatively, whether a touch point exists on the touch screen can be determined by detecting whether capacitance change occurs on the touch screen. That is, when it is detected that the capacitance of a certain touch unit on the touch screen changes, it can be determined that a touch point currently exists on the touch screen, for example, a coordinate point corresponding to the touch unit is touched by a user.
Therefore, when the user performs the scribing operation on the touch screen, the capacitance of the touch unit on the touch screen can be greatly changed, at this time, if the touch screen IC can scan the touch screen according to the preset scanning frequency and scan the coordinate point corresponding to the touch unit, the coordinate point can be reported, so that the actual report point scanned this time can be obtained, and the actual report point is the report point generated when the user performs the scribing operation on the touch screen this time. Therefore, the embodiment of the invention can detect whether the touch screen is in the scribing state or not by using the principle.
And S120, when the touch screen is detected to be in a scribing state at present, acquiring coordinates of the last N actual report points newly generated in the current scribing operation process, wherein N is a positive integer greater than 2.
S130, generating the coordinates of at least one simulated report point according to the coordinates of the first N actual report points.
Optionally, a curve equation is established according to the coordinates of the first N actual report points, and the coordinates of at least one simulated report point among the first N actual report points are generated according to the curve equation and the coordinates of the first N actual report points.
For example, assuming that N is 3, that is, when it is detected that the touch screen is currently in the line drawing state, coordinates of the first three actual report points newly generated during the current line drawing operation may be obtained, and a curve equation of two-dimensional and two-dimensional (for example, y ═ ax ^2+ bx + c) is established according to the coordinates of the first three actual report points, and then, coordinates of simulated report points among the first three actual report points may be calculated according to the curve equation and the coordinates of the first three actual report points.
As an example, the specific implementation process of generating the coordinates of at least one simulated report point between the first N actual report points according to the curve equation and the coordinates of the first N actual report points may be as follows: and calculating the added value between the abscissa or the ordinate in the first N actual report points, determining the abscissa or the ordinate of at least one simulated report point between two adjacent actual report points in the first N actual report points according to the added value, and generating the coordinate of the at least one simulated report point according to the abscissa or the ordinate of the at least one simulated report point and the curve equation.
For example, assuming that N is 3, the abscissa "10", "20" and "30" of the first three actual report points (point 1, point 2 and point 3) is taken as an example, and the increment between the abscissas of the first three actual report points is 10, at this time, the abscissa of the simulated report point between two adjacent actual report points in the first three actual report points can be determined according to the increment, for example, the abscissa of the simulated report point 1 'between point 1 and point 2 is "15", and the abscissa of the simulated report point 2' between point 2 and point 3 is "25", and then, the ordinate of the two simulated report points can be calculated according to the abscissas of the two simulated report points and the curve equation, so as to obtain the coordinate values of the two simulated report points. It is understood that the number of the simulated time points between two adjacent actual time points may be one or more, and may be set according to actual requirements, and the present invention is not limited in particular.
As another example, the specific implementation process of generating the coordinates of at least one simulated report point between the first N actual report points according to the curve equation and the coordinates of the first N actual report points may be as follows: and generating the abscissa or ordinate of at least one simulated report point between two adjacent actual report points in the first N actual report points randomly according to the abscissa or ordinate of the first N actual report points, and generating the coordinate of the at least one simulated report point according to the abscissa or ordinate of the at least one simulated report point and the curve equation.
For example, assuming that N is 3, the abscissa of the previous three actual report points (point 1, point 2, and point 3) "10", "20", and "30" are taken as examples, at this time, the abscissa of the simulated report point between two adjacent actual report points in the previous three actual report points may be randomly generated, for example, the abscissa of the simulated report point 1 'between the randomly generated point 1 and point 2 is "8", the abscissa of the simulated report point 2' between the randomly generated point 2 and point 3 is "12", and then, the ordinate of the two simulated report points may be calculated according to the abscissa of the two simulated report points and the curve equation, so as to obtain the coordinate values of the two simulated report points. It is understood that the number of the simulated time points between two adjacent actual time points may be one or more, and may be set according to actual requirements, and the present invention is not limited in particular.
And S140, generating a marking track of the current marking operation according to the coordinates of the actual marking point and the coordinates of the simulated marking point generated in the current marking operation process.
Optionally, in the process that the touch screen is in the scribing state, that is, in the process that the user performs the scribing operation currently, the actual report point generated by the touch screen in the current scribing operation process and the generated simulated report point may be connected and displayed, and the scribing trajectory of the current scribing operation may be obtained.
For example, as shown in fig. 2(a), it is assumed that the solid line trace is the actual scribing path of the user on the touch screen, and the dashed line trace is the scribing path displayed by obtaining the actual report point, and obviously, the dashed line trace of the dashed line does not truly reflect the actual scribing path of the user. Therefore, the embodiment of the invention simulates other positions on the scribing track by using the known actual positions of the report points, so that the curve is more accurate. As shown in fig. 2(b), a simulated report point (point 1 ', point 2', point 3 ', and point 4') is generated by using a known actual report point (point 1, point 2, point 3, point 4, and point 5), so that a more accurate scribing track can be obtained by using the known actual report point and the generated simulated report point, and the obtained scribing track can reflect the actual scribing path more truly.
According to the processing method of the touch screen scribing operation, when the touch screen is detected to be in the scribing state at present, the coordinates of the first N newly-generated actual report points in the current scribing operation process are obtained, the coordinates of at least one simulated report point are generated according to the coordinates of the first N actual report points, and the scribing track of the current scribing operation is generated according to the coordinates of the actual report points and the coordinates of the simulated report points generated in the current scribing operation process. The method comprises the steps of simulating other positions in a marking track by using known actual point reporting coordinates, generating the marking track according to the known actual point reporting coordinates and the coordinates of the other positions, enabling a finally obtained curve to be more accurate, reflecting a path of actual marking more truly, and avoiding the need of calculating too high point reporting frequency of a touch screen in the whole process, so that the point reporting rate of the touch screen can be reduced, and the power consumption of the touch screen is greatly reduced.
In order to improve the usability and feasibility of the present invention, optionally, in an embodiment of the present invention, before obtaining the coordinates of the first N newly generated actual report points during the current scribing operation, as shown in fig. 3, on the basis of fig. 1, the processing method of the touch screen scribing operation may further include:
s310, judging whether the number of all the actual report points generated in the currently received line drawing operation process is larger than or equal to a preset threshold value. Wherein, the preset threshold may be 3.
Optionally, when the user performs a line drawing operation on the touch screen, so that the touch screen is in a line drawing state, the touch screen IC may continuously receive touch points (i.e., actual report points) scanned according to a preset scanning frequency, at this time, it needs to be determined whether the number of currently received actual report points can satisfy a condition for establishing a curve equation, for example, it needs to be determined whether the number of currently received actual report points is greater than or equal to 3.
And S320, if not, generating the scribing track of the current scribing operation according to all the currently received actual report points generated in the current scribing operation process.
That is, when it is determined that the number of all actual report points generated in the currently received current scribing operation process is smaller than the preset threshold, for example, the number is smaller than 3, it is determined that a curve equation cannot be fitted to all currently received actual report points, and at this time, all currently received actual report points generated in the currently received current scribing operation process may be connected and displayed to obtain a scribing trajectory of the current scribing operation.
Optionally, in an embodiment of the present invention, when the number is greater than or equal to the preset threshold, the step of obtaining the coordinates of the first N latest actual report points generated in the current scribing operation process is performed, that is, the step S120 is performed. That is, when it is determined that the number of all actual report points generated in the currently received current scribing operation process is greater than or equal to the preset threshold, for example, the number is 3, it indicates that a curve equation can be established for all currently received actual report points, at this time, coordinates of the first 3 actual report points newly generated in the current scribing operation process can be obtained, a curve equation is established according to the coordinates of the first 3 actual report points, and a simulated report point can be generated according to the curve equation and the coordinates of the first 3 actual report points. Therefore, the scribing track is generated through the known coordinates of the actual report point and the coordinates of the simulated report point, so that the finally obtained curve is more accurate, and the actual scribing path can be reflected more truly.
In order that those skilled in the art will be able to more clearly understand the present invention, the following description will be given by way of example.
For example, as shown in fig. 4, the touch screen IC may determine whether a new actual hit is currently received in real time (S410). When it is determined that a new actual hit is currently received, it is detected whether the touch screen is currently in a line drawing state by determining whether the actual hit is continuously received (S420). If it is determined that the actual report points are not continuously received currently, for example, the touch points are scanned in the previous scanning period but the touch points are not scanned in the current scanning period, the actual report points are not continuously received, and it may be considered that the user may perform a click operation on the touch screen at this time. If the actual report points are continuously received, the touch screen can be judged to be in a line drawing state currently, at this time, coordinates of the first three actual report points which are newly generated in the current line drawing operation process can be obtained, a curve equation is established according to the coordinates of the first three actual report points, and coordinates of the simulated report points are calculated according to the curve equation and the coordinates of the first three actual report points (S430). Finally, the actual report points generated by the touch screen in the current scribing operation process and the generated simulation report points are connected and displayed, and the scribing track of the current scribing operation can be obtained (S440).
For example, taking the scribing trace shown in fig. 2(b) as an example, the scribing trace can be obtained by using the embodiment of the present invention, and the specific implementation steps are as follows: when the touch screen IC receives the coordinate position of an actual report point 'point 1', the coordinate position can be directly displayed, when the coordinate position of the actual report point 'point 2' is received, the coordinate position is not displayed at first, whether a touch point is scanned in the next scanning period (namely whether the actual report point reported in the next scanning period can be received) is judged, if yes, when the coordinate of the actual report point 'point 3' is received, a function equation expression y ^ ax ^2+ bx + c is established according to the coordinates of the point 1, the point 2 and the point 3, the coordinates of a simulated report point 'point 1' ″, the 'point 2' ″, are calculated according to the function equation expression, and the coordinates of the point 1 ', the point 2' and the point 3 are all displayed to obtain a curve; similarly, when the coordinate of the actual report point "point 4" is received, the simulated report point "point 3 '" is calculated according to the coordinates of the actual report point "point 2", "point 3" and "point 4", then the point 3' and the point 4 are displayed, and so on, and the scribing track of the current scribing operation can be obtained. As shown in fig. 2(b), the point 1 ', the point 2', the point 3 'and the point 4' are simulated coordinate points, and the scribing trajectory can be made more complete by these coordinate points. Therefore, other positions of the drawn line are simulated by using the known report point positions, so that the curve is more accurate.
Corresponding to the methods for processing a touch screen scribing operation provided in the foregoing embodiments, an embodiment of the present invention further provides a device for processing a touch screen scribing operation, and since the device for processing a touch screen scribing operation provided in the embodiment of the present invention corresponds to the methods for processing a touch screen scribing operation provided in the foregoing embodiments, the embodiments of the method for processing a touch screen scribing operation described above are also applicable to the device for processing a touch screen scribing operation provided in this embodiment, and will not be described in detail in this embodiment. Fig. 5 is a schematic structural diagram of a processing device for scribing a touch screen according to an embodiment of the invention. As shown in fig. 5, the processing device 500 for scribing the touch screen may include: a detection module 510, an acquisition module 520, a first generation module 530, and a second generation module 540.
Specifically, the detecting module 510 is configured to detect whether the touch screen is currently in a line drawing state. As an example, the detecting module 510 may determine whether the actual report point is continuously received, and if so, detect that the touch screen is currently in the line drawing state.
The obtaining module 520 is configured to, when it is detected that the touch screen is currently in a line drawing state, obtain coordinates of first N actual report points that are newly generated in a current line drawing operation process, where the actual report points are used to indicate touch points scanned according to a preset scanning frequency, and N is a positive integer greater than 2.
The first generating module 530 is configured to generate coordinates of at least one simulated report point according to the coordinates of the first N actual report points. As an example, as shown in fig. 6, the first generating module 530 may include: a creating unit 531 and a generating unit 532. The establishing unit 531 is configured to establish a curve equation according to the coordinates of the first N actual report points; the generating unit 532 is configured to generate coordinates of at least one simulated report point among the first N actual report points according to the curve equation and the coordinates of the first N actual report points.
As an example implementation manner, the generating unit 532 may calculate an added value between an abscissa or an ordinate of the first N actual report points, determine an abscissa or an ordinate of at least one simulated report point between two adjacent actual report points of the first N actual report points according to the added value, and generate the coordinate of the at least one simulated report point according to the abscissa or the ordinate of the at least one simulated report point and the curve equation.
As another example implementation manner, the generating unit 532 may randomly generate an abscissa or an ordinate of at least one simulated report point between two adjacent actual report points in the first N actual report points according to the abscissa or the ordinate of the first N actual report points, and generate the coordinate of the at least one simulated report point according to the abscissa or the ordinate of the at least one simulated report point and the curve equation.
The second generating module 540 is configured to generate a scribing track of the current scribing operation according to the coordinates of the actual report point and the coordinates of the simulated report point generated in the current scribing operation process.
To improve the usability and feasibility of the present invention, optionally, in an embodiment of the present invention, as shown in fig. 7, the processing device 500 for scribing the touch screen further includes: the determining module 550 may be configured to determine whether the number of currently received all actual report points generated in the current scribing operation process is greater than or equal to a preset threshold before obtaining the coordinates of the first N actual report points newly generated in the current scribing operation process. In an embodiment of the present invention, the second generating module 540 is further configured to, when the number is smaller than the preset threshold, generate a scribing trajectory of the current scribing operation according to all currently received actual report points generated in the current scribing operation process; the obtaining module 520 is further configured to obtain coordinates of the first N latest actual report points generated in the current scribing operation process when the number is greater than or equal to the preset threshold.
According to the processing device for the scribing operation of the touch screen, provided by the embodiment of the invention, when the acquisition module detects that the touch screen is in the scribing state at present, the coordinates of the first N latest actual report points generated in the current scribing operation process are acquired, the first generation module generates the coordinates of at least one simulated report point according to the coordinates of the first N actual report points, and the second generation module generates the scribing track of the current scribing operation according to the coordinates of the actual report points and the coordinates of the simulated report points generated in the current scribing operation process. The method comprises the steps of simulating other positions in a marking track by using known actual point reporting coordinates, generating the marking track according to the known actual point reporting coordinates and the coordinates of the other positions, enabling a finally obtained curve to be more accurate, reflecting a path of actual marking more truly, and avoiding the need of calculating too high point reporting frequency of a touch screen in the whole process, so that the point reporting rate of the touch screen can be reduced, and the power consumption of the touch screen is greatly reduced.
In order to implement the above embodiments, the present invention further provides an electronic device.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention. As shown in fig. 8, the electronic device 800 may include: a memory 810, a processor 820 and a computer program 830 stored in the memory 810 and operable on the processor 820, wherein the processor 820 executes the program 830 to implement the method for processing the touch screen scribing operation according to any one of the above embodiments of the present invention.
In order to implement the above embodiments, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the processing method of the touch screen scribing operation according to any one of the above embodiments of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A method for processing scribing operation of a touch screen is characterized by comprising the following steps:
when the touch screen is detected to be in a line drawing state currently, acquiring coordinates of the first N newly generated actual report points in the current line drawing operation process, wherein the actual report points are used for indicating touch points scanned according to a preset scanning frequency, and N is a positive integer greater than 2;
generating coordinates of at least one simulated report point according to the coordinates of the first N actual report points; generating the coordinates of at least one simulated report point according to the coordinates of the first N actual report points specifically comprises:
establishing a binary quadratic curve equation according to the coordinates of the first N actual report points;
generating coordinates of at least one simulated report point among the first N actual report points according to the curve equation of the binary secondary and the coordinates of the first N actual report points; wherein, the abscissa or ordinate of at least one analog report point is calculated by using the increment between the abscissas or ordinates in the first N actual report points; or, the actual report points are randomly generated from the abscissa or the ordinate between two adjacent actual report points in the first N actual report points; and generating a marking track of the current marking operation according to the coordinates of the actual report points and the coordinates of the simulated report points generated in the current marking operation process.
2. The method of claim 1, wherein detecting whether the touch screen is currently in the scribed state comprises:
judging whether the actual report points are continuously received;
and if so, detecting that the touch screen is currently in the scribing state.
3. The method of claim 1, wherein prior to obtaining coordinates of the first N most recently generated actual waypoints during the current scribing operation, the method further comprises:
judging whether the number of all the actual report points generated in the currently received current scribing operation process is larger than or equal to a preset threshold value or not;
if not, generating a marking track of the current marking operation according to all the actually reported points generated in the currently received current marking operation process;
and if so, acquiring the coordinates of the first N newly generated actual report points in the current scribing operation process.
4. The method of claim 1, wherein generating coordinates of at least one simulated waypoint between the first N actual waypoints based on a curve equation and the coordinates of the first N actual waypoints comprises:
calculating the added value between the horizontal coordinate or the vertical coordinate in the first N actual report points;
determining the abscissa or ordinate of at least one simulated report point between two adjacent actual report points in the first N actual report points according to the added value;
and generating the coordinates of the at least one simulated report point according to the abscissa or the ordinate of the at least one simulated report point and the curve equation.
5. The method of claim 1, wherein generating coordinates of at least one simulated waypoint between the first N actual waypoints based on a curve equation and the coordinates of the first N actual waypoints comprises:
randomly generating the abscissa or ordinate of at least one simulated report point between two adjacent actual report points in the first N actual report points according to the abscissa or ordinate of the first N actual report points;
and generating the coordinates of the at least one simulated report point according to the abscissa or the ordinate of the at least one simulated report point and the curve equation.
6. A device for processing a touch screen scribing operation, comprising:
the detection module is used for detecting whether the touch screen is in a scribing state at present;
the obtaining module is used for obtaining coordinates of the first N newly generated actual report points in the current scribing operation process when the touch screen is detected to be in the scribing state currently, wherein the actual report points are used for indicating touch points scanned according to a preset scanning frequency, and N is a positive integer greater than 2;
the first generation module is used for generating the coordinates of at least one simulated report point according to the coordinates of the first N actual report points; wherein the first generating module comprises:
the establishing unit is used for establishing a binary quadratic curve equation according to the coordinates of the first N actual report points;
the generating unit is used for generating the coordinates of at least one simulated report point among the first N actual report points according to the curve equation of the binary secondary and the coordinates of the first N actual report points; wherein, the abscissa or ordinate of at least one analog report point is calculated by using the increment between the abscissas or ordinates in the first N actual report points; or, the actual report points are randomly generated from the abscissa or the ordinate between two adjacent actual report points in the first N actual report points; and the second generating module is used for generating the marking track of the current marking operation according to the coordinates of the actual marking point and the coordinates of the simulated marking point generated in the current marking operation process.
7. The apparatus of claim 6, wherein the detection module is specifically configured to:
judging whether the actual report points are continuously received;
and if so, detecting that the touch screen is currently in the scribing state.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the judging module is used for judging whether the number of all currently received actual report points generated in the current scribing operation process is larger than or equal to a preset threshold value before acquiring the coordinates of the first N newly generated actual report points in the current scribing operation process;
the second generating module is further configured to generate a scribing track of the current scribing operation according to all currently received actual report points generated in the current scribing operation process when the number is smaller than the preset threshold;
the obtaining module is further configured to obtain coordinates of the first N latest actual report points generated in the current scribing operation process when the number is greater than or equal to the preset threshold.
9. The apparatus of claim 6, wherein the generating unit is specifically configured to:
calculating the added value between the horizontal coordinate or the vertical coordinate in the first N actual report points;
determining the abscissa or ordinate of at least one simulated report point between two adjacent actual report points in the first N actual report points according to the added value;
and generating the coordinates of the at least one simulated report point according to the abscissa or the ordinate of the at least one simulated report point and the curve equation.
10. The apparatus of claim 6, wherein the generating unit is specifically configured to:
randomly generating the abscissa or ordinate of at least one simulated report point between two adjacent actual report points in the first N actual report points according to the abscissa or ordinate of the first N actual report points;
and generating the coordinates of the at least one simulated report point according to the abscissa or the ordinate of the at least one simulated report point and the curve equation.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements a method of processing a touchscreen scribing operation according to any one of claims 1 to 5.
12. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements a method of processing a touchscreen scribing operation as in any one of claims 1 to 5.
CN201810030601.5A 2018-01-12 2018-01-12 Touch screen scribing operation processing method and device, electronic equipment and storage medium Expired - Fee Related CN108089813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810030601.5A CN108089813B (en) 2018-01-12 2018-01-12 Touch screen scribing operation processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810030601.5A CN108089813B (en) 2018-01-12 2018-01-12 Touch screen scribing operation processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108089813A CN108089813A (en) 2018-05-29
CN108089813B true CN108089813B (en) 2020-03-17

Family

ID=62183146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810030601.5A Expired - Fee Related CN108089813B (en) 2018-01-12 2018-01-12 Touch screen scribing operation processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108089813B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3614244B1 (en) * 2018-06-29 2023-07-12 Shenzhen Goodix Technology Co., Ltd. Touch screen adjustment method, touch chip and electronic terminal
CN108983001A (en) * 2018-07-27 2018-12-11 昆山国显光电有限公司 Curved screen touch-control performance test control method, device and test macro
WO2021072760A1 (en) * 2019-10-18 2021-04-22 深圳市欢太科技有限公司 Touch screen reporting method and apparatus, electronic device, and storage medium
CN112711350A (en) * 2021-01-08 2021-04-27 惠州Tcl移动通信有限公司 Touch screen point reporting method and device, storage medium and mobile terminal
CN114461091B (en) * 2021-07-23 2022-12-16 荣耀终端有限公司 Touch data processing method, keyboard, equipment, chip and readable storage medium
CN113885729B (en) * 2021-09-30 2023-09-19 惠州Tcl移动通信有限公司 Touch sampling control method, device, terminal and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7725747B2 (en) * 2006-03-29 2010-05-25 Intel Corporation Methods and apparatus to perform power management in processor systems
CN101751006A (en) * 2008-12-18 2010-06-23 陈学恭 Interpolation method
CN102289318A (en) * 2011-07-06 2011-12-21 广东威创视讯科技股份有限公司 Method and device for processing writing of touch screen
CN102999930A (en) * 2011-09-15 2013-03-27 汉王科技股份有限公司 Method and device for drawing electronic writing lines
CN104492081A (en) * 2014-12-31 2015-04-08 苏州乐米信息科技有限公司 Method for realizing curve track in mobile games and curve track equation setting device
CN107562364A (en) * 2017-09-19 2018-01-09 青岛海信电器股份有限公司 The display methods and device of a kind of touch track

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7725747B2 (en) * 2006-03-29 2010-05-25 Intel Corporation Methods and apparatus to perform power management in processor systems
CN101751006A (en) * 2008-12-18 2010-06-23 陈学恭 Interpolation method
CN102289318A (en) * 2011-07-06 2011-12-21 广东威创视讯科技股份有限公司 Method and device for processing writing of touch screen
CN102999930A (en) * 2011-09-15 2013-03-27 汉王科技股份有限公司 Method and device for drawing electronic writing lines
CN104492081A (en) * 2014-12-31 2015-04-08 苏州乐米信息科技有限公司 Method for realizing curve track in mobile games and curve track equation setting device
CN107562364A (en) * 2017-09-19 2018-01-09 青岛海信电器股份有限公司 The display methods and device of a kind of touch track

Also Published As

Publication number Publication date
CN108089813A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108089813B (en) Touch screen scribing operation processing method and device, electronic equipment and storage medium
CN102902404B (en) Touch panel
CN107253196A (en) A kind of mechanical arm collision checking method, device, equipment and storage medium
CN108363507B (en) Touch screen dead zone compensation method and device, electronic equipment and storage medium
KR20130011889A (en) Touch tracking device and method for a touch screen
CN108874207B (en) Touch processing device, system and method
US10983640B2 (en) Position detection circuit and position detection method in which line electrode of capacitive touch sensor is determined to be anomalous or possibly anomalous
CN104156096A (en) Touch screen control system and signal processing circuit and method of touch screen control system
CN106406638B (en) Touch point contour generation method and equipment
CN104834597A (en) Method and system for measuring application response duration
US20240111372A1 (en) Pen state detection circuit, system, and method
JP2016099742A (en) Information processing device, video projection device, information processing method and program
CN108683896A (en) A kind of calibration method of projection device, device, projection device and terminal device
CN104142786A (en) Prompt box display method and terminal
CN109508216B (en) Screen capture processing method and device, storage medium and user terminal
CN104202585A (en) Control method and device
CN107632760B (en) Handwriting circle selection method and device, touch equipment and readable storage medium
CN103543933A (en) Method for selecting files and touch terminal
CN110275639B (en) Touch data processing method and device, terminal and storage medium
JP6410693B2 (en) INPUT DEVICE, ITS CONTROL METHOD, AND PROGRAM
EP2667206A1 (en) Transient recovery voltage measuring device, transient recovery voltage measuring method, and transient recovery voltage measuring program
CN107943536B (en) Method and device for adjusting threshold, storage medium and electronic equipment
CN109391996B (en) Method for reporting measurement report, method for receiving measurement report, terminal and network equipment
JP6417939B2 (en) Handwriting system and program
JP2022092453A (en) Information processing device and information processing method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200317