Format adjustment method, device and interactive tablet

By identifying and automatically processing the user's format adjustment marks on the interactive tablet, the format adjustment automation on the interactive tablet is realized, solving the problem of cumbersome operations in the existing technology, and improving user experience and convenience.

CN114692567BActive Publication Date: 2024-10-29GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011638820.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-10-29
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

The existing format adjustment method for interactive tablets is cumbersome. Users need to select content and click buttons to adjust the format, which lacks convenience.

Method used

By identifying the format adjustment marks written by the user and the content to be adjusted, the format adjustment is automatically performed without setting a format adjustment button. The mark recognition model is used to judge and pair the format adjustment marks, determine the area to be adjusted, and apply corresponding instructions for format adjustment.

Benefits of technology

The format adjustment is automated, the operation is more convenient, the user experience is improved, and the format adjustment process is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692567B_ABST
    Figure CN114692567B_ABST
Patent Text Reader

Abstract

The present invention provides a format adjustment method, device and interactive tablet, the format adjustment method comprising the following steps: obtaining handwriting, determining whether the handwriting contains a format adjustment mark; if the handwriting contains a format adjustment mark, determining the format adjustment instruction corresponding to the format adjustment mark according to the correspondence between the preset format adjustment mark and the format adjustment instruction; obtaining the area to be adjusted corresponding to the format adjustment mark, and performing format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction. The format adjustment method described in the embodiment of the present invention can automatically identify the adjustment mark and the content to be adjusted, and automatically perform format adjustment on the content to be adjusted, without the user having to touch the relevant format adjustment button, and is easy to operate, thereby improving the user's experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interactive tablets, and in particular to a format adjustment method, device and an interactive tablet. Background Art

[0002] When users write on an interactive tablet, they usually need to adjust the format of the written content. The existing format adjustment method is: provide format adjustment related buttons, and when the user needs to adjust the format of the written content, select the written content and touch the corresponding button to achieve format adjustment. For example, if you need to bold some text, you need to select the text and click the bold button to bold the text; if you need to delete the text, you need to select the text and click the delete button to delete the text. It can be seen that the operation of the above format adjustment method is relatively cumbersome and not convenient enough. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the embodiments of the present invention provide a format adjustment method, device and interactive tablet, which have the advantages of being able to automatically identify adjustment marks and content to be adjusted, and automatically perform format adjustment on the content to be adjusted.

[0004] According to a first aspect of an embodiment of the present invention, there is provided a format adjustment method, comprising the following steps:

[0005] Acquire handwriting, and determine whether the handwriting contains a format adjustment mark;

[0006] If the handwriting contains a format adjustment mark, determining the format adjustment instruction corresponding to the format adjustment mark according to a preset correspondence relationship between the format adjustment mark and the format adjustment instruction;

[0007] The area to be adjusted corresponding to the format adjustment mark is obtained, and the format of the handwriting in the area to be adjusted is adjusted according to the format adjustment instruction.

[0008] In an optional embodiment, the step of obtaining handwriting and determining whether the handwriting contains a format adjustment mark includes:

[0009] Acquiring handwriting and identifying characters from the handwriting;

[0010] The character is input into a preset mark recognition model for mark recognition to determine whether the character is a format adjustment mark, wherein the mark recognition model is obtained by constructing an initial mark recognition model and collecting mark samples to train the initial mark recognition model.

[0011] In an optional embodiment, before the step of inputting the character into a preset mark recognition model for mark recognition and determining whether the character is a format adjustment mark, the step further includes:

[0012] Determine whether the handwriting contains at least two identical characters,

[0013] If the handwriting contains at least two identical characters, the characters are input into a preset mark recognition model for mark recognition; if the handwriting does not contain at least two identical characters, mark recognition is abandoned.

[0014] In an optional embodiment, before the step of determining the format adjustment instruction corresponding to the format adjustment mark according to the preset correspondence between the format adjustment mark and the format adjustment instruction, the step of customizing the format adjustment mark is also included:

[0015] In response to the format adjustment mark custom instruction, receiving input characters and corresponding format adjustment instructions;

[0016] The character is set as a format adjustment mark, and a corresponding relationship between the format adjustment mark and the format adjustment instruction is established.

[0017] In an optional embodiment, before the step of determining the format adjustment instruction corresponding to the format adjustment mark according to the preset correspondence between the format adjustment mark and the format adjustment instruction, the step of pairing the format adjustment mark is also included:

[0018] Determining whether the handwriting contains at least two identical format adjustment marks;

[0019] If the handwriting contains at least two identical format adjustment marks, obtaining the writing time interval between every two identical format adjustment marks;

[0020] If the writing time interval of two identical format adjustment marks does not exceed the preset recognition time, the two identical format adjustment marks are paired.

[0021] If the writing time interval of two identical format adjustment marks exceeds the preset recognition time, pairing the two identical format adjustment marks is abandoned.

[0022] In an optional embodiment, the step of acquiring the area to be adjusted corresponding to the format adjustment mark includes:

[0023] Respectively obtain position information of the paired first format adjustment mark and the second format adjustment mark;

[0024] Determining virtual rectangular frames corresponding to the two format adjustment marks according to position information of the first format adjustment mark and the second format adjustment mark;

[0025] The area within the virtual rectangular frame is determined as the area to be adjusted.

[0026] In an optional embodiment, determining virtual rectangular frames corresponding to the two format adjustment marks according to the position information of the first format adjustment mark and the second format adjustment mark includes:

[0027] Determine the horizontal coordinate of the leftmost handwriting of the first format adjustment mark as the horizontal coordinate of the first vertex of the virtual rectangular frame, and determine the vertical coordinate of the topmost handwriting of the first format adjustment mark as the vertical coordinate of the first vertex of the virtual rectangular frame;

[0028] Determine the horizontal coordinate of the leftmost handwriting of the first format adjustment mark as the horizontal coordinate of the second vertex of the virtual rectangular frame, and determine the vertical coordinate of the bottommost handwriting of the second format adjustment mark as the vertical coordinate of the second vertex of the virtual rectangular frame;

[0029] Determine the horizontal coordinate of the rightmost handwriting of the second format adjustment mark as the horizontal coordinate of the third vertex of the virtual rectangular frame, and determine the vertical coordinate of the third vertex of the virtual rectangular frame by the vertical coordinate of the rightmost handwriting of the second format adjustment mark;

[0030] The horizontal coordinate of the rightmost handwriting of the second format adjustment mark is determined as the horizontal coordinate of the fourth vertex of the virtual rectangular frame, and the vertical coordinate of the topmost handwriting of the first format adjustment mark is determined as the vertical coordinate of the fourth vertex of the virtual rectangular frame.

[0031] In an optional embodiment, after the step of acquiring the area to be adjusted corresponding to the format adjustment mark and performing format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction, the step further includes: deleting the format adjustment mark.

[0032] According to a second aspect of an embodiment of the present invention, there is provided a format adjustment device, comprising:

[0033] A judging module, used for obtaining handwriting and judging whether the handwriting contains a format adjustment mark;

[0034] A determination module, configured to determine, if the handwriting contains a format adjustment mark, a format adjustment instruction corresponding to the format adjustment mark according to a preset correspondence between the format adjustment mark and the format adjustment instruction;

[0035] The format adjustment module is used to obtain the area to be adjusted corresponding to the format adjustment mark, and perform format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction.

[0036] According to a third aspect of an embodiment of the present invention, an interactive tablet is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the format adjustment method as described above when executed by the processor.

[0037] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the format adjustment method as described above is implemented.

[0038] By applying the technical solution of the above-mentioned embodiment of the present application, the user's handwriting is recognized, the format adjustment mark and the content to be adjusted are obtained, and the format of the content to be adjusted is automatically adjusted. There is no need to set the corresponding format adjustment button. The operation is convenient and fast, which brings a better user experience.

[0039] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention.

[0040] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic flow chart of a format adjustment method according to an exemplary embodiment of the present invention;

[0042] Figure 2 A schematic diagram of a flow chart showing a method of determining a format adjustment mark according to an exemplary embodiment of the present invention;

[0043] Figure 3 A schematic diagram of a process of formatting handwriting according to an exemplary embodiment of the present invention;

[0044] Figure 4 A schematic diagram of a flow chart of determining a virtual rectangular frame according to an exemplary embodiment of the present invention;

[0045] Figure 5 A schematic diagram of a determined virtual rectangular frame shown in an exemplary embodiment of the present invention;

[0046] Figure 6 A schematic diagram showing a handwriting format before adjustment according to an exemplary embodiment of the present invention;

[0047] Figure 7A schematic diagram showing a handwriting format adjusted according to an exemplary embodiment of the present invention;

[0048] Figure 8 A schematic structural diagram of a format adjustment device according to an exemplary embodiment of the present invention;

[0049] Fig. 9 The figure is a schematic diagram of the structure of an interactive tablet according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0051] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0052] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0053] The display interface of the existing interactive tablet is provided with a format adjustment button. When the user writes on the interactive tablet, it is usually necessary to adjust the format of the written content. At this time, it is necessary to select the content to be adjusted and touch the corresponding button to achieve the format adjustment. For example, when some text needs to be bolded, it is necessary to select the text and click the bold button to bold the text. The operation is cumbersome and inconvenient. Based on the above technical problems, the present application provides a format adjustment method, which does not require the setting of a format adjustment button, can identify the format adjustment mark written by the user and the content to be adjusted, and automatically adjust the format of the content to be adjusted. The operation is convenient, and it brings a better user experience.

[0054] The technical solution is described below in conjunction with specific embodiments.

[0055] According to a first aspect of an embodiment of the present application, a format adjustment method is provided. Figure 1 , which is a flow chart of a format adjustment method shown in an exemplary embodiment of the present invention.

[0056] The format adjustment method includes the following steps:

[0057] S1: Obtain handwriting, and determine whether the handwriting contains a format adjustment mark.

[0058] The handwriting written by the user on the interactive tablet may be characters, numbers, marks, and graphics. Generally, the content written first is generally the content to be adjusted. After the content to be adjusted is written, the user needs to adjust the format of part of the written content. At this time, it is necessary to determine whether the written handwriting contains a format adjustment mark. Among them, the format adjustment mark can be a mark such as "*", "#", "-", etc. The format adjustment mark can be a mark set by the system or a mark customized by the user.

[0059] In an alternative embodiment, see Figure 2 , Figure 2 The figure is a flowchart showing a method of determining a format adjustment mark according to an exemplary embodiment of the present invention.

[0060] In this embodiment, step S1, obtaining handwriting and determining whether the handwriting contains a format adjustment mark, includes the following steps:

[0061] S11: Acquire handwriting and recognize characters from the handwriting;

[0062] S12: Input the character into a preset mark recognition model for mark recognition, and determine whether the character is a format adjustment mark, wherein the mark recognition model is obtained by constructing an initial mark recognition model and collecting mark samples to train the initial mark recognition model.

[0063] It should be noted that the method for obtaining the tag recognition model is: by constructing an initial tag recognition model, and then collecting tag samples to train the initial tag recognition model, so that the initial tag recognition model can recognize the format adjustment tag.

[0064] Since the handwriting of the user may include characters, numbers, marks, and graphics, it is necessary to recognize the characters from the handwriting, and then input the characters into the mark recognition model to determine whether the character is a format adjustment mark. If the character is a format adjustment mark, it is filtered out to obtain all the format adjustment marks in the handwriting.

[0065] In an optional embodiment, step S12, before the step of inputting the character into a preset mark recognition model for mark recognition and determining whether the character is a format adjustment mark, further includes the following steps:

[0066] Determine whether the handwriting contains at least two identical characters. If the handwriting contains at least two identical characters, input the characters into a preset mark recognition model for mark recognition. If the handwriting does not contain at least two identical characters, abandon mark recognition.

[0067] In the present application, since only format adjustment marks that appear in pairs are valid format adjustment marks, it is necessary to first determine whether the handwriting contains two identical characters. If the handwriting does not contain two identical characters, there is no format adjustment mark in the handwriting. Therefore, in order to quickly identify the format adjustment mark, it is necessary to determine the number of identical characters.

[0068] S2: If the handwriting contains a format adjustment mark, determine the format adjustment instruction corresponding to the format adjustment mark according to a preset correspondence relationship between the format adjustment mark and the format adjustment instruction.

[0069] Since the format adjustment instruction corresponding to the format adjustment mark needs to be determined according to the correspondence between the format adjustment mark and the format adjustment instruction in step S2, a step of customizing the format adjustment mark is required before this step.

[0070] Specifically, the method of customizing the format adjustment mark is:

[0071] In response to the format adjustment mark custom instruction, receiving input characters and corresponding format adjustment instructions;

[0072] The character is set as a format adjustment mark, and a corresponding relationship between the format adjustment mark and the format adjustment instruction is established.

[0073] At this time, the user can set the format adjustment mark according to his or her own preferences, and can set the format adjustment instruction corresponding to the format adjustment mark, which is very intelligent.

[0074] In addition, the method of presetting the correspondence between the format adjustment mark and the format adjustment instruction can also be to set a set of format adjustment marks, set the format adjustment instructions corresponding to the format adjustment marks, and provide corresponding instructions for the user to view. In this case, the user can read the relevant instructions in the instructions and input the format adjustment mark according to the needs to call the format adjustment instruction to adjust the format of the written content.

[0075] In an optional embodiment, the content to be adjusted may be determined according to the positions of two valid format adjustment marks. Therefore, according to the preset correspondence between the format adjustment mark and the format adjustment instruction, before the step of determining the format adjustment instruction corresponding to the format adjustment mark, the step of pairing the format adjustment mark is also included:

[0076] Determining whether the handwriting contains at least two identical format adjustment marks;

[0077] If the handwriting contains at least two identical format adjustment marks, obtaining the writing time interval between every two identical format adjustment marks;

[0078] If the writing time interval of two identical format adjustment marks does not exceed the preset recognition time, the two identical format adjustment marks are paired.

[0079] If the writing time interval of two identical format adjustment marks exceeds the preset recognition time, pairing the two identical format adjustment marks is abandoned.

[0080] The preset recognition time may be 3 seconds or 5 seconds, or other time values.

[0081] Determine whether the handwriting contains two identical format adjustment marks. If the handwriting contains two identical format adjustment marks and the time interval between the writing of the two identical format adjustment marks does not exceed the preset recognition time, the two identical format adjustment marks are paired, thereby determining the format adjustment instruction corresponding to the format adjustment mark according to the preset correspondence between the format adjustment mark and the format adjustment instruction; if the handwriting does not contain two identical format adjustment marks, the pairing is abandoned and the format adjustment mark is deleted. That is, only within the predetermined recognition time and when the format adjustment marks appear in pairs, the area to be adjusted is determined according to the positions of the two format adjustment marks; if the format adjustment marks do not appear in pairs, the determination of the area to be adjusted is abandoned and no format adjustment is performed. The above method can prevent the incorrect recognition of the content to be adjusted due to incorrect matching of the format adjustment marks.

[0082] If the handwriting contains more than two identical format adjustment marks, which are the first mark, the second mark, and the third mark in the order of writing, then it is necessary to find two marks with a closer writing time interval from the three marks as format adjustment marks. Specifically, the writing time interval between the second mark and the first mark is recorded as the first time interval, and the writing time interval between the third mark and the second mark is recorded as the second time interval. If the first time interval exceeds the preset recognition time, then the second mark abandons the match with the first mark, and continues to determine whether the second time interval exceeds the preset recognition time. If the second time interval does not exceed the preset recognition time, the second mark will be matched with the third mark, and the second mark and the third mark will be determined as valid format adjustment marks.

[0083] For example, when the handwriting contains more than two identical marks, for example, when the user inputs "A1234*4321B" and needs to make "A1234*4321B" bold, and the "*" happens to be a format adjustment mark, the "*" in "A1234*4321B" is recorded as the first mark. At this time, the user needs to input an "*" before and after "A1234*4321B" as a format adjustment mark, which are recorded as the second mark and the third mark respectively. In order to prevent the format adjustment mark "*" from matching with the "*" in "A1234*4321B", that is, to prevent the second mark or the third mark from matching with the first mark, the processor of the interactive tablet will obtain the writing time of the three "*"s and calculate the first time interval and the second time interval. If the first time interval exceeds the preset recognition time, the match with the first mark will be abandoned, and the second mark and the third mark will be matched; if both the first time interval and the second time interval do not exceed the preset recognition time, the two marks with shorter time intervals will be used as valid format adjustment marks, that is, the second mark and the third mark will be used as valid format adjustment marks, and the entire content of "A1234*4321B" will be the content to be format adjusted.

[0084] For another example, when the handwriting contains more than two format adjustment marks, for example, when the user inputs "A1234#4321B" and needs to make "A1234#4321B" bold, and the "#" happens to be a format adjustment mark, at this time, the user needs to input an "*" before and after "A1234#4321B" as a format adjustment mark. In order to prevent the format adjustment mark "*" from matching the "#" in "A1234#4321B", it will first determine whether the three format adjustment mark numbers are the same. At this time, it will be found that the "#" is different from the "*", so the writing time of the same two "*"s will be determined. If the writing time of the two "*"s is within the preset recognition time, the two "*"s will be regarded as valid format adjustment marks, and the entire content of "A1234#4321B" will be the content to be format adjusted.

[0085] In addition, if the handwriting contains more than two format adjustment marks, there may be no handwriting between two "*". In this case, each "*" is re-paired until it is found that there is handwriting between the two "*". At this time, it is also necessary to determine whether it is a valid format adjustment mark based on the time interval between the two "*". If the time interval between the two "*" is within the preset recognition time, the format adjustment instruction corresponding to the format adjustment mark is determined based on the correspondence between the preset format adjustment mark and the format adjustment instruction; if the time interval between the two "*" exceeds the preset recognition time, the format adjustment is abandoned and the format adjustment mark is deleted.

[0086] S3: Acquire the area to be adjusted corresponding to the format adjustment mark, and perform format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction.

[0087] See also Figure 3 , Figure 3 The figure is a schematic diagram of a flow chart of formatting of handwriting according to an exemplary embodiment of the present invention.

[0088] Since only format adjustment marks that appear in pairs are judged as valid format adjustment marks, step S3 includes the following steps:

[0089] S31: respectively obtaining position information of a paired first format adjustment mark and a second format adjustment mark;

[0090] S32: Determine virtual rectangular frames corresponding to the two format adjustment marks according to the position information of the first format adjustment mark and the second format adjustment mark.

[0091] See also Figure 4 and Figure 5 ,in Figure 4A schematic diagram of a flow chart of determining a virtual rectangular frame according to an exemplary embodiment of the present invention; Figure 5 The figure is a schematic diagram of a determined virtual rectangular frame according to an exemplary embodiment of the present invention.

[0092] Figure 5 In the figure, the determined virtual rectangular box is the circumscribed virtual rectangular box between the two format adjustment marks “*”, and the circumscribed virtual rectangular box includes the content between the two format adjustment marks “*” and the surrounding content, such as the area directly below the first “*” is also the area to be adjusted, and the area directly above the second “*” is also the area to be adjusted.

[0093] Since only the area between the two format adjustment marks can be determined as the area to be adjusted based on the position information of the two format adjustment marks, and in this embodiment, the area above or below the two format adjustment marks is also determined as the area to be adjusted, it is necessary to obtain the position information of the first format adjustment mark and the second format adjustment mark in order to determine the circumscribed virtual rectangular frame.

[0094] In an optional embodiment, the coordinates of the leftmost handwriting of the first format adjustment mark are (X1, Y1), the coordinates of the topmost handwriting of the first format adjustment mark are (X2, Y2); the coordinates of the bottommost handwriting of the second format adjustment mark are (X3, Y3), and the coordinates of the rightmost handwriting of the second format adjustment mark are (X4, Y4) for illustration.

[0095] Step S32 includes the following steps:

[0096] S321: Determine the horizontal coordinate of the leftmost handwriting of the first format adjustment mark as the horizontal coordinate of the first vertex of the virtual rectangular box, and determine the vertical coordinate of the topmost handwriting of the first format adjustment mark as the vertical coordinate of the first vertex of the virtual rectangular box.

[0097] Since the horizontal coordinate of the leftmost handwriting of the first format adjustment mark is X2, and the vertical coordinate of the topmost handwriting of the first format adjustment mark is Y1, the coordinates of the first vertex of the virtual rectangular frame are (X2, Y1).

[0098] S322: Determine the horizontal coordinate of the leftmost handwriting of the first format adjustment mark as the horizontal coordinate of the second vertex of the virtual rectangular box, and determine the vertical coordinate of the bottommost handwriting of the second format adjustment mark as the vertical coordinate of the second vertex of the virtual rectangular box.

[0099] Since the horizontal coordinate of the leftmost handwriting of the first format adjustment mark is X2, and the vertical coordinate of the bottommost handwriting of the second format adjustment mark is Y3, the coordinates of the second vertex of the virtual rectangular frame are (X2, Y3).

[0100] S323: Determine the horizontal coordinate of the rightmost handwriting of the second format adjustment mark as the horizontal coordinate of the third vertex of the virtual rectangular frame, and determine the vertical coordinate of the bottommost handwriting of the second format adjustment mark as the vertical coordinate of the third vertex of the virtual rectangular frame.

[0101] Since the horizontal coordinate of the rightmost handwriting of the second format adjustment mark is X4, and the vertical coordinate of the bottommost handwriting of the second format adjustment mark is Y3, the coordinates of the third vertex of the virtual rectangular frame are (X4, Y3).

[0102] S324: Determine the horizontal coordinate of the rightmost handwriting of the second format adjustment mark as the horizontal coordinate of the fourth vertex of the virtual rectangular frame, and determine the vertical coordinate of the topmost handwriting of the first format adjustment mark as the vertical coordinate of the fourth vertex of the virtual rectangular frame.

[0103] Since the horizontal coordinate of the rightmost handwriting of the second format adjustment mark is X4, and the vertical coordinate of the topmost handwriting of the first format adjustment mark is Y1, the coordinates of the fourth vertex of the virtual rectangular frame are (X4, Y1).

[0104] S33: determining the area within the virtual rectangular frame as the area to be adjusted;

[0105] S34: Performing format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction.

[0106] Please also see Figure 6 and Figure 7 ,in Figure 6 A schematic diagram showing a handwriting format before adjustment according to an exemplary embodiment of the present invention; Figure 7 This is a schematic diagram showing an exemplary embodiment of the present invention showing a handwriting format adjusted.

[0107] Figure 6 In the example, "1234" is the content to be adjusted input by the user. Before adjustment, the strokes of "1234" are thinner. You can enter an "*" before and after "1234". The format adjustment instruction corresponding to the "*" is to make the strokes thicker. Therefore, in Figure 7 After adjustment, the number of strokes of "1234" is smaller than that of Figure 6 The strokes of "1234" are thicker, so the format adjustment of thickening the strokes is implemented.

[0108] In this embodiment, since the format adjustment mark can be "*", "#", "《", or other marks, the corresponding format adjustment instruction can be bold, delete, quote, or other adjustment methods. For example, "*" can correspond to bold adjustment, "#" can correspond to deletion adjustment, "《" can correspond to quote adjustment, etc.

[0109] In an optional embodiment, after the step of obtaining the area to be adjusted corresponding to the format adjustment mark and performing format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction, the step further includes: deleting the format adjustment mark.

