CN116204107A - Display device and display method of handwritten content - Google Patents

Display device and display method of handwritten content Download PDF

Info

Publication number
CN116204107A
CN116204107A CN202211737364.9A CN202211737364A CN116204107A CN 116204107 A CN116204107 A CN 116204107A CN 202211737364 A CN202211737364 A CN 202211737364A CN 116204107 A CN116204107 A CN 116204107A
Authority
CN
China
Prior art keywords
character
matching result
matching
pointer
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211737364.9A
Other languages
Chinese (zh)
Inventor
杜鑫磊
崔毅
王敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202211737364.9A priority Critical patent/CN116204107A/en
Publication of CN116204107A publication Critical patent/CN116204107A/en
Pending legal-status Critical Current

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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink
    • G06V30/36Matching; Classification

Abstract

The disclosure relates to a display device and a display method of handwritten content, which are applied to the field of handwritten content display and solve the problems of poor flexibility, intelligence and experience when transcription is performed on the display device. The display device includes: a display configured to: displaying a user interface, wherein the user interface comprises a first interface and a second interface, the second interface is used for displaying reference content to be written, and the first interface is used for displaying handwriting content of the reference content; a controller configured to: identifying the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character; acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character; matching each first character in the first comparison information with at least one second character to obtain a matching result aiming at each first character; and modifying the display parameters of the reference content according to the matching result of each first character.

Description

Display device and display method of handwritten content
Technical Field
The disclosure relates to the technical field of handwritten content display, and in particular relates to a display device and a display method of handwritten content.
Background
With the widespread use of touch screen electronic display devices, users can use the display devices to learn and communicate, and can edit writing contents, such as writing poems, new words, etc., on the touch screen display devices. And secondly, after transcription is finished, the user can judge whether transcription is correct or not by comparing the handwriting content with poetry by himself, the flexibility and the intelligence of the operation are poor, the transcription error and the accuracy cannot be intuitively and simply known, and the use experience of the user is poor.
Disclosure of Invention
In order to solve the technical problems, the display device and the handwriting content display method are provided, flexibility and intelligence of copying on the display device are improved, a user can intuitively and conveniently know whether the handwriting content is correct or incorrect or not and accurately determine, and use experience of the user is improved.
In a first aspect, the present disclosure provides a display device comprising:
a display configured to: displaying a user interface, wherein the user interface comprises a first interface and a second interface, the second interface is used for displaying reference content to be written, and the first interface is used for displaying handwriting content of the reference content;
A controller configured to: identifying the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character;
acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character;
matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character;
and modifying the display parameters of the reference content according to the matching result of each first character.
In a second aspect, the present disclosure provides a method for displaying handwritten content, the method comprising:
acquiring handwriting content and reference content corresponding to display equipment;
identifying the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character;
acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character;
matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character;
and modifying the display parameters of the reference content according to the matching result of each first character.
In a third aspect, the present disclosure provides a computer-readable storage medium comprising: the computer-readable storage medium stores thereon a computer program which, when executed by a processor, implements a method of displaying handwritten content as shown in the second aspect.
In a fourth aspect, the present disclosure provides a computer program product comprising: the computer program product, when run on a computer, causes the computer to implement a method of displaying handwritten content as shown in the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages: when the display equipment acquires handwriting content and reference content, identifying the handwriting content to obtain first comparison information, wherein the first comparison information comprises at least one first character; acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character; matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character; and modifying the display parameters of the reference content according to the matching result of each first character. The embodiment solves the problem of poor flexibility, intelligence and experience when copying is performed on the display equipment, improves the flexibility and intelligence of copying on the display equipment, is convenient for a user to intuitively and simply know the correct and exact of the writing content, and improves the use experience of the user.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 illustrates a scene architecture diagram of a method of displaying written content in some embodiments;
FIG. 2 illustrates a hardware configuration block diagram of a control device in some embodiments;
FIG. 3 illustrates a software configuration block diagram of a display device in some embodiments;
FIG. 4 illustrates a frame diagram of a display system of written content in some embodiments;
FIG. 5 is a flow chart illustrating steps of a method of displaying written content in some embodiments;
FIG. 6 illustrates an interface schematic in some embodiments;
FIG. 7 illustrates a flow diagram of a method of displaying written content in some embodiments;
FIG. 8 is a flow chart showing the steps of a method of displaying written content in other embodiments;
FIG. 9 illustrates a schematic diagram of reference content in some embodiments;
FIG. 10 is a flow chart illustrating steps of a method of displaying written content in some embodiments;
FIG. 11 illustrates a schematic diagram of a perfect match in some embodiments;
FIG. 12 is a schematic diagram of a period missing word in some embodiments;
FIG. 13 illustrates a schematic diagram of a word missing in a sentence in some embodiments;
FIG. 14 illustrates a schematic diagram of end-of-sentence word missing in some embodiments;
FIG. 15 illustrates a schematic diagram of a period staggering word in some embodiments;
FIG. 16 illustrates a schematic diagram of a word-in-sentence dislocation in some embodiments;
FIG. 17 is a schematic diagram of a period multiword in some embodiments;
FIG. 18 illustrates a schematic diagram of multiple words in a sentence in some embodiments;
FIG. 19 illustrates a schematic diagram of a sequence mismatch in some embodiments.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
It should be noted that the brief description of the terms in the present disclosure is only for convenience in understanding the embodiments described below, and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
It should be noted that in this disclosure, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. For example, a product or device that contains a series of components is not necessarily limited to all of the components explicitly listed, but may include other components not explicitly listed or inherent to such product or device.
With the technical development of touch screen display devices, the display devices are widely applied to various fields, such as electronic whiteboards, which can be completely separated from mice and keyboards, and operations such as editing, annotating, saving and the like of computer files are realized on the electronic whiteboards by using fingers or specific electronic pens, so that great convenience is brought to users, for example, the users can write, draw, graffiti and the like on the electronic whiteboards, edit writing contents, such as editing operations such as selecting, erasing and the like, and contents such as pictures, meeting summary and the like can be displayed. Along with the family of touch screen electronic devices, users can learn and communicate through an electronic whiteboard, for example, the touch screen electronic devices are used for copying new words, poems and the like, and the following embodiments take the copying poems as examples to explain application scenes, technical problems and implementation modes in detail. When a user uses an electronic whiteboard to transcribe poems, the user needs to search the poems needing to be transcribed by using application programs configured on other display equipment as reference poems, or the user needs to search the poems through books, transcribes the poems on the electronic whiteboard according to the reference poems, and then manually compares the reference poems, so that the transcription accuracy and the accuracy cannot be determined, that is, the existing electronic whiteboard cannot automatically judge the transcription accuracy, and can not prompt and display characters of the transcription errors of the user, and the flexibility, the intelligence and the experience are poor when the user transcribes on the display equipment.
In order to solve the above-mentioned problems, the embodiments of the present disclosure provide a method for displaying handwritten content, where a display of a display device displays a user interface, where the user interface includes a first interface and a second interface, where the second interface is used to display reference content to be written, and the first interface is used to display handwritten content of the reference content, where the first interface may be understood as a writing interface, and the second interface may be understood as a browsing interface, that is, a plurality of windows with different functions are divided on the display, and a user may make transcription on the first interface based on only the reference content displayed on the second interface, that is, based on one display device, the user may look at the browsing window while transcribing corresponding reference content in the writing window, without searching or searching in a book by using other devices, thereby improving convenience of transcription. Subsequently, the controller of the display device acquires the handwritten content and the reference content displayed in the display, and identifies the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character, that is, the written content also comprises at least one first character; acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character, that is to say the reference content also comprises at least one second character; matching each first character in the first comparison information with at least one second character to obtain a matching result aiming at each first character, wherein the matching refers to judging whether writing content is identical to or equal to reference content or not, and further judging writing accuracy and calculating accuracy; the display parameters of the reference content are modified according to the matching result of each first character, then the display displays the reference content with the modified parameters, namely, the reference content is marked according to the correct writing, and the writing errors and the writing correct words are marked in the reference content, so that a user can intuitively know the copying situation, the matching result can be displayed in a popup window mode, the purpose of convenient and quick learning is achieved, the flexibility and the intelligence of copying are improved, and the experience of the user in using the display device is further improved.
In some embodiments, the control device 100 may be a remote control, and the communication between the remote control and the display device 200 may include infrared protocol communication, bluetooth protocol communication, wireless or other wired manner, etc., by which the display device 200 can be controlled. The user may control the display device 200 by pressing keys on a remote control.
In some embodiments, mobile terminals and other smart devices may also be used to control the display device 200.
In some embodiments, the display device 200 may receive instructions not using the smart device or control device described above, but rather receive control of the user through touch or gesture, or the like.
In some embodiments, the display device 200 may also perform control in a manner other than a control device and an intelligent device, for example, the touch screen module configured inside the display device 200 may directly receive instruction control generated by triggering different positions of the touch screen module by a user, or the instruction control by receiving the instruction control by the user through a control device set outside the display device 200.
In some embodiments, the mobile terminal may install a software application with the display device 200, and implement connection communication through a network communication protocol for the purpose of one-to-one control operation and data communication. The reference content displayed on the mobile terminal can also be transmitted to the display device 200, so as to realize the function of synchronous display. The display device 200 may also be in data communication with a server via a variety of communication means, which may allow the display device 200 to be communicatively coupled via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server may be a cluster, or may be multiple clusters, and may include one or more types of servers. The server may provide various reference content and interactive instructions to the display device 200. The display device 200 is a writing display device. The display device 200 provides a writing editing function.
Fig. 2 is a hardware configuration block diagram of a control device according to one or more embodiments of the present disclosure. As shown in fig. 2, the control device includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control device may receive an input operation instruction from a user and convert the operation instruction into an instruction recognizable and responsive to the display device 200, which may act as an intermediary for the interaction between the user and the display device 200. The communication interface 130 is configured to communicate with the outside, and includes at least one of a WIFI chip, a bluetooth module, NFC, or an alternative module. The user input/output interface 140 includes at least one of a microphone, a touch pad, a sensor, keys, or an alternative module.
Fig. 3 is a schematic diagram of a software configuration in a display device according to one or more embodiments of the present disclosure. As shown in fig. 3, the system is divided into four layers, namely an application (application) layer (abbreviated as "application layer"), an application framework (Application Framework) layer (abbreviated as "framework layer"), a An Zhuoyun row (Android run) layer and a system library layer (abbreviated as "system runtime layer"), and a kernel layer from top to bottom.
In some embodiments, at least one application program is running in the application program layer, and these application programs may be a Window (Window) program of an operating system, a system setting program, a clock program, or the like; or may be an application developed by a third party developer. In particular implementations, applications in the application layer include, but are not limited to, the examples above.
In some embodiments, the system runtime layer provides support for the upper layer, the framework layer, and when the framework layer is in use, the android operating system runs the C/C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software, containing at least one of the following drivers: audio drive, display drive, bluetooth drive, camera drive, WIFI drive, USB drive, radar drive, sensor drive (e.g., fingerprint sensor, temperature sensor, pressure sensor, etc.), and power drive, etc.
In some embodiments, the display device is a terminal device with a touch display function, such as an electronic whiteboard. The display device includes:
a display configured to: displaying a user interface, wherein the user interface comprises a first interface and a second interface, the second interface is used for displaying reference content to be written, and the first interface is used for displaying handwriting content of the reference content;
in some embodiments, the controller is configured to: identifying the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character;
Acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character;
matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character;
and modifying the display parameters of the reference content according to the matching result of each first character.
The second interface comprises a third interface, a first switching identifier and a second switching identifier, and the third interface is used for displaying first reference content to be written.
In some embodiments, the controller is further configured to:
responding to the triggering operation of the first switching identification, acquiring second reference content associated with the first switching identification, and controlling the third interface to display the second reference content;
or alternatively, the process may be performed,
and responding to the triggering operation of the second switching identifier, acquiring third reference content associated with the second switching identifier, and controlling the third interface to display the third reference content.
The second interface further comprises a matching identifier;
in some embodiments, the controller is specifically configured to:
and responding to the triggering operation of the matching identification, and matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character.
In some embodiments, the controller is specifically configured to:
and responding to the drag operation of any area except the mark in the second interface, controlling the second interface to move on the first interface, and changing the writable area of the first interface according to the movement track of the second interface.
In some embodiments, the controller is configured to:
removing the matched second characters in the second comparison information to obtain removed second comparison information;
detecting whether the second character which is not matched yet exists in the removed second comparison information;
under the condition that second characters which are not matched yet exist in the removed second comparison information, matching each first character in the first comparison information with the second characters which are not matched yet to obtain a matching result aiming at each first character;
or alternatively, the process may be performed,
and sending prompt information of the completed handwriting of the reference content under the condition that the removed second comparison information does not have the second character which is not completed matched.
In some embodiments, the controller is configured to:
pointing a first pointer to a first character of the at least one first character and a second pointer to a first second character of the at least one second character;
Matching the first character with the first second character to obtain a first matching result of the first character;
if the first matching result is that the first character and the first second character are the same, respectively moving the first pointer and the second pointer backwards by one bit to point to a second first character and a second character;
matching the second first character with the second character to obtain a second matching result of the second first character;
and if the second first character is the same as the second character and the second first character is the last first character in the at least one first character, generating a final matching result of the complete matching of the writing content and the reference content according to the first matching result and the second matching result.
In some embodiments, the controller is configured to:
if the first matching result is that the first character is different from the first second character, the second pointer is moved backwards by one bit to point to the second character;
matching the first character with the second character to obtain a third matching result of the first character;
If the third matching result is that the first character and the second character are the same, respectively moving the first pointer and the second pointer backwards by one bit to point to the second first character and the third second character;
matching the second first character with the third second character to obtain a fourth matching result of the second first character;
and if the fourth matching result is that the second first character is the same as the third second character and the second first character is the last first character, generating a final matching result of the initial word of the writing content according to the first matching result, the third matching result and the fourth matching result.
In some embodiments, the controller is configured to:
if the third matching result is that the first character is different from the second character, and the second character is the last second character in the at least one second character, respectively moving the first pointer and the second pointer backwards by one bit to point to the second first character and the first second character;
Matching the second first character with the first second character to obtain a fifth matching result of the second first character;
and if the fifth matching result is that the second first character is the same as the first second character and the second first character is the last first character, generating a final matching result of the writing content sentence head multiple words according to the first matching result, the second matching result and the fifth matching result.
In some embodiments, the controller is configured to:
if the fifth matching result is that the second first character is different from the first second character, the second pointer is moved backwards by one bit to point to the second character;
matching the second first character with the second character to obtain a sixth matching result of the second first character;
and if the sixth matching result is that the second first character is the same as the second character and the second first character is the last first character, generating a final matching result of the sentence-head word of the writing content according to the first matching result, the fifth matching result and the sixth matching result.
In some embodiments, the controller is configured to:
if the second matching result is that the second first character is different from the second character, the second pointer is moved backwards by one bit to point to a third second character;
matching the second first character with the third second character to obtain a seventh matching result of the second first character;
and if the seventh matching result is that the second first character is the same as the third second character and the second first character is the last first character, generating a final matching result of the missing word in the written content sentence according to the first matching result, the second matching result and the seventh matching result.
In some embodiments, the controller is configured to:
if the seventh matching result is that the second first character is different from the third second character, and the third second character is the last second character in the at least one second character, deleting the first second character in the at least one second character;
moving the first pointer and the second pointer one bit backwards to point to a third first character and the second character;
If the third first character is different from the second character, moving the second pointer backwards by one bit to point to the third second character;
matching the third first character with the third second character to obtain an eighth matching result of the third first character;
and if the eighth matching result is that the third first character is the same as the third second character and the third first character is the last first character, generating a final matching result of the wrong word in the written content sentence according to the first matching result, the second matching result, the seventh matching result and the eighth matching result.
In some embodiments, the display is configured to:
displaying a fourth interface, wherein the fourth interface comprises a result display area and a modification identifier, and the result display area is used for displaying a final matching result of the writing content generated by the controller according to each first matching result;
in some embodiments, the controller is specifically configured to:
and responding to the triggering operation of the modification identifier, and matching the acquired modified handwritten content with the reference content.
In some embodiments, the controller is specifically configured to:
determining target reference content corresponding to each first character in the reference content according to the matching result of each first character;
if the matching result of each first character is complete matching, modifying the display parameter of the target reference content corresponding to each first character into a first parameter;
and if the matching result of each first character is not complete matching, modifying the display parameter of the target reference content corresponding to each first character into a second parameter.
In summary, by executing the method for displaying handwritten content on a display device, the display of the display device displays a user interface, the user interface includes a first interface and a second interface, the second interface is used for displaying reference content to be written, the first interface is used for displaying handwritten content of the reference content, the first interface can be understood as a writing interface, the second interface can be understood as a browsing interface, that is, a plurality of windows with different functions are divided on the display, and a user can make transcription on the first interface based on the reference content displayed on the second interface only, that is, based on one display device, the user can write the corresponding reference content in the writing window while looking at the browsing window, and searching or searching in a book by other devices is not needed, so that convenience of transcription is improved. Subsequently, the controller of the display device acquires the handwritten content and the reference content displayed in the display, and identifies the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character, that is, the written content also comprises at least one first character; acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character, that is to say the reference content also comprises at least one second character; matching each first character in the first comparison information with at least one second character to obtain a matching result aiming at each first character, wherein the matching refers to judging whether the writing content is the same as the reference content or not, and further judging the writing correct and incorrect calculation accuracy; the display parameters of the reference content are modified according to the matching result of each first character, then the display displays the reference content with the modified parameters, namely, the reference content is marked according to the correct writing, and the writing errors and the characters with the correct writing are marked in the reference content, so that a user can intuitively know the copying condition, meanwhile, the matching result can be displayed in a popup window mode, the purpose of convenient and quick learning is achieved, the flexibility and the intelligence of copying are improved, and the experience of the user using the display device is further improved.
For example, referring to fig. 4, the display system of the written content may include an interaction module 401, an identification module 402 and a judgment module 403, where the system may be understood as a poetry transcription judgment and display system, the interaction module 401 may be understood as a poetry list display interaction module, the identification module 402 may be understood as a handwritten poetry identification module, and the judgment module 403 may be understood as a poetry transcription result comparison judgment module. The system defines a browsing window and a writing window through the interaction module 401, wherein the browsing window is used for displaying reference content, and the writing window is used for displaying writing content transcribed by the reference content, so that a transcription function of writing while looking at by a user is realized. The system recognizes the handwritten content handwritten by the user by recognition module 402 and stores it in a data format that can be compared. The system compares the identified handwriting content with the reference content through the judging module 403, marks and displays the comparison result on the browsing window, so that a user can intuitively and conveniently know the transcription error and the accuracy.
In order to describe the method of displaying handwritten content in the present disclosure in more detail, the following description will be given by way of example with reference to fig. 5, and it will be understood that the steps involved in fig. 5 may include more steps or fewer steps when actually implemented, and the order between these steps may also be different, so as to enable the method of displaying handwritten content provided in the embodiments of the present disclosure to be implemented, which are not limited.
Fig. 5 illustrates a flow chart of steps of a method of displaying written content in some embodiments. The embodiment is applicable to the process of judging, marking and displaying the handwriting content and the reference content by using the electronic equipment to copy the reference content by a user. As shown in fig. 5, the method for displaying handwritten content specifically includes steps S501 to S505 as follows:
in some embodiments, the second interface includes a third interface for displaying the first reference content to be written, a first switch identifier, a second switch identifier, and a matching identifier.
S501, acquiring handwritten content and reference content corresponding to display equipment.
The user performs transcription on a first interface of a display device with reference to reference content displayed on a second interface, and a controller of the display device obtains the transcription on the first interface and the reference content displayed on the second interface. Specifically, determining a pen-down time when a user starts pen-down writing from a first interface and a stop time when hand-up stops writing, calculating the hand-up time from the stop time, namely, a user no-operation time, if the hand-up time is greater than a preset time, acquiring writing contents transcribed from the first interface by the user in a time period from the pen-down time to the stop time, and taking the writing contents acquired in the time period as a comparison unit, and recording as S1, wherein the preset time can be 1 second, and the preset time can be determined by the user according to the user requirement without limitation.
S502, recognizing the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character.
The handwriting content comprises at least one first character, the handwriting content is taken as a comparison unit, the handwriting content is identified, the identified result is stored as a data structure in the form of a character string, the data structure is recorded as first comparison information, the first comparison information also comprises at least one first character, and each first character can be in the form of a character string, so that subsequent comparison and judgment are facilitated, and handwriting errors are determined.
S503, second comparison information of the reference content is acquired, wherein the second comparison information comprises at least one second character.
And acquiring second comparison information of the reference content, and recording the second comparison information as S2, wherein the second comparison information has the same data structure as the first comparison information, the reference content comprises at least one second character, and the second comparison information also comprises at least one second character. The specific identification method is not limited, and can be selected according to the user demand.
S504, each first character in the first comparison information and the at least one second character are matched, and a matching result aiming at each first character is obtained.
In some embodiments, in response to a triggering operation of the matching identifier, each first character in the first comparison information and the at least one second character are matched, and a matching result for each first character is obtained.
After a user triggers a matching identifier in a second interface, that is, after the user opens a transcription comparison switch, matching each first character in the first comparison information with all second characters in the second comparison information in response to a triggering operation of the matching identifier to obtain a matching result for each first character, wherein the matching refers to judging whether the first character and the second character are identical to determine transcription errors, that is, comparing a character string of the first character with a character string of the second character to judge the transcription errors.
S505, display parameters of the reference content are modified according to the matching result of each first character.
In some embodiments, determining target reference content corresponding to each first character in the reference content according to the matching result of each first character;
if the matching result of each first character is complete matching, modifying the display parameter of the target reference content corresponding to each first character into a first parameter;
And if the matching result of each first character is not complete matching, modifying the display parameter of the target reference content corresponding to each first character into a second parameter.
And for each first character, determining corresponding target reference content in the reference content according to a matching result, wherein the target reference content is a second character matched with the first character, and if the matching result is that the comparison result is correct or the second character is completely matched, modifying the display parameters of the second character into the first parameters, for example, marking the content of the reference content, which is transcribed correctly by a user, as green. If the matching result of the first character is not complete matching, the display parameter of the second character is modified to be a second parameter, namely when the comparison result is wrong, the content with the transcription error in the reference content is marked as red, and the content which is not copied or matched in the reference content does not change color. And then generating a final matching result of the writing content according to the matching result of each first character, and displaying the final matching result in a popup window mode to remind a user.
In some embodiments, responding to the triggering operation of the first switching identifier, acquiring second reference content associated with the first switching identifier, and controlling the third interface to display the second reference content; or, in response to the triggering operation of the second switching identifier, acquiring third reference content associated with the second switching identifier, and controlling the third interface to display the third reference content.
When the third interface in the first interface displays the first reference content, the user triggers the first switching identification in the first interface, and the second reference content associated with the first switching identification is obtained in response to the triggering operation of the first switching identification, namely, the original poetry is switched to the last poetry, and the third interface is controlled to display the last poetry. Or when the third interface in the first interface displays the first reference content, the user triggers the second switching identification in the first interface, and responds to the triggering operation of the second switching identification to acquire the third reference content associated with the second switching identification, namely, switching from the original poetry to the next poetry, and controlling the third interface to display the next poetry.
In some embodiments, in response to a drag operation of any area of the second interface other than the mark, the second interface is controlled to move on the first interface, and the writable area of the first interface is changed according to a movement track of the second interface.
When the coordinate of a touch point of a user dropping in any area except the mark in the second interface, starting to move from the coordinate of the touch point to form the moving time for dragging the second interface, responding to the dragging operation, controlling the second interface to move in the first interface, changing the display position of the second interface in the first interface according to the moving track of the second interface, and further changing the writable area of the first interface, namely, the second interface occupies part of the writable area in the first interface, and the user can transcribe the reference content in the rest part of the writable area.
In some embodiments, a fourth interface is displayed, the fourth interface including a result display area and a modification identifier, the result display area being configured to display a final matching result of the written content generated by the controller according to each first matching result;
and responding to the triggering operation of the modification identifier, and matching the acquired modified handwritten content with the reference content.
The fourth interface is displayed and can be in a popup window mode, and comprises a result display area and a modification mark, wherein the result display area is used for displaying a final matching result of the writing content. And prompting the user of the final matching result of the transcription errors through a fourth interface, wherein the fourth interface can be in a popup window form, enabling the user to select whether to modify the wrong handwriting content, triggering a modification identifier if the modification is performed, responding to the triggering operation of the modification identifier, re-matching the modified handwriting content with the reference content, and continuously acquiring new handwriting content for comparison of a next comparison unit if the modification identifier is not triggered by the user.
For example, referring to fig. 6, the second interface 610 is a part of a user interface displayed on the display, the second interface 610 includes a third interface 601, a first switching identifier 602, a second switching identifier 603, and a matching identifier 604, where the third interface 601 may be a poetry browsing window, in which detailed content of poetry may be displayed, and marked as first reference content, for example, a poetry is composed of a title, an author, a poetry content, and the like, and the third interface 601 may display at least one poetry at a time for the user to transcribe, and specific display content of the third interface 601 may be determined by the user according to the user requirement, which is not limited herein. The first switching identifier 602 may be a switching button of a previous poem, the second switching identifier 603 may be a switching button of a next poem, and the user may switch the poem displayed on the third interface 601, that is, switch the reference content, by triggering the first switching identifier 602 or the second switching identifier 603. The matching identifier 604 is a switch for performing transcription comparison and judgment, and in a normal case, the default matching identifier 604 is in a closed state, and after the user triggers the matching identifier 604, that is, after the transcription comparison and judgment switch is opened, the judgment logic of the judgment module can be used for comparing the reference poetry and the writing poetry. The display condition that the second interface is dragged on the first interface is shown as a first interface 620, the position of the second interface 610 before the second interface 610 is not dragged in the first interface 620 is recorded as a first position, the second interface 610 is dragged from the first position to a second position in the first interface 610 according to the arrow direction, and the writable area in the first interface 620 is changed according to the second position of the second interface 610 in the first interface 620.
For example, referring to fig. 7, fig. 7 shows a schematic information flow diagram of a method of displaying written content in some embodiments. As shown in fig. 7, the process includes the steps of:
s701, displaying a user interface by a display, wherein the user interface comprises a first interface and a second interface, and the second interface comprises a third interface, a first switching identifier, a second switching identifier and a matching identifier.
S702, a user writes on the first interface, and after writing is completed, the matching identification displayed by the display is triggered.
S703, the controller responds to the triggering operation of the matching identifier, matches the acquired writing content with the reference content to obtain a modification result, and modifies the display parameters of the reference content according to the modification result.
S704, the display updates the third interface based on the display parameters of the modified reference content.
S705, the user triggers the first switching identifier or the second switching identifier displayed on the display.
S706, the controller responds to the triggering operation of the first switching identification or the second switching identification, and acquires the reference content associated with the first switching identification or the second switching identification.
S707, the display updates the third interface based on the associated reference content.
In some embodiments, FIG. 8 shows a flow chart of steps of a method of displaying written content in other embodiments. As shown in fig. 8, the method for displaying handwritten content specifically includes the following steps S801 to S8011:
S801, the acquired writing content is identified and stored as a character string data format, and first comparison information is obtained, wherein the first comparison information comprises at least one first character.
S802, storing the reference content into a character string data format to obtain second comparison information, wherein the second comparison information comprises at least one second character.
S803, removing the matched second characters in the second comparison information to obtain removed second comparison information.
S804, detecting whether the second character which is not matched yet exists in the removed second comparison information.
If not, S806 is executed, and if yes, S805 is executed.
S805, sending out prompt information of the completed handwriting reference content.
And sending prompt information of the completed handwriting reference content to prompt the user that the current transcription is completed under the condition that the second character which is not completed in the removed second comparison information does not exist.
S806, matching each first character in the first comparison information with the second character which is not matched yet, and obtaining a matching result aiming at each first character.
Under the condition that second characters which are not matched yet exist in the removed second comparison information, matching each first character in the first comparison information with the second characters which are not matched yet to obtain a matching result aiming at each first character, namely matching the first comparison information in the second comparison information to obtain the matching result aiming at each first character.
S807, whether the final matching result of the first comparison information and the second comparison information is completely matched.
If yes, S808 is executed, and if no, S809 is executed.
S808, marking the second character matched with the first character as green.
Wherein S803 is performed after the marking.
S809, marking a second character matched with the first character as green, and marking a second character not matched with the first character as red.
S8010, whether to modify the first character that does not match the second character.
If yes, S8011 is executed, and if no, S803 is executed.
S8011, identifies the acquired modified writing content and updates the first comparison information.
Wherein S804 is performed after the updated first comparison information is obtained. The specific implementation steps of S801 to S8011 are referred to the above embodiments, and are not described herein.
In some embodiments, in the case that the reference content is a poem, the reference content is mostly composed of three parts of a title, an author and a text, the text part is composed of a text and punctuation marks, the text part uses the punctuation marks as separators, and the text part is split into a plurality of comparison units, wherein the punctuation marks of the text part are only used as separators and do not participate in matching. Sequentially numbering the title, the author and the text part except for the punctuation mark, dividing the title, the author and the text part except for the punctuation mark into a plurality of comparison units, and removing the comparison units which are already involved in the matching according to the matching rule of the reference content, wherein the punctuation mark is only used as a separator and does not participate in the matching process. The identified handwritten content may include characters and punctuations, or may include characters, and is not limited to the format of the handwritten content.
For example, referring to fig. 9, fig. 9 is a diagram showing that the reference content includes a title, an author, and a text portion, which are sequentially split into 6 comparison units numbered C0 to C5, etc., the title is denoted as comparison unit C0, the author is denoted as comparison unit C1, and the text portion is denoted as comparison units C2 to C5.
In some embodiments, fig. 10 shows a step flowchart of a method for displaying the handwriting content in some embodiments, and as shown in fig. 10, the method for displaying the handwriting content specifically includes the following steps S110 to S150:
taking fig. 9 as an example of the second comparison information S2, the following embodiment will be described in detail.
Wherein, a final matching result of the complete matching of the first comparison information S1 and the second comparison information S2 can be obtained according to S110 to S150.
S110, a first pointer points to a first character in the at least one first character, and a second pointer points to a first second character in the at least one second character.
And S120, matching the first character with the first second character to obtain a first matching result of the first character.
And S130, if the first matching result is that the first character is identical to the first character, respectively moving the first pointer and the second pointer backwards by one bit to point to a second first character and a second character.
And S140, matching the second first character with the second character to obtain a second matching result of the second first character.
And S150, if the second first character is the same as the second character and the second first character is the last first character in the at least one first character, generating a final matching result of the writing content and the reference content according to the first matching result and the second matching result.
If the transcription sequence, the word number and the content of the writing content and the reference content are completely matched, the second character related in the reference content and correctly matched is marked as green, or the background color of the second character is marked as green, and the marking mode of the second character correctly matched is not limited and can be set according to the user requirement.
The written content of the user is identified and stored as a character string, which is denoted as first comparison information S1, and the reference content file is stored as a character string, which is denoted as second comparison information S2. The first pointer and the second pointer are respectively pointed to the first characters of S1 and S2, the first pointer is marked as a pointer i, the second pointer is marked as a pointer j, the first pointer points to the first character (the first character) in the first comparison information, the second pointer points to the first second character (the first second character) in the second comparison information, the first character pointed by the pointer i and the pointer j and the first second character are compared to obtain a first matching result, if the first matching result is the same (i.e. the comparison result is equal to) of the first character and the first second character, the pointer i and the pointer j are moved backwards by one bit at the same time, the second character pointed by the new pointer is compared again, and so on until the pointer i points to the last first character of S1, wherein the matching result obtained each time is equal to the comparison result, and a final matching result with completely matched handwriting content is generated according to the matching result of each first character.
For example, referring to FIG. 11, FIG. 11 shows a schematic diagram of a perfect match in some embodiments, as shown in FIG. 11, pointer i points to the first character "bed" of S1, pointer j points to the first second character "bed" of S2, and the results of the match of the first character "bed" and the first second character "bed" are the same. And simultaneously shifting the pointer i and the pointer j backwards by one bit, and the like until the pointer i points to the last first character light of the S1, the pointer j points to the last second character light of the first comparison unit of the S2, and the matching result of each character is the same, so that a final matching result of complete matching of the comparison units (marked as first comparison units) with the number C2 in the S1 and the S2 is generated, and the first comparison units in the S2 are marked as green. The matching process of the acquired next writing content and the comparing unit (second comparing unit) with the number C3 in S2 shown in fig. 11 is the same as that of the previous writing content, and is not described herein, and the second comparing unit in S2 is marked green, and the correct character marked green in fig. 11 is light gray.
In some embodiments, the first comparison information S1 and the second comparison information S2 are matched to obtain a final matching result of the first missing word of the written content, which is specifically implemented by the following steps:
if the first matching result is that the first character is different from the first second character, the second pointer is moved backwards by one bit to point to the second character;
matching the first character with the second character to obtain a third matching result of the first character;
if the third matching result is that the first character and the second character are the same, respectively moving the first pointer and the second pointer backwards by one bit to point to the second first character and the third second character;
matching the second first character with the third second character to obtain a fourth matching result of the second first character;
and if the fourth matching result is that the second first character is the same as the third second character and the second first character is the last first character, generating a final matching result of the initial word of the writing content according to the first matching result, the third matching result and the fourth matching result.
The final matching result of the word missing of the sentence head of the writing content is particularly transcription sequence matching, but the word missing exists in the writing content, the second character of the sentence head in the reference content is marked red in the sentence head, and the second character on the later matching is marked green.
For example, referring to fig. 12, fig. 12 shows a schematic diagram of a period with a missing word in some embodiments, if the first matching result is that the first character and the first second character are different, that is, the pointer i and the pointer j point to the first character of the character strings S1 and S2 respectively, and the two first characters are not equal, as shown in fig. 1201, the pointer i points to the first character "front" of S1, the pointer j points to the first second character "bed" of S2, the matching result of the first character "front" and the first second character "bed" is different, four first characters are calculated to be included in S1, the first characters can be understood as valid characters, the first comparing unit in S2 includes five second characters, and the second characters are also valid characters, so that the writing content is primarily determined to be a missing word. Then, the first pointer is fixed, the second pointer is moved backwards by one bit to point to the second character, the first character and the second character are matched to obtain a third matching result of the first character, if the third matching result is that the first character and the second character are identical, the first pointer and the second pointer are respectively moved backwards by one bit to point to the second first character and the third second character, as shown in a diagram 1202, the pointer i is kept fixed, the pointer j is moved backwards by one bit, at the moment, the characters pointed by the pointer i and the pointer j are identical, the pointer i and the pointer j are moved backwards simultaneously, the remaining characters are continuously matched, and the subsequent second first character and the third second character, the third first character and the fourth second character are completely matched. As shown in diagram 1203, pointer i points to the last first character "light" of S1, and the last four characters of S1 and S2 are completely matched to generate a final matching result of the initial characters of the written content, which is specifically understood as sequential matching, but in a comparison unit, there is a condition of the initial characters, and the comparison result is displayed at the same time, that is, after the matching is finished, the character with correct matching is marked as green, and the character with the initial non-matching is marked as red. In the diagram 1203, the correctly matched character marked green is displayed in light gray, the unmatched character marked red is displayed in dark gray, and the specific display parameters are not limited.
The method comprises the steps of matching first comparison information S1 with second comparison information S2 to obtain a final matching result of the missing words in the written content sentence, and specifically comprises the following steps:
in some embodiments, if the second matching result is that the second first character and the second character are different, then shifting the second pointer backward by one bit to point to a third second character;
matching the second first character with the third second character to obtain a seventh matching result of the second first character;
and if the seventh matching result is that the second first character is the same as the third second character and the second first character is the last first character, generating a final matching result of the missing word in the written content sentence according to the first matching result, the second matching result and the seventh matching result.
The matching result of the missing words in the written content sentence is specifically sequential matching, but in the case that the missing words in the sentence exist in one comparison unit of the S2, the second characters in the reference content and on the first character matching are marked as green, and the second characters corresponding to the missing word positions are marked as red.
For example, referring to fig. 13, fig. 13 shows a schematic diagram of a missing word in a sentence in some embodiments, where pointer i and pointer j point to the first character of S1 and S2, respectively, and the characters pointed to by pointer i and pointer j are equal, pointer i and pointer j are moved back simultaneously, and the matching of the remaining characters continues, as shown in fig. 1301, the matching results of "bed" and "front" in S1 are both regarded as first matching results, the first matching result is a perfect match, and the two second characters are marked green. In the diagram 1302, the characters pointed by the pointer i and the pointer j are not equal, at this time, the "month" pointed by the pointer i is regarded as the second first character, the "bright" pointed by the pointer j is regarded as the second character, and the second matching result is that the characters pointed by the pointer i and the pointer j are not equal, in this case, four valid characters are calculated to be included in S1, five valid characters are included in the first comparing unit in S2, and the first two characters of S1 have been completely matched with the first two characters of S2. As shown in fig. 1303, pointer i is motionless, pointer j moves one bit backward, and the "month" pointed by pointer i and the "month" pointed by pointer j are completely matched. As shown in the diagram 1304, the pointer i and the pointer j continue to move backward by one bit, and the pointer i points to the last first character, after the above judgment is obtained, a final matching result of the missing word in the written sentence is generated, that is, the situation that the missing word in the sentence is found in a comparison unit of S2, the matching is ended, the correct matching character is marked green, the second character "bright" corresponding to the missing word position in S1 is marked red, also in the diagram 1304, the green is marked light gray, and the red is marked dark gray.
The matching result of the writing content with the word missing at the end of the sentence is specifically sequential matching, but when the word missing at the end of the sentence exists in one comparison unit of the S2, the second character in the reference content and on the first character matching is marked as green, the second character corresponding to the end of the sentence of the S1 is marked as red, the word missing at the end of the sentence is the same as the word missing at the end of the sentence, and the matching process is basically the same and is not repeated herein.
For example, referring to fig. 14, fig. 14 shows a schematic diagram of an end-of-sentence word missing in some embodiments, as shown in fig. 1401, pointer i and pointer j point to the first character of S1 and S2, respectively, and the characters pointed to by i and j are equal, and pointer i and pointer j are moved back one bit at the same time, and the remaining characters continue to be matched. In diagram 1402, pointer i points to the last first character "month" of S1, pointer j points to the second last character of the first comparison unit in S2, indicating that S1 has been matched and completely matched, but that there are remaining second characters in the first comparison unit in S2 that have not been matched, marking the character that has been matched in S2 as green, and simultaneously removing the second character that has been matched in S2. In fig. 1403, the next written content transcribed by the user is acquired and saved as S1 again, pointer i points to the first character of S1, pointer j points to the last second character of the first comparison unit in S2, the two characters are unequal, in this case, pointer i remains motionless, pointer j moves one bit backward, as shown in fig. 1404, at this time pointer j points to the first second character of the second comparison unit in S2, and the characters pointed to by pointer i and pointer j are equal, the remaining characters are continuously compared, in fig. 1405, pointer i points to the last first character of S1, pointer j points to the last second character of the second comparison unit in S2, and the characters in S1 and S2 are completely matched, then it is determined that the comparison is sequential matching, but in the first comparison unit, there is a situation of a period end word missing, that is, a final matching result of a sentence end word missing in the present writing is generated, the matching is ended, the second character at the end of the first comparison unit in S2 is marked red by "light", and the second character marked in S2 is completely green.
The method comprises the steps of matching first comparison information S1 with second comparison information S2 to obtain a final matching result of the sentence head and the word of the written content, and specifically comprises the following steps:
in some embodiments, if the fifth matching result is that the second first character and the first second character are different, then shifting the second pointer backward by one bit to point to the second character;
matching the second first character with the second character to obtain a sixth matching result of the second first character;
and if the sixth matching result is that the second first character is the same as the second character and the second first character is the last first character, generating a final matching result of the sentence-head word of the writing content according to the first matching result, the fifth matching result and the sixth matching result.
The matching result of the sentence-head word of the written content is specifically sequence matching and word number matching, but when the sentence-head word exists in one comparison unit of S2, the second character in the reference content and on the first character matching is marked as green, and the second character (the first character with wrong writing) which is not matched is marked as red.
For example, referring to fig. 15, fig. 15 shows a schematic diagram of a sentence in some embodiments, as shown in fig. 1501, pointer i and pointer j point to the first character of S1 and S2, respectively, and the "wood" pointed to by pointer i and the "bed" pointed to by pointer j are unequal, pointer i remains unchanged, pointer j is moved back one bit, the "wood" pointed to by pointer i and the "front" pointed to by pointer j are not the same, pointer i continues to be unchanged, pointer j is moved back one bit, and so on to continue to match the remaining characters until a second character matching the "wood" pointed to by pointer i is found, or pointer j points to the last second character in S2, in which case pointer j continues to be moved back one bit, i.e., pointer j completes one round, pointer j in turn points to the first second character in S2, pointer i and pointer j are moved back simultaneously. In graph 1502, pointer i points to the first character "front" of S1 and pointer j points to the second character "front" of the first comparison unit in S2, with the two characters being equal, while pointer i and pointer j are simultaneously moved back, continuing the comparison of the remaining characters. In fig. 1503, the pointer i points to the last first character "light" of S1, the pointer j points to the last second character "light" of the first comparing unit in S2, and the characters of the last four bits in S1 and S2 are completely matched, then it is determined that the comparison sequence is matched this time, the number of words is equal, but in the case that the word with the sentence head is wrong in S1, that is, a final matching result of writing the word with the sentence head is generated, this matching is finished, the second character "bed" of the sentence head of the first comparing unit in S2 is marked red to prompt the user of the word with the sentence head, and all the remaining second characters of the first comparing unit in S2 are marked green.
In some embodiments, the first comparison information S1 and the second comparison information S2 are matched to obtain a final matching result of the miscord in the written sentence, which is specifically implemented by the following steps:
if the seventh matching result is that the second first character is different from the third second character, and the third second character is the last second character in the at least one second character, deleting the first second character in the at least one second character;
moving the first pointer and the second pointer one bit backwards to point to a third first character and the second character;
if the third first character is different from the second character, moving the second pointer backwards by one bit to point to the third second character;
matching the third first character with the third second character to obtain an eighth matching result of the third first character;
and if the eighth matching result is that the third first character is the same as the third second character and the third first character is the last first character, generating a final matching result of the wrong word in the written content sentence according to the first matching result, the second matching result, the seventh matching result and the eighth matching result.
The matching result of the wrong word in the written content sentence is specifically sequential matching, and the number of words is matched, but in the case of the wrong word in the sentence in S1, the second character in the reference content and on the first character matching is marked as green, and the second character (the first character with the wrong writing in the sentence) which is not matched is marked as red.
For example, referring to fig. 16, fig. 16 shows a schematic diagram of a word-in-sentence error in some embodiments, in fig. 1601, pointer i and pointer j point to the first character of strings S1 and S2, respectively, and when the characters pointed to by pointer i and pointer j are equal, pointer i and pointer j are simultaneously shifted backward by one bit to continue matching. In graph 1602, pointer i points to "day", pointer j points to "month", the characters pointed to by the two pointers are not equal, it is calculated that five valid characters are included in S1, the first comparison unit in S2 also includes five valid characters, the number of explanatory characters is equal, and the first three characters in S1 and S2 have been completely matched, in which case pointer i remains unchanged, pointer j moves one bit backward, and so on to continue matching the remaining characters until a second character matching the "day" pointed to by pointer i is found, or pointer j points to the last second character in S2 but not equal, in which case pointer j continues to move one bit backward, i.e., pointer j completes one round while removing the first three characters that have been completely matched in S2, pointer j points to the second character "month" in S2, and pointer i and pointer j move backward simultaneously. In fig. 1603, the pointer i points to the last first character "light" of S1, and the pointer j points to the last second character "light" of the first comparing unit of S2, and the two characters are equal, so that the matching is considered to belong to transcription sequence and word number matching, but the matching is ended when there is a wrong word in the sentence, and the character with correct matching in S2 is marked green, and the character with incorrect matching is marked red.
In some embodiments, the first comparison information S1 and the second comparison information S2 are matched to obtain a final matching result of the written content sentence head multiple words, which is specifically implemented by the following steps:
if the third matching result is that the first character is different from the second character, and the second character is the last second character in the at least one second character, respectively moving the first pointer and the second pointer backwards by one bit to point to the second first character and the first second character; matching the second first character with the first second character to obtain a fifth matching result of the second first character; and if the fifth matching result is that the second first character is the same as the first second character and the second first character is the last first character, generating a final matching result of the writing content sentence head multiple words according to the first matching result, the second matching result and the fifth matching result.
The matching result of the sentence head multiple words of the writing content is specifically sequential matching, the word numbers are not matched, but in the case that the sentence head multiple words exist in S1, the second character in the reference content and on the first character matching is marked as green, and the multiple word mark is marked at the position corresponding to the sentence head multiple words in the reference content, and the multiple word mark can be a red exclamation mark so as to prompt a user to transcribe one word more in the sentence head.
For example, referring to FIG. 17, FIG. 17 shows a schematic diagram of a period multiword in some embodiments, pointer i and pointer j point to the first character of S1 and S2, respectively, pointer i points to "see", pointer j points to "bed", the two characters are not equal, pointer i remains stationary, pointer j moves backward bit by bit, and the first character of S1 is compared. In the graph 1702, until the last second character "frost" in S2 is still not equal to the "look" pointed by the pointer i, that is, after the "look" pointed by the pointer i is to be compared with all the remaining unmatched characters in S2 one by one, there is no second character equal to the first character in S1, and it is calculated that S1 contains six characters, one comparison unit in S2 contains five characters, then the pointer i and the pointer j are moved backward by one bit at the same time, that is, the pointer j completes one round, at this time, the pointer i points to "bed", the two characters are equal, then the pointer i and the pointer j are moved backward at the same time until the pointer i points to the last first character "light" in S1, the pointer j points to the last second character "light" in the first comparison unit in S2, so that this time matching is determined to be sequential matching, but in one comparison unit in S2, there is a case of multiple words in the first comparison unit in S1, the first word is marked before the first character in the comparison unit in S2.
The matching result of the multiple words in the written content sentence is specifically sequential matching, the number of words is not matched, but in the case of multiple words in the sentence in S1, the second character in the reference content and on the first character matching is marked green, and the multiple word mark is marked at the multiple word position in the reference content, and the multiple word mark can be a red exclamation mark so as to prompt the user to transcribe one more word in the sentence.
For example, referring to FIG. 18, FIG. 18 shows a schematic diagram of multiple words in a sentence in some embodiments, in FIG. 1801, pointer i and pointer j point to the first character of S1 and S2, respectively, and the two characters are equal, then pointer i and pointer j are moved back simultaneously to continue comparing the following characters. In the graph 1802, the pointer i points to "see", the pointer j points to "bright", the characters pointed to by the pointer i and the pointer j are unequal, the pointer i remains motionless, the pointer j moves backward bit by bit and is compared with the first character of S1 until the last second character "frost" in S2 is compared, that is, after the "see" pointed to by the pointer i is compared with all the remaining unmatched characters in S2, the second character is not equal to the first character of S1, and the number of characters is unequal, one comparing unit of S2 contains five characters. In fig. 1803, pointer i and pointer j are moved back one bit at the same time, that is, pointer j completes one round, at this time, pointer i points to "bright", after deleting the first 2 bits in S2, pointer j points to "bright", two characters are equal, pointer i and pointer j are moved back at the same time until pointer i points to the last first character "light" of S1, pointer j points to the last second character "light" of the first comparison unit in S2, two characters are equal, it is determined that the present match belongs to sequential match, but in one comparison unit, there is a case of multiple words in a sentence, a red exclamation mark is displayed between "bright" and "front" in a sentence, the user is prompted to transcribe multiple words in S2, the present match is ended, the character matched by the first comparison unit in S2 is marked green, and multiple word identifiers are marked between "bright" and "front".
If the written content may have a final matching result that is not transcribed in sequence, that is, the poetry is not transcribed in the sequence of the S2 numbers, the part skipped in S2 is marked red, and the matching part is marked green.
For example, referring to FIG. 19, FIG. 19 shows a schematic diagram of a sequence mismatch in some embodiments, where pointer i and pointer j point to the first character of S1 and S2, respectively, and the pointing characters are not equal, pointer i is held stationary, pointer j is moved back bit by bit, and the second character pointed to by pointer j is compared to the first character in S1 in FIG. 1901. In diagram 1902, when pointer j moves to the first second character of the second comparison unit in S2, the characters pointed to by pointer i and pointer j are equal, pointer i and pointer j continue to move backward and are compared bit by bit. In fig. 1903, pointer i and pointer j point to the last character of S1 and S2, respectively, and the second comparing unit in S1 and S2 is completely matched, so that it is determined that the matching is a transcription order error, and the skipped part of the writing in S2 is marked red, and the matched part is marked green.
In summary, the present disclosure obtains the handwritten content and the reference content displayed in the display by executing the above-mentioned display method of the handwritten content on the display device, and identifies the handwritten content to obtain first comparison information, where the first comparison information includes at least one first character, that is, the handwritten content also includes at least one first character; acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character, that is to say the reference content also comprises at least one second character; matching each first character in the first comparison information with at least one second character to obtain a matching result aiming at each first character, wherein the matching refers to judging whether the writing content is the same as the reference content or not, and further judging the writing correct and incorrect calculation accuracy; the display parameters of the reference content are modified according to the matching result of each first character, then the display displays the reference content with the modified parameters, namely, the reference content is marked according to the correct writing, and the writing errors and the characters with the correct writing are marked in the reference content, so that a user can intuitively know the copying condition, meanwhile, the matching result can be displayed in a popup window mode, the purpose of convenient and quick learning is achieved, the flexibility and the intelligence of copying are improved, and the experience of the user using the display device is further improved.
The embodiments of the present disclosure provide a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process executed by the method for displaying handwritten content described above, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random AcceSS Memory, RAM), a magnetic disk, an optical disk, or the like.
The present disclosure provides a computer program product comprising: the computer program product, when run on a computer, causes the computer to implement the method of displaying handwritten content as described above.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the above discussion in some examples is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (12)

1. A display device, characterized by comprising:
a display configured to: displaying a user interface, wherein the user interface comprises a first interface and a second interface, the second interface is used for displaying reference content to be written, and the first interface is used for displaying handwriting content of the reference content;
a controller configured to: identifying the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character;
acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character;
matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character;
and modifying the display parameters of the reference content according to the matching result of each first character.
2. The display device of claim 1, wherein the second interface comprises a third interface for displaying a first reference content to be written, a first switch identification, a second switch identification, and a matching identification;
the controller is further configured to:
responding to the triggering operation of the first switching identification, acquiring second reference content associated with the first switching identification, and controlling the third interface to display the second reference content;
Or alternatively, the process may be performed,
responding to the triggering operation of the second switching identifier, acquiring third reference content associated with the second switching identifier, and controlling the third interface to display the third reference content;
the controller is specifically configured to:
and responding to the triggering operation of the matching identification, and matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character.
3. The display device of claim 1, wherein the controller is configured to:
removing the matched second characters in the second comparison information to obtain removed second comparison information;
detecting whether the second character which is not matched yet exists in the removed second comparison information;
under the condition that second characters which are not matched yet exist in the removed second comparison information, matching each first character in the first comparison information with the second characters which are not matched yet to obtain a matching result aiming at each first character;
or alternatively, the process may be performed,
and sending prompt information of the completed handwriting of the reference content under the condition that the removed second comparison information does not have the second character which is not completed matched.
4. The display device of claim 1, wherein the controller is configured to:
pointing a first pointer to a first character of the at least one first character and a second pointer to a first second character of the at least one second character;
matching the first character with the first second character to obtain a first matching result of the first character;
if the first matching result is that the first character and the first second character are the same, respectively moving the first pointer and the second pointer backwards by one bit to point to a second first character and a second character;
matching the second first character with the second character to obtain a second matching result of the second first character;
and if the second first character is the same as the second character and the second first character is the last first character in the at least one first character, generating a final matching result of the complete matching of the writing content and the reference content according to the first matching result and the second matching result.
5. The display device of claim 4, wherein the controller is configured to:
if the first matching result is that the first character is different from the first second character, the second pointer is moved backwards by one bit to point to the second character;
matching the first character with the second character to obtain a third matching result of the first character;
if the third matching result is that the first character and the second character are the same, respectively moving the first pointer and the second pointer backwards by one bit to point to the second first character and the third second character;
matching the second first character with the third second character to obtain a fourth matching result of the second first character;
and if the fourth matching result is that the second first character is the same as the third second character and the second first character is the last first character, generating a final matching result of the initial word of the writing content according to the first matching result, the third matching result and the fourth matching result.
6. The display device of claim 5, wherein the controller is configured to:
if the third matching result is that the first character is different from the second character, and the second character is the last second character in the at least one second character, respectively moving the first pointer and the second pointer backwards by one bit to point to the second first character and the first second character;
matching the second first character with the first second character to obtain a fifth matching result of the second first character;
and if the fifth matching result is that the second first character is the same as the first second character and the second first character is the last first character, generating a final matching result of the writing content sentence head multiple words according to the first matching result, the second matching result and the fifth matching result.
7. The display device of claim 6, wherein the controller is configured to:
if the fifth matching result is that the second first character is different from the first second character, the second pointer is moved backwards by one bit to point to the second character;
Matching the second first character with the second character to obtain a sixth matching result of the second first character;
and if the sixth matching result is that the second first character is the same as the second character and the second first character is the last first character, generating a final matching result of the sentence-head word of the writing content according to the first matching result, the fifth matching result and the sixth matching result.
8. The display device of claim 4, wherein the controller is configured to:
if the second matching result is that the second first character is different from the second character, the second pointer is moved backwards by one bit to point to a third second character;
matching the second first character with the third second character to obtain a seventh matching result of the second first character;
and if the seventh matching result is that the second first character is the same as the third second character and the second first character is the last first character, generating a final matching result of the missing word in the written content sentence according to the first matching result, the second matching result and the seventh matching result.
9. The display device of claim 8, wherein the controller is configured to:
if the seventh matching result is that the second first character is different from the third second character, and the third second character is the last second character in the at least one second character, deleting the first second character in the at least one second character;
moving the first pointer and the second pointer one bit backwards to point to a third first character and the second character;
if the third first character is different from the second character, moving the second pointer backwards by one bit to point to the third second character;
matching the third first character with the third second character to obtain an eighth matching result of the third first character;
and if the eighth matching result is that the third first character is the same as the third second character and the third first character is the last first character, generating a final matching result of the wrong word in the written content sentence according to the first matching result, the second matching result, the seventh matching result and the eighth matching result.
10. The display device of claim 1, wherein the display is configured to:
displaying a fourth interface, wherein the fourth interface comprises a result display area and a modification identifier, and the result display area is used for displaying a final matching result of the writing content generated by the controller according to each first matching result;
the controller is specifically configured to:
and responding to the triggering operation of the modification identifier, and matching the acquired modified handwritten content with the reference content.
11. The display device of claim 1, wherein the controller is specifically configured to:
determining target reference content corresponding to each first character in the reference content according to the matching result of each first character;
if the matching result of each first character is complete matching, modifying the display parameter of the target reference content corresponding to each first character into a first parameter;
and if the matching result of each first character is not complete matching, modifying the display parameter of the target reference content corresponding to each first character into a second parameter.
12. A method of displaying handwritten content of a display device, the method comprising:
acquiring handwriting content and reference content corresponding to display equipment;
identifying the handwritten content to obtain first comparison information, wherein the first comparison information comprises at least one first character;
acquiring second comparison information of the reference content, wherein the second comparison information comprises at least one second character;
matching each first character in the first comparison information with the at least one second character to obtain a matching result aiming at each first character;
and modifying the display parameters of the reference content according to the matching result of each first character.
CN202211737364.9A 2022-12-30 2022-12-30 Display device and display method of handwritten content Pending CN116204107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211737364.9A CN116204107A (en) 2022-12-30 2022-12-30 Display device and display method of handwritten content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211737364.9A CN116204107A (en) 2022-12-30 2022-12-30 Display device and display method of handwritten content

Publications (1)

Publication Number Publication Date
CN116204107A true CN116204107A (en) 2023-06-02

Family

ID=86513950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211737364.9A Pending CN116204107A (en) 2022-12-30 2022-12-30 Display device and display method of handwritten content

Country Status (1)

Country Link
CN (1) CN116204107A (en)

Similar Documents

Publication Publication Date Title
CN105378606B (en) The alternative hvpothesis error correction keyed in for gesture
CN105830011B (en) For overlapping the user interface of handwritten text input
CN109614847B (en) Managing real-time handwriting recognition
CN104020943B (en) Character string is replaced
US20140019905A1 (en) Method and apparatus for controlling application by handwriting image recognition
US20170255253A1 (en) Projector and image drawing method
CN103838566A (en) Information processing device, and information processing method
CN111580714A (en) Page editing method, device, equipment and storage medium of intelligent interactive tablet
JP2000227941A (en) System and method for processing handwritten information
CN107273032A (en) Information composition method, device, equipment and computer-readable storage medium
CN110058755A (en) A kind of method, apparatus, terminal device and the storage medium of PowerPoint interaction
US20200320166A1 (en) Dynamic whiteboard templates
CN110544411B (en) Staff fingering quick marking method and system
US20220415206A1 (en) Defining an interactive session that analyzes user input provided by a participant
JP2017501468A (en) Tagging writing annotations captured by smartpen
CN105608462A (en) Character similarity judgment method and device
JP2014149612A (en) Voice recognition error correction device and its program
CN107977155A (en) A kind of hand-written recognition method, device, equipment and storage medium
CN109992124A (en) Input method, device and machine readable media
US7170503B2 (en) Layer editing method and apparatus in a pen computing system
CN112685997A (en) Display method, device and equipment of annotation information and computer readable storage medium
CN116204107A (en) Display device and display method of handwritten content
CN113705178A (en) Document processing method, document processing device, electronic equipment and medium
CN114677767A (en) Formula generation method and device, computing equipment and computer storage medium
KR101886010B1 (en) Electronic device and Driving method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination