WO2022160330A1 - Handwriting recognition method and apparatus - Google Patents

Handwriting recognition method and apparatus Download PDF

Info

Publication number
WO2022160330A1
WO2022160330A1 PCT/CN2021/074622 CN2021074622W WO2022160330A1 WO 2022160330 A1 WO2022160330 A1 WO 2022160330A1 CN 2021074622 W CN2021074622 W CN 2021074622W WO 2022160330 A1 WO2022160330 A1 WO 2022160330A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
trajectory
text recognition
track
recognition result
Prior art date
Application number
PCT/CN2021/074622
Other languages
French (fr)
Chinese (zh)
Inventor
贾红红
黄光伟
张文浩
Original Assignee
京东方科技集团股份有限公司
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 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Priority to PCT/CN2021/074622 priority Critical patent/WO2022160330A1/en
Priority to CN202180001926.0A priority patent/CN115413335A/en
Priority to US17/789,592 priority patent/US20230343125A1/en
Priority to PCT/CN2021/107460 priority patent/WO2022160619A1/en
Publication of WO2022160330A1 publication Critical patent/WO2022160330A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method and device for handwriting recognition.
  • the handwriting trajectory is recognized, and the text of the recognition result is stored in the form of a document. If the user wants to check the recognition result, he needs to open the document for browsing in the background. If he wants to confirm whether the recognition is wrong, he needs to compare it with the original handwriting trace word by word. If the recognition is wrong, he needs to edit the document twice. The method is very inconvenient for users to use, and the recognition efficiency is low.
  • Embodiments of the present disclosure provide a handwriting recognition method and device, which are used to solve the problem that the user cannot view the handwriting recognition result in real time in the existing handwriting recognition method.
  • an embodiment of the present disclosure provides a method for handwriting recognition, including:
  • the information includes coordinates, time, and the user's writing state
  • the user's writing state includes: starting a pen, running a pen, and lifting a pen; the multiple track points Including the starting track point and the current track point;
  • the determination condition is that no new track point is detected within the preset time period after the pen-lifting moment of the current track point, and the starting track point is the last input to the text recognition model last time.
  • a text recognition model is used to recognize the first track point to be recognized, and a first text recognition result is obtained;
  • the first text recognition result is displayed in printed form in the first display area of the handwriting screen.
  • a text recognition model is used to recognize the information of the first track point to be recognized, and before obtaining the first text recognition result, it also includes at least one of the following:
  • the coordinates of the first track point to be identified are normalized into the same numerical range.
  • branching the first track point to be identified includes:
  • the first track point to be identified is divided into rows.
  • a text recognition model to recognize the information of the first track point to be recognized, and after obtaining the first text recognition result, the method further includes:
  • displaying the first text recognition result in printed form in the first display area includes:
  • the first text recognition result is displayed in printed form in the first display area.
  • determining the first display area according to the coordinates of the first track point to be identified includes:
  • a first rectangular frame is determined, and the first rectangular frame is used as the first display area.
  • determining the first display area according to the coordinates of the first track point to be identified includes:
  • the first display area is determined according to the corrected coordinates.
  • displaying the first text recognition result in printed form in the first display area includes:
  • the first text recognition result is displayed in the first display area with the determined font size and word spacing.
  • the first text recognition result in printed form includes:
  • the information of the second to-be-recognized track point corresponding to the handwritten track rewritten by the user includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen, and lifting the pen;
  • the second to-be-recognized Track points include start track points and end track points;
  • the starting track point is the next track point of the last track point input to the text recognition model last time;
  • the second text recognition result is displayed in print in the second display area.
  • displaying the second text recognition result in printed form in the second display area includes:
  • a second rectangular frame is determined, and the second rectangular frame is used as the second display area.
  • displaying the second text recognition result in printed form in the second display area includes:
  • the display information of the first text recognition result includes the size and coordinates of the font
  • the second display area is determined, and the second text recognition result is displayed in printed form in the second display area, and the size of the font in the second text recognition result is the same as the size of the The fonts in the first text recognition result are of the same size, and the text in the second text recognition result is aligned with the text in the first text recognition result.
  • an embodiment of the present disclosure provides a handwriting recognition device, including:
  • the detection module is used to detect the information of multiple trajectory points corresponding to the handwriting trajectory of the user on the handwriting screen, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lifting the pen;
  • the multiple track points include a start track point and a current track point;
  • the second track point to be identified includes a start track point and an end track point;
  • the judgment module is used to judge whether the current trajectory point is the termination trajectory point according to the judgment condition, if the current trajectory point satisfies the judgment condition, the current trajectory point is used as the termination trajectory point, and the period between the start trajectory point and the termination trajectory point is determined.
  • the track point is used as the first track point to be identified, the determination condition is that no new track point is detected within a preset time period after the pen-lifting moment of the current track point, and the starting track point is the last input to the text Identify the next trajectory point of the last trajectory point of the model, or, the first trajectory point of the handwriting screen;
  • a recognition module configured to recognize the first track point to be recognized by using a text recognition model to obtain a first text recognition result
  • a display module configured to display the first text recognition result in printed form in the first display area of the handwriting screen.
  • an embodiment of the present disclosure provides an interactive tablet, including a touch module, a display module, a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program Or, when the instructions are executed by the processor, the steps of the above-mentioned handwriting recognition method of the first aspect are implemented.
  • an embodiment of the present disclosure provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the handwriting recognition method of the above-mentioned first aspect are implemented .
  • the text recognition result of the handwritten trajectory is displayed in real time in printed form, so that it is convenient for the user to view and correct the text recognition result in real time, which can effectively improve the recognition rate and enhance the communication with the user. interactivity between.
  • FIG. 1 is a schematic flowchart of a handwriting recognition method according to an embodiment of the disclosure
  • FIG. 2 is a comparison diagram of a handwriting trajectory displayed on a handwriting screen according to an embodiment of the present disclosure and a text recognition result;
  • FIG. 3 is a schematic structural diagram of a handwriting recognition device according to an embodiment of the disclosure.
  • FIG. 4 is a schematic diagram of a composition structure of a handwriting recognition apparatus according to an embodiment of the present disclosure.
  • an embodiment of the present disclosure provides a method for handwriting recognition, including:
  • Step 11 Detect the information of multiple track points corresponding to the user's handwriting track on the handwriting screen, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lifting the pen; Each track point includes the start track point and the current track point;
  • the handwriting screen can be a handwriting device such as an electronic conference whiteboard, and has a touch module and a display module.
  • the track point may include a track point of one character or multiple characters, and the character may be Chinese, English, numbers, or the like.
  • the upper left corner of the handwriting screen may be used as the origin, the X axis extending from left to right, and the Y axis extending from top to bottom.
  • the lower left corner of the handwriting screen can also be used as the origin, the X axis extending from left to right, and the Y axis extending from bottom to top.
  • the embodiment of the present disclosure does not limit the settings of the coordinate axes.
  • starting a pen refers to the first trajectory point of a stroke
  • raising a pen refers to the last trajectory point of a stroke
  • moving a pen refers to the middle trajectory point of a stroke.
  • each track point may be as follows: (x, y, t, flag), where x and y represent the coordinate position of each track point, and t is the writing of the track point Time, flag indicates the user's writing status (starting, running, or lifting).
  • the current track point refers to the last track point handwritten by the user on the handwriting screen.
  • Step 12 Determine whether the current trajectory point is the termination trajectory point according to the judgment condition, if the current trajectory point satisfies the judgment condition, take the current trajectory point as the termination trajectory point, and use the trajectory point between the start trajectory point and the end trajectory point As the first track point to be recognized, the determination condition is that no new track point is detected within a preset time period after the pen-lifting time of the current track point, and the starting track point is the last input to the text recognition model The next trajectory point of the last trajectory point of , or, the first trajectory point of the handwriting screen;
  • the first track point to be recognized includes a start track point and an end track point of the handwritten track.
  • Step 13 using a text recognition model to recognize the first track point to be recognized to obtain a first text recognition result
  • Step 14 Display the first text recognition result in printed form in the first display area of the handwriting screen.
  • the print type in Chinese adopts Song type, italic type, or bold type, etc.
  • English and numerals are in Times New Roman, etc., so as to be distinguished from handwritten tracks.
  • FIG. 2 is a comparison diagram of a handwriting trajectory displayed on a handwriting screen and a text recognition result according to an embodiment of the disclosure.
  • the text recognition result of the handwritten trajectory is displayed in real time in printed form, so that it is convenient for the user to view and correct the text recognition result in real time, which can effectively improve the recognition rate and enhance the communication with the user. interactivity between.
  • the text recognition model receives the coordinates of many track points, these track points are arranged in the order of writing time without branching.
  • the text recognition model recognizes the text track points line by line, so firstly, all track points need to be divided into lines (if the user writes multiple lines, the track points need to be divided into lines, if the user writes only one line, it is not branch is required). That is, in the example of the present disclosure, before using the text recognition model to identify and identify the information of the first track point to be identified, the first track point to be identified may also be branched.
  • the projection method may be used to branch the first track point to be identified, that is, branching the first track point to be identified includes:
  • Step 21 Obtain the number of X-axis coordinate values of the first to-be-identified trajectory point corresponding to each Y-axis coordinate value of the first to-be-identified trajectory point;
  • Step 22 According to the number of the X-axis coordinate values on the Y-axis, branch the first track point to be identified.
  • the number of the X-axis coordinate values of all the track points in the first track point to be identified is projected onto the Y-axis.
  • the number will be relatively large. If the handwritten track has branch lines, the number of X-axis coordinate values on the Y-axis in the blank positions in the two lines before and after is small or 0, that is, a trough occurs, and the value of the trough is taken as Branch basis.
  • the present disclosure implements In an example, before branching the first track point to be identified, it can also include:
  • the coordinates of the first track point to be recognized are tilted and corrected to obtain corrected coordinates.
  • a text recognition model is used for the first to-be-recognized Identifying the information of the track point, and before obtaining the first text recognition result, further includes: normalizing the coordinates of the first track point to be recognized into the same numerical range, for example, normalizing to (0,1).
  • a Seq2Seq network may be used to perform text recognition on the information of the first track point to be identified.
  • other text recognition models such as RNN networks, etc., may also be used.
  • a text recognition model is used to recognize the information of the first track point to be recognized, and after obtaining the first text recognition result, the method further includes: performing semantic correction on the first text recognition result.
  • the semantic correction may include: Chinese semantic correction and/or English semantic correction. According to the semantic information before and after, when there is a letter recognition error in an English word, the wrong letter is corrected.
  • displaying the first text recognition result in printed form in the first display area includes:
  • Step 31 remove the handwriting track corresponding to the first track point to be recognized on the handwriting screen
  • Step 32 Determine a first display area according to the coordinates of the first track point to be identified
  • Step 33 Display the first text recognition result in printed form in the first display area.
  • the handwriting track on the handwriting screen is erased in real time, and the text recognition result of the handwriting track is displayed in printed form in real time in the area where the handwriting track is located, which further facilitates the user to view and check the handwriting track in real time. Correct text recognition results.
  • determining the first display area according to the coordinates of the first track point to be identified includes:
  • Step 41 Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified, namely x min , y min , x max , y max ;
  • Step 42 Determine the first rectangular frame according to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified, and use the first rectangular frame as the first display area.
  • determining the first display area according to the coordinates of the first track point to be identified includes:
  • Step 51 Determine whether the handwritten trajectory corresponding to the first to-be-recognized trajectory point is inclined;
  • Step 52 If the handwritten track corresponding to the first track point to be recognized is inclined, perform tilt correction on the coordinates of the first track point to be recognized to obtain corrected coordinates.
  • Step 53 Determine the first display area according to the corrected coordinates.
  • the method for performing tilt correction on the coordinates of the first track point to be identified may be: firstly, a rectangular frame may be determined according to the original coordinates of the first track point to be identified, and then a rectangular frame may be determined. A point is used as the rotation center of the rectangle frame to rotate the rectangle frame, and the rotation center can be the center point of the rectangle frame or other points.
  • the first rectangular frame is determined as the first display area in the manner of step 41 and step 42 . That is to say, the minimum X-axis coordinates, the minimum Y-axis coordinates, the maximum X-axis coordinates, and the maximum Y-axis coordinates in steps 41 and 42 are all corrected coordinates.
  • displaying the first text recognition result in printed form in the first display area includes:
  • the first text recognition result is displayed in the first display area with the determined font size and word spacing.
  • the correspondence between the font and the word spacing may be pre-stored, and after the font size is determined, the word spacing is also determined accordingly.
  • the word spacing can be determined according to the size of the first display area.
  • the method further includes:
  • Step 51 receiving the user's erasing operation on the target text in the first text recognition result, erasing the target text;
  • Step 52 Detect the information of the second to-be-recognized track point corresponding to the handwritten track rewritten by the user, the information includes coordinates, time, and the user's writing state, and the user's writing state includes: starting the pen, running the pen, and lifting the pen; 2.
  • the track points to be identified include the start track point and the end track point;
  • the user can rewrite in the erased area, or can rewrite in other locations.
  • Step 53 Determine whether the current trajectory point is the termination trajectory point of the second to-be-identified trajectory point according to the judgment condition, and if the current trajectory point satisfies the judgment condition, use the current trajectory point as the termination trajectory point of the second to-be-identified trajectory point , taking the trajectory point during the starting trajectory point and the ending trajectory point as the second trajectory point to be identified, and the determination condition is that no new trajectory point is detected within the preset time period after the pen-lifting moment of the current trajectory point,
  • the starting trajectory point is the next trajectory point of the last trajectory point input to the text recognition model last time;
  • Step 54 using a text recognition model to recognize the second track point to be recognized to obtain a second text recognition result
  • the second track point to be identified may also be processed by branching and/or normalization.
  • the processing method please refer to the above-mentioned first track point to be identified, which will not be described one by one here. .
  • semantic correction can also be performed.
  • Step 54 Display the second text recognition result in printed form in the second display area.
  • Times New Roman For example, Chinese uses Times New Roman, etc. for Chinese, and Times New Roman is used for English and numerals, so as to distinguish them from handwritten tracks. Optionally, it is the same as the printing used for the first text recognition result.
  • the handwriting track on the handwriting screen is erased in real time, and the recognition result of the handwriting track is displayed in print in real time in the area where the handwriting track is located, so as to facilitate the user to view, check, and correct the recognition in real time. As a result, the interactivity with the user is improved.
  • the user is supported to perform multiple erasing and rewriting.
  • displaying the second text recognition result in printed form in the second display area includes:
  • Step 61 Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified;
  • Step 62 Determine a second rectangular frame according to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified, and use the second rectangular frame as the second display area.
  • the second display area displays the second text recognition result in printed form, it may further include:
  • Step 71 judging whether the handwritten trajectory corresponding to the second recognition trajectory point is inclined
  • Step 72 If the handwritten track corresponding to the second identified track point is inclined, perform tilt correction on the coordinates of the second track point to be identified to obtain corrected coordinates.
  • Step 73 Determine the second display area according to the corrected coordinates.
  • the second display area is determined according to the above steps 61 and 62 .
  • displaying the second text recognition result in printed form in the second display area includes:
  • Step 81 Acquire display information of the first text recognition result, the display information includes font size and coordinates;
  • the text is aligned with the text in the first text recognition result.
  • the correspondence between the font and the word spacing may be pre-stored, and after the font size is determined, the word spacing is also determined accordingly.
  • the word spacing can be determined according to the size of the second display area.
  • the display effect of the text recognition result can be improved.
  • an embodiment of the present disclosure further provides a handwriting recognition device 300, including:
  • the detection module 301 is used to detect the information of multiple track points corresponding to the handwriting track of the user on the handwriting screen, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lifting the pen;
  • the multiple track points include a start track point and a current track point;
  • the determination module 302 is used to determine whether the current trajectory point is the termination trajectory point according to the determination condition, if the current trajectory point satisfies the determination condition, the current trajectory point is used as the termination trajectory point, and the period between the start trajectory point and the termination trajectory point is determined.
  • the trajectory point is used as the first trajectory point to be identified, and the determination condition is that no new trajectory point is detected within the preset time period after the pen-lifting moment of the current trajectory point, and the starting trajectory point is the last input to the The next trajectory point of the last trajectory point of the text recognition model, or, the first trajectory point of the handwriting screen;
  • An identification module 303 configured to identify the first track point to be identified by using a text identification model to obtain a first text identification result
  • the display module 304 is configured to display the first text recognition result in printed form in the first display area of the handwriting screen.
  • the text recognition result of the handwritten trajectory is displayed in real time in printed form, so that it is convenient for the user to view and correct the text recognition result in real time, which can effectively improve the recognition rate and enhance the communication with the user. interactivity between.
  • the handwriting recognition device further includes at least one of the following:
  • a branching module for branching the first track point to be identified
  • the normalization module is used for normalizing the coordinates of the first track point to be recognized to be within the same numerical range.
  • the branch module is configured to acquire the number of X-axis coordinate values of the first to-be-identified trajectory point corresponding to each Y-axis coordinate value of the first to-be-identified trajectory point number; according to the number of the X-axis coordinate values on the Y-axis, the first track point to be identified is divided into rows.
  • the handwriting recognition device further includes:
  • a semantic recognition module configured to perform semantic recognition on the first text recognition result, and perform semantic correction if the first text recognition result has a semantic error.
  • the display module is configured to remove the handwriting track corresponding to the first track point to be recognized on the handwriting screen; and determine according to the coordinates of the first track point to be recognized a first display area; displaying the first text recognition result in printed form in the first display area.
  • the display module is configured to acquire the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate, and the maximum Y-axis coordinate in the first track point to be identified;
  • a first rectangular frame is determined, and the first rectangular frame is used as the first display area.
  • the display module is further configured to determine whether the handwritten track corresponding to the first track point to be recognized is inclined; if the handwritten track corresponding to the first track point to be recognized is tilted, Perform tilt correction on the coordinates of the first track point to be identified to obtain corrected coordinates; and determine a first display area according to the corrected coordinates.
  • the display module is further configured to determine the size of the font of the first text recognition result according to the size of the first display area; The size of the first text recognition result is determined, and the word spacing of the first text recognition result is determined; the first text recognition result is displayed in the first display area with the determined font size and word spacing.
  • the handwriting recognition device further includes:
  • an erasing module for receiving the user's erasing operation on the target text in the first text recognition result, and erasing the target text
  • the detection module is also used to detect the information of the second track point to be recognized corresponding to the handwritten track rewritten by the user, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lift the pen; the second track point to be identified includes a start track point and a termination track point;
  • the determination module is further configured to determine whether the current track point is the termination track point of the second track point to be identified according to the determination condition, and if the current track point satisfies the determination condition, the current track point is used as the second track point to be identified.
  • the termination trajectory point of the point, the trajectory point during the initial trajectory point and the termination trajectory point is used as the second trajectory point to be identified, and the judgment condition is that the current trajectory point is not detected within a preset time period after the pen-lifting time A new trajectory point, the initial trajectory point is the next trajectory point of the last trajectory point input to the text recognition model last time;
  • the recognition module is further configured to use a text recognition model to recognize the second track point to be recognized to obtain a second text recognition result;
  • the display module is further configured to display the second text recognition result in printed form in the second display area.
  • the display module is further configured to acquire the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate, and the maximum Y-axis coordinate in the second track point to be identified; according to The minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate, and the maximum Y-axis coordinate in the second track point to be identified, determine a second rectangular frame, and use the second rectangular frame as the second display area .
  • the display module is further configured to acquire display information of the first text recognition result, where the display information includes the font size and coordinates; and determine the display information according to the display information.
  • the display information includes the font size and coordinates; and determine the display information according to the display information.
  • a second display area and the second text recognition result is displayed in printed form in the second display area, the size of the font in the second text recognition result is the same as the size of the font in the first text recognition result The size is the same, and the text in the second text recognition result is aligned with the text in the first text recognition result.
  • the above-mentioned functional modules may be integrated in one entity device, or may be set in multiple entity devices.
  • the above-mentioned function module used to detect the information of the trajectory point corresponding to the handwriting trajectory of the user on the handwriting screen The detection module, the display module used to display the text recognition results in printed form, can be set on the handwriting screen.
  • the handwriting screen can be called the front end at this time, and is used to use the text recognition model to recognize the information of the track points to be recognized, and obtain
  • the recognition module of the text recognition result can be set on the server.
  • the server can also be called the backend at this time. Please refer to Figure 4.
  • the information of the trajectory points detected by the handwriting screen is sent to the server, and the server recognizes the information of the trajectory points.
  • the text recognition result is obtained and sent to the handwriting screen for display by the handwriting screen.
  • Embodiments of the present disclosure also provide an interactive tablet, including a touch module, a display module, a processor and a memory, and a program or instruction stored in the memory and executable on the processor, where the program or instruction is executed by the processor
  • a touch module including a touch module, a display module, a processor and a memory
  • a program or instruction stored in the memory and executable on the processor, where the program or instruction is executed by the processor
  • Embodiments of the present disclosure further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiments of the handwriting recognition method can be implemented, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
  • the processor is the processor in the terminal described in the foregoing embodiment.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

