CN113311981A - Erasing method and device, intelligent terminal and computer readable storage medium - Google Patents

Erasing method and device, intelligent terminal and computer readable storage medium Download PDF

Info

Publication number
CN113311981A
CN113311981A CN202110516313.2A CN202110516313A CN113311981A CN 113311981 A CN113311981 A CN 113311981A CN 202110516313 A CN202110516313 A CN 202110516313A CN 113311981 A CN113311981 A CN 113311981A
Authority
CN
China
Prior art keywords
touch
erasing
level
area
mode
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
CN202110516313.2A
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.)
Shenzhen City Baoshida Photoelectric Co ltd
Original Assignee
Shenzhen City Baoshida Photoelectric 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 Shenzhen City Baoshida Photoelectric Co ltd filed Critical Shenzhen City Baoshida Photoelectric Co ltd
Priority to CN202110516313.2A priority Critical patent/CN113311981A/en
Publication of CN113311981A publication Critical patent/CN113311981A/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
    • 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

Abstract

The application provides an erasing method, an erasing device, an intelligent terminal and a computer readable storage medium, wherein the method comprises the steps of obtaining a touch area of a touch object, calculating the touch area and the number of the touch area, comparing the area of the touch area with a preset area threshold range to obtain a comparison result, determining a required erasing level according to the comparison result to select the required erasing area, when people use an erasing function, only touching a touch screen by a finger to enable the touch area to reach the preset area threshold range, determining a touch mode according to the number of the touch area, triggering the erasing function based on the touch mode and the erasing level, determining a touch path to indicate that the touch object moves, determining whether to execute an erasing operation based on the touch path of the touch object, and thus facilitating the people to select and start the erasing function, and people can conveniently and quickly select the erasing area, so that the requirements of people are met.

Description

Erasing method and device, intelligent terminal and computer readable storage medium
Technical Field
The present application relates to the field of electronic devices, and in particular, to an erasing method, an erasing device, an intelligent terminal, and a computer-readable storage medium.
Background
The continuous development of wireless communication technology and computer programming technology enables terminals such as smart phones and the like to be greatly improved in hardware performance and software experience, and abundant application programs on the terminals are used to bring great convenience to daily life of people.
With the rapid development of touch screens, people and the touch screens are used as a medium for man-machine interaction, the touch screens can be separated from a mouse and a keyboard, and selection, editing and annotation of computer files can be realized by clicking and opening a required software interface with fingers. When the content displayed on the touch screen is erased, the virtual mark with the eraser is clicked firstly, then the area size of the eraser is selected, and then the content displayed on the screen and the like are erased, so that the operation is inconvenient, the selection is single, and different requirements of people cannot be met.
Disclosure of Invention
In order to improve the use convenience of the erasing function of the touch screen and meet different requirements of people, the application provides an erasing method, an erasing device, an intelligent terminal and a computer readable storage medium.
In a first aspect, the present application provides an erasing method, which adopts the following technical scheme:
an erasing method includes the steps of,
acquiring touch areas of a touch object touching a touch screen, and calculating the touch area of each touch area and the number of the touch areas;
comparing the touch area of the touch area with a preset area threshold range to obtain a comparison result;
determining an erasing level according to the comparison result, wherein the erasing level comprises a non-erasing level, a first-level erasing level, a second-level erasing level and a third-level erasing level;
determining the touch mode according to the number of the touch areas, wherein the touch mode comprises a single-finger touch mode and a multi-finger gathering mode;
determining whether to start an erasing function based on the erasing level and the touch mode;
and when the erasing function is determined to be started, acquiring a touch path of the touch area, and executing the erasing operation.
By adopting the technical scheme, firstly, the touch area of a touch object touching the touch screen is obtained, the touch area and the number of the touch areas of each touch area are calculated, then the comparison result is obtained based on the comparison of the touch area and the preset area threshold range, the required erasing level is determined according to the comparison result so as to select the required erasing area, when people use the erasing function, only the touch screen needs to be touched to ensure that the touch area reaches the preset area threshold range, the erasing level can be triggered, meanwhile, the touch mode can be determined according to the number of the touch areas, based on the erasing level and the touch mode, the erasing area and the corresponding mode are indicated to determine whether the erasing function is started, when the erasing function is determined to be started, the touch path of the touch object is obtained and the erasing operation is executed, and through the judgment operation, make people start fast and erase the function, select required area and the touch mode of erasing, compare in the mode that people utilized the point to erase the button, this mode can be according to the touch area and the quantity of finger and open and erase the function, and the people of being convenient for use to satisfy the different demands of people.
Further, the step of determining an erasure level according to the comparison result includes:
when the touch area of the touch area is out of a preset first area threshold range, determining the erasing level as a non-erasing level;
when the touch area of the touch area is within a preset first area threshold range, determining the erasing level as a first-level erasing level;
when the touch area of the touch area is within a preset second area threshold range, determining that the erasing state is a secondary erasing level;
and when the touch area of the touch area is within a preset third area threshold range, determining that the erasing state is a three-level erasing level.
By adopting the technical scheme, when the touch area of the touch area is positioned outside the preset first area threshold range, the touch area of the touch area is not reached to the preset area, the level is determined as the non-erasing level, when the touch area of the touch area is positioned in the preset first area threshold range, the touch area is satisfied with the first area threshold range condition, the level is determined as the first-level erasing level, when the touch area of the touch area is positioned in the preset second area threshold range, the touch area is satisfied with the second area threshold range condition, the level is determined as the second-level erasing level, when the touch area of the touch area is positioned in the preset third area threshold range, the touch area is satisfied with the third area threshold range condition, the preset areas of the first-level erasing level, the second-level erasing level and the third-level erasing level are gradually increased, so that the corresponding area mode can be triggered when the touch area of the touch object reaches the preset condition, the operation is simple.
Further, the step of acquiring the touch area of the touch object and calculating the touch area and the number of the touch areas comprises,
acquiring a touch point position coordinate of a touch area;
calculating a difference X between minimum and maximum abscissa values of a touch point in the touch region based on the abscissa of the touch point;
calculating a difference Y between maximum and minimum ordinate values of the touch point based on the ordinate of the touch point in the touch area;
and calculating the touch area of the touch area according to the difference X of the horizontal coordinates and the difference Y of the vertical coordinates.
By adopting the technical scheme, the position coordinates of the touch points are firstly acquired, the touch areas related to the touch objects are established to determine the touch positions of the touch objects, the number of the touch areas is determined so as to determine the touch mode in the following process, and then the difference between the maximum coordinate value and the minimum coordinate value is respectively and correspondingly calculated according to the abscissa and the ordinate of the touch points in the touch areas so as to determine the length and the width of the touch areas and calculate the areas of the touch areas, so that the touch areas of the touch areas are determined so as to determine the subsequent erasing levels.
Further, the step of determining whether to acquire a touch path based on the erase level and the touch mode includes:
when the erasing level is a non-erasing level and the touch mode is determined to be a single-finger mode, determining not to start an erasing function;
when the erasing level is a non-erasing level and the touch mode is determined to be a multi-finger gathering mode, determining not to start an erasing function;
when the erasing level is a first-level erasing level and the touch mode is determined to be a single-finger mode, determining to start an erasing function;
when the erasing level is a first-level erasing level and the touch mode is determined to be a multi-finger gathering mode, determining to start an erasing function;
when the erasing level is a secondary erasing level and the touch mode is determined to be a single-finger mode, determining to start an erasing function;
when the erasing level is a secondary erasing level and the touch mode is determined to be a multi-finger gathering mode, determining to start an erasing function;
when the erasing level is a three-level erasing level and the touch mode is determined to be a single-finger mode, determining to start an erasing function;
and when the erasing level is a three-level erasing level and the touch mode is determined to be a multi-finger gathering mode, determining to start an erasing function.
By adopting the technical scheme, whether the erasing function is started by the touch object is determined according to the erasing level and the touch mode, when the erasing level is the non-erasing level and the touch mode is the single-finger mode, the erasing area when the touch object touches the touch screen is not met, the erasing function is not started, when the erasing level is the first-finger erasing level, the second-finger erasing level or the third-finger erasing level and the touch mode is determined to be the single-finger or multi-finger mode, whether the erasing area is multi-finger or single-finger, when the erasing area required by the erasing level is met, the erasing function can be started, and the diversity and the accuracy of starting the erasing function are improved so as to meet different requirements of people.
Further, the step of determining the touch mode includes:
when the number of the touch areas is 1, determining that the touch mode is a single-finger mode;
and when the number of the touch areas is more than 1 and the distance between two adjacent touch areas is within a preset distance range, determining that the mode is a multi-finger gathering mode.
By adopting the technical scheme, the number of the touch areas is firstly determined, if the number of the touch areas is 1, only one touch object is indicated to touch the touch screen, the single-finger mode is determined, if the number of the touch areas is more than 1, at least two touch objects are indicated to touch the touch screen, and meanwhile, if the distance between two adjacent touch areas is within a preset distance range, the fingers are closed, the multi-finger closed mode is determined, so that multiple touch modes are provided for people, and people can conveniently select and use the touch screen to meet different requirements of people.
Further, the method also comprises the following steps:
acquiring pattern information of each touch area of a touch object touching the touch screen;
comparing the pattern information of the touch area with a preset pattern to obtain a comparison result;
determining whether to start an erasing function according to the comparison result;
and when the erasing function is determined to be started, acquiring a touch path of the touch object touching the touch screen, and executing the erasing operation.
By adopting the technical scheme, firstly, the pattern information about the touch object is generated according to the acquired position coordinates of the touch point, then the pattern information is compared with the preset pattern according to the pattern information to generate a comparison result, and whether the erasing function is started or not is determined according to the comparison result so as to accurately judge the shape of the touch object touching the touch screen and reduce the occurrence of the mistaken erasing caused by the mistaken touching.
In a second aspect, the present application provides an erasing apparatus, which adopts the following technical solutions:
an erasing device, comprising a first and a second erasing unit,
the data acquisition module is used for acquiring each touch area of the touch object;
the calculation module is used for calculating the area and the number of each touch area;
the comparison module is used for comparing the area of the touch area with a preset area threshold range to generate a comparison result;
the level determining module is used for determining an erasing level according to the comparison result; and the number of the first and second groups,
the mode determining module is used for determining touch modes according to the number of the touch areas, wherein the touch modes comprise a single-finger mode and a multi-finger gathering mode;
the judging module judges whether an erasing function is started or not based on the erasing level and the touch mode;
and the first execution module is used for acquiring a touch path of the touch object touching the touch screen and executing an erasing operation when the erasing function is determined to be started.
By adopting the technical scheme, the data acquisition module acquires the touch areas of the touch objects and sends the touch areas to the calculation module to calculate the touch area of each touch area and the number of the touch areas, the comparison module compares the touch area of each touch area with a preset area threshold range to generate a comparison result, the level determination module determines the erasing level according to the comparison result, the mode determination module determines the touch mode, the judgment module judges whether to start the erasing function according to the erasing level and the touch mode, and finally the first execution module acquires the touch path and executes the erasing operation after determining to start the erasing level.
Furthermore, the method also comprises the following steps of,
the pattern generating module is used for acquiring pattern information of each touch area of the touch screen touched by the touch object;
the pattern comparison module is used for comparing the pattern information of the touch area with a preset pattern to obtain a comparison result;
the second judgment module is used for judging whether to start an erasing function according to the comparison result;
and the second execution module is used for acquiring a touch path of the touch object touching the touch screen and executing the erasing operation when the erasing function is determined to be started.
By adopting the technical scheme, the pattern generating module acquires the pattern information of the touch area of the touch object touching the touch screen and generates corresponding pattern information, the pattern comparison module compares the corresponding pattern information with preset pattern information to generate a comparison result, the second judging module judges whether the erasing function is started or not based on the comparison result, and the second executing module acquires the touch path of the touch object touching the touch screen and executes the erasing operation, so that the shape of the touch object touching the touch screen can be identified to judge whether the touch object is a finger or other parts of a hand, and the occurrence of the mistaken erasing condition is effectively prevented.
In a third aspect, the present application provides an intelligent terminal, which adopts the following technical scheme:
an intelligent terminal comprises a memory and a processor, wherein the memory is stored with a computer program which can be loaded by the processor and executes the erasing method.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of an erasing method as described above.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the method comprises the steps of obtaining touch areas of a touch object touching a touch screen, calculating the touch area and the number of the touch areas of each touch area, determining the required erasing level and the touch mode, determining whether to start the erasing function, obtaining the touch path of the touch object and executing the erasing operation when determining to start the erasing function, enabling people to quickly start the erasing function and select the required erasing area and the required touch mode through the judging operation, and compared with a mode that people use a point erasing button, the mode can start the erasing function according to the touch area and the number of fingers, is convenient for people to use, and meets different requirements of people;
2. the touch mode can be judged to be a single-finger mode or a multi-finger gathering mode according to the number of the touch areas, so that people can use the touch mode according to different requirements;
3. and judging the touch object according to the touch graph so as to solve the problem of mistaken wiping.
Drawings
FIG. 1 is a schematic flowchart illustrating an erasing method according to an embodiment of the present application;
FIG. 2 is another schematic flow chart of an erasing method according to an embodiment of the present application;
FIG. 3 is a block diagram of an erasing apparatus according to an embodiment of the present application;
FIG. 4 is a block diagram of another erasing apparatus according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an intelligent terminal according to an embodiment of the present application.
In the figure, 1, a data acquisition module; 2. a calculation module; 3. a comparison module; 4. a level determination module; 5. a mode determination module; 6. a judgment module; 7. a first execution module; 8. a pattern acquisition module; 9. a pattern comparison module; 10. a second judgment module; 11. a second execution module; 12. and (4) an intelligent terminal.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
The embodiment of the application discloses an erasing method.
As shown in fig. 1, an erasing method includes the following specific steps:
and S1, acquiring touch areas of the touch object touching the touch screen, and calculating the touch area of each touch area and the number of the touch areas.
The touch object is a finger of a user touching the touch screen, and when the erasing function of the intelligent terminal needs to be started, the user only needs to touch the finger on the touch screen of the intelligent terminal to start the driving of the erasing function. The touch area is the area where the finger touches the touch screen, which is the touch area of the touch object, and the area is the touch area of the touch area.
Specifically, the maximum and minimum abscissas and the maximum and minimum ordinates in the touch area can be calculated to obtain the touch area of the touch area, and the specific steps are as follows:
(1) and acquiring position coordinates of the touch point, and establishing a touch area related to the touch object.
Firstly, a plurality of touch points are arranged on a touch screen, each touch point corresponds to a position coordinate, and the corresponding relation is established. Meanwhile, when the touch object touches the touch screen, the position on the touch screen where the capacitance value or the pressure value changes is the position of the touch object. And then acquiring the position coordinates of the touch point with the capacitance value change or the pressure value change at the position of the touch object, and constructing a touch area based on the position coordinates of the related touch point. After the position coordinates of the touch points in the touch area are acquired, the touch area is set in a rectangular shape through optimization processing.
(2) Based on the abscissa of the touch point in the touch region, a difference X between the minimum and maximum abscissa values of the touch point is calculated.
The difference X between the abscissa of the touch point in the touch area at the minimum and maximum of the abscissa is calculated, and specifically, the abscissa difference is the range of the touch area. For example, the maximum abscissa of the touch point in the touch area is set to
Figure 590176DEST_PATH_IMAGE001
The minimum abscissa of the touch point is
Figure 84480DEST_PATH_IMAGE002
I.e. the absolute value of the difference between the maximum abscissa and the minimum abscissa of the touch point of the touch area is
Figure 192113DEST_PATH_IMAGE003
=
Figure 665951DEST_PATH_IMAGE001
-
Figure 480323DEST_PATH_IMAGE002
Thus, a range of the abscissa of the touch area is obtained.
(3) Based on the ordinate of the touch point of the touch areaCalculating a difference between maximum and minimum ordinate values for a touch point in a touch area
Figure 630682DEST_PATH_IMAGE004
When the position coordinates of the touch point in the touch area are acquired, the difference between the minimum and maximum vertical coordinates of the touch point in the touch area is calculated
Figure 897715DEST_PATH_IMAGE005
. For example, the maximum ordinate of the touch point in the touch area is set to
Figure 942288DEST_PATH_IMAGE006
The minimum ordinate of the touch point is
Figure 611167DEST_PATH_IMAGE007
I.e. the absolute value of the difference between the maximum ordinate and the minimum ordinate of a touch point in the touch area is
Figure 683159DEST_PATH_IMAGE008
=
Figure 437488DEST_PATH_IMAGE006
-
Figure 502396DEST_PATH_IMAGE007
Thus, the ordinate range of the touch area is obtained.
(4) According to the difference of the abscissa
Figure 25782DEST_PATH_IMAGE009
Difference from ordinate
Figure 32790DEST_PATH_IMAGE004
And calculating the area of the touch area.
Difference between absolute values of abscissa based on the above determination
Figure 353044DEST_PATH_IMAGE003
Difference from absolute value of ordinate
Figure 628167DEST_PATH_IMAGE005
Thereby enabling calculation of a touch area of the touch area, thereby determining the touch area
Figure 599534DEST_PATH_IMAGE010
In addition, each touch point can be set to have an area parameter, and the touch area of the touch area can be obtained according to the number of the touch points, which comprises the following specific steps:
(1) and acquiring a touch area of the touch object, and determining the position of the touch area.
(2) And acquiring the number of touch points according to the position of the touch area.
And accumulating to obtain the number of the touch points according to the acquired position coordinates of the touch points with the changed capacitance values or pressure values.
(3) And multiplying the number of the touch points by a preset area parameter to calculate the touch area of the touch area.
For example, the number N of touch points is set to 60, and the area parameter is preset
Figure 934701DEST_PATH_IMAGE011
Is 10
Figure 243716DEST_PATH_IMAGE012
From which the touch area can be obtained
Figure 322530DEST_PATH_IMAGE013
=N
Figure 899136DEST_PATH_IMAGE011
=600
Figure 670783DEST_PATH_IMAGE012
And S2, comparing the touch area of the touch area with a preset area threshold range to obtain a comparison result, wherein the preset area threshold range comprises a preset first area threshold range, a preset second area threshold range and a preset third area threshold range.
The preset area threshold range refers to a preset threshold range for limiting the touch area, and is a standard for judging whether the touch area reaches a preset start-up erasing level. When the touch mode is the single-finger mode, the preset area threshold range is the threshold range defined by the touch area when the touch object is a finger, and when the touch mode is the multi-finger gathering mode, the preset area threshold range is the threshold range defined by the sum of the touch areas when the touch object is a plurality of fingers.
The preset area threshold range comprises a first area threshold range, a second area threshold range and a third area threshold range. In the present embodiment, the first threshold is set to L1, the second threshold is set to L2, the third threshold is set to L3, and the fourth threshold is set to L4, L1< L2< L3< L4. Then the first area threshold range is [ L1, L2), the second area threshold range is [ L2, L3), and the third area threshold range is [ L3, L4). And when the touch area of the touch area is obtained, comparing the touch area of the touch area with a preset area threshold range to obtain a comparison result.
And S3, determining the erasing level according to the comparison result, wherein the erasing level comprises a non-erasing level, a first-level erasing level, a second-level erasing level and a third-level erasing level.
(1) And when the touch area of the touch area is smaller than a preset first area threshold range, determining the erasing level as a non-erasing level.
The non-erase level refers to a mode in which an erase operation is not started, and when a touch object touches a touch screen of the smart terminal, the user input object cannot be erased. And if the touch area of the current touch area is smaller than the first area threshold range, indicating that the finger touch area of the person does not meet the condition.
(2) And when the touch area of the touch area is within the preset first area threshold range, determining the erasing level as a first-level erasing level.
Specifically, when the touch object touches the touch screen of the smart terminal, erasing the user input object can be performed at this erase level. And when the touch area meets the preset first area threshold range, indicating that the erasing function is started and being at a first-level erasing level.
(3) And when the touch area of the touch area is within the preset second area threshold range, determining that the erasing state is a secondary erasing level.
In the present embodiment, when the touch object touches the screen of the touch screen, erasing the user input object is performed with the erase level. And when the touch area meets the preset second area threshold range, indicating that the erasing function is started and being at a secondary erasing level.
(4) When the touch area of the touch area is within the preset third area threshold range, determining that the erasing state is in three levels
The erase level.
In this embodiment, when the touch object touches the screen of the touch screen, the user input object is erased by using the erase area corresponding to the erase level. And when the touch area meets the preset third area threshold range, indicating that the erasing function is started and being at a three-level erasing level.
(5) And when the touch area of the touch area is larger than the third area threshold range, determining the erasing level as a non-erasing level.
In this embodiment, if the touch area of the touch area is larger than the preset fourth threshold range, it indicates that the touch area is too large, and a situation of mistaken wiping is easily generated, for example, a palm is placed on a touch screen of the intelligent terminal.
And S4, determining touch modes according to the number of the touch areas, wherein the touch modes comprise a single-finger mode and a multi-finger gathering mode.
Specifically, the touch area may be single or multiple. When the number of touch areas where the touch object is acquired is 1, it is determined that the touch mode is the single-finger mode. When the number of the touch areas of the touch object is larger than 1 and smaller than or equal to 4, and the touch mode is the multi-finger closing mode, the distance between two adjacent touch areas, namely the position coordinates of two closest touch points in the two touch areas, is obtained, the distance between the two touch points is calculated, the distance between the two touch points is compared with a preset standard distance to obtain a comparison result, and when the distance between the two touch points is smaller than or equal to the preset standard distance, the fact that the multi-finger closing mode is used by people for erasing is indicated, so that the touch mode is determined to be the multi-finger closing mode.
And S5, determining whether to start the erasing function based on the erasing level and the touch mode.
The specific results are as follows.
(1) And when the erasing level is the non-erasing level and the touch mode is determined to be the single-finger mode, determining not to start the erasing function.
(2) And when the erasing level is the non-erasing level and the touch mode is determined to be the multi-finger gathering mode, determining not to start the erasing function.
(3) And when the erasing level is the first-level erasing level and the touch mode is determined to be the single-finger mode, determining to start the erasing function.
(4) And when the erasing level is the first-level erasing level and the touch mode is determined to be the multi-finger gathering mode, determining to start the erasing function.
(5) And when the erasing level is a secondary erasing level and the touch mode is determined to be a single-finger mode, determining to start the erasing function.
(6) And when the erasing level is a secondary erasing level and the touch mode is determined to be a multi-finger gathering mode, determining to start the erasing function.
(7) And when the erasing level is the three-level erasing level and the touch mode is determined to be the multi-finger gathering mode, determining to start the erasing function.
(8) And when the erasing level is the three-level erasing level and the touch mode is determined to be the multi-finger gathering mode, determining to start the erasing function.
And S6, when the erasing function is determined to be started, acquiring a touch path of the touch object touching the touch screen, and executing the erasing operation.
Specifically, the specific steps of acquiring the touch path are as follows:
(1) and acquiring the position coordinates of the touch points in real time.
When the touch object touches the touch screen of the intelligent terminal, the corresponding erasing level and the corresponding touch mode are started, the touch object is moved under the corresponding erasing level and the corresponding touch mode, and the intelligent terminal obtains the position coordinates of the touch point in real time to determine the position change of the subsequent touch object.
(2) A touch path of the touch object is generated based on the position coordinates of the acquired touch point.
In this embodiment, the touch path refers to a track that a touch object moves on a touch screen of the smart terminal. When the position of the touch object changes, the acquired position coordinates of the touch point also change, and the changed position coordinates of the touch point are used as change data to generate a touch path of the touch object.
Meanwhile, the erasing operation refers to erasing an area where the user output object and the touch object have an intersection, acquiring data of the area where the intersection does not exist, regenerating a redrawing object, and storing and displaying the redrawing object.
The method comprises the following specific steps:
(1) and comparing the touch path of the touch object with the user input object to obtain a comparison result.
Comparing the touch path of the touch object with the user input object, namely comparing the position coordinates of the touch point acquired by the touch object with the position coordinates of the user input object, if the position coordinates of the touch point are overlapped with the position coordinates of the user input object, indicating that an intersection exists, and if the position coordinates of the touch point are not overlapped with the position coordinates of the user input object, indicating that the intersection does not exist.
(2) Based on the comparison result, user input object data which does not intersect with the touch path is acquired, and the redrawn object is regenerated.
According to the comparison result, user input object data which is not intersected with the touch path is obtained, and the specific conditions are as follows:
1) and when the intersection exists between the user input object and the touch object, acquiring position coordinate data when the intersection exists between the user input object and the touch path of the touch object, and regenerating a redrawing object to be stored and displayed, thereby erasing the place needing to be erased, and finishing the erasing operation.
2) And (3) when the user input object and the touch object do not have intersection, the position coordinate data of the user input object and the touch path do not need to be acquired, the step (1) can be returned again to compare the position coordinates of the user input object and the touch path, the step is counted once when the step is repeated once, and the erasing function is quitted and closed when the counting is satisfied for 4 times.
On the other hand, in order to solve the problem of the false erasing, the step of determining whether to start the erasing function further comprises the following steps:
and S7, acquiring pattern information of each touch area of the touch screen touched by the touch object.
The method comprises the steps of acquiring position coordinates of touch points of a touch area, and generating graphic information about a touch object, wherein the pattern of the touch object can be a pattern formed by touching a touch screen with the palm of a user, a pattern formed by touching the screen with the finger of the user, or a pattern formed by touching the touch screen with other positions of a hand.
And S8, comparing the information of the touch object graph with a preset pattern to obtain a comparison result.
The preset pattern refers to a pattern formed when a standard touch object is a single finger or a plurality of fingers, and the following comparison results are obtained by comparing the pattern of the touch object with the preset pattern:
(1) when the pattern of the touch object is compared with the preset pattern, the matching degree reaches the preset matching degree, if the preset matching degree is 90%, when the pattern of the touch object is compared with the preset pattern, if the matching is greater than or equal to 90%, it is indicated that the touch object is a finger touch screen.
(2) And when the pattern of the touch object is compared with the preset pattern and the matching degree does not reach the preset matching degree, if the preset matching degree is 90%, comparing the pattern of the touch object with the preset pattern, and if the matching is less than 90%, indicating that the touch object is not a finger touching the touch screen.
And S9, determining whether to start the erasing function according to the comparison result.
And when the touch object is determined to be a finger, determining to execute the erasing operation, and when the touch object is determined not to be the finger touch screen, determining not to execute the erasing operation, so as to effectively prevent the situation of mistaken erasing when a hand of a user writes or a certain part touches the touch screen.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the present invention.
The embodiment of the present application further discloses an erasing apparatus, as shown in fig. 2, including:
the data acquisition module 1 is used for acquiring a touch area of the touch object;
the calculating module 2 is used for calculating the area and the number of the touch areas;
the comparison module 3 is used for comparing the area of the touch area with a preset area threshold range to generate a comparison result;
a level determining module 4, configured to determine an erasure level according to the comparison result; and the number of the first and second groups,
the mode determining module 5 is used for determining touch modes according to the number of the touch areas, wherein the touch modes comprise a single-finger mode and a multi-finger gathering mode;
the first judging module 6 judges whether to start an erasing function based on the erasing level and the touch mode;
and the first execution module 7 is configured to, when it is determined that the erasing function is started, obtain a touch path where the touch object touches the touch screen, and execute an erasing operation.
As shown in fig. 3, the method further includes:
the pattern acquisition module 8 is configured to acquire touch area pattern information of a touch object touching the touch screen;
the pattern comparison module 9 is used for comparing the pattern information of the touch area with a preset pattern to obtain a comparison result;
the second judging module 10 is used for determining whether to start the erasing function according to the comparison result;
and the second execution module 11 is configured to, when it is determined that the erasing function is turned on, acquire a touch path where the touch object touches the touch screen, and execute an erasing operation.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above.
For a specific definition of an erasing means, reference may be made to the above definition of an erasing method, which is not described in detail here. The modules in the erasing device of the above-mentioned kind can be realized by software, hardware and their combination in whole or in part. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The embodiment of the application also discloses an intelligent terminal.
As shown in fig. 4, the intelligent terminal 12 includes a processor, a memory, and a computer program stored on the memory and running on the processor, which are connected by a system bus. The computer program is executed by a processor to realize a drawing board erasing method, and the steps of the computer program are as follows:
s1, acquiring touch areas of the touch object touching the touch screen, and calculating the touch area of each touch area and the number of the touch areas;
s2, comparing the touch area based on the touch area with a preset area threshold range to obtain a comparison result;
s3, determining the erasing level according to the comparison result, wherein the erasing level comprises a non-erasing level, a first-level erasing level, a second-level erasing level and a third-level erasing level;
s4, determining the touch mode according to the number of the touch areas, wherein the touch mode comprises a single-finger touch mode and a multi-finger gathering mode;
s5, determining whether to start an erasing function based on the erasing level and the touch mode;
s6, when the erasing function is determined to be started, acquiring a touch path of the touch area, and executing the erasing operation;
the following steps may also be performed:
s7, acquiring touch area pattern information of the touch object touching the touch screen;
s8, comparing the pattern information of the touch area with a preset pattern to obtain a comparison result;
s9, determining whether to start an erasing function according to the comparison result;
and S10, when the erasing function is determined to be started, acquiring a touch path of the touch object touching the touch screen, and executing the erasing operation.
The memory of the intelligent terminal 12 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database, and the internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. Meanwhile, the smart terminal may further include a network interface, wherein the network interface may preferably include a standard wired interface and a wireless interface (such as a WIFI interface), and is generally used for establishing a communication connection between the smart terminal and other electronic devices. The network can be the internet, a WIFI network, a personal area network and a local area network. Various devices in the network environment may be configured as communication networks that interface in accordance with various wired and wireless communication protocols.
Specifically, the intelligent terminal 12 may be one or more of a mobile phone with a touch screen, a tablet computer with a touch screen, and a notebook computer with a touch screen. The system of the intelligent device includes, but is not limited to, an Android system, an IOS operating system, a Windows phone system, and the like. During the use, people can write on intelligent terminal promptly and input required user input object, and in this embodiment, user input object includes figure, lines, characters etc. and can save in the database automatically after people input user input object.
The embodiment of the application also discloses a computer readable storage medium, which stores a computer program capable of being loaded by a processor and executing the erasing method. Specifically, the computer-readable storage medium includes, for example, various media that can store program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The present embodiment is only for explaining the present application, and it is not limited to the present application, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present application.

