Global handwriting input method and device and storage medium

By detecting the focus state of input controls and global handwriting input triggering instructions on the terminal, creating a recognition window and inputting content, it solves the problem that the terminal device does not support global handwriting, realizes the global handwriting input function without a stylus, and improves the user experience. and device diversity support.

CN118535072APending Publication Date: 2024-08-23BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310186669.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, terminal devices do not support the global handwriting function or are not equipped with a stylus, which limits the application scope and convenience of global handwriting input.

Method used

By detecting the focus state of the input control and the global handwriting input triggering command on the terminal, a window for identifying the global handwriting input content is created, and the recognized content is input into the input control, thereby realizing the global handwriting input function without a stylus.

Benefits of technology

It supports the global handwriting input function on multiple types of terminals, provides a convenient global handwriting input experience without relying on stylus hardware, and improves the flexibility and convenience of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535072A
    Figure CN118535072A
Patent Text Reader

Abstract

The invention relates to a global handwriting input method and device and a storage medium. The global handwriting input method is applied to a terminal and comprises the steps that in response to an input control displayed on the terminal, the focus state of the input control is recorded, and a global handwriting input triggering instruction is detected; creating a window for identifying global handwriting input content based on the trigger instruction and the focus state; and identifying global handwriting input content based on the window, and inputting the identified global handwriting input content into the input control. According to the method and the device, a global handwriting input function not depending on hardware such as a handwriting pen can be realized, more devices can support the global handwriting function, and convenience is provided for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to a global handwriting input method, device and storage medium. Background Art

[0002] In the related art, terminals such as tablet computers support global handwriting input. Among them, global handwriting input can be understood as a method of supporting handwriting in an input hot zone set on the terminal without calling the screen keyboard. For example, in the related art, the terminal is equipped with a stylus to realize the global handwriting input function. Use the stylus to handwrite and input text in the edit box displayed on the terminal, or use gestures to complete operations such as insertion and deletion.

[0003] Currently, the global handwriting input function requires a terminal that supports the global handwriting function to be equipped with hardware such as a stylus to complete the global handwriting input. Therefore, there are requirements for the terminal type and the matching hardware. However, some terminals currently in use do not support the global handwriting function and / or are not equipped with a stylus, so the current implementation of the global handwriting function is limited. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a global handwriting input method, device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a global handwriting input method is provided, which is applied to a terminal, and the global handwriting input method includes: in response to an input control displayed on the terminal, recording the focus state of the input control, and detecting a global handwriting input trigger instruction; based on the trigger instruction and the focus state, creating a window for identifying global handwriting input content; based on the window, identifying the global handwriting input content, and inputting the identified global handwriting input content into the input control.

[0006] In one embodiment, recording the focus state of the input control includes: obtaining the focus state of the input control based on a global handwriting input management process pre-created by the terminal application layer, and controlling the global handwriting input management process to send the focus state to a global handwriting input service process pre-created by the terminal system layer; and controlling the global handwriting input service process to record the received focus state.

[0007] In one embodiment, based on the trigger instruction and the focus state, it includes: creating a window for global handwriting input; if it is determined that the global handwriting application of the terminal application layer detects the trigger instruction, controlling the global handwriting application to obtain the focus state from the global handwriting input service process; based on the focus state, creating a window for global handwriting input.

[0008] In one implementation, controlling the global handwriting application to obtain the focus state from the global handwriting input service process includes:

[0009] Control the global handwriting application to send a first request message to the global handwriting input management process for requesting to obtain the focus state; in response to determining that the global handwriting input management process has received the first request message, control the global handwriting input management process to send a second request message to the global handwriting input service process for requesting to obtain the focus state; in response to determining that the global handwriting input service process has received the second request message, control the global handwriting input service process to send the focus state to the global handwriting input management process, and the global handwriting input management process sends the focus state to the global handwriting application.

[0010] In one embodiment, based on the focus state, creating a window for global handwriting input includes: if it is determined that the focus state indicates that the input control has focus, creating a window for global handwriting input; wherein the input control having focus indicates that the input control is in a state where content is waiting to be input.

[0011] In one embodiment, the global handwriting input method further includes: if it is determined that the focus state represents that the input control does not have focus, displaying prompt information, wherein the prompt information is used to prompt that the input control is not in a state where content is to be input.

[0012] In one embodiment, a floating ball for triggering global handwriting input is installed in the terminal, including: detecting a global handwriting input trigger instruction, including detecting an operation performed on the floating ball for triggering global handwriting input; in response to detecting that the floating ball is triggered to perform the global handwriting input operation, determining that a global handwriting input trigger instruction is detected.

[0013] In one implementation, recognizing global handwriting input content based on the window includes: controlling the window to recognize global handwriting input content during the process of continuously detecting that the floating ball is triggered to perform global handwriting input.

[0014] In one embodiment, the global handwriting input method also includes: in response to detecting that the floating ball stops being triggered to perform a global handwriting input operation, determining whether there is recognized global handwriting content in the window; if there is recognized global handwriting content in the window, inputting the global handwriting content in the window into the input control; if there is no recognized global handwriting content in the window, removing the window.

[0015] According to a second aspect of an embodiment of the present disclosure, a global handwriting input device is provided, the device comprising: a detection unit, configured to, in response to an input control displayed on a terminal, record a focus state of the input control, and detect a global handwriting input trigger instruction; a processing unit, configured to create a window for identifying global handwriting input content based on the trigger instruction and the focus state; and an output unit, configured to identify global handwriting input content based on the window, and input the identified global handwriting input content into the input control.

[0016] In one embodiment, the detection unit records the focus state of the input control in the following manner: obtaining the focus state of the input control based on the global handwriting input management process pre-created by the terminal application layer, and controlling the global handwriting input management process to send the focus state to the global handwriting input service process pre-created by the terminal system layer; controlling the global handwriting input service process to record the received focus state.

[0017] In one embodiment, the processing unit creates a window for global handwriting input based on the trigger instruction and the focus state in the following manner: if it is determined that the global handwriting application of the terminal application layer detects the trigger instruction, the global handwriting application is controlled to obtain the focus state from the global handwriting input service process; based on the focus state, a window for global handwriting input is created.

[0018] In one embodiment, the processing unit controls the global handwriting application to obtain the focus state from the global handwriting input service process in the following manner: controls the global handwriting application to send a first request message to the global handwriting input management process for requesting to obtain the focus state; in response to determining that the global handwriting input management process has received the first request message, controls the global handwriting input management process to send a second request message to the global handwriting input service process for requesting to obtain the focus state; in response to determining that the global handwriting input service process has received the second request message, controls the global handwriting input service process to send the focus state to the global handwriting input management process, and the global handwriting input management process sends the focus state to the global handwriting application.

[0019] In one embodiment, the processing unit creates a window for global handwriting input based on the focus state in the following manner: if it is determined that the focus state indicates that the input control has focus, then a window for global handwriting input is created; wherein the presence of focus in the input control indicates that the input control is in a state where content is waiting to be input.

[0020] In one embodiment, the device further includes: a prompt unit configured to display prompt information when the processing unit determines that the focus state represents that the input control does not have focus, wherein the prompt information is used to prompt that the input control is not in a state where content is to be input.

[0021] In one embodiment, the terminal is equipped with a floating ball for triggering global handwriting input; the detection unit detects the global handwriting input trigger instruction in the following manner: detecting the operation performed on the floating ball for triggering the global handwriting input; in response to detecting that the floating ball is triggered to perform the global handwriting input operation, determining that the global handwriting input trigger instruction is detected.

[0022] In one implementation, the output unit recognizes the global handwriting input content based on the window in the following manner: during the process of continuously detecting that the floating ball is triggered to perform the global handwriting input operation, the window is controlled to recognize the global handwriting input content.

[0023] In one embodiment, the detection unit is also used to determine whether there is any recognized global handwriting content in the window in response to detecting that the floating ball stops being triggered to perform a global handwriting input operation; the processing unit is also used to input the global handwriting content in the window into the input control if the detection unit determines that there is recognized global handwriting content in the window; if there is no recognized global handwriting content in the window, remove the window.

[0024] According to a third aspect of an embodiment of the present disclosure, a global handwriting input device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the method involved in the first aspect or any one of the implementations of the first aspect.

[0025] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method involved in the first aspect or any one of the implementations of the first aspect.

[0026] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: based on the global handwriting input trigger instruction and the focus state of the input control, a window for identifying the global handwriting input content is created, thereby triggering the creation of a global handwriting input content window based on the terminal's own software level. Based on the window, the global handwriting input content is identified, and the identified global handwriting input content is input into the input control, thereby realizing a global handwriting input function that does not rely on hardware such as a stylus pen, providing convenience for users to perform global handwriting input. Moreover, in the present disclosure, the global handwriting function is realized based on the software level, and the terminal does not need to have the function of supporting the stylus pen, so it can realize that multiple types of terminals support the global handwriting function.

[0027] 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 present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0029] Figure 1 The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0030] Figure 2 The present invention is a flow chart of a method for recording a focus state of an input control according to an exemplary embodiment.

[0031] Figure 3 A schematic diagram of a process for obtaining the focus state of EditText is shown.

[0032] Figure 4 The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0033] Figure 5 The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0034] Figure 6 The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0035] Figure 7 The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0036] Figure 8 A schematic diagram of a process of creating a global handwriting window based on a focus state is shown.

[0037] Fig. 9The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0038] Fig.10 A schematic diagram of a process of requesting the input method service manager module to switch input methods is shown.

[0039] Fig.11 The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0040] Fig.12 The figure is a flowchart of a global handwriting input method according to an exemplary embodiment.

[0041] Fig.13 A schematic diagram of the process of a global handwriting input method filling text into a text editing box through an input connection is shown.

[0042] Figures 14A-14G is an exemplary diagram showing a global handwriting input method according to an exemplary embodiment.

[0043] Fig.15 It is a system structure diagram of a global handwriting input method according to an exemplary embodiment.

[0044] Fig.16 The present invention is a request flow chart showing a global handwriting input method applied to a terminal according to an exemplary embodiment.

[0045] Fig.17 The figure is a block diagram of a global handwriting input device according to an exemplary embodiment.

[0046] Fig.18 It is a block diagram of a device for global handwriting input according to an exemplary embodiment. DETAILED DESCRIPTION

[0047] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0048] The global handwriting input method provided by the present disclosure is applied to a terminal, and is used in a scenario where global handwriting input is performed on the terminal. At present, global handwriting on the terminal needs to rely on hot zones and cannot be operated with fingers. This is because global handwriting has requirements on the pen placement position, and a stylus needs to be used to write text, which cannot be completed by finger operation, and the handwriting position is preferably within or near the input hot zone. If it is far away from the input hot zone, the operation may be mistakenly recognized as an operation action, that is, the relevant technology cannot achieve full-screen handwriting.

[0049] Furthermore, the current relevant technical solutions are all related to hardware, that is, a stylus must be equipped for the global handwriting function to be used normally, and it cannot be implemented through software solutions. On general devices, such as terminals, text input on the terminal is a necessary operation, and users use the screen keyboard to input text. On tablet computers, many terminals are equipped with a stylus and a global handwriting function. Users can use the stylus to handwrite text on the edit box and input text, or use pen gestures to insert, delete, and other operations. This input solution needs to rely on a stylus, but most devices do not support a stylus, so the global handwriting function cannot be used on terminal devices. Therefore, a global handwriting solution that does not rely on hardware is needed.

[0050] In view of this, the present disclosure provides a global handwriting input method, in which, when the terminal determines to perform global handwriting input, based on the trigger instruction for triggering the global handwriting input and the focus state of the input control for inputting the global handwriting input content, a window for identifying the global handwriting input content is created. When the user inputs the global handwriting content, the content is recognized based on the window, and the recognized global handwriting input content is input into the input control. Furthermore, a global handwriting input function that does not rely on hardware such as a stylus pen is implemented, providing convenience for users to perform global handwriting input. Moreover, in the present disclosure, the global handwriting function is implemented based on the software level, and the terminal does not need to have the function of supporting the stylus pen, so it can be implemented that multiple types of terminals support the global handwriting function.

[0051] In the present disclosure, the terminal may include a device that supports handwritten content input, such as a smart phone, a tablet computer, etc.

[0052] In the embodiment of the present disclosure, the global handwriting input content may be text content or picture content. The input control is an input control corresponding to the global handwriting input content to be input. For example, the input control may be a text edit box (EditText) for text input or an input control for inputting picture content.

[0053] Figure 1 is a flowchart of a global handwriting input method according to an exemplary embodiment. Figure 1 As shown, the global handwriting input method is applied to the terminal, including the following steps.

[0054] In step S11, in response to an input control being displayed on the terminal, the focus state of the input control is recorded, and a global handwriting input trigger instruction is detected.

[0055] In the embodiments of the present disclosure, the focus state of the input control is used to indicate whether the input control has focus. If the input control has focus, it means that the input control is in a state where content is waiting to be input. If the input control does not have focus, it means that the input control is not in a state where content is waiting to be input.

[0056] Among them, whether the input control has focus can be represented by whether the cursor flashes. For example, if the cursor flashes in the input control, it indicates that the input control has focus and the input control is in a state of waiting for content input. If there is content input to the input control, such as text, the content can be input to the input control.

[0057] The fact that the cursor does not flash in the input control indicates that the input control does not have focus and is not in a state where content is to be input. The input control does not support content input.

[0058] In the embodiments of the present disclosure, the global handwriting input trigger instruction can be understood as an instruction for triggering global handwriting input. The instruction can be an instruction based on interaction with the user, such as a pressing operation. The instruction can also be an instruction triggered by the terminal itself. For example, it can be an instruction issued by a software process of the terminal.

[0059] In step S12, a window for identifying global handwriting input content is created based on the trigger instruction and the focus state.

[0060] In the embodiment of the present disclosure, the window used to identify the global handwriting input content is a window covering the entire screen of the terminal. The window may be a global transparent window.

[0061] The window for identifying global handwriting input content has event processing logic such as identifying global handwriting input content.

[0062] In step S13, the global handwriting input content is recognized based on the window, and the recognized global handwriting input content is input into the input control.

[0063] In the present disclosure, by responding to the display of an input control on the terminal, recording the focus state of the input control, and detecting a global handwriting input trigger instruction, a window for identifying global handwriting input content is created based on the trigger instruction and the focus state, the global handwriting input content is identified based on the window, and the identified global handwriting input content is input into the input control, so that a global handwriting input function that does not rely on hardware such as a stylus pen can be realized, providing convenience for users to perform global handwriting input. In addition, the present disclosure realizes the global handwriting function based on the software level, and the terminal does not need to have the function of supporting the stylus pen, so it can realize that multiple types of terminals support the global handwriting function.

[0064] The global handwriting input method provided in the embodiments of the present disclosure can be understood as a method for realizing a global handwriting function based on the software level. Among them, in order to support the realization of the global handwriting input function at the software level, the protocol layer framework architecture of the terminal involved in the present disclosure includes an application layer (Application, APP) and a system service layer (SystemServer). A global handwriting input management process (HandWritingManager) is pre-created in the application layer for managing the global handwriting input function at the application layer. A global handwriting input service process (HandWritingService) is pre-created in the system service layer for managing the global handwriting input function at the system layer. Among them, HandWritingManager and HandWritingService can interact.

[0065] In the disclosed embodiment, HandWritingManager can be used to obtain the focus state of the input control included in the application layer, and send the focus state to HandWritingService. HandWritingService records the focus state of the input control.

[0066] The following is an explanation of the implementation process of the method for recording the focus state of an input control in the embodiment of the present disclosure.

[0067] In the global handwriting input method provided by the embodiment of the present disclosure, the execution process of recording the focus state of the input control may include: obtaining the focus state of the input control based on the HandWritingManager pre-created by the terminal application layer, and controlling the HandWritingManager to send the focus state to the HandWritingService pre-created by the terminal system layer, and controlling the HandWritingService to record the received focus state.

[0068] Figure 2 is a flow chart of a method for recording the focus state of an input control according to an exemplary embodiment. Figure 2 As shown, the method for recording the focus state of an input control includes the following steps.

[0069] In step S21, the HandWritingManager pre-created by the terminal application layer obtains the focus state of the input control.

[0070] In the embodiment of the present disclosure, the code of the input control can be modified to enable the HandWritingManager to obtain the focus state and send the focus state to the HandWritingSevice.

[0071] In step S22, the HandWritingManager sends the focus status to the HandWritingService pre-created by the terminal system layer.

[0072] In step S23, HandWritingService records the received focus state.

[0073] In the present disclosure, if the global handwriting service process receives a focus state, it records the received focus state so that the subsequent global handwriting application can determine whether to create a global handwriting input window based on the focus state.

[0074] In the present disclosure, the focus state of the input control is obtained through the HandWritingManager pre-created by the terminal application layer, and the HandWritingManager sends the focus state to the HandWritingService pre-created by the terminal system layer. The HandWritingService records the received focus state and can obtain the focus state information in advance. There is no need to subsequently detect the focus state according to the hot spot area, thereby improving the efficiency of global handwriting input.

[0075] In an example, the input control EditText is used as an example for explanation. By modifying EditText, its focus state can be obtained and notified to the HandWritingSevice located in the system_server through the HandWritingManager located in the APP process, and the focus state of the current input box is recorded in the HandWritingService. Figure 3 A schematic diagram of the process of obtaining the focus state of EditText is shown. Figure 3 As shown, the focus state of EditText is sent to HandWritingManager in the form of notification state. HandWritingManager notifies the acquired focus state to HandWritingSevice in system_server in the form of notification state.

[0076] In the present disclosure, the application layer of the terminal is installed with a global handwriting application, which can be used to detect a trigger instruction for triggering global handwriting input. In some embodiments, the global handwriting application can be a full-screen draggable and edge-attached floating ball, and the detected trigger instruction can be an instruction to press the floating ball. The above is only an example, and the present disclosure is not limited thereto.

[0077] In the embodiment of the present disclosure, the trigger instruction for detecting and triggering the global handwriting input may also be a fixed display position area on the terminal screen. For example, it may be the lower left corner area of ​​the terminal screen. The user presses the fixed display position to trigger the global handwriting input instruction.

[0078] In order to realize the global handwriting function, it is necessary to create a window for handwriting in the terminal through the interaction of modules. After the global handwriting application detects the trigger instruction, the global handwriting application, the window management module, and the window management service module will interactively execute the process of window creation. In one implementation of the disclosed embodiment, a window for global handwriting input is created based on the trigger instruction detected by the global handwriting application of the application layer and the focus state recorded by the HandWritingService.

[0079] The following is an explanation of the implementation process of the method for creating a window based on the focus state in the embodiment of the present disclosure.

[0080] In the global handwriting input method provided by the embodiment of the present disclosure, based on the trigger instruction and the focus state, the execution process of creating a window for global handwriting input may include: if it is determined that the global handwriting application of the terminal application layer detects the trigger instruction, controlling the global handwriting application to obtain the focus state from the HandWritingService, and based on the focus state, creating a window for global handwriting input.

[0081] Figure 4 is a flowchart of a global handwriting input method according to an exemplary embodiment. Figure 4 As shown, the global handwriting input method is applied to the terminal, including the following steps.

[0082] In step S41, it is determined that the global handwriting application program of the terminal application layer detects a trigger instruction.

[0083] In some implementations, the global handwriting application may be a full-screen draggable and edge-attached floating ball, and the detected trigger instruction may be an instruction to press the floating ball. The above are only examples, and the present disclosure is not limited thereto.

[0084] In the present disclosure, after receiving the trigger instruction, the global handwriting application has two logical branch processes executed: Figure 4 One of the branch processes is to add a full-screen handwriting window. Figure 8 It is another branch process, which is used to switch the input method to the handwriting input method.

[0085] In step S42, the global handwriting application is controlled to obtain the focus state from the HandWritingService.

[0086] In the present disclosure, the process of obtaining the focus state by the HandWritingService involves an interactive process in which the HandWritingManager requests the HandWritingService to obtain the focus state, and the HandWritingService sends the focus state to the HandWritingManager.

[0087] In step S43, a window for global handwriting input is created based on the focus state.

[0088] In the present disclosure, the created global handwriting input window is a full-screen handwriting window.

[0089] In the disclosed embodiment, when the global handwriting program at the terminal application layer detects a trigger instruction, the global handwriting program obtains the focus state from the HandWritingService, and based on the focus state, creates a window for global handwriting input, thereby achieving the trigger condition of the global handwriting function using the trigger instruction, thereby improving the efficiency of global handwriting and facilitating users to perform global handwriting.

[0090] In the global handwriting input method provided by the embodiment of the present disclosure, the execution process of controlling the global handwriting application to obtain the focus state from the HandWritingService may include: controlling the global handwriting application to send a first request message to the HandWritingManager for requesting to obtain the focus state. In response to determining that the HandWritingManager has received the first request message, controlling the HandWritingManager to send a second request message to the HandWritingService for requesting to obtain the focus state. In response to determining that the HandWritingService has received the second request message, controlling the HandWritingService to send the focus state to the HandWritingManager, and the HandWritingManager sends the focus state to the global handwriting application.

[0091] Figure 5 is a flowchart of a global handwriting input method according to an exemplary embodiment. Figure 5 As shown, the global handwriting input method is applied to the terminal, wherein, Figure 5 A schematic diagram of a process of controlling a global handwriting application to obtain a focus state from the HandWritingService is shown, including the following steps.

[0092] In step S51, the global handwriting application sends a first request message for requesting to obtain the focus state to the HandWritingManager.

[0093] In the present disclosure, the first request message is a message for requesting to query the focus state, which is sent to the HandWritingManager when the global handwriting application detects a trigger instruction.

[0094] In step S52, HandWritingManager sends a second request message for requesting to obtain the focus state to HandWritingService.

[0095] In the present disclosure, the second request message is a message sent by HandWritingManager to HandWritingService for requesting to query the focus state.

[0096] Among them, HandWritingService processes the request and queries the focus state stored in HandWritingService

[0097] In step S53, HandWritingService sends the focus state to HandWritingManager, and HandWritingManager sends the focus state to the global handwriting application.

[0098] In the present disclosure, when HandWritingService queries the focus state, HandWritingService sends the focus state to HandWritingManager, and HandWritingManager sends the focus state to the global handwriting application.

[0099] In the present disclosure, a trigger instruction is detected by a global handwriting application at the terminal application layer, and the global handwriting application obtains the focus state from the HandWritingService. A window for global handwriting input is created based on the focus state. A window for global handwriting input can be created within the full screen. Handwriting within the full screen increases the user's handwriting experience, and the trigger-based control method can make global handwriting input more flexible.

[0100] In the present disclosure, the system service layer includes: HandWritingManager, input method manager service module, and window management service module. When the global handwriting application detects a trigger instruction, it will not only create a full-screen handwriting window, but also switch the input method to the handwriting input method. After the text recognition and text judgment mechanism of the global handwriting input method, the text can be smoothly filled into the edit box. The execution of the global handwriting operation requires the cooperation of the above modules to be realized.

[0101] In the global handwriting input method provided by the embodiment of the present disclosure, the execution process of creating a window for global handwriting input based on the focus state may include: if it is determined that the focus state indicates that the input control has focus, creating a window for global handwriting input.

[0102] Figure 6 is a flowchart of a global handwriting input method according to an exemplary embodiment. Figure 6 As shown, the global handwriting input method is applied to the terminal, including the following steps.

[0103] In step S61, it is determined that the focus state represents that the input control has focus.

[0104] In step S62, a window for global handwriting input is created.

[0105] In the global handwriting input method provided by the embodiment of the present disclosure, the execution process of creating a window for global handwriting input based on the focus state may include: if it is determined that the focus state indicates that the input control has no focus, then displaying prompt information, the prompt information is used to prompt that the input control is not in a state where content is to be input.

[0106] Figure 7 is a flowchart of a global handwriting input method according to an exemplary embodiment. Figure 7 As shown, the global handwriting input method is applied to the terminal, including the following steps.

[0107] In step S71, it is determined that the focus state represents that the input control has no focus.

[0108] In step S71, a prompt message is displayed, where the prompt message is used to prompt that the input control is not in a state where content is to be input.

[0109] In an example, the floating ball is used as the global handwriting application, and the trigger command is the pressing command. When the floating ball is pressed, the global handwriting application initiates a request to the HandWritingManager to query the focus state. The HandWritingManager requests the HandWritingService to query the focus state. When the focus state exists, it meets the conditions for global handwriting, and a full-screen transparent window is added. If it does not exist, the user is prompted that the global handwriting function cannot be triggered at this time. Figure 8 FIG. 2 shows a schematic diagram of a process for creating a global handwriting window based on the focus state. Figure 8As shown, after pressing the floating ball, the global handwriting application initiates a request to the HandWritingManager to obtain the focus state, the HandWritingManager requests the HandWritingService to query the focus state, the focus state of the HandWritingService is sent to the HandWritingManager in the form of a notification state, the HandWritingManager notifies the global handwriting application of the acquired focus state in the form of a notification state, and finally the global handwriting application sends an instruction to request to add a window to the window management module, and the window management module completes the creation of the window.

[0110] In the global handwriting input method provided by the embodiment of the present disclosure, a floating ball for triggering global handwriting input is installed in the terminal, and the execution process of detecting the global handwriting input trigger instruction may include: detecting the operation performed on the floating ball for triggering the global handwriting input; in response to detecting that the floating ball is triggered to perform the global handwriting input operation, determining that the global handwriting input trigger instruction is detected.

[0111] The following is an explanation of the implementation process of the handwriting input method in the embodiment of the present disclosure.

[0112] Fig. 9 is a flowchart of a global handwriting input method according to an exemplary embodiment. Fig. 9 As shown, the global handwriting input method is applied to the terminal, including the following steps.

[0113] In step S91, an operation performed on the floating ball to trigger global handwriting input is detected.

[0114] In step S92, in response to detecting that the floating ball is triggered to perform a global handwriting input operation, it is determined that a global handwriting input trigger instruction is detected.

[0115] In the present disclosure, by using the detection of a trigger instruction as a signal to start global handwriting, the operation of global handwriting can be effectively separated. If a trigger instruction is detected, it is turned on, and if it is not detected, it is not turned on, thereby improving the user experience.

[0116] In one example, the global handwriting application is a floating ball, and the trigger instruction is the instruction of pressing the floating ball. When the floating ball is pressed, in order to enable the global handwriting input method to fill the recognized text into the edit box later, we also need to request the input method service manager module to switch the input method. Fig.10A schematic diagram of the process of requesting the input method service manager module to switch input methods is shown. Because the recognized text is global handwriting input, and the original text is input by the system default typing input method, the handwritten text cannot be filled into the edit box if the types are different, so it is necessary to request to switch input methods through the input method manager service (InputMethodManagerService) module. The specific process is that when the global handwriting application detects a trigger instruction, the global handwriting application notifies the HandWritingManager located in the global handwriting application layer to start global handwriting (it should be understood that the present disclosure has two HandWritingManagers, one located in the foreground application layer and the other located in the global handwriting application layer, and the two implement different functions), the HandWritingManager notifies the HandWritingService located in the system service layer to start global handwriting, the HandWritingService processes the notification and requests the input method manager service module to change the input method, and finally the input method manager service module switches the input method.

[0117] In the present disclosure, after detecting that the floating ball is triggered to perform a global handwriting input operation, the floating ball can be triggered all the time or can be untriggered, and triggering in different states will result in different global handwriting functions.

[0118] The following is an explanation of the implementation process of the handwriting detection after the floating ball is triggered to perform a global handwriting input operation in the disclosed embodiment.

[0119] In the global handwriting input method provided by the embodiment of the present disclosure, the execution process of recognizing the global handwriting input content based on the window may include: controlling the window to recognize the global handwriting input content during the operation process of continuously detecting that the floating ball is triggered to perform the global handwriting input.

[0120] Fig.11 is a flowchart of a global handwriting input method according to an exemplary embodiment. Fig.11 As shown, the global handwriting input method is applied to the terminal, including the following steps.

[0121] In step S111, it is detected that the floating ball is triggered to perform a global handwriting input operation.

[0122] In step S112, the control window recognizes the global handwriting input content.

[0123] In the global handwriting input method provided by the embodiment of the present disclosure, the execution process of the global handwriting input method may include: in response to detecting that the floating ball stops being triggered to perform a global handwriting input operation, determining whether there is recognized global handwriting content in the window; if there is recognized global handwriting content in the window, inputting the global handwriting content in the window into the input control; if there is no recognized global handwriting content in the window, removing the window.

[0124] Fig.12 is a flowchart of a global handwriting input method according to an exemplary embodiment. Fig.12 As shown, the global handwriting input method is applied to the terminal, which is a schematic diagram of the global handwriting method after detecting that the floating ball is triggered, including the following steps.

[0125] In step S121, it is detected that the floating ball is triggered to perform a global handwriting input operation.

[0126] In the present disclosure, the handwriting operation performed on the full-screen handwriting window can be a single Chinese character or a complete sentence composed of multiple Chinese characters.

[0127] In step S122, it is determined whether there is any recognized global handwritten content in the window.

[0128] In some implementations, when the floating ball cancels the trigger instruction, the user is in a state where handwriting is not allowed, and the global handwriting application determines whether the global handwriting content is recognized in the window through text recognition technology.

[0129] In step S123, the global handwritten content in the window is input into the input control.

[0130] In some embodiments, the global handwriting application recognizes the global handwriting content, and the input detected in the global handwriting window is a computer pattern rather than text. The pattern needs to be converted into computer text through a recognition service (RecognizeService) module, and the recognition service module is, for example, optical character recognition (OCR) text recognition technology. Optical character recognition technology refers to the process in which an electronic device (such as a scanner or a digital camera) checks the characters printed on paper and then uses a character recognition method to translate the shape into computer text; that is, the process of scanning text materials and then analyzing and processing the image file to obtain text and layout information.

[0131] In some implementations, the recognized text is sent to the global handwriting input method, and the global handwriting input method fills the text into the edit box of the foreground application layer through an input connection (InputConnection) module.

[0132] In step S124, the window is removed.

[0133] In some implementations, if the global handwriting application fails to recognize the global handwriting content, the global handwriting application removes the full-screen global handwriting window.

[0134] In the present disclosure, through the judgment mechanism when performing handwriting operations in the full-screen handwriting window, the user's handwritten text can be completely and accurately recognized, thereby improving the user experience.

[0135] In an example, the floating ball is used as a global handwriting application, and the trigger command is a press command. When the user completes the handwriting operation, in order to allow the global handwriting input method to fill the recognized text into the edit box later, we also need to fill the text into the text edit box through the input connection (InputConnection). Fig.13 The figure shows a schematic diagram of the process of filling text into a text edit box through an input connection of a global handwriting input method. Fig.13 As shown, after the text recognition is completed by the text recognition technology, the global handwriting input method passes the recognized text to the input connection module, and finally the input connection module fills the text into the text editing box.

[0136] In the embodiments of the present disclosure, the terminal to which the global handwriting input method is applied may include a device such as a smart phone, a tablet computer, etc. that supports handwriting content input.

[0137] The following is an explanation of the implementation process of the global handwriting input method on a terminal in the embodiment of the present disclosure.

[0138] Figures 14A-14G is an example diagram showing a global handwriting input method according to an exemplary embodiment. Figures 14A-14G As shown, this example global handwriting input method is applied to a terminal and includes the following steps.

[0139] Fig.14A The floating ball in the middle represents the global handwriting application, and the edit box represents the input control.

[0140] Figures 14B-14GIt represents the process of global handwriting by the user on the terminal. Among them, the user pressing and holding the floating ball is equivalent to giving a trigger command. After giving the trigger command, full-screen handwriting can be performed. The trigger command must be given during the full-screen handwriting process. If the user has no handwriting operation within 500ms, the text will be filled into the input box after being recognized by the optical floating recognition technology. The user continues to hold down the floating ball to continue handwriting. If the user lifts the finger that is holding the floating window, it will also trigger the optical floating recognition technology to recognize the handwriting, and the text will be filled into the edit box after recognition. At this time, since the finger holding the floating ball has been lifted, handwriting cannot continue. It should be noted that Figures 14A-14G The example of inputting "hello" is used for explanation, but the actual implementation is not limited to the specific input text.

[0141] In this disclosure, Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 , Fig. 9 , Fig.10 , Fig.11 , Fig.12 , Fig.13 They represent some functions implemented by some modules respectively. Next, some modules will be combined to explain the overall process.

[0142] Fig.15 is a schematic diagram showing an implementation process of a global handwriting input method according to an exemplary embodiment. Fig.15 As shown, the global handwriting input method is applied to the terminal, including the following steps.

[0143] The process from the input control to the HandWritingManager is to obtain the focus state of the input control based on the HandWritingManager pre-created by the terminal application layer, and the process from the HandWritingManager to the HandWritingService is to control the HandWritingManager to send the focus state to the HandWritingService pre-created by the terminal system layer, and control the HandWritingService to record the received focus state. That is, when the input control obtains the focus state of the input control, the input control sends the focus state information to the HandWritingManager, and the HandWritingManager then sends the focus state information to the HandWritingService, which stores and records the focus state.

[0144] In the present disclosure, the input control, HandWritingManager, and HandWritingService are in the foreground application layer. The interaction of the HandWritingManager, input control, HandWritingManager, and HandWritingService modules in the foreground application layer realizes the acquisition, transmission, and storage of the focus state.

[0145] In HandWritingService, HandWritingManager, global handwriting application, window management module, and window management service module, a method for creating a window for global handwriting input based on a trigger instruction and a focus state is executed, including: if it is determined that the global handwriting application of the terminal application layer detects a trigger instruction, then to control the global handwriting application to obtain the focus state from HandWritingService, wherein the specific process is: control the global handwriting application to send a first request message for requesting to obtain the focus state to HandWritingManager, in response to determining that HandWritingManager receives the first request message, control HandWritingManager to send a second request message for requesting to obtain the focus state to HandWritingService, in response to determining that HandWritingService receives the second request message, control HandWritingService to send the focus state to HandWritingManager, and HandWritingManager sends the focus state to the global handwriting application. Then to create a window for global handwriting input based on the focus state. That is, after detecting the trigger instruction, the global handwriting application sends a request to add a window to the window management module, the window management module sends a request to add a window to the window management service module, and finally the window management service module adds a handwriting window.

[0146] Among them, in the present disclosure, if a trigger instruction is detected, two branch logic processes will be executed, one is the interactive process of the global handwriting application, the window management module, and the window management service module, which realizes the process of creating a window, and the other is the interactive process of HandWritingService, the input method manager service module, HandWritingManager, and the global handwriting application, which realizes the process of switching the input method to the handwriting input method.

[0147] In the present disclosure, HandWritingService, input method manager service module, and window management service module are located in the system service layer.

[0148] In the input method manager service module, HandWritingManager, global handwriting application, handwriting window, recognition service module, and handwriting input method, a method is performed for recognizing global handwriting input content based on the window and inputting the recognized global handwriting input content into the input control, including: detecting an operation performed on a floating ball to trigger global handwriting input, and in response to detecting that the floating ball is triggered to perform global handwriting input, determining that a global handwriting input trigger instruction is detected. In the process of continuously detecting that the floating ball is triggered to perform global handwriting input, controlling the window to recognize the global handwriting input content. In response to detecting that the floating ball stops being triggered to perform global handwriting input, determining whether there is recognized global handwriting content in the window, if there is recognized global handwriting content in the window, inputting the global handwriting content in the window into the input control, and if there is no recognized global handwriting content in the window, removing the window. That is, after detecting the trigger instruction, the global handwriting application notifies the HandWritingManager to start global handwriting, the HandWritingManager notifies the HandWritingService to start global handwriting, the HandWritingService processes the information and sends a request to the input method manager service module to switch the handwriting input method, and finally the input method manager service module switches the input method to the handwriting input method.

[0149] In the present disclosure, HandWritingManager, global handwriting application, window management module, handwriting window, recognition service module, and handwriting input method are located in the global handwriting application layer. The interaction of HandWritingManager, input method manager service module, HandWritingManager, global handwriting application, handwriting window, recognition service module, and handwriting input method module of the global handwriting application layer implements handwriting and filling operations for global handwriting.

[0150] In the disclosed embodiment, in order to better understand the structure of the terminal in which the method is applied, a global handwriting request flow chart is given below, taking the floating ball as the global handwriting application and the trigger instruction as the press instruction as an example for explanation.

[0151] Fig.16 is a request flow chart of a global handwriting input method applied to a terminal according to an exemplary embodiment. Fig.16As shown, the global handwriting input method is applied to the terminal, including the following steps: before the pressing operation, the text edit box passes the focus state from HandWritingManager to HandWritingService, and HandWritingService records and stores the focus state. After the pressing operation, two logical branch processes are executed simultaneously from the floating ball. One process is that the floating ball sends a request to add a window instruction to the window management module, the window management module sends a request to add a window instruction to the window management service module, and finally the window management service module adds the window. The other process is that the floating ball notifies HandWritingManager to start global handwriting, HandWritingManager notifies HandWritingService to start global handwriting, HandWritingService notifies the input method manager service module to switch the handwriting input method, and finally the input method manager service module switches the handwriting input method. After completing the handwriting operation (pressing the floating ball state), the handwriting window requests text recognition from the recognition service module, the recognition service module sends the recognized text to the handwriting input method, and finally the handwriting input method fills the recognized text into the text edit box through the input connection. When the floating ball is released from the pressing state, the floating ball requests the window management module to remove the window, and the window management module requests the window management service module to remove the window, and finally the window management service module removes the window.

[0152] Parts of the process of interaction between global handwriting input modules described in this disclosure that are not fully detailed can be found in the above-mentioned implementation descriptions and will not be described in detail here.

[0153] Fig.17 is a block diagram of a global handwriting input device according to an exemplary embodiment. Fig.17 The device includes a detection unit 121, a processing unit 122 and an output unit 123.

[0154] The detection unit 121 is configured to record the focus state of the input control in response to the input control being displayed on the terminal, and detect a global handwriting input trigger instruction.

[0155] The processing unit 122 is configured to create a window for identifying global handwriting input content based on a trigger instruction and a focus state.

[0156] The output unit 123 is configured to recognize global handwriting input content based on the window, and input the recognized global handwriting input content into the input control.

[0157] In one example, the detection unit 121 records the focus state of the input control in the following manner: obtain the focus state of the input control based on the HandWritingManager pre-created by the terminal application layer, and control the HandWritingManager to send the focus state to the HandWritingService process pre-created by the terminal system layer; control the HandWritingService process to record the received focus state.

[0158] In one example, the processing unit 122 also creates a window for global handwriting input based on the trigger instruction and the focus state in the following manner: if it is determined that the global handwriting application of the terminal application layer detects a trigger instruction, the global handwriting application is controlled to obtain the focus state from the HandWritingService process; based on the focus state, a window for global handwriting input is created.

[0159] In one example, the processing unit 122 also controls the global handwriting application to obtain the focus state from the HandWritingService process in the following manner: control the global handwriting application to send a first request message to the HandWritingManager for requesting to obtain the focus state; in response to determining that the HandWritingManager has received the first request message, control the HandWritingManager to send a second request message to the HandWritingService process for requesting to obtain the focus state; in response to determining that the HandWritingService process has received the second request message, control the HandWritingService process to send the focus state to the HandWritingManager, and the HandWritingManager sends the focus state to the global handwriting application.

[0160] In one example, the processing unit 122 also creates a window for global handwriting input based on the focus state in the following manner: if it is determined that the focus state indicates that the input control has focus, then a window for global handwriting input is created; wherein the input control having focus indicates that the input control is in a state where content is waiting to be input.

[0161] In one example, a prompt unit is further included, which is configured to display prompt information when the processing unit determines that the focus state represents that the input control does not have focus, and the prompt information is used to prompt that the input control is not in a state where content is waiting to be input.

[0162] In one example, a floating ball for triggering global handwriting input is installed in the terminal; the detection unit 121 detects the global handwriting input trigger instruction in the following manner: detecting the operation performed on the floating ball for triggering the global handwriting input; in response to detecting that the floating ball is triggered to perform the global handwriting input operation, determining that the global handwriting input trigger instruction is detected.

[0163] In one example, the output unit 123 recognizes the global handwriting input content based on the window in the following manner: during the process of continuously detecting that the floating ball is triggered to perform the global handwriting input operation, the window is controlled to recognize the global handwriting input content.

[0164] In one example, the detection unit 121 is also used to determine whether there is recognized global handwriting content in the window in response to detecting that the floating ball stops being triggered to perform a global handwriting input operation; the processing unit 122 is also used to input the global handwriting content in the window into the input control if the detection unit 121 determines that there is recognized global handwriting content in the window; if there is no recognized global handwriting content in the window, remove the window.

[0165] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0166] Fig.18 8 is a block diagram of a device 800 for global handwriting input according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0167] Reference Fig.18 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0168] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0169] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0170] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0171] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0172] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0173] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0174] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0175] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0176] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0177] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0178] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0179] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0180] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0181] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0182] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0183] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A global handwriting input method, characterized in that: Applied to a terminal, the global handwriting input method includes: In response to an input control being displayed on the terminal, recording a focus state of the input control and detecting a global handwriting input trigger instruction; Creating a window for recognizing global handwriting input content based on the trigger instruction and the focus state; Global handwriting input content is recognized based on the window, and the recognized global handwriting input content is input into the input control.

2. The global handwriting input method according to claim 1, characterized in that: The recording of the focus state of the input control includes: Acquire the focus state of the input control based on the global handwriting input management process pre-created by the terminal application layer, and control the global handwriting input management process to send the focus state to the global handwriting input service process pre-created by the terminal system layer; The global handwriting input service process is controlled to record the received focus state.

3. The global handwriting input method according to claim 2, characterized in that: The creating a window for global handwriting input based on the trigger instruction and the focus state includes: If it is determined that the global handwriting application of the terminal application layer detects the trigger instruction, controlling the global handwriting application to obtain the focus state from the global handwriting input service process; Based on the focus state, a window for global handwriting input is created.

4. The global handwriting input method according to claim 3, characterized in that: The controlling the global handwriting application to obtain the focus state from the global handwriting input service process includes: Controlling the global handwriting application to send a first request message for requesting to obtain the focus state to the global handwriting input management process; In response to determining that the global handwriting input management process receives the first request message, controlling the global handwriting input management process to send a second request message for requesting to obtain the focus state to the global handwriting input service process; In response to determining that the global handwriting input service process receives the second request message, the global handwriting input service process is controlled to send the focus state to the global handwriting input management process, and the global handwriting input management process sends the focus state to the global handwriting application.

5. The global handwriting input method according to claim 3, characterized in that: The step of creating a window for global handwriting input based on the focus state includes: If it is determined that the focus state indicates that the input control has focus, creating a window for global handwriting input; The presence of focus on the input control indicates that the input control is in a state where content is waiting to be input.

6. The global handwriting input method according to claim 3 or 5, characterized in that: The method further comprises: If it is determined that the focus state indicates that the input control does not have focus, prompt information is displayed, where the prompt information is used to prompt that the input control is not in a state where content is waiting to be input.

7. The global handwriting input method according to claim 1, characterized in that: The terminal is equipped with a floating ball for triggering global handwriting input; The detecting of a global handwriting input trigger instruction includes: detecting an operation on the floating ball for triggering global handwriting input; In response to detecting that the floating ball is triggered to perform a global handwriting input operation, it is determined that a global handwriting input trigger instruction is detected.

8. The global handwriting input method according to claim 7, characterized in that: The identifying global handwriting input content based on the window includes: During the process of continuously detecting that the floating ball is triggered to perform global handwriting input, the window is controlled to recognize global handwriting input content.

9. The global handwriting input method according to claim 7 or 8, characterized in that: The method further comprises: In response to detecting that the floating ball stops being triggered to perform a global handwriting input operation, determining whether there is recognized global handwriting content in the window; If there is recognized global handwriting content in the window, inputting the global handwriting content in the window into the input control; If there is no recognized global handwriting content in the window, the window is removed.

10. A global handwriting input device, characterized in that: The device comprises: a detection unit configured to, in response to an input control being displayed on the terminal, record a focus state of the input control and detect a global handwriting input trigger instruction; a processing unit configured to create a window for recognizing global handwriting input content based on the trigger instruction and the focus state; The output unit is configured to recognize global handwriting input content based on the window, and input the recognized global handwriting input content into the input control.

11. The global handwriting input device according to claim 10, characterized in that: The detection unit records the focus state of the input control in the following manner: Acquire the focus state of the input control based on the global handwriting input management process pre-created by the terminal application layer, and control the global handwriting input management process to send the focus state to the global handwriting input service process pre-created by the terminal system layer; The global handwriting input service process is controlled to record the received focus state.

12. The global handwriting input device according to claim 11, characterized in that: The processing unit creates a window for global handwriting input based on the trigger instruction and the focus state in the following manner: If it is determined that the global handwriting application of the terminal application layer detects the trigger instruction, controlling the global handwriting application to obtain the focus state from the global handwriting input service process; Based on the focus state, a window for global handwriting input is created.

13. The global handwriting input device according to claim 12, characterized in that: The processing unit controls the global handwriting application to obtain the focus state from the global handwriting input service process in the following manner: Controlling the global handwriting application to send a first request message for requesting to obtain the focus state to the global handwriting input management process; In response to determining that the global handwriting input management process receives the first request message, controlling the global handwriting input management process to send a second request message for requesting to obtain the focus state to the global handwriting input service process; In response to determining that the global handwriting input service process receives the second request message, the global handwriting input service process is controlled to send the focus state to the global handwriting input management process, and the global handwriting input management process sends the focus state to the global handwriting application.

14. The global handwriting input device according to claim 12, characterized in that: The processing unit creates a window for global handwriting input based on the focus state in the following manner: If it is determined that the focus state indicates that the input control has focus, creating a window for global handwriting input; The presence of focus on the input control indicates that the input control is in a state where content is waiting to be input.

15. The global handwriting input device according to claim 12 or 14, characterized in that: The device further comprises: The prompt unit is configured to display prompt information when the processing unit determines that the focus state represents that the input control does not have focus, wherein the prompt information is used to prompt that the input control is not in a state where content is waiting to be input.

16. The global handwriting input device according to claim 10, characterized in that: The terminal is equipped with a floating ball for triggering global handwriting input; the detection unit detects the global handwriting input trigger instruction in the following manner: detecting an operation on the floating ball for triggering global handwriting input; In response to detecting that the floating ball is triggered to perform a global handwriting input operation, it is determined that a global handwriting input trigger instruction is detected.

17. The global handwriting input device according to claim 16, characterized in that: The output unit recognizes the global handwriting input content based on the window in the following manner: During the process of continuously detecting that the floating ball is triggered to perform global handwriting input, the window is controlled to recognize global handwriting input content.

18. The global handwriting input device according to claim 16 or 17, characterized in that: The detection unit is further configured to, in response to detecting that the floating ball stops being triggered to perform a global handwriting input operation, determine whether there is recognized global handwriting content in the window; The processing unit is further configured to, if the detection unit determines that the recognized global handwriting content exists in the window, input the global handwriting content in the window into the input control; If there is no recognized global handwriting content in the window, the window is removed.

19. A global handwriting input device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the global handwriting input method according to any one of claims 1 to 9.

20. A storage medium, characterized in that The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the global handwriting input method according to any one of claims 1 to 9.