CN108132727A - Handwriting regulation method and device based on touch control face plates - Google Patents
Handwriting regulation method and device based on touch control face plates Download PDFInfo
- Publication number
- CN108132727A CN108132727A CN201711283759.5A CN201711283759A CN108132727A CN 108132727 A CN108132727 A CN 108132727A CN 201711283759 A CN201711283759 A CN 201711283759A CN 108132727 A CN108132727 A CN 108132727A
- Authority
- CN
- China
- Prior art keywords
- breakpoint
- touch control
- touch
- handwriting
- face plates
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000003708 edge detection Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 6
- 239000003016 pheromone Substances 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 239000003990 capacitor Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000001427 coherent effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000009024 positive feedback mechanism Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a kind of handwriting regulation method and device based on touch control face plates, the method includes:Reference writing breakpoint is determined according in preset condition written handwriting shown on touch control face plates;Determine whether occur to represent that touch-control body leaves the touch control operation of the touch control face plates at the touch location corresponding to the reference writing breakpoint;If the touch control operation does not occur at the touch location corresponding to the reference writing breakpoint, the reference writing breakpoint is determined as true person's handwriting breakpoint;Breakpoint filling is carried out to the written handwriting according to the true person's handwriting breakpoint.Using this method, can efficiently solve when user carries out writing operation using touch control face plates, shown written handwriting has breakpoint on touch control face plates, promotes user experience.
Description
Technical field
This application involves technical field of touch control more particularly to a kind of handwriting regulation methods and device based on touch control face plates.
Background technology
With the fast development of touch technology, teaching has been widely applied in the enterprising running hand write operation of touch control face plates, has been done
The numerous areas such as public affairs.At present, touch control face plates mainly add the configuration of display using touch screen, and operation principle is touch-control body, example
Such as finger, when touching touch screen, touch screen detection part detects to obtain touch location, by setting interface by the touch location
Location information is sent to CPU, and input content is determined, then the input content is fed back on display and is shown by CPU.So
And due to the influence of the factors such as hardware limitation, operating system internal message transfer mechanism, it is easy to above-mentioned location information occur not
It is successfully sent to the situation of CPU, then, breakpoint will occur in the written handwriting shown over the display, and written handwriting is caused not connect
It passes through, especially when user rapidly touches touch screen, the phenomenon is more serious, causes user experience poor.
In the prior art, to solve the above-mentioned problems, two kinds of settling modes are proposed, mode one promotes the hard of touch control face plates
Part is configured, such as increases filter capacitor in the emission lines of touch screen and reception line, to enhance antijamming capability so that upper rheme
Confidence breath is successfully transmitted to CPU as far as possible;Mode two, by being pre-processed at touch-control end to written handwriting, such as using
Person's handwriting smoothing algorithm, trajectory predictions algorithm etc. pre-process written handwriting, occur to reduce in the input content that CPU determines
The probability of breakpoint, so as to which the probability of breakpoint occurs in the written handwriting for reducing display screen display.
However, in aforesaid way one, increase filter capacitor not only increases hardware on the hardware configuration of existing touch screen
Cost, and for some touch screens, may can not increase filter capacitor since structure space limits, thus may be used
See, aforesaid way one has many restrictions;In aforesaid way two, only it is reduction of in the input content that CPU is determined and breaks
The probability of point, and can not avoid due to the influence of the factors such as Windows system refresh mechanism, the input content that CPU is caused to determine
The problem of can not completely being shown by display screen namely using aforesaid way two still can not be effectively prevented from display screen display
Written handwriting there is breakpoint.
Invention content
In view of this, the application provides a kind of handwriting regulation method and device based on touch control face plates, to realize effectively
Shown written handwriting is solved the problem of when user carries out using touch control face plates writing operation on touch control face plates there are breakpoint,
Promote user experience.
Specifically, the application is achieved by the following technical solution:
According to the embodiment of the present application in a first aspect, providing a kind of handwriting regulation method based on touch control face plates, the side
Method includes:
Reference writing breakpoint is determined according in preset condition written handwriting shown on touch control face plates;
Determine whether occur to represent that it is described that touch-control body leaves at the touch location corresponding to the reference writing breakpoint
The touch control operation of touch control face plates;
If the touch control operation does not occur at the touch location corresponding to the reference writing breakpoint, pen is referred to by described
Mark breakpoint is determined as true person's handwriting breakpoint;
The true person's handwriting breakpoint is filled using preset algorithm.
Optionally, determine that reference writing is broken in the written handwriting shown on touch control face plates according to preset condition
Before point, the method further includes:
Edge detection is carried out to the current display image on touch control face plates, obtains the edge two-value of the current display image
Change image, in the edge binary image, the pixel value of the pixel of written handwriting is the first preset value, rest of pixels point
Pixel value be the second preset value.
Optionally, determine that reference writing is broken in the written handwriting shown on touch control face plates according to preset condition
Point, including:
Calculate the connection number of pixel in written handwriting shown on touch control face plates;
If the connection number meets preset condition, the pixel is determined as reference writing breakpoint.
Optionally, whether occur to represent touch-control at the touch location determined corresponding to the reference writing breakpoint
Body leaves the touch control operation of the touch control face plates, including:
Determine whether the touch location corresponding to the reference writing breakpoint is corresponding with to represent that it is described that touch-control body leaves
The mark of the touch control operation of touch control face plates.
Optionally, it is described that the true person's handwriting breakpoint is filled using preset algorithm, including:
Using the set being made of the true person's handwriting breakpoint as breakpoint set;
One of breakpoint is selected in the breakpoint set as the first breakpoint;
Path in first breakpoint and the breakpoint set between another breakpoint is determined using preset ant group algorithm;
The path is filled according to preset writing parameter, and deletes described first in the breakpoint set and breaks
Point and another breakpoint;
It returns to perform and selects the step of one of breakpoint is as the first breakpoint in the breakpoint set, until described disconnected
Point set is combined into empty set.
According to the second aspect of the embodiment of the present application, a kind of person's handwriting adjusting apparatus based on touch control face plates, the dress are provided
Put including:
First determining module, for being determined according in preset condition written handwriting shown on touch control face plates with reference to pen
Mark breakpoint;
Determining module is operated, for determining whether to occur at the touch location corresponding to the reference writing breakpoint for table
Show that touch-control body leaves the touch control operation of the touch control face plates;
Second determining module, if for the touch-control behaviour not to occur at the touch location corresponding to the reference writing breakpoint
Make, then the reference writing breakpoint is determined as true person's handwriting breakpoint;
Module is filled, for being filled using preset algorithm to the true person's handwriting breakpoint.
Optionally, described device further includes:
Image processing module for carrying out edge detection to the current display image on touch control face plates, obtains described current
Show the edge binary image of image, in the edge binary image, the pixel value of the pixel of written handwriting is the
One preset value, the pixel value of rest of pixels point is the second preset value.
Optionally, first determining module includes:
Computational submodule, for calculating the connection number of pixel in written handwriting shown on touch control face plates;
First determination sub-module if meeting preset condition for the connection number, the pixel is determined as referring to
Person's handwriting breakpoint.
Optionally, the operation determining module includes:
Determination sub-module is identified, is used for for determining whether the touch location corresponding to the reference writing breakpoint is corresponding with
Represent that touch-control body leaves the mark of the touch control operation of the touch control face plates.
Optionally, the filling module includes:
Gather determination sub-module, for the set that will be made of the true person's handwriting breakpoint as breakpoint set;
Submodule is selected, for selecting one of breakpoint as the first breakpoint in the breakpoint set;
Path determination sub-module, for being determined in first breakpoint and the breakpoint set using preset ant group algorithm
Path between another breakpoint;
Submodule is handled, for being filled according to preset writing parameter to the path, and in the breakpoint set
It is middle to delete first breakpoint and another breakpoint;
It returns to perform and described selects to select one of breakpoint in the breakpoint set as the performed by submodule
The step of one breakpoint, until the break point set is combined into empty set.
As seen from the above-described embodiment, by determining ginseng according in preset condition written handwriting shown on touch control face plates
Person's handwriting breakpoint is examined, further by determining whether occur to represent at the touch location corresponding to the reference writing breakpoint
Touch-control body leaves the touch control operation of the touch control face plates, to determine whether reference writing breakpoint is true person's handwriting breakpoint, wherein, if
The touch control operation does not occur at touch location corresponding to reference writing breakpoint, then the reference writing breakpoint is determined as true pen
Mark breakpoint finally, is filled true person's handwriting breakpoint using preset algorithm.By above-mentioned processing, primarily determining with reference to pen
After mark breakpoint, further determine that true person's handwriting breakpoint further according to the touch control operation of user, avoid and be determined as person's handwriting end point
Person's handwriting breakpoint carries out breakpoint filling to written handwriting according to true person's handwriting breakpoint, then can accurately and efficiently eliminate written handwriting
In breakpoint, promoted user experience.
Description of the drawings
Fig. 1 is a kind of example of written handwriting that touch control face plates are shown;
Fig. 2 is one embodiment flow chart of handwriting regulation method of the application based on touch control face plates;
Fig. 3 is a kind of example of 8 neighborhoods of pixel x;
Fig. 4 is another example of written handwriting that touch control face plates are shown;
Fig. 5 is a kind of hardware structure diagram of touch control face plates where person's handwriting adjusting apparatus of the application based on touch control face plates;
Fig. 6 is one embodiment block diagram of person's handwriting adjusting apparatus of the application based on touch control face plates.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
At present, with the fast development of touch technology, religion has been widely applied in the enterprising running hand write operation of touch control face plates
The numerous areas such as, office.Existing touch control face plates mainly add the configuration of display using touch screen, and operation principle is touch-control
Body, such as finger, when stylus touches touch screen, touch screen detection part detects to obtain touch location, will by setting interface
The location information (usually being represented with coordinate form) of the touch location is sent to CPU, and input content is determined, then this is defeated by CPU
Enter and shown in content feed to display.However, due to the hardware limitation of touch control face plates, operating system internal message transfer
The influence of the factors such as mechanism, it is easy to the situation that above-mentioned location information is sent to CPU not successfully occur, then, over the display
Breakpoint will occur in the written handwriting of display, cause written handwriting discontinuous, should especially when user rapidly touches touch screen
Phenomenon is more serious, causes user experience poor.For example, referring to Fig. 1, the one kind of written handwriting shown for touch control face plates is shown
Example, in Fig. 1, the part that border circular areas institute frame is elected is person's handwriting breakpoint.
There is breakpoint to solve above-mentioned described written handwriting, discontinuous, the problem of causing user experience poor, this
Application proposes a kind of handwriting regulation method based on touch control face plates.In the method, it is write in user by touch control face plates
During operation, written handwriting shown on touch control face plates is detected in real time, determines to whether there is in written handwriting
If breakpoint there are breakpoint, is filled breakpoint region, to eliminate breakpoint so that written handwriting links up, so as to promote user
Experience.
It is as follows, show that following embodiments illustrate the handwriting regulation method based on touch control face plates that the application provides.
Fig. 2 is referred to, for one embodiment flow chart of handwriting regulation method of the application based on touch control face plates, this method
It may comprise steps of:
Step 201:Reference writing breakpoint is determined according in preset condition written handwriting shown on touch control face plates.
In the embodiment of the present application, for the ease of breaking point detection, can first to the image currently shown on touch control face plates,
Such as the image exemplified by Fig. 1, carry out some image processing operations so that the pixel value of pixel is single picture on written handwriting
Element.
In an optional realization method, edge detection can be carried out to the image currently shown on touch control face plates, obtained
To the edge binary image of the image, in the edge binary image, the pixel value of the pixel on written handwriting is the
One preset value, such as 255, the pixel value of rest of pixels point are the second preset value, such as 0.Specifically, Canny sides may be used
Edge detection template, such as Sobel templates, Prewitt templates etc. carry out edge detection to the image currently shown on touch control face plates,
Obtain the edge binary image of the image.Edge detection is carried out to the image about using Canny edge detection templates, is obtained
The detailed process of edge binary image, those skilled in the art may refer to associated description of the prior art, the application couple
This is no longer described in detail.
It in the embodiment of the present application, can be every prefixed time interval, such as every 2 seconds, i.e., within this 2 seconds
The written handwriting formed carries out the detection of breakpoint, is handled by this kind, can realize and detect lettering pen in real time as far as possible
Breakpoint in mark, to carry out subsequent breakpoint filling so that written handwriting keeps coherent, promotes user experience.
In this step, reference writing is determined according in preset condition written handwriting shown on touch control face plates first
Breakpoint, it will be appreciated by persons skilled in the art that written handwriting described herein can be above-mentioned described, when current
The written handwriting formed in first 2 seconds carved.
In an optional realization method, the connection number of each pixel on written handwriting can be calculated, specifically,
The connection number of pixel can be calculated by following formula (one):
In above-mentioned formula (one), NCRepresent the connection number of pixel, f (xk) represent pixel xkPixel value, k represent 8
The kth neighborhood of neighborhood, as shown in figure 3, a kind of example of 8 neighborhoods for pixel x.
In the embodiment of the present application, if being 1 by the connection number that above-mentioned formula (one) is calculated, the picture can be determined
Vegetarian refreshments is breakpoint.But in view of in practical applications, it is originally just incoherent that user may also draw some on touch control face plates
Written handwriting for example, as shown in figure 4, another example of the written handwriting shown for touch control face plates, has dotted line in the Fig. 4
Frame as described above, connects number by calculating, then can the endpoint of phantom line segments in dotted line frame be also detected as breakpoint, such as Fig. 4
In the part elected of border circular areas institute frame, and this part of breakpoint is not due to CPU and does not receive location information, and
The person's handwriting breakpoint gone out shown by display, but person's handwriting end point, based on this, in the embodiment of the present application, only walk this
Reference writing breakpoint is regarded as according to the breakpoint that preset condition is determined in rapid 201, subsequently, also needs to carry out reference writing breakpoint
Further detection, that is, perform step 202.
Step 202:Determine whether occur to represent that touch-control body leaves at the touch location corresponding to reference writing breakpoint
The touch control operation of touch control face plates.
By foregoing description it is found that user can touch by touch-control body, such as when finger, stylus touch touch control face plates
It touches and written handwriting is generated on position, then each pixel all corresponds to a touch location on written handwriting.
In the embodiment of the present application, it during user carries out writing operation by touch control face plates, can detect in real time
Whether occur at touch location for representing that touch-control body leaves the touch control operation of touch control face plates, if being detected at a certain touch location
To the touch control operation, then the mark for representing to occur at the touch location touch control operation can be set for the touch location.
It subsequently, then can be by determining whether the corresponding touch location of reference writing breakpoint is corresponding with the mark, to determine that this refers to pen
Whether occur to represent that touch-control body leaves the touch control operation of touch control face plates at the corresponding touch location of mark breakpoint.
Specifically, if the corresponding touch location of reference writing breakpoint is corresponding with above-mentioned mark, the touch position can be determined
It puts place and above-mentioned touch control operation occurs, if the corresponding touch location of reference writing breakpoint is not corresponding with above-mentioned mark, can determine
Above-mentioned touch control operation does not occur at the touch location.
Step 203:If the touch control operation does not occur at the touch location corresponding to reference writing breakpoint, this is referred into pen
Mark breakpoint is determined as true person's handwriting breakpoint.
In the embodiment of the present application, the practical application scene of writing operation, user are carried out by touch control face plates with reference to user
When drawing coherent written handwriting, touch-control body will not leave touch control face plates, when touch-control body leaves touch control face plates, then it represents that
Writing stops (or termination), and the breakpoint formed at this time is also just person's handwriting end point, not person's handwriting breakpoint.Based on this, in this step
In rapid, however, it is determined that do not occur to represent that touch-control body leaves touching for touch control face plates at the touch location corresponding to reference writing breakpoint
The reference writing breakpoint, then can be determined as true person's handwriting breakpoint by control operation, correspondingly, if it is determined that reference writing breakpoint institute is right
Occur at the touch location answered for representing that touch-control body leaves the touch control operation of touch control face plates, then it can be by the reference writing breakpoint
It is determined as person's handwriting end point.
Step 204:The true person's handwriting breakpoint is filled using preset algorithm.
By performing above-mentioned steps 201 to step 203, multiple true pens may be detected during a breaking point detection
Mark breakpoint, then, in the step 204, can breakpoint filling be carried out to written handwriting according to multiple true person's handwriting breakpoint.
In an optional realization method, ant group algorithm may be used and carry out breakpoint filling, specifically, by multiple true
The set that person's handwriting breakpoint is formed arbitrarily selects a breakpoint as the first breakpoint as breakpoint set in the breakpoint set,
Later, using ant group algorithm, the path between another breakpoint in first breakpoint and the breakpoint set is determined, then, according to pre-
If writing parameter the path is filled, and first breakpoint and another breakpoint are deleted in breakpoint set.
Subsequently, the above process is continued to execute for updated breakpoint set, until break point set is combined into empty set.
In the foregoing description, writing parameter can include the information such as color, thickness, the type of paintbrush, also, the writing is joined
Number can be that touch control face plates are set as write mode in user, be recorded before carrying out writing operation, so that filling part
Divide and be consistent with other written handwritings, avoid bringing visual difference sense to user, promote user experience.
It is as follows, ant group algorithm is briefly described:
The basic principle of ant group algorithm is that ant discharges a kind of chemistry for being called pheromones during search of food
Substance, if there is more ant selects same paths, then the pheromones on the path can be built up, these pheromones meetings
Follow-up ant is made a kind of positive feedback mechanism to be formed, with this path of larger probability selection so as to quickly find optimal solution.
Based on the basic principle of above-mentioned described ant group algorithm, in the embodiment of the present application, for above-mentioned first breakpoint,
M ant is placed on the breakpoint, wherein m is the quantity of other breakpoints in addition to the first breakpoint in breakpoint set, wherein, every
Ant selects path according to following formula (two) and formula (three):
In above-mentioned formula (two) and formula (three), τjFor the pheromone concentration at pixel j, ηijFor pixel i and pixel j it
Between heuristic guidance function, α and β are respectively to find in path process, the pheromones accumulated and heuristic guiding letter
Several impact factors to Path selection, N8For the feasible path of ant, i.e. pixel Xi8 neighborhoods, q is uniformly divided in [0,1] section
The random function of cloth, q0It is a parameter (0≤q0≤ 1), the size of q0 is determined using between priori and exploration path
Relative importance.
With the movement of ant, the pheromone concentration of each pixel number will change, specifically, in one cycle,
The pheromone concentration of pixel j is adjusted according to equation below (four):
τj(new)=τj(old)(1-ρ)+ΔτjFormula (four)
In above-mentioned formula four, ρ be the attenuation coefficient of pheromone concentration at any time, Δ τjRepresent pixel j in this cycle
Pheromone concentration incrementss.
For a wherein ant, the next pixel walked according to above-mentioned formula (two) to formula (four) calculating ant
Point, and retain the walking path of ant stops walking rule (refer to described below, be not described further first herein) when meeting ant
When, which stops walking, obtains a paths, so as to based on this process, obtain another in the first breakpoint to breakpoint set
The path of one breakpoint.
Later, it in all effective paths (refer to described below, be not described further first herein), selects comprising pixel
Point number is minimum namely shortest path, as the optimal path that current iteration generates, and is compared with former optimal path,
If the optimal path that current iteration generates is more excellent, optimal path is updated, otherwise, the amount of fresh information element, by the process,
Shortest path can then be obtained.
The above-mentioned ant being previously mentioned stops walking rule and includes:
(1) setting longest path limits.If the path length that ant during path finding, is passed by is more than setting value
Lifespan, then ant stops walking, and identifies CI_FAIL for this path setting searched out, that is, finds failure, the path
In vain.
(2) when a breakpoint being set as the first breakpoint, by the edge that the edge labelling where it is breakpoint itself, work as ant
When walking to the pixel at these edges, ant also stops walking, and the path setting mark CI_FAIL searched out for this,
Failure is found, the path is invalid.
(3) when ant goes to former marginal point (other edges for removing breakpoint own edges), then ant stops walking, and is
This path searched out setting mark CI_INSIDE, the i.e. path are connected to inside edge, and the path is effective.
(4) when ant goes to another breakpoint, then ant stops walking, and the path setting mark searched out for this
CI_END, is attached to another breakpoint, that is, finds successfully, and the path is effective.
Correspondingly, above-mentioned described " effective path " includes being identified with the path of CI_INSIDE and CI_END.
Foregoing description only briefly describes the application of ant group algorithm in the embodiment of the present application, as not to the utmost it is detailed it
Place, those skilled in the art may refer to description of the prior art.
As seen from the above-described embodiment, by determining ginseng according in preset condition written handwriting shown on touch control face plates
Person's handwriting breakpoint is examined, further by determining whether occur to represent at the touch location corresponding to the reference writing breakpoint
Touch-control body leaves the touch control operation of the touch control face plates, to determine whether reference writing breakpoint is true person's handwriting breakpoint, wherein, if
The touch control operation does not occur at touch location corresponding to reference writing breakpoint, then the reference writing breakpoint is determined as true pen
Mark breakpoint finally, is filled true person's handwriting breakpoint using preset algorithm.By above-mentioned processing, primarily determining with reference to pen
After mark breakpoint, further determine that true person's handwriting breakpoint further according to the touch control operation of user, avoid and be determined as person's handwriting end point
Person's handwriting breakpoint carries out breakpoint filling to written handwriting according to true person's handwriting breakpoint, then can accurately and efficiently eliminate written handwriting
In breakpoint, promoted user experience.
Corresponding with the embodiment of the aforementioned handwriting regulation method based on touch control face plates, present invention also provides based on touch-control
The embodiment of the person's handwriting adjusting apparatus of platform.
The embodiment of person's handwriting adjusting apparatus of the application based on touch control face plates can be applied on touch control face plates.Device is implemented
Example can be realized by software, can also be realized by way of hardware or software and hardware combining.For implemented in software, as
Device on one logical meaning is by calculating corresponding in nonvolatile memory by the processors of touch control face plates where it
Machine program instruction reads what operation in memory was formed.For hardware view, as shown in figure 5, being put down for the application based on touch-control
A kind of hardware structure diagram of touch control face plates where the person's handwriting adjusting apparatus of platform, in addition to processor 51 shown in fig. 5, memory 52, net
Except network interface 53 and nonvolatile memory 54, the touch control face plates in embodiment where device are put down generally according to the touch-control
The actual functional capability of platform can also include other hardware, this is repeated no more.
Fig. 6 is please referred to, is one embodiment block diagram of person's handwriting adjusting apparatus of the application based on touch control face plates, which can
To include:First determining module 61, operation determining module 62, the second determining module 63 and filling module 64.
Wherein, the first determining module 61 can be used for according to preset condition written handwriting shown on touch control face plates
In determine reference writing breakpoint;
Determining module 62 is operated, can be used to determine and whether occur at the touch location corresponding to the reference writing breakpoint
For representing that touch-control body leaves the touch control operation of the touch control face plates;
Second determining module 63, if can be used at the touch location corresponding to the reference writing breakpoint not occurring described
The reference writing breakpoint is then determined as true person's handwriting breakpoint by touch control operation;
Module 64 is filled, can be used for being filled the true person's handwriting breakpoint using preset algorithm.
In one embodiment, described device can also include (being not shown in Fig. 6):
Image processing module for carrying out edge detection to the current display image on touch control face plates, obtains described current
Show the edge binary image of image, in the edge binary image, the pixel value of the pixel of written handwriting is the
One preset value, the pixel value of rest of pixels point is the second preset value.
In one embodiment, first determining module 61 can include (being not shown in Fig. 6):
Computational submodule, for calculating the connection number of pixel in written handwriting shown on touch control face plates;
First determination sub-module if meeting preset condition for the connection number, the pixel is determined as referring to
Person's handwriting breakpoint.
In one embodiment, the operation determining module 62 can include (being not shown in Fig. 6):
Determination sub-module is identified, is used for for determining whether the touch location corresponding to the reference writing breakpoint is corresponding with
Represent that touch-control body leaves the mark of the touch control operation of the touch control face plates.
In one embodiment, the filling module 64 can include (being not shown in Fig. 6):
Gather determination sub-module, for the set that will be made of the true person's handwriting breakpoint as breakpoint set;
Submodule is selected, for selecting one of breakpoint as the first breakpoint in the breakpoint set;
Path determination sub-module, for being determined in first breakpoint and the breakpoint set using preset ant group algorithm
Path between another breakpoint;
Submodule is handled, for being filled according to preset writing parameter to the path, and in the breakpoint set
It is middle to delete first breakpoint and another breakpoint;
It returns to perform and described selects to select one of breakpoint in the breakpoint set as the performed by submodule
The step of one breakpoint, until the break point set is combined into empty set.
The function of each unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application
God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.
Claims (10)
1. a kind of handwriting regulation method based on touch control face plates, which is characterized in that the method includes:
Reference writing breakpoint is determined according in preset condition written handwriting shown on touch control face plates;
Determine whether occur to represent that touch-control body leaves the touch-control at the touch location corresponding to the reference writing breakpoint
The touch control operation of platform;
If the touch control operation does not occur at the touch location corresponding to the reference writing breakpoint, the reference writing is broken
Point is determined as true person's handwriting breakpoint;
The true person's handwriting breakpoint is filled using preset algorithm.
2. according to the method described in claim 1, it is characterized in that, it is described according to preset condition on touch control face plates shown by
Written handwriting in determine reference writing breakpoint before, the method further includes:
Edge detection is carried out to the current display image on touch control face plates, obtains the edge binary picture of the current display image
Picture, in the edge binary image, the pixel value of the pixel of written handwriting is the first preset value, the picture of rest of pixels point
Element value is the second preset value.
It is 3. according to the method described in claim 1, it is characterized in that, described shown on touch control face plates according to preset condition
Reference writing breakpoint is determined in written handwriting, including:
Calculate the connection number of pixel in written handwriting shown on touch control face plates;
If the connection number meets preset condition, the pixel is determined as reference writing breakpoint.
4. the according to the method described in claim 1, it is characterized in that, touch determined corresponding to the reference writing breakpoint
Whether occur at position for representing that touch-control body leaves the touch control operation of the touch control face plates, including:
Determine whether the touch location corresponding to the reference writing breakpoint is corresponding with to represent that touch-control body leaves the touch-control
The mark of the touch control operation of platform.
5. according to the method described in claim 1, it is characterized in that, it is described using preset algorithm to the true person's handwriting breakpoint into
Row filling, including:
Using the set being made of the true person's handwriting breakpoint as breakpoint set;
One of breakpoint is selected in the breakpoint set as the first breakpoint;
Path in first breakpoint and the breakpoint set between another breakpoint is determined using preset ant group algorithm;
The path is filled according to preset writing parameter, and delete in the breakpoint set first breakpoint with
Another breakpoint;
It returns to perform and selects the step of one of breakpoint is as the first breakpoint in the breakpoint set, until the break point set
It is combined into empty set.
6. a kind of person's handwriting adjusting apparatus based on touch control face plates, which is characterized in that described device includes:
First determining module, for determining that reference writing is broken according in preset condition written handwriting shown on touch control face plates
Point;
Determining module is operated, for determining whether occur to represent tactile at the touch location corresponding to the reference writing breakpoint
Control body leaves the touch control operation of the touch control face plates;
Second determining module, if for the touch control operation not to occur at the touch location corresponding to the reference writing breakpoint,
The reference writing breakpoint is then determined as true person's handwriting breakpoint;
Module is filled, for being filled using preset algorithm to the true person's handwriting breakpoint.
7. device according to claim 6, which is characterized in that described device further includes:
Image processing module for carrying out edge detection to the current display image on touch control face plates, obtains the current display
The edge binary image of image, in the edge binary image, the pixel value of the pixel of written handwriting is pre- for first
If value, the pixel value of rest of pixels point is the second preset value.
8. device according to claim 6, which is characterized in that first determining module includes:
Computational submodule, for calculating the connection number of pixel in written handwriting shown on touch control face plates;
The pixel if meeting preset condition for the connection number, is determined as reference writing by the first determination sub-module
Breakpoint.
9. device according to claim 6, which is characterized in that the operation determining module includes:
Determination sub-module is identified, for determining whether the touch location corresponding to the reference writing breakpoint is corresponding with to represent
Touch-control body leaves the mark of the touch control operation of the touch control face plates.
10. device according to claim 6, which is characterized in that the filling module includes:
Gather determination sub-module, for the set that will be made of the true person's handwriting breakpoint as breakpoint set;
Submodule is selected, for selecting one of breakpoint as the first breakpoint in the breakpoint set;
Path determination sub-module, for using preset ant group algorithm determine first breakpoint with it is another in the breakpoint set
Path between breakpoint;
Submodule is handled, for being filled according to preset writing parameter to the path, and deleted in the breakpoint set
Except first breakpoint and another breakpoint;
Return execution is described to be selected to select one of breakpoint disconnected as first in the breakpoint set performed by submodule
The step of point, until the break point set is combined into empty set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711283759.5A CN108132727A (en) | 2017-12-07 | 2017-12-07 | Handwriting regulation method and device based on touch control face plates |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711283759.5A CN108132727A (en) | 2017-12-07 | 2017-12-07 | Handwriting regulation method and device based on touch control face plates |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108132727A true CN108132727A (en) | 2018-06-08 |
Family
ID=62390142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711283759.5A Pending CN108132727A (en) | 2017-12-07 | 2017-12-07 | Handwriting regulation method and device based on touch control face plates |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132727A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111158505A (en) * | 2018-11-08 | 2020-05-15 | 鸿合科技股份有限公司 | Thick-thin handwriting writing method and device and electronic equipment |
CN111488104A (en) * | 2020-04-16 | 2020-08-04 | 维沃移动通信有限公司 | Font editing method and electronic equipment |
CN111638851A (en) * | 2020-06-04 | 2020-09-08 | 科大讯飞股份有限公司 | Handwriting display processing method, related device and handwriting interoperation system |
CN111731956A (en) * | 2020-05-29 | 2020-10-02 | 欧捷电梯部件(上海)有限公司 | Equipment and method for pressing button of non-contact elevator |
WO2024087344A1 (en) * | 2022-10-27 | 2024-05-02 | 深圳市鸿合创新信息技术有限责任公司 | Multi-trajectory breakpoint tracking method, and system, large screen and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1262909A2 (en) * | 2001-06-01 | 2002-12-04 | Smart Technologies Inc. | Calculating camera offsets to facilitate object position determination using triangulation |
CN101377850A (en) * | 2008-09-27 | 2009-03-04 | 北京航空航天大学 | Method of multi-formwork image segmentation based on ant colony clustering |
CN102270299A (en) * | 2011-08-24 | 2011-12-07 | 复旦大学 | Edge connection algorithm realized in parallel based on breakpoints |
CN105573538A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Sliding broken line compensation method and electronic device |
-
2017
- 2017-12-07 CN CN201711283759.5A patent/CN108132727A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1262909A2 (en) * | 2001-06-01 | 2002-12-04 | Smart Technologies Inc. | Calculating camera offsets to facilitate object position determination using triangulation |
CN101377850A (en) * | 2008-09-27 | 2009-03-04 | 北京航空航天大学 | Method of multi-formwork image segmentation based on ant colony clustering |
CN102270299A (en) * | 2011-08-24 | 2011-12-07 | 复旦大学 | Edge connection algorithm realized in parallel based on breakpoints |
CN105573538A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Sliding broken line compensation method and electronic device |
Non-Patent Citations (1)
Title |
---|
路漫漫,滕奇志: "蚁群算法实现的图像边缘连接", 《计算机应用》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111158505A (en) * | 2018-11-08 | 2020-05-15 | 鸿合科技股份有限公司 | Thick-thin handwriting writing method and device and electronic equipment |
CN111488104A (en) * | 2020-04-16 | 2020-08-04 | 维沃移动通信有限公司 | Font editing method and electronic equipment |
CN111731956A (en) * | 2020-05-29 | 2020-10-02 | 欧捷电梯部件(上海)有限公司 | Equipment and method for pressing button of non-contact elevator |
CN111731956B (en) * | 2020-05-29 | 2023-02-28 | 欧捷电梯部件(上海)有限公司 | Equipment and method for pressing button of non-contact elevator |
CN111638851A (en) * | 2020-06-04 | 2020-09-08 | 科大讯飞股份有限公司 | Handwriting display processing method, related device and handwriting interoperation system |
WO2024087344A1 (en) * | 2022-10-27 | 2024-05-02 | 深圳市鸿合创新信息技术有限责任公司 | Multi-trajectory breakpoint tracking method, and system, large screen and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132727A (en) | Handwriting regulation method and device based on touch control face plates | |
US11354009B2 (en) | Method and apparatus for using gestures across multiple devices | |
EP3129871B1 (en) | Generating a screenshot | |
CN102262504B (en) | User mutual gesture with dummy keyboard | |
CN108829327B (en) | Writing method and device of interactive intelligent equipment | |
CN109284059A (en) | Handwriting drawing method and device, interactive intelligent panel and storage medium | |
CN105359083A (en) | Dynamic management of edge inputs by users on a touch device | |
CN106502667B (en) | Rendering method and device | |
CN110413187A (en) | Method and device for processing annotations of interactive intelligent equipment | |
CN109243376B (en) | Method and equipment for refreshing image on ink screen | |
US10747371B1 (en) | Detection of finger press from live video stream | |
CN106910232A (en) | Line drawing eraser removes method and device | |
CN108829314A (en) | Screenshot selecting interface selection method, device, equipment and storage medium | |
WO2022089272A1 (en) | Image processing method and apparatus | |
CN109215098A (en) | Handwriting erasing method and device | |
CN109062491A (en) | Handwriting processing method and device for interactive intelligent equipment | |
CN107239222A (en) | The control method and terminal device of a kind of touch-screen | |
CN108536361A (en) | Processing method, device, storage medium, processor and the terminal of touch control operation | |
CN111553172A (en) | Translation document display method, device, system and storage medium | |
WO2020249103A1 (en) | Control method and apparatus for intelligent interactive device | |
US11500453B2 (en) | Information processing apparatus | |
US20200005500A1 (en) | Electronic drawing with handwriting recognition | |
JP6718524B2 (en) | Delete items based on user interaction | |
CN106201314A (en) | A kind of display packing realizing handwriting input on touch screen and display device | |
CN107609433A (en) | Method for secret protection and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant after: Hisense Visual Technology Co., Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180608 |