CN113296616B - Pen point selection method and device and intelligent terminal - Google Patents
Pen point selection method and device and intelligent terminal Download PDFInfo
- Publication number
- CN113296616B CN113296616B CN202110517459.9A CN202110517459A CN113296616B CN 113296616 B CN113296616 B CN 113296616B CN 202110517459 A CN202110517459 A CN 202110517459A CN 113296616 B CN113296616 B CN 113296616B
- Authority
- CN
- China
- Prior art keywords
- touch
- touch object
- pen
- selection mode
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03545—Pens or stylus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
- G06F3/0442—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using active external devices, e.g. active pens, for transmitting changes in electrical potential to be received by the digitiser
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 method comprises the steps of collecting a motion path related to a touch object to determine the position and the moving track of the touch object, then collecting the touch area of the touch object, calculating the motion speed of the touch object according to the motion path of the touch object, comparing the motion speed of the touch object with a preset speed threshold range to obtain a comparison result, finally determining a pen front selection mode according to the comparison result, determining whether to execute pen front generation operation under the dual conditions of the pen front selection mode and the touch area size, and improving the accuracy of pen front size selection, so that the size of the pen front can be directly determined according to the motion speed and the touch area of the touch object, the size of the pen front can be conveniently selected, an adjusting bar does not need to be pulled again every time, and the operation is simple.
Description
Technical Field
The present application relates to the field of handwriting input technologies, and in particular, to a method and an apparatus for selecting a pen point, and an intelligent terminal.
Background
With the popularization of electronic equipment, character input by using the electronic equipment becomes a part of daily life of people, in the field of interactive intelligent terminals, a handwriting writing function is one of important functions of the intelligent terminal, the handwriting writing function is widely applied to work and study of people, the work and study effects of people are improved, and a user touches or writes a tool on an operation interface of the intelligent terminal to perform drawing and writing operations.
In the related technology, the written handwriting is provided with the pen point, when the handwriting is written, the size of the pen point is adjusted by dragging the adjusting strip, then the handwriting with the corresponding pen point is written on the screen, the size of the pen point needs to be adjusted again each time, and the operation is inconvenient.
Disclosure of Invention
In order to facilitate people to select a required pen point, the application provides a pen point selection method, a pen point selection device and an intelligent terminal.
In a first aspect, the present application provides a pen tip selection method, which adopts the following technical scheme:
a method for selecting a pen point comprises the following steps,
collecting a motion path of a touch object;
collecting a contact area of a touch object;
calculating a motion speed of the touch object based on the motion path of the touch object;
comparing the movement speed of the path with a preset speed threshold range to generate a speed comparison result, wherein the preset movement speed threshold range comprises a first speed threshold range, a second speed threshold range and a third threshold speed range;
determining a pen front selection mode according to the speed comparison result, wherein the pen front mode comprises a primary selection mode, a secondary selection mode and a tertiary selection mode;
and executing corresponding pen front generation operation based on the pen front selection mode and the touch area of the touch object.
By adopting the technical scheme, the motion path of the touch object is collected firstly to determine the position and the moving track of the touch object, then the touch area of the touch object is collected, the motion speed of the touch object is calculated according to the motion path of the touch object, the motion speed of the touch object is compared with a preset speed threshold range to obtain a comparison result, finally the pen front selection mode is determined according to the comparison result, the corresponding pen front generation operation is determined to be executed under the dual conditions of the pen front selection mode and the size of the touch area, the accuracy of selecting the size of the pen front is improved, and therefore the size of the pen front can be directly determined according to the motion speed and the touch area of the touch object, the size of the pen front is convenient to select, the adjusting bar does not need to be pulled again every time, and the operation is simple.
Further, the step of determining the mode of tip selection comprises,
when the motion speed of the touch object is within a preset first speed threshold range, determining that the selection mode of the touch object is a primary selection mode;
when the movement speed of the touch object is within a preset second speed threshold range, determining that the selection mode of the touch object is a secondary selection mode;
and when the motion speed of the touch object is within a preset third speed threshold range, determining that the selection mode of the touch object is a three-level selection mode.
By adopting the technical scheme, firstly, when the movement speed of the touch object is within a preset first speed threshold range, the movement speed of the touch object is relatively low, so that the pen front selection mode can be determined to be a first-level selection mode, when the movement speed of the touch object is within a preset second speed threshold range, the movement speed of the touch object is relatively high and is larger than the preset first speed threshold, so that the pen front selection mode can be determined to be a second-level selection mode, the writing pen front size is smaller than that of the first-level selection mode, when the movement speed of the touch object is within a third speed threshold range, the movement speed of the touch object is high, so that the pen front selection mode can be determined to be a third-level selection mode, the writing pen front size is thinner, and so that the pen front size can be determined through multi-level speeds.
Further, the step of executing the corresponding pen-tip generation operation includes,
when the touch object is in a primary selection mode and the touch area reaches a preset first area threshold range, executing corresponding pen front generation operation;
when the touch object is in a secondary selection mode and the touch area reaches a preset second area threshold range, executing corresponding pen front generation operation;
and when the touch object is in a three-level selection mode and the touch area reaches a preset second area threshold range, executing corresponding pen front generation operation.
By adopting the technical scheme, when the pen point selection mode of the touch object is determined to be a zero-level selection mode, and the size of the touch area reaches the preset first area threshold range, the size of the pen point selected by the pen point selection mode of the touch object is indicated to be corresponding to the size of the pen point started by the touch area, the corresponding pen point generation operation is executed, when the pen point selection mode is determined to be a secondary selection mode, and the size of the touch area reaches the preset second area threshold range, the size of the pen point selected by the pen point selection mode of the touch object is indicated to be corresponding to the size of the pen point started by the touch area, the corresponding pen point operation is executed, when the pen point selection mode is determined to be a tertiary selection mode, and the size of the touch area reaches the preset third threshold range, the size of the pen point selected by the pen point selection mode of the touch object is indicated to be corresponding to the size of the pen point corresponding to the touch area, and determining to execute corresponding stroke operation, so that the size of the stroke can be judged under the dual condition, and the accuracy is improved.
Further, the step of acquiring the touch area of the touch object includes,
acquiring position coordinate information of a touch area of a touch object to obtain the maximum and minimum position coordinates of the touch area;
calculating the difference between the maximum and minimum horizontal coordinates and the difference between the vertical coordinates of the network points;
and calculating the touch area according to the difference of the horizontal coordinates and the difference of the vertical coordinates.
By adopting the technical scheme, the position coordinate information of the touch area is obtained, the maximum abscissa and the minimum ordinate in the touch area are determined based on the position coordinate of the touch area, so that the touch area of the touch area can be calculated, the boundary of the touch area is determined, the area of the touch area is calculated, and the size of the touch area is conveniently judged subsequently.
Furthermore, the method also comprises the following steps of,
acquiring touch area graphs and the number of the touch objects;
comparing the number of the touch objects with a preset number threshold value to generate a comparison result;
determining the pen point type of the touch object based on the comparison result, wherein the pen point type comprises a writing brush type, a signature pen type, a painting brush type and a pencil type;
and executing corresponding stroke edge generation operation according to the stroke edge type and the graph of the touch area.
By adopting the technical scheme, the touch area graphs and the quantity of the touch objects are firstly collected, the quantity of the touch objects is compared with a preset quantity threshold value to generate a comparison result, the pen front type of the touch objects is determined according to the quantity comparison result, whether corresponding pen front generation operation is executed or not is determined according to the pen front type and the graphs of the touch areas, so that a user can conveniently and quickly determine the pen front type, the accuracy of determining the pen front type can be improved under the two conditions of the quantity of the touch areas and the graphs, and different use requirements of people are met.
Further, the step of executing a corresponding pen front generation operation according to the pen front type and the graph of the touch area includes,
when the selection mode is a writing brush type and the graph of the touch area is matched with a preset graph, executing corresponding pen point generation operation;
when the selection mode is the sign pen type and the graph of the touch area is matched with a preset graph, executing corresponding pen front generation operation;
and when the selection mode is the type of the brush pen and the graph of the touch area is matched with a preset graph, executing corresponding pen front generation operation.
By adopting the technical scheme, when the writing brush type, the sign pen type and the painting brush type are in the tip type and the graph of the touch area is matched with the preset graph, the gesture when the touch terminal screen of the user is recognized is accurately recognized with the gesture of the corresponding type to be started, and then the corresponding writing operation of the tip type is executed.
In a second aspect, the present application provides a pen point selecting device, which adopts the following technical scheme:
a pen point selection device comprises a pen point selection device,
the data acquisition module comprises a data acquisition module and a data acquisition module,
the path acquisition sub-module is used for acquiring motion path information of the touch object; and the number of the first and second groups,
the area acquisition submodule is used for acquiring a touch area of a touch object in real time;
a computing module comprising, in combination,
the speed calculation sub-module is used for calculating the movement speed of the touch object based on the movement path of the touch object;
the area calculation submodule is used for calculating the touch area of the touch object;
the comparison module comprises a comparison module and a comparison module,
the first judgment module is used for determining a stroke front selection mode according to the speed comparison result;
and the first execution module is used for executing corresponding pen-carrying front generation operation according to the pen front selection mode and the area comparison result.
By adopting the technical scheme, the path acquisition unit in the acquisition module acquires a moving path of a touch object, the area acquisition unit acquires a touch area of the touch object, after the acquisition is finished, the speed calculation unit in the calculation module calculates the motion speed of the touch object, the area calculation unit calculates the touch area of the touch object, the motion speed comparison unit in the comparison module compares the motion speed in the speed calculation unit with a preset speed threshold range to generate a speed comparison result, and judges the pen front selection mode according to the speed comparison result to determine whether the motion speed of the touch object meets the corresponding condition of the speed, the first execution module determines whether to execute pen front generation operation according to the pen front selection mode and the size of the touch area, and accurately judges the size of the pen front through the double judgment mode, so as to reduce the occurrence of the condition of mis-drawing caused by mis-collision.
Furthermore, the method also comprises the following steps of,
the data acquisition module comprises a data acquisition module and a data acquisition module,
the figure acquisition submodule is used for detecting a touch figure of the touch object;
the quantity acquisition submodule is used for detecting a touch graph of the touch object;
the comparison module comprises a comparison module and a comparison module,
the quantity comparison sub-module is used for comparing the quantity of the touch objects with a preset quantity threshold value to generate a quantity comparison result;
the figure comparison submodule is used for comparing the figure of the touch object with a preset figure to generate a figure comparison result;
the second judgment module is used for determining the pen point type based on the comparison result;
and the second execution module is used for executing corresponding pen-carried front generation operation according to the pen front type and the graph comparison result of the touch object.
According to the technical scheme, firstly, the quantity of the touch objects is detected by the quantity detection unit in the detection module, the touch graph of the touch objects is detected by the graph detection unit, the quantity of the touch objects is compared with a preset quantity threshold value by the quantity comparison unit in the comparison module to generate a quantity comparison result, the touch graph of the touch objects is compared with the preset graph by the graph comparison unit to generate a graph comparison result, the second judgment module judges the pen front type based on the quantity comparison result and the graph comparison result, the second execution module determines whether to execute the pen front generation operation according to the pen front type, so that the gesture of the user is determined according to the quantity of the touch areas and the touch graph to improve the accuracy of determining the gesture of the user, and the user can conveniently select the pen front size.
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 can execute a stroke selection 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 storing a computer program capable of being loaded by a processor and executing a stroke selection method.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the method comprises the steps of collecting a motion path of a touch object to determine the position and the moving track of the touch object, collecting the touch area of the touch object, calculating the motion speed of the touch object according to the motion path of the touch object, comparing the motion speed of the touch object with a preset speed threshold range to obtain a speed comparison result, finally determining a pen front selection mode according to the speed comparison result, judging under the dual conditions of the pen front selection mode and the size of the touch area, executing corresponding pen front generation operation, and improving the accuracy of pen front determination so as to select the size of the pen front;
2. the touch control method comprises the steps that an acquisition module acquires a motion path and a touch area of a touch object, a calculation module calculates the moving speed and the touch area of the touch object, a comparison module compares the moving speed with a preset speed threshold range to generate a comparison result, a judgment module judges a pen front selection mode according to the comparison result to determine whether the moving speed of the touch object meets the corresponding condition of the speed or not, and a first execution module executes pen front generation operation according to the pen front selection mode and the size of the touch area, so that people can conveniently select the size of the pen front;
3. the method comprises the steps of collecting touch area graphs and the number of touch objects, comparing the number of the touch objects with a preset number threshold to generate a comparison result, determining the type of the pen point of the touch objects according to the number comparison result, and determining to execute corresponding pen point generation operation according to the type of the pen point and the graphs of the touch areas, so that a user can conveniently and quickly determine the type of the pen point, and different requirements of people on pen point selection are met.
Drawings
FIG. 1 is a block flow diagram of a pen point selection method of the present application;
FIG. 2 is a block diagram of a pen nib selection apparatus according to the present application;
FIG. 3 is a block diagram of another embodiment of a pen nib selection apparatus according to the present application;
fig. 4 is a block diagram of an intelligent terminal according to the present application.
In the figure, 1, a data acquisition module; 101. a path acquisition submodule; 102. a region acquisition submodule; 2. a calculation module; 201. a speed calculation submodule; 202. an area calculation submodule; 3. a comparison module; 4. a first execution module; 5. a data acquisition module; 501. a graph acquisition submodule; 502. a quantity acquisition submodule; 6. a comparison module; 7. a judgment module; 8. a second execution module; 9. and (4) an intelligent terminal.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
The method comprises the steps of setting a graphic identifier related to a writing button on a terminal interface, simultaneously setting two writing modes on the terminal interface, wherein one writing mode is a common writing mode, the other writing mode is a writing mode with a pen point, and then setting up a corresponding relation between the common writing button and the common writing mode and a corresponding relation between the writing button with the pen point and the writing mode with the pen point. Therefore, before writing, a writing request needs to be received, the writing request comprises a common writing request and a writing request with a pen point, when the corresponding writing request is received, a corresponding mode is started on a terminal interface, and the method is based on the step operation of selecting the pen point in the writing mode with the pen point.
The embodiment of the application discloses a pen point selection method.
As shown in fig. 1, a stroke selection method includes:
and S1, acquiring the motion path of the touch object.
The touch object refers to an object touching the touch screen, and in the present embodiment, the touch object is a finger of a person touching the touch screen.
The step of acquiring the motion path of the touch object refers to the path of the touch object moving on the touch screen, and the specific steps are as follows:
(1) and acquiring the position coordinate information of the network point.
Touch object data are obtained on the touch screen according to changes of capacitance values or pressure values, specifically, a plurality of grid points are set on the touch screen of the intelligent terminal, and corresponding position coordinates are given to each grid point. Determining the cycle time of the detection of the plurality of network points, and acquiring the position coordinates of each network point with the capacitance value or the pressure value change in each cycle time. If the capacitance value of the network point on the touch screen is detected to be changed, the position coordinate information of the network points is obtained. And when the capacitance value or the pressure value of the network point is not detected to be changed in the period time t, the position coordinate information of the network point is not acquired.
(2) And generating a touch area of the touch object based on the read position coordinate information of the network point, and acquiring the position coordinate of the standard point of the touch area.
The position of the touch area at this time is the position of the touch object. And after the position of the touch area is determined, determining the central point of the touch area, and then taking the central point as a standard point and collecting the position coordinates of the standard point. In the present embodiment, if the shape of the generated touch area is set to be rectangular, the intersection of the two diagonal lines of the touch area is the center point. For example, the position coordinates of four end points of the touch area are collected, and are respectively A: (A),),A2(,),A3(,),A4(,) Thus, the position coordinates of the standard points are obtained as (, )。
(3) And generating a motion path about the touch object according to the position coordinates of the standard points.
In the process that the touch object moves, the process is divided into a plurality of cycle times t, in the cycle times t, the position coordinate of the first standard point is obtained as a starting point, the position coordinate of the last standard point is obtained as an end point, the position information of the standard points is sequentially collected, and a motion path of the touch object in the time is generated.
And S2, acquiring the touch area of the touch object.
In this embodiment, the touch area of the touch object is a touch area where the touch object touches the screen and changes the capacitance value or the pressure value of the screen, and the shape of the touch area is set to be rectangular. Specifically, the step of acquiring the touch area of the touch object is as follows:
(1) and acquiring the position coordinates of the network points to obtain the maximum and minimum position coordinates of the network points.
(2) The difference between the maximum and minimum abscissas of the nexus and the difference between the ordinates are calculated.
If the maximum abscissa X2 and the minimum abscissa of the network point are set as X1, the maximum and minimum abscissas are subtracted to obtainTo obtain the difference of the abscissa. Setting the maximum ordinate of a network pointWith the smallest ordinate ofSubtracting the maximum and minimum ordinate values to obtainTo obtain the difference of the ordinate.
(3) And (3) calculating to obtain the touch area based on the difference of the horizontal coordinates and the difference of the vertical coordinates obtained in the step (2).
And (3) calculating the contact area S = XY of the touch object according to the X and the Y obtained in the step (2), thereby obtaining the touch area.
And S3, calculating the motion speed of the touch object based on the motion path of the touch object.
Based on the position coordinates of the standard point moved within the cycle time, to calculate a moving speed at which the position coordinates of the standard point are moved, which is an average speed of the path.
The specific steps of calculating the motion speed of the touch object are as follows:
(1) the distance between two standard points within a cycle time is collected.
(2) And calculating the movement speed between two adjacent standard points according to the moving distance of the standard points and the cycle time t.
In the present embodiment, the calculation formula according to the distance and the cycle time of the distance moved by the standard point and the movement speed is V = L/t, so that the movement speed of the path can be obtained. For example, a cycle time is set to 1ms, and the coordinates of the start point of the standard point in the cycle time are (,) The coordinate of the end point is,) Thus, it follows that the distance moved by the standard point is L =Thereby obtaining the moving speed V =accordingto the calculation formula, thereby obtaining the speed of the path.
And S4, comparing the movement speed of the path with a preset speed threshold range to generate a speed comparison result.
The preset speed threshold range refers to a movement speed threshold range of a path of the touch object acquired in advance (i.e., a movement speed threshold range of the standard point in the cycle time). In the present embodiment, the preset movement speed threshold range includes a first speed threshold range, a second speed threshold range and a third speed threshold range, and the first speed threshold range is set as [ V1, V2 ], and the second speed threshold range is set as [ V2, V3); the third speed threshold range is [ V3, V4), and V1< V2< V3< V4.
Therefore, the movement speed is compared with a preset speed threshold range to obtain the following comparison result:
(1) if the motion speeds V are all in the preset first speed threshold range, the fact that the detected touch object moves slowly is indicated, and the motion speeds V are in the preset first speed threshold range, the stroke size selection condition is met.
(2) If the motion speeds V are all located in the preset second speed threshold range, which indicates that the touch object is detected to move slowly and located in the preset second speed threshold range, the stroke size selection condition is met.
(3) If the motion speeds V are all within the preset third speed threshold range, the fact that the touch object is detected to move fast is indicated, and the motion speeds V are within the preset third speed threshold range, the pen point size selection condition is met;
(4) if the moving speeds V are all smaller than the first speed V1, it indicates that the moving speed of the touch object is detected to be slow, and the stroke size selection condition is not met.
(5) If the motion speeds V are all larger than the fourth speed V4, it indicates that the detected moving speed of the touch object does not conform to the speed threshold range of the pen front size selection.
And S5, determining a pen front selection mode according to the speed comparison result, wherein the pen front mode comprises a non-selection mode, a primary selection mode, a secondary selection mode and a tertiary selection mode.
Determining a pen front selection mode based on the speed comparison result, wherein the specific steps are as follows:
(1) when the moving speeds V are both less than the first speed V1 or greater than the fourth speed V4, the mode is determined not to be selected.
The non-selection mode refers to a mode of not starting to select the size of the pen point, and the mode is determined as the non-selection mode when the preset condition is not met.
(2) When the moving speeds V of the moving paths are all within the preset first speed threshold range, determining as one-level selection
Mode(s).
The primary selection mode is the size of the standard tip, i.e.The touch object moves slowly and meets the preset condition, the size of the pen point is thicker at the moment, and the touch object is determined to be in a primary selection mode.
(3) And when the moving speed V of the moving path is within the preset second speed threshold range, determining the moving path is a two-stage selection mode.
The secondary selection mode is to reduce the size of the pen tip based on the primary selection mode, i.e. in this embodimentThe size of the tip of the primary selection mode is set to be 0.75 x the size of the basic tip.
(4) And when the movement speeds V of the movement paths are all smaller than a preset third speed threshold range, determining that the three-level selection mode is adopted.
The tertiary selection mode refers to the basic pen peak value 0.5. When the moving speed of the moving path is within the third speed threshold range, the moving speed is relatively high, namelyThen the three-level selection mode is determined.
(5) When the moving speeds V of the moving paths are all within the range of the preset fourth speed threshold, determining the moving paths as four-level selection
Mode(s).
The four-level selection mode refers to the base pen front 0.25. When the movement speed of the movement path is within the fourth speed threshold range, it indicates that the movement speed of the touch object is faster, i.e. the movement speed of the touch object is fasterAnd if the stroke is thin, determining the mode as a four-level selection mode.
It should be noted that, when determining the required mode for selecting the pen front, in order to determine the required mode, the following steps are further provided:
(1) acquiring corresponding stroke front selection mode information based on the determined stroke front selection mode;
in this embodiment, the stroke selection mode information includes a size of the stroke, a color of the stroke, and the like.
(2) And analyzing and processing the corresponding stroke edge selection information, generating graphic information about the size and color of the stroke edge, and displaying the graphic information on a terminal interface.
And S6, executing the pen front generation operation based on the pen front selection mode and the touch area of the touch object.
In this embodiment, the pen front generation operation refers to that the touch object moves on a screen to form a certain motion track, and after data processing, the motion track is drawn and rendered, so that the handwriting with the pen front is displayed on a terminal interface.
The step of determining whether to execute the pen front generation operation is as follows:
(1) and when the mode is determined not to be selected and the touch area is smaller than the first area or larger than the fifth area, the pen-tip generating operation is not executed.
(2) And when the first-level selection mode is determined and the touch area is within the preset first area threshold range, executing corresponding pen front generation operation.
If the preset area threshold range is set as [ S1, S2) ], when the touch object touchesThe contact area of the screen is within a predetermined first area threshold range, i.e.And the touch object is selected to be in a primary mode, which indicates that the touch area of the touch object is large and the movement speed is low, corresponding stroke front generation operation is executed, and the stroke front writing is thick.
(3) And when the touch area is determined to be in the secondary selection mode and the touch area reaches the range of the preset second area threshold, executing corresponding pen front generation operation.
For example, the preset area threshold range is set as [ S2, S3 ], and when the contact area of the touch object touching the screen is within the preset second area threshold range, that is, the preset second area threshold rangeIf the touch area of the touch object is larger than the preset first area threshold value and the touch object is selected to be in the secondary mode, the pen point generation operation is determined to be executed, and the pen point is thinner than that of the primary selection mode during writing.
(4) And when the touch object is in a three-level selection mode and the touch area reaches the preset third area threshold range, executing corresponding pen front generation operation.
For example, the preset area threshold range is set as [ S3, S4 ], and when the contact area of the touch object touching the screen is within the preset third area threshold range, that is, the preset area threshold range is setIf the touch area of the touch object is smaller and the touch object is selected to be in the three-level selection mode, the pen front generation operation is determined to be executed, and the pen front is thinner during writing.
(5) And when the touch object is in a four-level selection mode and the touch area reaches the range of a preset fourth area threshold, executing corresponding stroke edge generation operation.
If the preset area threshold range is set to be [ S4, S5 ], the contact area of the touch object touching the screen is located on the preset fourth surfaceWithin a product threshold range, i.e.If the touch area of the touch object is small and the touch object is selected to be in the four-level selection mode, the stroke is thin, and the stroke generation operation is determined to be executed.
In order to select different types of penfront so as to meet the requirements of different people, the penfront selection method further comprises the following steps:
and S7, acquiring the touch pattern and the number of the touch objects.
The touch pattern of the touch object refers to a pattern that the touch object touches the screen, the number of touch areas of the touch object refers to the number of touch patterns formed by the touch object touching the screen, and the type required by the pen front is judged according to the number of the touch objects. In this embodiment, gather the touch figure of touch object, can effectively differentiate whether touch object is the finger to effectively prevent that other positions of hand from mistake from touching the screen, avoiding the condition that follow-up mistake was drawn.
And S8, comparing the number of the touch objects with a preset number threshold value to generate a comparison result.
And S9, determining the pen point type of the touch object based on the comparison result, wherein the pen point type comprises a writing brush type, a sign pen type, a painting brush type and a pencil type.
The method comprises the following specific steps:
(1) and when the number of the graphs of the touch object is 1, determining that the brush point type of the touch object is a writing brush type.
And when the number of the graphs of the touch object is 1, indicating that the touch object is a finger touch screen, and determining that the brush point type of the touch object is a writing brush type.
(2) When the number of the graphs of the touch object is 2, determining that the pen front type of the touch object is the sign pen type.
When the number of the graphs of the touch object is 2, the touch object is indicated to be two fingers to touch the screen, and therefore the brush point type of the touch object is determined to be the writing brush type.
(3) When the number of the graphics of the touch object is 3, determining that the brush type of the touch object is the brush type.
And when the number of the graphs of the touch object is 3, indicating that the touch object is a three-finger touch screen, and determining that the brush tip type of the touch object is the brush type.
(4) When the number of the patterns of the touch object is 4, determining that the tip type of the touch object is a pencil type.
And when the touch object is 4, indicating that the touch object is a screen touched by four fingers, and determining that the pen point type of the touch object is a pencil type.
And S10, determining whether to execute the pen front generation operation according to the pen front type and the graph of the touch object.
The method comprises the following specific steps:
(1) and when the selection mode is the writing brush type and the graph of the touch object is matched with the preset graph, executing corresponding pen point generation operation.
In this embodiment, the preset graph refers to a standard graph collected in advance, and the standard graph refers to various patterns touched by a finger on a screen. And matching the graph of the touch object with a preset graph, and determining to execute the pen front generation operation if the graph of the touch object and the preset graph meet the matching standard.
Such as: and matching the graph of the touch object with a preset graph, if the matching reaches 90%, indicating that the touch object is the graph matching when one finger touches the screen, if the matching degree reaches 45%, indicating that the graph when one finger touches the screen is not matched, returning to perform the re-matching again, and if the number of times of the re-matching reaches 3 times, exiting the matching operation and returning to the pen-front type selection operation.
(2) And when the selection mode is the sign pen type and the graph of the touch area is matched with the preset graph, executing corresponding pen front generation operation.
Such as: and matching the graph of the touch object with a preset graph, if the matching reaches 90%, indicating that the touch object is the graph matching when two fingers touch the screen, if the matching degree reaches 30%, indicating that the graph when one finger touches the screen is not matched, returning to perform the re-matching again, and if the number of times of the re-matching reaches 3 times, exiting the matching operation and returning to the pen-front type selection operation.
(3) And when the selection mode is the painting brush type and the graph of the touch area is matched with the preset graph, executing corresponding pen front generation operation.
(4) And when the pen front type is the non-selection type and the graph of the touch area is matched with the preset graph, not executing pen front generation operation.
The embodiment of the application also discloses a pen point selection device.
As shown in fig. 2, the apparatus includes the following modules:
the data acquisition module 1 comprises a data acquisition module,
a path acquisition sub-module 101 for acquiring motion path information about the touch object; and (c) a second step of,
the area acquisition submodule is used for acquiring a touch area of a touch object in real time;
the calculation module 2, comprising,
a velocity calculation submodule 201 for calculating a motion velocity of the touch object based on the motion path of the touch object; and the number of the first and second groups,
an area calculating submodule 202 for calculating a touch area of a touch region of the touch object
The comparison module 3 is used for comparing the path speed with a preset speed threshold range to generate a comparison result;
the first judging module 7 is used for determining a pen front selection mode according to the comparison result;
the first executing module 4 is configured to determine whether to execute a pen front generating operation according to the pen front selection mode and the touch area.
As shown in fig. 3, further includes:
the data acquisition module 5, comprising,
a graph obtaining submodule 501, configured to obtain a touch graph of a touch object; and the number of the first and second groups,
a number obtaining submodule 502 for obtaining a touch number of the touch object;
the comparison module 6 is used for comparing the number of the touch objects with a preset number threshold value to generate a comparison result;
the second judging module 7 is used for determining the pen front type based on the quantity comparison result;
and the second executing module 8 is configured to determine whether to execute the pen front generating operation according to the pen front type and the graph of the touch object.
The data acquisition module 1 acquires a touch area and a moving path of a touch object, the velocity calculation submodule 201 in the calculation module 2 calculates a motion velocity area calculation submodule 202 of the touch object to calculate the touch area of the touch object, the comparison module 3 compares the motion velocity with a preset velocity threshold range to obtain a comparison result, the first judgment module 7 determines a pen front selection mode according to the comparison result, and the first execution module 4 executes corresponding pen front generation operation according to the pen front selection mode and the area comparison result of the touch area.
On the other hand, the graph acquisition sub-module 501 of the data acquisition module 5 acquires graphs of data touch objects, the quantity acquisition sub-module 502 acquires the quantity of the touch objects, the comparison module 6 compares the quantity of the touch objects with a preset quantity threshold to generate a comparison result, the second judgment module 7 determines the stroke type of the touch objects according to the comparison result, and the second execution module 8 executes corresponding stroke generation operation according to the stroke type and the graphs of the touch objects, so that writing can be performed according to different stroke requirements of people, and the applicability is improved.
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 limitation of the stroke selection device, reference may be made to the above limitation on the stroke selection method, and details are not described herein again. All or part of each module in the pen tip selection device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the intelligent device, and can also be stored in a memory in the intelligent 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, the intelligent terminal 9 includes a processor, a memory, and a computer program stored on the memory and running on the processor, which are connected through a system bus. The computer program when executed by a processor implements a method of stroke selection comprising the steps of:
s1, acquiring a motion path of the touch object;
s2, acquiring the contact area of the touch object;
s3, calculating the motion speed of the touch object based on the motion path of the touch object;
s4, comparing the motion speed of the path with a preset speed threshold range to generate a speed comparison result;
s5, determining a pen front selection mode according to the speed comparison result, wherein the pen front mode comprises a non-selection mode, a zero-level selection mode, a first-level selection mode, a second-level selection mode and a third-level selection mode;
s6, determining whether to execute pen front generation operation based on the pen front selection mode and the touch area of the touch object;
s7, acquiring the touch pattern and the number of touch objects;
s8, comparing the number of the touch objects with a preset number threshold value to generate a comparison result;
s9, determining the tip type of the touch object based on the comparison result, wherein the tip type comprises a writing brush type, a signature pen type, a painting brush type and a pencil type;
and S10, determining whether to execute the pen front generation operation according to the pen front type and the graph of the touch object.
The memory of the intelligent device comprises 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. The smart device also includes a network interface, wherein the network interface may preferably include a standard wired interface and a wireless interface (e.g., a WIFI interface), which is generally used to establish a communication connection between the smart device 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 smart device 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.
The embodiment of the present application further discloses a computer-readable storage medium, which stores a computer program that can be loaded by a processor and execute the above-mentioned pen front selection 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. A method for selecting a pen point is characterized by comprising the following steps,
collecting a motion path of a touch object;
collecting a contact area of a touch object;
calculating a motion speed of the touch object based on the motion path of the touch object;
comparing the movement speed of the path with a preset speed threshold range to generate a speed comparison result, wherein the preset movement speed threshold range comprises a first speed threshold range, a second speed threshold range and a third threshold speed range;
determining a pen front selection mode according to the speed comparison result, wherein the pen front selection mode comprises a primary selection mode, a secondary selection mode and a tertiary selection mode;
and executing corresponding pen front generation operation based on the pen front selection mode and the touch area of the touch object.
2. The method of claim 1, wherein the step of determining the tip selection mode comprises,
when the motion speed of the touch object is within a preset first speed threshold range, determining that the selection mode of the touch object is a primary selection mode;
when the movement speed of the touch object is within a preset second speed threshold range, determining that the selection mode of the touch object is a secondary selection mode;
and when the motion speed of the touch object is within a preset third speed threshold range, determining that the selection mode of the touch object is a three-level selection mode.
3. The method of claim 2, wherein performing the corresponding stroke generating operation based on the stroke selection mode and the touch area of the touch object comprises,
when the touch object is in a primary selection mode and the touch area reaches a preset first area threshold range, determining to execute pen-carried frontal generating operation;
when the touch object is in a secondary selection mode and the touch area reaches a preset second area threshold range, determining to execute pen-carrying frontal generating operation;
and when the touch object is in a three-level selection mode and the touch area reaches a preset third area threshold range, determining to execute the pen-carrying sharp generation operation.
4. The method of claim 1, wherein the step of acquiring a contact area of the touching object comprises,
acquiring position coordinate information of a touch area of a touch object to obtain the maximum and minimum position coordinates of the touch area;
calculating the difference between the maximum and minimum horizontal coordinates and the difference between the vertical coordinates of the network points;
and calculating the touch area according to the difference of the horizontal coordinates and the difference of the vertical coordinates.
5. The method of claim 1, further comprising,
acquiring touch area graphs and the number of the touch objects;
comparing the number of the touch objects with a preset number threshold to generate a comparison result;
determining the pen point type of the touch object based on the comparison result, wherein the pen point type comprises a writing brush type, a signature pen type, a painting brush type and a pencil type;
and executing corresponding pen front generation operation according to the pen front type and the graph of the touch area.
6. The method according to claim 5, wherein the step of performing the corresponding pen-tip generation operation according to the pen-tip type and the graph of the touch area comprises,
when the selection mode is a writing brush type and the graph of the touch area is matched with a preset graph, determining to execute a writing brush front generation operation;
when the selection mode is the sign pen type and the graph of the touch area is matched with a preset graph, determining to execute pen front generation operation;
and when the selection mode is the painting brush type and the graph of the touch area is matched with a preset graph, determining to execute a brush point generation operation.
7. A pen point selection device is characterized by comprising,
the data acquisition module comprises a data acquisition module and a data acquisition module,
the path acquisition submodule is used for acquiring motion path information of the touch object; and the number of the first and second groups,
the area acquisition submodule is used for acquiring a touch area of a touch object in real time;
a computing module comprising, in combination,
the speed calculation submodule is used for calculating the movement speed of the touch object on the basis of the movement path of the touch object; and the number of the first and second groups,
the area calculation submodule is used for calculating the touch area of the touch object;
the comparison module is used for comparing the path speed with a preset speed threshold range to generate a speed comparison result;
the first judgment module is used for determining a pen front selection mode according to the comparison result;
and the first execution module is used for executing corresponding pen front generation operation according to the pen front selection mode and the area.
8. The tip selection device according to claim 7, further comprising,
the data acquisition module comprises a data acquisition module,
the figure acquisition submodule is used for acquiring a touch figure of the touch object;
the quantity acquisition submodule is used for acquiring the touch quantity of the touch object;
the comparison module comprises a comparison module and a comparison module,
the quantity comparison submodule is used for comparing the quantity of the touch objects with a preset quantity threshold value so as to generate a quantity comparison result;
the figure comparison submodule is used for comparing the figure of the touch object with a preset figure to generate a figure comparison result;
the second judgment module is used for determining the pen point type based on the comparison result;
and the second execution module is used for executing corresponding stroke edge generation operation according to the stroke edge type and the graph comparison result of the touch object.
9. An intelligent terminal, comprising a memory and a processor, the memory having stored thereon a computer program which can be loaded by the processor and which executes the tip selection method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that a computer program is stored which can be loaded by a processor and which executes the tip selection method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110517459.9A CN113296616B (en) | 2021-05-12 | 2021-05-12 | Pen point selection method and device and intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110517459.9A CN113296616B (en) | 2021-05-12 | 2021-05-12 | Pen point selection method and device and intelligent terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113296616A CN113296616A (en) | 2021-08-24 |
CN113296616B true CN113296616B (en) | 2022-09-30 |
Family
ID=77321518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110517459.9A Active CN113296616B (en) | 2021-05-12 | 2021-05-12 | Pen point selection method and device and intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113296616B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115344187B (en) * | 2022-08-12 | 2024-03-12 | 深圳康佳电子科技有限公司 | Method and device for identifying painting brush style by using safety Zhuo Huatu software |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150115A (en) * | 2013-03-04 | 2013-06-12 | 广东欧珀移动通信有限公司 | Processing method and system for handwriting strokes on touch screen and mobile terminal |
CN111142770A (en) * | 2019-12-23 | 2020-05-12 | 江苏欧帝电子科技有限公司 | Method for generating pen point and processing device |
CN112394838A (en) * | 2020-11-17 | 2021-02-23 | 青岛海信商用显示股份有限公司 | Handwriting determining method and touch display device |
CN112558812A (en) * | 2020-12-15 | 2021-03-26 | 深圳市康冠商用科技有限公司 | Pen point generation method and device, intelligent device and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202166974U (en) * | 2010-10-11 | 2012-03-14 | 庄永基 | Digital painting and calligraphy pen with full-data collecting sensor for pen holder movement angle |
CN103164086B (en) * | 2013-03-15 | 2016-05-25 | 创维光电科技(深圳)有限公司 | A kind of touch display methods, device and infrared touch panel based on infrared touch panel |
-
2021
- 2021-05-12 CN CN202110517459.9A patent/CN113296616B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150115A (en) * | 2013-03-04 | 2013-06-12 | 广东欧珀移动通信有限公司 | Processing method and system for handwriting strokes on touch screen and mobile terminal |
CN111142770A (en) * | 2019-12-23 | 2020-05-12 | 江苏欧帝电子科技有限公司 | Method for generating pen point and processing device |
CN112394838A (en) * | 2020-11-17 | 2021-02-23 | 青岛海信商用显示股份有限公司 | Handwriting determining method and touch display device |
CN112558812A (en) * | 2020-12-15 | 2021-03-26 | 深圳市康冠商用科技有限公司 | Pen point generation method and device, intelligent device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113296616A (en) | 2021-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9483146B2 (en) | Input classification for multi-touch systems | |
US9632605B2 (en) | Input classification for multi-touch systems | |
CN110727496B (en) | Layout method and device of graphical user interface, electronic equipment and storage medium | |
CN112905102B (en) | Method and device for realizing writing tip, electronic equipment and readable storage medium | |
WO2019062243A1 (en) | Identification method and apparatus for touch operation, and electronic device | |
WO2014062973A1 (en) | Input classification for multi-touch systems | |
CN103902086A (en) | Curve fitting based touch trajectory smoothing method and system | |
US9430066B2 (en) | Input classification for multi-touch systems | |
CN112596661A (en) | Writing track processing method and device and interactive panel | |
EP3413179B1 (en) | Rejecting extraneous touch inputs in an electronic presentation system | |
CN106155540B (en) | Electronic brush pen pen shape treating method and apparatus | |
CN103455262A (en) | Pen-based interaction method and system based on mobile computing platform | |
EP3008556B1 (en) | Disambiguation of indirect input | |
CN110633042A (en) | Handwriting erasing method, device and equipment for electronic whiteboard | |
CN113296616B (en) | Pen point selection method and device and intelligent terminal | |
EP3622382A1 (en) | Disambiguating gesture input types using multiple heatmaps | |
CN113311981A (en) | Erasing method and device, intelligent terminal and computer readable storage medium | |
CN111984151B (en) | Whiteboard canvas size and position roaming control method for improving processing efficiency | |
CN109298809A (en) | A kind of touch action recognition methods, device and terminal device | |
TW201423563A (en) | Apparatus and method for processing handwriting input | |
CN111078028B (en) | Input method, related device and readable storage medium | |
CN115981542A (en) | Intelligent interactive touch control method, system, equipment and medium for touch screen | |
US20120299837A1 (en) | Identifying contacts and contact attributes in touch sensor data using spatial and temporal features | |
CN113986041B (en) | Method and system for erasing electronic data based on electronic whiteboard eraser | |
LU101625B1 (en) | Systems and methods for grid-aligned inking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |