A method for implementing full-screen handwriting and electronic device

By setting up a virtual screen in the drive layer and frame layer of the electronic device, obtaining and identifying input trajectories, the versatility and compatibility of the full-screen handwriting function in the prior art is solved, and a stable full-screen handwriting function on a variety of devices and applications is realized.

CN114327232BActive Publication Date: 2025-03-25LENOVO (BEIJING) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111663664.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-03-25
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

When implementing the full-screen handwriting function, the prior art has problems of poor versatility and poor compatibility, especially when some applications are always on top-level forms, it is impossible to generate a full-screen transparent form. At the same time, after the application is upgraded, the transparent form cannot continue to be used.

Method used

By setting a virtual screen on the data transfer path of the driving layer and the framework layer of the electronic device, the input track is obtained, and the track is identified, and the identification information is displayed to realize the full-screen handwriting function. This method avoids creating transparent forms on the application layer, ensuring compatibility with each application and the underlying controls.

Benefits of technology

The full-screen handwriting function is realized on a variety of electronic devices and a variety of applications, improving versatility and compatibility, ensuring functional stability and upgraded compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327232B_ABST
    Figure CN114327232B_ABST
Patent Text Reader

Abstract

The present application discloses a method and electronic device for implementing full-screen handwriting, including: determining that a target application is in a text input mode, controlling a virtual screen to obtain an input track in response to a track input operation of an input device; the virtual screen is located on a data transmission path between a driver layer and a framework layer of the electronic device; identifying the input track to obtain track identification information; and displaying the track identification information to implement a full-screen handwriting function. The present application also discloses a corresponding electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of full-screen handwriting, and in particular to a method and electronic device for implementing full-screen handwriting. Background Art

[0002] Full-screen handwriting means that the recognition area of ​​the handwriting input method is the full screen. Some existing electronic devices such as mobile phones and tablets can support handwriting input. The specific implementation method is: a new transparent window is created on the upper layer of the application layer, and the transparent window is used to receive the moving track of the input device such as a stylus. At the same time, based on the transparent window, handwriting recognition is performed to realize the full-screen handwriting function.

[0003] However, some applications are always in the top-level window. At this time, a full-screen transparent window cannot be generated at the top level, that is, the above method cannot be implemented, resulting in poor versatility; and after the application in the electronic device is upgraded, there is a situation where the transparent window can no longer be used, resulting in poor compatibility. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method and electronic device for implementing full-screen handwriting, which can not only support the electronic device to implement the full-screen handwriting function, but also be applicable to a variety of electronic devices and a variety of applications on electronic devices, and have good versatility and compatibility.

[0005] In a first aspect, an embodiment of the present application provides a method for implementing full-screen handwriting, which is applied to an electronic device, including:

[0006] Determine that the target application is in a text input mode, and control a virtual screen to obtain the input track in response to a track input operation of an input device; wherein the virtual screen is located on a data transmission path between a driver layer and a framework layer of the electronic device;

[0007] Identify the input trajectory to obtain trajectory identification information;

[0008] The track recognition information is displayed to realize the full-screen handwriting function.

[0009] In a possible implementation, the virtual screen is located on a data transmission path between a drive layer and a framework layer of the electronic device, including:

[0010] The virtual screen is arranged on the driving layer, or the virtual screen is arranged on the framework layer.

[0011] In a possible implementation, determining that the target application is in a text input mode, and controlling the virtual screen to obtain the input track in response to the track input operation of the input device, includes:

[0012] In the case where it is determined that the target application is in a text input mode, the target application determines a target input device; the target input device includes a first input device and a second input device supported by the driver layer;

[0013] When the virtual screen acquires the input track, it is determined that the target input device is the second input device.

[0014] In a possible implementation, the first input device includes one of a hard keyboard, a soft keyboard, and a mouse, and the second input device includes a stylus pen or a touch pad.

[0015] In a possible implementation, the displaying the trajectory identification information includes:

[0016] transmitting the trajectory identification information to an application layer of the electronic device;

[0017] The target application in the application layer is controlled to display the track identification information.

[0018] In a possible implementation, it further includes:

[0019] Determining that the target application is in gesture mode, and controlling the virtual screen to acquire the input trajectory in response to the trajectory input operation of the input device;

[0020] Reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer determines the target instruction corresponding to the input trajectory based on the correspondence between the trajectory and the instruction;

