WO2020093329A1 - 一种终端设备的数据输入方法、终端设备及存储介质 - Google Patents
一种终端设备的数据输入方法、终端设备及存储介质 Download PDFInfo
- Publication number
- WO2020093329A1 WO2020093329A1 PCT/CN2018/114631 CN2018114631W WO2020093329A1 WO 2020093329 A1 WO2020093329 A1 WO 2020093329A1 CN 2018114631 W CN2018114631 W CN 2018114631W WO 2020093329 A1 WO2020093329 A1 WO 2020093329A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- handwriting
- terminal device
- trajectory
- characters
- input
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
Definitions
- the present application belongs to the technical field of input methods, and particularly relates to a data input method of a terminal device, a terminal device, and a computer-readable storage medium.
- the traditional calculator function has been widely used in various terminal devices, and users only need to use the terminal device to enjoy the function of the calculator. Due to the adoption of the touch screen, the calculator function on the terminal device also mainly realizes the input of mathematical symbols through the virtual buttons displayed on the touch screen.
- the interface of the calculator on the terminal device mainly includes two areas: an input area and a display area, the input area provides characters (Arabic numerals and mathematical symbols) for the user to click to select, and the display area is used to display the character or operation selected by the user by clicking Results etc.
- the present application provides a data input method for a terminal device, a terminal device, and a computer-readable storage medium to improve the efficiency of character input in current calculator applications.
- the first aspect of the present application provides a data input method for a terminal device, including:
- a handwriting trajectory is generated according to the handwriting information input by the handwriting input operation
- the handwriting trajectory is recognized to obtain a recognition result, and the recognition result includes one or more characters, and the characters include: Arabic numerals and mathematical symbols.
- the second aspect of the present application provides a terminal device, including:
- a handwriting information monitoring unit used to monitor the handwriting input operation in the handwriting input interface of the calculator application after the calculator application in the terminal device is started;
- a handwriting trajectory generating unit configured to generate a handwriting trajectory according to the handwriting information input by the handwriting input operation if a handwriting input operation in the handwriting input interface of the calculator application is detected;
- the character recognition unit is used for recognizing the handwriting trajectory to obtain a recognition result after detecting the end of the handwriting input operation.
- the recognition result includes one or more characters, and the characters include: Arabic numerals and mathematical symbols.
- a third aspect of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
- the processor implements the computer program when executing the computer program. Apply the steps of the method provided in the first aspect of the embodiment.
- a fourth aspect of the present application provides a computer-readable storage medium that stores a computer program that is executed by one or more processors to implement the first aspect of the embodiments of the present application The steps of the method.
- a fifth aspect of the present application provides a computer program product.
- the computer program product includes a computer program, which when executed by one or more processors implements the steps of the method provided by the first aspect of the present application.
- FIG. 1 is a schematic diagram of an implementation process of a data input method of a terminal device provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of the effect of a display interface of a calculator application provided by an embodiment of the present application
- FIG. 3 is a schematic diagram of the effect of a handwriting input process of a calculator application provided by an embodiment of the present application
- FIG. 4 is a schematic diagram of an implementation process of another data input method of a terminal device provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of a handwriting input direction in a landscape state provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of a handwriting input direction in a portrait-oriented state provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of an effect of dividing an area where a handwriting trajectory is located into multiple sub-areas provided by an embodiment of the present application;
- FIG. 8 is a schematic diagram of an implementation process of another data input method of a terminal device provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of an effect of a process of dividing a region where a handwriting trajectory is located into multiple sub-regions through a sliding window provided by an embodiment of the present application;
- FIG. 10 is a schematic block diagram of a terminal device provided by an embodiment of the present application.
- FIG. 11 is a schematic block diagram of another terminal device provided by an embodiment of the present application.
- the term “if” may be interpreted as “when” or “once” or “in response to determination” or “in response to detection” depending on the context .
- the phrase “if determined” or “if [described condition or event] is detected” can be interpreted in the context to mean “once determined” or “in response to a determination” or “once detected [described condition or event ] “Or” In response to detection of [the described condition or event] ".
- FIG. 1 is a schematic flowchart of an implementation method of a data input method for a terminal device according to an embodiment of the present application. As shown in the figure, the method may include the following steps:
- Step S101 After the calculator application in the terminal device is started, monitor the handwriting input operation in the handwriting input interface of the calculator application.
- a calculator application may be installed in the terminal device, and after starting the computer application, a handwriting input interface will be displayed on the display interface of the terminal device.
- a preset button on the display interface of the terminal device after the calculator application is started, and the user can switch between the handwriting input interface and the button input interface (handwriting is not supported) through the preset button.
- use one of the interfaces as the default interface and display the default interface directly after the calculator application is started.
- the handwriting input interface provides an area for users to perform handwriting input operations.
- the handwriting input operation may be a touch operation. For example, a user performs a touch operation with a finger or a stylus pen on a handwriting input interface to input handwritten information.
- Step S102 if the handwriting input operation in the handwriting input interface of the calculator application is monitored, a handwriting trajectory is generated according to the handwriting information input by the handwriting input operation.
- the handwriting input operation in the handwriting input interface of the calculator application it means that the touch operation in the handwriting input interface is detected.
- a sensor is provided on the display screen of the terminal device, and if there is a sensor that senses the user's touch, it means that the handwriting input operation in the handwriting input interface of the calculator application is detected, and the area where the handwriting input interface is located is sensed
- the position (coordinates) of the sensor touched by the user is recorded as handwriting information.
- the positions (coordinates) of all sensors in the handwriting input interface that feel the user's touch are combined to generate a handwriting trajectory.
- the method further includes:
- the handwriting trajectory is displayed according to the position of the handwriting information in the handwriting input interface.
- the handwriting trajectory may be displayed in the handwriting input interface, and when displayed, according to the position (coordinates) of the handwriting information on the handwriting input interface ) To display.
- the position (sensor position or coordinates) touched by the user is displayed in a color different from the background color of the handwriting input interface.
- FIG. 2 is a schematic diagram of the effect of a display interface of a calculator application provided by an embodiment of the present application. As shown in FIG. 2, after a user enters “1024” in a handwriting input interface, it is displayed in a color different from the background color of the handwriting input interface Handwriting track "1024".
- step S103 after detecting that the handwriting input operation is completed, the handwriting trajectory is recognized to obtain a recognition result, and the recognition result includes one or more characters, and the characters include: Arabic numerals and mathematical symbols.
- the display interface of the terminal device further includes: a virtual button; as shown in FIG. 2, the display interface includes a handwriting input interface and a virtual button.
- the user can input characters by handwriting on the handwriting input interface, or the user can input characters by clicking a virtual button.
- Arabic numerals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
- recognizing the handwriting trajectory to obtain a recognition result includes:
- the handwriting input operation can be a touch operation.
- the calculator application provided in the embodiment of the present application can recognize multiple characters input by the user at one time. Therefore, one handwriting input operation may include one touch operation, for example, Arabic numeral 1 can be completed by one touch operation; it may also include multiple intermittent touch operations, for example, Arabic numeral 10 requires two intermittent touch operations. Since the user is allowed to enter multiple characters by hand, it is necessary to determine whether the user needs the calculator application to recognize characters after writing 1, or the calculator application to recognize characters after writing 10, or whether to continue to enter other characters after writing 10 Only need the calculator application to recognize characters.
- the method of judgment may be that if a touch operation is performed in the handwriting input interface, and the user does not perform a new touch operation in the handwriting input interface within a preset time after lifting the finger, the handwriting input operation is determined to end; or, the user After the touch operation is performed in the handwriting input interface, the operation of clicking the virtual button is detected, and it is determined that the handwriting input operation is ended.
- the schematic diagram of the effect of the handwriting input process shown in FIG. 3 when the user clicks the virtual button "+” after handwriting input "1024" on the handwriting input interface, it means that the current handwriting input is over, and the user can write "" 1024 "to identify and obtain the recognition result, the recognition result is 1024.
- the user After the user inputs "+” through the virtual button, he can continue to input multiple mathematical symbols "168".
- the user may also pause for a time longer than a preset time, as long as no new touch operation is detected within the preset time after the touch operation disappears in the handwriting input interface, the current The handwriting input ends.
- the user can handwrite multiple characters at a time on the handwriting input interface, and then the calculator application can recognize the multiple characters. It avoids the problem of a long process of finding multiple virtual buttons when the characters to be input are all input through virtual buttons; it also avoids the problem of a long process of recognizing one character at a time when only one character is input during handwriting input; Therefore, the efficiency of inputting characters in the calculator application can be improved.
- the recognizing the handwriting trajectories in each sub-region separately, and obtaining the characters corresponding to the handwriting trajectories in each sub-region include:
- a template of characters that can be recognized by the calculator application is pre-stored.
- the character template can be saved as Arabic in a preset database Digital template.
- the set calculator application has the function of recognizing Arabic numerals and decimal points
- the template of Arabic numerals and decimal points can be saved in the preset database.
- the set calculator application also has the function of recognizing mathematical operation symbols, it can be stored in the preset database Save the mathematical operation symbol template. After dividing multiple sub-regions, each sub-region is a character's handwriting trajectory, you can identify the handwriting trajectories in each sub-region.
- the recognition process can separate the handwriting trajectories in each sub-region from the preset Match each character template to obtain the characters corresponding to the handwriting trajectories in each sub-region.
- the character corresponding to the character template with the highest matching degree may be used as the character corresponding to the handwriting trajectory in the current sub-region.
- the method before matching the handwriting trajectories in each sub-region with the preset multiple character templates, the method further includes:
- a handwriting trajectory is generated based on the handwriting information input through the template input interface, and the current handwriting trajectory is used as the character template corresponding to the character of the template to be set.
- the user can input the corresponding characters by handwriting, and store the characters input by the user as a template .
- the characters (such as 6) of the template to be set and the template input interface can be displayed on the display interface of the terminal device, and the user can input 6 in the template input interface, and then the handwriting information in the template input interface can be used to generate a handwriting trajectory.
- the handwriting track 6 serves as a character template corresponding to the character 6. In this way, the efficiency and accuracy of matching can be improved.
- FIG. 4 is a schematic flowchart of another handwriting input method provided by an embodiment of the present application.
- FIG. 4 describes, on the basis of the embodiment shown in FIG. 1, how to recognize the handwriting trajectory to obtain a recognition result, as shown in the figure , Which can include the following steps:
- Step S401 Identify the handwriting trajectory to obtain one or more characters corresponding to the handwriting trajectory.
- the handwriting input direction can be obtained, and based on the handwriting input direction, the area where the handwriting trajectory is located is divided into one or more sub-regions; the handwriting trajectories in each sub-region are separately identified to obtain The character corresponding to the handwriting trajectory in each sub-region.
- the handwriting input direction may be a sequence from left to right on the display interface from the perspective of the user when the user faces the display interface of the calculator application. That is, the handwriting input direction is the direction in which the user inputs characters.
- the acquiring the handwriting input direction includes:
- the handheld direction of the terminal device can be obtained.
- sensors such as a gravity sensor
- the handheld device terminal direction can be The hand-held direction corresponding to the horizontal screen state or the hand-held direction corresponding to the vertical screen state.
- the handwriting input direction is from left to right in the display interface of the terminal device in the horizontal screen state
- the direction of the user (the user's perspective), as shown in Figure 5, the direction marked in the figure is the direction of handwriting input in the horizontal screen state; similarly, when the handheld direction of the terminal device is the corresponding handheld direction in the vertical screen state, the handwriting input direction is The direction from left to right in the display interface of the terminal device in the portrait-oriented state (the user's perspective), as shown in FIG. 6, the direction marked in the figure is the direction of handwriting input in the portrait-oriented state.
- the acquiring the direction of the handwriting input includes:
- a curve is generated according to the starting point of multiple touch operations, and the baseline direction of the curve is used as the handwriting input direction.
- the user's handwriting input operation may have multiple intermittent touch operations, for example, writing 168 three characters at a time in the handwriting input interface, there may be three touch operations, each touch operation is from Detecting the touch in the handwriting input interface until the touch disappears is regarded as one touch operation. If 168 is to be written, there may be three touch operations.
- the starting point of the three-touch operation can be used to generate a curve, and the baseline direction of the curve can be used as the handwriting input direction.
- the following method for determining the direction of handwriting input may also be selected when the aspect ratio of the area (rectangular area) where the handwriting trajectory is located is greater than a preset value: generating a curve according to the starting point position of multiple touch operations , Take the baseline direction of the curve as the handwriting input direction.
- the area where the handwriting trajectory is located can be divided into one or more sub-regions based on the handwriting input direction; the handwriting trajectories in each sub-region are separately identified to obtain Character corresponding to the handwriting trajectory.
- the arrangement direction of the multiple sub-regions is the handwriting input direction.
- the area where the handwriting trajectory 168 is located is divided into three sub-areas along the handwriting input direction.
- the characters corresponding to the handwriting trajectory in each sub-region can be obtained by identifying the handwriting trajectory in each sub-region.
- the recognition result of the handwriting trajectory in the first sub-region is character 1
- the recognition result of the handwriting trajectory in the second sub-region is character 6
- the recognition result of the handwriting trajectory in the third sub-region The recognition result is character 8.
- step S402 if a character is obtained, the obtained character is used as a recognition result.
- step S403 if multiple characters are obtained, the multiple characters are sorted based on the positions of the handwriting trajectories corresponding to the characters respectively, and the sorted multiple characters are used as the recognition result.
- the obtained character is the recognition result.
- multiple characters may be recognized.
- the user has a sequence of multiple characters input by handwriting. Therefore, the recognized multiple characters need to be sorted according to the sub-region in the direction of handwriting input.
- the characters corresponding to the handwriting trajectories in each sub-area are sequentially sorted, that is, the plurality of characters are sorted based on the positions of the sub-areas corresponding to the characters respectively.
- the characters corresponding to the handwriting trajectory in each sub-area may also be sorted according to the time of the touch operation corresponding to the detected handwriting trajectory in each sub-area.
- FIG. 8 is a schematic flowchart of another handwriting input method provided by an embodiment of the present application.
- FIG. 8 describes, based on the embodiment shown in FIG. 4, how to convert the area where the handwriting trajectory is based on the handwriting input direction Divided into one or more sub-regions, as shown in the figure, can include the following steps:
- Step S801 Control a sliding window of a preset width to slide along the direction of the handwriting input in an area where the handwriting trajectory is located to obtain the position of the sliding window when the first preset condition is satisfied.
- the area where the handwriting trajectory is located may be the area where the smallest circumscribed rectangle of the handwriting trajectory is located.
- the outermost white frame of the handwriting trajectory 168 is the smallest circumscribed rectangle of the handwriting trajectory 168.
- the window at the position W0 is a sliding window, the width of the sliding window can be set in advance, and the sliding window is controlled to slide along the sliding direction in the smallest circumscribed rectangular area of the handwriting trajectory.
- the sliding direction may be a handwriting input direction, the width of the sliding window is preset, and the length of the sliding window is greater than or equal to the width of the minimum circumscribed rectangle in the direction perpendicular to the sliding direction. In the sliding process of the sliding window, there will be multiple positions, such as the position where W1 is located and the position where W2 is located.
- the position of the sliding window when the first preset condition is met when the position of the sliding window when the first preset condition is met is obtained, it may be set as:
- the position where the number of pixels in the area intersecting the handwriting trajectory is less than a preset number is used as the position of the sliding window when the first preset condition is satisfied.
- different preset areas or different preset numbers can be set according to sliding windows of different widths.
- the preset area and the preset number can also be set to 0.
- the position of W1 is the position of the sliding window when the first preset condition is met.
- the position of W2 is not the position of the sliding window when the first preset condition is met.
- W1 and W2 shown in FIG. 9 are only used as examples and are not intended to limit the present invention.
- Step S802 Based on the position of the sliding window when the first preset condition is satisfied, determine a center line of the sliding window when the first preset condition is met, and record the center line as a boundary line, where the center The line is perpendicular to the direction of the handwriting input.
- the position of the sliding window when the first preset condition is met can be used as a boundary between two sub-regions. Since the sliding window itself has a certain width, the centerline of the sliding window can be set The position of is used as the position of the dividing line between the two sub-regions. Of course, the selected center line is the center line perpendicular to the sliding direction. In practical applications, the position of other lines parallel to the center line in the area defined by the sliding window may also be selected as the position of the boundary line.
- Step S803 Determine the distance between any two adjacent boundary lines, merge two adjacent boundary lines smaller than the first preset distance, and merge two adjacent boundary lines smaller than the first predetermined distance
- the center line of the defined area serves as the combined dividing line.
- Step S804 between two adjacent dividing lines greater than the second preset distance, a new dividing line is generated at a position that satisfies the second preset condition.
- a new boundary line generated at a position satisfying the second preset condition is:
- the center line of the area defined by two adjacent dividing lines greater than the second preset distance is taken as the newly generated dividing line.
- the width, preset area, or preset number of the sliding window may be unreasonable, or, when the user writes in the handwriting input interface, the characters are too close, resulting in The subregion divided by the dividing line of is unreasonable. For example, there are multiple dividing lines between the first character and the second character, or there is no dividing line between the two characters. Therefore, it is necessary to process the obtained boundary lines, merge adjacent boundary lines that are too small in distance (no characters exist between adjacent boundary lines that are too small in distance), and merge adjacent boundary lines that are too far in distance.
- a line with the same distance between two adjacent dividing lines and the two dividing lines can be selected as the new dividing line, and the original two dividing lines are cancelled.
- a line with the same distance between two adjacent dividing lines as the two dividing lines can be selected as the newly added dividing line, and the original two dividing lines remain.
- the second preset distance is greater than the first preset distance.
- the width of the smallest circumscribed rectangle of the handwriting trajectory in the direction perpendicular to the handwriting input direction represents the height of one character
- the first preset distance can be set to be less than half of the character height, that is, the first Let the distance be less than or equal to half the width of the smallest circumscribed rectangle of the handwriting trajectory in the direction perpendicular to the handwriting input direction.
- Step S805 Based on the boundary line, divide the area where the handwriting trajectory is located into one or more sub-areas.
- the area where the handwriting trajectory is located can be divided into one or more sub-regions according to the boundary line.
- the determined boundary line is 0, it means The area where the handwriting trajectory is located is a sub-area, and when the determined dividing line is at least one, it means that the area where the handwriting trajectory is located is divided into at least two sub-areas. For example, as shown in FIG. 7, the area where the handwriting trajectory is located is divided into three sub-areas.
- FIG. 10 is a schematic block diagram of a terminal device provided by an embodiment of the present application. For convenience of description, only parts related to the embodiment of the present application are shown.
- the terminal device 10 may be a software unit, a hardware unit, or a combination of software and hardware built in terminal devices such as mobile phones, tablet computers, and notebooks, or may be integrated as an independent pendant into the terminal devices such as mobile phones, tablet computers, and notebooks in.
- the terminal device 10 includes:
- the handwriting information monitoring unit 101 is configured to monitor the handwriting input operation in the handwriting input interface of the calculator application after the calculator application in the terminal device is started;
- the handwriting trajectory generating unit 102 is configured to generate a handwriting trajectory according to the handwriting information input by the handwriting input operation if the handwriting input operation in the handwriting input interface of the calculator application is detected;
- the character recognition unit 103 is configured to recognize the handwriting trajectory to obtain a recognition result after detecting the end of the handwriting input operation, and the recognition result includes one or more characters, and the characters include: Arabic numerals and mathematical symbols .
- the terminal device 10 further includes:
- the display unit 104 is configured to display the handwriting trajectory according to the position of the handwriting information in the handwriting input interface after generating the handwriting trajectory according to the handwriting information input by the handwriting input operation.
- the character recognition unit 103 is further used to:
- the display interface of the terminal device further includes: a virtual button; correspondingly, the character recognition unit 103 is further used to:
- the character recognition unit 103 includes:
- the character recognition module 1031 is configured to recognize the handwriting trajectory and obtain one or more characters corresponding to the handwriting trajectory;
- the recognition result obtaining module 1032 is used to obtain the character as the recognition result if a character is obtained;
- the recognition result obtaining module 1032 is further configured to, if multiple characters are obtained, sort the multiple characters based on the positions of the handwriting trajectories corresponding to the characters, and use the sorted multiple characters as the recognition result .
- the character recognition module 1031 includes:
- the area division submodule 10311 is used to obtain a handwriting input direction, and based on the handwriting input direction, divide the area where the handwriting trajectory is located into one or more sub-areas;
- the character recognition sub-module 10312 is used to separately recognize the handwriting trajectories in each sub-region to obtain the characters corresponding to the handwriting trajectories in each sub-region;
- the recognition result obtaining module 1032 is also used to:
- the area division submodule 10311 is further used to:
- the area division submodule 10311 is further used to:
- a curve is generated according to the starting point of multiple touch operations, and the direction of the baseline of the curve is used as the direction of handwriting input.
- the area division submodule 10311 is further used to:
- the area where the handwriting trajectory is located is divided into one or more sub-areas.
- the area division submodule 10311 is further used to:
- the position where the number of pixels in the area intersecting the handwriting trajectory is less than a preset number is used as the position of the sliding window when the first preset condition is satisfied.
- the area division submodule 10311 is further used to:
- the two adjacent dividing lines smaller than the first preset distance are combined, and the center line of the area defined by the two adjacent dividing lines smaller than the first preset distance is used as the combined dividing line.
- the area division submodule 10311 is further used to:
- a position satisfying the second preset condition Create a new dividing line.
- the area division submodule 10311 is further used to:
- the center line of the area defined by two adjacent dividing lines greater than the second preset distance is taken as the newly generated dividing line.
- the area where the handwriting trajectory is located is the area where the smallest circumscribed rectangle of the handwriting trajectory is located.
- the first preset distance is less than or equal to half the width of the smallest circumscribed rectangle of the handwriting trajectory in a direction perpendicular to the handwriting input direction, and the second preset distance is greater than The first preset distance.
- the character recognition sub-module 10312 is further used to:
- the terminal device 10 further includes:
- the character template monitoring unit is used to display the characters of the template to be set and the template input interface, and monitor the handwritten information input through the template input interface;
- the character template setting unit is used to generate a handwriting trajectory based on the handwriting information input through the template input interface after detecting the handwriting information input through the template input interface, and use the current handwriting trajectory as the character corresponding to the template to be set Character template.
- each functional unit and module is used as an example for illustration.
- the above-mentioned functions may be allocated by different functional units,
- the module is completed, that is, the internal structure of the terminal device is divided into different functional units or modules to complete all or part of the functions described above.
- the functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above integrated unit may use hardware It can also be implemented in the form of software functional units.
- the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
- For the specific working processes of the units and modules in the foregoing terminal device reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
- the terminal device 11 of this embodiment includes one or more processors 110, a memory 111, and a computer program 112 stored in the memory 111 and executable on the processor 110.
- the processor 110 executes the computer program 112
- the steps in the above method embodiments are implemented, for example, steps S101 to S103 shown in FIG. 1.
- the processor 110 executes the computer program 112
- the functions of each module / unit in the foregoing embodiment of the terminal device are realized, for example, the functions of the modules 101 to 103 shown in FIG.
- the computer program 112 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 111 and executed by the processor 110 to complete This application.
- the one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 112 in the terminal device 11.
- the computer program 112 may be divided into a handwriting information monitoring unit, a handwriting trajectory generating unit, and a character recognition unit. Exemplary:
- the handwriting information monitoring unit is used to monitor the handwriting input operation in the handwriting input interface of the calculator application after the calculator application in the terminal device is started;
- the handwriting trajectory generating unit is configured to generate a handwriting trajectory according to the handwriting information input by the handwriting input operation if a handwriting input operation in the handwriting input interface of the calculator application is detected;
- the character recognition unit is configured to recognize the handwriting trajectory to obtain a recognition result after detecting the end of the handwriting input operation, and the recognition result includes one or more characters, and the characters include: Arabic numerals and mathematics symbol.
- the terminal device includes but is not limited to the processor 110 and the memory 111.
- FIG. 11 is only an example of the terminal device 11 and does not constitute a limitation on the terminal device 11, and may include more or less components than the illustration, or a combination of certain components, or different Components, for example, the terminal device may further include an input device, an output device, a network access device, a bus, a touch screen, and so on.
- the processor 110 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the memory 111 may be an internal storage unit of the terminal device 11, such as a hard disk or a memory of the terminal device 11.
- the memory 111 may also be an external storage device of the terminal device 11, such as a plug-in hard disk equipped on the terminal device 11, a smart memory card (Smart, Media, Card, SMC), and a secure digital (SD) Cards, flash cards, etc. Further, the memory 111 may also include both an internal storage unit of the terminal device 11 and an external storage device.
- the memory 111 is used to store the computer program and other programs and data required by the terminal device.
- the memory 111 may also be used to temporarily store data that has been output or will be output.
- the disclosed terminal device and method may be implemented in other ways.
- the terminal device embodiments described above are only schematic.
- the division of the modules or units is only a division of logical functions.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above integrated unit may be implemented in the form of hardware or software functional unit.
- the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
- the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by a computer program instructing relevant hardware.
- the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments may be implemented.
- the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form.
- the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals and software distribution media, etc.
- ROM Read-Only Memory
- RAM Random Access Memory
- electrical carrier signals telecommunications signals and software distribution media, etc.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (20)
- 一种终端设备的数据输入方法,其特征在于,包括:在终端设备中的计算器应用启动后,监测所述计算器应用的手写输入界面中的手写输入操作;若监测到所述计算器应用的手写输入界面中的手写输入操作,则根据所述手写输入操作输入的手写信息生成手写轨迹;在检测到所述手写输入操作结束后,对所述手写轨迹进行识别获得识别结果,所述识别结果包括一个或多个字符,所述字符包括:阿拉伯数字和数学符号。
- 如权利要求1所述的终端设备的数据输入方法,其特征在于,在根据所述手写输入操作输入的手写信息生成手写轨迹之后,还包括:根据所述手写信息在所述手写输入界面中的位置,显示所述手写轨迹。
- 如权利要求1所述的终端设备的数据输入方法,其特征在于,所述在检测到所述手写输入操作结束后,对所述手写轨迹进行识别获得识别结果包括:若所述手写输入界面中的触摸操作消失后的预设时间之内,未监测到新的触摸操作,则确定手写输入操作结束,并对所述手写轨迹进行识别获得识别结果。
- 如权利要求1所述的终端设备的数据输入方法,其特征在于,所述终端设备的显示界面中还包括:虚拟按钮;相应的,所述在检测到所述手写输入操作结束后,对所述手写轨迹进行识别获得识别结果包括:若监测到点击所述虚拟按钮的操作,则确定手写输入操作结束,并对所述手写轨迹进行识别获得识别结果。
- 如权利要求1至4任一项所述的终端设备的数据输入方法,其特征在于,所述对所述手写轨迹进行识别获得识别结果包括:对所述手写轨迹进行识别,获得所述手写轨迹对应的一个或多个字符;若获得一个字符,则将获得的字符作为识别结果;若获得多个字符,则基于所述字符分别对应的手写轨迹的位置,对所述多个字符进行排序,并将排序后的多个字符作为识别结果。
- 如权利要求5所述的终端设备的数据输入方法,其特征在于,所述对所述手写轨迹进行识别,获得所述手写轨迹对应的一个或多个字符包括:获取手写输入方向,并基于所述手写输入方向,将所述手写轨迹所在的区域划分为一个或多个子区域;分别对每个子区域内的手写轨迹进行识别,获得每个子区域内的手写轨迹对应的字符;相应的,所述基于所述字符分别对应的手写轨迹的位置,对所述多个字符进行排序包括:基于所述字符分别对应的子区域的位置,对所述多个字符进行排序。
- 如权利要求6所述的终端设备的数据输入方法,其特征在于,所述获取手写输入方向包括:获取所述终端设备的手持方向,并根据所述终端设备的手持方向确定手写输入方向。
- 如权利要求6所述的终端设备的数据输入方向,其特征在于,当所述手写输入操作为多次间断的触摸操作时,所述获取手写输入方向包括:根据多次触摸操作的起点位置生成曲线,将所述曲线的基线的方向作为手写输入方向。
- 如权利要求6所述的终端设备的数据输入方法,其特征在于,所述基于所述手写输入方向,将所述手写轨迹所在的区域划分为一个或多个子区域包括:控制预设宽度的滑动窗口在所述手写轨迹所在的区域沿着所述手写输入方向进行滑动,获得满足第一预设条件时所述滑动窗口的位置;基于满足第一预设条件时所述滑动窗口的位置,确定满足第一预设条件时所述滑动窗口的中心线,并将所述中心线记为分界线,其中,所述中心线与所述手写输入方向垂直;基于所述分界线,将所述手写轨迹所在的区域划分为一个或多个子区域。
- 如权利要求9所述的终端设备的数据输入方法,其特征在于,所述控制预设宽度的滑动窗口在所述手写轨迹所在的区域沿着所述手写输入方向进行滑动,获得满足第一预设条件时所述滑动窗口的位置包括:控制预设宽度的滑动窗口在所述手写轨迹所在的区域沿着所述手写输入方向进行滑动,获得所述滑动窗口在所述手写输入方向上的每个位置处与所述手写轨迹相交的区域。将与所述手写轨迹相交的区域的面积小于预设面积的位置作为满足第一预设条件时所述滑动窗口的位置;或,将与所述手写轨迹相交的区域内的像素点的个数小于预设数量的位置作为满足第一预设条件时所述滑动窗口的位置。
- 如权利要求9所述的终端设备的数据输入方法,其特征在于,在基于所述分界线,将所述手写轨迹所在的区域划分为一个或多个子区域之前,还包括:确定任意两个相邻的分界线之间的距离;将小于第一预设距离的两个相邻的分界线合并,并将小于第一预设距离的两个相邻的分界线限定的区域的中心线作为合并后的分界线。
- 如权利要求11所述的终端设备的数据输入方法,其特征在于,在基于所述分界线,将所述手写轨迹所在的区域划分为一个或多个子区域之前,还包括:在大于第二预设距离的两个相邻的分界线之间,满足第二预设条件的位置生成新的分界线。
- 如权利要求12所述的终端设备的数据输入方法,其特征在于,所述在大于第二预设距离的两个相邻的分界线之间,满足第二预设条件的位置生成新的分界线包括:将大于第二预设距离的两个相邻的分界线限定的区域的中心线作为新生成的分界线。
- 如权利要求6至13任一项所述的终端设备的数据输入方向,其特征在于,所述手写轨迹所在的区域为所述手写轨迹的最小外接矩形所在的区域。
- 如权利要求14所述的终端设备的数据输入方法,其特征在于,所述第一预设距离小于或等于所述手写轨迹的最小外接矩形在与所述手写输入方向垂直的方向上的宽度的一半,所述第二预设距离大于所述第一预设距离。
- 如权利要求6至13任一项所述的终端设备的数据输入方法,其特征在于,所述分别对每个子区域内的手写轨迹进行识别,获得每个子区域内的手写轨迹对应的字符包括:将每个子区域内的手写轨迹分别与预设的多个字符模板进行匹配,获得每个子区域内的手写轨迹分别对应的字符。
- 如权利要求16所述的终端设备的数据输入方法,其特征在于,在将每个子区域内的手写轨迹分别与预设的多个字符模板进行匹配之前,还包括:显示待设置模板的字符和模板输入界面,并监测通过所述模板输入界面输入的手写信息;若监测到通过所述模板输入界面输入的手写信息后,则基于通过所述模板输入界面输入的手写信息生成手写轨迹,并将当前手写轨迹作为待设置模板的字符对应的字符模板。
- 一种终端设备,其特征在于,包括:手写信息监测单元,用于在终端设备中的计算器应用启动后,监测所述计算器应用的手写输入界面中的手写输入操作;手写轨迹生成单元,用于若监测到所述计算器应用的手写输入界面中的手写输入操作,则根据所述手写输入操作输入的手写信息生成手写轨迹;字符识别单元,用于在检测到所述手写输入操作结束后,对所述手写轨迹进行识别获得识别结果,所述识别结果包括一个或多个字符,所述字符包括:阿拉伯数字和数学符号。
- 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至17任一项所述方法的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现如权利要求1至17任一项所述方法 的步骤。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/114631 WO2020093329A1 (zh) | 2018-11-08 | 2018-11-08 | 一种终端设备的数据输入方法、终端设备及存储介质 |
CN201880097847.2A CN112740151A (zh) | 2018-11-08 | 2018-11-08 | 一种终端设备的数据输入方法、终端设备及存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/114631 WO2020093329A1 (zh) | 2018-11-08 | 2018-11-08 | 一种终端设备的数据输入方法、终端设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020093329A1 true WO2020093329A1 (zh) | 2020-05-14 |
Family
ID=70611196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/114631 WO2020093329A1 (zh) | 2018-11-08 | 2018-11-08 | 一种终端设备的数据输入方法、终端设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112740151A (zh) |
WO (1) | WO2020093329A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113255305A (zh) * | 2021-05-21 | 2021-08-13 | 武汉悦学帮网络技术有限公司 | 在线批示方法、装置、电子设备以及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101261554A (zh) * | 2008-04-21 | 2008-09-10 | 东莞市步步高教育电子产品有限公司 | 公式、表达式的手写输入及计算系统和方法 |
CN101676838A (zh) * | 2008-09-16 | 2010-03-24 | 夏普株式会社 | 输入装置 |
CN101833532A (zh) * | 2009-03-12 | 2010-09-15 | 卡西欧计算机株式会社 | 计算器以及计算机可读介质 |
CN102736830A (zh) * | 2011-04-13 | 2012-10-17 | 联想移动通信科技有限公司 | 一种手写输入法和终端设备 |
US20140334732A1 (en) * | 2013-05-07 | 2014-11-13 | Samsung Electronics Co., Ltd. | Portable terminal device using touch pen and handwriting input method thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2801593B2 (ja) * | 1986-12-27 | 1998-09-21 | 株式会社東芝 | 手書き入力式計算機 |
EP2713251A4 (en) * | 2011-07-04 | 2014-08-06 | Huawei Device Co Ltd | METHOD AND ELECTRONIC DEVICE FOR VIRTUAL HANDWRITTEN ENTRY |
CN104268118A (zh) * | 2014-09-23 | 2015-01-07 | 赵方 | 一种包括触摸屏的数学式计算器及数学公式识别的方法 |
CN108734161B (zh) * | 2017-04-13 | 2022-01-25 | 深圳怡化电脑股份有限公司 | 冠字号区域的识别方法、装置、设备及存储介质 |
-
2018
- 2018-11-08 CN CN201880097847.2A patent/CN112740151A/zh active Pending
- 2018-11-08 WO PCT/CN2018/114631 patent/WO2020093329A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101261554A (zh) * | 2008-04-21 | 2008-09-10 | 东莞市步步高教育电子产品有限公司 | 公式、表达式的手写输入及计算系统和方法 |
CN101676838A (zh) * | 2008-09-16 | 2010-03-24 | 夏普株式会社 | 输入装置 |
CN101833532A (zh) * | 2009-03-12 | 2010-09-15 | 卡西欧计算机株式会社 | 计算器以及计算机可读介质 |
CN102736830A (zh) * | 2011-04-13 | 2012-10-17 | 联想移动通信科技有限公司 | 一种手写输入法和终端设备 |
US20140334732A1 (en) * | 2013-05-07 | 2014-11-13 | Samsung Electronics Co., Ltd. | Portable terminal device using touch pen and handwriting input method thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113255305A (zh) * | 2021-05-21 | 2021-08-13 | 武汉悦学帮网络技术有限公司 | 在线批示方法、装置、电子设备以及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN112740151A (zh) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8589458B2 (en) | Electronic calculator with touch screen | |
US11402991B2 (en) | System and method for note taking with gestures | |
US20140189482A1 (en) | Method for manipulating tables on an interactive input system and interactive input system executing the method | |
US9329775B2 (en) | Figure drawing apparatus, figure drawing method and recording medium on which figure drawing programs are recorded | |
JP6807840B2 (ja) | 幾何学的形状を認識するためのシステムおよび方法 | |
CN105589637A (zh) | 基于手势的缩放方法及装置 | |
WO2014147716A1 (ja) | 電子機器および手書き文書処理方法 | |
US9025878B2 (en) | Electronic apparatus and handwritten document processing method | |
CN112667105A (zh) | 触摸屏控制方法、装置、设备和存储介质 | |
CN108965575B (zh) | 一种手势动作识别方法、装置和终端设备 | |
CN105278751A (zh) | 一种实现人机交互的方法、装置及保护壳 | |
WO2020093329A1 (zh) | 一种终端设备的数据输入方法、终端设备及存储介质 | |
WO2020118491A1 (zh) | 基于指纹识别的交互方法、电子设备及相关装置 | |
TWI505173B (zh) | 提高手持裝置觸碰鍵盤辨識率的系統和方法 | |
US20140147047A1 (en) | Electronic device and method for processing handwritten document | |
CN115589786A (zh) | 手绘图形识别方法、装置和系统,以及计算机可读存储介质 | |
CN112835497A (zh) | 一种快速进入电子白板的方法、装置及存储介质 | |
CN113515228A (zh) | 一种虚拟标尺显示方法以及相关设备 | |
CN103914174A (zh) | 信息处理装置、信息处理方法、以及程序存储介质 | |
CN107679219B (zh) | 匹配方法及装置、交互智能平板及存储介质 | |
US20230343125A1 (en) | Handwriting Recognition Method and Apparatus, Handwriting Recognition System and Interactive Display | |
US20180188878A1 (en) | Use of groove analysis in a touch screen device to determine occurrence of an elongated touch by a single finger | |
JP2013077180A (ja) | 認識装置およびその制御方法 | |
CN114356203A (zh) | 防误触方法、终端设备及存储介质 | |
JP2017534121A (ja) | 手書き内容区分方法およびその機器、並びに手書き内容編集機器 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18939553 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18939553 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.09.2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18939553 Country of ref document: EP Kind code of ref document: A1 |