WO2020154991A1 - Handwriting processing method, electronic display device, and writing system - Google Patents

Handwriting processing method, electronic display device, and writing system Download PDF

Info

Publication number
WO2020154991A1
WO2020154991A1 PCT/CN2019/074015 CN2019074015W WO2020154991A1 WO 2020154991 A1 WO2020154991 A1 WO 2020154991A1 CN 2019074015 W CN2019074015 W CN 2019074015W WO 2020154991 A1 WO2020154991 A1 WO 2020154991A1
Authority
WO
WIPO (PCT)
Prior art keywords
writing
sampling point
sampling
coordinate information
handwriting
Prior art date
Application number
PCT/CN2019/074015
Other languages
French (fr)
Chinese (zh)
Inventor
李友
Original Assignee
深圳市柔宇科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市柔宇科技有限公司 filed Critical 深圳市柔宇科技有限公司
Priority to CN201980073435.XA priority Critical patent/CN113260967A/en
Priority to PCT/CN2019/074015 priority patent/WO2020154991A1/en
Publication of WO2020154991A1 publication Critical patent/WO2020154991A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Abstract

A handwriting processing method, an electronic display device (20), and a writing system (100). The handwriting processing method is applied to the electronic display device (20), and the electronic display device (20) communicates with a writing board (12). The handwriting processing method comprises: obtaining coordinate information and writing data of a plurality of sampling points when a writing board (12) receives a writing operation; forming a writing track according to the coordinate information; and generating display handwriting according to the writing track and the writing data.

Description

笔迹处理方法、电子显示装置及书写系统Handwriting processing method, electronic display device and writing system 技术领域Technical field
本申请涉及智能书写设备技术领域,特别涉及一种笔迹处理方法、电子显示装置及书写系统。This application relates to the technical field of smart writing equipment, and in particular to a handwriting processing method, an electronic display device and a writing system.
背景技术Background technique
目前的可智能识别书写笔迹的设备可以体现纸质书写,还可以同时利用设备将用户的真实书写笔迹实时地记录下来,并传输给移动终端,使得书写内容得以保存,以方便用户在移动终端上进行查看或编辑。The current device that can intelligently recognize writing handwriting can embody paper writing, and can also use the device to record the user’s real handwriting in real time and transmit it to the mobile terminal, so that the writing content can be saved for the convenience of the user on the mobile terminal To view or edit.
但现有的智能识别书写笔迹的设备只能还原出书写笔迹的大致形状,而不能还原出书写笔迹的相关细节,无法体现书写者的个人风格,用户体验较差。However, the existing devices for intelligently recognizing handwriting can only restore the general shape of the handwriting, but cannot restore the relevant details of the handwriting, fail to reflect the writer's personal style, and have a poor user experience.
发明内容Summary of the invention
本申请实施方式提供一种笔迹处理方法、电子显示装置及书写系统。The embodiments of the present application provide a handwriting processing method, an electronic display device, and a writing system.
本申请实施方式的笔迹处理方法,应用于电子显示装置,所述电子显示装置与书写板通信,所述笔迹处理方法包括:获取所述书写板接收书写操作时多个采样点的坐标信息和书写数据;根据所述坐标信息形成书写轨迹;和根据所述书写轨迹及所述书写数据生成显示笔迹。The handwriting processing method of the embodiment of the present application is applied to an electronic display device. The electronic display device communicates with a writing board. The handwriting processing method includes: acquiring coordinate information of multiple sampling points when the writing board receives a writing operation and writing Data; forming a writing track based on the coordinate information; and generating a display handwriting based on the writing track and the writing data.
本申请实施方式的电子显示装置与书写板通信。电子显示装置包括处理器。处理器用于获取所述书写板接收书写操作时多个采样点的坐标信息和书写数据;根据所述坐标信息形成书写轨迹;根据所述书写轨迹及所述书写数据生成显示笔迹。The electronic display device of the embodiment of the present application communicates with the writing board. The electronic display device includes a processor. The processor is used to obtain coordinate information and writing data of a plurality of sampling points when the writing board receives a writing operation; form a writing track according to the coordinate information; generate a display handwriting based on the writing track and the writing data.
本申请实施方式的书写系统包括书写笔、书写板和上述的电子显示装置。所述书写板用于接收所述书写笔的书写操作以检测所述书写笔的书写轨迹,所述书写轨迹上具有多个采样点,多个所述采样点对应有坐标信息及书写数据。所述书写板与所述电子显示装置通信。The writing system of the embodiment of the present application includes a writing pen, a writing board, and the above-mentioned electronic display device. The writing board is used to receive the writing operation of the writing pen to detect the writing track of the writing pen, and the writing track has a plurality of sampling points, and the plurality of sampling points correspond to coordinate information and writing data. The writing board communicates with the electronic display device.
本申请实施方式的笔迹处理方法、电子显示装置及书写系统基于坐标信息和书写数据生成的显示笔迹与用户书写在纸上的笔迹较为相近,还原度较高,可以较好地展现出书写者的个人风格,有利于提升用户的使用体验。The handwriting processing method, the electronic display device and the writing system of the embodiment of the application generate the displayed handwriting based on the coordinate information and the writing data and the handwriting written by the user on the paper is relatively similar, with a high degree of restoration, and can better show the writer’s Personal style is conducive to enhancing the user experience.
本申请实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。The additional aspects and advantages of the embodiments of the present application will be partially given in the following description, and some will become obvious from the following description, or be understood through the practice of the present application.
附图说明Description of the drawings
本申请的上述和/或附加的方面和优点可以从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above-mentioned and/or additional aspects and advantages of the present application will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, in which:
图1是本申请某些实施方式的书写系统的结构示意图。Fig. 1 is a schematic structural diagram of a writing system according to some embodiments of the present application.
图2是本发明某些实施方式的书写系统的模块示意图。Fig. 2 is a schematic diagram of modules of a writing system according to some embodiments of the present invention.
图3和图4是本发明某些实施方式的书写板采集采样点的原理示意图。3 and 4 are schematic diagrams of the principle of collecting sampling points on the writing board according to some embodiments of the present invention.
图5是本发明某些实施方式的书写装置采集采样点的坐标信息和书写数据的流程示意图。FIG. 5 is a schematic diagram of a flow of collecting coordinate information of sampling points and writing data by a writing device according to some embodiments of the present invention.
图6至图15是本发明某些实施方式的笔迹处理方法的流程示意图。6 to 15 are schematic flowcharts of handwriting processing methods according to some embodiments of the present invention.
具体实施方式detailed description
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中,相同或类似的标号自始至终表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions throughout. The following embodiments described with reference to the accompanying drawings are exemplary, and are only used to explain the present application, and cannot be understood as a limitation to the present application.
请一并参阅图1和图2,本申请提供一种书写系统100。书写系统100包括书写笔11、书写板12和电子显示装置20。其中,书写笔11和书写板12共同组成书写装置10,书写笔11与书写板12之间可以采用无线通信的方式进行信息交互。电子显示装置20可以是手机、平板电脑、笔记本电脑、台式电脑、智能穿戴设备(如智能手表、智能手环、智能眼镜等)、显示器等等。本申请实施例以电子显示装置20为平板电脑为例进行说明,可以理解,电子显示装置20的具体形式不限于平板电脑。电子显示装置20的通信模块22可以和书写装置10的通信单元14通信以实现信息交互。具体地,电子显示装置20与书写装置10之间可以采用无线通信的方式进行信息交互。其中,电子显示装置20可以仅与书写板12通过无线通信的方式进行信息交互,此时通信单元14设置在书写板12上;或者,电子显示装置20可以仅与书写笔11通过无线通信的方式进行信息交互,此时通信单元14设置在书写笔11上;或者,电子显示装置20在与书写板12通过无线通信的方式进行信息交互的同时,还可以与书写笔11通过无线通信的方式进行信息交互,此时书写板12和书写笔11上均设置有通信单元14。本申请实施例以电子显示装置20仅与书写板12通过无线通信的方式进行信息交互为例进行说明。其中,无线通信的方式可以是WiFi、蓝牙、ZigBee等等。本申请实施例以无线通信方式是蓝牙为例进行说明,即通信模块22和通信单元14均为蓝牙通讯端口。可以理解,无线通信的具体方式并不限于蓝牙。Please refer to FIG. 1 and FIG. 2 together. The present application provides a writing system 100. The writing system 100 includes a writing pen 11, a writing board 12 and an electronic display device 20. Wherein, the writing pen 11 and the writing board 12 jointly constitute the writing device 10, and the writing pen 11 and the writing board 12 can be used for information exchange in a wireless communication manner. The electronic display device 20 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a smart wearable device (such as a smart watch, a smart bracelet, smart glasses, etc.), a display, and the like. The embodiment of the present application takes the electronic display device 20 as a tablet computer as an example for description. It can be understood that the specific form of the electronic display device 20 is not limited to a tablet computer. The communication module 22 of the electronic display device 20 can communicate with the communication unit 14 of the writing device 10 to realize information exchange. Specifically, the electronic display device 20 and the writing device 10 may exchange information in a wireless communication manner. Wherein, the electronic display device 20 can only communicate with the writing board 12 through wireless communication, and the communication unit 14 is provided on the writing board 12; or the electronic display device 20 can only communicate with the writing pen 11 through wireless communication. For information interaction, the communication unit 14 is set on the writing pen 11 at this time; alternatively, the electronic display device 20 may communicate with the writing pen 11 through wireless communication while performing information interaction with the writing pad 12 For information exchange, at this time, both the writing board 12 and the writing pen 11 are provided with a communication unit 14. The embodiment of the present application is described by taking the electronic display device 20 and the writing board 12 only for information interaction through wireless communication as an example. Among them, the wireless communication method can be WiFi, Bluetooth, ZigBee, and so on. The embodiment of the present application takes Bluetooth as an example for the wireless communication mode, that is, the communication module 22 and the communication unit 14 are both Bluetooth communication ports. It can be understood that the specific method of wireless communication is not limited to Bluetooth.
书写板12上设置有电容式触控传感器,用户手持书写笔11在书写板12上进行书写操作时,电容式触控传感器与书写笔11之间形成耦合电容,书写笔11在书写板12上的触控位置可以被书写板12感测到,书写板12以预定方式对书写笔11在书写板12上的触控位置进行多次采样以得到多个采样点的坐标信息。多个采样点的坐标信息可以提供给电子显示装置20,电子显示装置20的处理器21可以基于多个采样点的坐标信息进行书写笔11的书写轨迹的绘制,从而得到显示笔迹。其中,预定方式包括:(1)书写板12每间隔预定时间段采集一次书写笔11在书写板12上的触控位置,如分别在时刻0、t 1、t 2、t 3、…、t n(n∈N+)下采集书写笔11在书写板12上的触控位置以得到多个采样点的坐标信息,其中,0、t 1、t 2、t 3…t n为等差数列;(2)书写板12每间隔预定距离采集一次书写笔11在书写板12上的触控位置,具体地,书写板12以刚刚感测到书写笔11的触控时,书写笔11在书写板12上的触控位置为起始点,书写板12实时获取书写笔11在书写板12上的触控位置的变化,并基于实时感测到的坐标信息计算书写笔11在书写板12上移动的距离,书写板12每间隔预定距离记录一次书写笔11在书写板12上的触控位置以得到多个采样点的坐标信息;(3)书写板12实时感测书写笔11在书写板12上的触控位置并实时记录对应该触控位置的采样点的坐标信息。书写板12每采集到一个采样点的坐标信息后,会即刻将该采样点的坐标信息发送至电子显示装置20,也即是说,多个采样点的坐标信息是分时发送的。如此,每个采样点的坐标信息可以实时发送给电子显示装置20,电子显示装置20可以实时地进行书写笔11的书写轨迹的绘制以得到显示笔迹,并实时地将显示笔迹显示出来以供用户观看。 The writing board 12 is provided with a capacitive touch sensor. When the user holds the writing pen 11 to write on the writing board 12, a coupling capacitor is formed between the capacitive touch sensor and the writing pen 11, and the writing pen 11 is on the writing board 12. The touch position can be sensed by the writing pad 12, and the writing pad 12 samples the touch position of the writing pen 11 on the writing pad 12 multiple times in a predetermined manner to obtain coordinate information of multiple sampling points. The coordinate information of the multiple sampling points can be provided to the electronic display device 20, and the processor 21 of the electronic display device 20 can draw the writing track of the writing pen 11 based on the coordinate information of the multiple sampling points to obtain the displayed handwriting. Among them, the predetermined method includes: (1) The writing board 12 collects the touch position of the writing pen 11 on the writing board 12 every predetermined time period, such as at time 0, t 1 , t 2 , t 3 ,..., t Collect the touch position of the writing pen 11 on the writing board 12 under n (n∈N+) to obtain coordinate information of multiple sampling points, where 0, t 1 , t 2 , t 3 … t n are arithmetic series; (2) The writing board 12 collects the touch position of the writing pen 11 on the writing board 12 every predetermined distance. Specifically, when the writing board 12 just senses the touch of the writing pen 11, the writing pen 11 is on the writing board. The touch position on the writing pad 12 is the starting point. The writing pad 12 obtains the change of the touch position of the writing pen 11 on the writing pad 12 in real time, and calculates the movement of the writing pen 11 on the writing pad 12 based on the coordinate information sensed in real time. Distance, the writing board 12 records the touch position of the writing pen 11 on the writing board 12 every predetermined distance to obtain the coordinate information of multiple sampling points; (3) The writing board 12 senses the writing pen 11 on the writing board 12 in real time And record the coordinate information of the sampling point corresponding to the touch position in real time. Each time the writing board 12 collects the coordinate information of a sampling point, it will immediately send the coordinate information of the sampling point to the electronic display device 20, that is, the coordinate information of multiple sampling points is sent in time sharing. In this way, the coordinate information of each sampling point can be sent to the electronic display device 20 in real time, and the electronic display device 20 can draw the writing track of the writing pen 11 in real time to obtain the displayed handwriting, and display the displayed handwriting in real time for the user Watch.
在某些实施方式中,书写笔11上设置有压力传感器。压力传感器与书写笔11的笔芯同轴设置。压力传感器用于在书写笔11书写时感测书写笔11的笔尖受到的触控压力并生成压力数据。书写笔11可以与书写板12同步执行采集动作,即书写板12采集采样点的坐标信息时,书写笔11可以同步采集该采样点的压力数据。书写笔11将压力数据通过无线通信方式传送给书写板12,书写板12的处理芯片13将每个采样点的坐标数据及该采样点的压力数据打包呈数据包后,书写板12的通信单元14将数据包发送给电子显示装置20,电子显示装置20的处理器21可以根据多个采样点的坐标信息及压力数据绘制 显示笔迹。当然,在其他实施方式中,压力传感器也可以设置在书写板12上。当用户手持书写笔11在书写板12上进行书写操作时,书写板12除了采集书写笔11在书写板12上的触控位置以得到多个采样点的坐标信息之外,还感测书写笔11在每个采样点的采集时刻下触控书写板12的触控压力以得到多个压力数据。书写板12的通信单元14将每个采样点的坐标数据及该采样点的压力数据共同发送给电子显示装置20,电子显示装置20的处理器21可以根据多个采样点的坐标信息及压力数据绘制显示笔迹。In some embodiments, the writing pen 11 is provided with a pressure sensor. The pressure sensor is coaxially arranged with the refill of the writing pen 11. The pressure sensor is used to sense the touch pressure received by the tip of the writing pen 11 and generate pressure data when the writing pen 11 is writing. The writing pen 11 can perform the collection action synchronously with the writing board 12, that is, when the writing board 12 collects the coordinate information of the sampling point, the writing pen 11 can synchronously collect the pressure data of the sampling point. The writing pen 11 transmits the pressure data to the writing board 12 through wireless communication. The processing chip 13 of the writing board 12 packs the coordinate data of each sampling point and the pressure data of the sampling point into a data packet, and the communication unit of the writing board 12 14 Send the data packet to the electronic display device 20, and the processor 21 of the electronic display device 20 can draw and display handwriting based on the coordinate information and pressure data of multiple sampling points. Of course, in other embodiments, the pressure sensor may also be provided on the writing board 12. When the user holds the writing pen 11 to perform a writing operation on the writing board 12, the writing board 12 not only collects the touch position of the writing pen 11 on the writing board 12 to obtain coordinate information of multiple sampling points, but also senses the writing pen 11 Touch the touch pressure of the writing pad 12 at the collection time of each sampling point to obtain multiple pressure data. The communication unit 14 of the writing board 12 sends the coordinate data of each sampling point and the pressure data of the sampling point to the electronic display device 20, and the processor 21 of the electronic display device 20 can use the coordinate information and pressure data of the multiple sampling points. Draw and display handwriting.
在某些实施方式中,书写板12还会采集多个采样点的采集间隔时间。采集间隔时间指的是两个采样点的采集时刻之间的差值。其中,两个采样点可以为相差预设间隔个数个采样点的两个采样点。当预设间隔个数为1时,两个采样点直接相邻(如图3所示);当预设间隔个数不为1时,两个采样点间接相邻(如图4所示),即这两个采样点之间还存在至少一个采样点。In some embodiments, the writing board 12 also collects the collection interval time of multiple sampling points. The collection interval time refers to the difference between the collection moments of two sampling points. Among them, the two sampling points may be two sampling points that differ by a predetermined interval of several sampling points. When the number of preset intervals is 1, the two sampling points are directly adjacent (as shown in Figure 3); when the number of preset intervals is not 1, the two sampling points are indirectly adjacent to each other (as shown in Figure 4) , That is, there is at least one sampling point between these two sampling points.
具体地,在一个例子中,如图3所示,counter为采样点的第一编号,counter=0,1,2,3,…,m,m∈N。预设间隔个数L=1,t 0、t 1、t 2、t 3、…、t m分别为采样点0、1、2、3、…、m的采集时刻。每个采样点的采集间隔时间t nL(n为采样点的第二编号,具有第二编号的采样点为采集有采集间隔时间的采样点,L为预设间隔个数,n∈N,L∈N+)为采样点nL的采集时刻与采样点(n-1)L的采集时刻之间的差值,即采样点1的采集间隔时间t 11为采样点1与采样点0的采集时刻之间的差值,采样点2的采集间隔时间为t 21为采样点2与采样点1的采集时刻之间的差值,采样点3的采集间隔时间t 31为采样点3与采样点2的采集时刻之间的差值,以此类推,采样点m的采集间隔时间t n1(n=m/L=m/1)为采样点m与采样点(m-1)的采集时刻之间的差值。特殊地,采样点0的采集间隔时间为0。 Specifically, in an example, as shown in FIG. 3, counter is the first number of the sampling point, counter=0,1,2,3,...,m, m∈N. The preset number of intervals L=1, and t 0 , t 1 , t 2 , t 3 ,..., t m are the collection moments of sampling points 0, 1 , 2 , 3 ,..., m , respectively. The collection interval time of each sampling point t nL (n is the second number of the sampling point, the sampling point with the second number is the sampling point with the collection interval time, L is the preset number of intervals, n∈N, L ∈N+) is the difference between the acquisition time of sampling point nL and the acquisition time of sampling point (n-1)L, that is, the sampling interval time t 11 of sampling point 1 is the difference between sampling point 1 and sampling point 0. The sampling interval time of sampling point 2 is t 21 is the difference between sampling point 2 and sampling point 1, and the sampling interval time t 31 of sampling point 3 is the difference between sampling point 3 and sampling point 2. The difference between the sampling time, and so on, the sampling interval t n1 (n=m/L=m/1) of sampling point m is the time between sampling point m and sampling point (m-1) Difference. In particular, the sampling interval of sampling point 0 is zero.
在另一个例子中,如图4所示,counter为采样点的第一编号,counter=0,1,2,3,…,m,m∈N。预设间隔个数L=4,t 0、t 1、t 2、t 3、…、t m分别为采样点0、1、2、3、…、m的采集时刻。每个采样点的采集间隔时间t nL(n为采样点的第二编号,具有第二编号的采样点为采集了采集间隔时间的采样点,L为预设间隔个数,n∈N,L∈N+)为采样点nL的采集时刻与采样点(n-1)L的采集时刻之间的差值,即采样点4的采集间隔时间t 14为采样点4与采样点0的采集时刻之间的差值,采样点8的采集间隔时间t 24为采样点8与采样点4的采集时刻之间的差值,采样点12的采集间隔时间t 34为采样点12与采样点8的采集时刻之间的差值,以此类推,采样点m的采集间隔时间t n4(n=m/L=n/4)为采样点m与采样点(m-4)的采集时刻之间的差值。特殊地,采样点0的采集间隔时间为0。 In another example, as shown in Figure 4, counter is the first number of the sampling point, counter=0,1,2,3,...,m, m∈N. The preset number of intervals L=4, and t 0 , t 1 , t 2 , t 3 ,..., t m are the collection moments of sampling points 0, 1 , 2 , 3 ,..., m , respectively. The collection interval time of each sampling point t nL (n is the second number of the sampling point, the sampling point with the second number is the sampling point that collected the collection interval time, L is the preset number of intervals, n∈N, L ∈N+) is the difference between the acquisition time of sampling point nL and the acquisition time of sampling point (n-1)L, that is, the sampling interval t 14 of sampling point 4 is the difference between sampling point 4 and sampling point 0. The sampling interval t 24 of sampling point 8 is the difference between sampling point 8 and sampling point 4, and the sampling interval t 34 of sampling point 12 is the collection of sampling point 12 and sampling point 8. The difference between the time, and so on, the sampling interval t n4 (n=m/L=n/4) of the sampling point m is the difference between the sampling point m and the sampling point (m-4) value. In particular, the sampling interval of sampling point 0 is zero.
下面结合图4和图5来示例地说明书写装置10采集采样点的坐标信息及书写数据(包括压力数据及采集间隔时间)的具体过程。其中,预设间隔个数L=4。The specific process of collecting coordinate information of sampling points and writing data (including pressure data and collection interval time) by the description writing device 10 is exemplified below in conjunction with FIG. 4 and FIG. 5. Wherein, the preset number of intervals L=4.
在用户启动书写装置10后,书写装置10首先开启蓝牙通讯端口。随后,书写板12感测书写笔11的触控。在书写板12感测到书写笔11的触控时,书写板12将counter初始化为0,设置t=SystemcurrentTime()(t=SystemcurrentTime()为一个计时程序),并且书写板12采集采样点0的坐标信息,书写笔11采集采样点0的压力数据。同时,书写板12计算conunter%L的值并判断conunter%L是否等于0,由于0%4的值为0,因此,书写板12要计算采样点0的采集间隔时间t 04=t 0-0=[t=SystemcurrentTime()]-0。随后,counter加1(counter=0+1=1),并且书写板12将采样点0的坐标信息和书写数据打包成数据包,通过蓝牙发送给电子显示装置20。随后,书写板12判断是否还感测到书写操作,在感测到书写操作时,书写板12继续采集采样点1的坐标信息,书写板12采集采样点1的压力数据。同时,书写板12计算conunter%L的值并判断conunter%L是否等于0,由于1%4的值不为0,因此,书写板12无需计算采样点1的采集间隔时间,counter直接加1(counter=1+1=2),并且书写板12将采样点1的坐标信息和书写数据打包成数据包,通过蓝牙发送给电子显示装置20。随后,书写板12判断是否还感测到书写操作,在感测到书写操作时,书写板12继续采集采样点2的坐标信息, 书写板12采集采样点2的压力数据。同时,书写板12计算conunter%L的值并判断conunter%L是否等于0,由于2%4的值不为0,因此,书写板12无需计算采样点2的采集间隔时间,counter直接加1(counter=2+1=3),并且书写板12将采样点2的坐标信息和书写数据打包成数据包,通过蓝牙发送给电子显示装置20。随后,书写板12判断是否还感测到书写操作,在感测到书写操作时,书写板12继续采集采样点3的坐标信息,书写板12采集采样点3的压力数据。同时,书写板12计算conunter%L的值并判断conunter%L是否等于0,由于3%4的值不为0,因此,书写板12无需计算采样点3的采集间隔时间,counter直接加1(counter=3+1=4),并且书写板12将采样点3的坐标信息和书写数据打包成数据包,通过蓝牙发送给电子显示装置20。随后,书写板12计算conunter%L的值并判断conunter%L是否等于0,由于4%4的值为0,因此,书写板12要计算采样点4的采集间隔时间t 14=t 4-t 0=[t=SystemcurrentTime()]-t 0。随后,counter加1(counter=0+1=1),并且书写板12将采样点4的坐标信息和书写数据打包成数据包,通过蓝牙发送给电子显示装置20。随后,书写板12继续判断是否还感测到书写操作。以此类推,直至书写板12未感测到书写操作为止,此时书写板12判定用户收笔。在某一时刻书写板12再次感测到书写笔11的书写操作时,书写板12再次从步骤“将counter初始化为0,设置t=SystemcurrentTime()”开始执行采样点的坐标信息及书写数据的采集过程。 After the user activates the writing device 10, the writing device 10 first opens the Bluetooth communication port. Subsequently, the writing board 12 senses the touch of the writing pen 11. When the writing pad 12 senses the touch of the writing pen 11, the writing pad 12 initializes the counter to 0, sets t=SystemcurrentTime() (t=SystemcurrentTime() is a timing program), and the writing pad 12 collects sampling points 0 The writing pen 11 collects the pressure data of the sampling point 0. At the same time, the writing board 12 calculates the value of conunter%L and judges whether the conunter%L is equal to 0. Since the value of 0%4 is 0, the writing board 12 needs to calculate the sampling interval time t 04 =t 0 -0 of the sampling point 0 =[t=SystemcurrentTime()]-0. Subsequently, the counter is incremented by 1 (counter=0+1=1), and the writing board 12 packs the coordinate information of the sampling point 0 and the writing data into a data packet, and sends it to the electronic display device 20 via Bluetooth. Subsequently, the writing board 12 determines whether the writing operation is still sensed. When the writing operation is sensed, the writing board 12 continues to collect the coordinate information of the sampling point 1, and the writing board 12 collects the pressure data of the sampling point 1. At the same time, the writing board 12 calculates the value of conunter%L and determines whether the conunter%L is equal to 0. Since the value of 1%4 is not 0, the writing board 12 does not need to calculate the sampling interval time of sampling point 1, and the counter directly adds 1 ( counter=1+1=2), and the writing board 12 packs the coordinate information of the sampling point 1 and the writing data into a data packet, and sends it to the electronic display device 20 via Bluetooth. Subsequently, the writing board 12 determines whether the writing operation is still sensed. When the writing operation is sensed, the writing board 12 continues to collect the coordinate information of the sampling point 2, and the writing board 12 collects the pressure data of the sampling point 2. At the same time, the writing board 12 calculates the value of conunter%L and determines whether the conunter%L is equal to 0. Since the value of 2%4 is not 0, the writing board 12 does not need to calculate the sampling interval time of sampling point 2, and the counter directly adds 1 ( counter=2+1=3), and the writing board 12 packs the coordinate information of the sampling point 2 and the writing data into a data packet, and sends it to the electronic display device 20 via Bluetooth. Subsequently, the writing board 12 determines whether a writing operation is still sensed. When the writing operation is sensed, the writing board 12 continues to collect the coordinate information of the sampling point 3, and the writing board 12 collects the pressure data of the sampling point 3. At the same time, the writing board 12 calculates the value of conunter%L and determines whether the conunter%L is equal to 0. Since the value of 3%4 is not 0, the writing board 12 does not need to calculate the sampling interval time of sampling point 3, and the counter directly adds 1 ( counter=3+1=4), and the writing board 12 packs the coordinate information of the sampling point 3 and the writing data into a data packet, and sends it to the electronic display device 20 via Bluetooth. Subsequently, the writing board 12 calculates the value of conunter%L and determines whether the conunter%L is equal to 0. Since the value of 4%4 is 0, the writing board 12 must calculate the sampling interval time t 14 =t 4 -t of the sampling point 4 0 =[t=SystemcurrentTime()]-t 0 . Subsequently, the counter is incremented by 1 (counter=0+1=1), and the writing board 12 packs the coordinate information of the sampling point 4 and the writing data into a data packet, which is sent to the electronic display device 20 via Bluetooth. Subsequently, the writing board 12 continues to determine whether the writing operation is still sensed. By analogy, until the writing pad 12 does not sense the writing operation, the writing pad 12 determines that the user has closed the pen. When the writing pad 12 senses the writing operation of the writing pen 11 again at a certain moment, the writing pad 12 starts from the step "initialize the counter to 0, set t=SystemcurrentTime()" again to execute the coordinate information of the sampling point and the writing data Collection process.
在某些实施方式中,书写板12的通信单元14每发送一次数据包给电子显示装置20,电子显示装置20的通信模块22均会发送一个确认接收的反馈信息给书写板12。书写板12的通信单元14接收到该反馈信息后,处理芯片13即可确认电子显示装置20接收到了该数据包。但若通信单元14未接收到该反馈信息,则处理芯片13会判定电子显示装置20未接收到该数据包,此时,书写板12在等待一段预定时间后,会由通信单元14将未被电子显示装置20成功接收到的数据包再次发送给电子显示装置20。为确保信息交互的准确性,书写板12可以使用幂等确认和超时重试机制来保证信息交互的准确性。具体地,处理芯片13每次发送采样点的数据包前,处理芯片13会先对每一个采样点的数据包做标识,例如,对每一个采样点的数据包进行编号,以使电子显示装置20能够根据编号分辨出接收到的数据包是哪一个采样点的数据。其中,由同一采样点的坐标信息及书写数据打包成的数据包对应一个唯一的标识,不同采样点的数据包对应不同标识。在书写板12未接收到反馈信息,需要再次发送数据包给电子显示装置20时,通信单元14将带有标识的数据包再次发送给电子显示装置20。可以理解的是,在书写板12未接收到电子显示装置20发送的反馈信息的情况下,电子显示装置20有可能已经接收到了数据包,只是未发送反馈信息或者发送的反馈信息由于无线通信的信道质量较差未能被书写板12接收。此时,若书写板12未对数据包做标识,则电子显示装置20会重复接收到同一采样点的数据包,但电子显示装置20并不能对重复接收到的数据包进行区分,辨别出接收到的数据包是否为同一采样点的数据包,此时电子显示装置20可能将重复接收到的这个数据包作为下一采样点的数据包,并基于该数据包进行显示笔迹的绘制,如此会导致显示笔迹的绘制出错。但对数据包做标识后,电子显示装置20可以辨别出接收到的数据包是哪一个采样点的数据包,从而不会导致数据包与采样点的匹配出错,导致最终的显示笔迹出现错误的问题。In some embodiments, each time the communication unit 14 of the writing board 12 sends a data packet to the electronic display device 20, the communication module 22 of the electronic display device 20 will send a feedback message confirming receipt to the writing board 12. After the communication unit 14 of the writing board 12 receives the feedback information, the processing chip 13 can confirm that the electronic display device 20 has received the data packet. However, if the communication unit 14 does not receive the feedback information, the processing chip 13 will determine that the electronic display device 20 has not received the data packet. At this time, the writing board 12 waits for a predetermined period of time, and the communication unit 14 will The data packet successfully received by the electronic display device 20 is sent to the electronic display device 20 again. To ensure the accuracy of information interaction, the writing board 12 may use an idempotent confirmation and timeout retry mechanism to ensure the accuracy of information interaction. Specifically, each time the processing chip 13 sends a data packet of a sampling point, the processing chip 13 will first identify the data packet of each sampling point, for example, number the data packet of each sampling point, so that the electronic display device 20 can distinguish which sampling point the received data packet is based on the serial number. Among them, the data packet packaged by the coordinate information and written data of the same sampling point corresponds to a unique identifier, and the data packets of different sampling points correspond to different identifiers. When the writing board 12 does not receive the feedback information and needs to send the data packet to the electronic display device 20 again, the communication unit 14 sends the data packet with the logo to the electronic display device 20 again. It is understandable that when the writing board 12 has not received the feedback information sent by the electronic display device 20, the electronic display device 20 may have received the data packet, but the feedback information has not been sent or the feedback information sent is due to wireless communication. The channel quality is poor and cannot be received by the writing board 12. At this time, if the writing board 12 does not mark the data packet, the electronic display device 20 will repeatedly receive the data packet of the same sampling point, but the electronic display device 20 cannot distinguish the repeatedly received data packet and distinguish the received data packet. Whether the received data packet is the data packet of the same sampling point, the electronic display device 20 may use the repeatedly received data packet as the data packet of the next sampling point, and draw the display handwriting based on the data packet. Causes an error in the drawing of the displayed handwriting. However, after the data packet is marked, the electronic display device 20 can distinguish which sampling point the received data packet is, so that it will not cause an error in the matching of the data packet and the sampling point, and the final display handwriting will be wrong. problem.
电子显示装置20接收到书写板12发送的采样点的数据包,会基于数据包中的采样点的坐标信息和书写数据生成显示笔迹。具体地,请一并参阅图2和图6,本申请还提供一种用于上述的电子显示装置20的笔迹处理方法。电子显示装置20与上述任意一项实施方式所述的书写板12通信。笔迹处理方法包括:The electronic display device 20 receives the data packet of the sampling point sent by the writing board 12, and generates a display handwriting based on the coordinate information of the sampling point in the data packet and the writing data. Specifically, please refer to FIG. 2 and FIG. 6 together. The present application also provides a handwriting processing method for the electronic display device 20 described above. The electronic display device 20 communicates with the writing board 12 described in any one of the above embodiments. Handwriting processing methods include:
S11:获取书写板12接收书写操作时多个采样点的坐标信息和书写数据;S11: Obtain coordinate information and writing data of multiple sampling points when the writing board 12 receives a writing operation;
S12:根据坐标信息形成书写轨迹;和S12: Form a writing track based on coordinate information; and
S13:根据书写轨迹及书写数据生成显示笔迹。S13: Generate display handwriting based on the writing track and writing data.
请再参阅图2,本申请实施方式的笔迹处理方法可以由本申请实施方式的电子显示装置20实现。电子显示装置20包括处理器21。步骤S11、步骤S12和步骤S13均可以由处理器21实现。也即是说,处理器21可用于获取书写板12接收书写操作时多个采样点的坐标信息和书写数据、根据坐标信息形成书写轨迹、以及根据书写轨迹及书写数据生成显示笔迹。Please refer to FIG. 2 again, the handwriting processing method of the embodiment of the present application can be implemented by the electronic display device 20 of the embodiment of the present application. The electronic display device 20 includes a processor 21. Step S11, step S12, and step S13 can all be implemented by the processor 21. That is to say, the processor 21 can be used to obtain coordinate information and writing data of multiple sampling points when the writing pad 12 receives a writing operation, form a writing track based on the coordinate information, and generate a display handwriting based on the writing track and writing data.
如前所述,坐标信息可以由书写板12采集。书写数据包括压力数据和采集时间间隔中的至少一种。也即是说,书写数据可以仅包括压力数据;或者,书写数据可以仅包括采集时间间隔;或者,书写数据可以同时包括压力数据和采集时间间隔。当书写数据包括压力数据时,压力数据可以由书写板12或书写笔11采集。当书写数据包括采集时间间隔时,采集时间间隔可以由书写板12采集。As mentioned above, the coordinate information can be collected by the writing board 12. The written data includes at least one of pressure data and collection time interval. That is to say, the writing data may include only pressure data; or, the writing data may only include the collection time interval; or, the writing data may include both the pressure data and the collection time interval. When the writing data includes pressure data, the pressure data may be collected by the writing board 12 or the writing pen 11. When the writing data includes the collection time interval, the collection time interval may be collected by the writing board 12.
可以理解,现有的生成用户书写时的笔迹的方法只能还原出笔迹的大致形状,即笔迹的大致书写轨迹,而不能还原出笔迹的相关细节,如笔迹的粗细、颜色深浅等等,笔迹的还原度较低,无法体现书写者的个人风格。本申请实施方式的笔迹处理方法、电子显示装置20及书写系统100基于坐标信息和书写数据生成的显示笔迹与用户书写在纸上的笔迹较为相近,还原度较高,可以较好地展现出书写者的个人风格,有利于提升用户的使用体验。It is understandable that the existing method of generating handwriting when the user writes can only restore the general shape of the handwriting, that is, the general writing track of the handwriting, but cannot restore the relevant details of the handwriting, such as the thickness of the handwriting, the color depth, etc., handwriting The degree of reduction is low and cannot reflect the writer’s personal style. The handwriting processing method, the electronic display device 20, and the writing system 100 of the embodiment of the present application generate the displayed handwriting based on the coordinate information and the writing data and the handwriting written on the paper by the user, with a high degree of restoration, and can better show the writing The user’s personal style is conducive to enhancing the user’s experience.
请参阅图7,在某些实施方式中,书写数据包括压力数据,步骤S13根据书写轨迹及书写数据生成显示笔迹包括:Referring to FIG. 7, in some embodiments, the writing data includes pressure data, and step S13 generating display handwriting based on the writing track and the writing data includes:
S1311:根据每个采样点的压力数据计算每个采样点的半径;和S1311: Calculate the radius of each sampling point based on the pressure data of each sampling point; and
S1312:将书写轨迹上的多个采样点以对应该采样点的半径显示以生成显示笔迹。S1312: Display multiple sampling points on the writing track with a radius corresponding to the sampling points to generate display handwriting.
请再参阅图2,在某些实施方式中,步骤S1311和步骤S1312均可以由处理器21实现。也即是说,处理器21还可用于根据每个采样点的压力数据计算每个采样点的半径、以及将书写轨迹上的多个采样点以对应该采样点的半径显示以生成显示笔迹。Please refer to FIG. 2 again. In some embodiments, both step S1311 and step S1312 may be implemented by the processor 21. In other words, the processor 21 can also be used to calculate the radius of each sampling point according to the pressure data of each sampling point, and to display multiple sampling points on the writing track with the radius corresponding to the sampling point to generate a display handwriting.
具体地,电子显示装置20每接收到一个数据包(此时数据包中包括坐标信息和压力数据),均会将数据包中的坐标信息和压力数据缓存到存储器23中,处理器21可以从存储器23中读取到坐标信息和压力数据。假设有采样点0,1,2,3,…,m,m∈N,采样点0的坐标信息为(x 0,y 0,z 0),压力数据为p 0,采样点1的坐标信息为(x 1,y 1,z 1),压力数据为p 1,采样点2的坐标信息为(x 2,y 2,z 2),压力数据为p 2,以此类推,采样点m的坐标信息为(x m,y m,z m),压力数据为p m。处理器21首先将每个采样点的坐标信息(该坐标信息为采样点在书写板12上的坐标信息)转换为采样点在电子显示装置20上的坐标信息,再根据每个采样点的压力数据计算对应的采样点的半径,其中,半径ρ=f(p)。例如,采样点0转换后的坐标信息为(x’ 0,y’ 0,z’ 0),半径为ρ 0,采样点1转换后的坐标信息为(x’ 1,y’ 1,z’ 1),半径为ρ 1,采样点2转换后的坐标信息为(x’ 2,y’ 2,z’ 2),半径为ρ 2,以此类推,采样点m转换后的坐标信息为(x’ m,y’ m,z’ m),半径为ρ m。随后,处理器21即可根据多个采样点的转换后的坐标信息绘制出书写轨迹,再根据各个采样点的半径对应调整书写轨迹上的各个采样点的粗细。进一步地,对于任意两个直接相邻的采样点之间的线条,例如采样点1与采样点2之间的线条,可以基于采样点1的半径来调整这部分线条的粗细,或者采用采样点2的半径来调整这部分线条的粗细,或者可以先对采样点1和采样点2的半径求均值,再基于该均值来调整这部分线条的粗细。可以理解,若用户书写时的压力较大,则书写轨迹的线条会较粗;若用户书写时的压力较小,则书写轨迹的线条会较细。因此,可以根据多个采样点的压力数据来对应调整书写轨迹的线条的粗细,从而使得最终生成的显示笔迹有粗细变化,与用户实际的书写效果更加吻合,笔迹的还原度较高。 Specifically, every time the electronic display device 20 receives a data packet (the data packet includes coordinate information and pressure data at this time), it will cache the coordinate information and pressure data in the data packet in the memory 23, and the processor 21 can download The coordinate information and pressure data are read in the memory 23. Suppose there are sampling points 0,1,2,3,...,m,m∈N, the coordinate information of sampling point 0 is (x 0 ,y 0 ,z 0 ), the pressure data is p 0 , and the coordinate information of sampling point 1 Is (x 1 , y 1 , z 1 ), the pressure data is p 1 , the coordinate information of sampling point 2 is (x 2 , y 2 , z 2 ), the pressure data is p 2 , and so on, the sampling point m The coordinate information is (x m , y m , z m ), and the pressure data is p m . The processor 21 first converts the coordinate information of each sampling point (the coordinate information is the coordinate information of the sampling point on the writing board 12) into the coordinate information of the sampling point on the electronic display device 20, and then according to the pressure of each sampling point The data calculates the radius of the corresponding sampling point, where the radius ρ=f(p). For example, the transformed coordinate information of sampling point 0 is (x' 0 ,y' 0 ,z' 0 ), the radius is ρ 0 , and the transformed coordinate information of sampling point 1 is (x' 1 ,y' 1 ,z' 1 ), the radius is ρ 1 , the transformed coordinate information of the sampling point 2 is (x' 2 ,y' 2 ,z' 2 ), the radius is ρ 2 , and so on, the transformed coordinate information of the sampling point m is ( x 'm, y' m, z 'm), a radius of ρ m. Subsequently, the processor 21 can draw the writing track according to the converted coordinate information of the multiple sampling points, and then adjust the thickness of each sampling point on the writing track according to the radius of each sampling point. Further, for the line between any two directly adjacent sampling points, such as the line between sampling point 1 and sampling point 2, the thickness of this part of the line can be adjusted based on the radius of sampling point 1, or sampling points can be used 2 to adjust the thickness of this part of the line, or you can first average the radii of sampling point 1 and sampling point 2, and then adjust the thickness of this part of the line based on the average. It can be understood that if the pressure of the user writing is greater, the lines of the writing track will be thicker; if the pressure of the user writing is lower, the lines of the writing track will be thinner. Therefore, the thickness of the lines of the writing track can be adjusted correspondingly according to the pressure data of multiple sampling points, so that the final displayed handwriting has a thickness change, which is more consistent with the actual writing effect of the user, and the handwriting has a higher degree of restoration.
请一并参阅图8和图9,在某些实施方式中,书写数据包括压力数据及采集间隔时间,步骤S13根 据书写轨迹及书写数据生成显示笔迹包括:Please refer to FIG. 8 and FIG. 9 together. In some embodiments, the writing data includes pressure data and the collection interval time. Step S13 generates a display handwriting based on the writing track and the writing data including:
S1321:根据采集间隔时间及坐标信息计算至少一个采样点的书写速度;S1321: Calculate the writing speed of at least one sampling point according to the collection interval time and coordinate information;
S1322:根据至少一个采样点的书写速度及压力数据计算至少一个采样点的色彩明度;和S1322: Calculate the color brightness of at least one sampling point according to the writing speed and pressure data of the at least one sampling point; and
S1323:将书写轨迹上的多个采样点以对应该采样点的色彩明度显示以生成显示笔迹。S1323: Display multiple sampling points on the writing track with the color brightness corresponding to the sampling points to generate a display handwriting.
其中,步骤S1321包括:Wherein, step S1321 includes:
S13211:选取至少一个采样点作为当前的采样点;S13211: Select at least one sampling point as the current sampling point;
S13212:根据当前的采样点的坐标信息与前一个采样点的坐标信息计算当前的采样点与前一个采样点的之间的距离;S13212: Calculate the distance between the current sampling point and the previous sampling point according to the coordinate information of the current sampling point and the coordinate information of the previous sampling point;
S13213:根据距离及当前的采样点的采集间隔时间计算当前的采样点的书写速度。S13213: Calculate the writing speed of the current sampling point according to the distance and the collection interval time of the current sampling point.
请再参阅图2,在某些实施方式中,步骤S1321、步骤S1322、步骤S1323、步骤S13211、步骤S13212、步骤S13213均可以由处理器21实现。也即是说,处理器21还可用于根据采集间隔时间及坐标信息计算至少一个采样点的书写速度、根据至少一个采样点的书写速度及压力数据计算至少一个采样点的色彩明度、以及将书写轨迹上的多个采样点以对应该采样点的色彩明度显示以生成显示笔迹。处理器21执行步骤S1321时,具体执行选取至少一个采样点作为当前的采样点、根据当前的采样点的坐标信息与前一个采样点的坐标信息计算当前的采样点与前一个采样点的之间的距离、以及根据距离及当前的采样点的采集间隔时间计算当前的采样点的书写速度的操作。Please refer to FIG. 2 again. In some embodiments, step S1321, step S1322, step S1323, step S13211, step S13212, and step S13213 may all be implemented by the processor 21. In other words, the processor 21 can also be used to calculate the writing speed of at least one sampling point according to the collection interval and coordinate information, calculate the color brightness of at least one sampling point according to the writing speed and pressure data of the at least one sampling point, and write Multiple sampling points on the trajectory are displayed with the color brightness corresponding to the sampling points to generate display handwriting. When the processor 21 executes step S1321, it specifically executes selecting at least one sampling point as the current sampling point, and calculating the distance between the current sampling point and the previous sampling point according to the coordinate information of the current sampling point and the coordinate information of the previous sampling point. The operation of calculating the writing speed of the current sampling point based on the distance and the collection interval time of the current sampling point.
其中,色彩明度是指色彩的亮度或明度,也即颜色的深浅、明暗的变化。当前的采样点与前一个采样点可能是直接相邻或间接相邻的。若预设间隔个数为1,则当前的采样点与前一个采样点直接相邻;若预设间隔个数大于1,则当前的采样点与前一个采样点间接相邻。Among them, the color brightness refers to the brightness or brightness of the color, that is, the change of the color depth and lightness. The current sampling point and the previous sampling point may be directly adjacent or indirectly adjacent. If the preset number of intervals is 1, the current sampling point is directly adjacent to the previous sampling point; if the preset number of intervals is greater than 1, the current sampling point is indirectly adjacent to the previous sampling point.
具体地,书写板12将坐标信息、压力数据和采集间隔时间发送给电子显示装置20后,电子显示装置20会接收这些数据并将这些数据缓存到存储器23中,处理器21可以从存储器23中读取到坐标信息、压力数据和采集间隔时间。Specifically, after the writing board 12 sends the coordinate information, the pressure data, and the collection interval to the electronic display device 20, the electronic display device 20 will receive these data and cache the data in the memory 23, and the processor 21 can download the data from the memory 23. Read coordinate information, pressure data and collection interval time.
请结合图3,在一个例子中,假设有采样点0,1,2,3,…,m,m∈N,预设间隔个数L=1,此时每个采样点都包括坐标信息、压力数据和采集间隔时间。其中,采样点0的坐标信息为(x 0,y 0,z 0),压力数据为p 0,采集间隔时间为0,采样点1的坐标信息为(x 1,y 1,z 1),压力数据为p 1,采集间隔时间为t 11;采样点2的坐标信息为(x 2,y 2,z 2),压力数据为p 2,采集间隔时间为t 21;以此类推,采样点m的坐标信息为(x m,y m,z m),压力数据为p m,采集间隔时间为t n1(n=m/L=m/1)。处理器21首先将每个采样点的坐标信息(该坐标信息为采样点在书写板12上的坐标信息)转换为采样点在电子显示装置20上的坐标信息,例如,采样点0转换后的坐标信息为(x’ 0,y’ 0,z’ 0),采样点1转换后的坐标信息为(x’ 1,y’ 1,z’ 1),采样点2转换后的坐标信息为(x’ 2,y’ 2,z’ 2),以此类推,采样点m转换后的坐标信息为(x’ m,y’ m,z’ m)。随后,处理器21根据每个采样点(采样点0除外,采样点0的书写速度v 01默认为0)的坐标信息及采集间隔时间计算对应的采样点的书写速度。具体地,采样点1的书写速度v 11可以根据采样点0的坐标信息(即前一个采样点)、采样点1的坐标信息(即当前的采样点)、以及采样点1的采集间隔时间计算得到:处理器21首先根据采样点0的坐标信息和采样点1的坐标信息计算采样点0与采样点1之间的距离,再将距离除以采样点1的采集间隔时间即可得到采样点1的书写速度,即
Figure PCTCN2019074015-appb-000001
同理,采样点2的书写速度
Figure PCTCN2019074015-appb-000002
以此类推,采样点m的书写速度
Figure PCTCN2019074015-appb-000003
其中,n=m/L,n∈N。随后,处理器21根据每个采样点的压力信息及书写速度计算对应的采样点的色彩明度,其中,色彩明度π=h(p,v)。例如,采样点0的色彩明度 为π 01,采样点1的色彩明度为π 11,采样点2的色彩明度为π 21,以此类推,采样点m的色彩明度为π n1,n=m/L,n∈N。随后,处理器21即可根据多个采样点的转换后的坐标信息绘制出书写轨迹,再根据各个采样点的色彩明度对应调整书写轨迹上的各个采样点的颜色的深浅。进一步地,对于任意两个采样点之间的书写轨迹的线条,例如采样点1与采样点2之间的线条,可以基于采样点1的色彩明度来调整这部分线条的颜色深浅,或者采用采样点2的色彩明度来调整这部分线条的颜色深浅,或者可以先对采样点1和采样点2的色彩明度求均值,再基于该均值来调整这部分线条的颜色深浅。可以理解,若用户书写时的压力较大且速度较小,则线条的颜色会较深;若用户书写时的压力较小且速度较大,则线条的颜色会较浅;若用户书写时压力较大且速度也较大,或者压力较小且速度也较小,则线条的颜色不会太深也不会太浅。因此,可以根据多个采样点的压力数据和书写速度及来对应调整书写轨迹的色彩明度,从而使得最终生成的显示笔迹的颜色有深浅变化,与用户实际的书写效果更加吻合,笔迹的还原度较高。
Please refer to Figure 3. In an example, suppose there are sampling points 0,1,2,3,...,m,m∈N, and the preset number of intervals L=1. At this time, each sampling point includes coordinate information, Pressure data and collection interval time. Among them, the coordinate information of sampling point 0 is (x 0 , y 0 , z 0 ), the pressure data is p 0 , the collection interval is 0, and the coordinate information of sampling point 1 is (x 1 , y 1 , z 1 ), The pressure data is p 1 , the collection interval time is t 11 ; the coordinate information of sampling point 2 is (x 2 , y 2 , z 2 ), the pressure data is p 2 , and the collection interval time is t 21 ; and so on, the sampling point The coordinate information of m is (x m , y m , z m ), the pressure data is p m , and the collection interval time is t n1 (n=m/L=m/1). The processor 21 first converts the coordinate information of each sampling point (the coordinate information is the coordinate information of the sampling point on the writing board 12) into the coordinate information of the sampling point on the electronic display device 20, for example, the converted sample point 0 The coordinate information is (x' 0 ,y' 0 ,z' 0 ), the transformed coordinate information of sampling point 1 is (x' 1 ,y' 1 ,z' 1 ), and the transformed coordinate information of sampling point 2 is ( x '2, y' 2, z '2), and so on, the coordinate information is converted into m sampling point (x' m, y 'm , z' m). Subsequently, the processor 21 calculates the writing speed of the corresponding sampling point according to the coordinate information of each sampling point (except sampling point 0, the writing speed v 01 of sampling point 0 is 0 by default) and the collection interval time. Specifically, the writing speed v 11 of sampling point 1 can be calculated based on the coordinate information of sampling point 0 (that is, the previous sampling point), the coordinate information of sampling point 1 (that is, the current sampling point), and the sampling interval time of sampling point 1. Obtain: The processor 21 first calculates the distance between sampling point 0 and sampling point 1 according to the coordinate information of sampling point 0 and the coordinate information of sampling point 1, and then divides the distance by the sampling interval time of sampling point 1 to obtain the sampling point The writing speed of 1, namely
Figure PCTCN2019074015-appb-000001
Similarly, the writing speed of sampling point 2
Figure PCTCN2019074015-appb-000002
By analogy, the writing speed of sampling point m
Figure PCTCN2019074015-appb-000003
Among them, n=m/L, n∈N. Subsequently, the processor 21 calculates the color brightness of the corresponding sampling point according to the pressure information and writing speed of each sampling point, where the color brightness π=h(p,v). For example, the color brightness of sampling point 0 is π 01 , the color brightness of sampling point 1 is π 11 , the color brightness of sampling point 2 is π 21 , and so on, the color brightness of sampling point m is π n1 , n=m/ L, n ∈ N. Subsequently, the processor 21 can draw the writing trajectory according to the converted coordinate information of the multiple sampling points, and then adjust the color depth of each sampling point on the writing trajectory according to the color brightness of each sampling point. Further, for the line of the writing track between any two sampling points, such as the line between sampling point 1 and sampling point 2, the color depth of this part of the line can be adjusted based on the color brightness of sampling point 1, or sampling The color brightness of point 2 is used to adjust the color depth of this part of the line, or the color brightness of sampling point 1 and sampling point 2 can be averaged, and then the color depth of this part of the line can be adjusted based on the average value. It can be understood that if the user’s writing pressure is greater and the speed is lower, the line color will be darker; if the user’s writing pressure is lower and the speed is higher, the line color will be lighter; if the user’s writing pressure is greater Larger and higher speed, or lower pressure and lower speed, the color of the line will not be too dark or light. Therefore, the color brightness of the writing track can be adjusted correspondingly according to the pressure data and writing speed of multiple sampling points, so that the color of the final display handwriting is changed in depth, which is more consistent with the actual writing effect of the user, and the reproduction of the handwriting Higher.
请结合图4,在另一个例子中,假设有采样点0,1,2,3,…,m,m∈N,预设间隔个数L=4,此时部分采样点具有坐标信息、压力数据和采集间隔时间这三种数据,部分采样点仅具有坐标信息和压力数据这两种数据。其中,采样点0的坐标信息为(x 0,y 0,z 0),压力数据为p 0,采集间隔时间为0;采样点1的坐标信息为(x 1,y 1,z 1),压力数据为P 1;采样点2的坐标信息为(x 2,y 2,z 2),压力数据为p 2;采样点3的坐标信息为(x 3,y 3,z 3),压力数据为p 3;采样点4的坐标信息为(x 4,y 4,z 4),压力数据为p 4,采集间隔时间为t 14;以此类推,采样点m的坐标信息为(x m,y m,z m),压力数据为p m,采集间隔时间为t n4(n=m/L=m/4)。那么,处理器21首先将每个采样点的坐标信息(该坐标信息为采样点在书写板12上的坐标信息)转换为采样点在电子显示装置20上的坐标信息,例如,采样点0转换后的坐标信息为(x’ 0,y’ 0,z’ 0),采样点1转换后的坐标信息为(x’ 1,y’ 1,z’ 1),采样点2转换后的坐标信息为(x’ 2,y’ 2,z’ 2),采样点3转换后的坐标信息为(x’ 3,y’ 3,z’ 3),采样点4转换后的坐标信息为(x’ 4,y’ 4,z’ 4),以此类推,采样点m转换后的坐标信息为(x’ m,y’ m,z’ m)。随后,处理器21根据多个采样点(采样点0除外,采样点0的书写速度v 04默认为0)的坐标信息及采集间隔时间计算具有采集间隔时间的采样点的书写速度。具体地,采样点4的书写速度v 14可以根据采样点0的坐标信息(即前一个采样点)、采样点4的坐标信息(即当前的采样点)、以及采样点4的采集间隔时间计算得到:处理器21
Figure PCTCN2019074015-appb-000004
同理,采样点8的书写速度
Figure PCTCN2019074015-appb-000005
Figure PCTCN2019074015-appb-000006
以此类推,采样点m的书写速度
Figure PCTCN2019074015-appb-000007
其中,n=m/L,n∈N。随后,处理器21根据每个计算了书写速度的采样点的压力信息及书写速度计算对应的采样点的色彩明度,其中,色彩明度π=h(p,v)。例如,采样点0的色彩明度为π 04,采样点4的色彩明度为π 14,采样点8的色彩明度为π 24,以此类推,采样点m的色彩明度为π n4,n=m/L。随后,处理器21即可根据多个采样点的转换后的坐标信息绘制出书写轨迹,再根据多个计算了色彩明度的采样点的色彩明度对应调整书写轨迹上的多个采样点的颜色的深浅。进一步地,对于任意两个计算了色彩明度的采样点之间的书写轨迹中的其余采样点和线条,例如采样点0与采样点4之间的其余采样点和线条,可以基于采样点0的色彩明度来调整这部分采样点和线条的颜色深浅,或者采用采样点4的色彩明度来调整这部分采样点和线条的颜色深浅,或者可以先对采样点0和采样点4的色彩明度求均值,再基于该均值来调整这部分采样点和线条的颜色深浅。可以理解,若用户书写时的速度较大,则书写轨迹的颜色会较淡;若用户书写时的速度较小,则书写轨迹的颜色会较深。因此,可以根据多个采样点的压力数据和书写速度及来对应调整书写轨迹的色彩明度,从而使得最终生成的显示笔迹的颜色有深浅变化,与用户实际的书写效果更加吻合,笔迹的还原度较高。
Please refer to Figure 4. In another example, suppose there are sampling points 0,1,2,3,...,m,m∈N, and the preset number of intervals L=4. At this time, some sampling points have coordinate information and pressure For the three types of data, data and collection interval time, some sampling points only have two types of data: coordinate information and pressure data. Among them, the coordinate information of sampling point 0 is (x 0 , y 0 , z 0 ), the pressure data is p 0 , and the collection interval time is 0; the coordinate information of sampling point 1 is (x 1 , y 1 , z 1 ), The pressure data is P 1 ; the coordinate information of sampling point 2 is (x 2 , y 2 , z 2 ), and the pressure data is p 2 ; the coordinate information of sampling point 3 is (x 3 , y 3 , z 3 ), the pressure data Is p 3 ; the coordinate information of sampling point 4 is (x 4 , y 4 , z 4 ), the pressure data is p 4 , and the collection interval is t 14 ; and so on, the coordinate information of sampling point m is (x m , y m , z m ), the pressure data is p m , and the collection interval time is t n4 (n=m/L=m/4). Then, the processor 21 first converts the coordinate information of each sampling point (the coordinate information is the coordinate information of the sampling point on the writing board 12) into the coordinate information of the sampling point on the electronic display device 20, for example, sampling point 0 conversion after the coordinate information (x '0, y' 0 , z '0) coordinate information, the sampling point conversion 1 (x' 1, y '1 , z' 1), the coordinate information of the sampled points 2 conversion Is (x' 2 ,y' 2 ,z' 2 ), the converted coordinate information of sampling point 3 is (x' 3 ,y' 3 ,z' 3 ), and the converted coordinate information of sampling point 4 is (x' 4 ,y' 4 ,z' 4 ), and so on, the transformed coordinate information of the sampling point m is (x' m ,y' m ,z' m ). Subsequently, the processor 21 calculates the writing speed of the sampling point with the sampling interval time according to the coordinate information of multiple sampling points (except sampling point 0, the writing speed v 04 of sampling point 0 is 0 by default) and the sampling interval time. Specifically, the sampling writing speed v spot 4 14 according to the sampling point coordinate information (i.e. the previous sample) 0, the sampling coordinate information (i.e., the current sampling point) point 4, and the sample collection interval point 4 calculated Get: Processor 21
Figure PCTCN2019074015-appb-000004
Similarly, the writing speed of sampling point 8
Figure PCTCN2019074015-appb-000005
Figure PCTCN2019074015-appb-000006
By analogy, the writing speed of sampling point m
Figure PCTCN2019074015-appb-000007
Among them, n=m/L, n∈N. Subsequently, the processor 21 calculates the color brightness of the corresponding sampling point based on the pressure information and writing speed of each sampling point for which the writing speed is calculated, where the color brightness π=h(p,v). For example, the color brightness of sampling point 0 is π 04 , the color brightness of sampling point 4 is π 14 , the color brightness of sampling point 8 is π 24 , and so on, the color brightness of sampling point m is π n4 , n=m/ L. Subsequently, the processor 21 can draw the writing trajectory according to the converted coordinate information of the multiple sampling points, and then adjust the color of the multiple sampling points on the writing trajectory according to the color brightness of the multiple sampling points for which the color brightness is calculated. depth. Further, for the remaining sampling points and lines in the writing trajectory between any two sampling points for which the color brightness is calculated, for example, the remaining sampling points and lines between sampling point 0 and sampling point 4 can be based on sampling point 0 Color brightness to adjust the color depth of this part of the sampling points and lines, or use the color brightness of sampling point 4 to adjust the color depth of this part of the sampling points and lines, or you can first average the color brightness of sampling points 0 and 4 , And then adjust the color depth of this part of the sampling points and lines based on the average value. It can be understood that if the user's writing speed is high, the color of the writing track will be lighter; if the user's writing speed is low, the color of the writing track will be darker. Therefore, the color brightness of the writing track can be adjusted correspondingly according to the pressure data and writing speed of multiple sampling points, so that the color of the final display handwriting is changed in depth, which is more consistent with the actual writing effect of the user, and the reproduction of the handwriting Higher.
请参阅图10,在某些实施方式中,书写数据包括压力数据和采集间隔时间,步骤S13根据书写轨迹 及书写数据生成显示笔迹包括:Referring to FIG. 10, in some embodiments, the writing data includes pressure data and the collection interval time, and step S13 generating and displaying handwriting based on the writing trajectory and the writing data includes:
S1331:根据每个采样点的压力数据计算每个采样点的半径;S1331: Calculate the radius of each sampling point according to the pressure data of each sampling point;
S1332:根据采集间隔时间及坐标信息计算取至少一个采样点的书写速度;S1332: Calculate the writing speed of at least one sampling point according to the collection interval time and coordinate information;
S1333:根据至少一个采样点的书写速度及压力数据计算至少一个采样点的色彩明度;和S1333: Calculate the color brightness of at least one sampling point based on the writing speed and pressure data of at least one sampling point; and
S1334:将书写轨迹上的多个采样点以对应该采样点的半径及色彩明度显示以生成显示笔迹。S1334: Display multiple sampling points on the writing track with the radius and color brightness corresponding to the sampling points to generate display handwriting.
请再参阅图2,在某些实施方式中,步骤S1331、步骤S1332.步骤S1333和步骤S1334均可以由处理器21实现。也即是说,处理器21还可用于根据每个采样点的压力数据计算每个采样点的半径、根据采集间隔时间及坐标信息计算取至少一个采样点的书写速度、根据至少一个采样点的书写速度及压力数据计算至少一个采样点的色彩明度、以及将书写轨迹上的多个采样点以对应该采样点的半径及色彩明度显示以生成显示笔迹。Please refer to FIG. 2 again. In some embodiments, step S1331, step S1332. Both step S1333 and step S1334 can be implemented by the processor 21. In other words, the processor 21 can also be used to calculate the radius of each sampling point according to the pressure data of each sampling point, calculate the writing speed of at least one sampling point according to the sampling interval and coordinate information, and calculate the writing speed of at least one sampling point according to the pressure data of each sampling point. The writing speed and pressure data calculate the color brightness of at least one sampling point, and display multiple sampling points on the writing track with the radius and color brightness corresponding to the sampling points to generate the display handwriting.
具体地,请再结合图4,假设有采样点0,1,2,3,…,m,m∈N,预设间隔个数L=4,此时部分采样点具有坐标信息、压力数据和采集间隔时间这三种数据,部分采样点仅具有坐标信息和压力数据这两种数据。处理器21首先将每个采样点的坐标信息(该坐标信息为采样点在书写板12上的坐标信息)转换为采样点在电子显示装置20上的坐标信息。随后,处理器21根据每个采样点的压力数据计算对应的采样点的半径,其中,半径ρ=f(p)。随后,处理器21根据多个采样点(采样点0除外,采样点0的书写速度v 04默认为0)的坐标信息及采集间隔时间计算具有采集间隔时间的采样点的书写速度。具有采集间隔时间的采样点的书写速度的计算方式如前所述,在此不再赘述。随后,处理器21根据每个计算了书写速度的采样点的压力信息及书写速度计算对应的采样点的色彩明度,其中,色彩明度π=h(p,v)。随后,处理器21即可根据多个采样点的转换后的坐标信息绘制出书写轨迹,再根据各个采样点的半径对应调整书写轨迹上的各个采样点的粗细,并根据多个计算了色彩明度的采样点的色彩明度对应调整书写轨迹上的多个采样点的颜色的深浅。进一步地,对于任意两个直接相邻的采样点之间的线条,例如采样点1与采样点2之间的线条,可以基于采样点1的半径来调整这部分线条的粗细,或者采用采样点2的半径来调整这部分线条的粗细,或者可以先对采样点1和采样点2的半径求均值,再基于该均值来调整这部分线条的粗细;对于任意两个计算了色彩明度的采样点之间的书写轨迹中的其余采样点和线条,例如采样点0与采样点4之间的其余采样点和线条,可以基于采样点0的色彩明度来调整这部分采样点和线条的颜色深浅,或者采用采样点4的色彩明度来调整这部分采样点和线条的颜色深浅,或者可以先对采样点0和采样点4的色彩明度求均值,再基于该均值来调整这部分采样点和线条的颜色深浅。如此,可以根据多个采样点的压力数据来对应调整书写轨迹的线条的粗细,根据多个采样点的压力数据和书写速度及来对应调整书写轨迹的色彩明度,从而使得最终生成的显示笔迹的线条有粗细变化,显示笔迹的颜色有深浅变化,与用户实际的书写效果更加吻合,笔迹的还原度较高。 Specifically, please refer to Figure 4 again, assuming that there are sampling points 0, 1, 2, 3,..., m, m ∈ N, and the preset number of intervals L=4. At this time, some sampling points have coordinate information, pressure data, and For these three types of data collection interval, some sampling points only have two types of data: coordinate information and pressure data. The processor 21 first converts the coordinate information of each sampling point (the coordinate information is the coordinate information of the sampling point on the writing board 12) into the coordinate information of the sampling point on the electronic display device 20. Subsequently, the processor 21 calculates the radius of the corresponding sampling point according to the pressure data of each sampling point, where the radius ρ=f(p). Subsequently, the processor 21 calculates the writing speed of the sampling point with the sampling interval time according to the coordinate information of multiple sampling points (except sampling point 0, the writing speed v 04 of sampling point 0 is 0 by default) and the sampling interval time. The calculation method of the writing speed of the sampling point with the collection interval time is as described above, and will not be repeated here. Subsequently, the processor 21 calculates the color brightness of the corresponding sampling point based on the pressure information and writing speed of each sampling point for which the writing speed is calculated, where the color brightness π=h(p,v). Subsequently, the processor 21 can draw the writing trajectory according to the converted coordinate information of the multiple sampling points, and then adjust the thickness of each sampling point on the writing trajectory according to the radius of each sampling point, and calculate the color brightness according to the multiple The color brightness of the sampling points corresponding to the adjustment of the color depth of the multiple sampling points on the writing track. Further, for the line between any two directly adjacent sampling points, such as the line between sampling point 1 and sampling point 2, the thickness of this part of the line can be adjusted based on the radius of sampling point 1, or sampling points can be used 2 to adjust the thickness of this part of the line, or you can first average the radius of sampling point 1 and sampling point 2, and then adjust the thickness of this part of the line based on the average; for any two sampling points whose color brightness is calculated The remaining sampling points and lines in the writing trajectory between, for example, the remaining sampling points and lines between sampling point 0 and sampling point 4, the color depth of these sampling points and lines can be adjusted based on the color brightness of sampling point 0, Or use the color brightness of sampling point 4 to adjust the color depth of this part of the sampling points and lines, or you can first average the color brightness of sampling point 0 and sampling point 4, and then adjust the color brightness of this part of the sampling points and lines based on the average value. The shade of color. In this way, the thickness of the lines of the writing track can be adjusted according to the pressure data of multiple sampling points, and the color brightness of the writing track can be adjusted correspondingly according to the pressure data and writing speed of multiple sampling points, so that the final generated display handwriting is The thickness of the line changes, and the color of the displayed handwriting changes in depth, which is more consistent with the actual writing effect of the user, and the reduction of handwriting is higher.
请一并参阅图11和图12,在某些实施方式中,书写数据包括压力数据和采集间隔时间,步骤S13根据书写轨迹及书写数据生成显示笔迹包括:Please refer to FIG. 11 and FIG. 12 together. In some embodiments, the writing data includes pressure data and the collection interval time. Step S13 generates the display handwriting based on the writing trajectory and the writing data including:
S1341:根据每个采样点的压力数据计算每个采样点的半径;S1341: Calculate the radius of each sampling point according to the pressure data of each sampling point;
S1342:根据采集间隔时间及坐标信息计算至少一个采样点的书写加速度;S1342: Calculate the writing acceleration of at least one sampling point according to the collection interval time and coordinate information;
S1343:根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的半径渐变度;和S1343: Calculate the gradient of the radius of the line between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point; and
S1344:将书写轨迹上的多个采样点以对应该采样点的半径显示、两个采样点之间的线条的半径根据对应的半径渐变度变化显示以生成显示笔迹。S1344: Display multiple sampling points on the writing track with the radius corresponding to the sampling point, and display the radius of the line between the two sampling points according to the corresponding gradual change of the radius to generate the display handwriting.
其中,步骤S1342包括:Among them, step S1342 includes:
S13421:选取至少一个采样点作为当前的采样点;S13421: Select at least one sampling point as the current sampling point;
S13422:根据当前的采样点的坐标信息、采集时间间隔、及前一个采样点的坐标信息计算当前采样点的书写速度,根据前一个采样点的坐标信息、采集时间间隔、及再前一个采样点的坐标信息计算前一个采样点的书写速度;S13422: Calculate the writing speed of the current sampling point according to the coordinate information of the current sampling point, the collection time interval, and the coordinate information of the previous sampling point, and according to the coordinate information of the previous sampling point, the collection time interval, and the previous sampling point Calculate the writing speed of the previous sampling point with the coordinate information;
S13423:根据当前的采样点的书写速度、前一个采样点的书写速度、及当前的采样点的采集时间间隔计算当前的采样点的书写加速度。S13423: Calculate the writing acceleration of the current sampling point according to the writing speed of the current sampling point, the writing speed of the previous sampling point, and the collection time interval of the current sampling point.
请再参阅图2,在某些实施方式中,步骤S1341、步骤S1342、步骤S1343、步骤S1344、步骤S13421、步骤S13422及步骤S13423均可以由处理器21实现。也即是说,处理器21还可用于根据每个采样点的压力数据计算每个采样点的半径、根据采集间隔时间及坐标信息计算至少一个采样点的书写加速度、根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的半径渐变度、以及将书写轨迹上的多个采样点以对应该采样点的半径显示、两个采样点之间的线条的半径根据对应的半径渐变度变化显示以生成显示笔迹。处理器21执行步骤S1342时,处理器21具体执行以下操作:选取至少一个采样点作为当前的采样点,根据当前的采样点的坐标信息、采集时间间隔、及前一个采样点的坐标信息计算当前采样点的书写速度,根据前一个采样点的坐标信息、采集时间间隔、及再前一个采样点的坐标信息计算前一个采样点的书写速度,根据当前的采样点的书写速度、前一个采样点的书写速度、及当前的采样点的采集时间间隔计算当前的采样点的书写加速度。Please refer to FIG. 2 again. In some embodiments, step S1341, step S1342, step S1343, step S1344, step S13421, step S13422, and step S13423 can all be implemented by the processor 21. In other words, the processor 21 can also be used to calculate the radius of each sampling point according to the pressure data of each sampling point, calculate the writing acceleration of at least one sampling point according to the sampling interval and coordinate information, and according to the writing of at least one sampling point. The acceleration calculates the gradient of the radius of the line between the sampling point and the adjacent sampling point, and displays the multiple sampling points on the writing track with the radius corresponding to the sampling point, and the line between the two sampling points The radius is displayed according to the gradient of the corresponding radius to generate display handwriting. When the processor 21 performs step S1342, the processor 21 specifically performs the following operations: select at least one sampling point as the current sampling point, and calculate the current sampling point according to the coordinate information of the current sampling point, the collection time interval, and the coordinate information of the previous sampling point. The writing speed of the sampling point, according to the coordinate information of the previous sampling point, the collection time interval, and the coordinate information of the previous sampling point, the writing speed of the previous sampling point is calculated, and the writing speed of the current sampling point, the previous sampling point The writing speed of the current sampling point and the acquisition time interval of the current sampling point are used to calculate the writing acceleration of the current sampling point.
其中,半径渐变度可以是线条的半径由大到小的变化,此时线条由粗到细渐变;半径渐变度也可以是线条的半径由小到大的变化,此时线条由细到粗渐变。Among them, the radius gradient can be the change in the radius of the line from large to small, when the line gradually changes from thick to thin; the radius gradient can also be the change in the radius of the line from small to large, when the line changes from thin to thick .
具体地,请再结合图4,假设有采样点0,1,2,3,…,m,m∈N,预设间隔个数L=4,此时部分采样点具有坐标信息、压力数据和采集间隔时间这三种数据,部分采样点仅具有坐标信息和压力数据这两种数据。处理器21首先将每个采样点的坐标信息(该坐标信息为采样点在书写板12上的坐标信息)转换为采样点在电子显示装置20上的坐标信息。随后,处理器21根据每个采样点的压力数据计算对应的采样点的半径,其中,半径ρ=f(p)。随后,处理器21根据多个采样点(采样点0除外,采样点0的书写速度v 04默认为0)的坐标信息及采集间隔时间计算具有采集间隔时间的采样点的书写速度,再根据具有采集间隔时间的采样点的书写速度计算具有采集间隔时间的采样点的书写加速度。具体地,采样点4的书写速度v 14可以根据采样点0的坐标信息(即前一个采样点)、采样点4的坐标信息(即当前采样点)、以及采样点4的采集间隔时间计算得到,采样点4的书写加速度a 14可以根据采样点0的书写速度v 04(v 04=0)、采样点4的书写速度v 14、及采样点4的采集间隔时间计算得到:
Figure PCTCN2019074015-appb-000008
Figure PCTCN2019074015-appb-000009
同理,采样点8的书写速度
Figure PCTCN2019074015-appb-000010
以此类推,采样点m的书写速度
Figure PCTCN2019074015-appb-000011
n=m/L,n∈N。随后,处理器21根据每个计算了书写加速度的采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的半径渐变度,其中,半径渐变度σ=g(a)。例如,采样点0与采样点4之间的线条的半径渐变度为σ 14,采样点4与采样点8之间的线条的半径渐变度为σ 24,以此类推,采样点n*4与采样点(n-1)4之间的线条的半径渐变度为σ n4。随后,处理器21根据多个采样点的转换后的坐标信息绘制出书写轨迹,根据各个采样点的半径对应调整书写轨迹上的各个采样点的粗细,并根据多个半径渐变度调整对应线条的半径的粗细变化,从而生成最终的显示笔迹。可以理解,若用户书写时的书写速度逐渐变大,则书写轨迹的线条会逐渐变细;若用户书写时的书写速度逐渐变小,则书写轨迹的线条会逐渐变粗。因此,可以根据多个采样点的书写加速度对应调整书写轨迹中线条的粗细变化,从而使得最终生成的显示笔迹的 线条(尤其是笔锋位置)有粗细渐变的效果,与用户实际的书写效果更加吻合,笔迹的还原度较高。
Specifically, please refer to Figure 4 again, assuming that there are sampling points 0, 1, 2, 3,..., m, m ∈ N, and the preset number of intervals L=4. At this time, some sampling points have coordinate information, pressure data, and For these three types of data collection interval, some sampling points only have two types of data: coordinate information and pressure data. The processor 21 first converts the coordinate information of each sampling point (the coordinate information is the coordinate information of the sampling point on the writing board 12) into the coordinate information of the sampling point on the electronic display device 20. Subsequently, the processor 21 calculates the radius of the corresponding sampling point according to the pressure data of each sampling point, where the radius ρ=f(p). Subsequently, the processor 21 calculates the writing speed of the sampling point with the sampling interval according to the coordinate information of the multiple sampling points (except sampling point 0, the writing speed v 04 of sampling point 0 is 0 by default) and the sampling interval time, and then according to the The writing speed of the sampling point of the sampling interval time is calculated to calculate the writing acceleration of the sampling point of the sampling interval time. Specifically, the writing speed v 14 of sampling point 4 can be calculated according to the coordinate information of sampling point 0 (ie the previous sampling point), the coordinate information of sampling point 4 (ie the current sampling point), and the sampling interval time of sampling point 4. , The writing acceleration a 14 of sampling point 4 can be calculated according to the writing speed v 04 (v 04 =0) of sampling point 0, the writing speed v 14 of sampling point 4, and the collection interval time of sampling point 4:
Figure PCTCN2019074015-appb-000008
Figure PCTCN2019074015-appb-000009
Similarly, the writing speed of sampling point 8
Figure PCTCN2019074015-appb-000010
By analogy, the writing speed of sampling point m
Figure PCTCN2019074015-appb-000011
n=m/L, n∈N. Subsequently, the processor 21 calculates the radius gradient of the line between the sampling point and the adjacent sampling point according to the writing acceleration of each sampling point for which the writing acceleration is calculated, where the radius gradient σ=g(a) . For example, the radius gradient of the line between sampling point 0 and sampling point 4 is σ 14 , the radius gradient of the line between sampling point 4 and sampling point 8 is σ 24 , and so on, sampling point n*4 is The gradient of the radius of the line between the sampling points (n-1)4 is σ n4 . Subsequently, the processor 21 draws the writing trajectory according to the converted coordinate information of the multiple sampling points, correspondingly adjusts the thickness of each sampling point on the writing trajectory according to the radius of each sampling point, and adjusts the corresponding line according to the gradient of the multiple radii The thickness of the radius changes to generate the final display handwriting. It can be understood that if the user's writing speed gradually increases, the lines of the writing trace will gradually become thinner; if the user's writing speed gradually decreases, the lines of the writing trace will gradually become thicker. Therefore, the thickness of the line in the writing track can be adjusted according to the writing acceleration of multiple sampling points, so that the final generated line showing the handwriting (especially the position of the pen tip) has the effect of gradual thickness, which is more consistent with the actual writing effect of the user , The reduction degree of handwriting is higher.
请参阅图13,在某些实施方式中,在某些实施方式中,书写数据包括压力数据和采集间隔时间,步骤S13根据书写轨迹及书写数据生成显示笔迹包括:Referring to FIG. 13, in some embodiments, in some embodiments, the writing data includes pressure data and a collection interval time, and step S13 generating display handwriting based on the writing trajectory and the writing data includes:
S1351:根据采集间隔时间及坐标信息计算至少一个采样点的书写速度;S1351: Calculate the writing speed of at least one sampling point according to the collection interval time and coordinate information;
S1352:根据至少一个采样点的书写速度及压力数据计算至少一个采样点的色彩明度;S1352: Calculate the color brightness of at least one sampling point according to the writing speed and pressure data of the at least one sampling point;
S1353:根据采集间隔时间及坐标信息计算至少一个采样点的书写加速度;S1353: Calculate the writing acceleration of at least one sampling point according to the collection interval time and coordinate information;
S1354:根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的色彩明度渐变度;和S1354: Calculate the color brightness gradient of the line between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point; and
S1355:将书写轨迹上的多个采样点以对应该采样点的色彩明度显示、两个采样点之间的线条的色彩明度根据对应的色彩明度渐变度变化显示以生成显示笔迹。S1355: Display multiple sampling points on the writing track with the color brightness corresponding to the sampling point, and display the color brightness of the line between the two sampling points according to the corresponding color brightness gradual change to generate display handwriting.
请再参阅图2,在某些实施方式中,步骤S1351、步骤S1352、步骤S1353、步骤S1354和步骤S1355均可以由处理器21实现。也即是说,处理器21还可用于根据采集间隔时间及坐标信息计算至少一个采样点的书写速度、根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的色彩明度渐变度、根据采集间隔时间及坐标信息计算至少一个采样点的书写加速度、根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的色彩明度渐变度、以及将书写轨迹上的多个采样点以对应该采样点的色彩明度显示、两个采样点之间的线条的色彩明度根据对应的色彩明度渐变度变化显示以生成显示笔迹。Please refer to FIG. 2 again. In some embodiments, step S1351, step S1352, step S1353, step S1354, and step S1355 can all be implemented by the processor 21. That is to say, the processor 21 can also be used to calculate the writing speed of at least one sampling point according to the collection interval time and coordinate information, and to calculate the distance between the sampling point and the adjacent sampling point according to the writing acceleration of the at least one sampling point. The color lightness gradient of the line, the writing acceleration of at least one sampling point is calculated according to the collection interval time and coordinate information, and the color lightness of the line between the sampling point and the adjacent sampling point is calculated according to the writing acceleration of at least one sampling point Gradient and multiple sampling points on the writing track are displayed with the color lightness corresponding to the sampling point, and the color lightness of the line between the two sampling points is displayed according to the corresponding color lightness gradient change to generate the display handwriting.
其中,色彩明度渐变度可以是线条的颜色由深到浅的变化;色彩明度的渐变度也可以是线条的颜色由浅到深的变化。Among them, the gradation of color lightness can be the change of the color of the line from dark to light; the gradation of color lightness can also be the change of the color of the line from light to dark.
具体地,请再结合图4,假设有采样点0,1,2,3,…,m,m∈N,预设间隔个数L=4,此时部分采样点具有坐标信息、压力数据和采集间隔时间这三种数据,部分采样点仅具有坐标信息和压力数据这两种数据。处理器21首先将每个采样点的坐标信息(该坐标信息为采样点在书写板12上的坐标信息)转换为采样点在电子显示装置20上的坐标信息。随后,处理器21根据多个采样点(采样点0除外,采样点0的速度v 04默认为0)的坐标信息及采集间隔时间计算具有采集间隔时间的采样点的书写速度及书写加速度。具有采集间隔时间的采样点的书写速度及书写加速度的计算方式如前所述,在此不再赘述。随后,处理器21根据每个计算了书写速度的采样点的压力信息及书写速度计算对应的采样点的色彩明度,其中,色彩明度π=h(p,v)。接着,处理器21根据每个计算了书写加速度的采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的色彩明度渐变度,其中,渐变度σ=g(a)。例如,采样点0与采样点4之间的线条的色彩明度的渐变度为σ 14,采样点4与采样点8之间的线条的色彩明度的渐变度为σ 24,以此类推,采样点n*4与采样点(n-1)4之间的线条的色彩明度的渐变度为σ n4。随后,处理器21根据多个采样点的转换后的坐标信息绘制出书写轨迹,根据多个计算了色彩明度的采样点的色彩明度对应调整书写轨迹上的多个采样点的颜色的深浅,并根据多个色彩明度渐变度调整对应的线条的颜色的深浅变化,从而生成最终的显示笔迹。可以理解,若用户书写时的书写速度逐渐变大,则的颜色会逐渐变浅;若用户书写时的书写速度逐渐变小,则线条会逐渐变深。因此,可以根据多个采样点的书写加速度对应调整书写轨迹中线条的颜色的深浅变化,从而使得最终生成的显示笔迹的线条(尤其是笔锋位置)的颜色有深浅渐变的效果,与用户实际的书写效果更加吻合,笔迹的还原度较高。 Specifically, please refer to Figure 4 again, assuming that there are sampling points 0, 1, 2, 3,..., m, m ∈ N, and the preset number of intervals L=4. At this time, some sampling points have coordinate information, pressure data, and For these three types of data collection interval, some sampling points only have two types of data: coordinate information and pressure data. The processor 21 first converts the coordinate information of each sampling point (the coordinate information is the coordinate information of the sampling point on the writing board 12) into the coordinate information of the sampling point on the electronic display device 20. Subsequently, the processor 21 calculates the writing speed and writing acceleration of the sampling points with the sampling interval based on the coordinate information and the sampling interval time of multiple sampling points (except sampling point 0, the velocity v 04 of sampling point 0 is 0 by default). The calculation method of the writing speed and the writing acceleration of the sampling points with the collection interval time is as described above, and will not be repeated here. Subsequently, the processor 21 calculates the color brightness of the corresponding sampling point based on the pressure information and writing speed of each sampling point for which the writing speed is calculated, where the color brightness π=h(p,v). Next, the processor 21 calculates the color brightness gradient of the line between the sampling point and the adjacent sampling point according to the writing acceleration of each sampling point for which the writing acceleration is calculated, where the gradient σ=g(a) . For example, the color brightness gradient of the line between sampling point 0 and sampling point 4 is σ 14 , the color brightness gradient of the line between sampling point 4 and sampling point 8 is σ 24 , and so on, the sampling point The gradation of the color brightness of the line between n*4 and the sampling point (n-1)4 is σ n4 . Subsequently, the processor 21 draws the writing trajectory according to the converted coordinate information of the multiple sampling points, and correspondingly adjusts the color intensity of the multiple sampling points on the writing trajectory according to the color brightness of the multiple sampling points for which the color brightness is calculated, and Adjust the color depth changes of the corresponding lines according to the multiple color brightness gradients, thereby generating the final display handwriting. It can be understood that if the user's writing speed gradually increases, the color will gradually become lighter; if the user's writing speed gradually decreases, the line will gradually become darker. Therefore, the color of the line in the writing track can be adjusted according to the writing acceleration of multiple sampling points, so that the final color of the line (especially the position of the pen tip) that displays the handwriting has the effect of gradual gradient, which is consistent with the actual user The writing effect is more consistent, and the reduction of handwriting is higher.
请参阅图14,在某些实施方式中,书写数据包括压力数据及采集间隔时间。步骤S13根据书写轨迹及书写数据生成显示笔迹包括:Please refer to FIG. 14. In some embodiments, the written data includes pressure data and collection interval time. Step S13 generating and displaying handwriting according to the writing track and writing data includes:
S1361:根据每个采样点的压力数据计算每个采样点的半径;S1361: Calculate the radius of each sampling point according to the pressure data of each sampling point;
S1362:根据采集间隔时间及坐标信息计算至少一个采样点的书写速度;S1362: Calculate the writing speed of at least one sampling point according to the collection interval time and coordinate information;
S1363:根据至少一个采样点的书写速度及压力数据计算至少一个采样点的色彩明度;S1363: Calculate the color brightness of at least one sampling point according to the writing speed and pressure data of the at least one sampling point;
S1364:根据采集间隔时间及坐标信息计算至少一个采样点的书写加速度;S1364: Calculate the writing acceleration of at least one sampling point according to the collection interval time and coordinate information;
S1365:根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的半径渐变度,并根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的色彩明度渐变度;S1365: Calculate the gradient of the radius of the line between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point, and calculate the sampling point and the adjacent sampling point according to the writing acceleration of the at least one sampling point The color brightness gradient of the line between the sampling points;
S1366:将书写轨迹上的多个采样点以对应该采样点的半径和色彩明度显示、两个采样点之间的线条的半径根据对应的半径渐变度变化显示、两个采样点之间的线条的色彩明度根据对应的色彩明度渐变度变化显示以生成显示笔迹。S1366: Display multiple sampling points on the writing track with the radius and color brightness corresponding to the sampling points, the radius of the line between the two sampling points is displayed according to the gradient of the corresponding radius, and the line between the two sampling points The color brightness of is displayed according to the corresponding color brightness gradual change to generate display handwriting.
请再参阅图2,在某些实施方式中,步骤S1361、步骤S1362、步骤S1363、步骤S1364、步骤S1365和步骤S1366均可以由处理器21实现。也即是说,处理器21还可用于根据每个采样点的压力数据计算每个采样点的半径,根据采集间隔时间及坐标信息计算至少一个采样点的书写速度,根据至少一个采样点的书写速度及压力数据计算至少一个采样点的色彩明度,根据采集间隔时间及坐标信息计算至少一个采样点的书写加速度,根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的半径渐变度,并根据至少一个采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的色彩明度渐变度,以及书写轨迹上的多个采样点以对应该采样点的半径和色彩明度显示、两个采样点之间的线条的半径根据对应的半径渐变度变化显示、两个采样点之间的线条的色彩明度根据对应的色彩明度渐变度变化显示以生成显示笔迹。Referring to FIG. 2 again, in some embodiments, step S1361, step S1362, step S1363, step S1364, step S1365, and step S1366 can all be implemented by the processor 21. In other words, the processor 21 can also be used to calculate the radius of each sampling point according to the pressure data of each sampling point, calculate the writing speed of at least one sampling point according to the sampling interval time and coordinate information, and according to the writing speed of at least one sampling point. Speed and pressure data calculate the color brightness of at least one sampling point, calculate the writing acceleration of at least one sampling point according to the collection interval time and coordinate information, and calculate the difference between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point The gradient of the radius of the line between the sample points, and calculate the color brightness gradient of the line between the sample point and the adjacent sample point according to the writing acceleration of at least one sample point, and the multiple sample points on the writing track to match The radius and color brightness of the sampling points should be displayed, the radius of the line between the two sampling points should be displayed according to the corresponding radius gradient change, and the color brightness of the line between the two sampling points should be displayed according to the corresponding color brightness gradient change. Generate display handwriting.
具体地,请再结合图4,假设有采样点0,1,2,3,…,m,m∈N,预设间隔个数L=4,此时部分采样点具有坐标信息、压力数据和采集间隔时间这三种数据,部分采样点仅具有坐标信息和压力数据这两种数据。处理器21首先将每个采样点的坐标信息(该坐标信息为采样点在书写板12上的坐标信息)转换为采样点在电子显示装置20上的坐标信息。随后,处理器21根据每个采样点的压力数据计算对应的采样点的半径,其中,半径ρ=f(p)。随后,处理器21根据多个采样点(采样点0除外,采样点0的速度v 04默认为0)的坐标信息及采集间隔时间计算具有采集间隔时间的采样点的书写速度及书写加速度。具有采集间隔时间的采样点的书写速度及书写加速度的计算方式如前所述,在此不再赘述。随后,处理器21根据每个计算了书写加速度的采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的半径渐变度。接着,处理器21根据每个计算了书写速度的采样点的压力信息及书写速度计算对应的采样点的色彩明度,并根据每个计算了书写加速度的采样点的书写加速度计算该采样点与与之相邻的采样点之间的线条的色彩明度渐变度。随后,处理器21根据多个采样点的转换后的坐标信息绘制出书写轨迹,根据各个采样点的半径对应调整书写轨迹上的各个采样点的粗细,根据多个半径渐变度调整对应线条的半径的粗细变化,根据多个计算了色彩明度的采样点的色彩明度对应调整书写轨迹上的多个采样点的颜色的深浅,并根据多个色彩明度渐变度调整对应的线条的颜色的深浅变化,从而生成最终的显示笔迹。如此,可以根据多个采样点的书写加速度对应调整书写轨迹中线条的粗细变化,并根据多个采样点的书写加速度对应调整书写轨迹中线条的颜色的深浅变化,从而使得最终生成的显示笔迹的线条(尤其是笔锋位置)有粗细渐变的效果、颜色有深浅渐变的效果,与用户实际的书写效果更加吻合,笔迹的还原度较高。 Specifically, please refer to Figure 4 again, assuming that there are sampling points 0, 1, 2, 3,..., m, m ∈ N, and the preset number of intervals L=4. At this time, some sampling points have coordinate information, pressure data, and For these three types of data collection interval, some sampling points only have two types of data: coordinate information and pressure data. The processor 21 first converts the coordinate information of each sampling point (the coordinate information is the coordinate information of the sampling point on the writing board 12) into the coordinate information of the sampling point on the electronic display device 20. Subsequently, the processor 21 calculates the radius of the corresponding sampling point according to the pressure data of each sampling point, where the radius ρ=f(p). Subsequently, the processor 21 calculates the writing speed and writing acceleration of the sampling points with the sampling interval based on the coordinate information and the sampling interval time of multiple sampling points (except sampling point 0, the velocity v 04 of sampling point 0 is 0 by default). The calculation method of the writing speed and the writing acceleration of the sampling points with the collection interval time is as described above, and will not be repeated here. Subsequently, the processor 21 calculates the gradient of the radius of the line between the sampling point and the adjacent sampling point according to the writing acceleration of each sampling point for which the writing acceleration is calculated. Next, the processor 21 calculates the color brightness of the corresponding sampling point according to the pressure information and writing speed of each sampling point for which the writing speed is calculated, and calculates the sampling point and The color lightness gradient of the line between adjacent sampling points. Subsequently, the processor 21 draws the writing trajectory according to the converted coordinate information of the multiple sampling points, correspondingly adjusts the thickness of each sampling point on the writing trajectory according to the radius of each sampling point, and adjusts the radius of the corresponding line according to the gradient of multiple radii According to the color brightness of multiple sampling points for which the color brightness is calculated, the color brightness of the multiple sampling points on the writing track is adjusted correspondingly, and the color depth of the corresponding line is adjusted according to the multiple color brightness gradients, To generate the final display handwriting. In this way, the thickness of the line in the writing track can be adjusted according to the writing acceleration of multiple sampling points, and the color of the line in the writing track can be adjusted according to the writing acceleration of multiple sampling points, so that the final generated display handwriting The line (especially the position of the pen tip) has the effect of gradual gradation of thickness, and the effect of gradual gradation of color, which is more consistent with the actual writing effect of the user, and the handwriting has a higher degree of restoration.
在某些实施方式中,采样点的半径除了与压力数据相关联以外,还与书写笔11的类型相关联,即ρ=f(p,type),其中,type为书写笔11的类型。可以理解,不同类型的书写笔11,其笔尖的直径可能是不同的。用户使用相同的压力书写时,笔尖直径较大的书写笔11书写出来的笔迹较粗,而笔尖直径较小 的书写笔11书写出来的笔迹较细。因此,电子显示装置20绘制笔迹前首先确定书写笔11的类型,再根据书写笔11的类型和各个采样点的压力计算各个采样点的半径。如此,可以进一步提升笔迹的还原度。In some embodiments, the radius of the sampling point is not only associated with the pressure data, but also associated with the type of the writing pen 11, that is, ρ=f(p,type), where type is the type of the writing pen 11. It can be understood that different types of writing pens 11 may have different pen tip diameters. When the user writes with the same pressure, the writing pen 11 with a larger tip diameter writes thicker handwriting, while the writing pen 11 with a smaller tip diameter writes thinner handwriting. Therefore, the electronic display device 20 first determines the type of the writing pen 11 before drawing the handwriting, and then calculates the radius of each sampling point according to the type of the writing pen 11 and the pressure of each sampling point. In this way, the reduction of handwriting can be further improved.
在某些实施方式中,采样点的色彩明度除了与压力数据及书写速度相关联以外,还与书写笔11的类型相关联,即π=h(p,v,type),其中,type为书写笔11的类型。可以理解,不同类型的书写笔11,其笔尖的直径可能是不同的。用户使用相同的压力及相同的速度书写时,笔尖直径较大的书写笔11书写出来的笔迹颜色较深,而笔尖直径较小的书写笔11书写出来的笔迹颜色较浅。因此,电子显示装置20绘制笔迹前首先确定书写笔11的类型,再根据书写笔11的类型、采样点的压力及书写速度计算采样点的色彩明度。如此,可以进一步提升笔迹的还原度。In some embodiments, the color brightness of the sampling point is not only associated with pressure data and writing speed, but also associated with the type of writing pen 11, that is, π=h(p,v,type), where type is writing The type of pen 11. It can be understood that different types of writing pens 11 may have different pen tip diameters. When the user writes with the same pressure and the same speed, the pen 11 with a larger nib diameter writes a darker handwriting, while the pen 11 with a smaller nib diameter writes a lighter handwriting. Therefore, the electronic display device 20 first determines the type of the writing pen 11 before drawing the handwriting, and then calculates the color brightness of the sampling point according to the type of the writing pen 11, the pressure of the sampling point, and the writing speed. In this way, the reduction of handwriting can be further improved.
在某些实施方式中,采样点的渐变度除了与书写加速度相关联以外,还与书写笔11的类型相关联,即σ=g(a,type),其中,type为书写笔11的类型。可以理解,不同类型的书写笔11,其笔尖的直径可能是不同的。在压力数据、书写速度及书写加速度一致时,笔尖直径较大的书写笔11书写出来的笔迹的粗细变化与笔尖直径较小的书写笔11书写出来的笔迹的粗细变化可能不同,笔尖直径较大的书写笔11书写出来的笔迹的颜色深浅变化与笔尖直径较小的书写笔11书写出来的笔迹的颜色深浅变化也可能不同,。因此,电子显示装置20绘制笔迹前首先确定书写笔11的类型,再根据书写笔11的类型、采样点的书写加速度计算两个采样点间的的笔迹的半径及色彩明度的渐变度。如此,可以进一步提升笔迹的还原度。In some embodiments, in addition to being associated with the writing acceleration, the gradient of the sampling point is also associated with the type of the writing pen 11, that is, σ=g(a, type), where type is the type of the writing pen 11. It can be understood that different types of writing pens 11 may have different pen tip diameters. When the pressure data, writing speed and writing acceleration are consistent, the thickness change of the handwriting written by the pen 11 with a larger nib diameter may be different from the thickness change of the handwriting written by the pen 11 with a smaller nib diameter. The nib diameter is larger. The color depth change of the handwriting written by the writing pen 11 may be different from the color depth change of the handwriting written by the writing pen 11 with a smaller tip diameter. Therefore, the electronic display device 20 first determines the type of the writing pen 11 before drawing the handwriting, and then calculates the radius of the handwriting and the gradation of the color brightness between the two sampling points according to the type of the writing pen 11 and the writing acceleration of the sampling points. In this way, the reduction of handwriting can be further improved.
其中,书写笔11的类型可以由书写板12发送给电子显示装置20。具体地,在一个实施例中,每支书写笔11具有一个唯一标识,不同的书写笔11的标识不同。书写板12与书写笔11无线通信连接时,书写笔11将自身的标识发送给书写板12,再由书写板12发送给电子显示装置20,以告知电子显示装置20书写笔11的类型。在另一个实施例中,每支书写笔11具有一个唯一标识,不同的书写笔11的标识不同。书写笔11书写前直接将自身的标识发送给电子显示装置20,以告知电子显示装置20自身的类型。在又一个实施例中,书写笔11的类型由书写板12进行识别,书写板12接收到书写笔11的触控后,根据书写笔11与书写板12之间触控区域的大小确定出书写笔11的类型。书写板12识别出书写笔11的类型之后,再将书写笔11的类型发送给电子显示装置20,以告知电子显示装置20书写笔11的类型。The type of the writing pen 11 can be sent to the electronic display device 20 by the writing board 12. Specifically, in one embodiment, each writing pen 11 has a unique identifier, and different writing pens 11 have different identifiers. When the writing board 12 and the writing pen 11 are connected in wireless communication, the writing pen 11 sends its own identification to the writing board 12, and then the writing board 12 sends it to the electronic display device 20 to inform the electronic display device 20 of the type of the writing pen 11. In another embodiment, each writing pen 11 has a unique identifier, and different writing pens 11 have different identifiers. The writing pen 11 directly sends its own identification to the electronic display device 20 before writing to inform the electronic display device 20 of its own type. In another embodiment, the type of the writing pen 11 is identified by the writing pad 12. After the writing pad 12 receives the touch of the writing pen 11, the writing is determined according to the size of the touch area between the writing pen 11 and the writing pad 12 The type of pen 11. After the writing board 12 recognizes the type of the writing pen 11, it sends the type of the writing pen 11 to the electronic display device 20 to inform the electronic display device 20 of the type of the writing pen 11.
请参阅图xx,在某些实施方式中,本申请实施方式的笔迹处理方法在步骤S11前还包括:Please refer to Figure xx. In some embodiments, the handwriting processing method of the embodiment of the present application further includes before step S11:
S14:发送预设间隔个数信号至书写板12,预设间隔个数信号用于指示书写板12根据预设间隔个数在多个采样点中选取部分采样点,并对选取的采样点的采集间隔时间进行计算。S14: Send a preset interval number signal to the writing pad 12. The preset interval number signal is used to instruct the writing pad 12 to select a part of the sampling points from a plurality of sampling points according to the preset interval number, and to determine the selected sampling point The collection interval time is calculated.
请再参阅图2,在某些实施方式中,步骤S14可以由通信模块22实现。也即是说,通信模块22可用于发送预设间隔个数信号至书写板12。Please refer to FIG. 2 again. In some embodiments, step S14 may be implemented by the communication module 22. That is to say, the communication module 22 can be used to send a predetermined interval number signal to the writing board 12.
具体地,预设间隔个数可以是由用户自行设定的,如用户在电子显示装置20中输入预设间隔个数,电子显示装置20接收用户输入后将预设间隔个数存储在存储器23中。每次电子显示装置20与书写装置10建立通信连接时,电子显示装置20将预设间隔个数发送给书写装置10,书写装置10根据预设间隔个数确定要计算采集间隔时间的采样点。预设间隔个数与色彩明度息息相关。预设间隔个数越少,计算了色彩明度的采样点的个数越多,基于更多的色彩明度来调整书写轨迹后,生成的显示笔迹与实际的笔迹越接近,笔迹的还原度更高。预设间隔个数越多,需要计算色彩明度的采样点的个数越少,有利于减小电子显示装置20的功耗。预设间隔个数由用户自行设定可以更好地满足用户的使用需求。可以理解,在不同的场景下,用户对显示笔迹的还原度的要求可能不同。例如,当用户仅仅使用书写装置10记录会议记录、课堂笔记时,用户对显示笔迹的还原度的要求可能相对较低,此时,可将预设间隔个数 设置成较大的值;当用户使用书写装置10练习字帖、画画(如人物素描)等时,用户对显示笔迹的还原度的要求可能相对较高,此时,可将预设间隔个数设置成较小的值。当然,预设间隔个数也可以由电子显示装置20根据使用场景的不同自行设定,或者直接由书写装置10根据使用场景的不同自行设定。其中,使用场景可以基于书写内容进行识别。如此,可以提升电子显示装置20或书写装置10的智能性。Specifically, the preset number of intervals may be set by the user. For example, the user inputs the preset number of intervals in the electronic display device 20, and the electronic display device 20 stores the preset number of intervals in the memory 23 after receiving the user input. in. Each time the electronic display device 20 establishes a communication connection with the writing device 10, the electronic display device 20 sends the preset number of intervals to the writing device 10, and the writing device 10 determines the sampling point to calculate the collection interval time according to the preset number of intervals. The number of preset intervals is closely related to the color brightness. The smaller the number of preset intervals, the more the number of sampling points for calculating the color brightness. After adjusting the writing trajectory based on more color brightness, the generated display handwriting is closer to the actual handwriting, and the reproduction of the handwriting is higher. . The larger the number of preset intervals, the smaller the number of sampling points that need to be calculated for color brightness, which is beneficial to reducing the power consumption of the electronic display device 20. The number of preset intervals can be set by the user to better meet the user's needs. It can be understood that in different scenarios, users may have different requirements for the degree of restoration of the displayed handwriting. For example, when the user only uses the writing device 10 to record meeting records and class notes, the user may have relatively low requirements for the restoration of the displayed handwriting. In this case, the number of preset intervals can be set to a larger value; When using the writing device 10 to practice copybooks, drawing (such as character sketches), etc., the user may have relatively high requirements for the restoration of the displayed handwriting. At this time, the preset number of intervals can be set to a smaller value. Of course, the number of preset intervals can also be set by the electronic display device 20 according to different usage scenarios, or directly by the writing device 10 according to different usage scenarios. Among them, the usage scenario can be identified based on the written content. In this way, the intelligence of the electronic display device 20 or the writing device 10 can be improved.
综上,本申请实施方式的笔迹处理方法、电子显示装置20及书写系统100基于坐标信息和书写数据生成的显示笔迹与用户书写在纸上的笔迹较为相近,还原度较高,可以较好地展现出书写者的个人风格,有利于提升用户的使用体验。In summary, the handwriting processing method, the electronic display device 20, and the writing system 100 according to the embodiments of the present application generate display handwriting based on coordinate information and writing data. The handwriting generated by the user is relatively similar to the handwriting written by the user on paper. Show the personal style of the writer, which is conducive to improving the user experience.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the description of this specification, the description with reference to the terms “one embodiment”, “some embodiments”, “exemplary embodiments”, “examples”, “specific examples” or “some examples” etc. means to combine the described implementations The specific features, structures, materials, or characteristics described in the manners or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above-mentioned terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
尽管上面已经示出和描述了本申请的实施方式,可以理解的是,上述实施方式是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施方式进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are exemplary and should not be construed as limitations to the present application. Those of ordinary skill in the art can comment on the foregoing within the scope of the present application. The implementation mode undergoes changes, modifications, replacements and modifications.

