An operating system-based handwriting processing method and system
By using an operating system-based handwriting processing method, stable transmission and storage of handwriting in the intelligent paper-and-pen system were achieved, solving the problem of handwriting loss caused by network fluctuations and improving the stability and efficiency of the teaching system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 广州市博雅信息科技有限公司
- Filing Date
- 2022-09-09
- Publication Date
- 2026-05-08
AI Technical Summary
Intelligent paper-and-pen teaching systems are prone to losing handwriting when the network fluctuates, affecting the quality of teacher-student interaction.
It adopts an operating system-based handwriting processing method, obtains handwriting data through socket communication, uses WebSocket communication to realize real-time handwriting transmission and display, utilizes solid-state drives to store handwriting data, and combines cloud databases for secure storage and management of handwriting.
It effectively reduced the handwriting loss rate by 30%, improved the quality of teacher-student interaction, reduced system energy consumption, and ensured that handwriting was not lost.
Smart Images

Figure CN115525163B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent paper and pen technology, specifically to a handwriting processing method and system based on an operating system. Background Technology
[0002] Currently, smart paper and pens are becoming a key focus in the construction of smart classrooms, and many primary and secondary schools are adopting them. In practice, smart paper and pens can digitize handwriting data, enabling digital teaching and making teaching more precise and efficient.
[0003] Intelligent paper-and-pen teaching systems are mainly used to enable interactive teaching between teachers and students. They belong to the Internet of Things (IoT) system. However, many intelligent pens often experience network drops and pen loss or disorder when there are large network fluctuations during classroom teaching, which may result in the loss of handwriting data transmission.
[0004] Therefore, it is necessary to redesign and modify the intelligent paper-and-pen teaching system to effectively prevent the loss of handwriting. Summary of the Invention
[0005] To address the problems mentioned in the background section, the present invention aims to provide a handwriting processing method and system based on an operating system, which has the advantage of not losing handwriting and solves the problem of handwriting loss in intelligent paper-and-pen teaching systems.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a handwriting processing method based on an operating system, comprising the following steps:
[0007] Handwriting acquisition steps: Create a Windows window program to obtain handwriting data uploaded by the smart pen through socket communication, and then store the raw data in a text log created daily for later verification. Convert the coordinate information into pixel units and send it to the handwriting processing service. If the WebSocket communication function is enabled, the handwriting is also sent to a test webpage for real-time testing and comparison.
[0008] Handwriting output steps: The real-time handwriting returned by the handwriting processing service is obtained through WebSocket communication. The handwriting contains information such as coordinates, writing paper ID, time, and smart pen ID. The smart pen information is obtained through the smart pen ID in the handwriting, and the handwriting is displayed on different display elements according to the smart pen. The paper information is matched and loaded according to the paper ID. The handwriting is divided into three categories: pen stroke, pen lift, and movement. The points of movement between the pen stroke and the pen lift are connected to form a stroke. Finally, the strokes are connected to form characters. The handwriting is divided into multiple pages according to the paper ID. The last page written is displayed by default, and the pages can be switched freely.
[0009] Handwriting playback steps: Use the handwriting processing service to obtain handwriting data from the smart pen within a certain time and range.
[0010] As a preferred embodiment of the present invention, in the handwriting acquisition step, the Windows window program is a handwriting receiving service, which can receive and collect various original handwritings.
[0011] As a preferred embodiment of the present invention, in the handwriting acquisition step, the text log is a solid-state drive (SSD). The original data is stored on the SSD to avoid data loss and can also be used for comparison.
[0012] As a preferred embodiment of the present invention, the handwriting playback step is provided by a timer function within the handwriting processing service, which reproduces the handwriting process at a constant speed.
[0013] As a preferred embodiment of the present invention, the following steps are included:
[0014] S1: During the writing process of the smart pen, the pen itself reports handwriting data to the AP receiving device in real time via its Bluetooth device. The AP receiving device will establish a TCP long connection with the backend receiving service in advance. After receiving the handwriting data uploaded by the smart pen, it will report it to the backend receiving service in real time via the TCP long connection. The backend receiving service responds with different responses based on the different information reported, thereby establishing a stable communication channel with the AP receiving device, and then executing S2.
[0015] S2: After receiving the handwriting data, the backend collection service will first cache the handwriting data for subsequent processing of the web frontend service's response. The backend collection service establishes a WebSocket connection with the web frontend service and saves the communication connection through heartbeat messages. Teachers can click different function buttons on the web frontend service page to send different message requests to the backend collection service. The backend collection service processes the handwriting data according to the message requests sent by the web frontend service and responds with corresponding messages to the web frontend service. The web frontend service implements different teaching experiences based on the response messages. The backend collection service can upload the data to the cloud database on a regular basis, and at the same time, it will solidify the handwriting data into images and save them to the cloud OSS on a regular daily basis.
[0016] As a preferred embodiment of the present invention, the smart pen is a Bluetooth sensor pen, which can transmit handwriting data to the AP receiving device via Bluetooth pen writing.
[0017] As a preferred embodiment of the present invention, the cloud database is a tablestore cloud database, which can be displayed on different network devices and can be opened with an account and password.
[0018] As a preferred embodiment of the present invention, the backend collection service is internally equipped with an independent cloud storage database, through which handwriting data is stored independently.
[0019] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0020] 1. By setting up handwriting acquisition, handwriting output, and handwriting playback steps, this invention reduces handwriting loss by 30% compared to systems with similar capabilities, improves the quality of teacher-student interaction, reduces the energy consumption of the entire paper-and-pen system, and thus achieves the effect of not losing handwriting, solving the problem of handwriting loss in intelligent paper-and-pen teaching systems. Attached Figure Description
[0021] Figure 1 This is a flowchart of the present invention. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] like Figure 1 As shown, the present invention provides a handwriting processing method based on an operating system, comprising the following steps:
[0024] Handwriting acquisition steps: Create a Windows window program to obtain handwriting data uploaded by the smart pen through socket communication, and then store the raw data in a text log created daily for later verification. Convert the coordinate information into pixel units and send it to the handwriting processing service. If the WebSocket communication function is enabled, the handwriting is also sent to a test webpage for real-time testing and comparison.
[0025] Handwriting output steps: The real-time handwriting returned by the handwriting processing service is obtained through WebSocket communication. The handwriting contains information such as coordinates, writing paper ID, time, and smart pen ID. The smart pen information is obtained through the smart pen ID in the handwriting, and the handwriting is displayed on different display elements according to the smart pen. The paper information is matched and loaded according to the paper ID. The handwriting is divided into three categories: pen stroke, pen lift, and movement. The points of movement between the pen stroke and the pen lift are connected to form a stroke. Finally, the strokes are connected to form characters. The handwriting is divided into multiple pages according to the paper ID. The last page written is displayed by default, and the pages can be switched freely.
[0026] Handwriting playback steps: Use the handwriting processing service to obtain handwriting data from the smart pen within a certain time and range.
[0027] refer to Figure 1 The Windows program is a handwriting reception service, which can receive and collect various original handwriting samples.
[0028] refer to Figure 1 The text logs are stored on solid-state drives (SSDs) to prevent data loss and also for comparison purposes.
[0029] refer to Figure 1 The handwriting playback process utilizes a timer function within the handwriting processing service to reproduce the handwriting process at a constant speed.
[0030] refer to Figure 1 This includes the following steps:
[0031] S1: During the writing process of the smart pen, the pen itself reports handwriting data to the AP receiving device in real time via its Bluetooth device. The AP receiving device will establish a TCP long connection with the backend receiving service in advance. After receiving the handwriting data uploaded by the smart pen, it will report it to the backend receiving service in real time via the TCP long connection. The backend receiving service responds with different responses based on the different information reported, thereby establishing a stable communication channel with the AP receiving device, and then executing S2.
[0032] S2: After receiving the handwriting data, the backend collection service will first cache the handwriting data for subsequent processing of the web frontend service's response. The backend collection service establishes a WebSocket connection with the web frontend service and saves the communication connection through heartbeat messages. Teachers can click different function buttons on the web frontend service page to send different message requests to the backend collection service. The backend collection service processes the handwriting data according to the message requests sent by the web frontend service and responds with corresponding messages to the web frontend service. The web frontend service implements different teaching experiences based on the response messages. The backend collection service can upload the data to the cloud database on a regular basis, and at the same time, it will solidify the handwriting data into images and save them to the cloud OSS on a regular daily basis.
[0033] refer to Figure 1 The smart pen is a Bluetooth sensor pen that can transmit handwriting data to the access point (AP) receiving device via Bluetooth.
[0034] refer to Figure 1 The cloud database is the Tablestore cloud database, which can be displayed on different network devices and can be accessed with an account and password.
[0035] refer to Figure 1The backend collection service has an independent cloud database for storing handwriting data.
[0036] The working principle and usage process of this invention are as follows: During use, the smart pen reports handwriting data to the AP (ap) receiving device in real time via its own Bluetooth device. The AP receiving device establishes a long TCP connection with the backend receiving service beforehand. After receiving the handwriting data uploaded by the smart pen, it immediately reports it to the backend receiving service via the long TCP connection. The backend receiving service responds with different responses based on the different information reported, thus establishing a stable communication channel with the AP receiving device. After receiving the handwriting data, the backend receiving service first caches the handwriting data for subsequent processing of the web frontend service's response operations. The backend receiving service establishes a WebSocket connection with the web frontend service and saves the communication connection through heartbeat messages. Teachers can click different function buttons on the web frontend service page to send different message requests to the backend receiving service. The backend receiving service processes the handwriting data according to the message requests sent by the web frontend service and responds with corresponding messages to the web frontend service. The web frontend service implements different teaching experiences based on the response messages. The backend receiving service can periodically upload data to the cloud database and also periodically save the handwriting data as images to the cloud OSS (Object Storage Service) every day.
[0037] In summary, this operating system-based handwriting processing method and system, by setting handwriting acquisition, output, and playback steps, reduces handwriting loss by 30% compared to systems with similar capabilities. This improves the quality of teacher-student interaction, reduces the energy consumption of the entire paper-and-pen system, and achieves the effect of not losing handwriting, thus solving the problem of handwriting loss in intelligent paper-and-pen teaching systems.
[0038] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0039] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A handwriting processing method based on an operating system, characterized in that: Includes the following steps: Handwriting acquisition steps: Create a Windows window program to obtain handwriting data uploaded by the smart pen through socket communication, and then store the raw data in a text log created daily for later verification. Convert the coordinate information into pixel units and send it to the handwriting processing service. If the WebSocket communication function is enabled, the handwriting is also sent to a test webpage for real-time testing and comparison. Handwriting output steps: Obtain real-time handwriting returned by the handwriting processing service via WebSocket communication. The handwriting contains: coordinates, writing paper ID, time, and smart pen ID information. Obtain smart pen information through the smart pen ID in the handwriting, and display the handwriting on different display elements according to the smart pen. Match and load paper information according to paper ID. The handwriting is divided into three categories: pen stroke, pen lift, and movement. Connect the points of movement between pen stroke and pen lift to form a stroke. Finally, the strokes are connected to form characters. Divide the handwriting into multiple pages according to paper ID. The last page written is displayed by default, and can be switched freely. Handwriting playback steps: The handwriting processing service acquires handwriting data from the smart pen within a certain timeframe and range. In the handwriting acquisition step, a Windows window program serves as the handwriting receiving service, capable of receiving and collecting various original handwriting samples. The text log is stored on a solid-state drive (SSD) to prevent data loss and facilitate comparison. In the handwriting playback step, the handwriting processing service incorporates a timer function to uniformly reproduce the handwriting process. The handwriting processing method includes the following steps: S1: During the writing process of the smart pen, the pen itself reports handwriting data to the AP receiving device in real time via its Bluetooth device. The AP receiving device will establish a TCP long connection with the backend receiving service in advance. After receiving the handwriting data uploaded by the smart pen, it will report it to the backend receiving service in real time via the TCP long connection. The backend receiving service responds with different responses based on the different information reported, thereby establishing a stable communication channel with the AP receiving device, and then executing S2. S2: After receiving the handwriting data, the backend collection service will first cache the handwriting data for subsequent processing of the web frontend service's response. The backend collection service establishes a WebSocket connection with the web frontend service and saves the communication connection through heartbeat messages. Teachers can click different function buttons on the web frontend service page to send different message requests to the backend collection service. The backend collection service processes the handwriting data according to the message requests sent by the web frontend service and responds with corresponding messages to the web frontend service. The web frontend service implements different teaching experiences based on the response messages. The backend collection service can upload the data to the cloud database on a regular basis, and at the same time, it will solidify the handwriting data into images and save them to the cloud OSS on a regular daily basis.
2. The handwriting processing method based on an operating system according to claim 1, characterized in that: The smart pen is a Bluetooth sensor pen, which can transmit handwriting data to the access point (AP) receiving device via Bluetooth.
3. The handwriting processing method based on an operating system according to claim 1, characterized in that: The cloud database mentioned is the Tablestore cloud database, which can be displayed on different network devices and can be accessed using an account and password.
4. The handwriting processing method based on an operating system according to claim 1, characterized in that: The backend collection service has an independent cloud database for storing handwriting data.
Citation Information
Patent Citations
Intelligent handwriting playback system
CN111679763A
Teaching system
CN113946249A
Method for real-time sharing online contents based on websocket server and a computer-readable storage medium having program to perform the same
KR1020160067449A