CN109147004B - Handwriting display method, device, equipment and storage medium - Google Patents
Handwriting display method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109147004B CN109147004B CN201810946766.7A CN201810946766A CN109147004B CN 109147004 B CN109147004 B CN 109147004B CN 201810946766 A CN201810946766 A CN 201810946766A CN 109147004 B CN109147004 B CN 109147004B
- Authority
- CN
- China
- Prior art keywords
- handwriting
- points
- boundary
- point
- track
- 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
- 238000000034 method Methods 0.000 title claims abstract description 87
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 238000005520 cutting process Methods 0.000 claims description 106
- 238000004891 communication Methods 0.000 claims description 68
- 238000009826 distribution Methods 0.000 claims description 17
- 238000009499 grossing Methods 0.000 claims description 11
- 230000002123 temporal effect Effects 0.000 claims description 5
- 230000002441 reversible effect Effects 0.000 claims description 4
- 230000003993 interaction Effects 0.000 abstract description 31
- 230000000694 effects Effects 0.000 abstract description 21
- 238000010586 diagram Methods 0.000 description 21
- 230000006870 function Effects 0.000 description 10
- 238000001914 filtration Methods 0.000 description 8
- 230000002452 interceptive effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005429 filling process Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005674 electromagnetic induction Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000011946 reduction process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
-
- 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)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a handwriting display method, a device, equipment and a storage medium, and relates to the field of intelligent interaction plates, wherein the handwriting display method comprises the following steps: by receiving a first handwriting write operation; displaying a first handwriting, wherein the first handwriting is determined according to a first handwriting writing operation; and filling a set area according to the handwriting color of the first handwriting, wherein the set area is a connected area containing the first handwriting, so that the technical effects of improving the filling efficiency of a large area of color and improving the user experience are realized in a handwriting mode.
Description
Technical Field
The embodiment of the invention relates to the field of intelligent interaction panels, in particular to a handwriting display method, device, equipment and storage medium.
Background
With the development of man-machine interaction technology, more and more equipment applications which are convenient for life and/or work of people are generated, and the effect of man-machine interaction operation can be achieved. Among them, handwriting input is an important application in man-machine interaction.
The inventor finds that the prior art has the defect that when a user fills a certain area with colors in a handwriting input mode, the filling purpose can be achieved only in a mode of continuously handwriting and graffiti in the area. If the area of the filling area is large, it takes a lot of time for the user to continuously repeat the filling operation, and the filling effect is poor, and there are cases where the filling is not performed or the filling edge is not smooth, thereby affecting the user experience.
Disclosure of Invention
The invention provides a handwriting display method, device, equipment and storage medium, which are used for solving the problems of low filling efficiency, poor effect and poor user experience when filling regional colors in a handwriting input mode in the prior art.
In a first aspect, an embodiment of the present invention provides a handwriting display method, including:
receiving a first handwriting write operation;
displaying a first handwriting, wherein the first handwriting is determined according to the first handwriting writing operation;
and filling a setting area according to the handwriting color of the first handwriting, wherein the setting area is a connected area containing the first handwriting.
Optionally, before filling the setting area according to the handwriting color of the first handwriting, the method includes:
determining all boundary points of the first handwriting;
drawing at least one boundary line, wherein the boundary line is a closed curve obtained by connecting adjacent boundary points;
and determining the setting area according to the boundary line.
Optionally, the determining all boundary points of the first handwriting includes:
establishing a track point set of the first handwriting;
all boundary points are determined based on the coordinates of each track point in the track point set.
Optionally, the determining all boundary points based on the coordinates of each track point in the track point set includes:
determining a minimum range area containing the track point set, wherein the shape of the minimum range area is a set geometric figure;
generating a first cutting line along a first set direction, wherein the first set direction is a horizontal direction or a vertical direction, and the first cutting line is intersected with a first boundary point of the minimum range area only;
controlling the first cutting line to move towards a second boundary point of the minimum range area until the first cutting line only intersects with the second boundary point;
determining a plurality of intersecting point sets, wherein the intersecting point sets are sets of intersecting points of the track point set and the first cutting line at any moving moment, and the intersecting point sets meet a set condition;
and recording boundary points, wherein the boundary points are corresponding intersecting points of the coordinate minimum value and the coordinate maximum value in the first set direction in each intersecting point set.
Optionally, the determining all boundary points based on the coordinates of each track point in the track point set includes:
judging whether any track point in the track point set has adjacent track points with adjacent coordinates in a second set direction, wherein the second set direction is a horizontal direction or a vertical direction;
If not, marking the track point as a boundary point;
if so, when the number of the adjacent track points is 1, the track points are marked as boundary points.
Optionally, the determining all boundary points based on the coordinates of each track point in the track point set includes:
determining a distance between any one track point in a track point set and an adjacent track point, wherein the adjacent track point is in the track point set, and the adjacent track point comprises: a first track point closest to the track point in a third set direction and a second track point closest to the track point in a reverse direction of the third set direction, wherein the third set direction is an X-axis positive direction or a Y-axis positive direction, the distance comprises a first distance and a second distance, the first distance corresponds to the first track point, and the second distance corresponds to the second track point;
and if any one of the first distance and the second distance is larger than a set threshold value, determining the track point as a boundary point.
Optionally, the boundary points include outer boundary points;
the boundary line includes an outer boundary line, which is obtained by connecting adjacent outer boundary points.
Optionally, the boundary points further include an inner boundary point;
The boundary line further comprises at least one inner boundary line, which is obtained by connecting adjacent inner boundary points.
Optionally, the determining the setting area according to the boundary line includes:
determining a communication area surrounded by an outer boundary line and at least one inner boundary line, wherein the communication area is a multi-communication area;
generating at least one second cutting line, wherein each second cutting line is used for cutting at least one inner boundary line into at least two sub boundary lines, and two first intersecting points exist between each second cutting line and the outer boundary line;
determining at least two setting areas, wherein the setting areas are subareas obtained by cutting the multi-communication areas by the second cutting lines, and the subareas are single-communication areas.
Optionally, the receiving the first handwriting writing operation includes:
receiving an original handwriting writing operation, wherein the original handwriting writing operation is used for determining an original handwriting;
and determining the first handwriting writing operation, wherein the first handwriting writing operation is the original handwriting writing operation which accords with a set filling condition.
Optionally, the setting filling conditions includes: time-and space-centrality conditions;
The time-centrality condition includes: the original handwriting writing operation with adjacent operation sequences and operation time intervals smaller than the set time difference value;
the spatial concentration conditions include: the intersection point between the original handwriting determined by the original handwriting writing operation exceeds a set intersection point threshold value; and/or the number of the groups of groups,
and the distribution density of the original handwriting determined by the original handwriting writing operation is larger than a set density threshold.
Optionally, after the drawing of the at least one boundary line, the method further includes:
and smoothing the boundary line.
Optionally, before receiving the first handwriting writing operation, the method further includes:
receiving a second handwriting write operation;
displaying a second handwriting, wherein the second handwriting is determined according to the second handwriting writing operation;
after the drawing of the at least one boundary line, the method further comprises:
deleting repeated track points, wherein the repeated track points are intersecting points of the boundary points and the second handwriting;
obtaining each handwriting track point of a sub-handwriting, wherein the sub-handwriting is a section of handwriting of a second handwriting between any two adjacent repeated track points;
determining adjacent coordinate points of the handwriting track points in a fourth setting direction, wherein the fourth setting direction is an X-axis direction facing the first handwriting or a Y-axis direction facing the first handwriting;
Drawing a first sub-boundary line, wherein the first sub-boundary line is obtained by connecting the adjacent coordinate points;
acquiring a second sub-boundary line, wherein the second sub-boundary line is a section of handwriting between the two adjacent repeated track points of the boundary line;
and replacing the second sub-edge with the first sub-edge.
In a second aspect, an embodiment of the present invention further provides a handwriting display apparatus, including:
the first handwriting receiving module is used for receiving a first handwriting writing operation;
the first handwriting display module is used for displaying first handwriting, and the first handwriting is determined according to the first handwriting writing operation;
the filling module is used for filling a setting area according to the handwriting color of the first handwriting, wherein the setting area is a connected area containing the first handwriting.
In a third aspect, an embodiment of the present invention further provides a display apparatus, including: a memory, a display screen with touch functionality, and one or more processors;
the memory is used for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to:
The method comprises the steps that a display screen is instructed to receive a first handwriting writing operation;
the method comprises the steps that a display screen is instructed to display first handwriting, and the first handwriting is determined according to a first handwriting writing operation;
and the indication display screen fills a setting area according to the handwriting color of the first handwriting, wherein the setting area is a connected area containing the first handwriting.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer executable instructions which, when executed by a computer processor, are used to perform a handwriting display method as described in the first aspect.
According to the handwriting display method, device, equipment and storage medium, the first handwriting is displayed according to the first handwriting input operation, and the set area determined by the first handwriting is filled with the color according to the color of the first handwriting.
Drawings
FIG. 1 is a flowchart of a handwriting display method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a handwriting display effect according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a handwriting display method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a handwriting display effect according to a second embodiment of the present invention;
FIG. 5 is a flowchart of a handwriting display method according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of a first boundary point determining method according to a third embodiment of the present invention;
fig. 7 is a schematic diagram of a second boundary point determining method according to a third embodiment of the present invention;
fig. 8 is a schematic diagram of a third boundary point determining method according to the third embodiment of the present invention;
FIG. 9 is a flowchart of a handwriting display method according to a fourth embodiment of the present invention;
fig. 10 is a schematic diagram of a multi-connected-area cutting method according to a fourth embodiment of the present invention;
FIG. 11 is a schematic diagram of a handwriting display device according to a fifth embodiment of the present invention;
FIG. 12 is a schematic diagram of another handwriting display device according to a fifth embodiment of the invention;
FIG. 13 is a schematic diagram of a handwriting display device according to a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a handwriting display method according to a first embodiment of the present invention, where the handwriting display method may be implemented by a handwriting display device, and the handwriting display device may be implemented by software and/or hardware, and the handwriting display device may be configured by two or more physical entities or may be configured by one physical entity. In general, the handwriting display device may be a computer, a mobile phone, a tablet, a projector, or an intelligent interactive tablet, etc. In this embodiment, an exemplary description is made using a handwriting display device as an intelligent interactive tablet. The intelligent interaction panel is integrated equipment for controlling the content displayed on the display panel and realizing man-machine interaction operation through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a curtain, sound equipment, a television, a video conference terminal and the like.
Specifically, the intelligent interaction panel has a touch function. When the intelligent interaction panel detects touch operation, parameters of the electronic element at the corresponding position inside the display screen can be changed, the processor of the intelligent interaction panel determines the touch position according to the parameter change position of the electronic element, and responds to the touch operation by combining with the display area corresponding to the touch position in the display screen. The touch screen for receiving the touch operation may include: capacitive screens, electromagnetic screens, infrared screens, etc. Generally, the touch screen may receive a touch operation input by a user through a finger or an input device. Input devices include, but are not limited to: a stylus, an infrared pen, and/or a capacitive pen, etc.
Further, the intelligent interaction panel has a function of an electronic whiteboard, and the implementation manner of the function of the electronic whiteboard is not limited. For example, an electronic whiteboard application software is installed in the intelligent interaction panel, or an electronic whiteboard plug-in is integrated in a certain installed application software, or an electronic whiteboard plug-in is configured in the intelligent interaction whiteboard system, and the electronic whiteboard plug-in can be called by the installed application software, wherein the application software has an electronic whiteboard requirement. In this embodiment, an exemplary description is made with an intelligent interactive tablet in a scenario of responding to an electronic whiteboard function.
As shown in fig. 1, the method of this embodiment specifically includes the following steps:
s110, receiving a first handwriting writing operation.
The first handwriting is the handwriting which needs to be filled with the same color in a certain area by a user, and the first handwriting comprises a set of all track points on the first handwriting. The first handwriting has time centralization and space centralization, wherein the time centralization refers to writing time centralization of track points in the first handwriting, the space centralization refers to dense distribution of the track points in the first handwriting, and similarly, a single straight line or curve cannot be the first handwriting because the space centralization is not satisfied.
Further, the first handwriting write operation is a series of operations for writing the first handwriting to the intelligent interactive pad. And when the intelligent interaction panel receives the touch operation, continuously identifying the touch operation, and when the intelligent interaction panel meets the trigger of setting the filling condition, determining that the first handwriting writing operation is received. For example, the intelligent interactive tablet confirms that the touch operation acts on the writing area and confirms that the touch operation meets the set filling condition, and the touch operation is used as a first handwriting writing operation. For another example, the triggering condition is set as key triggering, specifically, the intelligent interaction panel sets a triggering key, after the triggering key is clicked, the entering writing mode is determined, and the subsequently received touch operation is determined as a first handwriting writing operation. The triggering key may be an entity key or a virtual key, and the embodiment of the triggering key is not limited.
It can be appreciated that the first handwriting operation may be a complete touch operation, or may be multiple complete touch operations. The complete touch operation is from the time when the user finger or the input device contacts the intelligent interaction panel to the time when the user finger or the input device leaves the intelligent interaction panel. Further, the embodiment of the ending condition of the first handwriting writing operation is not limited, for example, when a touch operation belonging to the first handwriting writing operation is ended, no touch operation is received within a set time, or a distance between a touch position where the touch operation is received and a touch position where the first handwriting writing operation is received is greater than a set distance, it is determined that the input of the first handwriting writing operation is stopped.
S120, displaying a first handwriting, wherein the first handwriting is determined according to a first handwriting writing operation.
Specifically, after the intelligent interaction panel receives the first handwriting writing operation, a corresponding first handwriting writing signal is generated according to the parameter change of the electronic element at the corresponding position. The first handwriting writing signal comprises coordinates (touch positions), writing time sequences, handwriting colors and the like of the track points, wherein the coordinates refer to position coordinates when the track points are intelligently interacted with the lithographic display. In general, the intelligent interactive panel implements imaging by changing pixel values of pixel points, and thus, the position coordinates can also be understood as pixel point coordinates of display track points. The handwriting information refers to a display color of the track point, and in the embodiment, the display color of the first handwriting is not limited. The writing time sequence refers to writing time of the track points, and in general, the intelligent interactive panel records the writing time of each track point and sequentially displays each track point according to each writing time. Further, the intelligent interaction panel displays the corresponding first handwriting according to the first handwriting writing signal.
Taking a capacitive display screen as an example, when the intelligent interaction panel receives a first handwriting writing operation, the capacitance at a corresponding position is sequentially changed according to the first handwriting writing operation, namely a first handwriting writing signal containing the capacitance change condition is generated, and then the track point of the first handwriting is determined according to the first handwriting writing signal, and the corresponding first handwriting is displayed. Taking an electromagnetic screen and input equipment thereof as an electromagnetic touch pen as an example, when the electromagnetic touch pen sends out a first handwriting writing operation on an intelligent interaction panel, the intelligent interaction panel can detect and capture electromagnetic wave change conditions emitted by the electromagnetic touch pen through an electromagnetic induction principle, namely, a first handwriting writing signal containing the electromagnetic wave change conditions is generated, so that track point positioning is formed according to the first handwriting writing signal, and corresponding first handwriting is displayed.
S130, filling a set area according to the handwriting color of the first handwriting, wherein the set area is a connected area containing the first handwriting.
The set area is a specific area which needs to be filled with the same color. The range of the setting area is determined by the coverage area of the first handwriting, and it is also understood that the setting area may be determined by coordinates of each track point in the first handwriting. For example, peripheral points (i.e., boundary points) of the first handwriting are determined according to the coordinates, and then a set region is determined according to the boundary points. Further, the set area is a connected area containing the first handwriting. Wherein any two points in the communication area can be connected together through one broken line which completely belongs to the area. Optionally, after determining the coverage area of the first handwriting, selecting a minimum connected area including the coverage area as the setting area.
Specifically, filling the setting area according to the handwriting color of the first handwriting means that all points contained in the setting area are displayed as the handwriting color. Wherein, displaying the point as the handwriting color means setting the pixel value of the pixel point corresponding to the point as the color value of the first handwriting.
Optionally, after filling the setting area according to the handwriting color of the first handwriting, deleting the first handwriting so as to reduce the occupation of the first handwriting track point set to the memory space and improve the response speed of handwriting input and display.
Fig. 2 is a schematic diagram of a handwriting display effect provided in a first embodiment of the present invention, in which when a first handwriting writing operation is received by an intelligent interaction panel, a corresponding first handwriting writing signal is generated, and a corresponding first handwriting is displayed according to the handwriting writing operation. The display effect of the first handwriting is shown in a in fig. 2, and as can be seen from fig. 2, the first handwriting meets the spatial concentration, and meanwhile, in the writing process of the first handwriting, it can be determined that the first handwriting meets the temporal concentration. Further, the minimum connected region covered by the first handwriting is determined as a set region, wherein the set region is shown as b in fig. 2. After the setting area is determined, the setting area is filled according to the handwriting color of the first handwriting. In the embodiment, c in fig. 2 is a schematic diagram of the effect after filling the set area.
According to the technical scheme provided by the embodiment, the first handwriting is determined and displayed through receiving the first handwriting writing operation, the connected region containing the first handwriting is further determined as the set region according to the first handwriting, and the set region is filled according to the handwriting color of the first handwriting, so that the problems of low filling efficiency, poor effect and poor user experience when the region is filled in a handwriting input mode are solved, the set region is automatically filled when handwriting input is realized, the filling efficiency is improved, the filling effect is guaranteed, and meanwhile, the user experience is improved.
On the basis of the above embodiment, in this embodiment, the trigger is set as the trigger of the set filling condition, and S110 may be further refined to S111-S112:
s111, receiving an original handwriting writing operation, wherein the original handwriting writing operation is used for determining an original handwriting.
Wherein the original handwriting writing operation is a series of operations for writing the original handwriting to the intelligent interactive pad. After the intelligent interaction panel receives the original handwriting writing operation, the original handwriting is displayed according to the original handwriting writing operation. Specifically, the manner of displaying the original handwriting according to the original handwriting writing operation is the same as the manner of displaying the first handwriting according to the first handwriting writing operation, and will not be described here.
It should be noted that, the first handwriting is displayed separately for illustration only for clarity, and since in this embodiment, the first handwriting is the original handwriting writing meeting the filling condition, the first handwriting belongs to the original handwriting, and the first handwriting is displayed when the original handwriting is displayed.
Further, the original handwriting writing operation may be one complete touch operation, or may be multiple complete touch operations. The complete touch operation is from the time when the user finger or the input device contacts the intelligent interaction panel to the time when the user finger or the input device leaves the intelligent interaction panel. In this embodiment, an original handwriting corresponding to a complete touch operation is defined as one original handwriting, and original handwriting corresponding to multiple complete touch operations is defined as multiple original handwriting.
S112, determining a first handwriting writing operation, wherein the first handwriting writing operation is an original handwriting writing operation conforming to a set filling condition.
Wherein setting the filling conditions includes: time-centered conditions and space-centered conditions. The time centralization refers to the time centralization of writing track points in the first handwriting corresponding to the first handwriting writing operation, the space centralization refers to the dense distribution of track points in the first handwriting corresponding to the first handwriting writing operation, and similarly, if the original handwriting is a single straight line or curve and cannot be the first handwriting because the space centralization is not satisfied, the corresponding original handwriting writing operation is not the first handwriting writing operation.
Further, the time-centrality condition includes: the operation sequences are adjacent, and the operation time interval is smaller than the original handwriting writing operation of the set time difference value.
Wherein, the operation sequence adjacency refers to the sequence adjacency of the operation time of the original handwriting writing operation. By limiting the operation time interval to be smaller than the set time difference value, the time centralization of the first handwriting is ensured. For example, the operation time of the first original handwriting writing operation is 05:00:10, and the operation time of the second original handwriting writing operation is 5:00:1, and the operation time interval between the first original handwriting writing operation and the second original handwriting writing operation is 1 second.
Further, the spatial concentration conditions include: the intersection point between the original handwriting determined by the original handwriting writing operation exceeds a set intersection point threshold value; and/or the distribution density of the original handwriting determined by the original handwriting writing operation is greater than a set density threshold.
The intersection point of the original handwriting refers to the overlapped part of different original handwriting, and if the intersection point between the original handwriting determined by the writing operation of the original handwriting exceeds a set intersection point threshold value, the original handwriting is indicated to be in frequency contact or superposition.
In addition, the distribution density of the original handwriting refers to the ratio of the number of track points in the original handwriting to the distribution area of the track points, and the track points in the original handwriting corresponding to the writing operation of the original handwriting are determined to have spatial concentration by limiting the distribution density of the track points in the original handwriting to be larger than a set density threshold.
The first handwriting is determined by taking an original trajectory write operation satisfying the temporal and spatial concentrative conditions as a first handwriting write operation. And directly displaying the original handwriting corresponding to the original track writing operation which does not meet the time centralization condition and the space centralization condition, and if the original handwriting is not used as the first handwriting, the original handwriting which is not used as the first handwriting is not subjected to the subsequent S130 operation.
Example two
FIG. 3 is a flowchart of a handwriting display method according to a second embodiment of the present invention. This embodiment is embodied based on the first embodiment described above. Referring to fig. 3, the handwriting display method provided in this embodiment specifically includes:
s201, receiving a second handwriting writing operation.
Generally, in practical applications, if a user wants to fill a set region with handwriting, the user typically defines a region boundary and fills the region within the region boundary with handwriting. Accordingly, the second handwriting may be understood as a user-written handwriting for delimiting a desired filling area. The second handwriting writing operation is an operation of writing the second handwriting, which is the same as the receiving manner of the first handwriting writing operation, and will not be described herein. It should be noted that, in the actual process, when the intelligent interaction panel receives the second handwriting writing operation, it cannot be judged that the second handwriting writing operation is the handwriting for defining the desired filling area, and the intelligent interaction panel needs to rely on the first handwriting written subsequently to determine. In general, the second handwriting may be a completely closed handwriting or an incompletely closed handwriting, and the first handwriting is located inside the second handwriting. Optionally, the second handwriting and the first handwriting are two handwriting adjacent to each other in the writing sequence.
S202, displaying the second handwriting.
Wherein the second writing is determined from the second writing write operation.
The manner of displaying the second handwriting according to the second handwriting writing operation is the same as the manner of displaying the first handwriting according to the first handwriting writing operation, and will not be described herein.
S203, receiving a first handwriting writing operation.
S204, displaying the first handwriting.
Wherein the first writing is determined from the first writing write operation.
For example, fig. 4 is a schematic diagram of a handwriting display effect according to a second embodiment of the present invention, and a in fig. 4 is a display effect of a second handwriting, as shown in a in fig. 4, a user determines a desired color filling area 22 through the second handwriting 21, and fills the color filling area 22 by manual filling. At this time, the filled handwriting is the first handwriting. B in fig. 4 is a schematic diagram of the effect of manually filling the color filling region 22 shown as a in fig. 4.
S205, all boundary points of the first handwriting are determined.
The boundary points are track points on the first handwriting and are peripheral points of an area covered by the first handwriting. The boundary points are used to determine the boundary lines. Specifically, the boundary points may be determined according to the distribution condition of the track points in the first handwriting, and the distribution condition may be determined by the coordinates of the track points. Specific determination modes this embodiment is not limited. For example, if a certain track point in the first handwriting has no other track point in at least one of the X-axis positive direction, the X-axis negative direction, the Y-axis positive direction and the Y-axis negative direction, the track point is determined as a boundary point.
S206, drawing at least one boundary line, wherein the boundary line is a closed curve obtained by connecting adjacent boundary points.
And calculating the distance between the boundary points according to the coordinates corresponding to the boundary points, taking any boundary point and the boundary point closest to the boundary point as adjacent boundary points, and further obtaining the position adjacent sequence relation of the boundary points. Further, each boundary point is sequentially connected according to the adjacent sequence relation of the positions, and a closed curve, namely a boundary line, is generated. In the embodiment, the area obtained after the boundary line is closed may be determined as the set area.
S207, performing smoothing treatment on the boundary line.
In practical applications, the boundary line obtained according to the first handwriting may not be a smooth boundary line. For example, for the first handwriting shown in b in fig. 4, three boundary lines 23 are determined according to the technical scheme of S205-S206, as shown in c in fig. 4, at this time, the edges of the boundary lines 23 are not smooth. Therefore, in order to make the boundary line 23 closer to the actual filling area of the user, it is set in the embodiment that the boundary line 23 is smoothed after the boundary line 23 is determined.
Wherein the smoothing process is used for reducing the saw teeth of the boundary line and reducing the subsequent calculation amount. In general, the smoothing process may use a smoothing algorithm of image processing, such as gaussian filtering, mean filtering, or median filtering. Taking Gaussian filtering as an example, gaussian filtering is linear smoothing filtering, is suitable for eliminating Gaussian noise and is widely applied to a noise reduction process of image processing. In popular terms, gaussian filtering is a process of weighted averaging over the entire image, where the value of each pixel is obtained by weighted averaging itself and other pixel values in the neighborhood. The specific operations of gaussian filtering are: each pixel in the image is scanned with a template (or convolution, mask), and the value of the center pixel point of the template is replaced with the weighted average gray value of the pixels in the neighborhood determined by the template.
In practical applications, the boundary line defined by the second handwriting and the first boundary point may not be completely fit. Therefore, in order to better meet the filling requirement of the user, in the embodiment, the boundary line is corrected according to the second handwriting, so as to obtain the boundary line of the set area which better meets the filling requirement of the user. It is specifically referred to S208 to S213.
S208, deleting the repeated track points.
Wherein the repeated track point is the intersection point of the boundary point and the second handwriting.
Specifically, at least one intersection point exists between the boundary point and the second handwriting, and the intersection point is recorded as a repeated track point. In the actual filling process, the repeated track point is not in the filling position desired by the user, for example, the user writes a black ellipse and fills in red inside the ellipse. At this time, the black track is the second handwriting, and the red track is the first handwriting. In the filling process, when the first handwriting overlaps with the second handwriting or the first handwriting exceeds an elliptical range, a repeated track point is generated according to the boundary line generated by the first handwriting and the second handwriting. According to the actual demands of users, only red track points should be displayed on the repeated track points. Therefore, the repeated track point needs to be deleted in the borderline to avoid the case where the second handwriting is changed to the color of the first handwriting.
S209, obtaining each handwriting track point of the sub-handwriting, wherein the sub-handwriting is a section of handwriting of the second handwriting between any two adjacent repeated track points.
Whether the repeated track points are adjacent or not can be determined through the coordinates of the repeated track points. Because the second handwriting and the borderline have overlapped parts, part of the second handwriting is in a set area surrounded by the borderline, and part of the second handwriting is outside the set area surrounded by the borderline, in order to better correct the borderline by using the second handwriting, the position relationship between the second handwriting and the borderline, or the position relationship between the second handwriting and the first handwriting, needs to be defined. The sub-handwriting is a section of handwriting between two adjacent repeated track points in the second handwriting, and is a minimum unit for determining the position relation between the first handwriting and the second handwriting.
It should be noted that, in this embodiment, the second handwriting may be a closed curve or an unclosed curve.
S210, determining adjacent coordinate points of the handwriting track points in the fourth setting direction.
Specifically, the fourth setting direction is the X-axis direction facing the first handwriting or the Y-axis direction facing the first handwriting. And the fourth setting direction is determined according to the position relation between the track points on the sub-handwriting and the first handwriting. For example, if the first handwriting is mostly at the right lower part of the sub-handwriting, the fourth setting direction is that the X-axis direction is horizontally right and the Y-axis direction is vertically downward; if the first handwriting is mostly positioned at the left lower part of the sub handwriting, the fourth setting direction is that the X-axis direction is horizontally left facing and the Y-axis direction is vertically downward facing; if the first handwriting is mostly left of the sub handwriting, the fourth set direction is that the X-axis direction is horizontally right; if the first handwriting is mostly below the sub-handwriting, the fourth setting direction is that the Y-axis direction is horizontally upwards; and so on in other cases.
Further, adjacent coordinate points of the handwriting track points in the fourth setting direction are determined, wherein the adjacent coordinate points are in the fourth setting direction of the handwriting track points, and the distance between the adjacent coordinate points and the handwriting track points is 1.
S211, drawing a first sub-boundary line, wherein the first sub-boundary line is obtained by connecting adjacent coordinate points.
The first sub-sideline is obtained by sequentially connecting adjacent coordinate points. The connection sequence can be set according to practical situations, and each adjacent coordinate point is only required to be connected with the adjacent coordinate point with the smallest distance. Further, the first sub-border is not coincident with the sub-handwriting.
S212, acquiring a second sub-edge.
The second sub-border is a section of handwriting between two adjacent repeated track points.
Specifically, on the boundary line, a section of handwriting between any two adjacent repeated track points is taken and recorded as a second sub-boundary line.
S213, replacing the second sub-edge with the first sub-edge.
Wherein the second sub-border is replaced with the first sub-border, the first sub-border being part of the borderline, thereby forming a new borderline. The boundary line is corrected by the first sub-boundary line, so that the boundary line is ensured to be attached to the second track.
Describing the flow of correcting the boundary line in detail exemplarily, e in fig. 4 is a schematic diagram of cutting a section of the boundary line shown by c in fig. 4 and a section of the second handwriting at a corresponding position shown by a in fig. 4. As shown in e of fig. 4, the borderline 23 and the second handwriting 21 have repeated track points 25, and a section of the second handwriting 21 between any two adjacent repeated track points 25 is used as a sub-handwriting 26, and the sub-handwriting 26 is used for determining a first sub-borderline and then replacing the second sub-borderline 27. Specifically, at the locus point a of the sub-handwriting 26, most of the first handwriting is located at the lower left of the sub-handwriting 26, the X-axis direction is horizontally oriented to the left, and the Y-axis direction is vertically oriented to the bottom, and at this time, in fig. 4 e, the direction of the X-axis arrow or the Y-axis arrow is the fourth set direction, and is guaranteed to face the first handwriting. Taking the X-axis arrow as an example, at this time, adjacent coordinate points of the a point in the direction of the X-axis arrow are determined. Further, all adjacent track points are determined in the above manner, and then a second sub-edge (not shown) is obtained, and then the corresponding first sub-edge 27 is replaced by the second sub-edge, so as to implement modification of the boundary line.
S214, determining a setting area according to the boundary line.
S215, filling the setting area according to the handwriting color of the first handwriting.
The setting area is a connected area containing the first handwriting.
For example, the boundary line in d of fig. 4 is corrected to obtain a set area, and the set area is filled according to the handwriting color of the first handwriting, where the filling effect is shown as f of fig. 4. Wherein the setting area 24 filled with the color of the first handwriting coincides with the color filling area 22 desired by the user, and there is no overlapping track point with the second handwriting, and the color filling area 22 has no unfilled void.
According to the technical scheme provided by the embodiment, the second handwriting is determined and displayed through receiving the second handwriting writing operation, the first handwriting writing operation is received and the first handwriting is determined and displayed, at least one boundary line is drawn according to all boundary points of the determined first handwriting, after the boundary line is smoothed, the repeated track points are deleted, namely, the intersection points of the boundary points and the second handwriting are deleted, one section of handwriting between any two adjacent repeated track points of the second handwriting is obtained as a sub-handwriting, further, adjacent coordinate points of the handwriting track points of the sub-handwriting in the fourth setting direction are determined, the adjacent coordinate points are connected to obtain the first sub-boundary line, one section of handwriting between the two adjacent repeated track points is obtained as the second sub-boundary line, the second sub-boundary line is replaced to a new boundary line of the first sub-boundary line, the setting area is determined according to the boundary line, and the technical scheme that the setting area is filled according to the handwriting color of the first handwriting is solved, the problems of low filling efficiency, poor effect and poor user experience are solved when the area color filling is carried out in a handwriting input mode, the filling effect is improved when the automatic filling is carried out, the filling effect is improved, and user experience is improved.
Example III
FIG. 5 is a flowchart of a handwriting display method according to a third embodiment of the present invention. The present embodiment is embodied on the basis of the above embodiment. Referring to fig. 5, the handwriting display method provided in this embodiment specifically includes:
s310, receiving a first handwriting writing operation.
S320, displaying the first handwriting.
Wherein the first writing is determined from the first writing write operation.
S330, all boundary points of the first handwriting are determined.
The boundary points are track points on the first handwriting and are peripheral points of an area covered by the first handwriting. The boundary points are used to determine the boundary lines. S330 may be embodied as S331-S332:
s331, establishing a track point set of the first handwriting.
The first handwriting comprises a set of all track points on the first handwriting, namely a track point set.
S332, determining all boundary points based on the coordinates of each track point in the track point set.
In the embodiment, three methods for determining all boundary points based on the coordinates of each track point in the track point set are exemplified for detailed description, but the method is not limited to these three methods for determining all boundary points in practical application.
The first overall boundary point determining method provided in this embodiment is described in detail below, and S332 may be optionally embodied as S3321-S3325:
S3321, determining a minimum range region containing the track point set.
Wherein the shape of the minimum extent region is a set geometry. The set geometric figure is a closed figure and can be polygonal, circular and the like. The method is characterized in that a case that the minimum range area is rectangular is used for explanation, the maximum and minimum coordinate values of an X axis and the maximum and minimum coordinate values of a Y axis in a track point set are determined, two vertical lines where the maximum and minimum coordinate values of the X axis are located are taken as 2 symmetrical side lines of the rectangle, and two horizontal lines where the maximum and minimum coordinate values of the Y axis are located are taken as the other 2 symmetrical side lines of the rectangle, so that the minimum range area is obtained. The advantage of setting the minimum range area is that the subsequent calculation amount is reduced.
S3322, generating a first cutting line along the first setting direction.
The first setting direction is a horizontal direction or a vertical direction, and the first cutting line is intersected with only a first boundary point of the minimum range area.
Specifically, the first cutting line is used for determining the boundary point subsequently, the first cutting line only intersects with the first boundary point of the minimum range area, and the first boundary point is the boundary point of the minimum range area, in the embodiment, the number of the first boundary points is not limited. For example, all points of a certain straight boundary line of the minimum range region may be regarded as the first boundary point.
S3323, controlling the first cutting line to move toward the second boundary point of the minimum area until the first cutting line intersects with the second boundary point only.
Wherein the second boundary point and the first boundary point may be opposite boundaries located in the minimum range region. The second boundary point may also be at least one point. For example, the minimum range region is a rectangle, and the first boundary point and the second boundary point are points on two long sides of the rectangle, respectively. The minimum range region is circular, and the second boundary point and the first boundary point are located on the same diameter.
Specifically, for example, the first setting direction is a horizontal direction, and the first boundary point is at the upper side of the minimum range area, the first cutting line moving direction is a vertical downward direction, the second boundary point is at the lower side of the minimum range area, and for example, the first setting direction is a vertical direction, and the first boundary point is at the left side of the minimum range area, the first cutting line moving direction is a horizontal direction, and the second boundary point is at the right side of the minimum range area.
Further, the first boundary point and the second boundary point of the minimum range area are a start position and an end position in the moving direction of the first cutting line, respectively, so that the first cutting line moves from the first boundary point to the second boundary point, thereby traversing the entire minimum range area.
S3324, determining a plurality of intersecting point sets.
The intersection point set is a set of intersection points of the track point set and the first cutting line at any moving moment, and meets a set condition.
Specifically, the set condition is that the number of intersecting points between the track point set and the first cutting line is only 1, or the coordinates of the intersecting points are continuous, and the continuous coordinates mean that the distance between adjacent intersecting points along the first set direction is smaller than a preset distance threshold. It should be noted that at the same time, the number of intersecting point sets is at least one.
S3325, recording boundary points.
The boundary points are the intersecting points corresponding to the minimum coordinate value and the maximum coordinate value in the first set direction in each intersecting point set, and the first set direction is the horizontal direction or the vertical direction.
Specifically, adjacent intersecting points in each intersecting point set may be sequentially connected to form a line segment along the first set direction, where two end points of the line segment are intersecting points corresponding to the coordinate minimum value and the coordinate maximum value in the first set direction in the intersecting point set.
Specifically, fig. 6 is a schematic diagram of a first boundary point determining method according to a third embodiment of the present invention. As shown in fig. 6, the hatched portion in the figure is a set of track points, and a case where the minimum range area is rectangular is described, a minimum range area 31 including the set of track points is determined, and a first boundary point B is determined in the minimum range area to generate a first cut line 32. The second boundary point C is set and the first cutting line moving direction 33 is determined. Further, the first cutting line 32 is controlled to move from the first boundary point B of the minimum range area to the second boundary point C of the minimum range area along the first cutting line moving direction 33, the set of intersecting points of the track point set and the first cutting line 32 at any one movement time is an intersecting point set, as shown in fig. 6, at the time t, there are two intersecting point sets corresponding to the line segment DE and the line segment FG respectively, that is, at the same time, at least one intersecting point set is at least one, the point D and the point E are the maximum value and the minimum value of coordinates of one intersecting point set in the first setting direction, and the point F and the point G are the maximum value and the minimum value of coordinates of the other intersecting point set in the first setting direction, so the points D, E, F and G are boundary points.
The second overall boundary point determining method provided in this embodiment is described in detail below, and S332 may be optionally embodied as S3326-S3328:
s3326, judging whether any track point in the track point set has adjacent track points with adjacent coordinates in the second setting direction. The second set direction is a horizontal direction or a vertical direction. If so, S3327 is executed, and if not, S3328 is executed.
Specifically, the adjacent track points refer to other track points in the track point set, wherein the distance between the track points and the other track points is smaller than a preset distance threshold value, and the distance between the track points can be calculated through coordinates of the track points. Further, if the second set direction is the horizontal direction, it is determined whether or not the track points exist adjacent track points in the horizontal direction. If the second set direction is the vertical direction, judging whether the track points exist adjacent track points in the vertical direction.
S3327, marking the track point as a boundary point.
S3328, when the number of adjacent track points is 1, the track point is marked as a boundary point.
Specifically, in this embodiment, the second setting direction is taken as the vertical direction for detailed description, and fig. 7 is a schematic diagram of a second boundary point determining method according to the third embodiment of the present invention. As shown in fig. 7, the shaded part in the figure is a track point set, adjacent track points with adjacent coordinates do not exist in the vertical direction on points B and C, and the points B and C are determined to be boundary points; the points D, E, F and G have adjacent track points with adjacent coordinates in the vertical direction, the number of the adjacent track points is 1, and the points D, E, F and G are determined to be boundary points; the point H has adjacent track points with adjacent coordinates in the vertical direction, and the number of the adjacent track points is 2, and the point H is not a boundary point.
The third overall boundary point determining method provided in this embodiment is described in detail below, and S332 may be optionally embodied as S3329-S33212:
s3329, determining the distance between any one track point in the track point set and the adjacent track point.
Wherein the adjacent track points are in the track point set, the adjacent track points include: the first track point closest to the track point in the third setting direction and the second track point closest to the track point in the opposite direction of the third setting direction, wherein the third setting direction is the positive X-axis direction or the positive Y-axis direction, the distance comprises a first distance and a second distance, the first distance corresponds to the first track point, and the second distance corresponds to the second track point. This step will be exemplarily described with respect to the third setting direction as the positive X-axis direction. Specifically, one track point is arbitrarily selected, two adjacent track points which are closest to each other in the positive and negative directions of the X axis are determined, and a first distance and a second distance are obtained.
Optionally, if the first track point closest to the track point does not exist in the third setting direction or the second track point closest to the track point does not exist in the opposite direction of the third setting direction, the track point is marked as a boundary point.
S33210, judging whether any one of the first distance and the second distance is larger than a set threshold. If either the first distance or the second distance is greater than the set threshold, S33211 is executed, otherwise S33212 is executed.
The setting threshold may be set according to actual situations.
S33211, determining the trajectory point as a boundary point.
Specifically, when the second distance and the first distance are greater than the set threshold, it is indicated that the distance between the two track points is too large, and the probability that the inner area of the distance is not the filling area desired by the user is large. Accordingly, the corresponding trajectory point is set as the boundary point.
S33212, determining the track point as a non-boundary point.
All the track points in the track point set are facilitated in the mode, and boundary points can be obtained.
Specifically, fig. 8 is a schematic diagram of a third boundary point determining method according to the third embodiment of the present invention. As shown in fig. 8, taking the third setting direction as the positive X-axis direction as an example, the point B does not have a second track point in the opposite direction to the third setting direction, and the point B is determined as a boundary point; the point C does not have a first track point in the third setting direction, and the point C is determined to be a boundary point; the second distance of the point I is the distance of the line segment IJ, the second distance is larger than a set threshold value, and the point I is determined to be a boundary point; the first distance of the point J is the distance of the line segment JI, and the first distance is larger than the set threshold value, and the point J is determined as the boundary point.
S340, drawing at least one boundary line.
Wherein the boundary line is a closed curve obtained by connecting adjacent boundary points.
S350, determining a setting area according to the boundary line.
S360, filling the setting area according to the handwriting color of the first handwriting.
The setting area is a connected area containing the first handwriting.
According to the technical scheme, the first handwriting is confirmed and displayed through receiving the first handwriting writing operation, the track point set of the first handwriting is further established, all boundary points are confirmed based on the coordinates of all track points in the track point set, the closed curve obtained by connecting adjacent boundary points is used as a boundary line, the set area is further confirmed according to the boundary line, and the set area is filled according to the handwriting color of the first handwriting.
Example IV
FIG. 9 is a flowchart of a handwriting display method according to a fourth embodiment of the present invention. The present embodiment is embodied on the basis of the above embodiment. Referring to fig. 9, the handwriting display method provided in this embodiment specifically includes:
s410, receiving a first handwriting writing operation.
S420, displaying the first handwriting.
Wherein the first writing is determined from the first writing write operation.
S430, determining all boundary points of the first handwriting.
S440, drawing at least one boundary line.
Wherein the boundary line is a closed curve obtained by connecting adjacent boundary points.
Further, in the embodiment, the boundary points include outer boundary points; the boundary lines include outer boundary lines, which are obtained by connecting adjacent outer boundary points. The boundary points also include inner boundary points; the boundary line further comprises at least one inner boundary line, which is obtained by connecting adjacent inner boundary points. In practical application, the communication area is divided into a single communication area and a plurality of communication areas. The single-communication region differs from the multiple-communication region in that no voids are present in the single-communication region, that is, all closed curves in the single-communication region can continuously contract to a point. The set area is the smallest area that contains the area covered by the first writing. As shown in b in fig. 2, the boundary line includes only the outer boundary line, and the determined area is a single communication area; as shown in c of fig. 4, the boundary line includes an outer boundary line and an inner boundary line, and the determined area is a multi-connected area. The inner boundary line is within the area defined by the outer boundary line.
S450, determining a setting area according to the boundary line.
In this embodiment, since the case where the inner boundary line exists needs to be considered, S450 is embodied as S451-S453:
s451, a communication region surrounded by the outer boundary line and at least one inner boundary line is determined.
Wherein the communication area is a multi-communication area. In general, if only the outer boundary line is present, the area surrounded by the outer boundary line is defined as a single communication area, and the single communication area is defined as a set area; if an outer boundary line and an inner boundary line are included, that is, a region surrounded by the outer boundary line and at least one inner boundary line is a multi-connected region. The communication area is divided into a single communication area and a plurality of communication areas. The single-communication region differs from the multiple-communication region in that no voids are present in the single-communication region, that is, all closed curves in the single-communication region can continuously contract to a point. It is necessary to further cut the multiple communication region into at least two single communication regions, each of which is taken as a set region. The process of cutting the multiple communication regions into a plurality of single communication regions will be described in detail below.
S452, generating at least one second cutting line.
Each second cutting line is used for cutting at least one inner boundary line into at least two sub boundary lines, and two first intersecting points exist between each second cutting line and the outer boundary line.
Specifically, the second cutting line is used for cutting at least one inner boundary line into at least two sub boundary lines, thereby cutting one multi-communication area into two single-communication areas. Optionally, the second cutting line is a broken line, and the method for generating the second cutting line may be that one track point is selected from the outer boundary line as a first intersecting point, that is, an initial cutting point, two track points are selected from each arbitrary inner boundary line as cutting points, and another track point is selected from the outer boundary line as a first intersecting point, that is, an end cutting point, and the initial cutting point, the cutting point and the end cutting point are sequentially connected through the broken line, so that a broken line is generated as the second cutting line.
Optionally, the second cutting line is a straight line. When the distribution of the closed areas in the multiple communication areas is too complex, and one cutting line cannot meet the cutting requirement, multiple second cutting lines can be adopted, and at this time, each second cutting line is ensured to intersect at least one inner edge line, but does not need to meet the intersection of all inner edge lines.
S453, determining at least two setting areas.
The setting area is a subarea obtained by cutting the multi-communication area by the second cutting line, and the subarea is a single-communication area.
Specifically, after the multi-communication area is cut by the second cutting line, a plurality of single-communication areas are obtained. The intersection of the multiple communication regions and the second cutting line, and the closed region around the inner and outer lines connected to the intersection may be defined as the cut sub-region.
Wherein, there is not other closed area except subregion in the subregion, namely each subregion is single intercommunication district, regard each subregion as the settlement district, and the quantity of settlement district is at least two this moment.
S460, filling the setting area according to the handwriting color of the first handwriting.
The setting area is a connected area containing the first handwriting.
In an embodiment, fig. 10 is a schematic diagram of a multi-connected region cutting method according to a fourth embodiment of the present invention, where, as shown in a in fig. 10, a hatched portion is a region where a first handwriting exists, after the first handwriting passes through at least one boundary line, the first handwriting has an outer edge 41 and two inner edges 42, and a region 43 surrounded by the outer edge 41 and the inner edges 42 is a multi-connected region. A second cut line 44 is generated, and the two inner edges 42 are cut into 4 sub-edges, respectively, each corresponding to two sub-edges. As shown in b of fig. 10, the second cutting edge 44 divides the multiple communication region 41 into two single communication regions 45. C in fig. 10 shows the individual display effect of the two single communication areas 45.
According to the technical scheme, the first handwriting is confirmed and displayed through confirming and receiving the first handwriting writing operation, the boundary line is drawn according to all confirmed boundary points, the multi-connected area surrounded by the outer boundary line and at least one inner boundary line is confirmed, at least one second cutting line is generated to cut the multi-connected area, two subareas obtained through cutting are confirmed to be the set area, and the set area is filled according to the handwriting color of the first handwriting.
Example five
Fig. 11 is a schematic structural diagram of a handwriting display device according to a fifth embodiment of the present invention, where the embodiment is applicable to painting and writing, and the device may be implemented by hardware and/or software. The handwriting display device provided by the embodiment of the invention can execute the handwriting display method provided by any one of the embodiments of the invention. As shown in fig. 11, the specific structure of the handwriting display device provided in this embodiment is as follows: a first handwriting receiving module 510, a first handwriting display module 520 and a filling module 530.
The first handwriting receiving module 510 is configured to receive a first handwriting writing operation.
The first handwriting display module 520 is configured to display a first handwriting, and the first handwriting is determined according to a first handwriting writing operation.
And a filling module 530, configured to fill a setting area according to the handwriting color of the first handwriting, where the setting area is a connected area containing the first handwriting.
According to the technical scheme provided by the embodiment, the first handwriting is determined and displayed through receiving the first handwriting writing operation, the connected region containing the first handwriting is further determined as the set region according to the first handwriting, and the set region is filled according to the handwriting color of the first handwriting, so that the problems of low filling efficiency, poor effect and poor user experience when the region is filled in a handwriting input mode are solved, the set region is automatically filled when handwriting input is realized, the filling efficiency is improved, the filling effect is guaranteed, and meanwhile, the user experience is improved.
Further optimizing on the basis of the above embodiment, fig. 12 is a schematic structural diagram of another handwriting display device provided in the fifth embodiment of the present invention, where the handwriting display device provided in the present embodiment is further refined on the basis of the fifth embodiment, as shown in fig. 12, and includes: the apparatus comprises a first handwriting receiving module 610, a first handwriting display module 620, a filling module 630, a boundary point determining module 640, a boundary line drawing module 650, a setting region determining module 660, a smoothing processing module 670, a second handwriting receiving module 680 and a second handwriting display module 690.
The boundary point determining module 640 is configured to determine all boundary points of the first handwriting before filling the setting area according to the handwriting color of the first handwriting.
Further, the boundary point determining module 640 includes: the track point set establishing unit and the boundary point determining unit.
The track point set establishing unit is used for establishing a track point set of the first handwriting.
And the boundary point determining unit is used for determining all boundary points based on the coordinates of each track point in the track point set.
Wherein the boundary points comprise outer boundary points.
The boundary lines include outer boundary lines, which are obtained by connecting adjacent outer boundary points.
Optionally, the boundary points further comprise inner boundary points.
The boundary line further comprises at least one inner boundary line, which is obtained by connecting adjacent inner boundary points.
Further, the first boundary point determining unit provided in the embodiment includes: a minimum range area determination subunit, a first cut line generation subunit, a movement control subunit, an intersection set determination subunit, and a boundary point recording subunit.
And the minimum range area determining subunit is used for determining a minimum range area containing the track point set, wherein the shape of the minimum range area is a set geometric figure.
And the first cutting line generation subunit is used for generating a first cutting line along a first set direction, wherein the first set direction is a horizontal direction or a vertical direction, and the first cutting line only intersects with a first boundary point of the minimum range area.
And the movement control subunit is used for controlling the first cutting line to move towards the second boundary point direction of the minimum range area until the first cutting line only intersects with the second boundary point.
And the intersection point set determining subunit is used for determining a plurality of intersection point sets, wherein the intersection point sets are sets of intersection points of the track point set and the first cutting line at any moving moment, and the intersection point sets meet set conditions.
And the first boundary point determining subunit is used for recording boundary points, wherein the boundary points are the corresponding intersecting points of the coordinate minimum value and the coordinate maximum value in the first set direction in each intersecting point set.
Further, the second boundary point determining unit provided in the embodiment includes: second boundary point determination subunit
The second boundary point determining subunit is used for judging whether any track point in the track point set has adjacent track points with adjacent coordinates in a second set direction, and the second set direction is a horizontal direction or a vertical direction; if not, marking the track point as a boundary point; if so, when the number of adjacent track points is 1, the track points are marked as boundary points.
Further, a third boundary point determining unit provided in the embodiment includes: a distance determination subunit and a third boundary point determination subunit.
A distance determining subunit, configured to determine a distance between any one of the track points in the track point set and an adjacent track point, where the adjacent track point is in the track point set, and the adjacent track point includes: the first track point closest to the track point in the third setting direction and the second track point closest to the track point in the opposite direction of the third setting direction, wherein the third setting direction is the positive X-axis direction or the positive Y-axis direction, the distance comprises a first distance and a second distance, the first distance corresponds to the first track point, and the second distance corresponds to the second track point.
And the third boundary point determining subunit is configured to determine the track point as a boundary point if any one of the first distance and the second distance is greater than a set threshold.
The boundary line drawing module 650 is configured to draw at least one boundary line, where the boundary line is a closed curve obtained by connecting adjacent boundary points.
The setting area determining module 660 is configured to determine a setting area according to the boundary line.
Further, the present embodiment further refines the setting area determining module 660 to include the following structure: a multi-communication area determining unit, a second cutting line generating unit, and a setting area determining unit.
And a multi-communication-area determining unit configured to determine a communication area surrounded by the outer boundary line and at least one inner boundary line, the communication area being a multi-communication area.
And the second cutting line generating unit is used for generating at least one second cutting line, each second cutting line is used for cutting at least one inner boundary line into at least two sub boundary lines, and two first intersecting points exist between each second cutting line and the inner boundary line.
The setting region determining unit is used for determining at least two setting regions, wherein the setting regions are subregions obtained by cutting the multi-communication region by the second cutting line, and the subregions are single-communication regions.
And a smoothing module 670, configured to smooth the boundary line after drawing at least one boundary line.
The second handwriting receiving module 680 is configured to receive a second handwriting writing operation.
And the second handwriting display module 690 is used for displaying the second handwriting, and the second handwriting is determined according to the second handwriting writing operation.
In this embodiment, the first handwriting receiving module 610 includes: an original handwriting receiving unit and a first handwriting determining unit.
The writing operation receiving unit is used for receiving an original writing operation, and the original writing operation is used for determining the original writing;
The first handwriting writing operation determining unit is used for determining a first handwriting writing operation, wherein the first handwriting writing operation is an original handwriting writing operation conforming to a set filling condition.
Wherein setting the filling conditions includes: time-centered conditions and space-centered conditions.
Further, the time-centrality condition includes: the operation sequence is adjacent, and the operation time interval is smaller than the original handwriting writing operation of the set time difference value;
further, the spatial concentration conditions include: the intersection point between the original handwriting determined by the original handwriting writing operation exceeds a set intersection point threshold value; and/or the number of the groups of groups,
the distribution density of the original handwriting determined by the original handwriting writing operation is larger than a set density threshold.
In this embodiment, the boundary line drawing module 620 includes: the device comprises a repeated track point deleting unit, a handwriting track point acquiring unit of the sub-handwriting, an adjacent coordinate point determining unit, a first sub-sideline drawing unit, a second sub-sideline acquiring unit and an sideline replacing unit.
And the repeated track point deleting unit is used for deleting repeated track points which are the intersection points of the boundary points and the second handwriting.
And each handwriting track point acquisition unit of the sub-handwriting is used for acquiring each handwriting track point of the sub-handwriting, wherein the sub-handwriting is a section of handwriting between any two adjacent repeated track points of the second handwriting.
And the adjacent coordinate point determining unit is used for determining adjacent coordinate points of the handwriting track points in a fourth setting direction, wherein the fourth setting direction is the X-axis direction facing the first handwriting or the Y-axis direction facing the first handwriting.
And the first sub-sideline drawing unit is used for drawing a first sub-sideline, and the first sub-sideline is obtained by connecting adjacent coordinate points.
The second sub-borderline acquisition unit is used for acquiring a second sub-borderline, wherein the second sub-borderline is a section of handwriting between two adjacent repeated track points.
And the edge line replacing unit is used for replacing the second sub edge line with the first sub edge line.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
FIG. 13 is a schematic diagram of a handwriting display apparatus according to a sixth embodiment of the invention, as shown in FIG. 13, the handwriting display apparatus includes a memory 710, a display 720 with touch function, and one or more processors 730, an input device 740, an output device 750, and a communication device 760; the number of processors 730 in the annotation display device may be one or more, one processor 730 being illustrated in fig. 13. The amount of memory 710 in the handwriting display device may be one or more, one memory 710 being illustrated in fig. 13. The processor 730, memory 710, display 720, input means 740, output means 750, and communication means 760 of the handwriting display device may be connected by a bus or other means, for example in fig. 13. In an embodiment, the handwriting display device may be a computer, a mobile phone, a tablet, a projector, or an intelligent interaction tablet. In the embodiment, description is made taking handwriting display equipment as an intelligent interaction panel as an example. The memory 710 is used as a computer readable storage medium for storing software programs, computer executable programs and modules, and program instructions/modules corresponding to the handwriting display method according to any embodiment of the present invention (e.g., the first handwriting receiving module 510, the first handwriting display module 520 and the filling module 530 in the handwriting display device). The memory 710 may mainly include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the device, etc. In addition, memory 710 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 710 may further include memory remotely located relative to processor 730, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The display 720 is a touch-enabled display 720, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. Generally, the display 720 is used for displaying data according to the instruction of the processor 730, and is also used for receiving a touch operation applied to the display 720 and transmitting a corresponding signal to the processor 730 or other devices. Optionally, when the display 720 is an infrared screen, it further includes an infrared touch frame disposed around the display 720, which may also be used to receive infrared signals and send the infrared signals to the processor 730 or other device.
Communication means 760 for establishing a communication connection with other devices, which may be wired communication means and/or wireless communication means.
The input means 740 may be used to receive input digital or character information and to generate key signal inputs related to user settings and function controls of the handwriting display device, as well as cameras for capturing images and pickup devices for capturing audio data. Output 750 may include audio equipment such as speakers. It should be noted that the specific composition of the input device 740 and the output device 750 may be set according to the actual situation.
The processor 730 performs various functional applications of the device and data processing, i.e., implements the handwriting display method described above, by running software programs, instructions and modules stored in the memory 710.
In particular, in an embodiment, processor 730, when executing one or more programs stored in memory 710,
the method comprises the following steps:
the indication display 720 receives a first handwriting write operation;
the indication display 720 displays a first writing, the first writing being determined from a first writing operation;
the indication display 720 fills the setting region according to the handwriting color of the first handwriting, and the setting region is a connected region containing the first handwriting.
On the basis of the above embodiment, the processor 730 also implements the following operations:
before the indication display 720 fills the setting area according to the handwriting color of the first handwriting, the method includes:
determining all boundary points of the first handwriting;
drawing at least one boundary line, wherein the boundary line is a closed curve obtained by connecting adjacent boundary points;
the set area is determined based on the boundary line.
On the basis of the above embodiment, the processor 730 also implements the following operations:
determining all boundary points of the first handwriting includes:
Establishing a track point set of the first handwriting;
all boundary points are determined based on the coordinates of each track point in the track point set.
On the basis of the above embodiment, the processor 730 also implements the following operations:
determining all boundary points based on coordinates of each of the set of trajectory points includes:
determining a minimum range area containing a track point set, wherein the shape of the minimum range area is a set geometric figure;
generating a first cutting line along a first set direction, wherein the first set direction is a horizontal direction or a vertical direction, and the first cutting line is intersected with a first boundary point of the minimum range area only;
controlling the first cutting line to move towards the second boundary point direction of the minimum range area until the first cutting line only intersects with the second boundary point;
determining a plurality of intersecting point sets, wherein the intersecting point sets are sets of intersecting points of the track point set and the first cutting line at any moving moment, and the intersecting point sets meet set conditions;
and recording boundary points, wherein the boundary points are the corresponding intersecting points of the coordinate minimum value and the coordinate maximum value in the first set direction in each intersecting point set.
On the basis of the above embodiment, the processor 730 also implements the following operations:
Determining all boundary points based on coordinates of each of the set of trajectory points includes:
judging whether any track point in the track point set has adjacent track points with adjacent coordinates in a second set direction, wherein the second set direction is a horizontal direction or a vertical direction;
if not, marking the track point as a boundary point;
if so, when the number of adjacent track points is 1, the track points are marked as boundary points.
On the basis of the above embodiment, the processor 730 also implements the following operations:
determining all boundary points based on coordinates of each of the set of trajectory points includes:
determining a distance between any one of the track points in the track point set and an adjacent track point, wherein the adjacent track point is in the track point set, and the adjacent track point comprises: a first track point closest to the track point in a third setting direction and a second track point closest to the track point in a reverse direction of the third setting direction, wherein the third setting direction is an X-axis positive direction or a Y-axis positive direction, the distance comprises a first distance and a second distance, the first distance corresponds to the first track point, and the second distance corresponds to the second track point;
and if any one of the first distance and the second distance is larger than a set threshold value, determining the track point as a boundary point.
On the basis of the above embodiment, the processor 730 also implements the following operations:
the boundary points include outer boundary points;
the boundary lines include outer boundary lines, which are obtained by connecting adjacent outer boundary points.
Optionally, the boundary points further comprise inner boundary points;
the boundary line further comprises at least one inner boundary line, which is obtained by connecting adjacent inner boundary points.
Optionally, the following operations are also implemented:
the determining of the setting area from the boundary line includes:
determining a communication area surrounded by an outer boundary line and at least one inner boundary line, wherein the communication area is a multi-communication area;
generating at least one second cutting line, wherein each second cutting line is used for cutting at least one inner boundary line into at least two sub boundary lines, and two first intersection points exist between each second cutting line and the inner boundary line;
determining at least two setting areas, wherein the setting areas are subareas obtained by cutting the multi-communication areas through second cutting lines, and the subareas are single-communication areas.
On the basis of the above embodiment, the processor 730 also implements the following operations:
receiving a first handwriting write operation, comprising:
receiving an original handwriting writing operation, wherein the original handwriting writing operation is used for determining an original handwriting;
And determining a first handwriting writing operation, wherein the first handwriting writing operation is an original handwriting writing operation conforming to the set filling condition.
On the basis of the above embodiment, setting the filling conditions includes: time-and space-centrality conditions;
the time-centrality conditions include: the operation sequence is adjacent, and the operation time interval is smaller than the original handwriting writing operation of the set time difference value;
the spatial concentration conditions include: the intersection point between the original handwriting determined by the original handwriting writing operation exceeds a set intersection point threshold value; and/or the number of the groups of groups,
the distribution density of the original handwriting determined by the original handwriting writing operation is larger than a set density threshold.
On the basis of the above embodiment, the processor 730 also implements the following operations:
after the indication display 720 draws at least one boundary line, the method further includes:
the indication display 720 performs smoothing processing on the boundary line.
Optionally, the following operations are also implemented:
before receiving the first handwriting write operation, further comprising:
instruct the display 720 to receive a second handwriting write operation;
the indication display 720 displays a second writing, the second writing being determined from a second writing write operation;
after the indication display 720 draws at least one boundary line, the method further includes:
Deleting repeated track points, wherein the repeated track points are intersection points of boundary points and the second handwriting;
obtaining each handwriting track point of the sub handwriting, wherein the sub handwriting is a section of handwriting of the second handwriting between any two adjacent repeated track points;
determining adjacent coordinate points of the handwriting track points in a fourth setting direction, wherein the fourth setting direction is an X-axis direction facing the first handwriting or a Y-axis direction facing the first handwriting;
drawing a first sub-boundary line, wherein the first sub-boundary line is obtained by connecting adjacent coordinate points;
acquiring a second sub-boundary line which is a section of handwriting between two adjacent repeated track points;
the second sub-edge is replaced with the first sub-edge.
The handwriting display device provided by the above embodiment can be used for executing the handwriting display method provided by any embodiment, and has corresponding functions and beneficial effects.
Example seven
A seventh embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a handwriting display method, the method comprising:
receiving a first handwriting write operation;
displaying a first handwriting, wherein the first handwriting is determined according to a first handwriting writing operation;
Filling a setting area according to the handwriting color of the first handwriting, wherein the setting area is a connected area containing the first handwriting.
Optionally, before filling the setting area according to the handwriting color of the first handwriting, the method includes:
determining all boundary points of the first handwriting;
drawing at least one boundary line, wherein the boundary line is a closed curve obtained by connecting adjacent boundary points;
the set area is determined based on the boundary line.
Optionally, determining all boundary points of the first handwriting includes:
establishing a track point set of the first handwriting;
all boundary points are determined based on the coordinates of each track point in the track point set.
Optionally, determining all boundary points based on coordinates of each track point in the track point set includes:
determining a minimum range area containing a track point set, wherein the shape of the minimum range area is a set geometric figure;
generating a first cutting line along a first set direction, wherein the first set direction is a horizontal direction or a vertical direction, and the first cutting line is intersected with a first boundary point of the minimum range area only;
controlling the first cutting line to move towards the second boundary point direction of the minimum range area until the first cutting line only intersects with the second boundary point;
Determining a plurality of intersecting point sets, wherein the intersecting point sets are sets of intersecting points of the track point set and the first cutting line at any moving moment, and the intersecting point sets meet set conditions;
and recording boundary points, wherein the boundary points are the intersecting points corresponding to the coordinate minimum value and the coordinate maximum value in the first set direction in each intersecting point set, and the first set direction is the horizontal direction or the vertical direction.
Optionally, determining all boundary points based on coordinates of each track point in the track point set includes:
judging whether any track point in the track point set has adjacent track points with adjacent coordinates in a second setting direction;
if not, marking the track point as a boundary point;
if so, when the number of adjacent track points is 1, the track points are marked as boundary points.
Optionally, determining all boundary points based on coordinates of each track point in the track point set includes:
determining a distance between any one of the track points in the track point set and an adjacent track point, wherein the adjacent track point is in the track point set, and the adjacent track point comprises: a first track point closest to the track point in a third setting direction and a second track point closest to the track point in a reverse direction of the third setting direction, wherein the third setting direction is an X-axis positive direction or a Y-axis positive direction, the distance comprises a first distance and a second distance, the first distance corresponds to the first track point, and the second distance corresponds to the second track point;
And if any one of the first distance and the second distance is larger than a set threshold value, determining the track point as a boundary point.
Optionally, the boundary points comprise outer boundary points;
the boundary lines include outer boundary lines, which are obtained by connecting adjacent outer boundary points.
Optionally, the boundary points further comprise inner boundary points;
the boundary line further comprises at least one inner boundary line, which is obtained by connecting adjacent inner boundary points.
Optionally, determining the setting area according to the boundary line includes:
determining a communication area surrounded by an outer boundary line and at least one inner boundary line, wherein the communication area is a multi-communication area;
generating at least one second cutting line, wherein each second cutting line is used for cutting at least one inner boundary line into at least two sub boundary lines, and two first intersection points exist between each second cutting line and the inner boundary line;
determining at least two setting areas, wherein the setting areas are subareas obtained by cutting the multi-communication areas through second cutting lines, and the subareas are single-communication areas.
Optionally, receiving the first handwriting write operation includes:
receiving an original handwriting writing operation, wherein the original handwriting writing operation is used for determining an original handwriting;
and determining a first handwriting writing operation, wherein the first handwriting writing operation is an original handwriting writing operation conforming to the set filling condition.
Optionally, setting the filling condition includes: time-and space-centrality conditions;
the time-centrality conditions include: the operation sequence is adjacent, and the operation time interval is smaller than the original handwriting writing operation of the set time difference value;
the spatial concentration conditions include: the intersection point between the original handwriting determined by the original handwriting writing operation exceeds a set intersection point threshold value; and/or the number of the groups of groups,
the distribution density of the original handwriting determined by the original handwriting writing operation is larger than a set density threshold.
Optionally, after drawing at least one boundary line, the method further includes:
smoothing the boundary line.
Optionally, before receiving the first handwriting writing operation, the method further includes:
receiving a second handwriting write operation;
displaying a second handwriting, wherein the second handwriting is determined according to a second handwriting writing operation;
after drawing at least one boundary line, further comprising:
deleting repeated track points, wherein the repeated track points are intersection points of boundary points and the second handwriting;
obtaining each handwriting track point of the sub handwriting, wherein the sub handwriting is a section of handwriting of the second handwriting between any two adjacent repeated track points;
determining adjacent coordinate points of the handwriting track points in a fourth setting direction, wherein the fourth setting direction is an X-axis direction facing the first handwriting or a Y-axis direction facing the first handwriting;
Drawing a first sub-boundary line, wherein the first sub-boundary line is obtained by connecting adjacent coordinate points;
acquiring a second sub-boundary line which is a section of handwriting between two adjacent repeated track points;
the second sub-edge is replaced with the first sub-edge.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform the related operations in the handwriting display method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a FLASH memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the handwriting display apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (16)
1. A handwriting display method, comprising:
receiving a first handwriting write operation; wherein the first handwriting has a temporal concentration and a spatial concentration; the time centralization refers to the writing time centralization of the track points in the first handwriting; the time-neutral conditions include: the operation sequence is adjacent, and the operation time interval is smaller than the original handwriting writing operation of the set time difference value; the space concentration refers to the dense distribution of track points in the first handwriting;
displaying a first handwriting, wherein the first handwriting is determined according to the first handwriting writing operation;
and filling a setting area according to the handwriting color of the first handwriting, wherein the setting area is a connected area containing the first handwriting.
2. A handwriting display method according to claim 1 and wherein said filling of the set area according to the handwriting color of said first handwriting comprises:
determining all boundary points of the first handwriting;
drawing at least one boundary line, wherein the boundary line is a closed curve obtained by connecting adjacent boundary points;
and determining the setting area according to the boundary line.
3. A handwriting display method according to claim 2 and wherein said determining all boundary points of said first handwriting comprises:
Establishing a track point set of the first handwriting;
all boundary points are determined based on the coordinates of each track point in the track point set.
4. A handwriting display method according to claim 3 and wherein said determining all boundary points based on coordinates of each of a set of trajectory points comprises:
determining a minimum range area containing the track point set, wherein the shape of the minimum range area is a set geometric figure;
generating a first cutting line along a first set direction, wherein the first set direction is a horizontal direction or a vertical direction, and the first cutting line is intersected with a first boundary point of the minimum range area only;
controlling the first cutting line to move in the direction of the second boundary point of the minimum range area until the first cutting line only intersects with the second boundary point;
determining a plurality of intersecting point sets, wherein the intersecting point sets are sets of intersecting points of the track point set and the first cutting line at any moving moment, and the intersecting point sets meet a set condition;
and recording boundary points, wherein the boundary points are corresponding intersecting points of the coordinate minimum value and the coordinate maximum value in the first set direction in each intersecting point set.
5. A handwriting display method according to claim 3 and wherein said determining all boundary points based on coordinates of each of a set of trajectory points comprises:
judging whether any track point in the track point set has adjacent track points with adjacent coordinates in a second set direction, wherein the second set direction is a horizontal direction or a vertical direction;
if not, marking the track point as a boundary point;
if so, when the number of the adjacent track points is 1, the track points are marked as boundary points.
6. A handwriting display method according to claim 3 and wherein said determining all boundary points based on coordinates of each of a set of trajectory points comprises:
determining a distance between any one track point in a track point set and an adjacent track point, wherein the adjacent track point is in the track point set, and the adjacent track point comprises: a first track point closest to the track point in a third set direction and a second track point closest to the track point in a reverse direction of the third set direction, wherein the third set direction is an X-axis positive direction or a Y-axis positive direction, the distance comprises a first distance and a second distance, the first distance corresponds to the first track point, and the second distance corresponds to the second track point;
And if any one of the first distance and the second distance is larger than a set threshold value, determining the track point as a boundary point.
7. A handwriting display method according to any of claims 2-6 and wherein said boundary points comprise outer boundary points;
the boundary line includes an outer boundary line, which is obtained by connecting adjacent outer boundary points.
8. A handwriting display method according to claim 7 and wherein said boundary points further comprise inner boundary points;
the boundary line further comprises at least one inner boundary line, which is obtained by connecting adjacent inner boundary points.
9. A handwriting display method according to claim 8 and wherein said determining said setting area from a borderline comprises:
determining a communication area surrounded by an outer boundary line and at least one inner boundary line, wherein the communication area is a multi-communication area;
generating at least one second cutting line, wherein each second cutting line is used for cutting at least one inner boundary line into at least two sub boundary lines, and two first intersecting points exist between each second cutting line and the outer boundary line;
determining at least two setting areas, wherein the setting areas are subareas obtained by cutting the multi-communication areas by the second cutting lines, and the subareas are single-communication areas.
10. A handwriting display method according to claim 1 and wherein said receiving a first handwriting write operation comprises:
receiving an original handwriting writing operation;
and determining the first handwriting writing operation, wherein the first handwriting writing operation is the original handwriting writing operation which accords with a set filling condition.
11. A handwriting display method according to claim 10 and wherein said setting filling conditions comprises at least one of:
the original handwriting writing operation with adjacent operation sequences and operation time intervals smaller than the set time difference value;
the intersection point between the original handwriting exceeds a set intersection point threshold value, and the original handwriting is determined according to the original handwriting writing operation;
the distribution density of the original handwriting is larger than a set density threshold.
12. A handwriting display method according to claim 2 and also comprising, after said drawing of at least one borderline:
and smoothing the boundary line.
13. A handwriting display method according to claim 2 and also comprising, prior to said receiving a first handwriting write operation:
receiving a second handwriting write operation;
displaying a second handwriting, wherein the second handwriting is determined according to the second handwriting writing operation;
After the drawing of the at least one boundary line, the method further comprises:
deleting repeated track points, wherein the repeated track points are intersecting points of the boundary points and the second handwriting;
obtaining each handwriting track point of a sub-handwriting, wherein the sub-handwriting is a section of handwriting of a second handwriting between any two adjacent repeated track points;
determining adjacent coordinate points of the handwriting track points in a fourth setting direction, wherein the fourth setting direction is an X-axis direction facing the first handwriting or a Y-axis direction facing the first handwriting;
drawing a first sub-boundary line, wherein the first sub-boundary line is obtained by connecting the adjacent coordinate points;
acquiring a second sub-boundary line, wherein the second sub-boundary line is a section of handwriting between the two adjacent repeated track points of the boundary line;
and replacing the second sub-edge with the first sub-edge.
14. A handwriting display apparatus, comprising:
the first handwriting receiving module is used for receiving a first handwriting writing operation; wherein the first handwriting has a temporal concentration and a spatial concentration; the time centralization refers to the writing time centralization of the track points in the first handwriting; the time-neutral conditions include: the operation sequence is adjacent, and the operation time interval is smaller than the original handwriting writing operation of the set time difference value; the space concentration refers to the dense distribution of track points in the first handwriting;
The first handwriting display module is used for displaying first handwriting, and the first handwriting is determined according to the first handwriting writing operation;
the filling module is used for filling a setting area according to the handwriting color of the first handwriting, wherein the setting area is a connected area containing the first handwriting.
15. A handwriting display apparatus, comprising: a memory, a display screen with touch functionality, and one or more processors;
the memory is used for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to:
the method comprises the steps that a display screen is instructed to receive a first handwriting writing operation; wherein the first handwriting has a temporal concentration and a spatial concentration; the time centralization refers to the writing time centralization of the track points in the first handwriting; the time-neutral conditions include: the operation sequence is adjacent, and the operation time interval is smaller than the original handwriting writing operation of the set time difference value; the space concentration refers to the dense distribution of track points in the first handwriting;
the method comprises the steps that a display screen is instructed to display first handwriting, and the first handwriting is determined according to a first handwriting writing operation;
And the indication display screen fills a setting area according to the handwriting color of the first handwriting, wherein the setting area is a connected area containing the first handwriting.
16. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing a handwriting display method according to any of claims 1 to 13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810946766.7A CN109147004B (en) | 2018-08-20 | 2018-08-20 | Handwriting display method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810946766.7A CN109147004B (en) | 2018-08-20 | 2018-08-20 | Handwriting display method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109147004A CN109147004A (en) | 2019-01-04 |
CN109147004B true CN109147004B (en) | 2023-06-09 |
Family
ID=64790296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810946766.7A Active CN109147004B (en) | 2018-08-20 | 2018-08-20 | Handwriting display method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109147004B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110045909B (en) * | 2019-04-15 | 2021-01-22 | 广州视源电子科技股份有限公司 | Ellipse processing method, device and equipment based on writing track and storage medium |
CN110308824A (en) * | 2019-07-04 | 2019-10-08 | 深圳市康冠商用科技有限公司 | A kind of processing method, system and the associated component of infrared touch data |
CN111626238B (en) * | 2020-05-29 | 2023-08-04 | 京东方科技集团股份有限公司 | Text recognition method, electronic device and storage medium |
CN114945107B (en) * | 2022-04-15 | 2024-02-02 | 北京奕斯伟计算技术股份有限公司 | Video processing method and related device |
CN115129214A (en) * | 2022-06-30 | 2022-09-30 | 海信视像科技股份有限公司 | Display device and color filling method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1131773A (en) * | 1994-12-29 | 1996-09-25 | 夏普公司 | Hand writing characters input and display device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102289823B (en) * | 2011-06-14 | 2014-02-26 | 汉王科技股份有限公司 | Method and device for obtaining area of graph on display device |
CN103218074B (en) * | 2013-03-06 | 2016-03-09 | 广东欧珀移动通信有限公司 | Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal |
CN104391651B (en) * | 2014-12-11 | 2017-12-08 | 北京轩文文化发展有限公司 | Calligraphy person's handwriting rendering method based on optical principle |
CN105225260B (en) * | 2015-09-25 | 2019-01-08 | 中国电子科技集团公司第三十二研究所 | Method for realizing original handwriting |
CN107526526B (en) * | 2017-09-19 | 2020-05-05 | 广州视源电子科技股份有限公司 | Method and device for determining pressure-sensitive handwriting area |
CN107797752B (en) * | 2017-11-07 | 2020-07-21 | 广州视睿电子科技有限公司 | Handwriting presenting method and device, interactive intelligent panel and storage medium |
-
2018
- 2018-08-20 CN CN201810946766.7A patent/CN109147004B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1131773A (en) * | 1994-12-29 | 1996-09-25 | 夏普公司 | Hand writing characters input and display device |
Also Published As
Publication number | Publication date |
---|---|
CN109147004A (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109147004B (en) | Handwriting display method, device, equipment and storage medium | |
US11301200B2 (en) | Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium | |
CN110069204B (en) | Graph processing method, device and equipment based on writing track and storage medium | |
WO2020073860A1 (en) | Video cropping method and device | |
CN109218656B (en) | Image display method, device and system | |
CN105554429A (en) | Video conversation display method and video conversation equipment | |
CN108304132B (en) | Graph display method, device, equipment and storage medium | |
CN104301596B (en) | A kind of method for processing video frequency and device | |
CN110045909B (en) | Ellipse processing method, device and equipment based on writing track and storage medium | |
CN109032446B (en) | Method, device, equipment and storage medium for generating node relation of thinking guide graph | |
CN109146991B (en) | Picture format conversion method, device, equipment and storage medium | |
CN107678551B (en) | Gesture recognition method and device and electronic equipment | |
CN109324722B (en) | Method, device and equipment for adding nodes of thought guide graph and storage medium | |
EP3912338B1 (en) | Sharing physical writing surfaces in videoconferencing | |
CN110689479A (en) | Face makeup method, device, equipment and medium | |
CN110007838B (en) | Processing method, device and equipment for erasing control | |
WO2019218622A1 (en) | Element control method, apparatus, and device, and storage medium | |
CN105578110A (en) | Video call method, device and system | |
CN105163196A (en) | Real-time video coding method and electronic equipment | |
WO2021042607A1 (en) | Image color-filling method, apparatus and device, and storage medium | |
WO2024074060A1 (en) | Image toning method and apparatus and storage medium | |
CN112860157B (en) | Display element adjusting method, device, equipment and storage medium | |
CN102612205B (en) | Method for controlling visual light sources, terminals and video conference system | |
CN111008605A (en) | Method and device for processing straight line in face image, terminal equipment and storage medium | |
CN115657893A (en) | Display control method, display control device and intelligent 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |