Disclosure of Invention
The invention mainly aims to provide a touch pen operation identification method, an intelligent terminal and a computer readable storage medium, and aims to solve the problem that when a user uses a touch pen to perform drawing operation, the root of a palm can contact a screen, so that the contact between the root of the palm and the screen can also generate a touch track.
In order to achieve the above object, the present invention provides a method for identifying a stylus operation, including:
when the intelligent terminal detects that a user opens a drawing APP, the system informs a touch IC to enter a drawing mode, and the touch IC acquires touch information;
the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch information;
and if the current drawing operation of the user is the operation performed by the touch pen, the intelligent terminal responds to the current drawing operation of the user in a touch pen writing mode.
Optionally, the method for identifying a stylus operation, where when the smart terminal detects that a user opens a drawing APP, the system notifies a touch IC that a drawing mode has been entered, and the touch IC obtains touch information, before the method, the method further includes:
the intelligent terminal sets a touch control pen switch selection mode in a drawing APP in advance, defaults that the touch control pen switch is in an open state, and is in a touch control pen writing mode in the open state, and only supports touch control pen drawing operation in the touch control pen writing mode.
Optionally, the method for identifying a stylus operation includes determining a touch point coordinate, a touch area, and a touch change amount.
Optionally, the method for identifying a stylus operation, where when the intelligent terminal detects that a user opens a drawing APP, the system notifies a touch IC that a drawing mode has been entered, and the touch IC obtains touch information, specifically includes:
when the intelligent terminal detects that a user opens the drawing APP through touch, a system of the intelligent terminal informs the touch IC that a drawing mode is entered;
the touch IC acquires the touch point coordinate, the touch area and the touch change amount on a screen;
wherein the touch change amount represents a touch signal difference.
Optionally, the method for identifying a stylus operation, where the intelligent terminal determines, according to the touch information, whether a current drawing operation of a user is an operation performed by a stylus, specifically includes:
the intelligent terminal acquires the touch point coordinate, the touch area and the touch change quantity on a screen;
and the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch point coordinate, the touch area and the touch change amount.
Optionally, the method for identifying a stylus operation, where if the current drawing operation of the user is an operation performed by a stylus, the intelligent terminal responds to the current drawing operation of the user in a stylus writing mode, specifically including:
if the intelligent terminal detects that a plurality of touch point coordinates appear on the screen, a plurality of target touch objects exist on the screen and perform touch operation;
determining the target touch object with the smallest touch area and the smallest touch change amount as the stylus;
and the intelligent terminal only responds to the current drawing operation of the user through the touch pen in the touch pen writing mode.
Optionally, the method for identifying a stylus operation, where the intelligent terminal determines, according to the touch information, whether a current drawing operation of a user is an operation performed by a stylus pen, and then further includes:
if a plurality of target touch objects exist on the screen to perform touch operation, and the target touch object with the touch area and the touch change amount which are not the minimum is a finger or a palm root, the intelligent terminal does not respond to the current drawing operation of the user through the finger or the palm root in the stylus writing mode.
In addition, to achieve the above object, the present invention further provides a recognition system for a stylus operation, wherein the recognition system for a stylus operation includes:
the system comprises a touch information acquisition module, a drawing module and a drawing module, wherein the touch information acquisition module is used for informing a touch IC to enter a drawing mode when the intelligent terminal detects that a user opens a drawing APP, and the touch IC acquires touch information;
the touch pen judging module is used for judging whether the current drawing operation of the user is the operation performed by the touch pen or not by the intelligent terminal according to the touch information;
and the touch drawing response module is used for responding the current drawing operation of the user in a stylus writing mode if the current drawing operation of the user is the operation performed by a stylus.
In addition, to achieve the above object, the present invention further provides an intelligent terminal, wherein the intelligent terminal includes: the touch control system comprises a memory, a processor and a touch control pen operation identification program stored on the memory and capable of running on the processor, wherein the touch control pen operation identification program realizes the steps of the touch control pen operation identification method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a stylus operation recognition program, and the stylus operation recognition program, when executed by a processor, implements the steps of the method for recognizing a stylus operation as described above.
In the invention, when an intelligent terminal detects that a user opens a drawing APP, a system informs a touch IC to enter a drawing mode, and the touch IC acquires touch information; the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch information; and if the current drawing operation of the user is the operation performed by the touch pen, the intelligent terminal responds to the current drawing operation of the user in a touch pen writing mode. According to the invention, when the intelligent terminal performs the drawing operation, the detected operation of the touch pen is only responded, so that the touch points caused by the touch of the fingers and the palm roots on the screen are inhibited, the effect of drawing influence by the fingers and the palm roots is avoided, and the user can use the intelligent terminal to perform the drawing operation more conveniently.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 2, the method for identifying a stylus operation according to a preferred embodiment of the present invention includes the following steps:
step S10, when the intelligent terminal detects that the user opens the drawing APP, the system informs the touch IC that the drawing mode is entered, and the touch IC acquires touch information.
The touch control pen operation identification method is applied to an intelligent terminal, is used for enabling a user to start a drawing APP by using the intelligent terminal and perform drawing operation through a touch control pen, and is mainly applied to intelligent viewing equipment, such as a tablet personal computer, an intelligent mobile phone and an intelligent outdoor large screen.
Before the step S10, the method further includes: the intelligent terminal sets a touch control pen switch selection mode in a drawing APP in advance, defaults that the touch control pen switch is in an open state, and is in a touch control pen writing mode in the open state, and only supports touch control pen drawing operation in the touch control pen writing mode. As shown in fig. 3, when the intelligent terminal starts the drawing APP, a "stylus only mode" stylus drawing button is added, the drawing APP is started by default and only supports stylus drawing operation, that is, the stylus switch is in an on state by default, the button displays a highlight state, and when the button is clicked, the highlight state disappears, that is, the drawing APP can enter a hand and pen touch mode, that is, after the setting is completed, the intelligent terminal starts the drawing APP again and then defaults to a stylus writing mode by default.
Please refer to fig. 4, which is a flowchart of step S10 in the method for identifying stylus operation according to the present invention.
As shown in fig. 4, the step S10 includes:
s11, when the intelligent terminal detects that the drawing APP is opened by the touch of a user, the system of the intelligent terminal informs the touch IC that the drawing mode is entered;
s12, the touch IC acquires the coordinates of the touch point, the touch area, and the amount of change in touch on the screen.
Specifically, the touch information includes touch point coordinates representing contact point coordinates of the target touch object on the screen, a touch area representing an area touched by the target touch object on the screen, and a touch change amount representing a touch signal difference value (Diff). When the intelligent terminal detects that a user opens the drawing APP through touch operation, a system of the intelligent terminal informs the touch IC to enter a drawing mode, and the touch technology refers herein specifically to single-point or multi-point touch technology, IC is an integrated circuit, which is a general term for semiconductor element products, and includes: integrated Circuit (IC), two, triode, special electronic element, etc., touch IC is a finger touch chip, the touch IC usually supports a wide working voltage range, a high resolution touch detection module and a special signal processing circuit are integrated inside to ensure that the IC has sensitive automatic identification and tracking functions to environmental change, and special algorithm is built in to realize the requirements of water resistance, interference resistance, etc.; the touch IC acquires the touch point coordinates, the touch area and the touch change amount of a target touch object operation on a screen of the intelligent terminal.
And step S20, the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch information.
Please refer to fig. 5, which is a flowchart of step S20 in the method for identifying stylus operation according to the present invention.
As shown in fig. 5, the step S20 includes:
s21, the intelligent terminal acquires the touch point coordinates, the touch area and the touch change quantity on the screen;
and S22, the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch point coordinate, the touch area and the touch change amount.
Specifically, as can be seen from the above description, the touch information includes a touch point coordinate, a touch area, and a touch change amount, and then the smart terminal may obtain the touch point coordinate, the touch area, and the touch change amount on the screen; and the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch point coordinate, the touch area and the touch change amount. Because the target touch object may include a stylus, a finger, and a palm root, and the touch point coordinates, the touch area, and the touch change amount represented by the operation of different target touch objects on the smart device are different and have a large difference, because the contact sizes of the stylus, the finger, and the palm root are different, the touch point coordinates are obviously different, the touch area and the touch change amount of the finger, the palm root are obviously larger than the stylus, and the touch area and the touch change amount of the palm root are also larger than the finger, the smart terminal may determine whether the current drawing operation of the user is an operation performed by the stylus according to the detected touch point coordinates, the touch area, and the touch change amount.
And step S30, if the current drawing operation of the user is an operation performed by a touch pen, the intelligent terminal responds to the current drawing operation of the user in a touch pen writing mode.
Please refer to fig. 6, which is a flowchart of step S30 in the method for identifying stylus operation according to the present invention.
As shown in fig. 6, the step S30 includes:
s31, if the intelligent terminal detects that a plurality of touch point coordinates appear on the screen, a plurality of target touch objects exist on the screen for touch operation;
s32, determining the target touch object with the smallest touch area and the smallest touch change amount as the stylus;
and S33, the intelligent terminal only responds to the current drawing operation of the user through the touch pen in the touch pen writing mode.
Specifically, when the smart terminal determines whether the current drawing operation of the user is performed by the stylus pen according to the touch point coordinates, the touch area, and the touch change amount, if the smart terminal detects that a plurality of touch point coordinates (e.g. 3 touch points) appear on the screen, then a plurality of target touch objects (e.g. 3 target touch objects are stylus pen, finger, and palm root, respectively) exist on the screen for performing the touch operation, and the target touch object with the smallest touch area and the smallest touch change amount (i.e. stylus pen, because the touch area and the touch change amount of the stylus pen are smallest among the stylus pen, finger, and palm root) is determined as the stylus pen, and the smart terminal only responds to the current drawing operation of the user by the stylus pen in the stylus writing mode, thereby suppressing the influence of the fingers and palm roots on the drawing operation.
That is, if a plurality of target touch objects exist on the screen and touch operation is performed on the screen, and the target touch object with the touch area and the touch change amount that are not the smallest is a finger or a palm root (the target touch object with the touch area and the touch change amount that are the smallest is a stylus), the smart terminal does not respond to the drawing operation currently performed by the user through the finger or the palm root in the stylus writing mode, so that large-area touch of the finger, the palm root (palm) and the like is suppressed.
Or the icon highlight state disappears after the only pen mode touch pen drawing button is closed, the drawing APP can respond to the touch events reported by the touch pen and the normal finger, and if the finger and the touch pen operate on the drawing APP at the same time, the drawing APP preferentially responds to the touch ID touched first. At this time, the touch coordinate drawing APP generated in a large area such as palm root and palm part does not respond, so that large area touch such as palm root and palm root is inhibited.
Further, as shown in fig. 7, the touch operation of the stylus pen in the drawing APP is shown, and usually the touch change amount (Diff value) of the stylus pen is small (assuming that the touch threshold is 50), and if the touch change amount is smaller than 50, it is considered that the stylus pen is performing the touch operation, and similarly, the touch area of the stylus pen performing the touch operation is small, for example, the touch area is 3.
Further, as shown in fig. 8, it shows that the normal touch operation of the finger on the drawing APP is performed, and the touch change amount (Diff value) of the finger is usually large (assuming that the touch threshold is 50), and if the touch change amount is larger than 50, it is considered that the finger is performing the touch operation, and similarly, the touch area of the finger performing the touch operation is larger than that of the touch pen, for example, the touch area is 9. The amount of touch change (Diff value) of the palm root is generally large and takes a shape of a large area (larger than that of a finger), and the touch area is also large (generally, the area is greater than 14).
In the invention, the system is also simpler to realize: the APP interface end sets up Touch pen drawing mode, and intelligent terminal system gives Touch IC issue the order, and Touch IC also can come the Touch parameter under the different scenes of adaptation, and Touch-control experience is more sensitive during the stylus mode, writes more smoothly, and it is also more convenient to palm root portion suppression simultaneously.
According to the method, the touch control writing pen and the normal finger are identified according to the touch control signal difference when the hand and the pen are respectively operated, the contact area of the touch control writing pen is small, the pen and the hand can be effectively distinguished through the size of the touch control point area, when the drawing APP operation is opened, the system informs the touch control IC that the drawing mode is entered, and the touch control IC reports the information of the contact coordinate, the area and the like; a stylus writing mode (default automatic opening) is synchronously added into a drawing APP, the drawing APP only responds to a stylus (the stylus has a small touch control surface and a small touch control change amount) in the mode, touch control points caused by the fact that fingers and palm roots contact a mobile phone are effectively restrained, and when the stylus writing mode is selected to be closed, the drawing APP can respond to the stylus and draw pictures through normal fingers, and the out-pointing caused by large areas such as the palm roots is restrained.
In order to solve the problem of drawing APP false response caused by the fact that a user places a flat plate with a pen on the palm and the hands such as the palm and the palm root are in large contact, a touch control pen switch selection mode (default on) is provided for the drawing APP, when the drawing APP enters a drawing scene mode, a touch control IC reports information such as contact coordinates, area and Diff value, the drawing APP responds to the touch control pen or the hand pen in the current switch mode and is used for drawing at the same time, large-area contact points such as the palm and the palm root are restrained, and writing experience can be effectively improved.
Further, as shown in fig. 9, based on the above method for identifying a stylus operation, the present invention also provides a system for identifying a stylus operation, wherein the system for identifying a stylus operation includes:
the touchinformation acquisition module 51 is used for notifying the touch IC that the drawing mode is entered when the intelligent terminal detects that the drawing APP is opened by the user, and the touch IC acquires touch information;
a touchpen judging module 52, configured to judge, by the intelligent terminal according to the touch information, whether a current drawing operation of the user is an operation performed by a touch pen;
and a touchdrawing response module 53, configured to, if the current drawing operation of the user is an operation performed by a stylus, respond to the current drawing operation of the user by the intelligent terminal in a stylus writing mode.
Further, as shown in fig. 10, based on the above method for identifying a stylus operation, the present invention also provides an intelligent terminal, which includes aprocessor 10, amemory 20, and adisplay 30. Fig. 10 shows only some of the components of the smart terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
Thememory 20 may be an internal storage unit of the intelligent terminal in some embodiments, such as a hard disk or a memory of the intelligent terminal. Thememory 20 may also be an external storage device of the Smart terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the Smart terminal. Further, thememory 20 may also include both an internal storage unit and an external storage device of the smart terminal. Thememory 20 is used for storing application software installed in the intelligent terminal and various data, such as program codes of the installed intelligent terminal. Thememory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, thememory 20 stores a stylusoperation recognition program 40, and the stylusoperation recognition program 40 can be executed by theprocessor 10, so as to implement the method for recognizing the stylus operation in the present application.
Theprocessor 10 may be a Central Processing Unit (CPU), microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in thememory 20 or Processing data, such as executing the identification method of the stylus operation.
Thedisplay 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. Thedisplay 30 is used for displaying information at the intelligent terminal and for displaying a visual user interface. The components 10-30 of the intelligent terminal communicate with each other via a system bus.
In one embodiment, when theprocessor 10 executes therecognition program 40 for the stylus operation in thememory 20, the following steps are implemented:
when the intelligent terminal detects that a user opens a drawing APP, the system informs a touch IC to enter a drawing mode, and the touch IC acquires touch information;
the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch information;
and if the current drawing operation of the user is the operation performed by the touch pen, the intelligent terminal responds to the current drawing operation of the user in a touch pen writing mode.
Wherein, when the intelligent terminal detects that the user opens drawing APP, the system notifies the touch IC to enter the drawing mode, the touch IC acquires the touch information, and the method comprises the following steps:
the intelligent terminal sets a touch control pen switch selection mode in a drawing APP in advance, defaults that the touch control pen switch is in an open state, and is in a touch control pen writing mode in the open state, and only supports touch control pen drawing operation in the touch control pen writing mode.
The touch information comprises touch point coordinates, a touch area and a touch change amount.
Wherein, when intelligent terminal detects that the user opens drawing type APP, the system notifies the touch IC to have entered the drawing mode, the touch IC acquires the touch information, specifically includes:
when the intelligent terminal detects that a user opens the drawing APP through touch, a system of the intelligent terminal informs the touch IC that a drawing mode is entered;
the touch IC acquires the touch point coordinate, the touch area and the touch change amount on a screen;
wherein the touch change amount represents a touch signal difference.
The intelligent terminal judges whether the current drawing operation of the user is an operation performed through a touch pen according to the touch information, and specifically includes:
the intelligent terminal acquires the touch point coordinate, the touch area and the touch change quantity on a screen;
and the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch point coordinate, the touch area and the touch change amount.
Wherein, if the current drawing operation of the user is an operation performed by a stylus, the intelligent terminal responds to the current drawing operation of the user in a stylus writing mode, and specifically includes:
if the intelligent terminal detects that a plurality of touch point coordinates appear on the screen, a plurality of target touch objects exist on the screen and perform touch operation;
determining the target touch object with the smallest touch area and the smallest touch change amount as the stylus;
and the intelligent terminal only responds to the current drawing operation of the user through the touch pen in the touch pen writing mode.
The intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch information, and then the intelligent terminal further comprises:
if a plurality of target touch objects exist on the screen to perform touch operation, and the target touch object with the touch area and the touch change amount which are not the minimum is a finger or a palm root, the intelligent terminal does not respond to the current drawing operation of the user through the finger or the palm root in the stylus writing mode.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a stylus operation recognition program, and the stylus operation recognition program implements the above-mentioned steps of the stylus operation recognition method when executed by a processor.
In summary, the present invention provides a method for identifying a stylus operation, an intelligent terminal and a computer-readable storage medium, where the method includes: when the intelligent terminal detects that a user opens a drawing APP, the system informs a touch IC to enter a drawing mode, and the touch IC acquires touch information; the intelligent terminal judges whether the current drawing operation of the user is the operation performed by the touch pen according to the touch information; and if the current drawing operation of the user is the operation performed by the touch pen, the intelligent terminal responds to the current drawing operation of the user in a touch pen writing mode. According to the invention, when the intelligent terminal performs the drawing operation, the detected operation of the touch pen is only responded, so that the touch points caused by the touch of the fingers and the palm roots on the screen are inhibited, the effect of drawing influence by the fingers and the palm roots is avoided, and the user can use the intelligent terminal to perform the drawing operation more conveniently.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.