CN110069204A - Graphic processing method, device, equipment and storage medium based on handwriting trace - Google Patents

Graphic processing method, device, equipment and storage medium based on handwriting trace Download PDF

Info

Publication number
CN110069204A
CN110069204A CN201910298975.XA CN201910298975A CN110069204A CN 110069204 A CN110069204 A CN 110069204A CN 201910298975 A CN201910298975 A CN 201910298975A CN 110069204 A CN110069204 A CN 110069204A
Authority
CN
China
Prior art keywords
targeted graphical
handwriting trace
point
handwriting
distance
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.)
Granted
Application number
CN201910298975.XA
Other languages
Chinese (zh)
Other versions
CN110069204B (en
Inventor
林峻弘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910298975.XA priority Critical patent/CN110069204B/en
Publication of CN110069204A publication Critical patent/CN110069204A/en
Priority to PCT/CN2019/127818 priority patent/WO2020211438A1/en
Application granted granted Critical
Publication of CN110069204B publication Critical patent/CN110069204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a kind of graphic processing method based on handwriting trace, device, equipment and storage mediums, it is related to electronic whiteboard field, comprising: in response to the person's handwriting control operation received, show at least one handwriting trace, at least one tracing point of the handwriting trace is located in the enclosed region of targeted graphical, and the targeted graphical is the polygon having been displayed;The dimension data of the targeted graphical is adjusted, so that the targeted graphical surrounds and/or adapt to the distribution of the handwriting trace.It can solve technical problem low for the integration efficiency of handwriting trace and figure in the prior art using the above scheme.

Description

Graphic processing method, device, equipment and storage medium based on handwriting trace
Technical field
The present embodiments relate to electronic whiteboard technology field more particularly to a kind of graphics process sides based on handwriting trace Method, device, equipment and storage medium.
Background technique
With the development of computer technology, computer equipment is widely used in all kinds of scenes of daily life.For example, Under the scenes such as meeting, classroom, the operations such as more and more people are write by computer equipment, drawn replace passing with this The notebook or blackboard (including blank) of system.At this point, user is in operation, it will usually write rail as integration using figure The carrier of mark.For example, integrating different handwriting traces with different rectangles, the classification of handwriting trace is shown with realizing.In reality Following problem exists in the prior art in existing process of the invention, inventor: the track of writing and the figure of drafting belong to phase Mutual independent two dvielement needs user to remove the aobvious of adjustment handwriting trace or figure one by one to realize desired synergy Show position.Therefore, the prior art there is a problem of being directed to handwriting trace and the integration efficiency of figure is low.
Summary of the invention
The present invention provides a kind of graphic processing method based on handwriting trace, device, equipment and storage mediums, to solve The technical problem low for the integration efficiency of handwriting trace and figure in the prior art.
In a first aspect, the embodiment of the invention provides a kind of graphic processing methods based on handwriting trace, comprising:
It is operated in response to the person's handwriting control received, at least one handwriting trace of display, at least the one of the handwriting trace A tracing point is located in the enclosed region of targeted graphical, and the targeted graphical is the polygon having been displayed;
The dimension data of the targeted graphical is adjusted, so that the targeted graphical surrounds and/or adapt to the handwriting trace Distribution.
Further, the dimension data of the adjustment targeted graphical includes:
Increase the dimension data of the targeted graphical;And/or
Reduce the dimension data of the targeted graphical.
Further, the dimension data for increasing the targeted graphical includes:
If being located at outside the enclosed region of the targeted graphical in the handwriting trace there are tracing point, increase the target The dimension data of figure.
Further, the dimension data for reducing the targeted graphical includes:
If the minimum circumscribed rectangle of the handwriting trace is less than history minimum circumscribed rectangle, reduce the targeted graphical Dimension data, the history minimum circumscribed rectangle are to receive the minimum circumscribed rectangle of the handwriting trace before person's handwriting control operates.
Further, the dimension data for reducing the targeted graphical includes:
If the tracing point total quantity of the handwriting trace is less than historical track point total quantity, reduce the targeted graphical Dimension data, the historical track point total quantity are to receive the tracing point total quantity of the handwriting trace before person's handwriting control operates.
Further, before the dimension data of the adjustment targeted graphical, further includes:
The mobile targeted graphical, so that the second central point weight of the first nodal point of the targeted graphical and target rectangle It closes, the target rectangle is the minimum circumscribed rectangle of the handwriting trace.
Further, the dimension data of the adjustment targeted graphical includes:
Determine the line of each tracing point and second central point in the handwriting trace;
Calculate the corresponding intersection point of each line, the intersection point be straight line and the targeted graphical where respective gut most Nearly crosspoint;
Calculate the first distance and each tracing point and second central point of each intersection point and second central point Second distance;
Size adjusting data are obtained according to first distance and second distance, the size adjusting data are up-sizing data Or minification data;
According to the dimension data of the size adjusting data point reuse targeted graphical.
Further, the size adjusting data are up-sizing data,
It is described size adjusting data are obtained according to first distance and second distance to include:
Calculate the first distance ratio of each first distance and corresponding second distance;
In all first distance ratios, the smallest first distance ratio of numerical value is selected;
Using the inverse of the smallest first distance ratio of the numerical value as up-sizing data.
Further, the size adjusting data are minification data,
The corresponding intersection point of each line that calculates includes:
The dimension data of the targeted graphical is contracted to minimum dimension data;
The intersection point of targeted graphical after determining each line and reducing;
The dimension data according to the size adjusting data point reuse targeted graphical includes:
The dimension data of targeted graphical before being reduced according to the minification data point reuse.
Further, described size adjusting data are obtained according to first distance and second distance to include:
Calculate the second distance ratio of each first distance and corresponding second distance;
In all second distance ratios, the smallest second distance ratio of numerical value is selected;
The product of the inverse of the smallest second distance ratio of evaluation and minimum drawdown ratio, to obtain minification data, The ratio of the dimension data of targeted graphical before the minimum drawdown ratio is minimum dimension data and reduces.
Further, the person's handwriting control operation in response to receiving, at least one handwriting trace of display include:
In response to the person's handwriting control operation received, track to be selected is shown;
Confirmation is matched to targeted graphical, at least one interior comprising the track to be selected of the enclosed region of the targeted graphical Tracing point;
Whole tracks in the targeted graphical are obtained, any bar track in the whole track has at least one Tracing point is located in the enclosed region of the targeted graphical;
Whole tracks are determined as handwriting trace.
Further, the person's handwriting control operation includes: write operation, delete operation, moving operation and zoom operations At least one of.
Second aspect, the embodiment of the invention also provides a kind of graphic processing facilities based on handwriting trace, comprising:
Person's handwriting display module shows at least one handwriting trace for the person's handwriting control operation in response to receiving, described At least one tracing point of handwriting trace is located in the enclosed region of targeted graphical, the targeted graphical be have been displayed it is polygon Shape;
Size adjustment module, for adjusting the dimension data of the targeted graphical so that the targeted graphical surround and/or Adapt to the distribution of the handwriting trace.
The third aspect, the embodiment of the invention also provides a kind of graphic processing apparatus based on handwriting trace, comprising:
One or more processors;
Memory, for storing one or more programs;
Display screen, for showing that handwriting trace and targeted graphical, at least one tracing point of the handwriting trace are located at mesh In the enclosed region for shape of marking on a map;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the graphic processing method based on handwriting trace as described in relation to the first aspect.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions Computer executable instructions when being executed by computer processor for execute as described in relation to the first aspect based on handwriting trace Graphic processing method.
The above-mentioned graphic processing method based on handwriting trace, device, equipment and storage medium, by response to receiving Person's handwriting control operation, shows at least one handwriting trace, wherein at least one tracing point of handwriting trace is located at targeted graphical In enclosed region, at this point, the dimension data for the targeted graphical that synchronous adjustment has been displayed, so that targeted graphical is surrounded and/or is adapted to The technological means of the distribution of handwriting trace.Solve the technical problem low for the integration efficiency of handwriting trace and figure, Realizing figure follows the variation synchronous self-adapting of handwriting trace distribution to zoom in or out, and improve user uses body It tests, and ensure that the rational deployment and aesthetics of display content, meanwhile, the central point of targeted graphical and handwriting trace is overlapped, Not only guarantee aesthetics, is also convenient for subsequent calculating size adjusting data.Also, the line based on each tracing point and central point, really Fixed and targeted graphical intersection point, and then second of the first distance and each tracing point and central point according to each intersection point and central point Distance obtains size adjusting data, it is ensured that accuracy when amplification and diminution targeted graphical guarantees that handwriting trace is located at In the enclosed region of targeted graphical, in turn avoid excessive amplification target figure or handwriting trace removed out of targeted graphical after cause The excessive situation of white space in enclosed region.
Detailed description of the invention
Fig. 1 is a kind of flow chart for graphic processing method based on handwriting trace that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the graphic processing method based on handwriting trace provided by Embodiment 2 of the present invention;
Fig. 3 is the first display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 4 is the second display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 5 is third display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 6 is the 4th display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 7 is the 5th display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 8 is a kind of flow chart for graphic processing method based on handwriting trace that the embodiment of the present invention three provides;
Fig. 9 is the 6th display schematic diagram that the embodiment of the present invention three provides;
Figure 10 is the 7th display schematic diagram that the embodiment of the present invention three provides;
Figure 11 is the 8th display schematic diagram that the embodiment of the present invention three provides;
Figure 12 is the 9th display schematic diagram that the embodiment of the present invention three provides;
Figure 13 is the tenth display schematic diagram that the embodiment of the present invention three provides;
Figure 14 is a kind of structural schematic diagram for graphic processing facility based on handwriting trace that the embodiment of the present invention four provides;
Figure 15 is a kind of structural schematic diagram for graphic processing apparatus based on handwriting trace that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used to explain the present invention, rather than limitation of the invention.It also should be noted that for the ease of retouching It states, only the parts related to the present invention are shown in attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for graphic processing method based on handwriting trace that the embodiment of the present invention one provides.Implement The graphic processing method based on handwriting trace provided in example can be executed by the graphic processing apparatus based on handwriting trace, the base It can be realized by way of software and/or hardware in the graphic processing apparatus of handwriting trace, it should the figure based on handwriting trace Processing equipment can be two or more physical entities and constitute, and is also possible to a physical entity and constitutes.For example, based on rail is write The graphic processing apparatus of mark can be computer, mobile phone, plate or interactive intelligent tablet computer etc..
In order to make it easy to understand, being shown in embodiment with interactive intelligent tablet computer for the graphic processing apparatus based on handwriting trace Example property description.Wherein, interactive intelligent tablet computer, which can be, manipulates the content being shown on display plate by touch technology Integration apparatus with man-machine interactive operation is realized, is integrated with projector, electronic whiteboard, curtain, sound equipment, television set and view One or more functions such as frequency conference terminal.
In general, interactive intelligent tablet computer includes at least one piece of display screen.For example, interactive intelligent tablet computer is configured with one piece of tool There is the display screen of touch function, and the display screen can be capacitance plate, touch screens or electromagnetic screen.Further, user can be with Touch control operation is realized by way of finger or stylus touching display screen, correspondingly, interactive intelligent tablet computer detects position of touch, And response scheme is determined according to the corresponding display content of position of touch, and then responded, to realize touch function.For example, root Determine that corresponding display content is the control of some function according to position of touch, at this point, response scheme is to execute the function.For another example, Corresponding display content is determined to write region, at this point, response scheme is display handwriting trace according to position of touch.
Typically, interactive intelligent tablet computer is equipped with an at least type operating system, wherein operating system includes but is not limited to Android system, linux system and Windows system.Further, interactive intelligent tablet computer can be equipped at least one with book The application program for writing function, as being equipped in interactive intelligent tablet computer with writing function electronic whiteboard application program.Wherein, should The application program that application program can carry for operating system, it is also possible under in third party device or server The application program of load.Optionally, application program also has other editting functions in addition to having writing function, is such as inserted into table, inserts Enter picture, insertion multimedia, insertion figure, draw the functions such as table, graphing.Wherein, the table or figure drawn For computer drawing leading element.The block letter mark that computer drawing leading element is understood that be drawn by interactive intelligent tablet computer Eka-element is different from the element of user's writing.In general, application program shows operating area, user can be in the operating space It is write or is edited in domain.The regional location and area size of operating area can be set according to actual needs.It is understood that , under writing function, the operating area is it can be appreciated that write region.In embodiment, in the operating area into For graphic processing method of the row based on handwriting trace, it is described.
Specifically, with reference to Fig. 1, the graphic processing method provided in this embodiment based on handwriting trace includes:
Step 110, the person's handwriting control operation in response to receiving, show at least one handwriting trace, handwriting trace is extremely A few tracing point is located in the enclosed region of targeted graphical, and targeted graphical is the polygon having been displayed.
Illustratively, person's handwriting control operation is control operation that user issues, for handwriting trace.Handwriting trace is to use Family is under writing function, the track being written by touch control operation, it includes multiple continuous tracing points, each tracing point corresponding one A coordinate points.Coordinate points are the point in operating area coordinate system.Specifically, creating coordinate system in advance for operating area, wherein sit The specific location embodiment for marking the origin of system is not construed as limiting.Further, in order to guarantee that user there are enough operating areas, implement Setting operation region does not have fixed dimension in example, i.e. operating area can be infinitely great.For example, operating area can be with user's Writing process infinitely expands.Wherein, specific expansion mode and direction of expansion embodiment are not construed as limiting.It is understood that Since the size of display screen is limited, in display screen can only display portion operating area, and set detecting that user issues Determine operating area when replacement operation in replacement display screen.The operating area replaced in display screen may include moving operation area Domain, zoom operations region etc..Wherein, the specific implementation embodiment for setting replacement operation is not construed as limiting, for example, detecting use Family palm touching display screen, and when progress moving operation, movement routine is determined according to the track of moving operation, and then according to movement The operating area shown in path replacement display screen.Further, the coordinate range of the operating area shown in display screen is determined, And then the corresponding relationship of coordinate points and pixel is determined according to coordinate range.Wherein, each pixel is one corresponding in display screen Pixel coordinate passes through the available coordinate points of pixel coordinate range of the coordinate range and display screen of operating area and pixel Corresponding relationship.Typically, when obtaining touch control operation, the corresponding pixel of touch control operation is determined, and according to coordinate points and pixel The corresponding relationship of point determines coordinate points corresponding with pixel, and then using the coordinate value of coordinate points as the seat of corresponding tracing point Cursor position.Meanwhile the pixel coordinate for showing tracing point being denoted as to the location of pixels of tracing point.When the operating area in display screen not When change, if the location of pixels of tracing point changes, the coordinate position of tracing point, which synchronizes, to change.
In embodiment, setting person's handwriting control operation includes in write operation, delete operation, moving operation and zoom operations At least one.Wherein, write operation refers to the operation of write-in handwriting trace, shows after completing write operation, in display screen new The handwriting trace of increasing.Delete operation refers to that deletion has been written into the operation of handwriting trace, after completing delete operation, the writing of display screen Tracking quantity is reduced.Moving operation refers to the operation of mobile handwriting trace location of pixels, at this point, coordinate position also synchronous variation. Zoom operations refer to the operation zoomed in or out to handwriting trace.Further, person's handwriting control operates corresponding touch-control side Formula embodiment is without limitation.For example, after user selects writing function, if interactive intelligent tablet computer detects movement in operating area Touch control operation, it is determined that receive write operation.For another example, after function is deleted in confirmation to be selected, if detecting operating area Interior at least one handwriting trace is chosen, then according to selected operation, deletes selected track.
Further, targeted graphical is the polygon currently having shown that.It is also understood that targeted graphical is that user is The person's handwriting frame of handwriting trace setting, is used to integrate handwriting trace, i.e., handwriting trace is placed in targeted graphical as a whole Inside.Optionally, targeted graphical is set as convex polygon.Wherein, it is the simple polygon of convex set that convex polygon, which is an inside, Shape.For example, targeted graphical can be parallelogram, rectangle, square, regular hexagon, triangle etc..Practical application In, targeted graphical can also be the closed figures such as circle, ellipse.In embodiment, setting response person's handwriting control operation after, exist to A few track relevant to person's handwriting control operation, and work as at least one tracing point at least one track and had been displayed positioned at some When in the enclosed region of figure, corresponding figure is denoted as targeted graphical.Later, whole pictures of targeted graphical enclosed region are traversed Vegetarian refreshments, to determine, whether there is also other tracks in enclosed region, if synchronizing in targeted graphical there is also other tracks Other tracks are obtained, handwriting trace will be determined as together with other tracks and track relevant with person's handwriting control operation.Wherein, Tracing point refers to the location of pixels of tracing point in the pixel region of Target ellipse in enclosed region, and pixel region refers to target The corresponding pixel coordinate set of the enclosed region that ellipse surrounds.Correspondingly, tracing point refers to that tracing point is closing outside enclosed region Close other regions other than region.Since handwriting trace is shown in display screen, in embodiment, using location of pixels as The relevant parameter that position is determining, position statement and calculates, it is to be understood that, can also be by coordinate position in practical application As relevant parameter, for example, determining tracing point whether in enclosed region by coordinate position.
For example, when person's handwriting control operation is write operation, according to the track of write operation display write-in.Later, traversal is aobvious The figure that display screen currently has been displayed confirms that being located at some with the presence or absence of at least one tracing point in the track of write-in has been displayed figure Enclosed region in, and if it exists, the figure having been displayed then is determined as targeted graphical.Meanwhile traversing targeted graphical enclosed region Interior each pixel, however, it is determined that there is also other tracks in addition to the track of write-in, in targeted graphical, then by other tracks with write The track entered is same to be confirmed as handwriting trace, otherwise, the track of write-in is directly determined as handwriting trace.
For another example, when person's handwriting control operation is delete operation, selected track is determined according to delete operation, and delete the rail Mark.Meanwhile determining that being located at some with the presence or absence of at least one tracing point in the track deleted has been displayed in the enclosed region of figure, If it exists, then figure is determined as targeted graphical, and traverses each pixel in targeted graphical enclosed region, by targeted graphical Other existing tracks are determined as the handwriting trace of display in enclosed region.In embodiment, after setting delete operation, targeted graphical There are the tracks that at least one is not deleted in enclosed region.In practical application, after executing delete operation, targeted graphical closed area It can also be without other tracks, at this point, targeted graphical can be contracted to the minimum dimension of setting in domain.
For another example, when person's handwriting control operation is moving operation, track and mobile road to be moved are determined according to moving operation Diameter, and according to movement routine motion track.After track is mobile, determines in track and be located at certain with the presence or absence of at least one tracing point In a enclosed region that figure has been displayed, and if it exists, figure is then determined as targeted graphical.Meanwhile traversing targeted graphical closure Each pixel in region, however, it is determined that there is also other tracks in targeted graphical enclosed region, then by other tracks and mobile rail Mark is determined as handwriting trace together, if other tracks are not present in targeted graphical enclosed region, mobile track is determined as Handwriting trace.The operation corresponds to the scene that partial traces are moved into figure.Also optional, before track is mobile, determine track In be located in the figure enclosed region that some has been displayed with the presence or absence of at least one tracing point, and if it exists, then by figure determination For another targeted graphical, and each pixel in the targeted graphical enclosed region is traversed, it will be existing in targeted graphical enclosed region Other tracks are determined as another handwriting trace.The operation corresponds to the scene that partial traces are removed to figure.
Also such as, when person's handwriting control operation is zoom operations, track and scaling to be scaled are determined according to zoom operations Ratio, and then according to the track after the ratio of scaling display scaling.Later, it determines in track with the presence or absence of at least one tracing point In the enclosed region that figure has been displayed positioned at some, and if it exists, figure is then determined as targeted graphical.Meanwhile traversing target figure Each pixel in shape enclosed region, however, it is determined that there is also other tracks in targeted graphical enclosed region, then by other tracks and contracting The track put is determined as handwriting trace together, if other tracks are not present in targeted graphical enclosed region, by the track of scaling It is determined as handwriting trace.
It should be noted that in writing process, the processor of operation or calculating for the ease of to(for) track, usually by rail Mark is placed in corresponding element box and is shown.In general, element box is it is also assumed that be the minimum circumscribed rectangle of track, and member The boundary of plain box hides display.Wherein, minimum circumscribed rectangle refers to the minimum rectangle comprising track.Further, due to primary Writing process, it is possible to create a plurality of track, if the corresponding element box in every track, will increase the burden of processor.Therefore, may be used To be labeled as each track generated of writing to share an element box.Wherein, after the completion of a track input, if in setting Between be spaced and setting pixel distance in receive write operation again, then the track being newly written and former track are considered with primary The track that writing process obtains, and place in identity element box.It is subsequent, if in element box certain track be deleted or moved compared with Remote position (by comparing with preset distance threshold), it is determined that track is reduced in element box, and according to residual track The more size of new element box.It is moved in element box if increasing track that certain is newly written in element box or increasing certain Track, then can be with the size of synchronized update element box.Alternatively, the track for the condition that meets can also be placed in conjunction with actual demand In identity element box.For example, the corresponding handwriting trace of a certain targeted graphical is placed in identity element box.At this point, determining mesh When shape of marking on a map and handwriting trace, the location of pixels of comparison element box and the location of pixels of targeted graphical are only needed.
Step 120, the dimension data for adjusting targeted graphical, so that targeted graphical surrounds and/or adapt to point of handwriting trace Cloth range.
Illustratively, the dimension data of targeted graphical refers to location of pixels of each edge of targeted graphical in display screen. Can also determine the central point of targeted graphical, the length in pixels of each edge by dimension data, the length in pixels ratio of adjacent edge with And the angle between two sides of intersection.Wherein, length in pixels refers to the quantity of continuous image vegetarian refreshments in same direction.It is understood that , location of pixels can be replaced with coordinate position, at this point, the long element of pixel can be replaced with coordinate length.In embodiment, Exemplary description is done with location of pixels and length in pixels, in practical application, can also be executed with coordinate position and coordinate length.
Specifically, adjusting the dimension data of targeted graphical according to the location of pixels of handwriting trace.Wherein, target figure is adjusted The dimension data of shape includes the dimension data for increasing targeted graphical and/or the dimension data for reducing targeted graphical.Increase target figure The dimension data of shape refers to the length in pixels for increasing at least two sides in targeted graphical.When any two adjacent in targeted graphical The length in pixels on side than it is fixed when, the dimension data for increasing targeted graphical refers to equal proportion amplification target figure.Work as targeted graphical In the length in pixels ratio of any two adjacent edges when being not fixed, increase the dimension data of targeted graphical in addition to referring to equal proportion amplification mesh It marks on a map outside shape, can also be the length in pixels for increasing the side on direction initialization.For example, targeted graphical is rectangle, according to writing rail Mark determines when needing to expand in horizontal direction, can only adjust the length in pixels on two lateral sides.Likewise, reducing target figure The dimension data of shape is similar with the dimension data of targeted graphical is increased, and is only to reduce part by the partial replacement of amplification, because This, embodiment does not repeat them here.
In general, can determine adjustment process first when adjusting the dimension data of targeted graphical to increase target figure The dimension data of shape still reduces the dimension data of targeted graphical.Wherein, the dimension data for increasing targeted graphical is applied to write There is a situation where that tracing point is located at outside targeted graphical enclosed region in track, at this point, by the dimension data for increasing targeted graphical, Targeted graphical can be made to surround the distribution of handwriting trace.The dimension data for reducing targeted graphical is applied to certain in handwriting trace The case where track is deleted or is moved out of targeted graphical, either, what the tracing point total quantity applied to handwriting trace was reduced Situation, at this point, targeted graphical can be made to adapt to the distribution of handwriting trace, i.e., by the dimension data for reducing targeted graphical Reduce the white space occurred due to track deletion, removal or tracing point total quantity reduce in targeted graphical.It is understood that The distribution of handwriting trace refers to the pixel region of the element box of handwriting trace, when the element box size of handwriting trace becomes When change, the dimension data of synchronous adjustment targeted graphical, so that the element of handwriting trace is surrounded and be adapted to the size of targeted graphical The size of box, and then realize the effect of targeted graphical and handwriting trace integration.
Typically, after determining adjustment process, it is thus necessary to determine that specific size adjusting data, and according to size adjusting data tune Whole targeted graphical.Size adjusting data can be to relative data, i.e., the modification data generated for the dimension data of targeted graphical, Its particular content can be opposite pixel information (certain side is such as moved up 6 pixels), and size adjusting data can be with It is absolute data, i.e., the result data generated for the dimension data of targeted graphical, particular content can be absolute pixel Point information (pixel on certain side is such as moved to (x, y) pixel).Further, the method for determination of size adjusting data It may be set according to actual conditions.For example, determining the tracing point for being in outermost in handwriting trace, and according to the track of outermost Point determines the location of pixels to be adjusted of corresponding sides in targeted graphical.At this point it is possible to predefine outermost tracing point in target figure When in shape enclosed region and the minimum pixel distance of corresponding sides, and corresponding sides in targeted graphical are determined according to minimum pixel distance Location of pixels to be adjusted, and then size adjusting data are obtained according to the current pixel position of location of pixels to be adjusted and the side.Again Such as, the minimum circumscribed rectangle of handwriting trace is determined, later, targeted graphical need are to be achieved most when determination is comprising minimum circumscribed rectangle Small dimension data, and need dimension data to be achieved as the size adjusting data of targeted graphical this.For another example, target is obtained The central point of figure determines the line of each tracing point and central point later, and obtains the intersection point of the line and targeted graphical, it Afterwards, size adjusting data are obtained with the second distance of the first distance of central point and corresponding tracing point and central point according to intersection point. Optionally, when obtaining size adjusting data according to first distance and second distance, take first distance and second distance ratio minimum Tracing point.In general, if the corresponding numerical value of minimum ratio less than 1, illustrates that the tracing point is located at the outside of targeted graphical, And the distance of distance objective figure is farthest, at this point it is possible to determine the size adjusting for being used for amplification target figure according to the tracing point Data.If the corresponding numerical value of minimum ratio is greater than 1, illustrate that whole tracing points are respectively positioned on the inside of targeted graphical, and ratio is most Small tracing point is nearest at a distance from targeted graphical, at this point, determining the size tune for reducing targeted graphical according to the tracing point Entire data.If the corresponding numerical value of minimum ratio is equal to 1, illustrate that corresponding tracing point is overlapped with the intersection point on targeted graphical side, At this time, it is only necessary to determine the size adjusting data for being used for amplification target figure according to the minimum pixel distance of setting, or not adjust mesh The dimension data for shape of marking on a map.Wherein, minimum pixel distance refers in preset track tracing point to the minimum of targeted graphical Distance.It is also optional, in amplification target figure, after the minimum ratio for determining first distance and second distance, by minimum ratio Inverse as size adjusting data;When reducing targeted graphical, targeted graphical is first contracted to minimum dimension data, later, The minimum ratio of first distance and second distance is obtained, and using the product of the inverse of minimum ratio and minimum drawdown ratio as size Adjust data.Wherein, minimum drawdown ratio is the ratio that minimum dimension data and targeted graphical reduce preceding dimension data.
Optionally, after receiving person's handwriting control operation every time, the dimension data of adjustable targeted graphical, so that size number The synchronous adjustment according to the distribution for following handwriting trace.At this point, targeted graphical includes complete handwriting trace, and as far as possible Reduce the white space in targeted graphical.Wherein, white space refers to the region where the pixel of display background.
It is also optional, when adjusting the dimension data of targeted graphical, in order to guarantee reasonability and aesthetics, set first by mesh The first nodal point for shape of marking on a map is overlapped with the second central point of minimum circumscribed rectangle where handwriting trace, and then is confirmed whether Need to adjust the dimension data of targeted graphical, if desired, then adjust the dimension data of targeted graphical.
It is above-mentioned, by the person's handwriting control operation in response to receiving, show at least one handwriting trace, wherein write rail At least one tracing point of mark is located in the enclosed region of targeted graphical, at this point, the ruler for the targeted graphical that synchronous adjustment has been displayed Very little data, so that targeted graphical surrounds and/or adapt to the technological means of the distribution of handwriting trace.It solves for writing rail The low technical problem of the integration efficiency of mark and figure realizes the variation synchronous self-adapting that figure follows handwriting trace distribution It zooms in or out, improves the usage experience of user, and ensure that the rational deployment and aesthetics of display content.
Embodiment two
Fig. 2 is a kind of flow chart of the graphic processing method based on handwriting trace provided by Embodiment 2 of the present invention.This reality Applying example is to be embodied on the basis of the above embodiments.Specifically, setting adjusts the ruler of the targeted graphical in embodiment Very little data are the dimension data for increasing targeted graphical.In the present embodiment, using the location of pixels of tracing point as calculating reference data, It, can also be using the coordinate position of tracing point as calculating reference data in practical application.With reference to Fig. 2, the figure based on handwriting trace Shape processing method includes:
Step 201, the person's handwriting control operation in response to receiving, show track to be selected.
In embodiment, person's handwriting control operation is by taking write operation, amplifying operation or moving operation as an example.Wherein, person's handwriting controls When operation is moving operation, after being responded according to moving operation, there is newly-increased track inside targeted graphical.
Further, after response person's handwriting control operation, display track relevant to person's handwriting control operation, and it is denoted as rail to be selected Mark.For example, at least one track being newly written is denoted as track to be selected when write operation;When amplifying operation, will be amplified to A few track is denoted as track to be selected;When moving operation, track to be selected will be denoted as by mobile track.
Step 202 judges whether to be matched to targeted graphical, in the enclosed region of targeted graphical at least comprising track to be selected One tracing point.Confirmation is matched to targeted graphical, executes step 203, otherwise, end operation.
Specifically, traversing the whole figures having been displayed after showing track to be selected, confirming the pixel region where each figure. Later, according to the location of pixels of each tracing point in the pixel region of figure and track to be selected, it is determined whether exist comprising rail to be selected The figure of at least one tracing point of mark, and if it exists, the figure is then determined as targeted graphical.If it does not exist, then illustrate rail to be selected Mark does not have corresponding targeted graphical, and then terminates this operation.In general, track to be selected only corresponds to a targeted graphical.It needs It is noted that the whole figures having been displayed can refer to whole figures in operating area or the whole in display screen Figure.In embodiment, it is described by taking whole figures in display screen as an example.Certainly, if the whole figures having been displayed refer to operation When whole figures in region, it is thus necessary to determine that the coordinates regional of each figure, later, root is according to the coordinates regional and rail to be selected of figure The coordinate position of each tracing point in mark, it is determined whether there is the figure comprising at least one tracing point of track to be selected.
It is understood that the mode embodiment of interactive intelligent tablet computer differentiation figure and track is without limitation.Such as track There is different marks with figure, interactive intelligent tablet computer determines that element is track or figure by identifying.
Step 203 obtains whole tracks in targeted graphical, and any bar track in whole tracks has at least one Tracing point is located in the enclosed region of targeted graphical.
Specifically, whole pixels in targeted graphical enclosed region are traversed after determining targeted graphical, to filter out display The pixel of tracing point.In general, setting targeted graphical inside pixel include show tracing point pixel and blank or The pixel of display background can be distinguished by the pixel value of each pixel.Later, it determines each in targeted graphical enclosed region Track where tracing point.Wherein, it is made of due to every track multiple continuous tracing points, it need to only find each rail The corresponding whole continuous path points of mark point, can confirm the track where each tracing point, and then obtain targeted graphical closed area Whole tracks in domain, i.e. whole tracks of targeted graphical.It is understood that may exist position in obtained whole tracks In at least one tracing point outside targeted graphical enclosed region.
Whole tracks are determined as handwriting trace by step 204.
Further, whole tracks are determined as handwriting trace.At this point, whole tracks are in identity element box.
Step 205, mobile targeted graphical, so that the second central point weight of the first nodal point of targeted graphical and target rectangle It closes, target rectangle is the minimum circumscribed rectangle of handwriting trace.
Specifically, determining the minimum circumscribed rectangle of handwriting trace.Wherein, minimum circumscribed rectangle refers to comprising handwriting trace Whole tracing points and the smallest rectangle of area.Further, the method for determination embodiment of minimum circumscribed rectangle is not construed as limiting.Example Such as, the whole tracing points for obtaining handwriting trace select an outermost tracing point from upper and lower, left and right four direction respectively, into And minimum circumscribed rectangle is determined according to four outermost tracing points.It further, will be minimum external after determining minimum circumscribed rectangle Rectangle is denoted as target rectangle.Later, it determines the central point of target rectangle and is denoted as the second central point.
Typically, it determines the central point of targeted graphical and is denoted as first nodal point.Wherein, first nodal point and the second center The method of determination embodiment of point is without limitation.Further, judge whether first nodal point and the second central point are overlapped, if weight It closes, then skips this step.Otherwise, mobile targeted graphical so that first nodal point and the second central point are overlapped, i.e., targeted graphical and The center of target rectangle is overlapped.
For example, Fig. 3 is the first display schematic diagram provided by Embodiment 2 of the present invention.With reference to Fig. 3, the target rectangle of rail is write The first nodal point 321 of 31 the second central point 311 and targeted graphical 32 is respectively two positions.Further, interactive intelligence Plate moves targeted graphical 32, so that first nodal point 321 and the second central point 311 are overlapped, at this point, Fig. 3 becomes Fig. 4, Fig. 4 is Second display schematic diagram provided by Embodiment 2 of the present invention.Compared to Fig. 3, track and the relative position of targeted graphical are more closed in Fig. 4 Reason.It should be noted that target rectangle is the consistency operation of interactive intelligent tablet computer in practical application, mesh is not shown in display screen Rectangle is marked, displaying target rectangle is merely for convenience of understanding in Fig. 3.
It is understood that handwriting trace can also be moved other than mobile targeted graphical, so that first nodal point and the Two central points are overlapped.Since the person's handwriting control operation that handwriting trace is issued according to user obtains, handwriting trace is usually shown In the desired position of user, therefore, compared to mobile handwriting trace, mobile targeted graphical is more reasonable.
Step 206 judges to be located at outside the enclosed region of targeted graphical in handwriting trace with the presence or absence of tracing point.If writing rail It is located at outside the enclosed region of targeted graphical in mark there are tracing point, thens follow the steps 207, otherwise, end operation.
Specifically, whole tracing points of traversal handwriting trace, obtain the location of pixels of each tracing point, and by the location of pixels It is compared with pixel region shared by targeted graphical.The location of pixels of at least one tracing point is not in pixel region if it exists It is interior, then illustrate that there are at least one tracing points outside the enclosed region of targeted graphical, at this point, in order to make targeted graphical include all Handwriting trace needs to amplify targeted graphical operation.If whole tracing points of handwriting trace are in the closure of targeted graphical In region, then illustrate targeted graphical without amplifying operation, at this point it is possible to terminate this operation.
Step 207, the dimension data for increasing targeted graphical.
The step is described by taking equal proportion amplification target figure as an example.At this point, the step specifically includes step 2071- step Rapid 2075:
Step 2071, the line for determining each tracing point and the second central point in handwriting trace.
Specifically, successively selecting each tracing point in handwriting trace, and tracing point is connected with the second central point, to divide The line of each tracing point and the second central point is not obtained.The step can operate for the inside of interactive intelligent tablet computer, show It is not shown in screen.
Optionally, if the line coincident of the line of some tracing point and other tracing points, maximum line can only be obtained The corresponding tracing point of length.Wherein, line coincident refers to whole pixels of certain line and the part of another one or more line Pixel is overlapped.Wire length can be obtained by the quantity of pixel shared on line direction.
It is understood that the second central point can be replaced mutually with first nodal point in this step.
Step 2072 calculates the corresponding intersection point of each line, and intersection point is the nearest of straight line where respective gut and targeted graphical Crosspoint.
Specifically, the straight line and targeted graphical where every line generate at least one crosspoint.For example, in Fig. 4, track There are two crosspoints, an intersection points for straight line and targeted graphical 32 where the line 331 of point 33 and the second central point 311 In tracing point 33 apart from nearest side 34, another crosspoint is located at tracing point 33 apart from farther away side 35.It is located at recently Crosspoint on side can be denoted as the nearest crosspoint of straight line and targeted graphical, and the crosspoint on farther away side can be denoted as The farthest crosspoint of straight line and targeted graphical.Compared to farthest crosspoint, nearest crosspoint can more embody corresponding tracing point and mesh Therefore the relationship for shape of marking on a map in embodiment, selects nearest crosspoint to be denoted as the intersection point of the line.At this point, every line corresponding one A intersection point.
Further, if tracing point is in the outside of targeted graphical, the corresponding intersection point of line is on the line.If tracing point In the inside of targeted graphical, then the corresponding intersection point of line is on the extended line of the line.
The of step 2073, the first distance for calculating each intersection point and the second central point and each tracing point and the second central point Two distances.
Specifically, wire length refers to corresponding tracing point to the pixel distance of the second central point, i.e., in tracing point to second The pixel quantity of heart point.In embodiment, which is denoted as second distance.Meanwhile by the picture of intersection point and the second central point Plain distance is denoted as first distance.At this point, first distance is similarly intersection point to the pixel quantity of the second central point.In general, every company Line has corresponding first distance and second distance.
It optionally, is that the tracing point outside targeted graphical is included in target to the main purpose that targeted graphical amplifies Therefore, in step 2071- step 2073 inside of figure can only choose the tracing point outside targeted graphical, and carry out Corresponding operation.It is true also according to the first distance and second distance of the tracing point being located at outside targeted graphical in subsequent step Determine size adjusting data.
Step 2074 obtains size adjusting data according to first distance and second distance.
Wherein, size adjusting data are up-sizing data.Up-sizing data be to the dimension data of targeted graphical into Magnification ratio when row amplification.
Specifically, up-sizing data are determined by first distance and second distance.Wherein it is determined that mode can be according to reality The setting of border situation.For example, the selection maximum second distance of numerical value, i.e. selection and the farthest tracing point of the second central point, and obtain The corresponding first distance of the tracing point, using the inverse of first distance and the ratio of second distance as up-sizing data.For another example, The ratio of first distance and second distance is calculated, and selects the smallest ratio of numerical value, using the inverse of the ratio as up-sizing Data.Specifically, embodiment is described for selecting minimum ratio, at this point, the step specifically includes: step 20741- step Rapid 20743:
Step 20741, the first distance ratio for calculating each first distance and corresponding second distance.
Specifically, calculating separately the ratio of every line corresponding first distance and second distance, and it is denoted as first distance Than.In general, first distance and second distance are positive number.In practical application, or first distance and second distance addition side To therefore, when calculating first distance ratio, can be calculating first at this point, first distance and second distance are likely to occur negative The ratio of the absolute value of the absolute value of distance and corresponding second distance.
Step 20742, in whole first distance ratios, select the smallest first distance ratio of numerical value.
Illustratively, the numerical value of first distance ratio is smaller, illustrates that tracing point is bigger at a distance from corresponding edge in targeted graphical, I.e. corresponding edge is remoter in tracing point distance objective figure.Therefore, in embodiment, in whole first distance ratios, numerical value is selected most Small first distance ratio.At this point, the smallest first distance of numerical value may be considered outside targeted graphical than corresponding tracing point It is located at the farthest tracing point of targeted graphical in tracing point.In general, the smallest first distance ratio of numerical value is less than 1 in this step.
Step 20743, using the inverse of the smallest first distance ratio of numerical value as up-sizing data.
Specifically, the image before amplified image and amplification is similar fitgures, the picture of adjacent side length when equal proportion is amplified Plain length is than constant, therefore, using the principle of similar fitgures, using the inverse of first distance ratio as up-sizing data.
Step 2075, according to the dimension data of size adjusting data point reuse targeted graphical.
Specifically, carrying out equal proportion amplification to targeted graphical according to up-sizing data.For example, up-sizing data It is 2, i.e., targeted graphical equal proportion is put and be twice, and the first nodal point position of amplified targeted graphical is constant, at this point, mesh The length in pixels of each edge for shape of marking on a map is exaggerated one times.
Exemplary description is carried out to technical solution provided in this embodiment below.Specifically, receiving write-in behaviour with reference to Fig. 3 After work, show that corresponding track as track 36 to be selected, later, determines targeted graphical 32 based on track to be selected in display screen, And handwriting trace is obtained according to targeted graphical, i.e. handwriting trace is track 36 to be selected.Later, in the first of mobile targeted graphical 32 Heart point 321, so that first nodal point 321 is overlapped with the second central point 311.At this point, obtaining Fig. 4.
Further, in traversing graph 4 handwriting trace each tracing point, to obtain each tracing point and the second central point 311 Line determines the intersection point of each tracing point Yu targeted graphical 32 later.Also, by each tracing point at a distance from the second central point 311 It is denoted as second distance, the corresponding intersection point of each tracing point is denoted as first distance at a distance from the second central point 311.Calculate each first The ratio of distance and corresponding second distance obtains first distance ratio.Later, the smallest first distance ratio of numerical value is selected.Fig. 4 In, the numerical value for setting the corresponding first distance ratio of tracing point 37 is minimum.At this point, setting tracing point 37 and second central point 311 Second distance is denoted as AB, and the first distance of the corresponding intersection point 38 of tracing point 37 and the second central point 311 is denoted as AC, first distance ratio It is denoted as k=| AC |/| AB |.Further, determine that up-sizing data are 1/k, and according to up-sizing data 1/k to target figure The dimension data of shape is adjusted.After amplification, Fig. 4 becomes Fig. 5.With reference to Fig. 5, amplified targeted graphical completely contains writing Track.It is understood that each central point, line, intersection point etc. will not be shown in display screen in practical application.Practical application In, by above-mentioned calculating, Fig. 5 directly can be transitioned by Fig. 3, the process of Fig. 4 is hind computation process.
Optionally, if targeted graphical is quadrangle, and any two become parallel relatively.Meanwhile it determining and being in targeted graphical The intersection point of whole tracing points outside enclosed region only on two relative edges parallel to each other, and line where intersection point and other The extended line on side does not have intersection point, then can only adjust the dimension data on two other side.For example, Fig. 6 is that the present invention is implemented The 4th display schematic diagram that example two provides, with reference to Fig. 6, the intersection point of whole tracing points outside targeted graphical is only in 391 He of side On side 392, and the extended line on two sides of the corresponding line of each intersection point and residue is non-intersecting, at this time, it is only necessary to according to up-sizing Data amplify i.e. remaining two sides.For example, only needing opposite side 393 and side 394 to amplify in Fig. 6, at this point, amplified Schematic diagram is as shown in Figure 7.
It is above-mentioned, track to be selected is shown by response person's handwriting control operation, and according to path matching targeted graphical to be selected, and will Whole tracks in targeted graphical are as handwriting trace.Later, mobile targeted graphical so that the first nodal point of targeted graphical and Second central point of the minimum circumscribed rectangle of handwriting trace is overlapped.Later.Determine each tracing point and the second center in handwriting trace The line of point, and obtains the intersection point of each tracing point and targeted graphical according to the line, later, according to intersection point and the second central point The minimum first distance ratio of the second distance of first distance and corresponding tracing point and the second central point, obtains up-sizing data, And the technological means of the dimension data according to up-sizing data point reuse targeted graphical, realize the writing rail in targeted graphical When mark exceeds targeted graphical, targeted graphical adaptively amplifies, and to guarantee including complete handwriting trace, that is, realizes targeted graphical With the integration of handwriting trace, it is not necessarily to user's manual modification targeted graphical or handwriting trace, integration efficiency is improved and user uses Experience, meanwhile, the central point of targeted graphical and handwriting trace is overlapped, not only guarantees aesthetics, is also convenient for subsequent calculating size Adjust data.Also, the line based on each tracing point and central point, the determining intersection point with targeted graphical, and then according to each intersection point Size adjusting data are obtained with the second distance of the first distance of central point and each tracing point and central point, it is ensured that amplification Accuracy when targeted graphical, i.e. guarantee handwriting trace are located in the enclosed region of targeted graphical, in turn avoid excessively amplifying mesh Shape of marking on a map causes the situation that white space is excessive in enclosed region.
Embodiment three
Fig. 8 is a kind of flow chart for graphic processing method based on handwriting trace that the embodiment of the present invention three provides.This reality Applying example is to be embodied on the basis of the above embodiments.Specifically, setting adjusts the ruler of the targeted graphical in embodiment Very little data are to reduce the dimension data of targeted graphical.At this point, each tracing point of whole tracks exists in targeted graphical enclosed region The inside of targeted graphical.In the present embodiment, using the location of pixels of tracing point as calculating reference data, in practical application, may be used also Using the coordinate position of tracing point as calculating reference data.With reference to Fig. 8, the graphic processing method based on handwriting trace includes:
Step 401, the person's handwriting control operation in response to receiving, show track to be selected.
In embodiment, person's handwriting control operation is by taking delete operation, reduction operation or moving operation as an example.Wherein, person's handwriting controls When operation is moving operation, after response person's handwriting control operation, at least one track inside targeted graphical is moved out of targeted graphical In.
Further, after response person's handwriting control operation, display track relevant to person's handwriting control operation, and it is denoted as rail to be selected Mark.For example, the residual track where deleted track in element box is denoted as track to be selected when delete operation;When reduction operation, At least one reduced track is denoted as track to be selected;When moving operation, by residue of the track before mobile in the element box of place Track is denoted as track to be selected.
In general, there are corresponding element box, and each figure enclosed region in every track in display screen before the step The corresponding element box in interior track, it is remaining in element box after carrying out person's handwriting control operation for the track in the element box Track can be track to be selected.
Step 402 judges whether to be matched to targeted graphical, in the enclosed region of targeted graphical at least comprising track to be selected One tracing point.Confirmation is matched to targeted graphical, executes step 403, otherwise, end operation.
Step 403 obtains whole tracks in targeted graphical, and any bar track in whole tracks has at least one Tracing point is located in the enclosed region of targeted graphical.
Whole tracks are determined as handwriting trace by step 404.
Step 405, mobile targeted graphical, so that the second central point weight of the first nodal point of targeted graphical and target rectangle It closes, target rectangle is the minimum circumscribed rectangle of handwriting trace.
Step 402- step 405 corresponds to step 202- step 205, and specific implementation can refer to step 202- step 205。
Step 406 judges whether to reduce the dimension data of targeted graphical.If so, thening follow the steps 407, otherwise, terminate behaviour Make.
The step includes at least one following scheme:
Scheme one judges whether the minimum circumscribed rectangle of handwriting trace is less than history minimum circumscribed rectangle, and history is minimum outer Connecing rectangle is the minimum circumscribed rectangle for receiving handwriting trace before person's handwriting control operates.If the minimum circumscribed rectangle of handwriting trace is less than History minimum circumscribed rectangle thens follow the steps 407, otherwise, end operation.
Specifically, history minimum circumscribed rectangle is to receive the minimum circumscribed rectangle of handwriting trace before person's handwriting control operates.When When interactive intelligent tablet computer determines that executing person's handwriting control to the track in some element box operates, before response person's handwriting control operation, The minimum circumscribed rectangle of track in currentElement box is recorded, and is denoted as history minimum circumscribed rectangle.Wherein, the frame of element box is For minimum circumscribed rectangle, the dimension data that minimum circumscribed rectangle refers to record minimum circumscribed rectangle is recorded.
Further, after response person's handwriting control operation, the minimum circumscribed rectangle of current handwriting trace is obtained.At this point, minimum Boundary rectangle it can be appreciated that the element box of current handwriting trace frame.Further, current handwriting trace is obtained Minimum circumscribed rectangle refers to the dimension data for obtaining minimum circumscribed rectangle.
Later, compare minimum circumscribed rectangle and history minimum circumscribed rectangle.Specifically, comparing minimum circumscribed rectangle and history The dimension data of minimum circumscribed rectangle.If minimum circumscribed rectangle is less than history minimum circumscribed rectangle, illustrate comprising handwriting trace Targeted graphical in there is more blank pixel points or background pixel point, at this time, it may be necessary to reduce the size number of targeted graphical According to.
Scheme two judges whether the tracing point total quantity of handwriting trace is less than historical track point total quantity, historical track point Total quantity is to receive the tracing point total quantity of handwriting trace before person's handwriting control operates.If the tracing point total quantity of handwriting trace is less than Historical track point total quantity, thens follow the steps 407, otherwise, end operation.
Specifically, historical track point total quantity is to receive the tracing point total quantity of handwriting trace before person's handwriting control operates.When When interactive intelligent tablet computer determines that executing person's handwriting control to the track in some element box operates, before response person's handwriting control operation, The tracing point total quantity of track in currentElement box is recorded, and is denoted as historical track point total quantity.
Further, after response person's handwriting control operation, the tracing point total quantity of current handwriting trace is obtained.Later, compare Tracing point total quantity and historical track point total quantity.If tracing point total quantity be less than historical track point total quantity, illustrate include Occur more blank pixel points or background pixel point in the targeted graphical of handwriting trace, at this time, it may be necessary to reduce targeted graphical Dimension data.
It is understood that can also control operation in practical application according to person's handwriting and directly determine, be deleted for example, receiving After operation, the dimension data for reducing targeted graphical is directly determined.
Step 407, the dimension data for reducing targeted graphical.
The step is described by taking scaled down targeted graphical as an example.At this point, the step specifically includes step 4071- step Rapid 4075:
Step 4071, the line for determining each tracing point and the second central point in handwriting trace.
Specifically, step 4071 corresponds to step 2071, concrete implementation process can refer to step 2071.
Step 4072 calculates the corresponding intersection point of each line, and intersection point is the nearest of straight line where respective gut and targeted graphical Crosspoint.
Specifically, the step specifically includes step 40721- step 40722:
Step 40721, the dimension data of targeted graphical is contracted to minimum dimension data.
Specifically, each figure for that can show in display screen sets minimum dimension in advance.Minimum dimension includes each The set angle between minimum pixel length and adjacent edge that side can be shown.In general, by taking rectangle as an example, when long side and short The length in pixels on side than it is different when, the concrete shape of rectangle can have differences.At this point it is possible to be directed to different pixels length ratio model One minimum dimension of setting is enclosed, either, whole rectangles correspond to same minimum dimension.
Further, the minimum dimension data of targeted graphical are determined according to minimum dimension.Guaranteeing the of targeted graphical When one center position is constant, the location of pixels and length in pixels on each side in targeted graphical are determined according to minimum dimension.Later, will Targeted graphical is contracted to minimum dimension data.The advantage of doing so is that amplification target figure can be used after reducing targeted graphical Method is calculated, and the computation complexity of processor is reduced.
Optionally, which can execute before step 4071, i.e., first reduce targeted graphical, then determine line.
Step 40722, the intersection point for determining the targeted graphical after each line and diminution.
Wherein, the nearest crosspoint of the targeted graphical after intersection point is straight line where respective gut and reduces.It is mentioned in this step And targeted graphical refer to the targeted graphical for being contracted to minimum dimension data.
Step specific implementation process is referred to step 2072.
The of step 4073, the first distance for calculating each intersection point and the second central point and each tracing point and the second central point Two distances.
Step specific implementation process is referred to step 2073.
Step 4074 obtains size adjusting data according to first distance and second distance.
Wherein, size adjusting data are minification data.
For example, calculating the second distance ratio of first distance and second distance, and the smallest second distance ratio is selected, by second Distance than it is reciprocal as minification data, and the targeted graphical of minimum dimension data is put according to minification data Greatly.For another example, according to second distance than determining the diminution ratio for the targeted graphical before reducing, and minification data are denoted as, Later, the targeted graphical before diminution is zoomed in and out according to minification data.In embodiment, to be determined according to second distance ratio For being described for the diminution ratio of the targeted graphical before diminution.Specifically, the step specifically includes step 40741- step Rapid 40743.
Step 40741, the second distance ratio for calculating each first distance and corresponding second distance.
Step specific implementation process is referred to step 20741.
Step 40742, in whole second distance ratios, select the smallest second distance ratio of numerical value.
Step specific implementation process is referred to step 20742.
The product of the drawdown ratio reciprocal and minimum of the smallest second distance ratio of step 40743, evaluation, to be reduced Dimension data, the ratio of the dimension data of targeted graphical before minimum drawdown ratio is minimum dimension data and reduces.
Wherein, minimum drawdown ratio is the ratio that minimum dimension data and targeted graphical reduce preceding dimension data.Specifically, really Determine the first length in pixels of any side in minimum dimension data, meanwhile, determine the side in the dimension data before targeted graphical reduces The second length in pixels the ratio of the first length in pixels and the second length in pixels is denoted as minimum drawdown ratio later.
Specifically, access is worth the inverse of the smallest second distance ratio, and the inverse and minimum drawdown ratio are subjected to multiplication fortune It calculates.Specifically, after can determining that distance reduces outside targeted graphical enclosed region after diminution according to the smallest second distance ratio of numerical value The farthest tracing point of targeted graphical.At this point, can determine the magnification ratio of targeted graphical after diminution according to inverse.Later, will Inverse can will be converted into for targeted graphical before reducing the magnification ratio of targeted graphical after diminution multiplied by minimum drawdown ratio Diminution ratio.In general, minification data are certainly less than 1.
Step 4075, according to minification data point reuse reduce before targeted graphical dimension data.
Specifically, carrying out scaled down to targeted graphical according to minification data.For example, data are reduced the size It is 0.5, i.e., by one times of targeted graphical scaled down before diminution, and reduces the first nodal point position of the targeted graphical after one times It sets constant.At this point, the length in pixels of each edge of targeted graphical reduces one times.
Exemplary description is carried out to technical solution provided in this embodiment below.
Specifically, Fig. 9 is the 6th display schematic diagram that the embodiment of the present invention three provides.With reference to Fig. 9, comprising more in figure 51 Track.Further, person's handwriting control operation is to delete the delete operation of track 52.At this point, Fig. 9 becomes Figure 10.Figure 10 is this The 7th display schematic diagram that inventive embodiments three provide.Track 53 to be selected is shown after responding person's handwriting control operation with reference to Figure 10. Further, the targeted graphical of track 53 to be selected is determined, at this point, targeted graphical is figure 51.Meanwhile it will be complete in targeted graphical Portion track is denoted as handwriting trace.At this point, handwriting trace and track 53 to be selected are identical track.Later, targeted graphical is determined First nodal point 511.Meanwhile determining the second central point 531 of the minimum circumscribed rectangle of handwriting trace.Mobile targeted graphical, with It is overlapped first nodal point 511 and the second central point 531.At this point, Figure 10 becomes Figure 11.Figure 11 is that the embodiment of the present invention three provides The 8th display schematic diagram.Further, the line of each tracing point and the second central point 531 is determined.Later, figure 51 is reduced To minimum dimension.At this point, Figure 11 becomes Figure 12.Figure 12 is the 9th display schematic diagram that the embodiment of the present invention three provides.With reference to figure 12, figure 54 is the minimum dimension figure of figure 51.Further, the line of each tracing point and the intersection point of figure 54 are determined.It will Each tracing point is denoted as second distance at a distance from the second central point 531, by the corresponding intersection point of each tracing point and the second central point 531 Distance be denoted as first distance.The ratio for calculating each first distance and corresponding second distance obtains second distance ratio.Later, Select the smallest second distance ratio of numerical value.In Figure 12, the numerical value for setting the corresponding second distance ratio of tracing point 55 is minimum.Later, The inverse of the corresponding second distance ratio of tracing point 55 is taken, and the inverse is multiplied with minimum drawdown ratio, and using the product as diminution Dimension data.Later, the figure 51 in Figure 11 is reduced according to minification data, obtains Figure 13.At this point, compared to figure White space in 11, Figure 13 in figure 51 is obviously reduced, i.e., on the basis of integration, realizes targeted graphical and follow writing rail The adjustment of mark and synchronous adjustment.It should be noted that, by above-mentioned calculating, can be directly transitioned by Figure 10 in practical application The process of Figure 13, Figure 11-Figure 12 are hind computation process, and each central point will not be shown in display screen in practical application.
It is above-mentioned, track to be selected is shown by response person's handwriting control operation, and according to path matching targeted graphical to be selected, and will Whole tracks in targeted graphical are as handwriting trace.Later, mobile targeted graphical so that the first nodal point of targeted graphical and Second central point of the minimum circumscribed rectangle of handwriting trace is overlapped.Later.Determine each tracing point and the second center in handwriting trace The line of point, and obtains each tracing point and the intersection point for being reduced to the smallest targeted graphical according to the line, later, according to intersection point and the The minimum second distance ratio and minimum of the second distance of the first distance of two central points and corresponding tracing point and the second central point Drawdown ratio obtains minification data, and the technological means of the dimension data according to minification data point reuse targeted graphical, real When having showed the deleted handwriting trace in targeted graphical, removal or having reduced, targeted graphical adaptively reduces, to guarantee to have included Whole handwriting trace, and reduce the white space in targeted graphical, the aesthetics and reasonability of display content are increased, is mentioned The high utilization rate of display area, and it is not necessarily to user's manual modification targeted graphical or handwriting trace, improve integration efficiency and use Family usage experience.Meanwhile being overlapped the central point of targeted graphical and handwriting trace, not only guarantee aesthetics, is also convenient for subsequent meter Calculate size adjusting data.Line based on each tracing point and central point, the determining intersection point with targeted graphical, and then according to each intersection point Size adjusting data are obtained with the second distance of the first distance of central point and each tracing point and central point, it is ensured that are reduced The accuracy of targeted graphical, i.e. guarantee handwriting trace are located in the enclosed region of targeted graphical, in turn avoid handwriting trace and moved Except causing the situation that white space is excessive in enclosed region after targeted graphical.
Example IV
Figure 14 is a kind of structural schematic diagram for graphic processing facility based on handwriting trace that the embodiment of the present invention four provides. With reference to Figure 14, being somebody's turn to do the graphic processing facility based on handwriting trace includes: person's handwriting display module 601 and size adjustment module 602.
Wherein, person's handwriting display module 601, for the person's handwriting control operation in response to receiving, display at least one is write At least one tracing point of track, the handwriting trace is located in the enclosed region of targeted graphical, and the targeted graphical is to have shown The polygon shown;Size adjustment module 602, for adjusting the dimension data of the targeted graphical, so that the targeted graphical packet Enclose and/or adapt to the distribution of the handwriting trace.
It is above-mentioned, by the person's handwriting control operation in response to receiving, show at least one handwriting trace, wherein write rail At least one tracing point of mark is located in the enclosed region of targeted graphical, at this point, the ruler for the targeted graphical that synchronous adjustment has been displayed Very little data, so that targeted graphical surrounds and/or adapt to the technological means of the distribution of handwriting trace.It solves for writing rail The low technical problem of the integration efficiency of mark and figure realizes the variation synchronous self-adapting that figure follows handwriting trace distribution It zooms in or out, improves the usage experience of user, and ensure that the rational deployment and aesthetics of display content.
On the basis of the above embodiments, size adjustment module 602 includes: increasing unit, for increasing the target figure The dimension data of shape, so that the targeted graphical surrounds and/or adapt to the distribution of the handwriting trace;And/or reduce single Member, for reducing the dimension data of the targeted graphical, so that the targeted graphical surrounds and/or adapt to the handwriting trace Distribution.
On the basis of the above embodiments, if increasing unit is specifically used in the handwriting trace, there are tracing points to be located at institute The outside of targeted graphical is stated, then increases the dimension data of the targeted graphical.
On the basis of the above embodiments, if the minimum circumscribed rectangle that reduction unit is specifically used for the handwriting trace is less than History minimum circumscribed rectangle, then reduce the dimension data of the targeted graphical, and the history minimum circumscribed rectangle is to receive person's handwriting The minimum circumscribed rectangle of the handwriting trace before control operates.
On the basis of the above embodiments, if the tracing point total quantity that reduction unit is specifically used for the handwriting trace is less than Historical track point total quantity, then reduce the dimension data of the targeted graphical, and the historical track point total quantity is to receive person's handwriting The tracing point total quantity of the handwriting trace before control operates.
It on the basis of the above embodiments, further include figure mobile module, for adjusting the size number of the targeted graphical According to before, the targeted graphical is moved, so that the second central point weight of the first nodal point of the targeted graphical and target rectangle It closes, the target rectangle is the minimum circumscribed rectangle of the handwriting trace.
On the basis of the above embodiments, size adjustment module 602 includes: line determination unit, for determining the book Write the line of each tracing point and second central point in track;Intersection point calculation unit, it is corresponding for calculating each line Intersection point, the intersection point are the nearest crosspoint of straight line and the targeted graphical where respective gut;Metrics calculation unit, based on Calculate the first distance of each intersection point and second central point and the second distance of each tracing point and second central point; Data determination unit, for obtaining size adjusting data according to first distance and second distance, the size adjusting data are to put Large-size data or minification data;Figure adjustment unit, for according to the size adjusting data point reuse targeted graphical Dimension data.
On the basis of the above embodiments, the size adjusting data are up-sizing data, and data determination unit includes: First distance is than computation subunit, for calculating the first distance ratio of each first distance and corresponding second distance;First number Value selection subelement, for selecting the smallest first distance ratio of numerical value in all first distance ratios;Amplification data determines Subelement, for using the inverse of the smallest first distance ratio of the numerical value as up-sizing data.
On the basis of the above embodiments, the size adjusting data are minification data, and intersection point calculation unit is specific It include: pattern reduction subelement, for the dimension data of the targeted graphical to be contracted to minimum dimension data, intersection point determines son Unit, the intersection point for the targeted graphical after determining each line and reducing;Correspondingly, the figure adjustment unit is specifically used In: the dimension data of the targeted graphical before being reduced according to the minification data point reuse.
On the basis of the above embodiments, data determination unit includes: second distance than computation subunit, each for calculating The second distance ratio of the first distance and corresponding second distance;Second value selects subelement, for all described second Distance selects the smallest second distance ratio of numerical value than in;Product subelement, for falling for the smallest second distance ratio of evaluation The product of several and minimum drawdown ratio, to obtain minification data, before the minimum drawdown ratio is minimum dimension data and reduces The ratio of the dimension data of targeted graphical.
On the basis of the above embodiments, person's handwriting display module 601 includes: track display unit to be selected, in response to The person's handwriting control operation received, shows track to be selected;Graphic Pattern Matching unit is matched to targeted graphical, the mesh for confirming It include at least one tracing point of the track to be selected in the enclosed region for shape of marking on a map;Person's handwriting acquiring unit, it is described for obtaining There is at least one tracing point and be located at the mesh in whole tracks in targeted graphical, any bar track in the whole tracks In the enclosed region for shape of marking on a map;Target determination unit, for whole tracks to be determined as handwriting trace.
On the basis of the above embodiments, person's handwriting control operation include: write operation, delete operation, moving operation and At least one of zoom operations.
Graphic processing facility provided in an embodiment of the present invention based on handwriting trace is included in the figure based on handwriting trace It in processing equipment, and can be used for executing the graphic processing method based on handwriting trace that above-mentioned any embodiment provides, have phase The function and beneficial effect answered.
Embodiment five
Figure 15 is a kind of structural schematic diagram for graphic processing apparatus based on handwriting trace that the embodiment of the present invention five provides. As shown in figure 15, being somebody's turn to do the graphic processing apparatus based on handwriting trace includes processor 70, memory 71, input unit 72, output Device 73 and display screen 74;The quantity of processor 70 can be one or more in graphic processing apparatus based on handwriting trace It is a, in Figure 15 by taking a processor 70 as an example;The quantity of display screen 74 can be in graphic processing apparatus based on handwriting trace One or more, in Figure 15 by taking a display screen 74 as an example;Processor 70 in graphic processing apparatus based on handwriting trace is deposited Reservoir 71, input unit 72, output device 73 and display screen 74 can be connected by bus or other modes, with logical in Figure 15 It crosses for bus connection.
Memory 71 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as the corresponding program instruction of the graphic processing method based on handwriting trace/module (example in the embodiment of the present invention Such as, the person's handwriting display module 601 and size adjustment module 602 in the graphic processing facility based on handwriting trace).Processor 70 is logical Software program, instruction and module that operation is stored in memory 71 are crossed, thereby executing the graphics process based on handwriting trace The various function application and data processing of equipment realize the above-mentioned graphic processing method based on handwriting trace.
Memory 71 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area can be stored according to the graphic processing apparatus based on handwriting trace Use created data etc..In addition, memory 71 may include high-speed random access memory, it can also include non-volatile Property memory, a for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.Some In example, memory 71 can further comprise the memory remotely located relative to processor 70, these remote memories can be with Pass through network connection to the graphic processing apparatus based on handwriting trace.The example of above-mentioned network includes but is not limited to internet, enterprise Industry intranet, local area network, mobile radio communication and combinations thereof.
Input unit 72 can be used for receiving the number or character information of input, and generate and the figure based on handwriting trace The related key signals input of the user setting and function control of processing equipment.Output device 73 may include that the audios such as loudspeaker are defeated Equipment out.Display screen 74 is the display screen with touch function, can be capacitance plate, electromagnetic screen or infrared screen.Optionally, It further include infrared touch frame when display screen 74 is infrared screen, which is arranged in the surrounding of display screen 74, also It can be used for receiving infrared signal, and the infrared signal be sent to processor 70 or other equipment.Display screen 74 is for showing Show that handwriting trace and targeted graphical, at least one tracing point of handwriting trace are located in the enclosed region of targeted graphical.Meanwhile also Other contents can be shown according to the instruction of processor.
In the present embodiment, the graphic processing apparatus based on handwriting trace can be interactive intelligent tablet computer.
The above-mentioned graphic processing apparatus based on handwriting trace includes the graphic processing facility based on handwriting trace, be can be used for It executes arbitrarily based on the graphic processing method of handwriting trace, has corresponding function and beneficial effect.
Embodiment six
The embodiment of the present invention also provides a kind of storage medium comprising computer executable instructions, and the computer is executable It instructs when being executed by computer processor for executing a kind of graphic processing method based on handwriting trace, this method comprises:
It is operated in response to the person's handwriting control received, at least one handwriting trace of display, at least the one of the handwriting trace A tracing point is located in the enclosed region of targeted graphical, and the targeted graphical is the polygon having been displayed;
The dimension data of the targeted graphical is adjusted, so that the targeted graphical surrounds and/or adapt to the handwriting trace Distribution.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The method operation that executable instruction is not limited to the described above can also be performed provided by any embodiment of the invention based on writing Relevant operation in the graphic processing method of track.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of the above-mentioned graphic processing facility based on handwriting trace, included each list Member and module are only divided according to the functional logic, but are not limited to the above division, as long as can be realized corresponding Function;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, it is not intended to restrict the invention Protection scope.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (15)

1. a kind of graphic processing method based on handwriting trace characterized by comprising
In response to the person's handwriting control operation received, at least one handwriting trace, at least one rail of the handwriting trace are shown Mark point is located in the enclosed region of targeted graphical, and the targeted graphical is the polygon having been displayed;
The dimension data of the targeted graphical is adjusted, so that the targeted graphical surrounds and/or adapt to point of the handwriting trace Cloth range.
2. the graphic processing method according to claim 1 based on handwriting trace, which is characterized in that the adjustment mesh The dimension data for shape of marking on a map includes:
Increase the dimension data of the targeted graphical;And/or
Reduce the dimension data of the targeted graphical.
3. the graphic processing method according to claim 2 based on handwriting trace, which is characterized in that described to increase the mesh The dimension data for shape of marking on a map includes:
If being located at outside the enclosed region of the targeted graphical in the handwriting trace there are tracing point, increase the targeted graphical Dimension data.
4. the graphic processing method according to claim 2 based on handwriting trace, which is characterized in that described to reduce the mesh The dimension data for shape of marking on a map includes:
If the minimum circumscribed rectangle of the handwriting trace is less than history minimum circumscribed rectangle, reduce the size of the targeted graphical Data, the history minimum circumscribed rectangle are to receive the minimum circumscribed rectangle of the handwriting trace before person's handwriting control operates.
5. the graphic processing method according to claim 2 based on handwriting trace, which is characterized in that described to reduce the mesh The dimension data for shape of marking on a map includes:
If the tracing point total quantity of the handwriting trace is less than historical track point total quantity, reduce the size of the targeted graphical Data, the historical track point total quantity are to receive the tracing point total quantity of the handwriting trace before person's handwriting control operates.
6. the graphic processing method according to claim 2 based on handwriting trace, which is characterized in that the adjustment mesh Before the dimension data for shape of marking on a map, further includes:
The mobile targeted graphical, so that the first nodal point of the targeted graphical is overlapped with the second central point of target rectangle, The target rectangle is the minimum circumscribed rectangle of the handwriting trace.
7. the graphic processing method according to claim 6 based on handwriting trace, which is characterized in that the adjustment mesh The dimension data for shape of marking on a map includes:
Determine the line of each tracing point and second central point in the handwriting trace;
The corresponding intersection point of each line is calculated, the intersection point is the nearest phase of straight line and the targeted graphical where respective gut Intersection point;
Calculate each intersection point and second central point first distance and each tracing point and second central point the Two distances;
Size adjusting data are obtained according to first distance and second distance, the size adjusting data are up-sizing data or contracting Data of small size;
According to the dimension data of the size adjusting data point reuse targeted graphical.
8. the graphic processing method according to claim 7 based on handwriting trace, which is characterized in that the size adjusting number According to for up-sizing data,
It is described size adjusting data are obtained according to first distance and second distance to include:
Calculate the first distance ratio of each first distance and corresponding second distance;
In all first distance ratios, the smallest first distance ratio of numerical value is selected;
Using the inverse of the smallest first distance ratio of the numerical value as up-sizing data.
9. the graphic processing method according to claim 7 based on handwriting trace, which is characterized in that the size adjusting number According to for reduce the size data,
The corresponding intersection point of each line that calculates includes:
The dimension data of the targeted graphical is contracted to minimum dimension data;
The intersection point of targeted graphical after determining each line and reducing;
The dimension data according to the size adjusting data point reuse targeted graphical includes:
The dimension data of targeted graphical before being reduced according to the minification data point reuse.
10. the graphic processing method according to claim 9 based on handwriting trace, which is characterized in that described according to first Distance and second distance obtain size adjusting data
Calculate the second distance ratio of each first distance and corresponding second distance;
In all second distance ratios, the smallest second distance ratio of numerical value is selected;
The product of the inverse of the smallest second distance ratio of evaluation and minimum drawdown ratio, it is described to obtain minification data The ratio of the dimension data of targeted graphical before minimum drawdown ratio is minimum dimension data and reduces.
11. the graphic processing method according to claim 1 based on handwriting trace, which is characterized in that described in response to connecing The person's handwriting control operation received, at least one handwriting trace of display include:
In response to the person's handwriting control operation received, track to be selected is shown;
Confirmation is matched to targeted graphical, includes at least one track of the track to be selected in the enclosed region of the targeted graphical Point;
Whole tracks in the targeted graphical are obtained, any bar track in the whole track has at least one track Point is located in the enclosed region of the targeted graphical;
Whole tracks are determined as handwriting trace.
12. based on the graphic processing method of handwriting trace according to claim 1 or described in 11, which is characterized in that the person's handwriting Control operation includes: at least one of write operation, delete operation, moving operation and zoom operations.
13. a kind of graphic processing facility based on handwriting trace characterized by comprising
Person's handwriting display module shows at least one handwriting trace, the writing for the person's handwriting control operation in response to receiving At least one tracing point of track is located in the enclosed region of targeted graphical, and the targeted graphical is the polygon having been displayed;
Size adjustment module, for adjusting the dimension data of the targeted graphical, so that the targeted graphical is surrounded and/or adapted to The distribution of the handwriting trace.
14. a kind of graphic processing apparatus based on handwriting trace characterized by comprising
One or more processors;
Memory, for storing one or more programs;
Display screen, for showing that handwriting trace and targeted graphical, at least one tracing point of the handwriting trace are located at target figure In the enclosed region of shape;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now graphic processing method based on handwriting trace as described in any in claim 1-12.
15. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by For executing the graphic processing method based on handwriting trace as described in any in claim 1-12 when computer processor executes.
CN201910298975.XA 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium Active CN110069204B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910298975.XA CN110069204B (en) 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium
PCT/CN2019/127818 WO2020211438A1 (en) 2019-04-15 2019-12-24 Graphic processing method, apparatus, and device based on writing trajectory, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910298975.XA CN110069204B (en) 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium

Publications (2)

Publication Number Publication Date
CN110069204A true CN110069204A (en) 2019-07-30
CN110069204B CN110069204B (en) 2021-12-03

Family

ID=67367706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910298975.XA Active CN110069204B (en) 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium

Country Status (2)

Country Link
CN (1) CN110069204B (en)
WO (1) WO2020211438A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716680A (en) * 2019-10-09 2020-01-21 广州视源电子科技股份有限公司 Control method and device of intelligent interactive panel
CN110941383A (en) * 2019-10-11 2020-03-31 广州视源电子科技股份有限公司 Double-screen display method, device, equipment and storage medium
CN110956674A (en) * 2019-10-23 2020-04-03 广州视源电子科技股份有限公司 Graph adjusting method, device, equipment and storage medium
CN111522492A (en) * 2020-04-30 2020-08-11 掌阅科技股份有限公司 Picture sliding display method, terminal and computer storage medium
WO2020211438A1 (en) * 2019-04-15 2020-10-22 广州视源电子科技股份有限公司 Graphic processing method, apparatus, and device based on writing trajectory, and storage medium
TWI711947B (en) * 2019-11-12 2020-12-01 奇勤科技股份有限公司 Information processing method for an electronic handwriting note to link video playing time and a video recording device
CN114995702A (en) * 2022-07-19 2022-09-02 深圳润方创新技术有限公司 Computer-aided display electronic drawing board for children and display method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177607B (en) * 2021-05-21 2023-01-31 浙江大华技术股份有限公司 Method for labeling training object and client
CN114047865B (en) * 2021-11-11 2023-04-25 四川长虹教育科技有限公司 Graphic control method
CN114640807B (en) * 2022-03-15 2024-01-16 京东科技信息技术有限公司 Video-based object statistics method, device, electronic equipment and storage medium
CN115100321A (en) * 2022-07-22 2022-09-23 泓宇星私人有限责任公司 Shape recognition and correction method and device based on hand-drawn track and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354749A (en) * 2007-07-24 2009-01-28 夏普株式会社 Method for making dictionary, hand-written input method and apparatus
CN102799367A (en) * 2012-06-29 2012-11-28 鸿富锦精密工业(深圳)有限公司 Electronic device and touch control method thereof
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
CN103543937A (en) * 2012-07-10 2014-01-29 义隆电子股份有限公司 Touch handwriting input method and device
US20170103046A1 (en) * 2015-10-07 2017-04-13 Holden Schroder System and method for providing personalized font via processor-based application
CN108834426A (en) * 2015-10-19 2018-11-16 迈思慧公司 The system and method for handwriting recognition in figure
CN108845757A (en) * 2018-07-17 2018-11-20 广州视源电子科技股份有限公司 A kind of touch control input method and device, computer readable storage medium, intelligent interaction plate of intelligent interaction plate

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866856B (en) * 2012-09-05 2015-01-07 鸿富锦精密工业(深圳)有限公司 Method and device for processing hand-writing input handwritings
CN110045909B (en) * 2019-04-15 2021-01-22 广州视源电子科技股份有限公司 Ellipse processing method, device and equipment based on writing track and storage medium
CN110069204B (en) * 2019-04-15 2021-12-03 广州视源电子科技股份有限公司 Graph processing method, device and equipment based on writing track and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354749A (en) * 2007-07-24 2009-01-28 夏普株式会社 Method for making dictionary, hand-written input method and apparatus
CN102799367A (en) * 2012-06-29 2012-11-28 鸿富锦精密工业(深圳)有限公司 Electronic device and touch control method thereof
CN103543937A (en) * 2012-07-10 2014-01-29 义隆电子股份有限公司 Touch handwriting input method and device
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
US20170103046A1 (en) * 2015-10-07 2017-04-13 Holden Schroder System and method for providing personalized font via processor-based application
CN108834426A (en) * 2015-10-19 2018-11-16 迈思慧公司 The system and method for handwriting recognition in figure
CN108845757A (en) * 2018-07-17 2018-11-20 广州视源电子科技股份有限公司 A kind of touch control input method and device, computer readable storage medium, intelligent interaction plate of intelligent interaction plate

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020211438A1 (en) * 2019-04-15 2020-10-22 广州视源电子科技股份有限公司 Graphic processing method, apparatus, and device based on writing trajectory, and storage medium
CN110716680A (en) * 2019-10-09 2020-01-21 广州视源电子科技股份有限公司 Control method and device of intelligent interactive panel
WO2021068367A1 (en) * 2019-10-09 2021-04-15 广州视源电子科技股份有限公司 Control method and apparatus for intelligent interactive panel
CN110716680B (en) * 2019-10-09 2021-05-07 广州视源电子科技股份有限公司 Control method and device of intelligent interactive panel
CN110941383A (en) * 2019-10-11 2020-03-31 广州视源电子科技股份有限公司 Double-screen display method, device, equipment and storage medium
CN110956674A (en) * 2019-10-23 2020-04-03 广州视源电子科技股份有限公司 Graph adjusting method, device, equipment and storage medium
CN110956674B (en) * 2019-10-23 2022-01-21 广州视源电子科技股份有限公司 Graph adjusting method, device, equipment and storage medium
TWI711947B (en) * 2019-11-12 2020-12-01 奇勤科技股份有限公司 Information processing method for an electronic handwriting note to link video playing time and a video recording device
CN111522492A (en) * 2020-04-30 2020-08-11 掌阅科技股份有限公司 Picture sliding display method, terminal and computer storage medium
CN114995702A (en) * 2022-07-19 2022-09-02 深圳润方创新技术有限公司 Computer-aided display electronic drawing board for children and display method

Also Published As

Publication number Publication date
CN110069204B (en) 2021-12-03
WO2020211438A1 (en) 2020-10-22

Similar Documents

Publication Publication Date Title
CN110069204A (en) Graphic processing method, device, equipment and storage medium based on handwriting trace
CN110716680B (en) Control method and device of intelligent interactive panel
CN110045909A (en) Oval processing method, device, equipment and storage medium based on handwriting trace
WO2019140987A1 (en) Table control method, device, apparatus, and storage medium
JP4028031B2 (en) Method for transforming curve of arbitrary shape link and method for maintaining topology of node link diagram
JPH05330289A (en) Electronic blackboard device
WO2021068366A1 (en) Writing operation method and device for intelligent interactive whiteboard, apparatus, and storage medium
CN108304132B (en) Graph display method, device, equipment and storage medium
CN109189532A (en) Control column display methods, device, equipment and the storage medium of electronic whiteboard
CN109032446A (en) Node contacts generation method, device, equipment and the storage medium of mind map
CN108958861A (en) Object displaying method, equipment and storage medium based on text control
KR20170033757A (en) Touch screen device for moving or copying of an object based on the touch input and operating method thereof
KR20230153488A (en) Image processing methods, devices, devices, and storage media
CN103530021A (en) Entity selection method and device in drawing
EP2767897A2 (en) Method for generating writing data and an electronic device thereof
WO2019218622A1 (en) Element control method, apparatus, and device, and storage medium
CN110297558A (en) Multiple point touching control method, device, intelligent interaction plate and storage medium
CN110286827A (en) A kind of element zoom control method, device, equipment and storage medium
CN107977147A (en) Sliding trace display methods and device
JP2016157201A (en) Information processing apparatus, operation cancelling method, computer program, and storage medium
CN113849106B (en) Page turning handwriting processing method, device, electronic device and storage medium
CN116490845A (en) Thinking guide adjustment method, storage medium and device
JP2019139332A (en) Information processor, information processing method and information processing program
CN111552432B (en) Screen operation system and method for electronic equipment
JP6456203B2 (en) Information processing apparatus, information processing program, and information processing method

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