Abstract

Provided are a handwriting recognition method and apparatus. The handwriting recognition method comprises: detecting information of a plurality of trajectory points corresponding to a handwriting trajectory of a user on a handwriting screen, wherein the plurality of trajectory points comprise a starting trajectory point and the current trajectory point; if the current trajectory point is a termination trajectory point, taking trajectory points between the starting trajectory point and the termination trajectory point as trajectory points to be recognized, wherein if no new trajectory point is detected within a pre-set duration after a pen lifting moment of the current trajectory point, the current trajectory point is the termination trajectory point, and the starting trajectory point is the trajectory point next to the last trajectory point, which was input into a text recognition model last time, or is the first trajectory point of the handwriting screen; recognizing, by using the text recognition model, information of the trajectory point to be recognized, so as to obtain a text recognition result; and displaying the text recognition result in print form. In the embodiments of the present disclosure, a text recognition result of a handwriting trajectory is displayed in real time, such that a user can conveniently check and correct the text recognition result in real time, and the recognition rate can be effectively improved.

Description

手写体识别方法及装置Handwriting recognition method and device 技术领域technical field
本公开实施例涉及计算机技术领域,尤其涉及一种手写体识别方法及装置。The embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method and device for handwriting recognition.
背景技术Background technique
现有的手写体识别方法中,一般是在用户在电子白板上书写后,对手写轨迹进行识别,并把识别结果的文本以文档的形式进行存储。用户如果想查看识别结果,需在后台打开文档进行浏览,如果想确认识别是否有误,需要与原始手写轨迹逐字进行对照,若识别有误,需在文档里进行二次编辑,这种交互方式用户使用起来非常不方便,且识别效率较低。In the existing handwriting recognition method, generally after the user writes on the electronic whiteboard, the handwriting trajectory is recognized, and the text of the recognition result is stored in the form of a document. If the user wants to check the recognition result, he needs to open the document for browsing in the background. If he wants to confirm whether the recognition is wrong, he needs to compare it with the original handwriting trace word by word. If the recognition is wrong, he needs to edit the document twice. The method is very inconvenient for users to use, and the recognition efficiency is low.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供一种手写体识别方法及装置,用于解决现有的手写体识别方法用户对手写体识别结果无法实时查看的问题。Embodiments of the present disclosure provide a handwriting recognition method and device, which are used to solve the problem that the user cannot view the handwriting recognition result in real time in the existing handwriting recognition method.
为了解决上述技术问题,本公开是这样实现的:In order to solve the above-mentioned technical problems, the present disclosure is implemented as follows:
第一方面,本公开实施例提供了一种手写体识别方法,包括:In a first aspect, an embodiment of the present disclosure provides a method for handwriting recognition, including:
检测用户在手写屏上的手写轨迹对应的多个轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述多个轨迹点包括起始轨迹点和当前轨迹点;Detect the information of multiple track points corresponding to the user's handwriting track on the handwriting screen, the information includes coordinates, time, and the user's writing state, and the user's writing state includes: starting a pen, running a pen, and lifting a pen; the multiple track points Including the starting track point and the current track point;
根据判定条件判定当前轨迹点是否为终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第一待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点,或者,所述手写屏的第一个轨迹点;Determine whether the current trajectory point is the termination trajectory point according to the judgment condition, if the current trajectory point satisfies the judgment condition, take the current trajectory point as the termination trajectory point, and take the trajectory point between the start trajectory point and the termination trajectory point as the first trajectory point The track point to be identified, the determination condition is that no new track point is detected within the preset time period after the pen-lifting moment of the current track point, and the starting track point is the last input to the text recognition model last time. The next trajectory point of the trajectory point, or, the first trajectory point of the handwriting screen;
采用文本识别模型对所述第一待识别轨迹点进行识别,得到第一文本识别结果;A text recognition model is used to recognize the first track point to be recognized, and a first text recognition result is obtained;
在所述手写屏的第一显示区域以印刷体形式显示所述第一文本识别结果。The first text recognition result is displayed in printed form in the first display area of the handwriting screen.
可选的,采用文本识别模型对所述第一待识别轨迹点的信息进行识别,得到第一文本识别结果之前还包括以下至少一项:Optionally, a text recognition model is used to recognize the information of the first track point to be recognized, and before obtaining the first text recognition result, it also includes at least one of the following:
对所述第一待识别轨迹点进行分行;Branching the first track point to be identified;
将所述第一待识别轨迹点的坐标归一到同一数值范围内。The coordinates of the first track point to be identified are normalized into the same numerical range.
可选的,对所述第一待识别轨迹点进行分行包括:Optionally, branching the first track point to be identified includes:
获取所述第一待识别轨迹点的每一Y轴坐标值对应的所述第一待识别轨迹点的X轴坐标值的个数;Obtain the number of X-axis coordinate values of the first to-be-identified trajectory point corresponding to each Y-axis coordinate value of the first to-be-identified trajectory point;
根据Y轴上所述X轴坐标值的个数,对所述第一待识别轨迹点进行分行。According to the number of the X-axis coordinate values on the Y-axis, the first track point to be identified is divided into rows.
可选的,采用文本识别模型对所述第一待识别轨迹点的信息进行识别,得到第一文本识别结果之后还包括:Optionally, use a text recognition model to recognize the information of the first track point to be recognized, and after obtaining the first text recognition result, the method further includes:
对所述第一文本识别结果进行语义识别,若所述第一文本识别结果具有语义错误,进行语义矫正。Perform semantic recognition on the first text recognition result, and perform semantic correction if the first text recognition result has a semantic error.
可选的,在第一显示区域以印刷体形式显示所述第一文本识别结果包括:Optionally, displaying the first text recognition result in printed form in the first display area includes:
去除所述手写屏上的所述第一待识别轨迹点对应的手写轨迹;removing the handwriting track corresponding to the first track point to be recognized on the handwriting screen;
根据所述第一待识别轨迹点的坐标,确定第一显示区域;determining a first display area according to the coordinates of the first track point to be identified;
在所述第一显示区域以印刷体形式显示所述第一文本识别结果。The first text recognition result is displayed in printed form in the first display area.
可选的,根据所述第一待识别轨迹点的坐标,确定第一显示区域包括:Optionally, determining the first display area according to the coordinates of the first track point to be identified includes:
获取所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标;Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified;
根据所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第一矩形框,将所述第一矩形框作为所述第一显示区域。According to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified, a first rectangular frame is determined, and the first rectangular frame is used as the first display area.
可选的,根据所述第一待识别轨迹点的坐标,确定第一显示区域包括:Optionally, determining the first display area according to the coordinates of the first track point to be identified includes:
判断所述第一待识别轨迹点对应的手写轨迹是否发生倾斜;judging whether the handwritten trajectory corresponding to the first to-be-recognized trajectory point is inclined;
若所述第一待识别轨迹点对应的手写轨迹发生倾斜,对所述第一待识别轨迹点的坐标进行倾斜矫正,得到矫正后的坐标;If the handwritten trajectory corresponding to the first track point to be recognized is inclined, perform tilt correction on the coordinates of the first track point to be recognized to obtain corrected coordinates;
根据矫正后的坐标确定第一显示区域。The first display area is determined according to the corrected coordinates.
可选的,在所述第一显示区域以印刷体形式显示所述第一文本识别结果包括:Optionally, displaying the first text recognition result in printed form in the first display area includes:
根据所述第一显示区域的大小,确定所述第一文本识别结果的字体的大小;determining the font size of the first text recognition result according to the size of the first display area;
根据所述第一文本识别结果的字体的大小,确定所述第一文本识别结果的字间距;Determine the word spacing of the first text recognition result according to the size of the font of the first text recognition result;
在所述第一显示区域以确定的字体的大小和字间距显示所述第一文本识别结果。The first text recognition result is displayed in the first display area with the determined font size and word spacing.
可选的,以印刷体形式显示所述第一文本识别结果之后包括:Optionally, after displaying the first text recognition result in printed form, it includes:
接收用户对所述第一文本识别结果中的目标文本的擦除操作,擦除目标文本;Receiving the user's erasing operation on the target text in the first text recognition result, erasing the target text;
检测用户重写的手写轨迹对应的第二待识别轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述第二待识别轨迹点包括起始轨迹点和终止轨迹点;Detect the information of the second to-be-recognized track point corresponding to the handwritten track rewritten by the user, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen, and lifting the pen; the second to-be-recognized Track points include start track points and end track points;
根据判定条件判定当前轨迹点是否为第二待识别轨迹点的终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为第二待识别轨迹点的终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第二待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点;Determine whether the current trajectory point is the termination trajectory point of the second to-be-identified trajectory point according to the judgment condition. If the current trajectory point satisfies the judgment condition, the current trajectory point is used as the termination trajectory point of the second to-be-identified trajectory point, and the start The trajectory point between the start trajectory point and the end trajectory point is used as the second trajectory point to be identified, and the judgment condition is that no new trajectory point is detected within the preset time period after the pen-lifting moment of the current trajectory point, and the start trajectory point is not detected. The starting track point is the next track point of the last track point input to the text recognition model last time;
采用文本识别模型对所述第二待识别轨迹点进行识别,得到第二文本识别结果;Recognize the second track point to be recognized by using a text recognition model to obtain a second text recognition result;
在第二显示区域以印刷体形式显示所述第二文本识别结果。The second text recognition result is displayed in print in the second display area.
可选的,在第二显示区域以印刷体形式显示所述第二文本识别结果包括:Optionally, displaying the second text recognition result in printed form in the second display area includes:
获取所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标;Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified;
根据所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第二矩形框,将所述第二矩形框作为所述第二显示区域。According to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified, a second rectangular frame is determined, and the second rectangular frame is used as the second display area.
可选的,在第二显示区域以印刷体形式显示所述第二文本识别结果包括:Optionally, displaying the second text recognition result in printed form in the second display area includes:
获取所述第一文本识别结果的显示信息,所述显示信息包括字体的大小 和坐标;Obtain the display information of the first text recognition result, and the display information includes the size and coordinates of the font;
根据所述显示信息,确定所述第二显示区域,并在所述第二显示区域以印刷体形式显示所述第二文本识别结果,所述第二文本识别结果中的字体的大小与所述第一文本识别结果中的字体的大小相同,所述第二文本识别结果中的文字与所述第一文本识别结果中的文字对齐。According to the display information, the second display area is determined, and the second text recognition result is displayed in printed form in the second display area, and the size of the font in the second text recognition result is the same as the size of the The fonts in the first text recognition result are of the same size, and the text in the second text recognition result is aligned with the text in the first text recognition result.
第二方面,本公开实施例提供了一种手写体识别装置,包括:In a second aspect, an embodiment of the present disclosure provides a handwriting recognition device, including:
检测模块,用于检测用户在手写屏上的手写轨迹对应的多个轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述多个轨迹点包括起始轨迹点和当前轨迹点;所述第二待识别轨迹点包括起始轨迹点和终止轨迹点;The detection module is used to detect the information of multiple trajectory points corresponding to the handwriting trajectory of the user on the handwriting screen, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lifting the pen; The multiple track points include a start track point and a current track point; the second track point to be identified includes a start track point and an end track point;
判定模块,用于根据判定条件判定当前轨迹点是否为终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第一待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点,或者,所述手写屏的第一个轨迹点;The judgment module is used to judge whether the current trajectory point is the termination trajectory point according to the judgment condition, if the current trajectory point satisfies the judgment condition, the current trajectory point is used as the termination trajectory point, and the period between the start trajectory point and the termination trajectory point is determined. The track point is used as the first track point to be identified, the determination condition is that no new track point is detected within a preset time period after the pen-lifting moment of the current track point, and the starting track point is the last input to the text Identify the next trajectory point of the last trajectory point of the model, or, the first trajectory point of the handwriting screen;
识别模块,用于采用文本识别模型对所述第一待识别轨迹点进行识别,得到第一文本识别结果;a recognition module, configured to recognize the first track point to be recognized by using a text recognition model to obtain a first text recognition result;
显示模块,用于在所述手写屏的第一显示区域以印刷体形式显示所述第一文本识别结果。A display module, configured to display the first text recognition result in printed form in the first display area of the handwriting screen.
第三方面,本公开实施例提供了一种交互平板,包括触摸模块,显示模块,处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现上述第一方面的手写体识别方法的步骤。In a third aspect, an embodiment of the present disclosure provides an interactive tablet, including a touch module, a display module, a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program Or, when the instructions are executed by the processor, the steps of the above-mentioned handwriting recognition method of the first aspect are implemented.
第四方面,本公开实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现上述第一方面的手写体识别方法的步骤。In a fourth aspect, an embodiment of the present disclosure provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the handwriting recognition method of the above-mentioned first aspect are implemented .
本公开实施例中,对手写轨迹进行实时识别之后,以印刷体形式实时显示手写轨迹的文本识别结果,从而方便用户实时查看和纠正文本识别结果, 能够有效提高识别率,并增强了与用户之间的互动性。In the embodiment of the present disclosure, after real-time recognition of the handwritten trajectory, the text recognition result of the handwritten trajectory is displayed in real time in printed form, so that it is convenient for the user to view and correct the text recognition result in real time, which can effectively improve the recognition rate and enhance the communication with the user. interactivity between.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for purposes of illustrating preferred embodiments only and are not to be considered limiting of the present disclosure. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:
图1为本公开一实施例的手写体识别方法的流程示意图;FIG. 1 is a schematic flowchart of a handwriting recognition method according to an embodiment of the disclosure;
图2为本公开实施例的手写屏上显示的手写轨迹与文本识别结果的对照图;2 is a comparison diagram of a handwriting trajectory displayed on a handwriting screen according to an embodiment of the present disclosure and a text recognition result;
图3为本公开实施例的手写体识别装置的结构示意图;3 is a schematic structural diagram of a handwriting recognition device according to an embodiment of the disclosure;
图4为本公开实施例的手写体识别装置的组成架构示意图。FIG. 4 is a schematic diagram of a composition structure of a handwriting recognition apparatus according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.
请参考图1,本公开实施例提供一种手写体识别方法,包括:Referring to FIG. 1, an embodiment of the present disclosure provides a method for handwriting recognition, including:
步骤11:检测用户在手写屏上的手写轨迹对应的多个轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述多个轨迹点包括起始轨迹点和当前轨迹点;Step 11: Detect the information of multiple track points corresponding to the user's handwriting track on the handwriting screen, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lifting the pen; Each track point includes the start track point and the current track point;
所述手写屏可以为电子会议白板等手写设备,具有触控模块和显示模块。The handwriting screen can be a handwriting device such as an electronic conference whiteboard, and has a touch module and a display module.
本公开实施例中,所述轨迹点可以包括一个字符或多个字符的轨迹点,所述字符可以为中文、英文或数字等。In this embodiment of the present disclosure, the track point may include a track point of one character or multiple characters, and the character may be Chinese, English, numbers, or the like.
本公开实施例中,可以把手写屏的左上角作为原点,从左向右延伸为X轴,从上向下延伸为Y轴。或者,也可以把手写屏的左下角为原点,从左向右延伸为X轴,从下向上延伸为Y轴。本公开实施例并不对坐标轴的设置进行限定。In the embodiment of the present disclosure, the upper left corner of the handwriting screen may be used as the origin, the X axis extending from left to right, and the Y axis extending from top to bottom. Alternatively, the lower left corner of the handwriting screen can also be used as the origin, the X axis extending from left to right, and the Y axis extending from bottom to top. The embodiment of the present disclosure does not limit the settings of the coordinate axes.
本公开实施例中,起笔是指一个笔画的第一个轨迹点,抬笔是指一个笔画的最后一个轨迹点,运笔是指一个笔画的中间轨迹点。In the embodiments of the present disclosure, starting a pen refers to the first trajectory point of a stroke, raising a pen refers to the last trajectory point of a stroke, and moving a pen refers to the middle trajectory point of a stroke.
本公开实施例中,可选的,每个轨迹点的表示方式可以如下:(x,y,t,flag),其中x和y表示每个轨迹点的坐标位置,t为该轨迹点的书写时间,flag表示用户书写状态(起笔、运笔或抬笔)。In the embodiment of the present disclosure, optionally, the representation of each track point may be as follows: (x, y, t, flag), where x and y represent the coordinate position of each track point, and t is the writing of the track point Time, flag indicates the user's writing status (starting, running, or lifting).
所述当前轨迹点是指用户在手写屏上的手写的最后一个轨迹点。The current track point refers to the last track point handwritten by the user on the handwriting screen.
步骤12:根据判定条件判定当前轨迹点是否为终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第一待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点,或者,所述手写屏的第一个轨迹点;Step 12: Determine whether the current trajectory point is the termination trajectory point according to the judgment condition, if the current trajectory point satisfies the judgment condition, take the current trajectory point as the termination trajectory point, and use the trajectory point between the start trajectory point and the end trajectory point As the first track point to be recognized, the determination condition is that no new track point is detected within a preset time period after the pen-lifting time of the current track point, and the starting track point is the last input to the text recognition model The next trajectory point of the last trajectory point of , or, the first trajectory point of the handwriting screen;
所述第一待识别轨迹点包含所述手写轨迹的起始轨迹点和终止轨迹点。The first track point to be recognized includes a start track point and an end track point of the handwritten track.
步骤13:采用文本识别模型对所述第一待识别轨迹点进行识别,得到第一文本识别结果;Step 13: using a text recognition model to recognize the first track point to be recognized to obtain a first text recognition result;
步骤14:在所述手写屏的第一显示区域以印刷体形式显示所述第一文本识别结果。Step 14: Display the first text recognition result in printed form in the first display area of the handwriting screen.
所述印刷体例如中文采用宋体、楷体或黑体等,英文和数字采用Times New Roman等,以与手写轨迹进行区分。For example, the print type in Chinese adopts Song type, italic type, or bold type, etc., and English and numerals are in Times New Roman, etc., so as to be distinguished from handwritten tracks.
请参考图2,图2为本公开实施例的手写屏上显示的手写轨迹与文本识别结果的对照图。Please refer to FIG. 2 , which is a comparison diagram of a handwriting trajectory displayed on a handwriting screen and a text recognition result according to an embodiment of the disclosure.
本公开实施例中,对手写轨迹进行实时识别之后,以印刷体形式实时显示手写轨迹的文本识别结果,从而方便用户实时查看和纠正文本识别结果,能够有效提高识别率,并增强了与用户之间的互动性。In the embodiment of the present disclosure, after the real-time recognition of the handwritten trajectory is performed, the text recognition result of the handwritten trajectory is displayed in real time in printed form, so that it is convenient for the user to view and correct the text recognition result in real time, which can effectively improve the recognition rate and enhance the communication with the user. interactivity between.
由于文本识别模型接收到的是很多轨迹点坐标,这些轨迹点是按照书写时间顺序排列的,没有进行分行。而文本识别模型是按照一行一行的文本轨迹点进行识别的,所以首先需要对所有轨迹点进行分行(若用户书写了多行,就需要对轨迹点进行分行,若用户只写了一行,则不需要分行)。即,本公开实例中,在采用文本识别模型对所述第一待识别轨迹点的信息进行识别识别 之前,还可以对所述第一待识别轨迹点进行分行。Since the text recognition model receives the coordinates of many track points, these track points are arranged in the order of writing time without branching. The text recognition model recognizes the text track points line by line, so firstly, all track points need to be divided into lines (if the user writes multiple lines, the track points need to be divided into lines, if the user writes only one line, it is not branch is required). That is, in the example of the present disclosure, before using the text recognition model to identify and identify the information of the first track point to be identified, the first track point to be identified may also be branched.
本公开实施例中,可以使用投影法对第一待识别轨迹点进行分行,即:对所述第一待识别轨迹点进行分行包括:In the embodiment of the present disclosure, the projection method may be used to branch the first track point to be identified, that is, branching the first track point to be identified includes:
步骤21:获取所述第一待识别轨迹点的每一Y轴坐标值对应的所述第一待识别轨迹点的X轴坐标值的个数;Step 21: Obtain the number of X-axis coordinate values of the first to-be-identified trajectory point corresponding to each Y-axis coordinate value of the first to-be-identified trajectory point;
步骤22:根据Y轴上所述X轴坐标值的个数,对所述第一待识别轨迹点进行分行。Step 22: According to the number of the X-axis coordinate values on the Y-axis, branch the first track point to be identified.
即把第一待识别轨迹点中的所有轨迹点的X轴坐标值的个数投影到Y轴上,若一行中字数比较多,即轨迹点较多时,在Y轴上的X轴坐标值的个数则会比较大,若手写轨迹出现分行,则前后两行中的空白位置处在Y轴上的X轴坐标值的个数就较小或者为0,即出现波谷,把波谷的值作为分行的依据。That is, the number of the X-axis coordinate values of all the track points in the first track point to be identified is projected onto the Y-axis. The number will be relatively large. If the handwritten track has branch lines, the number of X-axis coordinate values on the Y-axis in the blank positions in the two lines before and after is small or 0, that is, a trough occurs, and the value of the trough is taken as Branch basis.
然而,如果用户书写的第一待识别轨迹点对应的文字是倾斜的,此时,如果按照上述投影法对第一待识别轨迹点进行分行则会不准确,因而,可选的,本公开实施例中,对所述第一待识别轨迹点进行分行之前还可以包括:However, if the text corresponding to the first track point to be recognized written by the user is inclined, at this time, if the first track point to be recognized is divided into lines according to the above-mentioned projection method, it will be inaccurate. Therefore, optionally, the present disclosure implements In an example, before branching the first track point to be identified, it can also include:
判断所述第一待识别轨迹点对应的手写轨迹是否发生倾斜;judging whether the handwritten trajectory corresponding to the first to-be-recognized trajectory point is inclined;
若所述第一待识别轨迹点对应的手写轨迹发生倾斜,对所述第一待识别轨迹点的坐标进行倾斜矫正,得到矫正后的坐标。If the handwritten track corresponding to the first track point to be recognized is tilted, the coordinates of the first track point to be recognized are tilted and corrected to obtain corrected coordinates.
由于待识别轨迹点的坐标取值范围可能是0到几千或者几万,为了方便计算,消除数量级的影响,本公开实施例中,可选的,采用文本识别模型对所述第一待识别轨迹点的信息进行识别,得到第一文本识别结果之前还包括:将第一待识别轨迹点的坐标归一到同一数值范围内,例如归一化到(0,1)内。Since the coordinate value range of the track point to be recognized may be 0 to several thousand or tens of thousands, in order to facilitate the calculation and eliminate the influence of the order of magnitude, in the embodiment of the present disclosure, optionally, a text recognition model is used for the first to-be-recognized Identifying the information of the track point, and before obtaining the first text recognition result, further includes: normalizing the coordinates of the first track point to be recognized into the same numerical range, for example, normalizing to (0,1).
本公开实施例中,可以采用Seq2Seq网络对所述第一待识别轨迹点的信息进行文本识别。当然,在本公开的其他一些实施例中,也可以采用其他文本识别模型,例如RNN网络等。In the embodiment of the present disclosure, a Seq2Seq network may be used to perform text recognition on the information of the first track point to be identified. Of course, in some other embodiments of the present disclosure, other text recognition models, such as RNN networks, etc., may also be used.
本公开实施例中,可选的,采用文本识别模型对所述第一待识别轨迹点的信息进行识别,得到第一文本识别结果之后还包括:对所述第一文本识别结果进行语义矫正。例如,所述语义矫正可以包括:中文语义校正和/或英文语义矫正,根据前后的语义信息,当一个英文单字中有字母识别错误时,把 错误的字母矫正过来。In the embodiment of the present disclosure, optionally, a text recognition model is used to recognize the information of the first track point to be recognized, and after obtaining the first text recognition result, the method further includes: performing semantic correction on the first text recognition result. For example, the semantic correction may include: Chinese semantic correction and/or English semantic correction. According to the semantic information before and after, when there is a letter recognition error in an English word, the wrong letter is corrected.
由于用户在电子白板上书写时,自由度很高,有的用户喜欢先在电子白板的右半边书写,再写左半边,有的喜欢先在中间区域书写,再写上半部分或者下半部分,而现有的手写体识别方法是根据用户书写的时间先后关系进行识别的,把识别结果一次性写入文档中,文档里也是根据识别顺序进行存储的,没有考虑到原始手写轨迹排版的空间位置关系,当用户将识别结果与原始手写轨迹进行对照时,若原始手写轨迹书写的顺序比较随意,会导致用户需要根据识别结果去找原始手写轨迹的位置,十分不便。Because users have a high degree of freedom when writing on the electronic whiteboard, some users like to write on the right half of the electronic whiteboard first, then the left half, and some like to write in the middle area first, and then write the upper or lower half. , and the existing handwriting recognition method is based on the time sequence relationship of the user's writing, and the recognition result is written into the document at one time, and the document is also stored according to the recognition order, without considering the original handwriting track layout space position When the user compares the recognition result with the original handwriting track, if the original handwriting track is written in a random order, the user needs to find the position of the original handwriting track according to the recognition result, which is very inconvenient.
为解决上述问题,本公开实施例中,可选的,在第一显示区域以印刷体形式显示所述第一文本识别结果包括:To solve the above problem, in this embodiment of the present disclosure, optionally, displaying the first text recognition result in printed form in the first display area includes:
步骤31:去除所述手写屏上的所述第一待识别轨迹点对应的手写轨迹;Step 31: remove the handwriting track corresponding to the first track point to be recognized on the handwriting screen;
步骤32:根据所述第一待识别轨迹点的坐标,确定第一显示区域;Step 32: Determine a first display area according to the coordinates of the first track point to be identified;
步骤33:在所述第一显示区域以印刷体形式显示所述第一文本识别结果。Step 33: Display the first text recognition result in printed form in the first display area.
本公开实施例中,对手写轨迹进行识别之后,实时擦除手写屏上的手写轨迹,并在手写轨迹所在区域以印刷体形式实时显示手写轨迹的文本识别结果,从而进一步方便了用户实时查看和纠正文本识别结果。In the embodiment of the present disclosure, after the handwriting track is recognized, the handwriting track on the handwriting screen is erased in real time, and the text recognition result of the handwriting track is displayed in printed form in real time in the area where the handwriting track is located, which further facilitates the user to view and check the handwriting track in real time. Correct text recognition results.
本公开实施例中,可选的,根据所述第一待识别轨迹点的坐标,确定第一显示区域包括:In this embodiment of the present disclosure, optionally, determining the first display area according to the coordinates of the first track point to be identified includes:
步骤41:获取所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,即x min,y min,x max,y maxStep 41: Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified, namely x min , y min , x max , y max ;
步骤42:根据所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第一矩形框,将所述第一矩形框作为所述第一显示区域。Step 42: Determine the first rectangular frame according to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified, and use the first rectangular frame as the first display area.
然而,如果用户书写的第一待识别轨迹点对应的文字是倾斜的,此时,如果按照第一待识别轨迹点的原始坐标确定第一显示区域,则第一显示区域为倾斜的矩形框,本公开实施例中,可选的,根据所述第一待识别轨迹点的坐标,确定第一显示区域包括:However, if the text corresponding to the first track point to be recognized written by the user is inclined, at this time, if the first display area is determined according to the original coordinates of the first track point to be recognized, the first display area is an inclined rectangular frame, In this embodiment of the present disclosure, optionally, determining the first display area according to the coordinates of the first track point to be identified includes:
步骤51:判断所述第一待识别轨迹点对应的手写轨迹是否发生倾斜;Step 51: Determine whether the handwritten trajectory corresponding to the first to-be-recognized trajectory point is inclined;
步骤52:若所述第一待识别轨迹点对应的手写轨迹发生倾斜,对所述第 一待识别轨迹点的坐标进行倾斜矫正,得到矫正后的坐标。Step 52: If the handwritten track corresponding to the first track point to be recognized is inclined, perform tilt correction on the coordinates of the first track point to be recognized to obtain corrected coordinates.
步骤53:根据矫正后的坐标确定第一显示区域。Step 53: Determine the first display area according to the corrected coordinates.
本公开实施例中,可选的,对所述第一待识别轨迹点的坐标进行倾斜矫正的方法可以是:首先可以根据第一待识别轨迹点的原始坐标确定一个矩形框,然后,然后确定一个点作为该矩形框的旋转中心对矩形框进行旋转,该旋转中心可以是矩形框的中心点或者其他点。In the embodiment of the present disclosure, optionally, the method for performing tilt correction on the coordinates of the first track point to be identified may be: firstly, a rectangular frame may be determined according to the original coordinates of the first track point to be identified, and then a rectangular frame may be determined. A point is used as the rotation center of the rectangle frame to rotate the rectangle frame, and the rotation center can be the center point of the rectangle frame or other points.
根据矫正后的坐标,按照步骤41和步骤42的方式确定第一矩形框作为第一显示区域。也就是说,步骤41和42中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标均为矫正后的坐标。According to the corrected coordinates, the first rectangular frame is determined as the first display area in the manner of step 41 and step 42 . That is to say, the minimum X-axis coordinates, the minimum Y-axis coordinates, the maximum X-axis coordinates, and the maximum Y-axis coordinates in steps 41 and 42 are all corrected coordinates.
本公开实施例中,可选的,在所述第一显示区域以印刷体形式显示所述第一文本识别结果包括:In this embodiment of the present disclosure, optionally, displaying the first text recognition result in printed form in the first display area includes:
根据所述第一显示区域的大小,确定所述第一文本识别结果的字体的大小;determining the font size of the first text recognition result according to the size of the first display area;
根据所述第一文本识别结果的字体的大小,确定所述第一文本识别结果的字间距;Determine the word spacing of the first text recognition result according to the size of the font of the first text recognition result;
在所述第一显示区域以确定的字体的大小和字间距显示所述第一文本识别结果。The first text recognition result is displayed in the first display area with the determined font size and word spacing.
本公开实施例中,可选的,可以预先存储字体和字间距的对应关系,当字体大小确定后,字间距也随之确定。当然,也不排除可以根据第一显示区域的大小来确定字间距的方式。本公开实施例中,可选的,在所述手写轨迹所在区域以印刷体形式显示所述第一文本识别结果之后还包括:In the embodiment of the present disclosure, optionally, the correspondence between the font and the word spacing may be pre-stored, and after the font size is determined, the word spacing is also determined accordingly. Of course, it is not excluded that the word spacing can be determined according to the size of the first display area. In this embodiment of the present disclosure, optionally, after displaying the first text recognition result in printed form in the area where the handwriting track is located, the method further includes:
步骤51:接收用户对所述第一文本识别结果中的目标文本的擦除操作,擦除目标文本;Step 51: receiving the user's erasing operation on the target text in the first text recognition result, erasing the target text;
用户可以对文本识别结果进行部分或全部擦除并重写。Users can partially or fully erase and rewrite text recognition results.
步骤52:检测用户重写的手写轨迹对应的第二待识别轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述第二待识别轨迹点包括起始轨迹点和终止轨迹点;Step 52: Detect the information of the second to-be-recognized track point corresponding to the handwritten track rewritten by the user, the information includes coordinates, time, and the user's writing state, and the user's writing state includes: starting the pen, running the pen, and lifting the pen; 2. The track points to be identified include the start track point and the end track point;
本公开实施例中,用户可以在擦除区域进行重写,也可以在其他位置进行重写。In this embodiment of the present disclosure, the user can rewrite in the erased area, or can rewrite in other locations.
步骤53:根据判定条件判定当前轨迹点是否为第二待识别轨迹点的终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为第二待识别轨迹点的终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第二待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点;Step 53: Determine whether the current trajectory point is the termination trajectory point of the second to-be-identified trajectory point according to the judgment condition, and if the current trajectory point satisfies the judgment condition, use the current trajectory point as the termination trajectory point of the second to-be-identified trajectory point , taking the trajectory point during the starting trajectory point and the ending trajectory point as the second trajectory point to be identified, and the determination condition is that no new trajectory point is detected within the preset time period after the pen-lifting moment of the current trajectory point, The starting trajectory point is the next trajectory point of the last trajectory point input to the text recognition model last time;
步骤54:采用文本识别模型对所述第二待识别轨迹点进行识别,得到第二文本识别结果;Step 54: using a text recognition model to recognize the second track point to be recognized to obtain a second text recognition result;
在对第二待识别轨迹点进行识别之前,还可以对第二待识别轨迹点进行分行和/或归一化等处理,处理方式参见上述第一待识别轨迹点,此处不再一一描述。同样的,在对第二待识别轨迹点进行识别之后,也可以进行语义矫正的处理。Before identifying the second track point to be identified, the second track point to be identified may also be processed by branching and/or normalization. For the processing method, please refer to the above-mentioned first track point to be identified, which will not be described one by one here. . Similarly, after identifying the second track point to be identified, semantic correction can also be performed.
步骤54:在第二显示区域以印刷体形式显示所述第二文本识别结果。Step 54: Display the second text recognition result in printed form in the second display area.
所述印刷体例如中文采用宋体、楷体或黑体等,英文和数字采用Times New Roman等,以与手写轨迹进行区分,可选的,与第一文本识别结果采用的印刷体相同。For example, Chinese uses Times New Roman, etc. for Chinese, and Times New Roman is used for English and numerals, so as to distinguish them from handwritten tracks. Optionally, it is the same as the printing used for the first text recognition result.
本公开实施例中,对手写轨迹识别之后,实时擦除手写屏上的手写轨迹,并在手写轨迹所在区域以印刷体形式实时显示手写轨迹的识别结果,从而方便用户实时查看、核对以及纠正识别结果,提高了与用户之间的交互性。In the embodiment of the present disclosure, after the handwriting track is recognized, the handwriting track on the handwriting screen is erased in real time, and the recognition result of the handwriting track is displayed in print in real time in the area where the handwriting track is located, so as to facilitate the user to view, check, and correct the recognition in real time. As a result, the interactivity with the user is improved.
本公开实施例中,支持用户进行多次擦除和重写。In the embodiment of the present disclosure, the user is supported to perform multiple erasing and rewriting.
本公开实施例中,可选的,在第二显示区域以印刷体形式显示所述第二文本识别结果包括:In this embodiment of the present disclosure, optionally, displaying the second text recognition result in printed form in the second display area includes:
步骤61:获取所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标;Step 61: Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified;
步骤62:根据所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第二矩形框,将所述第二矩形框作为所述第二显示区域。Step 62: Determine a second rectangular frame according to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified, and use the second rectangular frame as the second display area.
同样的,在所述第二显示区域以印刷体形式显示所述第二文本识别结果之前还可以包括:Similarly, before the second display area displays the second text recognition result in printed form, it may further include:
步骤71:判断所述第二识别轨迹点对应的手写轨迹是否发生倾斜;Step 71: judging whether the handwritten trajectory corresponding to the second recognition trajectory point is inclined;
步骤72:若所述第二识别轨迹点对应的手写轨迹发生倾斜,对所述第二待识别轨迹点的坐标进行倾斜矫正,得到矫正后的坐标。Step 72: If the handwritten track corresponding to the second identified track point is inclined, perform tilt correction on the coordinates of the second track point to be identified to obtain corrected coordinates.
步骤73:根据矫正后的坐标,确定第二显示区域。Step 73: Determine the second display area according to the corrected coordinates.
例如根据矫正后的坐标,按照上述步骤61和步骤62确定第二显示区域。For example, according to the corrected coordinates, the second display area is determined according to the above steps 61 and 62 .
本公开实施例中,可选的,在第二显示区域以印刷体形式显示所述第二文本识别结果包括:In this embodiment of the present disclosure, optionally, displaying the second text recognition result in printed form in the second display area includes:
步骤81:获取所述第一文本识别结果的显示信息,所述显示信息包括字体的大小和坐标;步骤82:根据所述显示信息,确定所述第二显示区域,并在所述第二显示区域以印刷体形式显示所述第二文本识别结果,所述第二文本识别结果中的字体的大小与所述第一文本识别结果中的字体的大小相同,所述第二文本识别结果中的文字与所述第一文本识别结果中的文字对齐。Step 81: Acquire display information of the first text recognition result, the display information includes font size and coordinates; Step 82: Determine the second display area according to the display information, and display the second display area in the second display The area displays the second text recognition result in printed form, the size of the font in the second text recognition result is the same as the size of the font in the first text recognition result, and the size of the font in the second text recognition result is the same. The text is aligned with the text in the first text recognition result.
本公开实施例中,可选的,可以预先存储字体和字间距的对应关系,当字体大小确定后,字间距也随之确定。当然,也不排除可以根据第二显示区域的大小来确定字间距的方式。In the embodiment of the present disclosure, optionally, the correspondence between the font and the word spacing may be pre-stored, and after the font size is determined, the word spacing is also determined accordingly. Of course, it is not excluded that the word spacing can be determined according to the size of the second display area.
根据上述显示方法,可以提高文本识别结果的显示效果。According to the above display method, the display effect of the text recognition result can be improved.
请参考图3,本公开实施例还提供一种手写体识别装置300,包括:Referring to FIG. 3, an embodiment of the present disclosure further provides a handwriting recognition device 300, including:
检测模块301,用于检测用户在手写屏上的手写轨迹对应的多个轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述多个轨迹点包括起始轨迹点和当前轨迹点;The detection module 301 is used to detect the information of multiple track points corresponding to the handwriting track of the user on the handwriting screen, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lifting the pen; The multiple track points include a start track point and a current track point;
判定模块302,用于根据判定条件判定当前轨迹点是否为终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第一待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点,或者,所述手写屏的第一个轨迹点;The determination module 302 is used to determine whether the current trajectory point is the termination trajectory point according to the determination condition, if the current trajectory point satisfies the determination condition, the current trajectory point is used as the termination trajectory point, and the period between the start trajectory point and the termination trajectory point is determined. The trajectory point is used as the first trajectory point to be identified, and the determination condition is that no new trajectory point is detected within the preset time period after the pen-lifting moment of the current trajectory point, and the starting trajectory point is the last input to the The next trajectory point of the last trajectory point of the text recognition model, or, the first trajectory point of the handwriting screen;
识别模块303,用于采用文本识别模型对所述第一待识别轨迹点进行识别,得到第一文本识别结果;An identification module 303, configured to identify the first track point to be identified by using a text identification model to obtain a first text identification result;
显示模块304,用于在所述手写屏的第一显示区域以印刷体形式显示所 述第一文本识别结果。The display module 304 is configured to display the first text recognition result in printed form in the first display area of the handwriting screen.
本公开实施例中,对手写轨迹进行实时识别之后,以印刷体形式实时显示手写轨迹的文本识别结果,从而方便用户实时查看和纠正文本识别结果,能够有效提高识别率,并增强了与用户之间的互动性。In the embodiment of the present disclosure, after the real-time recognition of the handwritten trajectory is performed, the text recognition result of the handwritten trajectory is displayed in real time in printed form, so that it is convenient for the user to view and correct the text recognition result in real time, which can effectively improve the recognition rate and enhance the communication with the user. interactivity between.
本公开实施例中,可选的,所述手写体识别装置还包括以下至少一项:In the embodiment of the present disclosure, optionally, the handwriting recognition device further includes at least one of the following:
分行模块,用于对所述第一待识别轨迹点进行分行;a branching module for branching the first track point to be identified;
归一化模块,用于将所述第一待识别轨迹点的坐标归一到同一数值范围内。The normalization module is used for normalizing the coordinates of the first track point to be recognized to be within the same numerical range.
本公开实施例中,可选的,所述分行模块,用于获取所述第一待识别轨迹点的每一Y轴坐标值对应的所述第一待识别轨迹点的X轴坐标值的个数;根据Y轴上所述X轴坐标值的个数,对所述第一待识别轨迹点进行分行。In the embodiment of the present disclosure, optionally, the branch module is configured to acquire the number of X-axis coordinate values of the first to-be-identified trajectory point corresponding to each Y-axis coordinate value of the first to-be-identified trajectory point number; according to the number of the X-axis coordinate values on the Y-axis, the first track point to be identified is divided into rows.
本公开实施例中,可选的,所述手写体识别装置还包括:In the embodiment of the present disclosure, optionally, the handwriting recognition device further includes:
语义识别模块,用于对所述第一文本识别结果进行语义识别,若所述第一文本识别结果具有语义错误,进行语义矫正。A semantic recognition module, configured to perform semantic recognition on the first text recognition result, and perform semantic correction if the first text recognition result has a semantic error.
本公开实施例中,可选的,所述显示模块,用于去除所述手写屏上的所述第一待识别轨迹点对应的手写轨迹;根据所述第一待识别轨迹点的坐标,确定第一显示区域;在所述第一显示区域以印刷体形式显示所述第一文本识别结果。In the embodiment of the present disclosure, optionally, the display module is configured to remove the handwriting track corresponding to the first track point to be recognized on the handwriting screen; and determine according to the coordinates of the first track point to be recognized a first display area; displaying the first text recognition result in printed form in the first display area.
本公开实施例中,可选的,所述显示模块,用于获取所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标;In the embodiment of the present disclosure, optionally, the display module is configured to acquire the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate, and the maximum Y-axis coordinate in the first track point to be identified;
根据所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第一矩形框,将所述第一矩形框作为所述第一显示区域。According to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified, a first rectangular frame is determined, and the first rectangular frame is used as the first display area.
本公开实施例中,可选的,所述显示模块还用于判断所述第一待识别轨迹点对应的手写轨迹是否发生倾斜;若所述第一待识别轨迹点对应的手写轨迹发生倾斜,对所述第一待识别轨迹点的坐标进行倾斜矫正,得到矫正后的坐标;根据矫正后的坐标确定第一显示区域。In this embodiment of the present disclosure, optionally, the display module is further configured to determine whether the handwritten track corresponding to the first track point to be recognized is inclined; if the handwritten track corresponding to the first track point to be recognized is tilted, Perform tilt correction on the coordinates of the first track point to be identified to obtain corrected coordinates; and determine a first display area according to the corrected coordinates.
本公开实施例中,可选的,所述显示模块还用于根据所述第一显示区域的大小,确定所述第一文本识别结果的字体的大小;根据所述第一文本识别 结果的字体的大小,确定所述第一文本识别结果的字间距;在所述第一显示区域以确定的字体的大小和字间距显示所述第一文本识别结果。In this embodiment of the present disclosure, optionally, the display module is further configured to determine the size of the font of the first text recognition result according to the size of the first display area; The size of the first text recognition result is determined, and the word spacing of the first text recognition result is determined; the first text recognition result is displayed in the first display area with the determined font size and word spacing.
本公开实施例中,可选的,所述手写体识别装置还包括:In the embodiment of the present disclosure, optionally, the handwriting recognition device further includes:
擦除模块,用于接收用户对所述第一文本识别结果中的目标文本的擦除操作,擦除目标文本;an erasing module for receiving the user's erasing operation on the target text in the first text recognition result, and erasing the target text;
其中,所述检测模块,还用于检测用户重写的手写轨迹对应的第二待识别轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述第二待识别轨迹点包括起始轨迹点和终止轨迹点;Wherein, the detection module is also used to detect the information of the second track point to be recognized corresponding to the handwritten track rewritten by the user, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lift the pen; the second track point to be identified includes a start track point and a termination track point;
所述判定模块,还用于根据判定条件判定当前轨迹点是否为第二待识别轨迹点的终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为第二待识别轨迹点的终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第二待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点;The determination module is further configured to determine whether the current track point is the termination track point of the second track point to be identified according to the determination condition, and if the current track point satisfies the determination condition, the current track point is used as the second track point to be identified. The termination trajectory point of the point, the trajectory point during the initial trajectory point and the termination trajectory point is used as the second trajectory point to be identified, and the judgment condition is that the current trajectory point is not detected within a preset time period after the pen-lifting time A new trajectory point, the initial trajectory point is the next trajectory point of the last trajectory point input to the text recognition model last time;
所述识别模块,还用于采用文本识别模型对所述第二待识别轨迹点进行识别,得到第二文本识别结果;The recognition module is further configured to use a text recognition model to recognize the second track point to be recognized to obtain a second text recognition result;
所述显示模块,还用于在第二显示区域以印刷体形式显示所述第二文本识别结果。The display module is further configured to display the second text recognition result in printed form in the second display area.
本公开实施例中,可选的,所述显示模块,还用于获取所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标;根据所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第二矩形框,将所述第二矩形框作为所述第二显示区域。In the embodiment of the present disclosure, optionally, the display module is further configured to acquire the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate, and the maximum Y-axis coordinate in the second track point to be identified; according to The minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate, and the maximum Y-axis coordinate in the second track point to be identified, determine a second rectangular frame, and use the second rectangular frame as the second display area .
本公开实施例中,可选的,所述显示模块,还用于获取所述第一文本识别结果的显示信息,所述显示信息包括字体的大小和坐标;根据所述显示信息,确定所述第二显示区域,并在所述第二显示区域以印刷体形式显示所述第二文本识别结果,所述第二文本识别结果中的字体的大小与所述第一文本识别结果中的字体的大小相同,所述第二文本识别结果中的文字与所述第一 文本识别结果中的文字对齐。In this embodiment of the present disclosure, optionally, the display module is further configured to acquire display information of the first text recognition result, where the display information includes the font size and coordinates; and determine the display information according to the display information. a second display area, and the second text recognition result is displayed in printed form in the second display area, the size of the font in the second text recognition result is the same as the size of the font in the first text recognition result The size is the same, and the text in the second text recognition result is aligned with the text in the first text recognition result.
本公开实施例中,上述各功能模块,可以集成在一个实体设备中,也可以设置在多个实体设备中,例如,上述用于检测用户在手写屏上的手写轨迹对应的轨迹点的信息的检测模块、用于以印刷体形式显示文本识别结果的显示模块,可以设置在手写屏上,手写屏此时可以称为前端,而用于采用文本识别模型对待识别轨迹点的信息进行识别,得到文本识别结果的识别模块,可以设置在服务器上,服务器此时也可以称为后端,请参见图4,手写屏检测到的轨迹点的信息发送给服务器,服务器对轨迹点的信息进行识别,得到文本识别结果,并发送给手写屏,由手写屏进行显示。In the embodiment of the present disclosure, the above-mentioned functional modules may be integrated in one entity device, or may be set in multiple entity devices. For example, the above-mentioned function module used to detect the information of the trajectory point corresponding to the handwriting trajectory of the user on the handwriting screen The detection module, the display module used to display the text recognition results in printed form, can be set on the handwriting screen. The handwriting screen can be called the front end at this time, and is used to use the text recognition model to recognize the information of the track points to be recognized, and obtain The recognition module of the text recognition result can be set on the server. The server can also be called the backend at this time. Please refer to Figure 4. The information of the trajectory points detected by the handwriting screen is sent to the server, and the server recognizes the information of the trajectory points. The text recognition result is obtained and sent to the handwriting screen for display by the handwriting screen.
本公开实施例还提供一种交互平板,包括触摸模块,显示模块,处理器和存储器,以及,存储在存储器并可在所述处理器上运行的程序或指令,该程序或指令被处理器执行时实现上述手写体识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present disclosure also provide an interactive tablet, including a touch module, a display module, a processor and a memory, and a program or instruction stored in the memory and executable on the processor, where the program or instruction is executed by the processor Each process of the above-mentioned embodiments of the handwriting recognition method can be realized at the same time, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本公开实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述手写体识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present disclosure further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiments of the handwriting recognition method can be implemented, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
其中,所述处理器为上述实施例中所述的终端中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the terminal described in the foregoing embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本公开实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、 或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it is noted that the scope of the methods and apparatus in the embodiments of the present disclosure is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order, depending on the functions involved To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present disclosure essentially or the parts that contribute to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure have been described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present disclosure, without departing from the scope of the present disclosure and the protection scope of the claims, many forms can be made, which all fall within the protection of the present disclosure.

Claims (14)

  1. 一种手写体识别方法,其特征在于,包括:A method for handwriting recognition, comprising:
    检测用户在手写屏上的手写轨迹对应的多个轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述多个轨迹点包括起始轨迹点和当前轨迹点;Detect the information of multiple track points corresponding to the user's handwriting track on the handwriting screen, the information includes coordinates, time, and the user's writing state, and the user's writing state includes: starting a pen, running a pen, and lifting a pen; the multiple track points Including the starting track point and the current track point;
    根据判定条件判定当前轨迹点是否为终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第一待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点,或者,所述手写屏的第一个轨迹点;Determine whether the current trajectory point is the termination trajectory point according to the judgment condition, if the current trajectory point satisfies the judgment condition, take the current trajectory point as the termination trajectory point, and take the trajectory point between the start trajectory point and the termination trajectory point as the first trajectory point The track point to be identified, the determination condition is that no new track point is detected within the preset time period after the pen-lifting moment of the current track point, and the starting track point is the last input to the text recognition model last time. The next trajectory point of the trajectory point, or, the first trajectory point of the handwriting screen;
    采用文本识别模型对所述第一待识别轨迹点进行识别,得到第一文本识别结果;A text recognition model is used to recognize the first track point to be recognized, and a first text recognition result is obtained;
    在所述手写屏的第一显示区域以印刷体形式显示所述第一文本识别结果。The first text recognition result is displayed in printed form in the first display area of the handwriting screen.
  2. 如权利要求1所述的方法,其特征在于,采用文本识别模型对所述第一待识别轨迹点的信息进行识别,得到第一文本识别结果之前还包括以下至少一项:The method of claim 1, wherein the information of the first track point to be recognized is recognized by a text recognition model, and before obtaining the first text recognition result, the method further comprises at least one of the following:
    对所述第一待识别轨迹点进行分行;Branching the first track point to be identified;
    将所述第一待识别轨迹点的坐标归一到同一数值范围内。The coordinates of the first track point to be identified are normalized into the same numerical range.
  3. 如权利要求2所述的方法,其特征在于,对所述第一待识别轨迹点进行分行包括:The method of claim 2, wherein branching the first track point to be identified comprises:
    获取所述第一待识别轨迹点的每一Y轴坐标值对应的所述第一待识别轨迹点的X轴坐标值的个数;Obtain the number of X-axis coordinate values of the first to-be-identified trajectory point corresponding to each Y-axis coordinate value of the first to-be-identified trajectory point;
    根据Y轴上所述X轴坐标值的个数,对所述第一待识别轨迹点进行分行。According to the number of the X-axis coordinate values on the Y-axis, the first track point to be identified is divided into rows.
  4. 如权利要求1所述的方法,其特征在于,采用文本识别模型对所述第一待识别轨迹点的信息进行识别,得到第一文本识别结果之后还包括:The method according to claim 1, wherein the information of the first track point to be recognized is recognized by a text recognition model, and after obtaining the first text recognition result, the method further comprises:
    对所述第一文本识别结果进行语义识别,若所述第一文本识别结果具有语义错误,进行语义矫正。Perform semantic recognition on the first text recognition result, and perform semantic correction if the first text recognition result has a semantic error.
  5. 如权利要求1所述的方法,其特征在于,在第一显示区域以印刷体形式显示所述第一文本识别结果包括:The method of claim 1, wherein displaying the first text recognition result in printed form in the first display area comprises:
    去除所述手写屏上的所述第一待识别轨迹点对应的手写轨迹;removing the handwriting track corresponding to the first track point to be recognized on the handwriting screen;
    根据所述第一待识别轨迹点的坐标,确定第一显示区域;determining a first display area according to the coordinates of the first track point to be identified;
    在所述第一显示区域以印刷体形式显示所述第一文本识别结果。The first text recognition result is displayed in printed form in the first display area.
  6. 如权利要求5所述的方法,其特征在于,根据所述第一待识别轨迹点的坐标,确定第一显示区域包括:The method according to claim 5, wherein determining the first display area according to the coordinates of the first track point to be identified comprises:
    获取所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标;Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified;
    根据所述第一待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第一矩形框,将所述第一矩形框作为所述第一显示区域。According to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the first track point to be identified, a first rectangular frame is determined, and the first rectangular frame is used as the first display area.
  7. 如权利要求5所述的方法,其特征在于,根据所述第一待识别轨迹点的坐标,确定第一显示区域包括:The method according to claim 5, wherein determining the first display area according to the coordinates of the first track point to be identified comprises:
    判断所述第一待识别轨迹点对应的手写轨迹是否发生倾斜;judging whether the handwritten trajectory corresponding to the first to-be-recognized trajectory point is inclined;
    若所述第一待识别轨迹点对应的手写轨迹发生倾斜,对所述第一待识别轨迹点的坐标进行倾斜矫正,得到矫正后的坐标;If the handwritten trajectory corresponding to the first track point to be recognized is inclined, perform tilt correction on the coordinates of the first track point to be recognized to obtain corrected coordinates;
    根据矫正后的坐标确定第一显示区域。The first display area is determined according to the corrected coordinates.
  8. 如权利要求6或7所述的方法,其特征在于,在所述第一显示区域以印刷体形式显示所述第一文本识别结果包括:The method according to claim 6 or 7, wherein displaying the first text recognition result in printed form in the first display area comprises:
    根据所述第一显示区域的大小,确定所述第一文本识别结果的字体的大小;determining the font size of the first text recognition result according to the size of the first display area;
    根据所述第一文本识别结果的字体的大小,确定所述第一文本识别结果的字间距;Determine the word spacing of the first text recognition result according to the size of the font of the first text recognition result;
    在所述第一显示区域以确定的字体的大小和字间距显示所述第一文本识别结果。The first text recognition result is displayed in the first display area with the determined font size and word spacing.
  9. 如权利要求1所述的方法,其特征在于,以印刷体形式显示所述第一文本识别结果之后包括:The method of claim 1, wherein after displaying the first text recognition result in printed form, the method comprises:
    接收用户对所述第一文本识别结果中的目标文本的擦除操作,擦除目标 文本;Receiving the user's erasing operation to the target text in the first text recognition result, erasing the target text;
    检测用户重写的手写轨迹对应的第二待识别轨迹点的信息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述第二待识别轨迹点包括起始轨迹点和终止轨迹点;Detect the information of the second to-be-recognized track point corresponding to the handwritten track rewritten by the user, the information includes coordinates, time, and the user's writing state, and the user's writing state includes: starting the pen, running the pen, and lifting the pen; the second to-be-recognized Track points include start track points and end track points;
    根据判定条件判定当前轨迹点是否为第二待识别轨迹点的终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为第二待识别轨迹点的终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第二待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点;Determine whether the current trajectory point is the termination trajectory point of the second to-be-identified trajectory point according to the judgment condition. If the current trajectory point satisfies the judgment condition, the current trajectory point is used as the termination trajectory point of the second to-be-identified trajectory point, and the start The trajectory point between the start trajectory point and the end trajectory point is used as the second to-be-identified trajectory point, and the determination condition is that no new trajectory point is detected within the preset time period after the pen-lifting moment of the current trajectory point, and the start trajectory point is not detected. The starting track point is the next track point of the last track point input to the text recognition model last time;
    采用文本识别模型对所述第二待识别轨迹点进行识别,得到第二文本识别结果;Recognize the second track point to be recognized by using a text recognition model to obtain a second text recognition result;
    在第二显示区域以印刷体形式显示所述第二文本识别结果。The second text recognition result is displayed in print in the second display area.
  10. 如权利要求9所述的方法,其特征在于,在第二显示区域以印刷体形式显示所述第二文本识别结果包括:The method of claim 9, wherein displaying the second text recognition result in printed form in the second display area comprises:
    获取所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标;Obtain the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified;
    根据所述第二待识别轨迹点中的最小X轴坐标、最小Y轴坐标、最大X轴坐标和最大Y轴坐标,确定第二矩形框,将所述第二矩形框作为所述第二显示区域。According to the minimum X-axis coordinate, the minimum Y-axis coordinate, the maximum X-axis coordinate and the maximum Y-axis coordinate in the second track point to be identified, a second rectangular frame is determined, and the second rectangular frame is used as the second display area.
  11. 如权利要求9所述的方法,其特征在于,在第二显示区域以印刷体形式显示所述第二文本识别结果包括:The method of claim 9, wherein displaying the second text recognition result in printed form in the second display area comprises:
    获取所述目标文本的显示信息,所述显示信息包括字体的大小、和坐标;obtaining display information of the target text, where the display information includes font size and coordinates;
    根据所述显示信息,确定所述第二显示区域,并在所述第二显示区域以印刷体形式显示所述第二文本识别结果,所述第二文本识别结果中的字体的大小与所述第一文本识别结果中的字体的大小相同,所述第二文本识别结果中的文字与所述第一文本识别结果中的文字对齐。According to the display information, the second display area is determined, and the second text recognition result is displayed in printed form in the second display area, and the size of the font in the second text recognition result is the same as the size of the The fonts in the first text recognition result are of the same size, and the text in the second text recognition result is aligned with the text in the first text recognition result.
  12. 一种手写体识别装置,其特征在于,包括:A handwriting recognition device, comprising:
    检测模块,用于检测用户在手写屏上的手写轨迹对应的多个轨迹点的信 息,所述信息包括坐标、时间和用户书写状态,所述用户书写状态包括:起笔、运笔和抬笔;所述多个轨迹点包括起始轨迹点和当前轨迹点;The detection module is used to detect the information of multiple trajectory points corresponding to the handwriting trajectory of the user on the handwriting screen, the information includes coordinates, time and the user's writing state, and the user's writing state includes: starting the pen, running the pen and lifting the pen; The multiple track points include a start track point and a current track point;
    判定模块,用于根据判定条件判定当前轨迹点是否为终止轨迹点,若当前轨迹点满足所述判定条件,将所述当前轨迹点作为终止轨迹点,将起始轨迹点和终止轨迹点期间的轨迹点作为第一待识别轨迹点,所述判定条件为所述当前轨迹点的抬笔时刻之后的预设时长内未检测到新的轨迹点,所述起始轨迹点为上一次输入给文本识别模型的最后一个轨迹点的下一个轨迹点,或者,所述手写屏的第一个轨迹点;The judgment module is used to judge whether the current trajectory point is the termination trajectory point according to the judgment condition, if the current trajectory point satisfies the judgment condition, the current trajectory point is used as the termination trajectory point, and the period between the start trajectory point and the termination trajectory point is determined. The track point is used as the first track point to be identified, the determination condition is that no new track point is detected within a preset time period after the pen-lifting moment of the current track point, and the starting track point is the last input to the text Identify the next trajectory point of the last trajectory point of the model, or, the first trajectory point of the handwriting screen;
    识别模块,用于采用文本识别模型对所述第一待识别轨迹点进行识别,得到第一文本识别结果;a recognition module, configured to recognize the first track point to be recognized by using a text recognition model to obtain a first text recognition result;
    显示模块,用于在所述手写屏的第一显示区域以印刷体形式显示所述第一文本识别结果。A display module, configured to display the first text recognition result in printed form in the first display area of the handwriting screen.
  13. 一种交互平板,其特征在于,包括触摸模块,显示模块,处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-11任一项所述的手写体识别方法的步骤。An interactive tablet, characterized in that it includes a touch module, a display module, a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and the program or instruction is processed by the The steps of implementing the handwriting recognition method according to any one of claims 1-11 when the device is executed.
  14. 一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-11任一项所述的手写体识别方法的步骤。A readable storage medium, characterized in that a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, a method for realizing the handwriting recognition method according to any one of claims 1-11 is realized. step.
PCT/CN2021/074622 2021-02-01 2021-02-01 Handwriting recognition method and apparatus WO2022160330A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2021/074622 WO2022160330A1 (en) 2021-02-01 2021-02-01 Handwriting recognition method and apparatus
CN202180001926.0A CN115413335A (en) 2021-02-01 2021-07-20 Handwriting recognition method and device, handwriting recognition system and interactive panel
US17/789,592 US20230343125A1 (en) 2021-02-01 2021-07-20 Handwriting Recognition Method and Apparatus, Handwriting Recognition System and Interactive Display
PCT/CN2021/107460 WO2022160619A1 (en) 2021-02-01 2021-07-20 Handwriting recognition method and apparatus, handwriting recognition system and interactive board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/074622 WO2022160330A1 (en) 2021-02-01 2021-02-01 Handwriting recognition method and apparatus

Publications (1)

Publication Number Publication Date
WO2022160330A1 true WO2022160330A1 (en) 2022-08-04

Family

ID=82652911

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/074622 WO2022160330A1 (en) 2021-02-01 2021-02-01 Handwriting recognition method and apparatus

Country Status (1)

Country Link
WO (1) WO2022160330A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116612483A (en) * 2023-07-19 2023-08-18 广州宏途数字科技有限公司 Recognition method and device for handwriting vector of intelligent pen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004097722A1 (en) * 2003-05-02 2004-11-11 Fujitsu Limited Hand-written character input device and hand-written character input processing method
CN103699325A (en) * 2013-12-24 2014-04-02 南京富士通南大软件技术有限公司 Hand input method capable of continuous input
CN104793724A (en) * 2014-01-16 2015-07-22 北京三星通信技术研究有限公司 Sky-writing processing method and device
CN107273887A (en) * 2017-07-21 2017-10-20 顺丰科技有限公司 For recognizing the method for handwriting, system and its equipment in image
CN111381754A (en) * 2020-04-30 2020-07-07 京东方科技集团股份有限公司 Handwriting processing method, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004097722A1 (en) * 2003-05-02 2004-11-11 Fujitsu Limited Hand-written character input device and hand-written character input processing method
CN103699325A (en) * 2013-12-24 2014-04-02 南京富士通南大软件技术有限公司 Hand input method capable of continuous input
CN104793724A (en) * 2014-01-16 2015-07-22 北京三星通信技术研究有限公司 Sky-writing processing method and device
CN107273887A (en) * 2017-07-21 2017-10-20 顺丰科技有限公司 For recognizing the method for handwriting, system and its equipment in image
CN111381754A (en) * 2020-04-30 2020-07-07 京东方科技集团股份有限公司 Handwriting processing method, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116612483A (en) * 2023-07-19 2023-08-18 广州宏途数字科技有限公司 Recognition method and device for handwriting vector of intelligent pen
CN116612483B (en) * 2023-07-19 2023-09-29 广州宏途数字科技有限公司 Recognition method and device for handwriting vector of intelligent pen

Similar Documents

Publication Publication Date Title
US10664695B2 (en) System and method for managing digital ink typesetting
KR101417286B1 (en) Character recognition for overlapping textual user input
JP5423525B2 (en) Handwriting input device, handwriting input method, and handwriting input program
US8009916B2 (en) Ink recognition for use in character-based applications
US5923793A (en) Handwritten character recognition apparatus with an improved feature of correction to stroke segmentation and method for correction to stroke segmentation for recognition of handwritten character
CN105488544A (en) Method and system for identifying trace copy handwriting
CN110321837B (en) Test question score identification method, device, terminal and storage medium
US20210019365A1 (en) Correction Techniques of Overlapping Digital Glyphs
WO2022160330A1 (en) Handwriting recognition method and apparatus
US9811238B2 (en) Methods and systems for interacting with a digital marking surface
WO2022160619A1 (en) Handwriting recognition method and apparatus, handwriting recognition system and interactive board
WO2017041588A1 (en) Eraser box range determination method and system
WO2020056619A1 (en) Method for error detection in text writing, terminal device, and storage medium
JP2018067298A (en) Handwritten content editing device and handwritten content editing method
TW201423563A (en) Apparatus and method for processing handwriting input
US10366626B2 (en) Method for facilitating handwriting practice and electronic device for implementing the method
JP4632389B2 (en) Electronic blackboard apparatus and control method thereof
WO2021220589A1 (en) Ink data modification method, information processing device, and program
CN111062377A (en) Question number detection method, system, storage medium and electronic equipment
KR20150145973A (en) Method for recognizing character, learning system using character input gesture, and masking method for animation effect of strokes
CN110647785A (en) Method and device for identifying accuracy of input text and electronic equipment
WO2023070334A1 (en) Handwriting input display method and apparatus, and computer-readable storage medium
CN112926419B (en) Character judgment result processing method and device and electronic equipment
JP2001022891A (en) Recognizing device and storage medium for recognition
CN114882513A (en) Data identification method and intelligent interactive display equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21921930

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.11.2023)