[0021] Controlling the framework layer to transmit the target instruction to the application layer;

[0022] The target application in the application layer is controlled to respond to the target instruction.

[0023] In a possible implementation, it further includes:

[0024] Determining that the target application is in a drawing mode, and controlling a virtual screen to acquire the input trajectory in response to a trajectory input operation of the input device;

[0025] Reporting the input track to the framework layer through the virtual screen, so that the framework layer transmits the input track to the application layer;

[0026] The target application in the application layer is controlled to display the input trace.

[0027] In a second aspect, an embodiment of the present application further provides an electronic device, including:

[0028] The virtual screen is located on the data transmission path of the drive layer and the framework layer of the electronic device;

[0029] A control module configured to determine that the target application is in a text input mode, and to control the virtual screen to obtain the input track in response to the track input operation of the input device; wherein the virtual screen is located on the data transmission path of the drive layer and the framework layer of the electronic device;

[0030] an identification module, configured to identify the input trajectory and obtain trajectory identification information;

[0031] The first display module is configured to display the track recognition information to realize the full-screen handwriting function.

[0032] In a possible implementation manner, the virtual screen is arranged on the driving layer or the framework layer.

[0033] In a possible implementation, the acquisition module is further configured to:

[0034] When it is determined that the target application is in a text input mode, the target application determines a target input device; the target input device includes a first input device and a second input device supported by the driver layer,

[0035] When the virtual screen acquires the input track, it is determined that the target input device is the second input device.

[0036] The implementation method of the embodiment of the present application obtains the input trajectory through a virtual screen set on the data transmission path of the driving layer and the framework layer of the electronic device, and then identifies the input trajectory to obtain trajectory identification information, and realizes the full-screen handwriting function by displaying the trajectory identification information. Compared with the prior art of creating a transparent window on the upper layer of the application layer, the virtual screen of the present application will not affect the functions and upgrades of various applications in the electronic device. It can not only support the electronic device to realize the full-screen handwriting function, but also can be applicable to a variety of electronic devices and a variety of applications on electronic devices, and has good versatility and compatibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 A flowchart of a method for implementing full-screen handwriting provided by the present application is shown;

[0039] Figure 2A flowchart showing another implementation method provided by the present application is shown;

[0040] Figure 3 A flowchart showing another implementation method provided by the present application is shown;

[0041] Figure 4 A schematic diagram of the structure of an electronic device provided by the present application is shown;

[0042] Figure 5 A schematic diagram showing the structure of another electronic device provided by the present application is shown;

[0043] Figure 6 A structural schematic diagram of another electronic device provided by the present application is shown. DETAILED DESCRIPTION

[0044] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0045] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0046] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0047] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0048] It should also be understood that, although the present application has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.

[0049] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0050] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0051] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0052] The implementation method of full-screen handwriting provided in the embodiment of the present application is applied to electronic devices, which can realize the function of full-screen handwriting on electronic devices, and is applicable to a variety of electronic devices and a variety of applications on electronic devices, with good versatility and compatibility. To facilitate understanding of the present application, a method for implementing full-screen handwriting provided in the present application is first introduced in detail.

[0053] like Figure 1 As shown, it is a flowchart of the method for implementing full-screen handwriting provided in an embodiment of the present application, wherein the specific steps include S101-S103.

[0054] S101, determining that the target application is in a text input mode, and controlling a virtual screen to obtain an input track in response to a track input operation of an input device; wherein the virtual screen is located on a data transmission path between a driver layer and a framework layer of the electronic device.

[0055] In a specific implementation, the system of the electronic device includes a driver layer, a framework layer and an application layer, and the driver layer is located at the bottom layer, the application layer is located at the top layer, the framework layer is located between the driver layer and the application layer, and when the user uses an application based on the electronic device, the instructions or responses are transmitted from the driver layer to the application layer through the framework layer to realize the operation of the application.

[0056] In an embodiment of the present application, a virtual screen is pre-set on the driver layer, or a virtual screen is set on the framework layer, that is, the virtual screen is located on the data transmission path of the driver layer and the framework layer of the electronic device, and can be applicable to different types of electronic devices; and the virtual screen is located below the application layer; to avoid the problem that some applications declare themselves as top-level windows, resulting in the inability to set a virtual screen thereon, so that the virtual screen can be applicable to applications with different settings, and even if the underlying controls and / or applications of the electronic device are upgraded, it will not affect the use of the virtual screen, controls and various applications, and the versatility and compatibility are both good.

[0057] In a specific implementation, the virtual screen is used to obtain all input operations on the electronic device, such as the coordinate information of the focus, etc., where the focus can be formed by a stylus or by other operating bodies. Optionally, each application can set a different operation mode, and the current mode can be determined based on the coordinate information of the focus. As one example, after obtaining the coordinate point information of the focus, the virtual screen determines whether the coordinate point identified by the coordinate point information falls within the input coordinate range, wherein the input coordinate range is the input coordinate range corresponding to a target application, and the input coordinate ranges corresponding to different target applications are different; when it is determined that the coordinate point identified by the coordinate point information falls within the input coordinate range, it is determined that the target application is in a text input mode; when it is determined that the coordinate point identified by the coordinate point information does not fall within the input coordinate range, it is determined that the target application is in a gesture mode or a drawing mode, etc., and the embodiment of the present application does not specifically limit this, and the current mode of the target application can also be determined based on a pre-set judgment condition, such as the distance and duration of the focus moving on the electronic device, as long as the current mode of the target application can be determined.

[0058] In the case where it is determined that the target application is in the text input mode, the virtual screen is controlled to acquire the input trace in response to the trace input operation of the input device.

[0059] Before the operation control virtual screen obtains the input track, the target input device needs to be further determined. Specifically, the target application generates a request instruction to transmit the request instruction to the framework layer to the driver layer, and the request instruction can also be transmitted to the system bottom layer of the electronic device, that is, the processing layer or the control layer, so that the driver layer or the system bottom layer responds to the request instruction, wherein the request instruction is used to determine the target input device.

[0060] In order to ensure that the target input device can simultaneously satisfy the target application and the system driver layer of the electronic device, the target input device in the embodiment of the present application includes a first input device and a second input device supported by the driver layer; wherein the first input device is one of a hard keyboard, a soft keyboard, and a mouse, and the second input device includes a stylus or a touchpad. For example, when the electronic device is in a non-touch state, any one of the first input devices can be used as the target input device. Of course, multiple first input devices can also be used as target input devices at the same time, such as a hard keyboard and a mouse combined to form a target input device, or a soft keyboard and a mouse combined to form a target input device. When the electronic device is in a touch state, any one of the second input devices can be used as the target input device. For example, when a touch screen is provided on the electronic device, the stylus corresponding to the electronic device can be determined as the target input device.

[0061] In an embodiment of the present application, once the virtual screen acquires the input track, that is, the electronic device is in a touch state, at this time, it is determined that the target input device is the second input device, so that the virtual screen forwards, transmits, etc. the acquired input track as the target input device.

[0062] S102, identifying the input trajectory to obtain trajectory identification information.

[0063] In a specific implementation, after the input trajectory is acquired through the virtual screen, the input trajectory is calculated through a preset trajectory recognition algorithm to obtain trajectory recognition information, that is, text information corresponding to the input trajectory.

[0064] S103, displaying the trajectory recognition information to realize the full-screen handwriting function.

[0065] In a specific implementation, after obtaining the track identification information, the track identification information is displayed through the display device of the electronic device to realize the full-screen handwriting function. Specifically, the track identification information is transmitted to the application layer of the electronic device, and the target application in the application layer is controlled to display the track identification information.

[0066] The implementation method of the embodiment of the present application obtains the input trajectory through a virtual screen set on the data transmission path of the driving layer and the framework layer of the electronic device, and then identifies the input trajectory to obtain trajectory identification information, and realizes the full-screen handwriting function by displaying the trajectory identification information. Compared with the prior art of creating a transparent window on the upper layer of the application layer, the virtual screen of the present application will not affect the functions and upgrades of various applications in the electronic device. It can not only support the electronic device to realize the full-screen handwriting function, but also can be applicable to a variety of electronic devices and a variety of applications on electronic devices, and has good versatility and compatibility.

[0067] like Figure 2 As shown, it is a flowchart of another implementation method provided in an embodiment of the present application, wherein the specific steps include S201-S204.

[0068] S201 , determining that the target application is in gesture mode, and controlling the virtual screen to obtain an input trajectory in response to a trajectory input operation of an input device.

[0069] S202 , reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer determines the target instruction corresponding to the input trajectory based on the corresponding relationship between the trajectory and the instruction.

[0070] S203, the control framework layer transmits the target instruction to the application layer.

[0071] S204, controlling the target application in the application layer to respond to the target instruction.

[0072] In a specific implementation, after executing the above-mentioned mode determination method, for example, it is determined that the coordinate point identified by the coordinate point information does not fall within the input coordinate range. As one example, when it is determined that the coordinate point identified by the coordinate point information does not fall within the input coordinate range, it is further determined whether the target application is in gesture mode or drawing mode, and optionally, it is determined whether the target application is in gesture mode or drawing mode based on the length of the input trajectory or based on whether the user performs other preset operations.

[0073] If it is determined that the target application is in gesture mode, the virtual screen will not forward the input track, that is, it will not perform recognition processing on the input track. After the virtual screen is controlled to obtain the input track in response to the track input operation of the input device, the input track is directly reported to the framework layer through the virtual screen, so that the framework layer determines the target command corresponding to the input track based on the correspondence between the track and the command. Among them, the correspondence between the track and the command is pre-set and stored. For example, if the track is from bottom to top, it corresponds to the command "switch to the next page", and if the track is from left to right, it corresponds to the command "accelerate playback", etc.

[0074] After determining the target instruction corresponding to the input trajectory, the control framework layer transmits the target instruction to the application layer. After determining that the application layer receives the target instruction, the target application in the control application layer responds to the target instruction, so that the user can control the target application through gestures.

[0075] like Figure 3 As shown, it is a flowchart of another implementation method provided in an embodiment of the present application, wherein the specific steps include S301-S303.

[0076] S301 , determining that the target application is in a drawing mode, and controlling a virtual screen to obtain an input trajectory in response to a trajectory input operation of an input device.

[0077] S302: Report the input track to the framework layer through the virtual screen, so that the framework layer transmits the input track to the application layer.

[0078] S303, controlling the target application in the application layer to display the input track.

[0079] Similarly, after executing the above-mentioned mode determination method, if it is determined that the target application is in the drawing mode, the virtual screen will not forward the input trajectory, that is, it will not perform recognition processing on the input trajectory. After the virtual screen is controlled to obtain the input trajectory in response to the trajectory input operation of the input device, the input trajectory is directly reported to the framework layer through the virtual screen, so that the framework layer transmits the input trajectory directly to the application layer. In other words, the framework layer does not perform any processing on the input trajectory, but only reports it directly.

[0080] After determining that the application layer receives the input track, the target application in the application layer is controlled to display the input track, so that the user can achieve the purpose of drawing through touch operation.

[0081] Based on the same concept, the second aspect of the present application also provides an electronic device corresponding to a full-screen handwriting implementation method. Since the principle of solving the problem by the electronic device in the present application is similar to the above-mentioned full-screen handwriting implementation method of the present application, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0082] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application is shown, specifically comprising:

[0083] The virtual screen 401 is located on the data transmission path between the driving layer and the framework layer of the electronic device;

[0084] A control module 402, which is configured to determine that the target application is in a text input mode, and control the virtual screen to obtain the input track in response to the track input operation of the input device; wherein the virtual screen is located on the data transmission path of the drive layer and the framework layer of the electronic device;

[0085] An identification module 403, configured to identify the input trajectory and obtain trajectory identification information;

[0086] The first display module 404 is configured to display the track recognition information to realize the full-screen handwriting function.

[0087] In yet another embodiment, the virtual screen 401 is disposed on the driving layer or the framework layer.

[0088] In yet another embodiment, the control module 402 is further configured to:

[0089] When it is determined that the target application is in a text input mode, the target application determines a target input device; the target input device includes a first input device and a second input device supported by the driver layer,

[0090] When the virtual screen acquires the input track, it is determined that the target input device is the second input device.

[0091] In yet another embodiment, the first input device includes one of a hard keyboard, a soft keyboard, and a mouse, and the second input device includes a stylus pen or a touch pad.

[0092] In yet another embodiment, the first display module 404 is further configured to:

[0093] transmitting the trajectory identification information to an application layer of the electronic device;

[0094] The target application in the application layer is controlled to display the track identification information.

[0095] In yet another embodiment, the electronic device further includes a response module 405 configured to:

[0096] Determining that the target application is in gesture mode, and controlling the virtual screen to acquire the input trajectory in response to the trajectory input operation of the input device;

[0097] Reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer determines the target instruction corresponding to the input trajectory based on the correspondence between the trajectory and the instruction;

[0098] Controlling the framework layer to transmit the target instruction to the application layer;

[0099] The target application in the application layer is controlled to respond to the target instruction.

[0100] In yet another embodiment, the electronic device further includes a second display module 406, which is configured to:

[0101] Determining that the target application is in a drawing mode, and controlling a virtual screen to acquire the input trajectory in response to a trajectory input operation of the input device;

[0102] Reporting the input track to the framework layer through the virtual screen, so that the framework layer transmits the input track to the application layer;

[0103] The target application in the application layer is controlled to display the input trace.

[0104] Figure 5 A schematic diagram of the structure of an electronic device as an example is shown. Figure 5 As shown, the electronic device is connected to the stylus, which can be connected by wire or by wireless connection, as long as the electronic device can authenticate, identify and respond to the stylus. Further, the electronic device includes a driver layer, a virtual screen, a framework layer and an application layer, wherein the virtual screen is located between the driver layer and the framework layer, and the application layer is located above the driver layer, the virtual screen and the framework layer. As shown in the figure, the framework layer includes a first determination module, a second determination module and an identification module, and the application layer includes a target application and other applications.

[0105] based on Figure 5 The structure shown executes the above implementation method as follows:

[0106] The framework layer obtains the focus coordinates in the electronic device screen in advance, and determines the mode of the target application based on the focus coordinates through the first determination module. The specific determination method is as mentioned above.

[0107] After determining that the target application is in text input mode, the target input device is further determined by a second determination module. Specifically, after determining that the target application is in text input mode, the target application generates a request instruction and transmits the request instruction to the second determination module, and at the same time transmits its corresponding input device to the second determination module.

[0108] After receiving the request instruction, the second determination module obtains the input devices supported by the driver layer, and determines the target input device based on the input devices supported by the driver layer and the input devices corresponding to the target application. After determining that the target application is in text input mode, once the virtual screen obtains the input track, the stylus is determined as the target input device, and then the virtual screen is controlled to obtain the input track.

[0109] After the virtual screen obtains the input track, it forwards the input track to the recognition module of the framework layer, so that the recognition module calculates the input track through the preset track recognition algorithm to obtain track recognition information, that is, the text information corresponding to the input track. After that, the recognition module transmits the track recognition information to the target application of the application layer.

[0110] After receiving the trajectory recognition information, the target application displays the trajectory recognition information, thereby realizing the full-screen handwriting function.

[0111] When the target application is in gesture mode and drawing mode, it will not be described here, and you can refer to the above.

[0112] The implementation method of the embodiment of the present application obtains the input trajectory through a virtual screen set on the data transmission path of the driving layer and the framework layer of the electronic device, and then identifies the input trajectory to obtain trajectory identification information, and realizes the full-screen handwriting function by displaying the trajectory identification information. Compared with the prior art of creating a transparent window on the upper layer of the application layer, the virtual screen of the present application will not affect the functions and upgrades of various applications in the electronic device. It can not only support the electronic device to realize the full-screen handwriting function, but also can be applicable to a variety of electronic devices and a variety of applications on electronic devices, and has good versatility and compatibility.

[0113] An embodiment of the present application provides a storage medium, which is a computer-readable medium and stores a computer program. When the computer program is executed by a processor, the method provided by any embodiment of the present application is implemented, including the following steps S11 to S13:

[0114] S11, determining that the target application is in a text input mode, and controlling a virtual screen to obtain the input track in response to a track input operation of an input device; wherein the virtual screen is located on a data transmission path between a driving layer and a framework layer of the electronic device;

[0115] S12, identifying the input trajectory to obtain trajectory identification information;

[0116] S13, displaying the track recognition information to realize the full-screen handwriting function.

[0117] When the computer program is executed by the processor to implement the method, the processor specifically executes the following steps: setting the virtual screen on the driver layer, or setting the virtual screen on the framework layer.

[0118] The computer program is executed by a processor to determine that a target application is in a text input mode. When a virtual screen is controlled to obtain the input track in response to a track input operation of an input device, the processor also executes the following steps: when it is determined that the target application is in a text input mode, the target application determines a target input device; the target input device includes a first input device and a second input device supported by the driver layer; when the virtual screen obtains the input track, it is determined that the target input device is the second input device.

