CN114647359A - State switching method, device, equipment and storage medium - Google Patents

State switching method, device, equipment and storage medium Download PDF

Info

Publication number
CN114647359A
CN114647359A CN202210189622.8A CN202210189622A CN114647359A CN 114647359 A CN114647359 A CN 114647359A CN 202210189622 A CN202210189622 A CN 202210189622A CN 114647359 A CN114647359 A CN 114647359A
Authority
CN
China
Prior art keywords
touch
operation object
state
erasing
area
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.)
Pending
Application number
CN202210189622.8A
Other languages
Chinese (zh)
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.)
Hefei Xunfei Reading And Writing Technology Co ltd
Original Assignee
Hefei Xunfei Reading And Writing Technology 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 Hefei Xunfei Reading And Writing Technology Co ltd filed Critical Hefei Xunfei Reading And Writing Technology Co ltd
Priority to CN202210189622.8A priority Critical patent/CN114647359A/en
Publication of CN114647359A publication Critical patent/CN114647359A/en
Pending legal-status Critical Current

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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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

Landscapes

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

Abstract

The application provides a state switching method, a state switching device, equipment and a storage medium, wherein the state switching method comprises the following steps: after the electronic equipment enters a writing state, detecting touch operation of a first operation object on a touch screen; if the touch operation information corresponding to the touch operation meets the preset condition, controlling the electronic equipment to be switched to an erasing state, wherein the touch operation information comprises: the touch control method comprises the following steps of contacting time of a first operation object and a touch control screen, contacting area of the first operation object and the touch control screen, and moving condition of the first operation object on the touch control screen. According to the state switching method, the state switching can be achieved through simple touch operation, the switching mode is simple and efficient, and the user experience is good.

Description

