CN-115525163-B - Handwriting processing method and system based on operating system
Abstract
The invention discloses a handwriting processing method and system based on an operating system, comprising the following steps of creating a windows window program, acquiring handwriting data uploaded by an intelligent pen through socket communication, storing the original data into a text log created by a day for later verification, converting coordinate information into pixel units, sending the pixel units to a handwriting processing service, and sending handwriting to a test webpage for real-time test comparison if a Websocket communication function is started, and acquiring real-time handwriting returned by the handwriting processing service through Websocket communication. According to the invention, by setting the handwriting acquisition step, the handwriting output step and the handwriting playback step, the lost handwriting can be reduced by 30% under the comparison of systems with the same capacity, the interactive quality of teachers and students is improved, and the energy consumption of the whole paper-pen system is reduced, so that the effect of not losing the handwriting is achieved, and the problem that the intelligent paper-pen teaching system can lose the handwriting is solved.
Inventors
- HU KAIQING
Assignees
- 广州市博雅信息科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20220909
Claims (4)
- 1. A handwriting processing method based on an operating system is characterized by comprising the following steps: Creating a windows window program, acquiring handwriting data uploaded by an intelligent pen through socket communication, storing the original data into a text log created by a day for later verification, converting coordinate information into pixel units, sending the pixel units to a handwriting processing service, and sending the handwriting to a test webpage for real-time test comparison if a Websocket communication function is started; the handwriting output step comprises the steps of obtaining real-time handwriting returned by handwriting processing service through WebSocket communication, wherein the handwriting comprises coordinates, writing paper ID, time and intelligent pen ID information, obtaining intelligent pen information through the intelligent pen ID in the handwriting, displaying the handwriting on different display elements according to the intelligent pen distinction, matching and loading the paper information according to the paper ID, dividing the handwriting into three types of pen down, pen lifting and movement, connecting points moving from pen down to pen lifting into one pen, finally dividing the handwriting into a plurality of pages according to the paper ID through connecting strokes, displaying the last written page by default, and freely switching; the handwriting playback step, in which handwriting data of the intelligent pen in a certain range are acquired through handwriting processing service, the handwriting acquisition step is that a windows window program is handwriting receiving service, various original handwriting can be received and collected through the handwriting receiving service, a text log is a solid state disk, the original data are stored through the solid state disk, the original data are prevented from being lost, meanwhile, the original data can be used for comparison, the handwriting playback step is that a timer function is arranged in the handwriting processing service, and the handwriting writing process is reproduced at a constant speed through the timer function, and the handwriting processing method comprises the following steps: In the writing process of the intelligent pen, writing data is reported to an ap collecting device in real time through Bluetooth equipment of the intelligent pen, the ap collecting device establishes a tcp long link with a back-end collecting service in advance, after receiving writing data uploaded by the intelligent pen, the writing data is reported to the back-end collecting service in real time in a tcp long connection mode, the back-end collecting service responds to different responses according to different reported information, so that a stable communication channel is established between the writing data and the ap collecting device, and then S2 is executed; And S2, after receiving handwriting data, the back-end receipt service firstly caches the handwriting data for subsequent processing of response operation of the Web front-end service, establishes WebSocket connection with the Web front-end service, stores communication connection through heartbeat messages, enables a teacher to click different function buttons on a Web front-end service page, sends different message requests to the back-end receipt service, carries out corresponding business logic processing on the handwriting data according to the message requests sent by the Web front-end service, responds to the corresponding messages to the Web front-end service, realizes different teaching experiences according to the response messages, and can regularly upload the data to a cloud database, simultaneously regularly solidifies the handwriting data into pictures every day and stores the pictures to a cloud OSS.
- 2. The method of claim 1, wherein the smart pen is a Bluetooth pen, and the handwriting data can be sent to the ap pointing device through a Bluetooth pen book.
- 3. An operating system-based handwriting processing method according to claim 1 and wherein said cloud database is tablestore cloud database which can be displayed on different network devices and opened by account numbers and passwords.
- 4. An operating system-based handwriting processing method according to claim 1, wherein an independent storage cloud database is arranged in the back-end receipt service, and handwriting data is independently stored through the storage cloud database.
Description
Handwriting processing method and system based on operating system Technical Field The invention relates to the technical field of intelligent paper pens, in particular to a handwriting processing method and system based on an operating system. Background Currently, smart paper pens are becoming an important point in smart classroom construction, and many schools and schools are adopting the smart paper pens. In practical effect, the intelligent paper pen can be used for digitizing handwriting, digital teaching is realized, and teaching is more accurate and efficient. The intelligent paper pen teaching system is mainly used for realizing interactive teaching between teachers and students, belongs to an Internet of things system, and when the network fluctuation is large, the phenomenon that handwriting data transmission is possibly lost due to network dropping and pen losing disorder can occur frequently in the classroom teaching of a lot of current intelligent pens. Therefore, the intelligent paper pen teaching system needs to be designed and modified, and the phenomenon that handwriting can be lost is effectively prevented. Disclosure of Invention In order to solve the problems in the background art, the invention aims to provide a handwriting processing method and system based on an operating system, which have the advantage of not losing handwriting and solve the problem that an intelligent paper pen teaching system can lose handwriting. In order to achieve the above purpose, the invention provides a handwriting processing method based on an operating system, which comprises the following steps: Creating a windows window program, acquiring handwriting data uploaded by an intelligent pen through socket communication, storing the original data into a text log created by a day for later verification, converting coordinate information into pixel units, sending the pixel units to a handwriting processing service, and sending the handwriting to a test webpage for real-time test comparison if a Websocket communication function is started; The handwriting output step comprises the steps of obtaining real-time handwriting returned by handwriting processing service through WebSocket communication, wherein the handwriting comprises information such as coordinates, writing paper ID, time, intelligent pen ID and the like, obtaining intelligent pen information through the intelligent pen ID in the handwriting, displaying the handwriting on different display elements according to the intelligent pen distinction, matching and loading the paper information according to the paper ID, dividing the handwriting into three types of pen falling, pen lifting and moving, connecting points moving from pen falling to pen lifting into one pen, finally dividing the handwriting into a plurality of pages according to the paper ID through connecting strokes, displaying the last written page by default, and freely switching; and a handwriting playback step, namely acquiring handwriting data of the intelligent pen within a certain range within a certain time through handwriting processing service. Preferably, in the handwriting obtaining step, the windows window program is handwriting receiving service, and various original handwriting can be received and collected through the handwriting receiving service. As the preferable method, the handwriting obtaining step, the text log is a solid state disk, and the original data is stored through the solid state disk, so that the original data is prevented from being lost, and the method can be used for comparison. Preferably, in the handwriting playback step, a timer function is set in the handwriting processing service, and the handwriting writing process is reproduced at a constant speed through the timer function. Preferably, the method comprises the following steps: In the writing process of the intelligent pen, writing data is reported to an ap collecting device in real time through Bluetooth equipment of the intelligent pen, the ap collecting device establishes a tcp long link with a back-end collecting service in advance, after receiving writing data uploaded by the intelligent pen, the writing data is reported to the back-end collecting service in real time in a tcp long connection mode, the back-end collecting service responds to different responses according to different reported information, so that a stable communication channel is established between the writing data and the ap collecting device, and then S2 is executed; And S2, after receiving handwriting data, the back-end receipt service firstly caches the handwriting data for subsequent processing of response operation of the Web front-end service, establishes WebSocket connection with the Web front-end service, stores communication connection through heartbeat messages, enables a teacher to click different function buttons on a Web front-end service page, sends different message requests to the back-end receipt service, carri