[0119] When the computer program is executed by the processor to display the trajectory identification information, the processor also executes the following steps: transmitting the trajectory identification information to the application layer of the electronic device; and controlling the target application in the application layer to display the trajectory identification information.

[0120] When the computer program is executed by the processor for the implementation method, the processor also executes the following steps: determining that the target application is in gesture mode, and controlling the virtual screen to obtain the input trajectory in response to the trajectory input operation of the input device; reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer determines the target instruction corresponding to the input trajectory based on the correspondence between the trajectory and the instruction; controlling the framework layer to transmit the target instruction to the application layer; and controlling the target application in the application layer to respond to the target instruction.

[0121] When the computer program is executed by a processor to implement the method, the processor also executes the following steps: determining that the target application is in a drawing mode, and controlling the virtual screen to obtain the input trajectory in response to the trajectory input operation of the input device; reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer transmits the input trajectory to the application layer; and controlling the target application in the application layer to display the input trajectory.

[0122] The implementation method of the embodiment of the present application obtains the input trajectory through a virtual screen set on the data transmission path of the driving layer and the framework layer of the electronic device, and then identifies the input trajectory to obtain trajectory identification information, and realizes the full-screen handwriting function by displaying the trajectory identification information. Compared with the prior art of creating a transparent window on the upper layer of the application layer, the virtual screen of the present application will not affect the functions and upgrades of various applications in the electronic device. It can not only support the electronic device to realize the full-screen handwriting function, but also can be applicable to a variety of electronic devices and a variety of applications on electronic devices, and has good versatility and compatibility.

[0123] The embodiment of the present application provides an electronic device 6. The structural diagram of the electronic device can be as follows: Figure 6 As shown, at least a memory 601 and a processor 602 are included. The memory 601 stores a computer program. The processor 602 implements the method provided by any embodiment of the present application when executing the computer program on the memory 601. Exemplarily, the computer program steps of the electronic device 6 are as follows S21 to S23:

[0124] S21, determining that the target application is in a text input mode, and controlling a virtual screen to obtain the input track in response to a track input operation of an input device; wherein the virtual screen is located on a data transmission path between a drive layer and a framework layer of the electronic device;

[0125] S22, identifying the input trajectory to obtain trajectory identification information;

[0126] S23, displaying the track recognition information to realize the full-screen handwriting function.

[0127] When executing the implementation method stored in the memory, the processor also executes the following computer program: setting the virtual screen on the driving layer, or setting the virtual screen on the framework layer.

[0128] The processor executes the following computer program when determining that the target application is in text input mode and controlling the virtual screen to obtain the input track in response to the track input operation of the input device stored in the execution memory: when it is determined that the target application is in text input mode, the target application determines the target input device; the target input device includes a first input device and a second input device supported by the driver layer; when the virtual screen obtains the input track, it is determined that the target input device is the second input device.

[0129] When the processor executes the computer program stored in the memory for displaying the trajectory identification information, the processor specifically executes the following: transmitting the trajectory identification information to the application layer of the electronic device; and controlling the target application in the application layer to display the trajectory identification information.

[0130] When executing the implementation method stored in the memory, the processor also executes the following computer program: determining that the target application is in gesture mode, and controlling the virtual screen to obtain the input trajectory in response to the trajectory input operation of the input device; reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer determines the target instruction corresponding to the input trajectory based on the correspondence between the trajectory and the instruction; controlling the framework layer to transmit the target instruction to the application layer; and controlling the target application in the application layer to respond to the target instruction.

[0131] When executing the implementation method stored in the memory, the processor also executes the following computer program: determining that the target application is in a drawing mode, and controlling the virtual screen to obtain the input trajectory in response to the trajectory input operation of the input device; reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer transmits the input trajectory to the application layer; and controlling the target application in the application layer to display the input trajectory.

[0132] The implementation method of the embodiment of the present application obtains the input trajectory through a virtual screen set on the data transmission path of the driving layer and the framework layer of the electronic device, and then identifies the input trajectory to obtain trajectory identification information, and realizes the full-screen handwriting function by displaying the trajectory identification information. Compared with the prior art of creating a transparent window on the upper layer of the application layer, the virtual screen of the present application will not affect the functions and upgrades of various applications in the electronic device. It can not only support the electronic device to realize the full-screen handwriting function, but also can be applicable to a variety of electronic devices and a variety of applications on electronic devices, and has good versatility and compatibility.

