Handwriting processing method and device, electronic equipment and storage medium
The device is connected to the Bluetooth module of the stylus pen, and the handwriting projection without manually triggering the screen projection is achieved, solving the problem of cumbersome screen projection operation in the existing technology, and improving user experience and data transmission security.
Patent Information
- Application Number
- CN202310524994.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2024-11-12
AI Technical Summary
In the existing handwriting flow method, the user needs to manually trigger the screen projection operation before each screen projection, which is cumbersome and reduces the user experience.
The Bluetooth module of the stylus pen simultaneously connects the first device and the second device, and directly establishes the matching relationship between the screen projection device and the device to be projected. When the user writes on the first device, he can directly project the writing handwriting according to the handwriting flow mode. On the second device, no additional screen projection operation is required.
It simplifies the operation process, improves the user experience, and can realize handwriting flow between devices even when network conditions are poor or without the network, with high security of data transmission and a wider range of application.
Smart Images

Figure CN118945258A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of screen projection technology. Specifically, the present application relates to a method, device, electronic device and storage medium for processing handwriting. Background Art
[0002] With the continuous development of science and technology, the interconnection and collaboration between different forms of electronic devices are becoming more and more common. At present, the capabilities of different forms of electronic devices can be effectively utilized through screen projection.
[0003] In the screen projection scenario, the user can trigger the screen projection operation on the first device and write on the first device with a stylus; after the first device receives the screen projection operation, it can send the handwriting data to the second device through a network connection, and the second device will display the received handwriting data. In the existing handwriting transfer method, the user needs to manually trigger the screen projection operation before each screen projection, which is cumbersome and reduces the user experience. Summary of the invention
[0004] The embodiments of the present application provide a handwriting processing method, device, electronic device and storage medium, which can solve the problem that the user needs to manually trigger the screen projection operation before each screen projection in the existing handwriting circulation method, and the operation process is cumbersome.
[0005] The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a handwriting method is provided, the method is applied to a first device, and the method includes:
[0007] In response to a writing operation of a stylus on a first page in the first device, acquiring writing handwriting data;
[0008] Determine handwriting flow patterns;
[0009] According to the handwriting circulation mode, selecting target handwriting data from the written handwriting data;
[0010] Transmitting the target handwriting data to a second device through a Bluetooth module in the stylus, so that the second device displays the target handwriting data on a second page of the second device;
[0011] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0012] Optionally, selecting target handwriting data from the written handwriting data according to the handwriting circulation mode includes:
[0013] If the handwriting circulation mode includes a handwriting synchronization mode or a writing board mode, the written handwriting data is used as the target handwriting data;
[0014] If the handwriting circulation mode includes a text input mode, in response to a first selection operation of the stylus pen, target handwriting data is selected from the written handwriting data.
[0015] Optionally, in response to the first selection operation of the stylus, selecting target handwriting data from the written handwriting data includes:
[0016] Determining a target handwriting according to a first selection operation of the handwriting pen;
[0017] using the handwriting data associated with the target handwriting as the target handwriting data;
[0018] The handwriting data associated with the target handwriting includes at least one text element.
[0019] Optionally, the handwriting data associated with the target handwriting is determined based on the following method:
[0020] Sorting each handwriting in the handwriting data according to the order of the generation time of each handwriting;
[0021] At least two writing traces that are arranged in sequence and whose generation time intervals between two adjacent writing traces are less than a preset interval are regarded as a group;
[0022] At least one written handwriting included in the group corresponding to the target handwriting is used as handwriting data associated with the target handwriting.
[0023] Optionally, in response to the first selection operation of the stylus, selecting target handwriting data from the written handwriting data includes:
[0024] Determining a target position according to a first selection operation of the stylus;
[0025] A target area range corresponding to the target position is determined, and at least one writing handwriting within the target area range is used as target handwriting data.
[0026] According to another aspect of an embodiment of the present application, a handwriting method is provided, the method being applied to a second device, the method comprising:
[0027] receiving the target handwriting data sent by the first device through the Bluetooth module of the stylus;
[0028] The target handwriting data is selected by the first device from the written handwriting data according to the handwriting circulation mode, and the written handwriting data is acquired by the first device in response to the writing operation of the stylus on the first page in the first device;
[0029] Determining a display position of a target handwriting corresponding to the target handwriting data;
[0030] Displaying the target handwriting on a second page of the second device according to the display position;
[0031] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0032] Optionally, when the handwriting circulation mode includes a text input mode, determining a display position of a target handwriting corresponding to the target handwriting data includes:
[0033] Detecting whether an input box exists in the second page;
[0034] If it is detected that there is at least one input box in the second page, determining the display position of the target handwriting according to the position of the at least one input box;
[0035] If it is detected that no input box exists in the second page, the preset display position is used as the display position of the target handwriting.
[0036] Optionally, determining the display position of the target handwriting according to the position of the at least one input box includes:
[0037] In response to a second selection operation on the at least one input box in the second page, determining a target input box from the at least one input box;
[0038] Using the position of the target input box as the display position of the target handwriting;
[0039] The step of displaying the target handwriting on a second page of the second device according to the display position includes:
[0040] According to the display position, the text recognition result of the target handwriting is displayed in the target input box of the second page.
[0041] According to another aspect of an embodiment of the present application, a handwriting processing device is provided, which is applied to a first device, and includes:
[0042] A writing handwriting data acquisition module, configured to acquire writing handwriting data in response to a writing operation of a stylus on a first page in the first device;
[0043] A handwriting circulation mode determination module, used to determine the handwriting circulation mode;
[0044] A target handwriting data acquisition module, used for selecting target handwriting data from the written handwriting data according to the handwriting circulation mode;
[0045] A data transmission module, used for transmitting the target handwriting data to a second device through a Bluetooth module in the stylus, so that the second device can display the target handwriting data in a second page of the second device;
[0046] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0047] According to another aspect of an embodiment of the present application, a handwriting processing device is provided, which is applied to a second device, and includes:
[0048] A data receiving module, used for receiving target handwriting data sent by the first device through the Bluetooth module of the stylus;
[0049] The target handwriting data is selected by the first device from the written handwriting data according to the handwriting circulation mode, and the written handwriting data is acquired by the first device in response to the writing operation of the stylus on the first page in the first device;
[0050] A display position determination module, used to determine the display position of the target handwriting corresponding to the target handwriting data;
[0051] A data display module, used for displaying the target handwriting on a second page of the second device according to the display position;
[0052] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0053] According to another aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of any one of the above-mentioned handwriting processing methods when executing the program.
[0054] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned handwriting processing methods are implemented.
[0055] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0056] By connecting the first device and the second device via Bluetooth at the same time through the stylus, a pairing relationship is directly established between the projection device and the device to be projected. When the user writes on the first projection device, the handwriting on the first device can be directly projected to the second device to be projected according to the handwriting flow mode. There is no need for the user to trigger the projection operation additionally, which simplifies the operation process and improves the user experience.
[0057] In addition, data transmission between the first device and the second device is carried out through the Bluetooth module of the stylus, and does not need to rely on the network for communication. The handwriting flow between the first device and the second device can be achieved even under poor network conditions or no network, and the scope of application is wider.
[0058] Furthermore, the first device and the second device establish point-to-point data transmission through the Bluetooth module of the stylus, thereby avoiding the problem of data leakage caused by attacks on the network by external devices, and having high data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0060] Figure 1 A schematic diagram of an application scenario of a handwriting processing method provided in an embodiment of the present application;
[0061] Figure 2 A flowchart of a handwriting processing method provided in an embodiment of the present application;
[0062] Figure 3 A schematic diagram of the structure of a stylus provided in an embodiment of the present application;
[0063] Figure 4 A schematic diagram of the internal modules of a stylus provided in an embodiment of the present application;
[0064] Figure 5 A schematic diagram of the structure of a Bluetooth module provided in an embodiment of the present application;
[0065] Figure 6 A schematic diagram of screen projection in handwriting synchronization mode provided in an embodiment of the present application;
[0066] Figure 7 A schematic diagram of screen projection when writing in writing board mode provided in an embodiment of the present application;
[0067] Figure 8 A schematic diagram of screen projection when the pen is lifted in writing board mode provided in an embodiment of the present application;
[0068] Fig. 9A schematic diagram of selecting target handwriting data provided in an embodiment of the present application;
[0069] Fig.10 A schematic diagram of screen projection in local annotation mode provided in an embodiment of the present application;
[0070] Fig.11 A schematic diagram of screen projection in a different machine annotation mode provided in an embodiment of the present application;
[0071] Fig.12 A schematic diagram of a flow chart of another method for processing handwriting provided in an embodiment of the present application;
[0072] Fig.13 A schematic diagram of a second page provided in an embodiment of the present application;
[0073] Fig.14 A schematic diagram of another second page provided in an embodiment of the present application;
[0074] Fig.15 A schematic diagram of screen projection in text input mode provided in an embodiment of the present application;
[0075] Fig.16 A schematic diagram of a handwriting transmission process provided in an embodiment of the present application;
[0076] Fig.17 A schematic diagram of the structure of a handwriting processing device provided in an embodiment of the present application;
[0077] Fig.18 A schematic diagram of another handwriting processing device provided in an embodiment of the present application
[0078] Fig.19 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0079] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0080] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0081] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0082] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0083] Figure 1 A schematic diagram of an application scenario of a handwriting processing method provided in an embodiment of the present application, such as Figure 1 As shown, the application scenario includes a first device 101, a second device 102 and a stylus 103. The first device 101 is connected to the stylus 103 via Bluetooth, and the second device 102 is connected to the stylus 103 via Bluetooth. The first device may be a screen projection device, and the second device may be a screen projection device.
[0084] The user performs a writing operation on the first device of the first device through the stylus, and the first device obtains the handwriting data; and determines the handwriting flow mode, and selects the target handwriting data from the handwriting data according to the handwriting flow mode. The first device transmits the target handwriting data to the second device through the Bluetooth module in the stylus. The second device displays the target handwriting on the second page of the second device.
[0085] The first device and the second device may both be terminals, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a laptop computer, a digital broadcast receiver, a MID (Mobile Internet Devices), a PDA (Personal Digital Assistant), a desktop computer, a smart home appliance, a vehicle-mounted terminal (such as a vehicle-mounted navigation terminal, a vehicle-mounted computer, etc.), a smart watch, etc.
[0086] It should be noted that Figure 1 The forms of the first device and the second device are examples of the first device and the second device, and do not limit the specific forms of the first device and the second device.
[0087] The handwriting processing method provided in the embodiment of the present application can be applied to any screen projection scenario, for example, conference projection in collaborative office, blackboard projection in classroom teaching, etc., and the embodiment of the present application does not limit this.
[0088] Figure 2 A flowchart of a handwriting processing method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:
[0089] Step S201, in response to a writing operation of a stylus pen on a first page in a first device, obtaining writing handwriting data.
[0090] Specifically, the first device may be a screen projection device for writing. The first device may be an electronic device with a touch interaction function, such as a smart phone, a tablet computer, a laptop computer, etc. Writing software may be installed on the first device, and the user may use a stylus to perform a writing operation on the first page of the writing software, and the writing operation may be a screen touch operation within the range of the first page.
[0091] Figure 3 A schematic diagram of the structure of a stylus provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, a switch button is provided on the stylus, and the user can pair the stylus with the writing device through the switch button on the stylus, and use the writing device as the first device.
[0092] The first device may acquire handwriting data generated by a user performing a writing operation, and the handwriting data may include coordinates of the user's handwriting in the first page.
[0093] Step S202, determining the handwriting circulation mode.
[0094] Specifically, the writing software in the first device may also include multiple candidate handwriting transfer modes. The user selects from the multiple candidate handwriting transfer modes, and the first device determines the handwriting transfer mode selected by the user. The handwriting transfer mode can be a specific form of screen projection of the writing handwriting data in the first device.
[0095] For example, there may be multiple buttons in the first page of the first device, and each button may correspond to a handwriting transfer mode. The user can click any button, and when the first device detects that the button is triggered, it can determine the handwriting transfer mode corresponding to the button so that the screen can be projected subsequently according to the handwriting transfer mode corresponding to the button.
[0096] It should be noted that the user can perform the writing operation first and then select the handwriting flow mode; or the user can first select the handwriting flow mode and then perform the writing operation, that is, the user can first execute step S201 and then execute step S202; or the user can first execute step S202 and then execute step S201. The embodiment of the present application does not limit the execution order of steps S201 and S202.
[0097] Step S203, selecting target handwriting data from the written handwriting data according to the handwriting circulation mode.
[0098] Specifically, after determining the handwriting circulation mode, the first device can use part or all of the written handwriting data as target handwriting data according to the handwriting circulation mode, wherein the target handwriting data can be the written handwriting data to be projected to the second device.
[0099] Step S204, transmitting the target handwriting data to the second device through the Bluetooth module in the stylus, so that the second device can display the target handwriting on a second page of the second device;
[0100] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0101] Specifically, the stylus may include a Bluetooth module, which may be a dual-mode Bluetooth module, and the Bluetooth module is used to establish Bluetooth connections between the first device and the second device and the stylus, that is, the first device and the second device can be connected to the stylus via Bluetooth at the same time.
[0102] Before the user writes on the first device, the user may set the stylus to establish a Bluetooth connection with the first device and the second device.
[0103] The second device may be a projected screen device for display, and the second device may be an electronic device with a display function, such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a television, an electronic whiteboard, a projection screen, etc.
[0104] Optionally, the screen size of the first device is smaller than the screen size of the second device, for example, the first device is a mobile phone, and the second device is a tablet computer or a TV; or the first device is a tablet computer, and the second device is a TV. By projecting the screen content of the small screen onto the large screen, the user's viewing experience is improved.
[0105] After the first device determines the target handwriting data to be projected to the second device, it can transmit the target handwriting to the stylus, and forward the target handwriting data to the second device through the Bluetooth module of the stylus. The second device can also be installed with writing software, and the second device can display the target handwriting data on the second page of the writing software, thereby realizing the projection of the handwriting between the first device and the second device.
[0106] In an embodiment of the present application, the first device and the second device are simultaneously connected via Bluetooth through the stylus pen, that is, a pairing relationship is directly established between the projection device and the device to be projected. When the user writes on the first projection device, the handwriting on the first device can be directly projected to the second device to be projected according to the handwriting flow mode, without the user having to trigger the projection operation additionally, thereby simplifying the operation process and improving the user experience.
[0107] In addition, data transmission between the first device and the second device is carried out through the Bluetooth module of the stylus, and does not need to rely on the network for communication. The handwriting flow between the first device and the second device can be achieved even under poor network conditions or no network, and the scope of application is wider.
[0108] Furthermore, the first device and the second device establish point-to-point data transmission through the Bluetooth module of the stylus, avoiding the problem of data leakage caused by external devices attacking the network. The data security is high and can be suitable for application scenarios with higher security requirements for data, such as confidential data, for screen projection.
[0109] As an optional embodiment, Figure 4 A schematic diagram of the internal modules of a stylus provided in an embodiment of the present application is shown in FIG. Figure 4 As shown in the figure, the stylus includes a pen tip, a pressure-sensitive coil, a mainboard, Bluetooth, a switch button, a battery and other structures. The pressure parameters sensed by the pressure-sensitive coil are transmitted to the mainboard, and then transmitted to the device paired with the switch button via Bluetooth; the battery is mainly responsible for powering the mainboard; Bluetooth can write information of two devices on the mainboard at the same time, and the MAC addresses (Media Access Control Address) of the two devices can be transmitted via Bluetooth; after the switch button is pressed, the information is transmitted to the mainboard, thereby switching the device paired with the stylus.
[0110] As an optional embodiment, Figure 5A schematic diagram of the structure of a Bluetooth module provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the Bluetooth module is a dual Bluetooth module including a low-power Bluetooth module and a classic Bluetooth module. The low-power Bluetooth module receives the Bluetooth BLE (Bluetooth Low Energy) broadcast message sent by the classic Bluetooth module. This message contains the status of the classic Bluetooth. If the received status is that a connection has been established with the Bluetooth device, the low-power Bluetooth module sends a BLE broadcast to the outside. The broadcast information contains the mac address. Other devices can search for the broadcast message and establish a connection. The connected message information is synchronized to the classic Bluetooth module through the control module. When the switching command is triggered, the devices connected to the classic Bluetooth module and the low-power Bluetooth module are exchanged to ensure that the classic Bluetooth module is connected to the device paired with the stylus. Figure 5 The I / O system stands for input output system.
[0111] As an optional embodiment, selecting target handwriting data from written handwriting data according to the handwriting circulation mode includes:
[0112] If the handwriting circulation mode includes the handwriting synchronization mode or the writing board mode, the handwriting data is used as the target handwriting data;
[0113] If the handwriting circulation mode includes a text input mode, in response to a first selection operation of the stylus pen, target handwriting data is selected from the written handwriting data.
[0114] Specifically, the handwriting transfer mode may include a handwriting synchronization mode, a writing board mode, and a text input mode. By setting a variety of different handwriting transfer modes, it can be applied to different application scenarios and different needs of users, thereby improving the flexibility of screen projection.
[0115] Among them, the handwriting synchronization mode may refer to the handwriting of the user on the first device being synchronously displayed on the second device in real time. The writing board mode may refer to the handwriting of the user on the first device not only being synchronously displayed on the second device in real time, but also not being displayed on the first device. In the writing board mode, the user can use the first device as a writing board to record ideas and share them with other users at any time. The writing board mode can be suitable for some brainstorming meeting scenarios. The text input mode may refer to the case where the handwriting of the user on the first device is text, and the text corresponding to the user's handwriting is displayed on the second device.
[0116] Figure 6 A schematic diagram of screen projection in handwriting synchronization mode provided in an embodiment of the present application is as follows: Figure 6As shown, in the handwriting synchronization mode, the handwriting written by the user on the first page of the first device is synchronously displayed in real time on the second page of the second device. Figure 7 A schematic diagram of screen projection when writing in writing board mode provided in an embodiment of the present application, Figure 8 A schematic diagram of screen projection when the pen is lifted in writing board mode provided in an embodiment of the present application, such as Figure 7 and Figure 8 As shown, in the writing board mode, when the user writes on the first page of the first device, the second page of the second device can synchronously display the user's handwriting in real time. When the user finishes writing and lifts the pen, the handwriting on the first page of the first device disappears.
[0117] If the handwriting circulation mode is the handwriting synchronization mode or the writing board mode, the first device may use all the written handwriting data as the target handwriting data.
[0118] If the handwriting flow mode is a text input mode, after the user writes on the first device with the stylus, the user can also use the stylus to perform a first selection operation in the written handwriting, and the first device uses the written handwriting corresponding to the user's first selection operation as the target handwriting data.
[0119] As an optional embodiment, when the handwriting circulation mode is the handwriting synchronization mode, the method further includes:
[0120] Receive status information sent by the stylus through the Bluetooth module of the stylus;
[0121] Based on the state information and the handwriting data, handwriting corresponding to the handwriting data is drawn on the first page.
[0122] Specifically, the stylus pen may include a sensor, which may be used to obtain state information of the user writing with the stylus pen. The sensor may include a pressure sensor, a gyroscope sensor, etc. The pressure sensor may be used to obtain pressure information of the user writing, and the gyroscope sensor may be used to obtain tilt angle information of the user writing.
[0123] The stylus can send the state information obtained by the sensor of the stylus when the user is writing to the first device through the Bluetooth module of the stylus, and the first device can draw the handwriting corresponding to the handwriting data on the first page in combination with the state information of the user's writing and the obtained handwriting data. The handwriting is drawn by combining the state information such as the pressure and tilt angle of the user's writing, so as to restore the handwriting effect of the user as much as possible.
[0124] As an optional embodiment, in response to the first selection operation of the stylus, selecting target handwriting data from the written handwriting data includes:
[0125] Determine the target handwriting according to the first selection operation of the stylus;
[0126] using the handwriting data associated with the target handwriting as the target handwriting data;
[0127] The handwriting data associated with the target handwriting includes at least one text element.
[0128] Specifically, when the handwriting flow mode is the text input mode, after the first device obtains the handwriting data generated by the user's writing operation, the user can use the stylus to perform a first selection operation among multiple handwritings that have been written. For example, the user can long press on a handwriting with the stylus, and the first device uses the handwriting selected by the first selection operation as the target handwriting.
[0129] The handwriting data acquired by the first device may include multiple handwritings, and one handwriting may be a track generated from the time when the stylus touches the screen of the first device to the time when it leaves the screen of the first device.
[0130] After determining the target handwriting, the first device can select multiple handwritings associated with the target handwriting from the handwriting data as the target handwriting data. The multiple handwritings associated with the target handwriting can be combined with the target handwriting to form at least one text element, and the text element can include a character, a word, and a sentence. In other words, the target handwriting data can be multiple handwritings of a character, multiple handwritings of a word, or multiple handwritings of a sentence.
[0131] As an optional embodiment, the handwriting data associated with the target handwriting is determined based on the following method:
[0132] Sorting each handwriting in the handwriting data according to the order of generation time of each handwriting;
[0133] At least two handwritings that are arranged in sequence and whose generation time intervals between two adjacent handwritings are less than a preset threshold are regarded as a group;
[0134] At least one written handwriting included in the group corresponding to the target handwriting is used as handwriting data associated with the target handwriting.
[0135] Specifically, when the handwriting circulation mode is the text input mode, each handwriting can be sorted according to the order of the generation time of each handwriting in the handwriting data. The generation time of the handwriting can be the moment when the handwriting is put down when the handwriting is written, or it can be the moment when the handwriting is lifted when the handwriting is written, and the embodiment of the present application does not limit this.
[0136] For each handwriting, the handwriting can be taken as the current handwriting, the serial number of the current handwriting is recorded as N, the handwriting with serial number N-1 is taken as the previous handwriting, and the handwriting with serial number N+1 is taken as the next handwriting. When the time interval between the previous handwriting and the current handwriting is less than the preset interval, the previous handwriting and the current handwriting are grouped together; similarly, when the time interval between the next handwriting and the current handwriting is less than the preset interval, the next handwriting and the current handwriting are grouped together. According to the above steps, the sorted handwritings are judged in turn, and then each handwriting can be divided into several groups. Among them, the preset interval can be specifically set according to the actual application scenario. For example, the preset interval can be 1 second.
[0137] According to the writing habits of the user, when the user writes a complete text element, the user usually writes continuously, that is, the time interval between writing each handwriting is short. Therefore, in the several groups divided by the above method, each group includes multiple handwritings that can be combined into a text element.
[0138] After the target handwriting is determined, at least one written handwriting included in the group to which the target handwriting belongs can be used as handwriting data associated with the target handwriting, ie, the target handwriting data. Fig. 9 A schematic diagram of selecting target handwriting data provided in an embodiment of the present application, such as Fig. 9 As shown, when the user long presses a point with the stylus, all the handwritings in the group corresponding to the touch point are selected as target handwriting data. When the user selects the target handwriting data and quickly drags it to the upper edge of the screen of the first device, the target handwriting data can be transferred to the second device.
[0139] As an optional embodiment, in response to the first selection operation of the stylus, selecting target handwriting data from the written handwriting data includes:
[0140] Determine a target position according to a first selection operation of the stylus;
[0141] A target area range corresponding to the target position is determined, and at least one writing handwriting within the target area range is used as target handwriting data.
[0142] Specifically, when the handwriting flow mode is the text input mode, after the first device obtains the handwriting data generated by the user's writing operation, the user can also use the stylus to perform a first selection operation in the multiple handwritings that have been written, and the first device determines the corresponding target position through the user's first selection operation. For example, the user can click a point with the stylus, and the first device can use the coordinates of the point as the target position; the user can also draw a selection box with the stylus, and the first device can use the position of the selection box as the target position, wherein the shape of the selection box can be circular, elliptical, rectangular or other arbitrary polygons, and the embodiment of the present application does not limit this.
[0143] After determining the target position, the first device may further determine the target area according to the target position, and use multiple handwritings within the target area as target handwriting data.
[0144] Optionally, when the target position is the coordinate of a point, a circular area with the point as the center and a preset radius as the radius can be used as the target area corresponding to the target position; or a rectangular area with the point as the center and a preset length and width as the side length can be used as the target area corresponding to the target position.
[0145] When the target position is the position of the selection box, the area covered by the selection box can be directly used as the target area corresponding to the target position; or the area corresponding to the minimum circumscribed rectangle of the selection box can be used as the target area corresponding to the target position.
[0146] The at least one handwriting within the target area can be combined into at least one text element, and the text element can include a character, a word, a sentence, etc. That is, the at least one handwriting within the target area can be multiple handwritings of a character, multiple handwritings of a word, or multiple handwritings of a sentence.
[0147] As an optional embodiment, the handwriting flow mode may also include a local annotation mode and a cross-machine annotation mode. The buttons of "Local Annotation" and "Cross-machine Annotation" may be displayed floatingly on the first page. When the user clicks the "Local Annotation" button, the first device detects that the local annotation mode is triggered; when the user clicks the "Cross-machine Annotation" button, the first device detects that the cross-machine annotation mode is triggered.
[0148] Fig.10 A schematic diagram of screen projection in the local annotation mode provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, in the local annotation mode, the user can annotate on the first device, take a screenshot by long pressing the current annotation screen, and quickly move the screenshot to the upper edge of the screen to automatically transfer it to the second device for display.
[0149] Fig.11 A schematic diagram of screen projection in a different machine annotation mode provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, in the cross-device annotation mode, the user can pull the screen of the second device and project it to the first device, and the annotated content in the screen pulled by the user in the first device can be synchronously displayed on the second device. At this time, both devices can call up the annotation mode to annotate, and after exiting this mode, both devices will exit the annotation mode.
[0150] Fig.12 A flowchart of a handwriting processing method provided in an embodiment of the present application is provided, and the method is applied to a second device, such as Fig.12 As shown, the method includes:
[0151] Step S301, receiving target handwriting data sent by a first device through a Bluetooth module of the stylus;
[0152] The target handwriting data is selected by the first device from the written handwriting data according to the handwriting flow mode, and the written handwriting data is obtained by the first device in response to a writing operation of the stylus on the first page in the first device;
[0153] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0154] Specifically, the first device may be a screen projection device for writing, and the second device may be a screen projection device for display. The stylus may include a Bluetooth module, which may be a dual-mode Bluetooth module, and the Bluetooth module is used to establish a Bluetooth connection between the first device and the second device and the stylus, that is, the first device and the second device can be connected to the stylus Bluetooth at the same time.
[0155] Writing software may be installed on the first device, and the user may perform writing operations on the first page of the writing software using a stylus pen. The first device may obtain handwriting data generated by the user's writing operation.
[0156] The writing software in the first device may also include multiple candidate handwriting flow modes. The user selects from the multiple candidate handwriting flow modes. After the first device determines the handwriting flow mode selected by the user, it can use part or all of the written handwriting data as target handwriting data according to the handwriting flow mode.
[0157] After determining the target handwriting data to be projected to the second device, the first device can transmit the target handwriting to the stylus, and forward the target handwriting data to the second device through the Bluetooth module of the stylus.
[0158] Among them, the target handwriting data transmitted by the first device to the second device can be the coordinate data of the handwriting to be projected to the second device, or it can be image data including the handwriting to be projected to the second device. The embodiment of the present application does not limit the specific format of the target handwriting data.
[0159] Step S302, determining the display position of the target handwriting corresponding to the target handwriting data;
[0160] Step S303: display the target handwriting in the second page of the second device according to the display position.
[0161] Specifically, after receiving the target handwriting data sent by the first device, the second device can determine the display position of the target handwriting included in the target handwriting data, and display the target handwriting on the second page of the second device according to the display position.
[0162] Optionally, the target handwriting data may include the coordinates of the target handwriting on the screen of the first device. The second device may determine the coordinates of the target handwriting on the screen of the second device based on the coordinates of the target handwriting on the screen of the first device, as well as the screen size of the first device and the screen size of the second device, as the display position of the target handwriting, thereby realizing the projection of the target handwriting from the first device to the second device in proportion. In addition, the user may also customize the display position of the target handwriting on the second device, and the embodiment of the present application does not limit the method for determining the display position.
[0163] In an embodiment of the present application, the first device and the second device are simultaneously connected via Bluetooth through the stylus pen, that is, a pairing relationship is directly established between the projection device and the device to be projected. When the user writes on the first projection device, the handwriting on the first device can be directly projected to the second device to be projected according to the handwriting flow mode, without the user having to trigger the projection operation additionally, thereby simplifying the operation process and improving the user experience.
[0164] In addition, data transmission between the first device and the second device is carried out through the Bluetooth module of the stylus, and does not need to rely on the network for communication. The handwriting flow between the first device and the second device can be achieved even under poor network conditions or no network, and the scope of application is wider.
[0165] Furthermore, the first device and the second device establish point-to-point data transmission through the Bluetooth module of the stylus, avoiding the problem of data leakage caused by external devices attacking the network. The data security is high and can be suitable for application scenarios with higher security requirements for data, such as confidential data, for screen projection.
[0166] As an optional embodiment, when the handwriting circulation mode includes a text input mode, determining the display position of the target handwriting corresponding to the target handwriting data includes:
[0167] Check if there is an input box in the second page;
[0168] If it is detected that there is at least one input box in the second page, determining the display position of the target handwriting according to the position of the at least one input box;
[0169] If it is detected that there is no input box in the second page, the preset display position is used as the display position of the target handwriting.
[0170] Specifically, when the handwriting circulation mode of the first device is the text input mode, the handwriting written by the user on the first device is text, and the text written by the user can be information related to the second page of the second device. For example, when the second page of the second device is a search web page, the text written by the user on the first device can be a search text for searching; for another example, when the second page of the second device is a document or a presentation, the text written by the user on the first device can be text for annotating the document or presentation on the second page.
[0171] When the handwriting flow mode of the first device is a text input mode, the second device can detect whether there is an input box in the second page, wherein the input box can be an interactive control for inputting information.
[0172] When detecting that there is at least one input box in the second page, the second device may determine the display position of the target handwriting according to the position of the at least one input box.
[0173] When there is an input box in the second page, the second device may use the position of the input box as the display position of the target handwriting. Fig.13 A schematic diagram of a second page provided for an embodiment of the present application. When there are multiple input boxes in the second page, the second device can use the position of any input box as the display position of the target handwriting; it can also use the position of the input box arranged at a specified position as the display position of the target handwriting according to the arrangement position of each input box, for example, use the position of the first input box as the display position of the target handwriting; it can also use the position of the text input box in the multiple input boxes as the display position of the target handwriting according to the types corresponding to the multiple input boxes.
[0174] When it is detected that there is no input box in the second page, the second device may use the preset display position as the display position of the target handwriting. Fig.14 A schematic diagram of a second page provided in an embodiment of the present application, such as Fig.14As shown, the second device can display the target handwriting in the upper left corner of the second page. In addition, the second device can also determine the display mode of the target handwriting. For example, the second device can display the target handwriting in the form of a sticky note or in the form of a marquee. This embodiment of the present application does not limit this.
[0175] In an embodiment of the present application, the second device detects whether there is an input box in the second page, and adopts different methods to determine the display position of the target handwriting according to different situations. When the user performs a search or annotation, the second device can automatically display the target handwriting data transmitted by the first device at the corresponding position without the user having to perform additional operations, thereby simplifying the user's operation process and improving the user experience.
[0176] As an optional embodiment, determining the display position of the target handwriting according to the position of at least one input box includes:
[0177] In response to a second selection operation on at least one input box in the second page, determining a target input box from the at least one input box;
[0178] The position of the target input box is used as the display position of the target handwriting;
[0179] According to the display position, the target handwriting is displayed on the second page of the second device, including:
[0180] According to the display position, the text recognition result of the target handwriting is displayed in the target input box of the second page.
[0181] Specifically, when there are multiple input boxes in the second page of the second device, the user can also select a target input box from the multiple input boxes through the second selection operation. The user can select by touching and clicking, or by other external devices of the second device, such as clicking with a mouse.
[0182] The second device may use the position of the target input box selected by the user as the display position of the target handwriting, and display the text recognition result corresponding to the target handwriting in the target input box according to the display position. Fig.15 A schematic diagram of screen projection in text input mode provided in an embodiment of the present application is as follows: Fig.15 As shown, the user writes "Our country is the birthplace of Chinese characters" in the first page of the first device, and the text recognition result corresponding to the handwriting is displayed in the input box of the second device.
[0183] Among them, the text recognition result corresponding to the target handwriting can be obtained by identifying the trajectory points of the target handwriting. The text recognition of the target handwriting can be performed in the first device, and the first device directly transmits the text recognition result corresponding to the target handwriting to the second device; it can also be performed in the second device, and the second device obtains the text recognition of the target handwriting in the target handwriting data after receiving the target handwriting data transmitted by the first device.
[0184] In an embodiment of the present application, by responding to a second selection operation on at least one input box in the second page, a target input box is determined from at least one input box, and the text recognition result of the target handwriting is displayed in the target input box on the second page. The user can set the display position of the target handwriting in the second device by himself, which improves the flexibility of screen projection. At the same time, the text recognition result corresponding to the target handwriting can be directly displayed, avoiding the problem that handwritten handwriting easily causes reading difficulties or misunderstandings, and improving the accuracy of information sharing.
[0185] As an optional embodiment, Fig.16 A schematic diagram of a handwriting transmission process provided in an embodiment of the present application is shown as follows: Fig.16 As shown, the handwriting transmission process may include:
[0186] The stylus transmits the sensor's tilt angle, pressure and other information to the classic Bluetooth module through the Bluetooth host, and then transmits it to the Bluetooth controller through the LL (Link Layer) layer link B, and finally transmits it to the first device through the data link. Through this link, the stylus can transmit the information obtained by the sensor to the first device. Fig.16 Here, handleA or handleB may represent a processing function, and sensorhub may represent an intelligent sensor hub.
[0187] The first device transmits the handwriting in the form of coordinate point data or picture format data to the Bluetooth controller through the data link B2, and the Bluetooth controller transmits it to the classic Bluetooth module through the LL layer link. The classic Bluetooth module transmits the message information to the low-power Bluetooth, and then transmits it to the Bluetooth controller through the LL layer link and finally to the second device. The second device draws the handwriting according to the coordinate point data or directly displays the picture in full screen.
[0188] The stylus can be connected to two Bluetooth terminal devices at the same time. Different devices can be switched through the device switch button at the tail. After connection and pairing, the driver is automatically installed and the writing software APP (Application) information is released. A writing software download webpage is provided and users can choose whether to download. After downloading, the functions corresponding to various handwriting flow modes can be realized.
[0189] When the screen size of the first device is smaller than that of the second device, the method provided in the embodiment of the present application can enable the same stylus to switch smoothly between different device platforms and the handwriting to flow, so that the user's writing on the small screen can be synchronized to the large screen; or the content on the small screen is recognized and transferred to the large-screen input box or displayed as a note or a ticker; or all handwriting is transferred to the large screen after the small screen is used as a writing board, and the small screen itself does not retain the handwriting; or the content on the small screen is annotated and transferred to the large screen for viewing; or the small screen pulls the large screen image for annotating and synchronizes the handwriting to the large screen, which greatly facilitates daily office work and reduces the cost of interaction between large and small screens.
[0190] Fig.17 A schematic diagram of the structure of a handwriting processing device provided in an embodiment of the present application, the device is applied to a first device, such as Fig.17 As shown, the device comprises:
[0191] A writing handwriting data acquisition module 401, configured to acquire writing handwriting data in response to a writing operation of a stylus on a first page in the first device;
[0192] A handwriting circulation mode determination module 402, used to determine the handwriting circulation mode;
[0193] A target handwriting data acquisition module 403 is used to select target handwriting data from the written handwriting data according to the handwriting circulation mode;
[0194] The data transmission module 404 is used to transmit the target handwriting data to the second device through the Bluetooth module in the stylus, so that the second device can display the target handwriting data in the second page of the second device;
[0195] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0196] As an optional embodiment, in the device, the target handwriting data acquisition module 403 includes:
[0197] A first acquisition submodule, configured to use the written handwriting data as the target handwriting data if the handwriting circulation mode includes a handwriting synchronization mode or a writing board mode;
[0198] The second acquisition submodule is used for selecting target handwriting data from the written handwriting data in response to a first selection operation of the handwriting pen if the handwriting circulation mode includes a text input mode.
[0199] As an optional embodiment, in the device, the second acquisition submodule is specifically used for:
[0200] Determining a target handwriting according to a first selection operation of the handwriting pen;
[0201] using the handwriting data associated with the target handwriting as the target handwriting data;
[0202] The handwriting data associated with the target handwriting includes at least one text element.
[0203] As an optional embodiment, the device further includes a handwriting grouping module, which is used to:
[0204] Sorting each handwriting in the handwriting data according to the order of the generation time of each handwriting;
[0205] At least two writing traces that are arranged in sequence and whose generation time intervals between two adjacent writing traces are less than a preset interval are regarded as a group;
[0206] At least one written handwriting included in the group corresponding to the target handwriting is used as handwriting data associated with the target handwriting.
[0207] As an optional embodiment, in the device, the second acquisition submodule is specifically used for:
[0208] Determining a target position according to a first selection operation of the stylus;
[0209] A target area range corresponding to the target position is determined, and at least one writing handwriting within the target area range is used as target handwriting data.
[0210] Fig.18 A schematic diagram of the structure of a handwriting processing device provided in an embodiment of the present application, the device is applied to a second device, such as Fig.18 As shown, the device comprises:
[0211] The data receiving module 501 is used to receive the target handwriting data sent by the first device through the Bluetooth module of the stylus;
[0212] The target handwriting data is selected by the first device from the written handwriting data according to the handwriting circulation mode, and the written handwriting data is acquired by the first device in response to the writing operation of the stylus on the first page in the first device;
[0213] A display position determination module 502, used to determine the display position of the target handwriting corresponding to the target handwriting data;
[0214] A data display module 503, configured to display the target handwriting in a second page of the second device according to the display position;
[0215] The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
[0216] As an optional embodiment, the display position determination module 502 includes:
[0217] An input box detection module, used to detect whether there is an input box in the second page;
[0218] A first determination submodule, configured to determine a display position of the target handwriting according to a position of the at least one input box if at least one input box is detected in the second page;
[0219] The second determining submodule is used to use a preset display position as the display position of the target handwriting if it is detected that no input box exists in the second page.
[0220] As an optional embodiment, the first determining submodule in the device is specifically used for:
[0221] In response to a second selection operation on the at least one input box in the second page, determining a target input box from the at least one input box;
[0222] Using the position of the target input box as the display position of the target handwriting;
[0223] The data display module in the device is specifically used for:
[0224] According to the display position, the text recognition result of the target handwriting is displayed in the target input box of the second page.
[0225] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0226] In an embodiment of the present application, an electronic device is provided, including a memory, a processor and a computer program stored in the memory. The processor executes the above computer program to implement the steps of the above writing handwriting processing method. Compared with the related art, it can achieve: connecting the first device and the second device simultaneously via Bluetooth through the stylus, that is, directly establishing a pairing relationship between the projection device and the device to be projected. When the user writes on the first device to be projected, the writing handwriting on the first device can be directly projected to the second device to be projected according to the handwriting flow mode, without the user having to trigger the projection operation, which simplifies the operation process and improves the user experience. In addition, the data transmission between the first device and the second device is carried out through the Bluetooth module of the stylus, and does not need to rely on the network for communication. The handwriting flow between the first device and the second device can also be realized under poor network conditions or no network conditions, and the scope of application is wider. Furthermore, the first device and the second device establish point-to-point data transmission through the Bluetooth module of the stylus, avoiding the problem of data leakage caused by attacks on the network by external devices, and the data security is high.
[0227] In an alternative embodiment, an electronic device is provided, such as Fig.19 As shown, Fig.19 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0228] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0229] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.19 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0230] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0231] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.
[0232] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0233] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0234] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0235] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A method for processing handwriting, characterized in that: Applied to a first device, comprising: In response to a writing operation of a stylus on a first page in the first device, acquiring writing handwriting data; Determine handwriting flow patterns; According to the handwriting circulation mode, selecting target handwriting data from the written handwriting data; Transmitting the target handwriting data to a second device through a Bluetooth module in the stylus, so that the second device displays the target handwriting data on a second page of the second device; The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
2. The handwriting processing method according to claim 1, characterized in that: The step of selecting target handwriting data from the written handwriting data according to the handwriting circulation mode comprises: If the handwriting circulation mode includes a handwriting synchronization mode or a writing board mode, the written handwriting data is used as the target handwriting data; If the handwriting circulation mode includes a text input mode, in response to a first selection operation of the stylus pen, target handwriting data is selected from the written handwriting data.
3. The handwriting processing method according to claim 2, characterized in that: The step of selecting target handwriting data from the written handwriting data in response to the first selection operation of the stylus pen comprises: Determining a target handwriting according to a first selection operation of the handwriting pen; using the handwriting data associated with the target handwriting as the target handwriting data; The handwriting data associated with the target handwriting includes at least one text element.
4. The handwriting processing method according to claim 3, characterized in that: The handwriting data associated with the target handwriting is determined based on the following method: Sorting each handwriting in the handwriting data according to the order of the generation time of each handwriting; At least two writing traces that are arranged in sequence and whose generation time intervals between two adjacent writing traces are less than a preset interval are regarded as a group; At least one written handwriting included in the group corresponding to the target handwriting is used as handwriting data associated with the target handwriting.
5. The handwriting processing method according to claim 3, characterized in that: The step of selecting target handwriting data from the written handwriting data in response to the first selection operation of the stylus pen comprises: Determining a target position according to a first selection operation of the stylus; A target area range corresponding to the target position is determined, and at least one writing handwriting within the target area range is used as target handwriting data.
6. A method for processing handwriting, characterized in that: Applied to the second device, comprising: receiving the target handwriting data sent by the first device through the Bluetooth module of the stylus; The target handwriting data is selected by the first device from the written handwriting data according to the handwriting circulation mode, and the written handwriting data is acquired by the first device in response to the writing operation of the stylus on the first page in the first device; Determining a display position of a target handwriting corresponding to the target handwriting data; Displaying the target handwriting on a second page of the second device according to the display position; The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
7. The handwriting processing method according to claim 6, characterized in that: In the case where the handwriting circulation mode includes a text input mode, determining the display position of the target handwriting corresponding to the target handwriting data includes: Detecting whether an input box exists in the second page; If it is detected that there is at least one input box in the second page, determining the display position of the target handwriting according to the position of the at least one input box; If it is detected that no input box exists in the second page, the preset display position is used as the display position of the target handwriting.
8. The handwriting processing method according to claim 7, characterized in that: Determining the display position of the target handwriting according to the position of the at least one input box includes: In response to a second selection operation on the at least one input box in the second page, determining a target input box from the at least one input box; Using the position of the target input box as the display position of the target handwriting; The step of displaying the target handwriting on a second page of the second device according to the display position includes: According to the display position, the text recognition result of the target handwriting is displayed in the target input box of the second page.
9. A handwriting processing device, characterized in that: Applied to a first device, comprising: A writing handwriting data acquisition module, configured to acquire writing handwriting data in response to a writing operation of a stylus on a first page in the first device; A handwriting circulation mode determination module, used to determine the handwriting circulation mode; A target handwriting data acquisition module, used for selecting target handwriting data from the written handwriting data according to the handwriting circulation mode; A data transmission module, used for transmitting the target handwriting data to a second device through a Bluetooth module in the stylus, so that the second device can display the target handwriting data in a second page of the second device; The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
10. A handwriting processing device, characterized in that: Applied to the second device, comprising: A data receiving module, used for receiving target handwriting data sent by the first device through the Bluetooth module of the stylus; The target handwriting data is selected by the first device from the written handwriting data according to the handwriting circulation mode, and the written handwriting data is acquired by the first device in response to the writing operation of the stylus on the first page in the first device; A display position determination module, used to determine the display position of the target handwriting corresponding to the target handwriting data; A data display module, used for displaying the target handwriting on a second page of the second device according to the display position; The first device is connected to the stylus via Bluetooth, and the second device is connected to the stylus via Bluetooth.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 10.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Cited By
Instruction execution method and system, electronic equipment, medium and program product
CN121143700A