Claims (10)

1. An erasing method, comprising,
acquiring touch areas of a touch object touching a touch screen, and calculating the touch area of each touch area and the number of the touch areas;
comparing the touch area of the touch area with a preset area threshold range to obtain a comparison result, wherein the preset area threshold range comprises a first area threshold range, a second area threshold range and a third area threshold range;
determining an erasing level according to the comparison result, wherein the erasing level comprises a non-erasing level, a first-level erasing level, a second-level erasing level and a third-level erasing level;
determining the touch mode according to the number of the touch areas, wherein the touch mode comprises a single-finger touch mode and a multi-finger gathering mode;
determining whether to start an erasing function based on the erasing level and the touch mode;
and when the erasing function is determined to be started, acquiring a touch path of the touch area, and executing the erasing operation.
2. The method of claim 1, wherein determining an erasure level is based on the comparison
The method comprises the steps of (a) including,
when the touch area of the touch area is not outside a preset first area threshold range, determining the erasing level as a non-erasing level;
when the touch area of the touch area is within a preset first area threshold range, determining the erasing level as a first-level erasing level;
when the touch area of the touch area is within a preset second area threshold range, determining that the erasing state is a secondary erasing level;
and when the touch area of the touch area is within a preset third area threshold range, determining that the erasing state is a three-level erasing level.
3. The method of claim 1, wherein the step of obtaining a touch area of the touch object and calculating a touch area of the touch area comprises,
acquiring a touch point position coordinate of a touch area;
calculating a difference X between minimum and maximum abscissa values of a touch point in the touch region based on the abscissa of the touch point;
calculating a difference Y between maximum and minimum ordinate values of the touch point based on the ordinate of the touch point in the touch area;
and calculating the touch area of the touch area according to the difference X of the horizontal coordinates and the difference Y of the vertical coordinates.
4. The method of claim 2, wherein the determining based on the erase level and the touch pattern,
the step of determining whether to turn on the erase function, including,
when the erasing level is a non-erasing level and the touch mode is determined to be a single-finger mode, determining not to start an erasing function;
when the erasing level is a non-erasing level and the touch mode is determined to be a multi-finger gathering mode, determining not to start an erasing function;
when the erasing level is a first-level erasing level and the touch mode is determined to be a single-finger mode, determining to start an erasing function;
when the erasing level is a first-level erasing level and the touch mode is determined to be a multi-finger gathering mode, determining to start an erasing function;
when the erasing level is a secondary erasing level and the touch mode is determined to be a single-finger mode, determining to start an erasing function;
when the erasing level is a secondary erasing level and the touch mode is determined to be a multi-finger gathering mode, determining to start an erasing function;
when the erasing level is a three-level erasing level and the touch mode is determined to be a single-finger mode, determining to start an erasing function;
and when the erasing level is a three-level erasing level and the touch mode is determined to be a multi-finger gathering mode, determining to start an erasing function.
5. The method of claim 2, wherein the step of determining the touch pattern comprises,
when the number of the touch areas is 1, determining that the touch mode is a single-finger mode;
and when the number of the touch areas is more than 1 and the distance between two adjacent touch areas is within a preset distance range, determining that the mode is a multi-finger gathering mode.
6. The method of claim 1, further comprising,
acquiring pattern information of each touch area of a touch object touching the touch screen;
comparing the pattern information of the touch area with a preset pattern to obtain a comparison result;
determining whether to start an erasing function according to the comparison result;
and when the erasing function is determined to be started, acquiring a touch path of the touch object touching the touch screen, and executing the erasing operation.
7. An erasing apparatus, comprising,
the data acquisition module is used for acquiring a touch area of the touch object;
the calculation module is used for calculating the area and the number of the touch areas;
the comparison module is used for comparing the area of the touch area with a preset area threshold range to generate a comparison result;
the level determining module is used for determining an erasing level according to the comparison result; and the number of the first and second groups,
the mode determining module is used for determining touch modes according to the number of the touch areas, wherein the touch modes comprise a single-finger mode and a multi-finger gathering mode;
the first judgment module is used for judging whether to start an erasing function or not based on the erasing level and the touch mode;
and the first execution module is used for acquiring a touch path of the touch object touching the touch screen and executing an erasing operation when the erasing function is determined to be started.
8. An erasing apparatus, comprising,
the pattern generation module is used for acquiring pattern information of each touch area of the touch screen touched by the touch object;
the pattern comparison module is used for comparing the pattern information of the touch area with a preset pattern to obtain a comparison result;
the second judgment module is used for determining whether to start an erasing function according to the comparison result;
and the second execution module is used for acquiring a touch path of the touch object touching the touch screen and executing the erasing operation when the erasing function is determined to be started.
9. An intelligent terminal, characterized in that it comprises a memory and a processor, said memory having stored thereon a computer program that can be loaded by the processor and that executes an erasing method according to any one of the preceding claims 1-6.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of an erasure method according to one of the claims 1-6.
CN202110516313.2A 2021-05-12 2021-05-12 Erasing method and device, intelligent terminal and computer readable storage medium Pending CN113311981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110516313.2A CN113311981A (en) 2021-05-12 2021-05-12 Erasing method and device, intelligent terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110516313.2A CN113311981A (en) 2021-05-12 2021-05-12 Erasing method and device, intelligent terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113311981A true CN113311981A (en) 2021-08-27

Family

ID=77372921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110516313.2A Pending CN113311981A (en) 2021-05-12 2021-05-12 Erasing method and device, intelligent terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113311981A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003145A (en) * 2021-11-01 2022-02-01 深圳市康冠商用科技有限公司 Touch screen writing and erasing method and device, electronic whiteboard and storage medium
CN115237321A (en) * 2022-07-25 2022-10-25 深圳市华胜软件技术有限公司 Erasing processing method and device, electronic equipment and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353828A (en) * 2013-06-24 2013-10-16 深圳市创凯电子有限公司 Method and device for switching writing and erasing functions on touch screen
CN104484121A (en) * 2014-12-29 2015-04-01 广州视睿电子科技有限公司 Method and device for erasing contents on touch screen
WO2020207028A1 (en) * 2019-04-10 2020-10-15 广州视源电子科技股份有限公司 Method, device and apparatus for controlling touch operation mode, and storage medium
CN112667105A (en) * 2020-12-28 2021-04-16 广州华欣电子科技有限公司 Touch screen control method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353828A (en) * 2013-06-24 2013-10-16 深圳市创凯电子有限公司 Method and device for switching writing and erasing functions on touch screen
CN104484121A (en) * 2014-12-29 2015-04-01 广州视睿电子科技有限公司 Method and device for erasing contents on touch screen
WO2020207028A1 (en) * 2019-04-10 2020-10-15 广州视源电子科技股份有限公司 Method, device and apparatus for controlling touch operation mode, and storage medium
CN112667105A (en) * 2020-12-28 2021-04-16 广州华欣电子科技有限公司 Touch screen control method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003145A (en) * 2021-11-01 2022-02-01 深圳市康冠商用科技有限公司 Touch screen writing and erasing method and device, electronic whiteboard and storage medium
CN114003145B (en) * 2021-11-01 2024-01-09 深圳市康冠商用科技有限公司 Touch screen writing and erasing method and device, electronic whiteboard and storage medium
CN115237321A (en) * 2022-07-25 2022-10-25 深圳市华胜软件技术有限公司 Erasing processing method and device, electronic equipment and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN105912260B (en) The startup method and mobile terminal of a kind of application program
CN114467078A (en) User interface adaptation based on inferred content occlusion and user intent
WO2014127697A1 (en) Method and terminal for triggering application programs and application program functions
CN108064368A (en) The control method and device of flexible display device
CN108334229B (en) Method, device and equipment for adjusting writing track and readable storage medium
CN113311981A (en) Erasing method and device, intelligent terminal and computer readable storage medium
CN104182068A (en) Error touch identifying method and device
CN110727496B (en) Layout method and device of graphical user interface, electronic equipment and storage medium
CN105892877A (en) Multi-finger closing/opening gesture recognition method and device as well as terminal equipment
CN105867821A (en) Icon arranging method and device and terminal
CN109753179B (en) User operation instruction processing method and handwriting reading equipment
CN109144392B (en) Method and device for processing gesture conflict and electronic equipment
CN107861684A (en) Write recognition methods, device, storage medium and computer equipment
CN112596661A (en) Writing track processing method and device and interactive panel
US20140232672A1 (en) Method and terminal for triggering application programs and application program functions
US10345932B2 (en) Disambiguation of indirect input
CN108846339B (en) Character recognition method and device, electronic equipment and storage medium
CN111984151B (en) Whiteboard canvas size and position roaming control method for improving processing efficiency
CN105549894A (en) Touch information processing method and apparatus, touch information acquisition method and apparatus and touch information processing system
CN113296616B (en) Pen point selection method and device and intelligent terminal
CN112416236A (en) Gesture packaging and interaction method and device based on web page and storage medium
CN111475057A (en) Touch identification method and device
CN109582424B (en) Interface closing method, system and related device
CN109521906A (en) The method and device of false-touch prevention, equipment, readable storage medium storing program for executing
CN106020691B (en) A kind of item selection method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210827

RJ01 Rejection of invention patent application after publication