CN107025211B - Copy ruler suspension control method and device for font analysis - Google Patents
Copy ruler suspension control method and device for font analysis Download PDFInfo
- Publication number
- CN107025211B CN107025211B CN201710308707.2A CN201710308707A CN107025211B CN 107025211 B CN107025211 B CN 107025211B CN 201710308707 A CN201710308707 A CN 201710308707A CN 107025211 B CN107025211 B CN 107025211B
- Authority
- CN
- China
- Prior art keywords
- grid
- copy
- ruler
- interface
- font
- 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.)
- Expired - Fee Related
Links
- 239000000725 suspension Substances 0.000 title claims abstract description 185
- 238000004458 analytical method Methods 0.000 title claims abstract description 94
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000012544 monitoring process Methods 0.000 claims abstract description 15
- 239000011159 matrix material Substances 0.000 description 9
- 230000002996 emotional effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 241000209094 Oryza Species 0.000 description 4
- 235000007164 Oryza sativa Nutrition 0.000 description 4
- 230000008602 contraction Effects 0.000 description 4
- 235000009566 rice Nutrition 0.000 description 4
- 238000005452 bending Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000008451 emotion Effects 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 238000010422 painting Methods 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 241000124033 Salix Species 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention belongs to the technical field of computers, and provides a copy ruler suspension control method and device for font analysis. The method comprises the steps of receiving a font analysis instruction, generating and displaying a suspension button, setting view window parameters and transparency, displaying a suspended interface of the copying ruler, monitoring the touch condition of a screen, recording the number of touch points of the screen, the coordinates of the touch points of the screen and the touch time period, calculating the number of the touch points of the screen and the coordinates of the touch points of the screen in the touch time period, acquiring a second touch area or a sliding track to close or zoom the suspended interface of the copying ruler, and checking a font to be analyzed according to a grid in the suspended interface of the copying ruler to form a font analysis result. The copy ruler suspension control method and the copy ruler suspension control device for font analysis can be used for observing and analyzing fonts of different styles, and are high in font analysis precision and flexibility and wide in application range.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a copy ruler suspension control method and device for font analysis.
Background
During the copying study of calligraphy and painting, most of them need the tool for copying calligraphy and painting. In the traditional mode, most of the calligraphy models are analyzed by paper nine-square grids or rice character grids, calligraphy teaching is carried out, only fonts written in the specified nine-square grids or rice character grids can be analyzed, and the application range is narrow. The precision of the length, thickness, position, angle and proportion of the strokes of the fonts and the structure of the frame, and the precision of the word spacing and line spacing of the space and chapter layout are important factors for a writer to master Chinese characters, and the traditional font copying mode cannot meet the requirements of users.
Traditional typeface mode of copying lacks the observation analysis to target works ration or semiquantitative, and the user is at the copy in-process, and the user can't obtain the systematic judgement of copying the typeface, can't construct accurate image fast to the typeface that has copied, leads to the inefficiency of copying, and is interesting poor. In addition, the traditional font copying mode has limited font style, and a user needs to prepare a plurality of copybooks, so the carrying is inconvenient.
Meanwhile, APP software brings great convenience to life of people, but based on equipment such as a mobile terminal, a PC (personal computer) terminal or a platform, few tools for font analysis are provided, the precision of observation and analysis is limited, and the flexibility is poor.
How to observe and analyze fonts with different styles, improve the precision and flexibility of font analysis and widen the application range is a problem which needs to be solved urgently by technical personnel in the field.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a copy ruler suspension control method and device for font analysis, which can be used for observing and analyzing fonts of different styles, and have the advantages of high font analysis precision and flexibility and wide application range.
In a first aspect, the present invention provides a copy ruler suspension control method for font analysis, including: acquiring a font analysis instruction;
generating a copy ruler suspension interface according to the font analysis instruction, and preloading a standard grid in the copy ruler suspension interface;
and analyzing the pre-acquired fonts according to the standard grids to form font analysis results.
The invention provides another copy ruler suspension control method for font analysis, which comprises the following steps:
a suspension button generating step: receiving a font analysis instruction;
generating and displaying a suspension button according to the font analysis instruction;
a copy ruler suspension interface display step: acquiring a font to be analyzed;
judging whether the pre-received first touch area is in the coordinate range of the suspension button or not, and if so, setting view window parameters and transparency;
displaying a copy ruler suspension interface according to the view window parameters and the transparency;
touch monitoring: monitoring the screen touch condition, and recording the number of screen touch points, the coordinates of the screen touch points and the touch time period, wherein the number of the screen touch points and the coordinates of the screen touch points are determined according to the fonts to be analyzed;
touch information calculation: calculating the number of screen touch points and the coordinates of the screen touch points in a touch time period, and acquiring a second touch area or a sliding track;
copy chi suspension interface adjustment step: judging whether the second touch area is in the coordinate range of the suspension button or not, and if so, closing the suspension interface of the copy ruler;
judging the number of the sliding tracks, if the sliding tracks are one, moving the copy ruler suspension interface according to the sliding tracks, and if the sliding tracks are two, zooming the copy ruler suspension interface according to the sliding tracks;
font analysis: and checking the font to be analyzed according to the grid in the copy ruler suspension interface to form a font analysis result.
Further, if there are two sliding tracks, zooming the copy ruler suspended interface according to the sliding tracks, which specifically includes:
detecting a starting point and an end point of each sliding track;
calculating the starting point distance and the end point distance of the two sliding tracks;
obtaining a scaling ratio according to the starting point distance and the end point distance;
and zooming the copy ruler suspended interface according to the zooming proportion.
In the foregoing embodiment of the copy ruler floating control method based on any font analysis, further, after the copy ruler floating interface is displayed, before the font to be analyzed is checked according to the grid in the copy ruler floating interface, the method further includes:
setting grid instruction receiving time and receiving a target grid display instruction;
if the target grid display instruction is received within the grid instruction receiving time, setting the target grid display instruction as a first grid display instruction;
if the target grid display instruction is not received within the grid instruction receiving time, generating a second grid display instruction;
displaying a copy ruler suspension interface according to the view window parameters and the transparency, which specifically comprises the following steps:
and displaying a copy ruler suspension interface according to the first grid display instruction or the second grid display instruction and the view window parameter and the transparency.
Further, according to the first grid display instruction or the second grid display instruction, according to the view window parameter and the transparency, a copy ruler suspension interface is displayed, which specifically includes:
according to the first grid display instruction, calling the first grid, loading the first grid to the copying ruler suspension interface, and hiding a second grid in the copying ruler suspension interface;
or calling the second grid according to the second grid display instruction and loading the second grid to the copy ruler suspension interface;
and displaying the copy ruler suspension interface loaded with the first grid or the second grid according to the view window parameters and the transparency.
In the foregoing embodiment of the copy ruler floating control method based on any font analysis, further, after moving or zooming the copy ruler floating interface, the method further includes:
acquiring a projection instruction and a target area;
setting a brightness parameter according to the projection instruction;
adjusting a projection angle according to the target area;
and projecting the moving or zooming copy ruler suspension interface to a target area according to the brightness parameter and the projection angle.
In a second aspect, the present invention provides a copy ruler suspension control method for font analysis, the apparatus includes a suspension button generation module, a copy ruler suspension interface display module, a touch monitoring module, a touch information calculation module, a copy ruler suspension interface adjustment module, and a font analysis module. The suspension button generation module is used for receiving the font analysis instruction and generating and displaying the suspension button according to the font analysis instruction. The copying ruler suspension interface display module is used for obtaining fonts to be analyzed, judging whether a pre-received first touch area is in the coordinate range of the suspension button or not, if so, setting view window parameters and transparency, and displaying a copying ruler suspension interface according to the view window parameters and the transparency. The touch monitoring module is used for monitoring the touch condition of the screen, recording the number of the touch points of the screen, the coordinates of the touch points of the screen and the touch time period, wherein the number of the touch points of the screen and the coordinates of the touch points of the screen are determined according to the fonts to be analyzed. The touch information calculation module is used for calculating the number of the screen touch points and the coordinates of the screen touch points in the touch time period and acquiring a second touch area or a sliding track. The copy ruler suspension interface adjusting module is used for judging whether the second touch area is in the coordinate range of the suspension button or not, if so, the copy ruler suspension interface is closed, the number of sliding tracks is judged, if the sliding tracks are one, the copy ruler suspension interface is moved according to the sliding tracks, and if the sliding tracks are two, the copy ruler suspension interface is zoomed according to the sliding tracks. And the font analysis module is used for detecting the font to be analyzed according to the grid in the copy ruler suspension interface to form a font analysis result.
Further, the copy ruler suspension interface adjusting module is specifically configured to, when the sliding track is two, zoom the copy ruler suspension interface according to the sliding track: detecting the starting point and the end point of each sliding track, calculating the distance between the starting point and the end point of the two sliding tracks, obtaining a scaling according to the distance between the starting point and the end point, and scaling the suspended interface of the copy ruler according to the scaling.
The copy ruler suspension control device embodiment based on the above arbitrary font analysis further comprises a grid instruction determining module: the grid display control device is used for setting grid instruction receiving time, receiving a target grid display instruction, setting the target grid display instruction as a first grid display instruction if the target grid display instruction is received within the grid instruction receiving time, and generating a second grid display instruction if the target grid display instruction is not received within the grid instruction receiving time. When the copy ruler suspended interface display module displays the copy ruler suspended interface according to the view window parameters and the transparency, the copy ruler suspended interface display module is specifically used for: and displaying a copy ruler suspension interface according to the first grid display instruction or the second grid display instruction and the view window parameter and the transparency.
Further, the copy ruler suspended interface display module is specifically configured to, when displaying the copy ruler suspended interface according to the first grid display instruction or the second grid display instruction and according to the view window parameter and the transparency,: and calling the first grid and loading the first grid to a copy ruler suspension interface according to the first grid display instruction, and hiding the second grid in the copy ruler suspension interface, or calling the second grid and loading the second grid to the copy ruler suspension interface according to the second grid display instruction, and displaying the copy ruler suspension interface loaded with the first grid or the second grid according to the view window parameters and the transparency.
The embodiment of the copy ruler suspension control device based on any font analysis further comprises a projection control module, wherein the projection control module is used for acquiring a projection instruction and a target area, setting a brightness parameter according to the projection instruction, adjusting a projection angle according to the target area, and projecting a moving or zoomed copy ruler suspension interface to the target area according to the brightness parameter and the projection angle.
According to the technical scheme, the copy ruler suspension interface is displayed by setting the view window parameters and the transparency of the copy ruler suspension interface, and the copy ruler suspension interface is adjusted according to the position of the font to be analyzed, so that the precision of font analysis is improved, a clear and accurate image can be constructed by a user, and the learning efficiency is improved.
In addition, the method adjusts the matching degree of the copy ruler suspension interface and the fonts to be analyzed according to the touch condition of the screen, is suitable for fonts of different styles, can suspend the copy ruler suspension interface on various application interfaces, and is high in flexibility and wide in application range.
Therefore, the copy ruler suspension control method and device for font analysis can be used for observing and analyzing fonts of different styles, and are high in font analysis precision and flexibility and wide in application range.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a flow chart of a method for copy ruler suspension control of font analysis according to the present invention;
fig. 2 shows a schematic structural diagram of a copy ruler suspension control device for font analysis according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
In a first aspect, an embodiment of the present invention provides a copy ruler suspension control method for font analysis, where the method includes: and acquiring a font analysis instruction.
And generating a copy ruler suspension interface according to the font analysis instruction, and preloading the standard grid in the copy ruler suspension interface.
And analyzing the pre-acquired fonts according to the standard grids to form font analysis results.
Another copy ruler suspension control method for font analysis provided in the embodiments of the present invention is applicable to a mobile terminal and a network platform having a touch screen, can run in an android system and an apple system, is compatible with multiple computer programming languages, and with reference to fig. 1, includes:
hover button generating step S1: a font analysis instruction is received.
And generating and displaying a floating button according to the font analysis instruction.
Copy ruler suspension interface display step S2: and acquiring the font to be analyzed.
And judging whether the pre-received first touch area is in the coordinate range of the suspension button, and if so, setting view window parameters and transparency.
And displaying the copy ruler suspension interface according to the view window parameters and the transparency.
Touch monitoring step S3: monitoring the touch condition of the screen, and recording the number of the touch points of the screen, the coordinates of the touch points of the screen and the touch time period, wherein the number of the touch points of the screen and the coordinates of the touch points of the screen are determined according to the fonts to be analyzed.
Touch information calculation step S4: and calculating the number of the screen touch points and the coordinates of the screen touch points in the touch time period, and acquiring a second touch area or a sliding track.
Copy ruler suspension interface adjusting step S5: and judging whether the second touch area is in the coordinate range of the floating button, and if so, closing the floating interface of the copy ruler.
And judging the number of the sliding tracks, if the sliding tracks are one, moving the copy ruler suspension interface according to the sliding tracks, and if the sliding tracks are two, zooming the copy ruler suspension interface according to the sliding tracks.
Font analysis step S6: and (4) checking the font to be analyzed according to the grid in the suspension interface of the copy ruler to form a font analysis result, such as the frame structure, stroke angle, length, thickness, position and the like of the analyzed font.
According to the technical scheme, the copy ruler suspension control method for font analysis displays the copy ruler suspension interface by setting the view window parameters and the transparency of the copy ruler suspension interface, and adjusts the copy ruler suspension interface according to the position of the font to be analyzed so as to improve the accuracy of font analysis, help a user to construct clear and accurate images and improve the learning efficiency.
In addition, the method adjusts the matching degree of the copy ruler suspension interface and the fonts to be analyzed according to the touch condition of the screen, is suitable for fonts of different styles, can suspend the copy ruler suspension interface on various application interfaces, and is high in flexibility and wide in application range.
Therefore, the copy ruler suspension control method for font analysis can be used for observing and analyzing fonts of different styles, and is high in font analysis precision and flexibility and wide in application range.
In order to further improve the font analysis accuracy of the copy ruler suspension control method for font analysis of the embodiment, the specific implementation process of font verification is as follows:
and detecting the handwriting outline of the font to be analyzed. Determining the style of the character, such as color, face, European style, willow style, Zhao style, etc., according to the handwriting outline. And calling a standard handwriting font database of the font style according to the font style of the font, wherein the standard handwriting font database stores standard handwriting data of each common font written in different styles. And inquiring a standard handwriting font database according to the handwriting outline of the font to acquire the standard handwriting data of the font. And determining the central position of the standard handwriting data of the font according to the grid coordinates in the suspension interface of the copy ruler. Comparing the handwriting outline of the font to be analyzed with the standard handwriting data of the determined center position to form a font analysis result, such as checking the pen moving mode, the pen moving route, the length, the thickness, the position, the angle, the proportion, the pen tip and the like of the font.
The method determines the style of the font accurately and reliably by recognizing the outline of the font, then calls standard handwriting data of the font by adopting the writing style, determines the central position by copying grid coordinates in a ruler suspension interface so as to test the font, provides accurate and clear font results, strokes, thickness, angles and other analysis results for a user, and ensures the training efficiency of the user even if a professional calligraphy teacher is insufficient.
In the practical application process, the copy ruler suspension control method for font analysis of the embodiment can also integrate the writing habits of each user, and provide a font writing evaluation report for the user. Here, the description is given by using a large text in a picture format, and the specific processing procedure is as follows:
and processing the picture by adopting an image preprocessing mode to obtain preprocessed image information, for example, carrying out primary noise reduction processing on the picture by adopting a filtering and binarization method, and then eliminating puncture and holes at the edges of strokes to smooth the outline of the Chinese character. And extracting single characters from the image information to obtain the single characters, for example, completing segmentation of large-segment characters through projection histograms in two horizontal and vertical directions to obtain single character images, and performing normalization operation on the single character images to obtain the characters with consistent sizes. The method comprises the steps of extracting strokes of each character, detecting the handwriting outline of a character to be analyzed, extracting the strokes of each character based on the handwriting outline of each character, obtaining the strokes of each character, extracting the information of the central line, the width, the contraction speed and the curvature of each stroke of each character as the writing characteristics of the character, summarizing the data of the central line, the width, the contraction speed and the curvature of each character, and forming a central line matrix, a width matrix, a contraction speed matrix and a curvature matrix. And comparing the central line matrix, the width matrix, the contraction speed matrix and the curvature matrix with standard handwriting data of the same font style to generate a font writing evaluation report of the user.
The method constructs a matrix of writing characteristics by preprocessing and extracting strokes of paragraph characters, is beneficial to analyzing the pen moving force, writing speed or stroke bending degree and the like of a user during font writing, compares the pen moving force, writing speed or stroke bending degree and the like with standard handwriting data of the same font style, determines the writing habit of the user, and provides information basis for the user to correct bad writing habits.
In order to further improve the processing efficiency of the copy ruler suspension control method for font analysis in this embodiment, specifically, in terms of adjusting the copy ruler suspension interface, if there are two sliding tracks, the specific implementation manner is as follows: detecting the starting point and the end point of each sliding track, calculating the distance between the starting point and the end point of the two sliding tracks, obtaining a scaling according to the distance between the starting point and the end point, and scaling the suspended interface of the copy ruler according to the scaling. The method can be used for calculating the scaling and adjusting the size of the suspended interface of the copying ruler by combining the touch points when the user touches the screen, and is high in operation speed, convenient for the user to operate and high in flexibility.
Specifically, in the aspect of grid setting, after the copy ruler suspension interface is displayed, before the font to be analyzed is checked according to the grid in the copy ruler suspension interface, the method can also set the grid instruction receiving time and receive the target grid display instruction, if the target grid display instruction is received within the grid instruction receiving time, the target grid display instruction is set as the first grid display instruction, if the target grid display instruction is not received within the grid instruction receiving time, that is, the target grid display instruction corresponds to a default state, the second grid display instruction is generated, and the copy ruler suspension interface is displayed according to the view window parameters and the transparency according to the first grid display instruction or the second grid display instruction. For example, in the process of starting the application program, if the user specifies the type of the grid, the corresponding grid is displayed according to the specified grid display instruction. If the user does not specify the type of the grid, displaying the default grid so as to improve the control efficiency of the grid in the copy ruler suspension interface and facilitate the user to change the grid type according to the actual application condition.
And when the copy ruler suspension interface is displayed according to the first grid display instruction or the second grid display instruction and the view window parameter and the transparency, the specific implementation process is as follows: and calling the first grid and loading the first grid to a copy ruler suspension interface according to the first grid display instruction, and hiding the second grid in the copy ruler suspension interface, or calling the second grid and loading the second grid to the copy ruler suspension interface according to the second grid display instruction, and displaying the copy ruler suspension interface loaded with the first grid or the second grid according to the view window parameters and the transparency. Calling a rice grid, hiding a nine-palace grid and a comprehensive grid according to a pre-received rice grid display instruction, and displaying a copy ruler suspension interface according to the view window parameter and the transparency; or calling the nine-palace grid according to a pre-received nine-palace grid display instruction, hiding the Migong grid and the comprehensive grid, and displaying a copy ruler suspension interface according to the view window parameters and the transparency; or calling the comprehensive grid according to a pre-received comprehensive grid display instruction or a second grid display instruction in a default state, hiding the Migong grid and the Jiugong grid, and displaying a copy ruler suspension interface according to the view window parameters and the transparency.
When a user designates the grids, the method controls the grid types in the suspended interface of the copying ruler in a mode of calling the designated grids and hiding the undesignated grids, and when the grid type is in a default state, the method directly calls the grids in the default state for displaying, so that the timeliness of interface display can be improved, and the actual requirements of the user can be met.
In order to further widen the application range of the copy ruler suspension control method for font analysis in this embodiment, specifically, after moving or zooming the copy ruler suspension interface, the method can further obtain a projection instruction and a target region, set a brightness parameter according to the projection instruction, adjust a projection angle according to the target region, and project the moved or zoomed copy ruler suspension interface to the target region according to the brightness parameter and the projection angle. The method can also calculate the brightness parameter and the projection angle so as to project the copy ruler suspension interface to the target area, so that a user can analyze the fonts in the target area conveniently, a font analysis result is generated, the range of the analyzable fonts is widened, and the diversified requirements of the user are met.
In the practical application process, the copy ruler suspension control method for font analysis of the embodiment can also analyze the sound emitted by the user, determine the control instruction, and adjust the state of the copy ruler suspension interface. If sound information sent by the user is collected, the current emotional state of the user, such as four emotional states of relaxation, happiness, sadness and anger, is identified according to the sound information, and a corresponding emotional value is generated. And extracting the characteristics of the sound information to obtain characteristic information fragments. And performing voice recognition on each characteristic information segment to obtain a voice recognition result. And combining the voice recognition results according to the sequence of each characteristic information segment to obtain the control intention of the user, judging whether the control intention of the user is consistent with the current emotional state of the user, and calling an adjusting instruction according to the control intention of the user if the control intention of the user is consistent with the current emotional state of the user. The adjustment rate, such as the rate of movement, the rate of scaling, is determined based on the mood value. Adjusting the copy ruler suspended interface according to the adjusting instruction and the adjusting speed, wherein the adjusting instruction can be amplification, reduction and the like, and the copy ruler suspended interface is directly controlled to be zoomed according to the zooming speed determined by the emotion value; the adjusting instruction can also be left movement, right movement and the like, and the copy ruler suspension interface is controlled to move towards the corresponding direction according to the movement rate determined by the emotion value; the adjusting instruction can also be a stopping instruction, and the copy ruler suspension interface stops moving or zooming.
The method can perform feature extraction and voice recognition on the voice of the user by analyzing the voice of the user, determine the control intention of the user, rapidly call a control instruction and realize voice control of the copy ruler suspension interface. Meanwhile, the method can also determine the current emotional state of the user according to the voice of the user so as to match the corresponding adjustment rate, and is beneficial to improving the user experience.
In a second aspect, an embodiment of the present invention provides a copy ruler suspension control apparatus for font analysis, which, with reference to fig. 2, includes a suspension button generation module 1, a copy ruler suspension interface display module 2, a touch monitoring module 3, a touch information calculation module 4, a copy ruler suspension interface adjustment module 5, and a font analysis module 6, where the suspension button generation module 1 is configured to receive a font analysis instruction, and generate and display a suspension button according to the font analysis instruction. The copy ruler suspension interface display module 2 is used for acquiring fonts to be analyzed, judging whether the pre-received first touch area is in the coordinate range of the suspension button, if so, setting view window parameters and transparency, and displaying a copy ruler suspension interface according to the view window parameters and the transparency. The touch monitoring module 3 is used for monitoring the touch condition of the screen, recording the number of the screen touch points, the coordinates of the screen touch points and the touch time period, wherein the number of the screen touch points and the coordinates of the screen touch points are determined according to the fonts to be analyzed. The touch information calculation module 4 is configured to calculate the number of screen touch points and coordinates of the screen touch points within a touch time period, and acquire a second touch area or a sliding track. The copy ruler suspension interface adjusting module 5 is used for judging whether the second touch area is in the coordinate range of the suspension button, if so, closing the copy ruler suspension interface, judging the number of sliding tracks, if the sliding tracks are one, moving the copy ruler suspension interface according to the sliding tracks, and if the sliding tracks are two, zooming the copy ruler suspension interface according to the sliding tracks. The font analysis module 6 is used for checking the font to be analyzed according to the grid in the copy ruler suspension interface to form a font analysis result.
According to the technical scheme, the copy ruler suspension control device for font analysis displays the copy ruler suspension interface through setting the view window parameter and the transparency of the copy ruler suspension interface, and adjusts the copy ruler suspension interface according to the position of the font to be analyzed so as to improve the accuracy of font analysis, help a user to construct clear and accurate images and improve the learning efficiency.
And the device adjusts the matching degree of the copy ruler suspension interface and the character style to be analyzed according to the touch condition of the screen, is suitable for character styles, can suspend on various application interfaces, and has high flexibility and wide application range.
Therefore, the copy ruler suspension control device for font analysis of the embodiment can observe and analyze fonts of different styles, and is high in font analysis precision and flexibility and wide in application range.
In order to further improve the processing efficiency of the copy ruler suspension control apparatus for font analysis of this embodiment, specifically, in terms of adjusting the copy ruler suspension interface, the copy ruler suspension interface adjusting module 5 is specifically configured to, when the sliding track is two, zoom the copy ruler suspension interface according to the sliding track: detecting the starting point and the end point of each sliding track, calculating the distance between the starting point and the end point of the two sliding tracks, obtaining a scaling according to the distance between the starting point and the end point, and scaling the suspended interface of the copy ruler according to the scaling. Here, the copy ruler suspension interface adjusting module 5 can calculate the scaling ratio in combination with the touch point when the user touches the screen, and adjust the size of the copy ruler suspension interface, and has the advantages of high operation speed, convenience for the user to operate, and high flexibility.
Specifically, in the aspect of grid setting, the device further includes a grid instruction determining module, where the grid instruction determining module is configured to set a grid instruction receiving time, and receive a target grid display instruction, and set the target grid display instruction as a first grid display instruction if the target grid display instruction is received within the grid instruction receiving time, and generate a second grid display instruction if the target grid display instruction is not received within the grid instruction receiving time. When the copy ruler suspended interface display module 2 displays the copy ruler suspended interface according to the view window parameters and the transparency, the copy ruler suspended interface display module is specifically configured to: and displaying a copy ruler suspension interface according to the first grid display instruction or the second grid display instruction and the view window parameter and the transparency. For example, in the process of starting the application program, if the user specifies the type of the grid, the corresponding grid is displayed according to the specified grid display instruction. If the user does not specify the type of the grid, displaying the default grid so as to improve the control efficiency of the grid in the copy ruler suspension interface and facilitate the user to change the grid type according to the actual application condition.
Moreover, when the copy ruler suspended interface display module 2 displays the copy ruler suspended interface according to the first grid display instruction or the second grid display instruction and according to the view window parameter and the transparency, the method is specifically configured to: and calling the first grid and loading the first grid to a copy ruler suspension interface according to the first grid display instruction, and hiding the second grid in the copy ruler suspension interface, or calling the second grid and loading the second grid to the copy ruler suspension interface according to the second grid display instruction, and displaying the copy ruler suspension interface loaded with the first grid or the second grid according to the view window parameters and the transparency. When the user appoints the grid, this copy chi suspension interface display module 2 hides the mode of not appointing the grid through transferring appointed grid, controls the grid type in the copy chi suspension interface, and when acquiescence state, this copy chi suspension interface display module 2 directly transfers the grid of acquiescence state to show, can enough improve the ageing of interface display, can satisfy user's actual demand again.
In order to further widen the application range of the copy ruler suspension control device for font analysis in this embodiment, specifically, the copy ruler suspension control device for font analysis in this embodiment further includes a projection control module, configured to obtain a projection instruction and a target region, set a brightness parameter according to the projection instruction, adjust a projection angle according to the target region, and project a moved or scaled copy ruler suspension interface to the target region according to the brightness parameter and the projection angle. Here, the projection control module can also calculate a brightness parameter and a projection angle to project the copy ruler suspension interface to the target area, so that a user can analyze fonts in the target area conveniently, a font analysis result is generated, the range of analyzable fonts is widened, and diversified requirements of the user are met.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.
Claims (9)
1. A copy ruler suspension control method for font analysis is characterized by comprising the following steps:
a suspension button generating step: receiving a font analysis instruction;
generating and displaying a suspension button according to the font analysis instruction;
a copy ruler suspension interface display step: acquiring a font to be analyzed;
judging whether the pre-received first touch area is within the coordinate range of the suspension button or not, and if so, setting view window parameters and transparency;
displaying a copy ruler suspension interface according to the view window parameters and the transparency;
touch monitoring: monitoring the screen touch condition, and recording the number of screen touch points, the coordinates of the screen touch points and the touch time period, wherein the number of the screen touch points and the coordinates of the screen touch points are determined according to the fonts to be analyzed;
touch information calculation: calculating the number of screen touch points and the coordinates of the screen touch points in the touch time period, and acquiring a second touch area or a sliding track;
copy chi suspension interface adjustment step: judging whether the second touch area is in the coordinate range of the floating button or not, and if so, closing the floating interface of the copying ruler;
judging the number of the sliding tracks, if the sliding track is one, moving the copying ruler suspension interface according to the sliding track, and if the sliding track is two, zooming the copying ruler suspension interface according to the sliding track;
font analysis: and checking the font to be analyzed according to the grid in the copy ruler suspension interface to form a font analysis result.
2. The copy ruler hover control method for font analysis according to claim 1,
if the number of the sliding tracks is two, zooming the copy ruler suspended interface according to the sliding tracks, which specifically comprises:
detecting a starting point and an end point of each sliding track;
calculating the starting point distance and the end point distance of the two sliding tracks;
obtaining a scaling according to the starting point distance and the end point distance;
and zooming the copy ruler suspended interface according to the zooming scale.
3. The copy ruler hover control method for font analysis according to claim 1,
after the copy ruler floating interface is displayed, before the font to be analyzed is checked according to the grid in the copy ruler floating interface, the method further comprises the following steps:
setting grid instruction receiving time and receiving a target grid display instruction;
if a target grid display instruction is received within the grid instruction receiving time, setting the target grid display instruction as a first grid display instruction;
if the target grid display instruction is not received within the grid instruction receiving time, generating a second grid display instruction;
displaying a copy ruler suspension interface according to the view window parameters and the transparency, specifically comprising:
and displaying a copy ruler suspension interface according to the first grid display instruction or the second grid display instruction and the view window parameter and the transparency.
4. The copy ruler hover control method for font analysis according to claim 3,
displaying a copy ruler suspension interface according to the first grid display instruction or the second grid display instruction and the view window parameter and the transparency, specifically comprising:
according to the first grid display instruction, calling a first grid and loading the first grid to the copying ruler suspension interface, and hiding a second grid in the copying ruler suspension interface;
or calling a second grid according to the second grid display instruction and loading the second grid to the copy ruler suspension interface;
and displaying the copy ruler suspension interface loaded with the first grid or the second grid according to the view window parameters and the transparency.
5. The copy ruler hover control method for font analysis according to claim 1,
after moving or zooming the copy ruler hover interface, the method further includes:
acquiring a projection instruction and a target area;
setting a brightness parameter according to the projection instruction;
adjusting a projection angle according to the target area;
and projecting the moving or zooming copy ruler suspension interface to a target area according to the brightness parameter and the projection angle.
6. A copy ruler suspension control device for font analysis, comprising:
suspension button generation module: the font analysis device is used for receiving a font analysis instruction, and generating and displaying a floating button according to the font analysis instruction;
copy chi suspension interface display module: the font analysis device is used for acquiring fonts to be analyzed, judging whether a first pre-received touch area is in a coordinate range of the suspension button, if so, setting view window parameters and transparency, and displaying a copy ruler suspension interface according to the view window parameters and the transparency;
the touch monitoring module: the system is used for monitoring the touch condition of the screen, recording the number of touch points of the screen, the coordinates of the touch points of the screen and the touch time period, wherein the number of the touch points of the screen and the coordinates of the touch points of the screen are determined according to the fonts to be analyzed,
the touch information calculation module: used for calculating the number of the screen touch points and the coordinates of the screen touch points in the touch time period, acquiring a second touch area or a sliding track,
copy chi suspension interface adjustment module: the touch control device is used for judging whether the second touch area is in the coordinate range of the suspension button or not, if so, closing the suspension interface of the copying ruler, judging the number of the sliding tracks, if one sliding track is adopted, moving the suspension interface of the copying ruler according to the sliding track, and if two sliding tracks are adopted, zooming the suspension interface of the copying ruler according to the sliding track;
the font analysis module: and the font analysis module is used for detecting the font to be analyzed according to the grid in the copy ruler suspension interface to form a font analysis result.
7. Copy ruler hover control device for font analysis according to claim 6,
the copy ruler suspension interface adjusting module is specifically configured to, when the sliding track is two, zoom the copy ruler suspension interface according to the sliding track: detecting the starting point and the end point of each sliding track, calculating the distance between the starting point and the end point of the two sliding tracks, obtaining a scaling ratio according to the distance between the starting point and the end point, and scaling the suspended interface of the copying ruler according to the scaling ratio.
8. The font-analysis copy ruler hovering control apparatus according to claim 6, further comprising a grid instruction determining module: the grid display device is used for setting grid instruction receiving time, receiving a target grid display instruction, setting the target grid display instruction as a first grid display instruction if the target grid display instruction is received within the grid instruction receiving time, and generating a second grid display instruction if the target grid display instruction is not received within the grid instruction receiving time;
when the copy ruler suspended interface display module displays the copy ruler suspended interface according to the view window parameters and the transparency, the copy ruler suspended interface display module is specifically configured to: and displaying a copy ruler suspension interface according to the first grid display instruction or the second grid display instruction and the view window parameter and the transparency.
9. The font-analysis copy ruler floating control device according to claim 8, wherein the copy ruler floating interface display module, when displaying the copy ruler floating interface according to the first grid display instruction or the second grid display instruction and according to the view window parameter and the transparency, is specifically configured to: and calling a first grid and loading the first grid to the copy ruler suspension interface according to the first grid display instruction, and hiding a second grid in the copy ruler suspension interface, or calling a second grid and loading the second grid to the copy ruler suspension interface according to the second grid display instruction, and displaying the copy ruler suspension interface loaded with the first grid or the second grid according to the view window parameter and the transparency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710308707.2A CN107025211B (en) | 2017-05-04 | 2017-05-04 | Copy ruler suspension control method and device for font analysis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710308707.2A CN107025211B (en) | 2017-05-04 | 2017-05-04 | Copy ruler suspension control method and device for font analysis |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107025211A CN107025211A (en) | 2017-08-08 |
CN107025211B true CN107025211B (en) | 2020-06-05 |
Family
ID=59528327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710308707.2A Expired - Fee Related CN107025211B (en) | 2017-05-04 | 2017-05-04 | Copy ruler suspension control method and device for font analysis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107025211B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110175539B (en) * | 2019-05-10 | 2022-05-20 | 广东智媒云图科技股份有限公司 | Character creating method and device, terminal equipment and readable storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184652A (en) * | 2011-06-01 | 2011-09-14 | 张建强 | Digitization method and software system capable of demonstrating word writing process |
CN103729107A (en) * | 2012-10-15 | 2014-04-16 | 中兴通讯股份有限公司 | Method and device for achieving suspension target |
CN103473572B (en) * | 2013-09-17 | 2016-06-15 | 南京师范大学 | A kind of evaluation methodology of handwritten Chinese character aesthetics |
CN104715256A (en) * | 2015-03-04 | 2015-06-17 | 南昌大学 | Auxiliary calligraphy exercising system and evaluation method based on image method |
US10795558B2 (en) * | 2015-06-07 | 2020-10-06 | Apple Inc. | Device, method, and graphical user interface for providing and interacting with a virtual drawing aid |
-
2017
- 2017-05-04 CN CN201710308707.2A patent/CN107025211B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN107025211A (en) | 2017-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102396224B1 (en) | System and method of handwriting recognition in schemes | |
US20210278965A1 (en) | System and method of guiding handwriting diagram input | |
KR102381801B1 (en) | Systems and methods for guiding handwriting input | |
US10606474B2 (en) | Touch screen finger tracing device | |
EP3384372B1 (en) | Apparatus and method for note taking with gestures | |
KR102326395B1 (en) | System and method and product for recognizing multiple object inputs | |
CN112115678B (en) | Information display method and device, storage medium and electronic equipment | |
US10996843B2 (en) | System and method for selecting graphical objects | |
CN108369637B (en) | System and method for beautifying digital ink | |
US11687618B2 (en) | System and method for processing text handwriting in a free handwriting mode | |
EP3712850A1 (en) | Image processing device, image processing method, and image processing system | |
CN105074622B (en) | For generating the method and its electronic device of writing data | |
KR20160064925A (en) | Handwriting input apparatus and control method thereof | |
WO2020229319A1 (en) | A method and correspond device for selecting and editing handwriting input elements. | |
WO2022237117A1 (en) | Touch control method and system for interactive electronic whiteboard, and readable medium | |
CN107025211B (en) | Copy ruler suspension control method and device for font analysis | |
US10685222B2 (en) | Computerized writing evaluation and training method | |
CN107209862B (en) | Identification device and information storage medium | |
JP2018067298A (en) | Handwritten content editing device and handwritten content editing method | |
US20240231582A9 (en) | Modifying digital content including typed and handwritten text | |
US20230401376A1 (en) | Systems and methods for macro-mode document editing | |
CN110796917A (en) | Computerized writing evaluation and training method | |
KR101669821B1 (en) | Method and apparatus for generating hand-writing data base and computer program stored in computer readable medium therefor | |
CN116909468A (en) | Handwriting exercise method, handwriting exercise system and storage medium | |
JPS6349980A (en) | Display system for character with additional information |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200605 |