CN107169517B - Method for judging repeated strokes, terminal equipment and computer readable storage medium - Google Patents

Method for judging repeated strokes, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN107169517B
CN107169517B CN201710332003.9A CN201710332003A CN107169517B CN 107169517 B CN107169517 B CN 107169517B CN 201710332003 A CN201710332003 A CN 201710332003A CN 107169517 B CN107169517 B CN 107169517B
Authority
CN
China
Prior art keywords
user
character
characters
written
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710332003.9A
Other languages
Chinese (zh)
Other versions
CN107169517A (en
Inventor
周忠杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710332003.9A priority Critical patent/CN107169517B/en
Publication of CN107169517A publication Critical patent/CN107169517A/en
Application granted granted Critical
Publication of CN107169517B publication Critical patent/CN107169517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/758Involving statistics of pixels or of feature values, e.g. histogram matching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/28Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
    • G06V30/287Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet of Kanji, Hiragana or Katakana characters

Abstract

The invention is applicable to the technical field of communication, and provides a method for judging repeated strokes, a terminal device and a computer readable storage medium, wherein the method comprises the following steps: acquiring characters written by a user; recognizing the characters written by the user to obtain standard characters matched with the characters written by the user; respectively acquiring the stroke number of the user writing the character and the stroke number of the standard character; if the number of strokes of the character written by the user is different from that of the standard character, extracting the same strokes from the character written by the user; and if the stroke orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes are overlapped, determining that the same strokes extracted from the characters written by the user are repeated strokes. The invention solves the problem that the prior art does not detect whether the repeated strokes exist in the characters written by the user.

Description

Method for judging repeated strokes, terminal equipment and computer readable storage medium
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method for judging repeated strokes, a terminal device and a computer readable storage medium.
Background
With the increasing storage space of the terminal equipment, the terminal equipment can install a large number of application programs. For example, some calligraphy practice application programs are installed on the terminal device, so that a user can practice calligraphy conveniently through the terminal device.
At present, when a user writes a character, if the user finds that a stroke is written irregularly (long or short, etc.), the user often has a habit of revising the stroke (for example, rewriting the stroke on the basis of the written stroke). However, in the prior art, no detection is made as to whether there are repeated strokes in the character written by the user.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for determining a repeated stroke, a terminal device, and a computer-readable storage medium, so as to solve the problem in the prior art that whether a repeated stroke exists in a character written by a user is not detected.
A first aspect of an embodiment of the present invention provides a method for determining a repeated stroke, where the method includes:
acquiring characters written by a user;
recognizing the characters written by the user to obtain standard characters matched with the characters written by the user;
respectively acquiring the stroke number of the user writing the character and the stroke number of the standard character;
if the number of strokes of the character written by the user is different from that of the standard character, extracting the same strokes from the character written by the user;
and if the stroke orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes are overlapped, determining that the same strokes extracted from the characters written by the user are repeated strokes.
A second aspect of an embodiment of the present invention provides a terminal device, where the terminal device includes:
the character acquisition module is used for acquiring characters written by a user;
the recognition module is used for recognizing the characters written by the user to obtain standard characters matched with the characters written by the user;
the stroke number acquisition module is used for respectively acquiring the stroke number of the user writing the character and the stroke number of the standard character;
the stroke extraction module is used for extracting the same strokes from the characters written by the user if the number of the strokes of the user writing the characters is different from that of the standard characters;
and the determining module is used for determining that the same strokes extracted from the characters written by the user are repeated strokes if the stroke orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes are overlapped.
A third aspect of embodiments of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the method comprises the steps of obtaining characters written by a user, identifying the characters written by the user to obtain standard characters matched with the characters written by the user, extracting identical strokes from the characters written by the user when the number of the strokes of the user when writing the characters is different from that of the standard characters, and determining the extracted identical strokes as repeated strokes if the extracted identical strokes are adjacent in stroke order and overlapped. According to the embodiment of the invention, when the number of strokes of the user writing the character is different from the number of strokes of the corresponding standard character, the same strokes are extracted from the character written by the user, and whether the stroke orders of the extracted same strokes are adjacent and whether the same strokes are overlapped is detected, so that whether repeated characters exist in the character written by the user is detected, the writing of the user is normalized, and the problem that whether the repeated strokes exist in the character written by the user in the prior art is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for determining repeated strokes according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating an implementation of a method for determining repeated strokes according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a terminal device according to a fifth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic flow chart illustrating an implementation process of a method for determining repeated strokes according to an embodiment of the present invention, where the method is applied to a terminal device, as shown in the figure, the method may include the following steps:
step S101, acquiring characters written by a user.
In the embodiment of the present invention, the character written by the user refers to a character handwritten by the user, for example, a character handwritten by the user through a touch and talk pen, and specifically, may refer to a dot matrix formed by combining tracks of strokes input by the user. The characters written by the user can be obtained locally from the terminal device or from a server. The characters written by the user can be pre-stored or can be collected in real time through an input collection device. For example, after the terminal device starts a character writing function, if the terminal device receives an instruction to acquire a character written by a user, the terminal device acquires the character written by the user from the terminal device locally or from a server, or if the terminal device receives operation information of the character written by the user, the terminal device acquires the character written by the user. It should be noted that the terminal device may detect at preset time intervals or detect in real time whether an instruction to acquire a character written by a user is received, or receive operation information of the character written by the user. The characters include, but are not limited to, characters (e.g., chinese characters), numbers, letters, etc., and are not limited thereto.
For example, after the point reading machine is started, a character writing function is started, the exercise book is placed on a sensing panel of the point reading machine, and when characters input on the exercise book by a user through a point reading pen are detected, all stroke tracks input by the user are collected to obtain a dot matrix formed by all the stroke tracks.
Step S102, recognizing the characters written by the user to obtain standard characters matched with the characters written by the user.
In the embodiment of the present invention, after obtaining a character written by a user, normalization processing may be performed on the character written by the user, and the size of the character written by the user is adjusted to a preset standard size so as to reduce an error when the character written by the user is recognized, and then the character written by the user is recognized, specifically, each standard character in a character database locally stored in the terminal device is matched with the character written by the user one by one, so as to determine a standard character corresponding to the character written by the user, that is, a standard character matched with the character written by the user. It should be noted that, in the embodiment of the present invention, the character written by the user may also be recognized in other ways, which is not limited herein.
Optionally, the recognizing the character written by the user to obtain a standard character matched with the character written by the user includes:
and acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard character with the highest matching degree with the characters written by the user as the standard character matched with the characters written by the user.
In the embodiment of the present invention, the character database refers to a database in which standard characters of all existing characters are stored.
Optionally, the recognizing the character written by the user to obtain a standard character matched with the character written by the user includes:
acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard characters with the matching degree of the characters written by the user within a preset range as candidate standard characters;
selecting one standard character from the candidate standard characters as a standard character matched with the character written by the user.
In the embodiment of the present invention, when the terminal device uses a standard character whose matching degree with the character written by the user is within a preset range as a candidate standard character, the candidate standard character may be displayed on a screen of the terminal device for the user to select, receive a standard character selected by the user from the candidate standard character, and use the selected standard character as a standard character matching with the character written by the user. The preset range may be set according to actual needs, for example, 70% to 100%, and is not limited herein.
Optionally, the selecting a standard character from the candidate standard characters as a standard character matching the character written by the user includes:
and if a certain standard character in the candidate standard characters is detected in the scene that the user writes the characters, taking the standard character as a standard character matched with the characters written by the user.
In the embodiment of the present invention, the scene in which the user writes the character may refer to a screen of the terminal device or a textbook placed on an induction panel of the terminal device when the user writes the character. For example, before the user writes the character, a standard character of the character to be written by the user is displayed on the screen of the terminal device, and if the standard character of the character to be written by the user on the screen of the terminal device is detected in the candidate standard characters, the standard character is used as a standard character matched with the character written by the user. Or before the user writes the characters, placing the textbook on a sensing panel of the terminal equipment, and if one standard character in the candidate standard characters is detected on the current page of the textbook, taking the standard character as the standard character matched with the characters written by the user.
Step S103, respectively obtaining the stroke number of the user writing the character and the stroke number of the standard character.
In the embodiment of the present invention, the terminal device respectively obtains the number of strokes when the user writes the character and the number of strokes of the standard character matched with the character written by the user, and compares the number of strokes when the user writes the character with the number of strokes of the standard character (that is, the number of strokes of the standard character matched with the character written by the user), and if the number of strokes when the user writes the character is greater than the number of strokes of the standard character, it is detected whether at least two strokes in the character written by the user are the same; if the number of strokes of the user writing the character is equal to the number of strokes of the standard character, determining that the character written by the user is correct, namely the character written by the user is the standard character; and if the stroke number of the user writing the character is smaller than that of the standard character, determining that the character written by the user is not the standard character.
After the fact that the characters written by the user are correct is determined, the characters written by the user are subjected to normative judgment so as to detect whether the characters written by the user are normative or not, a normative recognition result of the characters written by the user is obtained, and the normative recognition result is displayed on a screen of the terminal equipment so that the user can know whether the characters written by the user are normative or not. The normative recognition result comprises a normative recognition sub-result for each stroke in the character handwritten by the user. The normative recognizer result includes metric values describing whether the stroke relative position, length, width, radian and/or stroke shape are normative. The relative position of the stroke includes, but is not limited to, the spacing between the stroke and other adjacent strokes, the spacing between the architecture in which the stroke resides and other architectures in the character written by the user. Stroke length refers to the distance a user travels during the writing of the stroke from the start of the stroke to the end of the stroke. The stroke width refers to the thickness of the stroke when the user writes the stroke. The stroke radian is the radian of a hook and/or a break hook contained by a stroke. The stroke gesture refers to the starting, stopping and front of a stroke.
It should be noted that the case that the number of strokes of the user writing the character is smaller than the number of strokes of the standard character does not generally occur, because when the standard character matched with the character written by the user is obtained in step S102, the standard character is generally recognized according to the stroke track of the user writing the character, and if the user writes one less stroke or more than one stroke when writing the character, the recognized standard character is different. For example, when the user writes a 'king', the user writes the top horizontal less, and the recognized standard character is 'soil', but not 'king', namely the user writes a mistake.
And step S104, if the number of strokes of the character written by the user is different from the number of strokes of the standard character, extracting the same strokes from the character written by the user.
In this embodiment of the present invention, if the number of strokes when the user writes the character is greater than the standard character (i.e., the standard character matching the character written by the user), it is detected whether the same strokes exist in the character written by the user, and if it is detected that the same strokes exist in the character written by the user, it is detected whether the same strokes extracted from the character written by the user are adjacent in order of strokes, and whether the same strokes extracted from the character written by the user overlap, where the overlap includes, but is not limited to, partial overlap and full overlap.
Step S105, if the stroke orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes are overlapped, determining that the same strokes extracted from the characters written by the user are repeated strokes.
In this embodiment of the present invention, after determining that the same stroke extracted from the character written by the user is a repeated stroke, the terminal device may send a prompt to the user to write a repeated stroke, where the prompt includes, but is not limited to, what kind of stroke the repeated stroke is and location information of the repeated stroke in the character written by the user. The prompt message may be sent out in the form of voice, pop-up window, or label, which is not limited herein.
The repeated strokes may refer to strokes that are re-modified after a user writes one stroke. For example, when the user writes the uppermost 'cross' of the 'king', the 'cross' is not correct for the first time, and modification optimization is performed on the 'cross' for the second time.
According to the embodiment of the invention, when the number of strokes of the user writing the character is different from the number of strokes of the corresponding standard character, the same strokes are extracted from the character written by the user, and whether the stroke orders of the extracted same strokes are adjacent and whether the same strokes are overlapped is detected, so that whether repeated characters exist in the character written by the user is detected, and the writing of the user is standardized.
Referring to fig. 2, which is a schematic view of an implementation flow of a method for determining repeated strokes provided in the second embodiment of the present invention, where the method is applied to a terminal device, as shown in the figure, the method may include the following steps:
in step S201, a character written by a user is acquired.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S202, recognizing the characters written by the user to obtain standard characters matched with the characters written by the user.
The step is the same as step S102, and reference may be made to the related description of step S102, which is not repeated herein.
Step S203, respectively obtaining the stroke number of the user writing the character and the stroke number of the standard character.
The step is the same as step S103, and reference may be made to the related description of step S103, which is not described herein again.
Step S204, if the number of the strokes of the user writing the character is different from the number of the strokes of the standard character, extracting the same strokes from the character written by the user.
The step is the same as step S104, and reference may be made to the related description of step S104, which is not repeated herein.
Step S205, if the same strokes extracted from the characters written by the user are adjacent in stroke order and overlap, determining that the same strokes extracted from the characters written by the user are repeated strokes.
The step is the same as step S105, and reference may be made to the related description of step S105, which is not repeated herein.
And step S206, pushing the correct writing demonstration information of the repeated strokes to the user.
In the embodiment of the invention, the terminal equipment can push the demonstration information of the correct writing of the repeated strokes to the foreground for displaying, so that a user can conveniently check the correct writing process of the repeated strokes. Wherein the demonstration information of the correct writing of the repeated strokes may refer to a demonstration video of the correct writing of the repeated strokes.
The embodiment of the invention adds the correct writing demonstration information of the same stroke extracted from the character written by the user to the user on the basis of the first embodiment, thereby facilitating the user to check the correct writing process of the repeated strokes and improving the user experience.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 3 is a schematic diagram of a terminal device according to a third embodiment of the present invention, and for convenience of description, only a part related to the third embodiment of the present invention is shown.
The terminal device includes:
a character acquisition module 31, configured to acquire characters written by a user;
a recognition module 32, configured to recognize the character written by the user to obtain a standard character matching the character written by the user;
a stroke number obtaining module 33, configured to obtain the number of strokes of the character written by the user and the number of strokes of the standard character, respectively;
a stroke extracting module 34, configured to extract a same stroke from the character written by the user if the number of strokes of the character written by the user is different from the number of strokes of the standard character;
a determining module 35, configured to determine that the same strokes extracted from the characters written by the user are repeated strokes if the orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes overlap.
The identification module 32 is specifically configured to:
acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard character with the highest matching degree with the characters written by the user as the standard character matched with the characters written by the user; or
The identification module 32 includes:
an obtaining unit 321, configured to obtain a matching degree between the character written by the user and a standard character in a character database, and use a standard character whose matching degree with the character written by the user is within a preset range as a candidate standard character;
a selecting unit 322, configured to select one standard character from the candidate standard characters as a standard character matching the character written by the user;
the selecting unit 322 is specifically configured to, if a standard character in the candidate standard characters is detected in the scene where the user writes the characters, take the standard character as a standard character matched with the character written by the user.
The terminal device provided in the embodiment of the present invention may be used in the foregoing first corresponding method embodiment, and for details, refer to the description of the foregoing first embodiment, which is not described herein again.
Fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown.
The terminal device includes:
a character acquisition module 41, configured to acquire characters written by a user;
a recognition module 42 for recognizing the character written by the user to obtain a standard character matching the character written by the user;
a stroke number obtaining module 43, configured to obtain the number of strokes of the character written by the user and the number of strokes of the standard character, respectively;
a stroke extracting module 44, configured to extract a same stroke from the character written by the user if the number of strokes of the character written by the user is different from the number of strokes of the standard character;
a determining module 45, configured to determine that identical strokes extracted from the character written by the user are repeated strokes if stroke orders of the identical strokes extracted from the character written by the user are adjacent and the identical strokes overlap;
a pushing module 46, configured to push demonstration information of correct writing of the repeated strokes to the user.
The identification module 42 is specifically configured to:
acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard character with the highest matching degree with the characters written by the user as the standard character matched with the characters written by the user; or
The identification module 42 includes:
an obtaining unit 421, configured to obtain a matching degree between the character written by the user and a standard character in a character database, and use a standard character whose matching degree with the character written by the user is within a preset range as a candidate standard character;
a selecting unit 422, configured to select one standard character from the candidate standard characters as a standard character matching the character written by the user;
the selecting unit 422 is specifically configured to, if a standard character exists in the candidate standard characters in the scene where the user writes the character, take the standard character as a standard character matched with the character written by the user.
The terminal device provided in the embodiment of the present invention may be used in the foregoing corresponding method embodiment two, and for details, refer to the description of the foregoing embodiment two, which is not described herein again.
Fig. 5 is a schematic diagram of a terminal device according to a fifth embodiment of the present invention. As shown in fig. 5, the terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the above steps in each embodiment of the method for determining repeated strokes, such as steps 101 to 105 shown in fig. 1 and steps S201 to S206 shown in fig. 2. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the terminal device embodiments, such as the functions of the modules 31 to 35 shown in fig. 3 and the functions of the modules 41 to 46 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the terminal device 6. For example, the computer program 52 may be divided into a character acquisition module, a recognition module, a stroke number acquisition module, a stroke extraction module, a determination module, and a push module, each of which functions as follows:
the character acquisition module is used for acquiring characters written by a user;
the recognition module is used for recognizing the characters written by the user to obtain standard characters matched with the characters written by the user;
the stroke number acquisition module is used for respectively acquiring the stroke number of the user writing the character and the stroke number of the standard character;
the stroke extraction module is used for extracting the same strokes from the characters written by the user if the number of the strokes of the user writing the characters is different from that of the standard characters;
and the determining module is used for determining that the same strokes extracted from the characters written by the user are repeated strokes if the stroke orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes are overlapped.
The identification module is specifically configured to:
acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard character with the highest matching degree with the characters written by the user as the standard character matched with the characters written by the user; or
The identification module comprises:
the acquisition unit is used for acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard characters with the matching degree of the characters written by the user within a preset range as candidate standard characters;
a selection unit configured to select one standard character from the candidate standard characters as a standard character matching the character written by the user;
the selecting unit is specifically configured to, if a standard character of the candidate standard characters is detected in a scene where the user writes the characters, take the standard character as a standard character matched with the characters written by the user.
And the pushing module is used for pushing the correct writing demonstration information of the repeated strokes to the user.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a terminal device 6 and does not constitute a limitation of terminal device 6 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (6)

1. A method of determining a repeat stroke, the method comprising:
acquiring characters written by a user;
identifying the characters written by the user to obtain standard characters matched with the characters written by the user, specifically: matching each standard character in a character database with the characters written by the user one by one to judge the standard character corresponding to the character written by the user;
respectively acquiring the stroke number of the user writing the character and the stroke number of the standard character;
if the number of strokes of the character written by the user is different from that of the standard character, extracting the same strokes from the character written by the user;
if the stroke orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes are overlapped, determining that the same strokes extracted from the characters written by the user are repeated strokes;
the recognizing the character written by the user to obtain a standard character matched with the character written by the user comprises:
acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard characters with the matching degree of the characters written by the user within a preset range as candidate standard characters;
selecting a standard character from the candidate standard characters as a standard character matched with the character written by the user, which specifically comprises: displaying the candidate standard characters on a screen of the terminal equipment for selection by a user, receiving standard characters selected by the user from the candidate standard characters, and taking the selected standard characters as standard characters matched with the characters written by the user; or, if a standard character in the candidate standard characters is detected in the scene where the user writes the characters, the standard character is used as a standard character matched with the characters written by the user.
2. The method of claim 1, after determining that identical strokes extracted from the character written by the user are repetitive strokes, further comprising:
and pushing correct writing demonstration information of the repeated strokes to the user.
3. A terminal device, characterized in that the terminal device comprises:
the character acquisition module is used for acquiring characters written by a user;
the recognition module is configured to recognize the character written by the user to obtain a standard character matched with the character written by the user, and specifically includes: matching each standard character in a character database with the characters written by the user one by one to judge the standard character corresponding to the character written by the user;
the stroke number acquisition module is used for respectively acquiring the stroke number of the user writing the character and the stroke number of the standard character;
the stroke extraction module is used for extracting the same strokes from the characters written by the user if the number of the strokes of the user writing the characters is different from that of the standard characters;
the determining module is used for determining that the same strokes extracted from the characters written by the user are repeated strokes if the stroke orders of the same strokes extracted from the characters written by the user are adjacent and the same strokes are overlapped;
the identification module comprises:
the acquisition unit is used for acquiring the matching degree of the characters written by the user and standard characters in a character database, and taking the standard characters with the matching degree of the characters written by the user within a preset range as candidate standard characters;
a selection unit configured to select one standard character from the candidate standard characters as a standard character matching the character written by the user;
the selection unit is specifically configured to display the candidate standard characters on a screen of the terminal device for selection by a user, receive a standard character selected by the user from the candidate standard characters, and use the selected standard character as a standard character matched with the character written by the user; or, if a standard character in the candidate standard characters is detected in the scene where the user writes the characters, the standard character is used as a standard character matched with the characters written by the user.
4. The terminal device of claim 3, wherein the terminal device further comprises:
and the pushing module is used for pushing the correct writing demonstration information of the repeated strokes to the user.
5. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to claim 1 or 2 are implemented when the processor executes the computer program.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to claim 1 or 2.
CN201710332003.9A 2017-05-11 2017-05-11 Method for judging repeated strokes, terminal equipment and computer readable storage medium Active CN107169517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710332003.9A CN107169517B (en) 2017-05-11 2017-05-11 Method for judging repeated strokes, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710332003.9A CN107169517B (en) 2017-05-11 2017-05-11 Method for judging repeated strokes, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107169517A CN107169517A (en) 2017-09-15
CN107169517B true CN107169517B (en) 2020-08-18

Family

ID=59815304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710332003.9A Active CN107169517B (en) 2017-05-11 2017-05-11 Method for judging repeated strokes, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107169517B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032383B (en) * 2018-09-13 2022-09-16 广东工业大学 Input method based on handwriting recognition
WO2020124442A1 (en) * 2018-12-19 2020-06-25 深圳市欢太科技有限公司 Pushing method and related product

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6972748B1 (en) * 2000-08-31 2005-12-06 Microsoft Corporation J-key input for computer systems
CN102339392B (en) * 2010-07-20 2014-07-02 广东因豪信息科技有限公司 Method and device for judging standardability of handwritten Chinese character
CN104008405A (en) * 2013-02-26 2014-08-27 佳能株式会社 Handwritten character recognition method and handwritten character recognition device
CN103390358B (en) * 2013-07-03 2015-08-19 广东小天才科技有限公司 The character writing operation of electronic equipment is carried out to method and the device of standardization judgement
CN104239910B (en) * 2014-07-31 2017-05-17 南京师范大学 Stroke addition recognition method for online handwritten Chinese characters
CN105046287B (en) * 2015-06-29 2018-05-18 西北工业大学 A kind of online more strokes repeat the cluster and approximating method of skeletonizing

Also Published As

Publication number Publication date
CN107169517A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN106991303B (en) Gesture verification code identification method and device
EP3564855A1 (en) Method and device for license plate positioning
CN108717744B (en) Method and device for identifying seal serial number on financial document and terminal equipment
CN107491536B (en) Test question checking method, test question checking device and electronic equipment
CN103473492A (en) Method and user terminal for recognizing permission
CN107169517B (en) Method for judging repeated strokes, terminal equipment and computer readable storage medium
CN104794485A (en) Written character recognizing method and written character recognizing device
CN112668580A (en) Text recognition method, text recognition device and terminal equipment
CN102929394B (en) A kind of Braille input method based on gesture identification
CN108846339B (en) Character recognition method and device, electronic equipment and storage medium
US9330086B2 (en) Method and apparatus for identifying a language used in a document and performing OCR recognition based on the language identified
CN112712005B (en) Training method of recognition model, target recognition method and terminal equipment
CN114049568A (en) Object shape change detection method, device, equipment and medium based on image comparison
CN111027533B (en) Click-to-read coordinate transformation method, system, terminal equipment and storage medium
CN110969640A (en) Video image segmentation method, terminal device and computer-readable storage medium
CN112632926A (en) Data processing method and device for bill, electronic equipment and storage medium
US20170277423A1 (en) Information processing method and electronic device
CN112418089A (en) Gesture recognition method and device and terminal
CN112287936A (en) Optical character recognition test method and device, readable storage medium and terminal equipment
CN111259764A (en) Text detection method and device, electronic equipment and storage device
CN110852131A (en) Information acquisition method, system and terminal for examination card
CN107071553B (en) Method, device and computer readable storage medium for modifying video and voice
US20130330005A1 (en) Electronic device and character recognition method for recognizing sequential code
CN114049686A (en) Signature recognition model training method and device and electronic equipment
CN112434700A (en) License plate recognition method, device, equipment and storage medium

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