[0110] By applying the technical solution of the above-mentioned embodiment of the present application, the user's handwriting is recognized to obtain the format adjustment marks that appear in pairs and the content to be adjusted between the format adjustment marks that appear in pairs, and the format adjustment of the content to be adjusted is automatically performed. There is no need to set the corresponding format adjustment button. The operation is convenient and quick, which brings a better user experience.

[0111] According to a second aspect of the embodiment of the present application, a format adjustment device is provided. Figure 8 , Figure 8 The figure is a schematic structural diagram of a format adjustment device according to an exemplary embodiment of the present invention.

[0112] The format adjustment device 10 comprises:

[0113] A judgment module 1 is used to obtain handwriting and judge whether the handwriting contains a format adjustment mark;

[0114] Determination module 2, for determining the format adjustment instruction corresponding to the format adjustment mark according to a preset correspondence relationship between the format adjustment mark and the format adjustment instruction if the written handwriting contains the format adjustment mark;

[0115] The format adjustment module 3 is used to obtain the area to be adjusted corresponding to the format adjustment mark, and perform format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction.

[0116] It should be noted that, when the format adjustment device provided in the above embodiment executes the above format adjustment method, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the format adjustment device provided in the above embodiment and the format adjustment method embodiment belong to the same concept, and the embodiment process thereof is detailed in the embodiment, which will not be repeated here.

[0117] According to a third aspect of an embodiment of the present invention, an interactive tablet is provided. Fig. 9 , Fig. 9 The figure is a schematic diagram of the structure of an interactive tablet according to an exemplary embodiment of the present invention.

[0118] The interactive tablet 100 includes: a processor 101, a memory 102, a display screen 103, and a computer program stored in the memory 102 and executable on the processor 101, wherein the computer program implements the format adjustment method as described above when executed by the processor 101; the display screen 103 receives a display signal sent by the processor 101 for display.

[0119] The memory 102 may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0120] Among them, the processor 101 may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor can integrate one or more combinations of central processing unit (Central Processing Unit, CPU), image processor (Graphics Processing Unit, GPU) and modem. Among them, the CPU mainly processes the operating system, user interface and application program; the GPU is responsible for rendering and drawing the content to be displayed by the display layer; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor, but implemented by a single chip.

[0121] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the format adjustment method as described above is implemented. The specific execution process can refer to the specific description of the above method embodiment, which is not repeated here. The device where the storage medium is located can be an electronic device such as a personal computer, a laptop computer, a smart phone, and a tablet computer.

[0122] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0123] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A format adjustment method, characterized in that: The steps include: Acquire handwriting, and determine whether the handwriting contains a format adjustment mark; If the handwriting contains a format adjustment mark, the format adjustment instruction corresponding to the format adjustment mark is determined according to the preset correspondence between the format adjustment mark and the format adjustment instruction; wherein, before the step of determining the format adjustment instruction corresponding to the format adjustment mark according to the preset correspondence between the format adjustment mark and the format adjustment instruction, the step of pairing the format adjustment marks is also included: judging whether the handwriting contains at least two identical format adjustment marks; if the handwriting contains at least two identical format adjustment marks, obtaining the writing time interval between every two identical format adjustment marks; if the writing time interval between the two identical format adjustment marks does not exceed the preset recognition time, pairing the two identical format adjustment marks; if the writing time interval between the two identical format adjustment marks exceeds the preset recognition time, giving up pairing the two identical format adjustment marks; The area to be adjusted corresponding to the format adjustment mark is obtained, and the format of the handwriting in the area to be adjusted is adjusted according to the format adjustment instruction.

2. The format adjustment method according to claim 1, characterized in that: The step of obtaining handwriting and determining whether the handwriting contains a format adjustment mark includes: Acquiring handwriting and identifying characters from the handwriting; The character is input into a preset mark recognition model for mark recognition to determine whether the character is a format adjustment mark, wherein the mark recognition model is obtained by constructing an initial mark recognition model and collecting mark samples to train the initial mark recognition model.

3. The format adjustment method according to claim 2, characterized in that: Before the step of inputting the character into a preset mark recognition model for mark recognition and determining whether the character is a format adjustment mark, the step further includes: Determine whether the handwriting contains at least two identical characters, If the handwriting contains at least two identical characters, the characters are input into a preset mark recognition model for mark recognition; if the handwriting does not contain at least two identical characters, mark recognition is abandoned.

4. The format adjustment method according to claim 1, characterized in that: Before the step of determining the format adjustment instruction corresponding to the format adjustment mark according to the preset correspondence between the format adjustment mark and the format adjustment instruction, the step of customizing the format adjustment mark is also included: In response to the format adjustment mark custom instruction, receiving input characters and corresponding format adjustment instructions; The character is set as a format adjustment mark, and a corresponding relationship between the format adjustment mark and the format adjustment instruction is established.

5. The format adjustment method according to claim 1, characterized in that: The step of acquiring the area to be adjusted corresponding to the format adjustment mark comprises: Respectively obtain position information of the paired first format adjustment mark and the second format adjustment mark; Determining virtual rectangular frames corresponding to the two format adjustment marks according to position information of the first format adjustment mark and the second format adjustment mark; The area within the virtual rectangular frame is determined as the area to be adjusted.

6. The format adjustment method according to claim 5, characterized in that: Determining virtual rectangular frames corresponding to the two format adjustment marks according to position information of the first format adjustment mark and the second format adjustment mark includes: Determine the horizontal coordinate of the leftmost handwriting of the first format adjustment mark as the horizontal coordinate of the first vertex of the virtual rectangular frame, and determine the vertical coordinate of the topmost handwriting of the first format adjustment mark as the vertical coordinate of the first vertex of the virtual rectangular frame; Determine the horizontal coordinate of the leftmost handwriting of the first format adjustment mark as the horizontal coordinate of the second vertex of the virtual rectangular frame, and determine the vertical coordinate of the bottommost handwriting of the second format adjustment mark as the vertical coordinate of the second vertex of the virtual rectangular frame; Determine the horizontal coordinate of the rightmost handwriting of the second format adjustment mark as the horizontal coordinate of the third vertex of the virtual rectangular frame, and determine the vertical coordinate of the bottommost handwriting of the second format adjustment mark as the vertical coordinate of the third vertex of the virtual rectangular frame; The horizontal coordinate of the rightmost handwriting of the second format adjustment mark is determined as the horizontal coordinate of the fourth vertex of the virtual rectangular frame, and the vertical coordinate of the topmost handwriting of the first format adjustment mark is determined as the vertical coordinate of the fourth vertex of the virtual rectangular frame.

7. The format adjustment method according to claim 1, characterized in that: After the step of acquiring the area to be adjusted corresponding to the format adjustment mark and performing format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction, the step further includes: Delete the formatting adjustment tags.

8. A format adjustment device, characterized in that: include: A judging module, used for obtaining handwriting and judging whether the handwriting contains a format adjustment mark; A determination module, used for, if the handwriting contains a format adjustment mark, determining the format adjustment instruction corresponding to the format adjustment mark according to the preset correspondence between the format adjustment mark and the format adjustment instruction; wherein, before the step of determining the format adjustment instruction corresponding to the format adjustment mark according to the preset correspondence between the format adjustment mark and the format adjustment instruction, it also includes the step of pairing the format adjustment marks: judging whether the handwriting contains at least two identical format adjustment marks; if the handwriting contains at least two identical format adjustment marks, obtaining the writing time interval between every two identical format adjustment marks; if the writing time interval between the two identical format adjustment marks does not exceed the preset recognition time, pairing the two identical format adjustment marks; if the writing time interval between the two identical format adjustment marks exceeds the preset recognition time, giving up pairing the two identical format adjustment marks; The format adjustment module is used to obtain the area to be adjusted corresponding to the format adjustment mark, and perform format adjustment on the handwriting in the area to be adjusted according to the format adjustment instruction.

9. An interactive tablet, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the format adjustment method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the format adjustment method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Rendering processing method and device based on special characters, equipment and storage medium

    CN108572776A