[0133] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, various media that can store program codes, such as a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk. Optionally, in this embodiment, the processor executes the method steps recorded in the above-mentioned embodiment according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment can refer to the examples described in the above-mentioned embodiment and the optional implementation mode, and this embodiment will not be repeated here. Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented with a general computing device, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented with executable program codes of computing devices, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from here, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps in them can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.

[0134] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims are to be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the practice of this application, and the examples are to be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.

[0135] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more schemes thereof) may be used in combination with each other. For example, a person of ordinary skill in the art may use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features may be grouped together to simplify the present application. This should not be interpreted as an intention that a disclosed feature that is not required to be protected is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a particular disclosed embodiment. Thus, the following claims are incorporated herein as examples or embodiments in the specific embodiments, wherein each claim is independently a separate embodiment, and it is considered that these embodiments may be combined with each other in various combinations or arrangements. The scope of the present application should be determined with reference to the attached claims and the full scope of equivalent forms granted by these claims.

[0136] Multiple embodiments of the present application are described in detail above, but the present application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present application, and these variations and modifications should all fall within the scope of protection required by the present application.

Claims

1. A method for implementing full-screen handwriting, applied to an electronic device, comprising: Determine that the target application is in a text input mode, and control a virtual screen to obtain an input track in response to a track input operation of an input device; wherein the virtual screen is located on a data transmission path between a drive layer and a framework layer of the electronic device; Identify the input trajectory to obtain trajectory identification information; Displaying the track recognition information to realize the full-screen handwriting function; The virtual screen is located on the data transmission path of the drive layer and the framework layer of the electronic device, including: The virtual screen is arranged on the driving layer, or the virtual screen is arranged on the framework layer, or the virtual screen is located between the driving layer and the framework layer of the electronic device.

2. The implementation method according to claim 1, wherein determining that the target application is in a text input mode and controlling the virtual screen to obtain the input track in response to the track input operation of the input device comprises: In case it is determined that the target application is in a text input mode, the target application determines a target input device; The target input device includes a first input device and a second input device supported by the driver layer; When the virtual screen acquires the input track, it is determined that the target input device is the second input device.

3. According to the implementation method of claim 2, the first input device is one of a hard keyboard, a soft keyboard, and a mouse, and the second input device is a stylus or a touchpad.

4. The implementation method according to claim 1, wherein displaying the trajectory identification information comprises: transmitting the trajectory identification information to an application layer of the electronic device; The target application in the application layer is controlled to display the track identification information.

5. The implementation method according to claim 4, further comprising: Determining that the target application is in gesture mode, and controlling the virtual screen to acquire the input trajectory in response to the trajectory input operation of the input device; Reporting the input trajectory to the framework layer through the virtual screen, so that the framework layer determines the target instruction corresponding to the input trajectory based on the correspondence between the trajectory and the instruction; Controlling the framework layer to transmit the target instruction to the application layer; The target application in the application layer is controlled to respond to the target instruction.

6. The implementation method according to claim 4, further comprising: Determining that the target application is in a drawing mode, and controlling a virtual screen to acquire the input trajectory in response to a trajectory input operation of the input device; Reporting the input track to the framework layer through the virtual screen, so that the framework layer transmits the input track to the application layer; The target application in the application layer is controlled to display the input trace.

7. An electronic device comprising: The virtual screen is located on the data transmission path of the drive layer and the framework layer of the electronic device; A control module configured to determine that the target application is in a text input mode, and control the virtual screen to obtain an input track in response to a track input operation of the input device; an identification module, configured to identify the input trajectory and obtain trajectory identification information; A first display module, which is configured to display the track recognition information to realize a full-screen handwriting function; The virtual screen is arranged on the driving layer, or the virtual screen is arranged on the framework layer, or the virtual screen is located between the driving layer and the framework layer of the electronic device.

8. The electronic device according to claim 7, wherein the control module is further configured to: When it is determined that the target application is in a text input mode, the target application determines a target input device; the target input device includes a first input device and a second input device supported by the driver layer, When the virtual screen acquires the input track, it is determined that the target input device is the second input device.

Citation Information

Patent Citations

  • Input method and device and machine readable medium

    CN113407099A