CN115376144A - Special character input method and system - Google Patents
Special character input method and system Download PDFInfo
- Publication number
- CN115376144A CN115376144A CN202210802619.9A CN202210802619A CN115376144A CN 115376144 A CN115376144 A CN 115376144A CN 202210802619 A CN202210802619 A CN 202210802619A CN 115376144 A CN115376144 A CN 115376144A
- Authority
- CN
- China
- Prior art keywords
- character
- special
- input
- special characters
- characters
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/22—Character recognition characterised by the type of writing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/12—Detection or correction of errors, e.g. by rescanning the pattern
- G06V30/133—Evaluation of quality of the acquired characters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/18—Extraction of features or characteristics of the image
- G06V30/1801—Detecting partial patterns, e.g. edges or contours, or configurations, e.g. loops, corners, strokes or intersections
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/19—Recognition using electronic means
- G06V30/19007—Matching; Proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/19—Recognition using electronic means
- G06V30/191—Design or setup of recognition systems or techniques; Extraction of features in feature space; Clustering techniques; Blind source separation
- G06V30/19147—Obtaining sets of training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/19—Recognition using electronic means
- G06V30/191—Design or setup of recognition systems or techniques; Extraction of features in feature space; Clustering techniques; Blind source separation
- G06V30/19173—Classification techniques
Abstract
The invention provides a special character input method and a system, wherein the method comprises the following steps: acquiring the structural characteristics of the special character to be input, and drawing the special character through a preset character making program based on the structural characteristics; coding and maintaining the category of the drawn special characters, and inputting the special characters into an input box for displaying based on the maintenance result; and inputting the special characters based on the display result, displaying the list of the input special characters, and completing the input of the special characters. By drawing the special characters and inputting the drawn special characters, the special characters can be accurately and effectively input, and therefore the efficiency of calling the special characters and the accuracy rate of recognizing the special characters are improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a special character input method and a special character input system.
Background
At present, with the rapid development of computer and communication technologies, more and more industries adopt paperless modes;
however, in the using process of a computer, a large number of special characters are usually involved, the input and extraction of the special characters are a big problem, many software systems stop developing or operating due to the inconvenience of input, some systems input the special characters into the systems by calling other formula editors, but the speed is slow when calling the linkage, and the problems that the special characters cannot be identified exist after being input exist;
therefore, the invention provides a special character input method and a special character input system.
Disclosure of Invention
The invention provides a special character input method and a special character input system, which are used for accurately and effectively inputting special characters by drawing the special characters and inputting the drawn special characters, thereby improving the efficiency of calling the special characters and the accuracy rate of identifying the special characters.
The invention provides a special character input method, which comprises the following steps:
step 1: acquiring the structural characteristics of the special character to be input, and drawing the special character through a preset character making program based on the structural characteristics;
step 2: coding and maintaining the category of the drawn special characters, and inputting the special characters into an input box for displaying based on the maintenance result;
and 3, step 3: and inputting the special characters based on the display result, and displaying the input special characters in a list to finish the input of the special characters.
Preferably, in step 1, the method for inputting special characters obtains structural characteristics of the special characters to be input, and includes:
obtaining a font sample image of a special character to be input, and carrying out gray processing on the font sample image;
extracting feature points of special characters to be input in the font sample image based on a graying processing result, and determining composition structure information of the special characters to be input based on the feature points;
and determining the character style, the stroke sequence and the stroke style of the special character to be input based on the composition structure information, and determining the structure characteristics of the character to be input based on the character style, the stroke sequence and the stroke style of the special character to be input.
Preferably, the method for inputting the special character determines the structural characteristics of the character to be input, and includes:
acquiring the structural characteristics of the character to be input, and determining the components and the radicals corresponding to the special character to be input based on the structural characteristics;
respectively determining stroke sets of the components and the radicals, and comparing all strokes in the stroke sets with standard strokes;
and determining a target stroke which does not belong to the standard stroke in the stroke set based on the comparison result, and marking the target stroke.
Preferably, in step 1, the method for inputting a special character, which draws a special character through a preset character building program based on the structural characteristics, includes:
acquiring a special character to be input, and generating a character drawing instruction based on the character to be input;
triggering a preset word making program based on the character drawing instruction, and displaying a character drawing reference line based on the preset word making program, wherein the character drawing reference line comprises an upper boundary line, a lower boundary line and a base line;
determining a special character drawing area based on the character drawing reference line, and simultaneously acquiring the structural characteristics of the character to be input;
and performing character drawing in the special character drawing area based on the structural characteristics to obtain a final special character.
Preferably, a special character entry method, obtaining a final special character, includes:
acquiring the obtained final special character, and extracting specification information of the final special character;
meanwhile, determining a specification allowable range of the character based on the character drawing reference line, and matching the specification information of the final special character with the specification allowable range;
if the specification information of the final special character is within the specification allowable range, judging that the final special character is qualified to be drawn;
otherwise, judging that the final special character is unqualified in drawing, and drawing the special character to be input based on the preset character making degree again until the specification information is within the specification allowable range.
Preferably, in step 2, the method for inputting special characters includes the steps of encoding and maintaining categories of drawn special characters, and displaying the special characters in a character input box based on a maintenance result, and includes:
constructing a character category recognition model, acquiring a preset classification label set, and training application layers in the constructed character category recognition model based on the preset classification label set to obtain a target character category recognition model, wherein the character category recognition model at least comprises one application layer, and each application layer corresponds to one character category;
acquiring drawn special characters, and inputting the special characters into the target type recognition model for processing to obtain the character type of the special characters;
meanwhile, performing text recognition on the special characters, and determining character features of the special characters based on recognition results;
searching a preset coding table based on the character characteristics of the special characters and the character categories of the special characters, and determining character codes corresponding to the special characters based on the preset coding table;
determining an incidence relation among the special characters, the character categories and the character codes, and storing the special characters, the corresponding character categories and the corresponding character codes in a preset character library based on the incidence relation;
generating a character link creating instruction based on a storage result, and creating a character file based on the character link creating instruction;
determining key information corresponding to the special characters, and binding the key information with the character files;
determining a target path of the character file based on a binding result, and generating an access link of the special character based on the target path;
setting an access mode for the access link, feeding the access mode back to a user terminal, and triggering the access link by the user terminal based on the access mode to check a character file where the special character is located;
and selecting a special character based on the character file, and displaying the special character in a character entry input box.
Preferably, the method for inputting special characters, which sets an access mode for the access link, includes:
acquiring a character file where the special character is located, and generating a character menu from the special character in the character file;
displaying the character menu on the top of a special character input system, and setting a character menu expansion button based on a display result;
acquiring a target input special character of a user, expanding the character menu based on a character menu expansion button, and matching the target input special character with a special character set in the expanded character menu to obtain a standard input special character;
and copying the standard input special character, and pasting in a character input box.
Preferably, in step 3, the method for inputting special characters includes the steps of inputting the special characters based on a display result, displaying the list of the input special characters, and completing inputting the special characters, including:
acquiring a special character displayed in a character input box, and extracting characteristic information of the special character;
determining the data format of the characteristic character based on the characteristic information, simultaneously acquiring the format requirement of a character entry form on the characteristic character, and determining whether the data format of the characteristic character is compatible with the character entry form based on the format requirement of the characteristic character;
if the data format of the characteristic character is incompatible with a character entry form, converting the data format of the characteristic character based on the format requirement of the characteristic character;
otherwise, inputting special characters, character codes, character categories and the inputting time of the special characters based on the character inputting form, and completing inputting of the special characters based on the input result, wherein at least one special character is input;
determining a successfully input item to be displayed based on an input result, and creating a corresponding display list based on the successfully input item to be displayed;
determining the display level of each item of information to be displayed in the successfully-entered item to be displayed based on the display list, and performing first sequencing on the positions of the display lists corresponding to the items of information to be displayed based on the display level, wherein each item of information to be displayed corresponds to one display list, and each item of information to be displayed of the same special character is in the same dimension in the display lists;
extracting the entry time of each special character based on the first sequencing result, and determining the order of entry of each special character based on the entry time;
performing second sequencing on the information to be displayed of the special characters under the same dimensionality based on the sequence input sequence, and determining a display mode of the information to be displayed of the special characters based on a second sequencing result;
and displaying the input special characters and the corresponding information to be displayed through the display list based on the display mode.
Preferably, the method for inputting special characters, which displays the input special characters and the corresponding items of information to be displayed through the display list based on the display mode, includes:
acquiring a display result for displaying the input special characters and corresponding information to be displayed on the basis of the display list, and acquiring a preset special character input schedule;
comparing the preset special character input schedule with the display result, and judging whether abnormal special characters inconsistent with the preset special character input schedule exist in the display result based on the comparison result;
if the abnormal special characters exist, judging that the special characters are wrongly input, and removing the abnormal special characters;
otherwise, judging that the special character is input without errors, and completing the input of the special character.
Preferably, a special character entry system comprises:
the character drawing module is used for acquiring the structural characteristics of the special character to be input and drawing the special character through a preset character making program based on the structural characteristics;
the display module is used for coding and maintaining the types of the drawn special characters and inputting the special characters into an input box for displaying based on the maintenance result;
and the input module is used for inputting the special characters based on the display result, displaying the list of the input special characters and finishing the input of the special characters.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a special character entry method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an example of special characters in a special character entry method and system according to an embodiment of the present invention;
fig. 3 is a flowchart of step 1 in a special character entry method according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Example 1:
the embodiment provides a special character entry method, as shown in fig. 1, including:
step 1: acquiring the structural characteristics of the special character to be input, and drawing the special character through a preset character making program based on the structural characteristics;
step 2: coding and maintaining the category of the drawn special characters, and inputting the special characters into an input box for displaying based on the maintenance result;
and step 3: and inputting the special characters based on the display result, displaying the list of the input special characters, and completing the input of the special characters.
In this embodiment, the special character to be entered refers to a special character that needs to be entered in the system, where the special character refers to a character that cannot be entered by using an input method.
In this embodiment, the structural features refer to a composition structure of the special character to be entered, including strokes, font shapes or appearances, and the like.
In this embodiment, the preset character-making program is set in advance, and is used for drawing irregular strokes or strokes which cannot be input by an input method, so as to obtain corresponding special characters.
In this embodiment, the step of encoding and maintaining the drawn special character refers to setting a corresponding category label and a corresponding character code for the drawn special character, so that the drawn special character is conveniently subjected to corresponding entry operation.
In this embodiment, the character entry input box is set in advance, and is used to enter the drawn special character into the corresponding character library.
In this embodiment, the special character is shown in fig. 2, for example.
The beneficial effects of the above technical scheme are: by drawing the special characters and inputting the drawn special characters, the special characters can be accurately and effectively input, and therefore the efficiency of calling the special characters and the accuracy rate of recognizing the special characters are improved.
Example 2:
on the basis of embodiment 1, this embodiment provides a special character entry method, as shown in fig. 3, in step 1, obtaining structural characteristics of a special character to be entered includes:
step 101: obtaining a font sample image of a special character to be input, and carrying out gray processing on the font sample image;
step 102: extracting feature points of special characters to be input in the font sample image based on a graying processing result, and determining composition structure information of the special characters to be input based on the feature points;
step 103: and determining the character style, the stroke sequence and the stroke style of the special character to be input based on the composition structure information, and determining the structure characteristics of the character to be input based on the character style, the stroke sequence and the stroke style of the special character to be input.
In this embodiment, the font sample image is used to represent information such as the shape and font structure of the special character to be entered, and provides a reference basis for drawing the special character.
In this embodiment, the feature point refers to a stroke or a shape or the like having an obvious feature or characteristic of a special character to be entered.
In this embodiment, the composition structure information indicates whether the special character to be entered is a left-right structure or a top-bottom structure.
In this embodiment, the character style refers to the expression form of a special character, and may specifically be whether or not a pictographic character is included.
In this embodiment, the stroke style refers to a stroke format of a special character, and may specifically be clerical script or song font.
The beneficial effects of the above technical scheme are: by acquiring the sample image of the special character to be input and processing the sample image, the accuracy rate determined by the structural characteristics of the special character to be input according to the sample image is realized, and the input effect of the special character to be input is improved.
Example 3:
on the basis of embodiment 2, this embodiment provides a special character entry method, which determines structural characteristics of the character to be entered, and includes:
acquiring the structural characteristics of the character to be input, and determining the components and the radicals corresponding to the special character to be input based on the structural characteristics;
respectively determining stroke sets of the components and the radicals, and comparing all strokes in the stroke sets with standard strokes;
and determining a target stroke which does not belong to the standard stroke in the stroke set based on the comparison result, and marking the target stroke.
In this embodiment, the stroke set refers to horizontal, vertical, left-falling, and right-falling strokes included in the radical and the radical.
In the embodiment, the standard strokes refer to the regulations of horizontal, vertical, left-falling and right-falling of Chinese characters in education and teaching and are not strokes mixed with pictographs.
In this embodiment, the target stroke refers to a portion of the stroke in the stroke set that is not a standard stroke and is part of the stroke set.
In this embodiment, marking the target stroke refers to marking the target stroke through a preset marking symbol, so as to remind a drawing person of the stroke specificity of the part during drawing.
The beneficial effects of the above technical scheme are: the strokes of the special characters to be input are classified by determining the stroke set corresponding to the special characters to be input, so that the abnormal strokes of the special characters to be input can be accurately and effectively confirmed, corresponding marks can be carried out, and convenience is brought to accurate drawing of the special characters to be input.
Example 4:
on the basis of embodiment 1, this embodiment provides a special character entry method, and in step 1, drawing a special character through a preset character building program based on the structural characteristics includes:
acquiring a special character to be input, and generating a character drawing instruction based on the character to be input;
triggering a preset word making program based on the character drawing instruction, and displaying a character drawing reference line based on the preset word making program, wherein the character drawing reference line comprises an upper boundary line, a lower boundary line and a base line;
determining a special character drawing area based on the character drawing reference line, and simultaneously acquiring the structural characteristics of the character to be input;
and performing character drawing in the special character drawing area based on the structural characteristics to obtain the final special character.
In this embodiment, the character drawing instruction is a signal for triggering a preset character creation program to work, so that corresponding drawing operation is performed on a character to be input through the preset character creation program.
In this embodiment, the character drawing reference line provides a boundary, a size basis, and the like when the special character to be entered is drawn through the preset character creation program, and specifically functions as a field case, so as to standardize the special character to be entered.
In this embodiment, the special character drawing area refers to a display interface on which a character can be drawn in a preset character making program.
The beneficial effects of the above technical scheme are: the character drawing reference line is determined in the preset character making program and is used as a reference basis for drawing the special character to be input, so that the normalization of the finally drawn special character is ensured, and the identification rate of the special character is guaranteed.
Example 5:
on the basis of embodiment 4, this embodiment provides a special character entry method, and obtains a final special character, including:
acquiring the obtained final special character, and extracting specification information of the final special character;
meanwhile, determining a specification allowable range of the character based on the character drawing reference line, and matching the final specification information of the special character with the specification allowable range;
if the specification information of the final special character is within the specification allowable range, judging that the final special character is qualified to be drawn;
otherwise, judging that the final special character is unqualified in drawing, and drawing the special character to be input based on the preset character making degree again until the specification information is within the specification allowable range.
In this embodiment, the specification information refers to the height, width, and the like of the final special character.
In this embodiment, the specification allowable range refers to the maximum length and the maximum width of the character determined by the character drawing reference line.
The beneficial effects of the above technical scheme are: through verifying the specification information of the drawn special characters, the standardization of the drawn special characters is ensured, so that the drawn special characters can be accurately and effectively input, and the efficiency and the effect of inputting the non-numeric characters are improved.
Example 6:
on the basis of embodiment 1, this embodiment provides a special character entry method, and in step 2, the drawn special character is encoded and category-maintained, and the special character is displayed in a character entry input box based on a maintenance result, including:
constructing a character category recognition model, acquiring a preset classification label set, and training application layers in the constructed character category recognition model based on the preset classification label set to obtain a target character category recognition model, wherein the character category recognition model at least comprises one application layer, and each application layer corresponds to one character category;
acquiring drawn special characters, and inputting the special characters into the target type recognition model for processing to obtain the character type of the special characters;
meanwhile, text recognition is carried out on the special characters, and character features of the special characters are determined based on recognition results;
searching a preset coding table based on the character features of the special characters and the character categories of the special characters, and determining character codes corresponding to the special characters based on the preset coding table;
determining an incidence relation among the special characters, the character categories and the character codes, and storing the special characters, the corresponding character categories and the corresponding character codes in a preset character library based on the incidence relation;
generating a character link creating instruction based on a storage result, and creating a character file based on the character link creating instruction;
determining key information corresponding to the special characters, and binding the key information with the character files;
determining a target path of the character file based on a binding result, and generating an access link of the special character based on the target path;
setting an access mode for the access link, feeding the access mode back to a user terminal, and triggering the access link by the user terminal based on the access mode to check a character file where the special character is located;
and selecting a special character based on the character file, and displaying the special character in a character entry input box.
In this embodiment, the character category identification model refers to a tool for identifying a category of a character, and may specifically be to determine whether the character is a unit category or an operator category.
In this embodiment, the preset classification label set is set in advance, and is used for training the constructed character type recognition model, so as to ensure that the character type recognition model accurately judges the type of the special character, wherein the classification label set includes classification reference bases corresponding to different types.
In this embodiment, the target character type recognition model refers to a model that can accurately analyze the type of the special character after training the constructed character type recognition model.
In this embodiment, the text recognition refers to recognition of the form, strokes, and the like of a special character in order to determine character characteristics of the special character.
In this embodiment, the character features refer to the stroke structure, writing format, and the like of the special character.
In this embodiment, the preset encoding table is set in advance, and is used for allocating corresponding codes to different special characters during drawing.
In this embodiment, the preset character library is set in advance and used for storing different drawn special characters, so that the special characters can be called quickly when being recorded.
In this embodiment, the character file refers to a text file for recording different special characters in a preset character library.
In this embodiment, the key information refers to data information that can represent the type and function of the special character, and may specifically be the form and type of the special character.
In this embodiment, the target path refers to a storage location of the character file in the preset character library, so that the special character in the character file can be called conveniently.
In this embodiment, the access mode is set in advance, specifically, the user may simultaneously press the ALT +/key to trigger the character file, and the character file may also be displayed on the top of the system, so that the user may directly call the special character.
The beneficial effects of the above technical scheme are: the method comprises the steps of accurately identifying the category of the special character and the character characteristics of the special character, so that the special character is conveniently endowed with a corresponding character code, determining the association relation between the special character and the character code and the category, storing the special character in a preset character library, creating a corresponding character file according to a storage result, and finally generating a corresponding access link according to the character file, so that the calling efficiency of a user on the special character is conveniently improved, and the accurate and effective entry of the special character is realized.
Example 7:
on the basis of embodiment 6, this embodiment provides a special character entry method, which sets an access manner for the access link, and includes:
acquiring a character file where the special character is located, and generating a character menu from the special character in the character file;
displaying the character menu on the top of the special character input system, and setting a character menu expansion button based on a display result;
acquiring a target input special character of a user, expanding the character menu based on a character menu expansion button, and matching the target input special character with a special character set in the expanded character menu to obtain a standard input special character;
and copying the standard input special character, and pasting in a character input box.
In this embodiment, the character menu is meant for display at the top of the system, and is used for directly copying the special characters to be entered in the character menu at the top of the system and pasting the special characters in the character entry input box.
In this embodiment, the character menu expansion button refers to a button that can hide or expand a menu when there are many special characters.
In this embodiment, the target entry special character refers to a special character that the user needs to enter in the system.
In this embodiment, the standard entry special character refers to character information in the character menu that is consistent with the special character that the user needs to enter.
The beneficial effects of the above technical scheme are: the corresponding character menu is generated by the obtained character file and displayed at the top of the system, so that a user can directly copy and paste the special character when inputting the special character, and the efficiency of inputting the special character is improved.
Example 8:
on the basis of embodiment 1, this embodiment provides a special character entry method, and in step 3, entry is performed on the special character based on a display result, and the entered special character is displayed in a list, so that entry of the special character is completed, including:
acquiring special characters displayed in a character input box, and extracting characteristic information of the special characters;
determining the data format of the characteristic character based on the characteristic information, simultaneously acquiring the format requirement of a character entry form on the characteristic character, and determining whether the data format of the characteristic character is compatible with the character entry form based on the format requirement of the characteristic character;
if the data format of the characteristic character is incompatible with a character entry form, converting the data format of the characteristic character based on the format requirement of the characteristic character;
otherwise, inputting the special characters, character codes, character categories and the input time of the special characters based on the character input form, and completing the input of the special characters based on the input result, wherein at least one input special character is included;
determining a successfully input item to be displayed based on an input result, and creating a corresponding display list based on the successfully input item to be displayed;
determining the display level of each item of information to be displayed in the successfully-entered item to be displayed based on the display list, and performing first sequencing on the positions of the display lists corresponding to the items of information to be displayed based on the display level, wherein each item of information to be displayed corresponds to one display list, and each item of information to be displayed of the same special character is in the same dimension in the display lists;
extracting the entry time of each special character based on the first sequencing result, and determining the order of entry of each special character based on the entry time;
performing second sequencing on the information to be displayed of the special characters under the same dimensionality based on the sequence input sequence, and determining a display mode of the information to be displayed of the special characters based on a second sequencing result;
and displaying the input special characters and the corresponding information to be displayed through the display list based on the display mode.
In this embodiment, the characteristic information refers to the format of the special character, the stroke structure, and the like.
In this embodiment, determining whether the data format of the characteristic character is compatible with the character entry form based on the format requirement of the characteristic character means whether the current data format of the special character can be displayed in the character entry form.
In this embodiment, the successfully entered item to be displayed refers to a character successfully entered for a particular character in the system.
In this embodiment, the display list refers to a carrier for displaying successfully entered special characters and corresponding character codes, character categories, and entry times of the special characters.
In this embodiment, each item of information to be displayed refers to a character code, a character category, and entry time of a special character corresponding to the special character.
In this embodiment, the display level refers to a longitudinal arrangement order of different categories of display information in the display interface during the display process, that is, the higher the level, the farther to the left.
In this embodiment, the first sorting refers to displaying the display contents of the display list in order according to the descending order of the display level, and specifically may be displaying special characters in the first column, displaying character codes in the second column, displaying character categories in the third column, and the like.
In this embodiment, that each item of information to be displayed of the same special character is in the same dimension in the display list means that the character code, the character category, and the corresponding entry time corresponding to one special character are in the same row in the horizontal direction.
In this embodiment, the second sorting means that different special characters, corresponding character codes, entry time, and the like are sequentially arranged in an order from top to bottom according to the order of entry time.
The beneficial effects of the above technical scheme are: the method comprises the steps of displaying the special characters to be input and the character types, the character codes and the corresponding input time which correspond to the special characters in a character input form, accurately and effectively inputting different special characters, displaying the input characters and the corresponding character codes, the character types and the input time on a created display list, and sequencing display results, so that the input results of the special characters can be accurately and effectively displayed, the verification efficiency of the character input results is improved, and the accuracy of the special character input is improved.
Example 9:
on the basis of embodiment 8, this embodiment provides a special character entry method, which displays, based on the display mode, an entered special character and corresponding items of information to be displayed through the display list, and includes:
acquiring a display result for displaying the input special characters and corresponding information to be displayed on the basis of the display list, and acquiring a preset special character input schedule;
comparing the preset special character input schedule with the display result, and judging whether abnormal special characters inconsistent with the preset special character input schedule exist in the display result based on the comparison result;
if the abnormal special characters exist, judging that the special characters are wrongly input, and removing the abnormal special characters;
otherwise, judging that the special character is input without errors, and completing the input of the special character.
In this embodiment, the preset special character entry schedule is set in advance, and is a special character known by the user before entering the special character.
In this embodiment, the abnormal special character refers to a special character in the display result that is inconsistent with the preset special character entry schedule.
The beneficial effects of the above technical scheme are: the accuracy of inputting the special characters is ensured by checking the input special characters.
Example 10:
on the basis of embodiment 9, this embodiment provides a special character entry method, comparing the preset special character entry schedule with the display result, including:
acquiring a display result and a preset special character input schedule for displaying the input special characters and corresponding information to be displayed on the basis of a display list, and performing binarization processing on the display result and the preset special character input schedule to obtain a corresponding target binarization image, wherein the display result is an image containing the special characters and the information to be displayed;
determining the length and width of the display result and the target binary image corresponding to the preset special character input schedule table, and uniformly processing the length and width of the target binary image corresponding to the display result and the preset special character input schedule table, wherein the uniform processing specifically processes the length and width of the target binary image corresponding to the display result and the preset special character input schedule table into consistent values;
calculating the similarity between the special characters contained in the display result and the standard special characters contained in the preset special character entry schedule based on the processed display result and the length and the width of the target binary image corresponding to the preset special character entry schedule, wherein the specific steps comprise:
calculating the similarity between the special characters contained in the display result and the standard special characters contained in the preset special character entry schedule according to the following formula:
wherein, α represents the similarity between the special character contained in the display result and the standard special character contained in the preset special character entry schedule, and the value range is [0,1]; mu represents an error factor and has a value range of (0.02,0.05); k represents the display result and the number of the current horizontal pixel points in the preset special character input schedule; q represents the length of the display result and the preset special character input schedule; l represents the display result and the number of the current longitudinal pixel points in the preset special character input schedule; s represents the display result and the width of a preset special character input schedule; f (k, l) represents a target binary image corresponding to the display result; e (f (k, l)) represents the average gray value of the target binary image corresponding to the display result; g (k, l) represents a preset special character input schedule; e (G (k, l)) represents the average gray value of the preset special character entry schedule;
comparing the calculated similarity with a preset similarity;
if the similarity between the special character contained in the display result and the standard special character contained in the preset special character entry schedule is smaller than the preset similarity, judging that the special character contained in the display result is an abnormal special character;
otherwise, the check of the special character is completed.
In this embodiment, the preset similarity is set in advance, and is used to characterize whether the similarity between the display result and the corresponding special character in the preset special character entry schedule meets the condition of consistency.
The beneficial effects of the above technical scheme are: the similarity between different special characters in the input result and the special characters contained in the preset special character input schedule is calculated, so that the validity and the accuracy of the input special characters are strictly and effectively analyzed and judged, and the input accuracy of the special characters is guaranteed.
Example 11:
the present embodiment provides a special character entry system, including:
the character drawing module is used for acquiring the structural characteristics of the special character to be input and drawing the special character through a preset character making program based on the structural characteristics;
the display module is used for coding and maintaining the types of the drawn special characters and inputting the special characters into an input box for displaying based on the maintenance result;
and the input module is used for inputting the special characters based on the display result, displaying the list of the input special characters and finishing the input of the special characters.
The beneficial effects of the above technical scheme are: by drawing the special characters and inputting the drawn special characters, the special characters can be accurately and effectively input, and therefore the efficiency of calling the special characters and the accuracy rate of recognizing the special characters are improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A special character entry method, comprising:
step 1: acquiring the structural characteristics of the special character to be input, and drawing the special character through a preset character making program based on the structural characteristics;
and 2, step: coding and maintaining the category of the drawn special characters, and inputting the special characters into an input box for displaying based on the maintenance result;
and step 3: and inputting the special characters based on the display result, displaying the list of the input special characters, and completing the input of the special characters.
2. A special character entry method as claimed in claim 1, wherein in step 1, obtaining structural characteristics of the special character to be entered comprises:
obtaining a font sample image of a special character to be input, and carrying out gray processing on the font sample image;
extracting feature points of special characters to be input in the font sample image based on a graying processing result, and determining composition structure information of the special characters to be input based on the feature points;
and determining the character style, the stroke sequence and the stroke style of the special character to be input based on the composition structure information, and determining the structure characteristics of the character to be input based on the character style, the stroke sequence and the stroke style of the special character to be input.
3. A special character entry method as claimed in claim 2, wherein determining structural characteristics of the character to be entered comprises:
acquiring the structural characteristics of the character to be input, and determining the components and the radicals corresponding to the special character to be input based on the structural characteristics;
respectively determining stroke sets of the components and the radicals, and comparing all strokes in the stroke sets with standard strokes;
and determining a target stroke which does not belong to the standard stroke in the stroke set based on the comparison result, and marking the target stroke.
4. A special character entry method as claimed in claim 1, wherein in step 1, drawing a special character by a preset character making program based on the structural characteristics comprises:
acquiring a special character to be input, and generating a character drawing instruction based on the character to be input;
triggering a preset word making program based on the character drawing instruction, and displaying a character drawing reference line based on the preset word making program, wherein the character drawing reference line comprises an upper boundary line, a lower boundary line and a base line;
determining a special character drawing area based on the character drawing reference line, and simultaneously acquiring the structural characteristics of the character to be input;
and performing character drawing in the special character drawing area based on the structural characteristics to obtain a final special character.
5. A special character entry method as claimed in claim 4, wherein obtaining the final special character comprises:
acquiring the obtained final special character, and extracting specification information of the final special character;
meanwhile, determining a specification allowable range of the character based on the character drawing reference line, and matching the specification information of the final special character with the specification allowable range;
if the specification information of the final special character is within the specification allowable range, judging that the final special character is qualified to be drawn;
otherwise, judging that the final special character is unqualified in drawing, and drawing the special character to be input based on the preset character making degree again until the specification information is within the specification allowable range.
6. A special character entry method as claimed in claim 1, wherein in step 2, encoding and category maintenance are performed on the drawn special characters, and the special characters are displayed in a character entry input box based on the maintenance result, comprising:
constructing a character category recognition model, acquiring a preset classification label set, and training application layers in the constructed character category recognition model based on the preset classification label set to obtain a target character category recognition model, wherein the character category recognition model at least comprises one application layer, and each application layer corresponds to one character category;
acquiring drawn special characters, and inputting the special characters into the target type recognition model for processing to obtain the character type of the special characters;
meanwhile, text recognition is carried out on the special characters, and character features of the special characters are determined based on recognition results;
searching a preset coding table based on the character characteristics of the special characters and the character categories of the special characters, and determining character codes corresponding to the special characters based on the preset coding table;
determining an incidence relation among the special characters, the character categories and the character codes, and storing the special characters, the corresponding character categories and the corresponding character codes in a preset character library based on the incidence relation;
generating a character link creating instruction based on a storage result, and creating a character file based on the character link creating instruction;
determining key information corresponding to the special characters, and binding the key information with the character files;
determining a target path of the character file based on a binding result, and generating an access link of the special character based on the target path;
setting an access mode for the access link, feeding the access mode back to a user terminal, and triggering the access link by the user terminal based on the access mode to check a character file where the special character is located;
and selecting a special character based on the character file, and displaying the special character in a character entry input box.
7. A special character entry method as claimed in claim 6, wherein setting an access mode for said access link comprises:
acquiring a character file where the special character is located, and generating a character menu from the special character in the character file;
displaying the character menu on the top of the special character input system, and setting a character menu expansion button based on a display result;
acquiring a target input special character of a user, expanding the character menu based on a character menu expansion button, and matching the target input special character with a special character set in the expanded character menu to obtain a standard input special character;
and copying the standard input special character, and pasting in a character input box.
8. The special character entry method according to claim 1, wherein in step 3, entry of the special character is performed based on a display result, and the entered special character is displayed in a list, and entry of the special character is completed, including:
acquiring a special character displayed in a character input box, and extracting characteristic information of the special character;
determining the data format of the characteristic character based on the characteristic information, simultaneously acquiring the format requirement of a character entry form on the characteristic character, and determining whether the data format of the characteristic character is compatible with the character entry form based on the format requirement of the characteristic character;
if the data format of the characteristic character is incompatible with a character entry form, converting the data format of the characteristic character based on the format requirement of the characteristic character;
otherwise, inputting special characters, character codes, character categories and the inputting time of the special characters based on the character inputting form, and completing inputting of the special characters based on the input result, wherein at least one special character is input;
determining a successfully input item to be displayed based on an input result, and creating a corresponding display list based on the successfully input item to be displayed;
determining the display level of each item of information to be displayed in the successfully-entered item to be displayed based on the display list, and performing first sequencing on the positions of the display lists corresponding to the items of information to be displayed based on the display level, wherein each item of information to be displayed corresponds to one display list, and each item of information to be displayed of the same special character is in the same dimension in the display lists;
extracting the entry time of each special character based on the first sequencing result, and determining the order of entry of each special character based on the entry time;
performing second sequencing on the information to be displayed of the special characters under the same dimensionality based on the sequence input sequence, and determining a display mode of the information to be displayed of the special characters based on a second sequencing result;
and displaying the input special characters and the corresponding information to be displayed through the display list based on the display mode.
9. The special character entry method according to claim 8, wherein displaying the entered special characters and corresponding items of information to be displayed through the display list based on the display mode comprises:
acquiring a display result for displaying the input special characters and corresponding various information to be displayed based on the display list, and acquiring a preset special character input schedule;
comparing the preset special character input schedule with the display result, and judging whether abnormal special characters inconsistent with the preset special character input schedule exist in the display result based on the comparison result;
if the abnormal special characters exist, judging that the special characters are wrongly input, and removing the abnormal special characters;
otherwise, judging that the special character is input without errors, and completing the input of the special character.
10. A special character entry system, comprising:
the character drawing module is used for acquiring the structural characteristics of the special character to be input and drawing the special character through a preset character making program based on the structural characteristics;
the display module is used for coding and maintaining the types of the drawn special characters and inputting the special characters into an input box for displaying based on the maintenance result;
and the input module is used for inputting the special characters based on the display result, displaying the list of the input special characters and finishing the input of the special characters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210802619.9A CN115376144B (en) | 2022-07-07 | 2022-07-07 | Special character input method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210802619.9A CN115376144B (en) | 2022-07-07 | 2022-07-07 | Special character input method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115376144A true CN115376144A (en) | 2022-11-22 |
CN115376144B CN115376144B (en) | 2023-04-07 |
Family
ID=84062328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210802619.9A Active CN115376144B (en) | 2022-07-07 | 2022-07-07 | Special character input method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115376144B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960018976A (en) * | 1994-11-03 | 1996-06-17 | 양승택 | How to print special characters in encyclopedia electronic books |
JP2000066656A (en) * | 1998-08-25 | 2000-03-03 | Fujitsu Ltd | Special character processing system for dynamic document and recording medium having recorded special character processing program thereon |
US20040239534A1 (en) * | 2001-08-30 | 2004-12-02 | Kushler Clifford A. | Component-based, adaptive stroke-order system |
US7257528B1 (en) * | 1998-02-13 | 2007-08-14 | Zi Corporation Of Canada, Inc. | Method and apparatus for Chinese character text input |
CN103176604A (en) * | 2013-03-15 | 2013-06-26 | 南京信息工程大学 | Input system and input method of special characters |
WO2019195736A2 (en) * | 2018-04-05 | 2019-10-10 | Chevron U.S.A. Inc. | Classification of piping and instrumental diagram information using machine-learning |
US20200143191A1 (en) * | 2018-11-02 | 2020-05-07 | Iflytek Co., Ltd. | Method, apparatus and storage medium for recognizing character |
KR102227881B1 (en) * | 2019-12-02 | 2021-03-15 | 순천향대학교 산학협력단 | Apparatus and method for searching special characters using images |
CN112783775A (en) * | 2021-01-26 | 2021-05-11 | 中国工商银行股份有限公司 | Special character input testing method and device |
CN113159630A (en) * | 2021-05-13 | 2021-07-23 | 北京三维天地科技股份有限公司 | Method for maintaining calculation formula in laboratory information management system |
US20220188637A1 (en) * | 2021-04-30 | 2022-06-16 | Beijing Baidu Netcom Science Technology Co., Ltd. | Method for training adversarial network model, method for building character library, electronic device, and storage medium |
-
2022
- 2022-07-07 CN CN202210802619.9A patent/CN115376144B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960018976A (en) * | 1994-11-03 | 1996-06-17 | 양승택 | How to print special characters in encyclopedia electronic books |
US7257528B1 (en) * | 1998-02-13 | 2007-08-14 | Zi Corporation Of Canada, Inc. | Method and apparatus for Chinese character text input |
JP2000066656A (en) * | 1998-08-25 | 2000-03-03 | Fujitsu Ltd | Special character processing system for dynamic document and recording medium having recorded special character processing program thereon |
US20040239534A1 (en) * | 2001-08-30 | 2004-12-02 | Kushler Clifford A. | Component-based, adaptive stroke-order system |
CN103176604A (en) * | 2013-03-15 | 2013-06-26 | 南京信息工程大学 | Input system and input method of special characters |
WO2019195736A2 (en) * | 2018-04-05 | 2019-10-10 | Chevron U.S.A. Inc. | Classification of piping and instrumental diagram information using machine-learning |
US20200143191A1 (en) * | 2018-11-02 | 2020-05-07 | Iflytek Co., Ltd. | Method, apparatus and storage medium for recognizing character |
KR102227881B1 (en) * | 2019-12-02 | 2021-03-15 | 순천향대학교 산학협력단 | Apparatus and method for searching special characters using images |
CN112783775A (en) * | 2021-01-26 | 2021-05-11 | 中国工商银行股份有限公司 | Special character input testing method and device |
US20220188637A1 (en) * | 2021-04-30 | 2022-06-16 | Beijing Baidu Netcom Science Technology Co., Ltd. | Method for training adversarial network model, method for building character library, electronic device, and storage medium |
CN113159630A (en) * | 2021-05-13 | 2021-07-23 | 北京三维天地科技股份有限公司 | Method for maintaining calculation formula in laboratory information management system |
Non-Patent Citations (2)
Title |
---|
白毅 等: "基于编码的生僻汉字输入方法理论与测试研究", 《北京化工大学学报》 * |
聂艳召 等: "甲骨文自由笔画输入法", 《中文信息学报》 * |
Also Published As
Publication number | Publication date |
---|---|
CN115376144B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3155577B2 (en) | Character recognition method and device | |
CN110275834B (en) | User interface automatic test system and method | |
CN1035904C (en) | Estimation of baseline, line spacing and character height for handwriting recognition | |
US6950533B2 (en) | Sorting images for improved data entry productivity | |
CN111695439A (en) | Image structured data extraction method, electronic device and storage medium | |
CN110503054B (en) | Text image processing method and device | |
KR19980023917A (en) | Pattern recognition apparatus and method | |
CN106951832A (en) | A kind of verification method and device based on Handwritten Digits Recognition | |
US11132576B2 (en) | Text recognition method and apparatus, electronic device, and storage medium | |
CN112784720A (en) | Key information extraction method, device, equipment and medium based on bank receipt | |
CN101479743A (en) | Techniques for filtering handwriting recognition results | |
CN114005126A (en) | Table reconstruction method and device, computer equipment and readable storage medium | |
CN115935344A (en) | Abnormal equipment identification method and device and electronic equipment | |
CN115376144B (en) | Special character input method and system | |
CN112613367A (en) | Bill information text box acquisition method, system, equipment and storage medium | |
US20120281919A1 (en) | Method and system for text segmentation | |
JP3313272B2 (en) | Address reading method and identification function weight vector generation method | |
US6320985B1 (en) | Apparatus and method for augmenting data in handwriting recognition system | |
CN115880708A (en) | Method for detecting character paragraph spacing compliance in APP (application) aging-adapted mode | |
US7016535B2 (en) | Pattern identification apparatus, pattern identification method, and pattern identification program | |
US7133556B1 (en) | Character recognition device and method for detecting erroneously read characters, and computer readable medium to implement character recognition | |
CN114240928A (en) | Board quality partition detection method, device and equipment and readable storage medium | |
CN115019155A (en) | Reagent automatic identification method, device, equipment and readable storage medium | |
CN111090989A (en) | Prompting method based on character recognition and electronic equipment | |
JPH08287188A (en) | Character string recognition device |
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 |