Claims (23)

  1. 一种笔迹处理方法,应用于电子显示装置,所述电子显示装置与书写板通信,其特征在于,所述笔迹处理方法包括:A handwriting processing method is applied to an electronic display device that communicates with a writing board, wherein the handwriting processing method includes:
    获取所述书写板接收书写操作时多个采样点的坐标信息和书写数据;Acquiring coordinate information and writing data of multiple sampling points when the writing board receives a writing operation;
    根据所述坐标信息形成书写轨迹;和Forming a writing track according to the coordinate information; and
    根据所述书写轨迹及所述书写数据生成显示笔迹。The display handwriting is generated according to the writing trajectory and the writing data.
  2. 根据权利要求1所述的笔迹处理方法,其特征在于,所述书写数据包括压力数据,所述根据所述书写轨迹及所述书写数据生成显示笔迹,包括:The handwriting processing method according to claim 1, wherein the writing data includes pressure data, and the generating and displaying handwriting based on the writing trajectory and the writing data includes:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;和Calculating the radius of each sampling point according to the pressure data of each sampling point; and
    将所述书写轨迹上的多个所述采样点以对应该采样点的所述半径显示以生成所述显示笔迹。Displaying the plurality of sampling points on the writing track with the radius corresponding to the sampling point to generate the display handwriting.
  3. 根据权利要求1所述的笔迹处理方法,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述根据所述书写轨迹及所述书写数据生成显示笔迹,包括:The handwriting processing method according to claim 1, wherein the writing data includes pressure data and a collection interval time, and generating a display handwriting based on the writing trajectory and the writing data includes:
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写速度;Calculating the writing speed of at least one sampling point according to the collection interval and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;和Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data; and
    将所述书写轨迹上的多个所述采样点以对应该所述采样点的所述色彩明度显示以生成所述显示笔迹。The plurality of sampling points on the writing track are displayed with the color brightness corresponding to the sampling points to generate the display handwriting.
  4. 根据权利要求1所述的笔迹处理方法,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述根据所述书写轨迹及所述书写数据生成显示笔迹,包括:The handwriting processing method according to claim 1, wherein the writing data includes pressure data and a collection interval time, and generating a display handwriting based on the writing trajectory and the writing data includes:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;Calculating the radius of each sampling point according to the pressure data of each sampling point;
    根据所述采集间隔时间及所述坐标信息获取至少一个所述采样点的书写速度;Acquiring the writing speed of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;和Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data; and
    将所述书写轨迹上的多个所述采样点以对应该所述采样点的所述半径及所述色彩明度显示以生成所述显示笔迹。Displaying the plurality of sampling points on the writing track with the radius and the color brightness corresponding to the sampling points to generate the display handwriting.
  5. 根据权利要求1所述的笔迹处理方法,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述根据所述书写轨迹及所述书写数据生成显示笔迹,包括:The handwriting processing method according to claim 1, wherein the writing data includes pressure data and a collection interval time, and generating a display handwriting based on the writing trajectory and the writing data includes:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;Calculating the radius of each sampling point according to the pressure data of each sampling point;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写加速度;Calculating the writing acceleration of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的所述书写加速度计算该采样点与与之相邻的所述采样点之间的线条的半径渐变度;和Calculating the gradient of the radius of the line between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point; and
    将所述书写轨迹上的多个所述采样点以对应该所述采样点的所述半径显示、两个所述采样点之间的线条的半径以对应的所述半径渐变度变化显示以生成所述显示笔迹。The multiple sampling points on the writing track are displayed with the radius corresponding to the sampling point, and the radius of the line between the two sampling points is displayed with the corresponding gradual change of the radius to generate The display handwriting.
  6. 根据权利要求1所述的笔迹处理方法,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述根据所述书写轨迹及所述书写数据生成显示笔迹,包括:The handwriting processing method according to claim 1, wherein the writing data includes pressure data and a collection interval time, and generating a display handwriting based on the writing trajectory and the writing data includes:
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写速度;Calculating the writing speed of at least one sampling point according to the collection interval and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写加速度;Calculating the writing acceleration of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的所述书写加速度计算该采样点与一直相邻的所述采样点之间的线条的色彩明度渐变度;和Calculating the color lightness gradient of the line between the sampling point and the sampling point that is always adjacent according to the writing acceleration of at least one sampling point; and
    将所述书写轨迹上的多个所述采样点以对应该采样点的所述色彩明度显示、两个所述采样点之间的线条的色彩明度根据对应的色彩明度渐变度变化显示以生成所述显示笔迹。The plurality of sampling points on the writing track are displayed with the color brightness corresponding to the sampling point, and the color brightness of the line between the two sampling points is displayed according to the corresponding color brightness gradual change to generate the The display handwriting.
  7. 根据权利要求1所述的笔迹处理方法,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述根据所述书写轨迹及所述书写数据生成显示笔迹,包括:The handwriting processing method according to claim 1, wherein the writing data includes pressure data and a collection interval time, and generating a display handwriting based on the writing trajectory and the writing data includes:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;Calculating the radius of each sampling point according to the pressure data of each sampling point;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写速度;Calculating the writing speed of at least one sampling point according to the collection interval and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写加速度;Calculating the writing acceleration of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的书写加速度计算该采样点与与之相邻的所述采样点之间的线条的半径渐变度,并根据至少一个所述采样点的书写加速度计算该采样点与与之相邻的所述采样点之间的线条的色彩明度渐变度;和Calculate the gradient of the radius of the line between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point, and calculate the sampling point and The gradation of the color brightness of the line between the adjacent sampling points; and
    将书写轨迹上的多个所述采样点以对应该采样点的所述半径和所述色彩明度显示、两个所述采样点之间的线条的半径根据对应的所述半径渐变度变化显示、两个所述采样点之间的线条的色彩明度根据对应的所述色彩明度渐变度变化显示以生成所述显示笔迹。The multiple sampling points on the writing track are displayed with the radius and the color brightness corresponding to the sampling point, the radius of the line between the two sampling points is displayed according to the corresponding gradual change of the radius, The color lightness of the line between the two sampling points is displayed according to the corresponding color lightness gradient change to generate the display handwriting.
  8. 根据权利要求3、4、6、7任意一项所述的笔迹处理方法,其特征在于,所述根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写速度,包括:The handwriting processing method according to any one of claims 3, 4, 6, and 7, wherein the calculating the writing speed of at least one sampling point according to the collection interval time and the coordinate information comprises:
    获取至少一个所述采样点作为当前的采样点;Acquiring at least one of the sampling points as the current sampling point;
    根据当前的所述采样点的坐标信息与前一个所述采样点坐标信息计算当前的所述采样点与前一个所述采样点之间的距离;和Calculating the distance between the current sampling point and the previous sampling point according to the current coordinate information of the sampling point and the previous sampling point coordinate information; and
    根据所述距离及当前的所述采样点的采集时间间隔计算当前的所述采样点的所述书写速度。Calculate the current writing speed of the sampling point according to the distance and the current collection time interval of the sampling point.
  9. 根据权利要求5-7任意一项所述的笔迹处理方法,其特征在于,根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写加速度,包括:The handwriting processing method according to any one of claims 5-7, wherein calculating the writing acceleration of at least one sampling point according to the collection interval time and the coordinate information comprises:
    获取至少一个所述采样点作为当前的采样点;Acquiring at least one of the sampling points as the current sampling point;
    根据当前的所述采样点的坐标信息、采集时间间隔、及前一个所述采样点的坐标信息计算当前的所述采样点的书写速度,根据前一个所述采样点的坐标信息、采集时间间隔、及再前一个所述采样点的坐标信息计算前一个所述采样点的书写速度;Calculate the current writing speed of the sampling point according to the current coordinate information of the sampling point, the collection time interval, and the coordinate information of the previous sampling point, and according to the coordinate information of the previous sampling point, the collection time interval , And calculating the writing speed of the previous sampling point with the coordinate information of the previous sampling point;
    根据当前的所述采样点的书写速度、前一个所述采样点的书写速度、及当前的所述采样点的采集时间间隔计算当前的所述采样点的所述书写加速度。The current writing acceleration of the sampling point is calculated according to the current writing speed of the sampling point, the writing speed of the previous sampling point, and the current sampling time interval of the sampling point.
  10. 根据权利要求1-7所述的笔迹处理方法,其特征在于,所述笔迹处理方法在所述获取所述书写板接收书写操作时多个采样点的坐标信息和书写数据前,还包括:7. The handwriting processing method according to claims 1-7, characterized in that, before said acquiring the coordinate information and writing data of a plurality of sampling points when the writing pad receives a writing operation, the method further comprises:
    发送预设间隔个数信号至所述书写板,所述预设间隔个数信号用于指示所述书写板根据所述预设间 隔个数在多个所述采样点中选取部分所述采样点,并对选取的所述采样点的所述采集间隔时间进行计算。Send a preset interval number signal to the writing board, where the preset interval number signal is used to instruct the writing board to select a part of the sampling points from the plurality of sampling points according to the preset interval number , And calculate the collection interval time of the selected sampling point.
  11. 一种电子显示装置,所述电子显示装置与书写板通信,其特征在于,所述电子显示装置包括处理器,所述处理器用于:An electronic display device, which communicates with a writing board, characterized in that the electronic display device includes a processor, and the processor is used for:
    获取所述书写板接收书写操作时多个采样点的坐标信息和书写数据;Acquiring coordinate information and writing data of multiple sampling points when the writing board receives a writing operation;
    根据所述坐标信息形成书写轨迹;和Forming a writing track according to the coordinate information; and
    根据所述书写轨迹及所述书写数据生成显示笔迹。The display handwriting is generated according to the writing trajectory and the writing data.
  12. 根据权利要求11所述的电子显示装置,其特征在于,所述书写数据包括压力数据,所述处理器还用于:The electronic display device according to claim 11, wherein the writing data comprises pressure data, and the processor is further configured to:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;和Calculating the radius of each sampling point according to the pressure data of each sampling point; and
    将所述书写轨迹上的多个所述采样点以对应该采样点的所述半径显示以生成所述显示笔迹。Displaying the plurality of sampling points on the writing track with the radius corresponding to the sampling point to generate the display handwriting.
  13. 根据权利要求11所述的电子显示装置,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述处理器还用于:The electronic display device of claim 11, wherein the written data includes pressure data and collection interval time, and the processor is further configured to:
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写速度;Calculating the writing speed of at least one sampling point according to the collection interval and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;和Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data; and
    将所述书写轨迹上的多个所述采样点以对应该所述采样点的所述色彩明度显示以生成所述显示笔迹。The plurality of sampling points on the writing track are displayed with the color brightness corresponding to the sampling points to generate the display handwriting.
  14. 根据权利要求11所述的电子显示装置,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述处理器还用于:The electronic display device of claim 11, wherein the written data includes pressure data and collection interval time, and the processor is further configured to:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;Calculating the radius of each sampling point according to the pressure data of each sampling point;
    根据所述采集间隔时间及所述坐标信息获取至少一个所述采样点的书写速度;Acquiring the writing speed of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;和Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data; and
    将所述书写轨迹上的多个所述采样点以对应该所述采样点的所述半径及所述色彩明度显示以生成所述显示笔迹。Displaying the plurality of sampling points on the writing track with the radius and the color brightness corresponding to the sampling points to generate the display handwriting.
  15. 根据权利要求11所述的电子显示装置,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述处理器还用于:The electronic display device of claim 11, wherein the written data includes pressure data and collection interval time, and the processor is further configured to:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;Calculating the radius of each sampling point according to the pressure data of each sampling point;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写加速度;Calculating the writing acceleration of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的所述书写加速度计算该采样点与与之相邻的所述采样点之间的线条的半径渐变度;和Calculating the gradient of the radius of the line between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point; and
    将所述书写轨迹上的多个所述采样点以对应该所述采样点的所述半径显示、两个所述采样点之间的线条的半径以对应的所述半径渐变度变化显示以生成所述显示笔迹。The multiple sampling points on the writing track are displayed with the radius corresponding to the sampling point, and the radius of the line between the two sampling points is displayed with the corresponding gradual change of the radius to generate The display handwriting.
  16. 根据权利要求11所述的电子显示装置,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述处理器还用于:The electronic display device of claim 11, wherein the written data includes pressure data and collection interval time, and the processor is further configured to:
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写速度;Calculating the writing speed of at least one sampling point according to the collection interval and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写加速度;Calculating the writing acceleration of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的所述书写加速度计算该采样点与一直相邻的所述采样点之间的线条的色彩明度渐变度;和Calculating the color lightness gradient of the line between the sampling point and the sampling point that is always adjacent according to the writing acceleration of at least one sampling point; and
    将所述书写轨迹上的多个所述采样点以对应该采样点的所述色彩明度显示、两个所述采样点之间的线条的色彩明度根据对应的色彩明度渐变度变化显示以生成所述显示笔迹。The plurality of sampling points on the writing track are displayed with the color brightness corresponding to the sampling point, and the color brightness of the line between the two sampling points is displayed according to the corresponding color brightness gradual change to generate the The display handwriting.
  17. 根据权利要求11所述的电子显示装置,其特征在于,所述书写数据包括压力数据及采集间隔时间,所述处理器还用于:The electronic display device of claim 11, wherein the written data includes pressure data and collection interval time, and the processor is further configured to:
    所述书写数据包括压力数据及采集间隔时间,所述根据所述书写轨迹及所述书写数据生成显示笔迹,包括:The writing data includes pressure data and collection interval time, and the generating and displaying handwriting based on the writing trajectory and the writing data includes:
    根据每个所述采样点的所述压力数据计算每个所述采样点的半径;Calculating the radius of each sampling point according to the pressure data of each sampling point;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写速度;Calculating the writing speed of at least one sampling point according to the collection interval and the coordinate information;
    根据至少一个所述采样点的书写速度及所述压力数据计算至少一个所述采样点的色彩明度;Calculating the color brightness of at least one sampling point according to the writing speed of at least one sampling point and the pressure data;
    根据所述采集间隔时间及所述坐标信息计算至少一个所述采样点的书写加速度;Calculating the writing acceleration of at least one sampling point according to the collection interval time and the coordinate information;
    根据至少一个所述采样点的书写加速度计算该采样点与与之相邻的所述采样点之间的线条的半径渐变度,并根据至少一个所述采样点的书写加速度计算该采样点与与之相邻的所述采样点之间的线条的色彩明度渐变度;和Calculate the gradient of the radius of the line between the sampling point and the adjacent sampling point according to the writing acceleration of at least one sampling point, and calculate the sampling point and The gradation of the color brightness of the line between the adjacent sampling points; and
    将书写轨迹上的多个所述采样点以对应该采样点的所述半径和所述色彩明度显示、两个所述采样点之间的线条的半径根据对应的所述半径渐变度变化显示、两个所述采样点之间的线条的色彩明度根据对应的所述色彩明度渐变度变化显示以生成所述显示笔迹。The multiple sampling points on the writing track are displayed with the radius and the color brightness corresponding to the sampling point, the radius of the line between the two sampling points is displayed according to the corresponding gradual change of the radius, The color lightness of the line between the two sampling points is displayed according to the corresponding color lightness gradient change to generate the display handwriting.
  18. 根据权利要求13、14、16、17任意一项所述的电子显示装置,所述处理器还用于:The electronic display device according to any one of claims 13, 14, 16, 17, wherein the processor is further configured to:
    获取至少一个所述采样点作为当前的采样点;Acquiring at least one of the sampling points as the current sampling point;
    根据当前的所述采样点的坐标信息与前一个所述采样点坐标信息计算当前的所述采样点与前一个所述采样点之间的距离;和Calculating the distance between the current sampling point and the previous sampling point according to the current coordinate information of the sampling point and the previous sampling point coordinate information; and
    根据所述距离及当前的所述采样点的采集时间间隔计算当前的所述采样点的所述书写速度。Calculate the current writing speed of the sampling point according to the distance and the current collection time interval of the sampling point.
  19. 根据权利要求15-17任意一项所述的电子显示装置,其特征在于,所述处理器还用于:The electronic display device according to any one of claims 15-17, wherein the processor is further configured to:
    获取至少一个所述采样点作为当前的采样点;Acquiring at least one of the sampling points as the current sampling point;
    根据当前的所述采样点的坐标信息、采集时间间隔、及前一个所述采样点的坐标信息计算当前的所述采样点的书写速度,根据前一个所述采样点的坐标信息、采集时间间隔、及再前一个所述采样点的坐标信息计算前一个所述采样点的书写速度;Calculate the current writing speed of the sampling point according to the current coordinate information of the sampling point, the collection time interval, and the coordinate information of the previous sampling point, and according to the coordinate information of the previous sampling point, the collection time interval , And calculating the writing speed of the previous sampling point with the coordinate information of the previous sampling point;
    根据当前的所述采样点的书写速度、前一个所述采样点的书写速度、及当前的所述采样点的采集时间间隔计算当前的所述采样点的所述书写加速度。The current writing acceleration of the sampling point is calculated according to the current writing speed of the sampling point, the writing speed of the previous sampling point, and the current sampling time interval of the sampling point.
  20. 根据权利要求11-17任意一项所述的电子显示装置,其特征在于,所述电子显示装置还包括通信模块,所述通信模块用于发送预设间隔个数信号至所述书写板,所述预设间隔个数信号用于指示所述 书写板根据所述预设间隔个数在多个所述采样点中选取部分所述采样点,并对选取的所述采样点的所述采集间隔时间进行计算。The electronic display device according to any one of claims 11-17, wherein the electronic display device further comprises a communication module, and the communication module is configured to send signals of a predetermined interval number to the writing board, so The preset interval number signal is used to instruct the writing board to select a part of the sampling points from a plurality of the sampling points according to the preset interval number, and to determine the sampling interval of the selected sampling points Time to calculate.
  21. 一种书写系统,其特征在于,所述书写系统包括:A writing system, characterized in that, the writing system comprises:
    书写笔;Writing pen
    书写板,所述书写板用于接收所述书写笔的书写操作以检测所述书写笔的书写轨迹,所述书写轨迹上具有多个采样点,多个所述采样点对应有坐标信息及书写数据;和Writing board, the writing board is used to receive the writing operation of the writing pen to detect the writing track of the writing pen, the writing track has a plurality of sampling points, and the plurality of sampling points correspond to coordinate information and writing Data; and
    权利要求11-20任意一项所述的电子显示装置,所述书写板与所述电子显示装置通信。The electronic display device of any one of claims 11-20, wherein the writing board communicates with the electronic display device.
  22. 根据权利要求21所述的书写系统,其特征在于,所述书写板包括处理芯片和通信单元,所述处理芯片用于:22. The writing system of claim 21, wherein the writing board comprises a processing chip and a communication unit, and the processing chip is used for:
    每采集完一个所述采样点的坐标信息及所述书写数据,将所述坐标信息及所述书写数据打包成数据包;和Each time the coordinate information of the sampling point and the writing data are collected, the coordinate information and the writing data are packaged into a data packet; and
    对所述数据包做标识,由同一所述采样点的所述坐标信息及所述书写数据打包成的所述数据包对应一个标识,不同所述采样点的数据包对应不同标识;Marking the data packet, the data packet packaged by the coordinate information and the written data of the same sampling point corresponds to one identifier, and the data packets of different sampling points correspond to different identifiers;
    所述通信单元用于将标识后的所述数据包发送至所述电子显示装置。The communication unit is used to send the identified data packet to the electronic display device.
  23. 根据权利要求21所述的书写系统,其特征在于,所述处理芯片还用于判断是否接收到所述电子显示装置发送的确认接收的反馈信息;22. The writing system according to claim 21, wherein the processing chip is further used to determine whether the feedback information for confirming receipt sent by the electronic display device is received;
    所述通信单元还用于在未接收到所述反馈信息时,等待预定时间后再次将标识后的所述数据包发送至所述电子显示装置。The communication unit is further configured to wait for a predetermined time before sending the identified data packet to the electronic display device again when the feedback information is not received.
PCT/CN2019/074015 2019-01-30 2019-01-30 Handwriting processing method, electronic display device, and writing system WO2020154991A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980073435.XA CN113260967A (en) 2019-01-30 2019-01-30 Handwriting processing method, electronic display device and writing system
PCT/CN2019/074015 WO2020154991A1 (en) 2019-01-30 2019-01-30 Handwriting processing method, electronic display device, and writing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/074015 WO2020154991A1 (en) 2019-01-30 2019-01-30 Handwriting processing method, electronic display device, and writing system

Publications (1)

Publication Number Publication Date
WO2020154991A1 true WO2020154991A1 (en) 2020-08-06

Family

ID=71840693

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/074015 WO2020154991A1 (en) 2019-01-30 2019-01-30 Handwriting processing method, electronic display device, and writing system

Country Status (2)

Country Link
CN (1) CN113260967A (en)
WO (1) WO2020154991A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157644A (en) * 2021-04-14 2021-07-23 上海创建达一智能科技有限公司 Real-time evaluation method for note effect of class and meeting based on paper handwriting

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681745A (en) * 2010-12-28 2012-09-19 广东开心信息技术有限公司 Handwriting input system and user terminal
CN105739883A (en) * 2015-12-28 2016-07-06 安迪 Method for practicing calligraphy on tablet computer or mobile phone employing APP
CN107908318A (en) * 2017-05-03 2018-04-13 深圳市柔宇科技有限公司 Handwriting pad
US20190025979A1 (en) * 2016-05-01 2019-01-24 Innopresso, Inc. Electronic device having multi-functional human interface

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102011075253A1 (en) * 2011-05-04 2012-11-08 Eberhard-Karls-Universität Tübingen Method for determining the relative position of an object in space and optical input system
CN103871276A (en) * 2012-12-10 2014-06-18 中国电信股份有限公司 Display method, display system and writing terminal for information written on electronic board
CN105354871A (en) * 2015-10-27 2016-02-24 深圳市东向同人科技有限公司 Handwriting displaying method
CN107481299A (en) * 2017-06-27 2017-12-15 北京新国人智慧科技股份有限公司 A kind of written handwriting display methods and system, intelligent terminal and intelligent writing system
CN107728916B (en) * 2017-09-20 2020-07-28 科大讯飞股份有限公司 Display method and device of space handwriting track

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681745A (en) * 2010-12-28 2012-09-19 广东开心信息技术有限公司 Handwriting input system and user terminal
CN105739883A (en) * 2015-12-28 2016-07-06 安迪 Method for practicing calligraphy on tablet computer or mobile phone employing APP
US20190025979A1 (en) * 2016-05-01 2019-01-24 Innopresso, Inc. Electronic device having multi-functional human interface
CN107908318A (en) * 2017-05-03 2018-04-13 深圳市柔宇科技有限公司 Handwriting pad

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157644A (en) * 2021-04-14 2021-07-23 上海创建达一智能科技有限公司 Real-time evaluation method for note effect of class and meeting based on paper handwriting

Also Published As

Publication number Publication date
CN113260967A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US9791957B2 (en) Dynamic input at a touch-based interface based on pressure
US10289198B2 (en) Technologies for remotely controlling a computing device via a wearable computing device
CN103744541B (en) Lettering pen, electric terminal and writing system
CN100377043C (en) Three-dimensional hand-written identification process and system thereof
CN100445937C (en) Handwriting path identifying system and method
CN105095736B (en) Data transmission based on input unit identification information
US20190187823A1 (en) Coordinate input processing apparatus, emotion estimation apparatus, emotion estimation system, and building apparatus for building emotion estimation-oriented database
CN107533390A (en) System and method for two-way communication between stylus and stylus sensor controller
CN105487673A (en) Man-machine interactive system, method and device
US10817079B2 (en) Displaying a shadow of a stylus or of content on a display device
WO2021227628A1 (en) Electronic device and interaction method therefor
US10248652B1 (en) Visual writing aid tool for a mobile writing device
AU2002327333B2 (en) System and method for collaborative handwriting input
WO2023040505A1 (en) Cross-device drawing system
CN107589876A (en) A kind of optical projection system and method
US11822731B2 (en) Gesture detection using external sensors
WO2020154991A1 (en) Handwriting processing method, electronic display device, and writing system
WO2024032470A9 (en) Use method and apparatus based on stylus
WO2020170986A1 (en) Information processing device, method, and program
KR102242154B1 (en) System for digital pen with handwriting and memo function
US9292107B1 (en) Mobile telephone as computer mouse
EP3598277A2 (en) Electronic whiteboard, electronic whiteboard system and control method thereof
KR100736249B1 (en) Data inputting, transmitting and receiving device
US10248214B2 (en) Wearable device for writing and drawing
CN109375799A (en) A kind of extension Writing method, apparatus and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19912748

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19912748

Country of ref document: EP

Kind code of ref document: A1