State switching method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of touch screen devices, and in particular, to a method, an apparatus, a device, and a storage medium for switching states.
Background
Touch screen devices with writing capabilities, such as ink screen devices, typically have a writing state and an erasing state. In the writing state, a user may use a writing device (such as a stylus that mates with a touch screen device) to write on a writing area of the device screen, and in the erasing state, the user may erase the written content.
It will be appreciated that the user may need to modify the writing process, i.e. the user needs to erase the writing content, which means that the touch screen device needs to be switched from the writing state to the erasing state.
At present, the mode of switching the touch screen device from the writing state to the erasing state is mostly based on the switching mode of the interface icon, that is, the state is switched by clicking the interface icon. However, it is not efficient to switch the state by clicking the section icon, and the user experience is not good.
Disclosure of Invention
In view of this, the present application provides a state switching method, apparatus, device and storage medium, so as to solve the problems of low efficiency and poor user experience in the existing mode of switching states by clicking an interface icon, and the technical scheme is as follows:
a state switching method is applied to an electronic device with a touch screen, wherein the electronic device has a writing state and an erasing state, and the method comprises the following steps:
after the electronic equipment enters the writing state, detecting the touch operation of a first operation object on the touch screen;
if the touch operation information corresponding to the touch operation meets a preset condition, controlling the electronic equipment to be switched to the erasing state;
wherein the touch operation information includes: the touch control method comprises the following steps of contacting time of the first operation object with the touch control screen, contact area of the first operation object with the touch control screen and moving condition of the first operation object on the touch control screen.
Optionally, the state switching method further includes:
after the electronic equipment is controlled to be switched to the erasing state, drawing and displaying an erasable area;
and erasing the written content in the erasable area based on the operation of the first operation object in the erasable area.
Optionally, the preset conditions include:
the contact time of the first operation object and the touch screen is greater than a preset first time threshold;
the contact area between the first operation object and the touch screen is larger than a preset area threshold;
and the displacement of the first operation object on the touch screen is smaller than a preset first displacement threshold value.
Optionally, the drawing and displaying the erasable area includes:
and drawing and displaying the erasable area with the set shape based on the contact point of the first operation object and the touch screen and a preset graph size.
Optionally, the erasing the written content in the erasable area based on the operation of the first operation object in the erasable area includes:
detecting whether the displacement of the first operation object is larger than a preset second displacement threshold value or not;
and if the displacement of the first operation object is larger than the preset second displacement threshold, responding to the operation of the first operation object in the erasable area, and erasing the writing content operated by the first operation object in the erasable area.
Optionally, the state switching method further includes:
after the electronic equipment is switched to the erasing state, if the first operation object is detected to be lifted, or the first operation object is detected to slide out of a writing area on the touch screen, the electronic equipment is controlled to be switched to the erasing protection state;
and controlling the electronic equipment to be switched to the erasing state if the first operation object is detected to be in contact with the erasable area within the preset erasing state protection time.
Optionally, the state switching method further includes:
and if the time that the electronic equipment is in the erasing protection state exceeds the preset erasing protection time or a second operation object is detected to contact a writing area of the touch screen, controlling the electronic equipment to be switched to the writing state.
A state switching device is applied to an electronic device with a touch screen, wherein the electronic device has a writing state and an erasing state, and the device comprises: the device comprises a detection module and a first control module;
the detection module is used for detecting the touch operation of a first operation object on the touch screen;
the first control module is used for controlling the electronic equipment to be switched to the erasing state when the touch operation information corresponding to the touch operation meets a preset condition;
wherein the touch operation information includes: the touch control method comprises the following steps of contacting time of the first operation object with the touch control screen, contact area of the first operation object with the touch control screen and moving condition of the first operation object on the touch control screen.
Optionally, the state switching device further includes: the erasable area drawing and displaying module and the writing content erasing module;
the erasable area drawing and displaying module is used for drawing and displaying an erasable area after the first control module controls the electronic equipment to be switched to the erasing state;
the writing content erasing module is used for erasing the writing content in the erasable area based on the operation of the first operation object in the erasable area.
Optionally, the state switching device further includes: further comprising: a second control module and a third control module;
the second control module is configured to, after the first control module controls the electronic device to switch to the erase state, control the electronic device to switch to an erase protection state if it is detected that the first operation object is lifted or the first operation object is detected to slide out of a writing area on the touch screen;
the third control module is configured to control the electronic device to switch to the erasing state if it is detected that the first operation object contacts the erasable area within a preset erasing state protection time.
An electronic device, comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program to implement each step of the state switching method described in any one of the above.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the state switching method of any one of the above.
According to the state switching method, the state switching device, the electronic equipment and the storage medium, after the electronic equipment enters the writing state, the touch operation of a first operation object on the touch screen can be detected, and when the touch operation information corresponding to the touch operation meets the preset condition, the electronic equipment can be controlled to be switched to the erasing state. According to the state switching method, the state of the electronic equipment can be switched based on simple touch operation of the first operation object, the switching mode is simple and efficient, and user experience is good.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a state switching method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another state switching method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another state switching method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a state switching device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a state switching device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
At present, the mode of switching the touch screen equipment from the writing state to the erasing state is mostly a switching mode based on an interface icon, namely when the state needs to be switched, the state switching interface is firstly clicked, then a switching button in the state switching interface is clicked, so that the switching process is complex, and the switching efficiency is not high.
In order to realize the rapid switching of the device states, the applicant carries out research, and through continuous research, a state switching method which is simple to operate and high in switching efficiency is finally provided.
It should be understood that the above-described exemplary electronic devices are only examples, and other electronic devices that may be present or later become known and may be used in the present application are also included within the scope of the present application and are hereby incorporated by reference.
The following embodiments are provided to describe the state switching method provided in the present application.
First embodiment
Referring to fig. 1, a flow diagram of a state switching method provided in this embodiment is shown, where the state switching method is applied to an electronic device with a touch screen, where the electronic device has a writing state and an erasing state, and the method may include:
step S101: after the electronic equipment enters a writing state, touch operation of a first operation object on the touch screen is detected.
And the electronic equipment enters a writing state, a touch screen of the electronic equipment displays an interface containing a writing area, and a user can write in the writing area of the touch screen by using a second operation object. The second operation object is an object capable of writing in a writing area of the touch screen, such as a touch pen (e.g., an electromagnetic pen, a capacitive pen, etc.).
According to the method and the device, after the electronic equipment enters a writing state, the touch operation of a first operation object on the touch screen is detected. Optionally, the touch operation of the first operation object on the touch screen may be, but is not limited to, a touch operation of the first operation object on a writing area of the touch screen.
Optionally, the first operation object may be, but is not limited to, a finger of a user, and the touch operation of the first operation object on the touch screen may be a single-point touch operation of the finger of the user on the touch screen.
Step S102: and if the touch operation information corresponding to the touch operation of the first operation object on the touch screen meets the preset condition, controlling the electronic equipment to be switched to an erasing state.
The touch operation information corresponding to the touch operation of the first operation object on the touch screen may include, but is not limited to: the touch control method comprises the following steps of contacting time of a first operation object and a touch control screen, contacting area of the first operation object and the touch control screen, and moving condition of the first operation object on the touch control screen.
For example, the first operation object is a finger of a user, the contact time of the finger of the user with the touch screen is the contact time of the finger of the user with the writing area of the touch screen, the contact area of the first operation object with the touch screen is the contact area of the finger of the user with the writing area of the touch screen, and the movement condition of the first operation object on the touch screen may be a displacement of the finger of the user in the writing area of the touch screen.
In this embodiment, after detecting the touch operation of the first operation object on the touch screen, it is determined whether the touch operation information corresponding to the touch operation of the first operation object on the touch screen meets a preset condition, specifically, it is determined whether the contact time of the first operation object with the touch screen is greater than a preset first time threshold, whether the contact area of the first operation object with the touch screen is greater than a preset area threshold, and whether the displacement of the first operation object on the touch screen is smaller than a preset first displacement threshold, if the contact time of the first operation object with the touch screen is greater than the preset first time threshold, and the contact area of the first operation object with the touch screen is greater than the preset area threshold, and the displacement of the first operation object on the touch screen is smaller than the preset first displacement threshold, it may be considered that the user intends to erase the written content, and the electronic device needs to be switched from the writing state to the erasing state, in view of this, the control electronics switch to the erased state. It should be noted that the displacement of the first operation object on the touch screen may be a displacement within a preset time period from the first operation object contacting the touch screen, and that a displacement of the first operation object on the touch screen smaller than a preset first displacement threshold indicates that the first operation object does not move or only slightly moves.
Therefore, if the first operation object is a finger of the user, for the user, the electronic device can be switched from the handwriting state to the erasing state only by performing a single-point touch operation on the touch screen through the finger.
In this embodiment, a touch operation may be detected by a screen sensor of an electronic device, when a first operation object, such as a finger of a user, contacts a touch screen, a touch signal may be received by the screen sensor of the electronic device, the touch signal is received, which indicates that the touch operation is detected, and after the touch signal is received, a touch time and a touch position of the first operation object on the touch screen may be obtained by a driver, where it is to be noted that, starting from when the first operation object contacts the touch screen, the touch time and the touch position of the first operation object may be continuously obtained until the first operation object leaves the touch screen (that is, the first operation object does not contact the touch screen any more), for example, touch coordinates at time t1 and t1, touch coordinates at time t2 and t2, touch coordinates at time t3 and t3, and … are obtained, and a contact time of the first operation object with the touch screen may be determined by the obtained touch time (where the contact time is a contact time here Duration), the displacement of the first operation object on the touch screen can be determined by the acquired touch coordinates, for example, after the first touch time is obtained, every time a touch time is obtained, the current contact time of the first operation object with the touch screen can be obtained by subtracting the latest obtained touch time from the first touch time, the difference between the latest obtained touch time and the first touch time is the contact time of the first operation object with the touch screen, for the displacement of the first operation object on the touch screen, after the first touch coordinates are obtained, every time a touch coordinate is obtained, the current displacement of the first operation object on the touch screen can be determined based on the latest obtained touch coordinates and the first touch coordinates (the displacement can be determined based on sqrt ((x2-x1)2, (y2-y1)2), (x1, y1) is the first touch coordinates, that is the touch coordinates when the first operation object starts to contact the touch screen, (x2, y2) is the latest obtained touch coordinate), and the displacement determined based on the latest obtained touch coordinate and the first touch coordinate is the displacement of the first operation object on the touch screen.
After the electronic device enters the erasing state, the first operation object can perform erasing operation so as to erase the content written in the writing area displayed on the touch screen.
For example, the first operation object is a finger, the user usually erases the written content by sliding the finger, and for some devices, the sliding finger may trigger other functions, such as a page turning function, in order to avoid triggering other functions to affect the erasing when the written content is erased by the finger, and after the electronic device enters the erasing state, the triggering of other functions may be intercepted.
According to the state switching method provided by the embodiment of the application, after the electronic equipment enters the writing state, the touch operation of the first operation object on the touch screen can be detected, and when the touch operation information corresponding to the touch operation meets the preset condition, the electronic equipment can be controlled to be switched to the erasing state. According to the state switching method, the state of the electronic equipment can be switched based on simple touch operation of the first operation object, the switching mode is simple and efficient, and user experience is good.
Second embodiment
On the basis of the state switching method provided in the foregoing embodiment, the present embodiment provides another state switching method, where the state switching method is applied to an electronic device with a touch screen, where the electronic device has a writing state and an erasing state, please refer to fig. 2, which shows a flowchart of the state switching method provided in the present embodiment, and may include:
step S201: after the electronic equipment enters a writing state, touch operation of a first operation object on the touch screen is detected.
Optionally, the first operation object may be, but is not limited to, a finger of a user, and the touch operation of the first operation object on the touch screen may be a single-point touch operation of the finger of the user on the touch screen.
Step S202: and if the touch operation information corresponding to the touch operation of the first operation object on the touch screen meets the preset condition, controlling the electronic equipment to be switched to an erasing state.
The touch operation information corresponding to the touch operation of the first operation object on the touch screen may include, but is not limited to: the touch control method comprises the following steps of contacting time of a first operation object and a touch control screen, contacting area of the first operation object and the touch control screen, and moving condition of the first operation object on the touch control screen.
Wherein the preset condition may include: the contact time of the first operation object and the touch screen is greater than a preset first time threshold; the contact area between the first operation object and the touch screen is larger than a preset area threshold value; the displacement of the first operation object on the touch screen is smaller than a preset first displacement threshold value.
It should be noted that, in the embodiment, the specific implementation process and the related explanation of steps S201 to S202 may refer to the specific implementation process and the related explanation of steps S101 to S102 in the first embodiment, and this embodiment is not described herein again.
Step S203: and after the electronic equipment is controlled to be switched to the erasing state, drawing and displaying the erasable area.
Wherein the erasable area may indicate which portion of the written content may be erased by the user.
Optionally, when the erasable area is drawn and displayed, the erasable area of the set shape may be drawn and displayed based on a contact point of the first operation object and the touch screen and a preset graphic size.
For example, a circular erasable area may be drawn with the contact point of the first operation object and the touch screen as the center and the preset graphic size as the radius, and for example, a square erasable area may be drawn with the contact point of the first operation object and the touch screen as the center and the preset graphic size as the side length.
In a possible implementation manner, the erasable area may be continuously drawn after the electronic device is controlled to switch to the erasing state, that is, the erasable area with the set shape may be drawn based on the latest contact point of the first operation object and the touch screen and the preset graphic size. Considering the refresh rate limitation of some screens (such as an ink screen), in another possible implementation manner, an erasable area of a set shape may be drawn only at the moment when the control electronic device is switched to the erase state, based on the contact point of the first operation object and the touch screen and the preset graphic size, and the erasable area is not drawn any more during the erase process.
Optionally, after it is determined that the electronic device needs to enter the erase state, a prompt message that the electronic device enters the erase state may be further output to prompt the user that the electronic device currently enters the erase state, and the user may perform an erase operation. Optionally, the prompt message may be output in a form of voice or text, for example, a prompt voice of the electronic device entering the erase state is played, or a prompt text of the electronic device entering the erase state is displayed.
Step S204: and erasing the writing content in the erasable area based on the operation of the first operation object in the erasable area.
Based on the operation of the first operation object in the erasable area, there are various ways to erase the written content in the erasable area: in a possible implementation manner, the writing content operated by the first operation object in the erasable area can be erased directly in response to the operation of the first operation object in the erasable area; considering that there may be a false touch operation, in order to avoid responding to the false touch operation, in another possible implementation manner, it may be detected whether the displacement of the first operation object in the operable area is greater than a preset second displacement threshold, and if the displacement of the first operation object in the operable area is greater than the preset second displacement threshold, it indicates that the operation of the first operation object in the operable area is an erasing operation, and is not a false touch operation, the writing content operated by the first operation object in the erasable area is erased in response to the operation of the first operation object in the erasable area.
The applicant finds that, in the course of implementing the present application, currently, a touch screen device (such as an ink screen device) has a scheme of writing with a pen tip and erasing with a pen tail, that is, writing with a pen tip of a touch pen in a writing area of a screen, and in the writing process, if the written content is to be erased, turning over the touch pen and erasing the written content with the pen tail of the touch pen. It can be understood that, during the writing process, the user may need to modify many times, that is, the user needs to erase the written content many times, which means that the user needs to frequently turn over the stylus pen, however, frequently turning over the stylus pen is prone to cause wrist fatigue, and if the material of the pen tail of the stylus pen is too hard, the screen is damaged by frequent erasing, and if the material is too soft, the material is easily worn and needs to be replaced frequently. Compared with the scheme of writing by a pen point and erasing by a pen tail, the device state switching can be realized by the single-point touch operation of the finger without turning over the touch control pen, the written content is erased by the finger without damaging a screen or wearing the touch control pen,
according to the state switching method provided by the embodiment of the application, after the electronic equipment enters the writing state, the touch operation of a first operation object on the touch screen can be detected, the electronic equipment can be controlled to be switched to the erasing state when the touch operation information corresponding to the touch operation meets the preset condition, the erasable area can be drawn and displayed after the electronic equipment is switched to the erasing state, and the writing content in the erasable area can be erased based on the operation of the first operation object in the erasable area. The state switching method provided by the embodiment of the application can realize the state switching of the electronic equipment based on the simple touch operation of the first operation object, the switching mode is simple and efficient, after the state switching is carried out to the erasing state, the erasing of the written content in the erasable area can be realized based on the operation of the first operation object in the erasable area, and the user experience is good.
Third embodiment
It can be understood that, when a user erases written content based on a first operation object, in order to ensure continuity of an erasing process and enable the user to have a better erasing experience, in a case that the first operation object may leave the touch screen or leave the erasable area for some reason (for example, the user lifts up a hand because the user needs to adjust the erased content), another state switching method is provided in an embodiment of the present application, and is applied to an electronic device having a touch screen, where the electronic device has a writing state and an erasing state, please refer to fig. 3, which shows a flowchart of the state switching method provided in this embodiment, and may include:
step S301: after the electronic equipment enters a writing state, touch operation of a first operation object on the touch screen is detected.
Optionally, the first operation object may be, but is not limited to, a finger of a user, and the touch operation of the first operation object on the touch screen may be a single-point touch operation of the finger of the user on the touch screen.
Step S302: and if the touch operation information corresponding to the touch operation of the first operation object on the touch screen meets the preset condition, controlling the electronic equipment to be switched to an erasing state.
The touch operation information corresponding to the touch operation of the first operation object on the touch screen may include, but is not limited to: the touch control method comprises the following steps of contacting time of a first operation object and a touch control screen, contacting area of the first operation object and the touch control screen, and moving condition of the first operation object on the touch control screen.
Wherein the preset condition may include: the contact time of the first operation object and the touch screen is greater than a preset first time threshold; the contact area between the first operation object and the touch screen is larger than a preset area threshold; the displacement of the first operation object on the touch screen is smaller than a preset first displacement threshold value.
It should be noted that, in the embodiment, the specific implementation process and the related explanation of steps S301 to S302 may refer to the specific implementation process and the related explanation of steps S101 to S102 in the first embodiment, and details are not described herein in this embodiment.
Step S303: and drawing and displaying the erasable area after the electronic equipment is controlled to be switched to the erasing state.
Optionally, after it is determined that the electronic device needs to enter the erase state, a prompt message that the electronic device enters the erase state may be further output to prompt the user that the electronic device currently enters the erase state, and the user may perform an operation. Alternatively, the prompt may be output in voice or text form.
Step S304: and erasing the written content in the erasable area based on the operation of the first operation object in the erasable area.
It should be noted that, in the embodiment, the specific implementation process and the related explanation of steps S303 to S304 refer to the specific implementation process and the related explanation of steps S203 to S204 in the second embodiment, which is not described herein again.
Step S305: and if the first operation object is detected to be lifted, or the first operation object is detected to slide out of a writing area on the touch screen, controlling the electronic equipment to be switched to an erasing protection state.
It should be noted that, the control of the electronic device to switch to the erase protection state essentially delays the electronic device from exiting the erase state, thereby ensuring the consistency of the erase.
Step S306 a: and controlling the electronic equipment to be switched to an erasing state if the first operation object is detected to be in contact with the erasable area within the preset erasing state protection time.
And when the electronic equipment is controlled to be switched to the erasing protection state, counting the time of the electronic equipment in the erasing protection state.
If the first operation object is detected to be in contact with the erasable area within the preset erasing state protection time, the first operation object is indicated to continue to perform the erasing operation, at this time, the electronic device is controlled to be switched to the erasing state, that is, the electronic device recovers the erasing state, and after the electronic device recovers the erasing state, the step S304 and the subsequent steps can be executed.
Step S306 b: and if the time for detecting that the electronic equipment is in the erasing protection state exceeds the preset erasing protection time, or the second operation object is detected to contact the writing area of the touch screen, controlling the electronic equipment to be switched to the writing state.
The second operation object is an object capable of writing in a writing area of the touch screen, such as a touch pen (e.g., an electromagnetic pen, a capacitive pen, etc.).
It should be noted that if it is detected that the time when the electronic device is in the erase protection state exceeds the preset erase state protection time, it is determined that the first operation object does not continue to perform the erase operation, the electronic device is controlled to switch to the writing state, that is, the electronic device is caused to exit from the erase state, and if it is detected that the second operation object contacts the writing area of the touch screen, which indicates that the user is about to perform the writing operation, the electronic device is controlled to switch to the writing state.
The state switching method provided by the embodiment of the application can detect the touch operation of a first operation object on a touch screen after an electronic device enters a writing state, and can control the electronic device to be switched to an erasing state when touch operation information corresponding to the touch operation meets a preset condition, so that the electronic device can be switched to the erasing state efficiently. The control electronics resume the erased state. The state switching method provided by the embodiment of the application can realize efficient switching of the states of the electronic equipment and efficient erasing of the written content, can also ensure the consistency of erasing, and has better user experience.
Fourth embodiment
The embodiment of the present application further provides a state switching device, which is applied to an electronic device with a touch screen, where the electronic device has a writing state and an erasing state, and the state switching device provided in the embodiment of the present application is described below, and the state switching device described below and the state switching method described above may be referred to in a corresponding manner.
Referring to fig. 4, a schematic structural diagram of a state switching device according to an embodiment of the present application is shown, which may include: a detection module 401 and a first control module 402.
The detecting module 401 is configured to detect a touch operation of a first operation object on the touch screen.
The first control module 402 is configured to control the electronic device to switch to the erase state when the touch operation information corresponding to the touch operation meets a preset condition.
Wherein the touch operation information includes: the touch control method comprises the following steps of contacting time of the first operation object with the touch control screen, contact area of the first operation object with the touch control screen and moving condition of the first operation object on the touch control screen.
Optionally, the state switching device provided in this embodiment of the present application may further include: an erasable area drawing and displaying module and a written content erasing module.
The erasable area drawing and displaying module is used for drawing and displaying an erasable area after the first control module controls the electronic equipment to be switched to the erasing state.
The writing content erasing module is used for erasing the writing content in the erasable area based on the operation of the first operation object in the erasable area.
Optionally, the preset conditions include:
the contact time of the first operation object and the touch screen is greater than a preset first time threshold;
the contact area between the first operation object and the touch screen is larger than a preset area threshold;
and the displacement of the first operation object on the touch screen is smaller than a preset first displacement threshold value.
Optionally, when the erasable area drawing and displaying module draws and displays the erasable area, the erasable area drawing and displaying module is specifically configured to:
and drawing and displaying the erasable area with the set shape based on the contact point of the first operation object and the touch screen and a preset graph size.
Optionally, when the writing content in the erasable area is erased based on the operation of the first operation object in the erasable area, the writing content erasing module is specifically configured to:
detecting whether the displacement of the first operation object is larger than a preset second displacement threshold value or not;
and if the displacement of the first operation object is larger than the preset second displacement threshold, responding to the operation of the first operation object in the erasable area, and erasing the writing content operated by the first operation object in the erasable area.
Optionally, the state switching device provided in this embodiment of the present application may further include: the device comprises a second control module and a third control module.
The second control module is configured to, after the first control module controls the electronic device to switch to the erase state, control the electronic device to switch to an erase protection state if it is detected that the first operation object is lifted or it is detected that the first operation object slides out of a writing area on the touch screen.
The third control module is configured to control the electronic device to switch to the erase state if it is detected that the first operation object contacts an erasable area within a preset erase state protection time.
Optionally, the state switching device provided in this embodiment of the present application may further include: and a fourth control module.
The fourth control module is configured to control the electronic device to switch to the writing state when it is detected that the time that the electronic device is in the erasing protection state exceeds the preset erasing state protection time, or when it is detected that a second operation object contacts the writing area of the touch screen.
The state switching device provided by the embodiment of the application can detect the touch operation of the first operation object on the touch screen after the electronic equipment enters the writing state, and control the electronic equipment to be switched to the erasing state when the touch operation information corresponding to the touch operation meets the preset condition.
The state switching device provided by the embodiment of the application can also draw and display the erasable area after controlling the electronic equipment to be switched to the erased state, based on the operation of the first operation object in the erasable area, the writing content in the erasable area is erased, in order to ensure the erasing consistency, when the first operation object is detected to be lifted up, or when the first operation object is detected to slide out of the writing area on the touch screen, the electronic equipment can be controlled to be switched to the erasing protection state, and within the preset erasing state protection time, if the first operation object is detected to be in contact with the erasable area, the electronic equipment can be controlled to recover the erasing state. The state switching device provided by the embodiment of the application can realize the efficient switching of the states of the electronic equipment and the efficient erasing of the written content, can also ensure the consistency of the erasing, and has better user experience.
Fifth embodiment
An embodiment of the present application further provides an electronic device, please refer to fig. 5, which shows a schematic structural diagram of the electronic device, and the electronic device may include: at least one processor 501, at least one communication interface 502, at least one memory 503, and at least one communication bus 504;
in the embodiment of the present application, the number of the processor 501, the communication interface 502, the memory 503 and the communication bus 504 is at least one, and the processor 501, the communication interface 502 and the memory 503 complete the communication with each other through the communication bus 504;
the processor 501 may be a central processing unit CPU, or an application Specific Integrated circuit asic, or one or more Integrated circuits configured to implement embodiments of the present invention, etc.;
the memory 503 may include a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory) or the like, such as at least one disk memory;
wherein the memory stores a program and the processor can call the program stored in the memory, the program for:
after the electronic equipment enters a writing state, determining whether the electronic equipment needs to be switched to an erasing state or not based on the contact time of a first operation object and a touch screen, the contact area of the first operation object and the touch screen and the moving condition of the first operation object on the touch screen;
and if the electronic equipment needs to be switched to the erasing state, controlling the electronic equipment to be switched to the erasing state.
Alternatively, the detailed function and the extended function of the program may be as described above.
Sixth embodiment
Embodiments of the present application further provide a computer-readable storage medium, which may store a program adapted to be executed by a processor, where the program is configured to:
after the electronic equipment enters a writing state, determining whether the electronic equipment needs to be switched to an erasing state or not based on the contact time of a first operation object and a touch screen, the contact area of the first operation object and the touch screen and the moving condition of the first operation object on the touch screen;
and if the electronic equipment needs to be switched to the erasing state, controlling the electronic equipment to be switched to the erasing state.
Alternatively, the detailed function and the extended function of the program may refer to the above description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A state switching method is applied to an electronic device with a touch screen, wherein the electronic device has a writing state and an erasing state, and the method comprises the following steps:
after the electronic equipment enters the writing state, detecting the touch operation of a first operation object on the touch screen;
if the touch operation information corresponding to the touch operation meets a preset condition, controlling the electronic equipment to be switched to the erasing state;
wherein the touch operation information includes: the touch control method comprises the following steps of contacting time of the first operation object with the touch control screen, contact area of the first operation object with the touch control screen and moving condition of the first operation object on the touch control screen.
2. The state switching method according to claim 1, further comprising:
after the electronic equipment is controlled to be switched to the erasing state, drawing and displaying an erasable area;
and erasing the written content in the erasable area based on the operation of the first operation object in the erasable area.
3. The state switching method according to claim 1, wherein the preset condition comprises:
the contact time of the first operation object and the touch screen is greater than a preset first time threshold;
the contact area between the first operation object and the touch screen is larger than a preset area threshold;
and the displacement of the first operation object on the touch screen is smaller than a preset first displacement threshold value.
4. The method of claim 2, wherein the drawing and presenting erasable areas comprises:
and drawing and displaying the erasable area with the set shape based on the contact point of the first operation object and the touch screen and a preset graph size.
5. The state switching method according to claim 2, wherein erasing written content in the erasable area based on the operation of the first operation object in the erasable area comprises:
detecting whether the displacement of the first operation object is larger than a preset second displacement threshold value or not;
and if the displacement of the first operation object is larger than the preset second displacement threshold, responding to the operation of the first operation object in the erasable area, and erasing the writing content operated by the first operation object in the erasable area.
6. The state switching method according to any one of claims 1 to 5, further comprising:
after the electronic equipment is switched to the erasing state, if the first operation object is detected to be lifted, or the first operation object is detected to slide out of a writing area on the touch screen, controlling the electronic equipment to be switched to the erasing protection state;
and controlling the electronic equipment to be switched to the erasing state if the first operation object is detected to be in contact with the erasable area within the preset erasing state protection time.
7. The state switching method according to claim 6, further comprising:
and if the time that the electronic equipment is in the erasing protection state exceeds the preset erasing protection time or a second operation object is detected to contact a writing area of the touch screen, controlling the electronic equipment to be switched to the writing state.
8. A state switching device is applied to an electronic device with a touch screen, wherein the electronic device has a writing state and an erasing state, and the device comprises: the device comprises a detection module and a first control module;
the detection module is used for detecting the touch operation of a first operation object on the touch screen;
the first control module is used for controlling the electronic equipment to be switched to the erasing state when the touch operation information corresponding to the touch operation meets a preset condition;
wherein the touch operation information includes: the touch control method comprises the following steps of setting a touch control screen, a first operation object and a second operation object, wherein the touch control screen is provided with a touch control area, the touch time of the first operation object and the touch control screen, the touch area of the first operation object and the touch control screen, and the movement condition of the first operation object on the touch control screen.
9. The state switching device according to claim 8, further comprising: the erasable area drawing and displaying module and the writing content erasing module;
the erasable area drawing and displaying module is used for drawing and displaying an erasable area after the first control module controls the electronic equipment to be switched to the erasing state;
the writing content erasing module is used for erasing the writing content in the erasable area based on the operation of the first operation object in the erasable area.
10. The state switching device according to claim 8 or 9, further comprising: a second control module and a third control module;
the second control module is configured to, after the first control module controls the electronic device to switch to the erase state, control the electronic device to switch to an erase protection state if it is detected that the first operation object is lifted or the first operation object is detected to slide out of a writing area on the touch screen;
the third control module is configured to control the electronic device to switch to the erasing state if it is detected that the first operation object contacts the erasable area within a preset erasing state protection time.
11. An electronic device, comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program to implement the steps of the state switching method according to any one of claims 1 to 7.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for switching states of any of claims 1 to 7.
CN202210189622.8A 2022-02-28 2022-02-28 State switching method, device, equipment and storage medium Pending CN114647359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210189622.8A CN114647359A (en) 2022-02-28 2022-02-28 State switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210189622.8A CN114647359A (en) 2022-02-28 2022-02-28 State switching method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114647359A true CN114647359A (en) 2022-06-21

Family

ID=81993870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210189622.8A Pending CN114647359A (en) 2022-02-28 2022-02-28 State switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114647359A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100020389A (en) * 2008-08-12 2010-02-22 주식회사 케이티테크 Input method using size of touching spot and device thereof
CN110083266A (en) * 2019-04-02 2019-08-02 上海墨案智能科技有限公司 Information processing method, device and storage medium
CN110633041A (en) * 2018-06-25 2019-12-31 鸿合科技股份有限公司 Method and device for switching writing, selecting and erasing modes by utilizing gestures
CN112596623A (en) * 2020-12-23 2021-04-02 深圳市鸿合创新信息技术有限责任公司 Interaction method and device of interaction equipment, electronic equipment and storage medium
CN112667105A (en) * 2020-12-28 2021-04-16 广州华欣电子科技有限公司 Touch screen control method, device, equipment and storage medium
CN113625890A (en) * 2021-10-11 2021-11-09 广东新空电子科技股份有限公司 Function switching method and device for touch control pen
CN113741729A (en) * 2021-08-23 2021-12-03 深圳市唯酷光电有限公司 Local erasing method, device, liquid crystal writing equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100020389A (en) * 2008-08-12 2010-02-22 주식회사 케이티테크 Input method using size of touching spot and device thereof
CN110633041A (en) * 2018-06-25 2019-12-31 鸿合科技股份有限公司 Method and device for switching writing, selecting and erasing modes by utilizing gestures
CN110083266A (en) * 2019-04-02 2019-08-02 上海墨案智能科技有限公司 Information processing method, device and storage medium
CN112596623A (en) * 2020-12-23 2021-04-02 深圳市鸿合创新信息技术有限责任公司 Interaction method and device of interaction equipment, electronic equipment and storage medium
CN112667105A (en) * 2020-12-28 2021-04-16 广州华欣电子科技有限公司 Touch screen control method, device, equipment and storage medium
CN113741729A (en) * 2021-08-23 2021-12-03 深圳市唯酷光电有限公司 Local erasing method, device, liquid crystal writing equipment and storage medium
CN113625890A (en) * 2021-10-11 2021-11-09 广东新空电子科技股份有限公司 Function switching method and device for touch control pen

Similar Documents

Publication Publication Date Title
US8633906B2 (en) Operation control apparatus, operation control method, and computer program
US10671275B2 (en) User interfaces for improving single-handed operation of devices
KR100539904B1 (en) Pointing device in terminal having touch screen and method for using it
CN107683458B (en) Device, method and graphical user interface for manipulating windows of related applications
KR20220101750A (en) Devices and methods for interacting with an application switching user interface
JP6828150B2 (en) Screen display method and terminal
CN111488076B (en) False touch prevention method, device, equipment and storage medium
CN102473069A (en) Display control device, display control method and computer program
TWI453651B (en) Portable electronic device and method of controlling same
TW201520864A (en) Graphics editing method and electronic device using the same
JP2015146177A (en) input device
JP2015001751A (en) Handwriting input device, control program and control method
KR20090039206A (en) Device and method for inputting letter of mobile station using touch screen
CN105892915B (en) Information processing method and electronic equipment
CN104978135A (en) Icon display method and device, and mobile terminal
CN107438817A (en) Avoid contact with the unexpected pointer movement during surface of Trackpad
CN114647359A (en) State switching method, device, equipment and storage medium
CN113625890A (en) Function switching method and device for touch control pen
CN103502921A (en) Text indicator method and electronic device
CN109696985B (en) Input device and program
JP6003566B2 (en) Object operation device and object operation control program
US20230409145A1 (en) Touch response method, device, interactive white board, and storage medium
JP6584876B2 (en) Information processing apparatus, information processing program, and information processing method
JP2014235582A (en) Operation control program, operation control method, and handwriting input device
JP2013246482A (en) Operation input device

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