WO2018090736A1 - 触控笔笔迹的优化方法及系统 - Google Patents
触控笔笔迹的优化方法及系统 Download PDFInfo
- Publication number
- WO2018090736A1 WO2018090736A1 PCT/CN2017/103814 CN2017103814W WO2018090736A1 WO 2018090736 A1 WO2018090736 A1 WO 2018090736A1 CN 2017103814 W CN2017103814 W CN 2017103814W WO 2018090736 A1 WO2018090736 A1 WO 2018090736A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pressure sensitive
- sensitive data
- data
- interval
- module
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of two-dimensional [2D] relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03545—Pens or stylus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
Definitions
- the present invention relates to the field of touch technologies, and in particular, to a method and system for optimizing a stylus handwriting.
- the stylus can be roughly classified into two types: a resistive stylus and a capacitive stylus. Different types of stylus are suitable for resistive and capacitive touch screen terminals, respectively.
- the stylus pen head is made of conductive material, which can replace the hand on the screen of the touch screen terminal to input information easily, quickly and accurately.
- the stylus has been widely accepted by users because of its precise and smooth operation.
- the recognition of the stylus by the touch screen terminal is obtained by acquiring a series of pressure sensitive data sent by the stylus to the touch screen terminal. Due to the limitation of the hardware adjustment of the stylus or the process limitation, the stylus often appears obvious during use. Data jitter, the upper layer application in the process of identifying and displaying such jittery pressure sensitive data, there will be obvious bamboo effect, that is, the handwriting changes suddenly, resulting in poor writing results.
- an object of the present invention is to provide a method for optimizing the stylus handwriting, which solves the problem that the handwriting changes suddenly and the writing effect is poor.
- Expanding a data interval of the pressure sensitive data group wherein the data interval is an interval composed of maximum pressure sensitive data and minimum pressure sensitive data in the pressure sensitive data group;
- the stylus hardware hardware defects and limitations can be solved from the software point of view, firstly, by expanding the data interval of the original pressure sensitive data group, when the data interval is expanded, the pressure sensitive data is expanded.
- the difference between the two consecutive pressure sensitive data in the group is large, the new pressure sensitive data is directly added to the two pressure sensitive data, and the pressure sensitive data in the original pressure sensitive data group is finally smoothed.
- the handwriting changes are no longer abrupt, thereby achieving a better writing effect.
- the method for optimizing the stylus handwriting according to the above embodiment of the present invention may further have the following additional technical features:
- the difference between two consecutive pressure sensitive data in the pressure sensitive data group after expanding the data interval is greater than the pressure sensitive data group after the expanded data interval
- the step of adding new pressure sensitive data between the two consecutive pressure sensitive data specifically includes:
- the first pressure sensitive data in the pressure sensitive data group after the extended data interval is directly inserted into the blocking queue to be sent, and the data in the blocking queue to be sent is sent to the upper application;
- the supplementary data interval between the current pressure sensitive data and the previous pressure sensitive data is A/(A/G) +1), the new pressure sensitive data of the quantity (A/G+1), and inserting the new pressure sensitive data and the current pressure sensitive data into the blocking queue to be sent, where A is the current The difference between the pressure sensitive data and the previous pressure sensitive data, G is the maximum interval.
- the method further includes:
- the current pressure sensitive data is directly inserted into the blocking queue to be sent.
- the method further includes:
- the pressure sensitive data in the pressure sensitive data set supplemented with the new pressure sensitive data is fitted according to the data correlation degree.
- the pressure sensitive data set in the new pressure sensitive data is added according to the data correlation degree.
- the step of fitting the pressure sensitive data specifically includes:
- the pressure sensitive data in the data set is balanced to obtain balanced pressure sensitive data.
- Another object of the present invention is to provide an optimization system for a stylus handwriting, which solves the problem that the handwriting changes suddenly and the writing effect is poor.
- a reading module configured to sequentially read the pressure sensitive data of the stylus, and form the plurality of the pressure sensitive data to form a pressure sensitive data group;
- An expansion module configured to expand a data interval of the pressure sensitive data set acquired by the reading module, where the data interval is an interval composed of maximum pressure sensitive data and minimum pressure sensitive data in the pressure sensitive data group;
- a supplementary module configured to: when the difference between the two consecutive pressure sensitive data in the pressure sensitive data group after the expanded data interval is greater than a preset maximum interval in the pressure sensitive data group after the expanded data interval, New pressure sensitive data is added between the two pressure sensitive data.
- the stylus handwriting optimization system may further have the following additional technical features:
- the supplemental module includes a first plug-in module, a comparison module, a supplemental sub-module, and a second plug-in module;
- the first insertion module is configured to insert the first pressure sensitive data in the pressure sensitive data group after the extended data interval into the blocking queue to be sent, and the data in the blocking queue to be sent is sent to the upper application. ;
- the comparison module is configured to use a second pressure sensitive number in the pressure sensitive data group after the expanded data interval According to the comparison, the difference between the current pressure sensitive data and the previous pressure sensitive data is compared with the maximum interval;
- the supplementary submodule is configured to supplement a data interval between the current pressure sensitive data and the previous pressure sensitive data when a difference between the current pressure sensitive data and the previous pressure sensitive data is greater than the maximum interval A new pressure sensitive data of A/(A/G+1) and quantity (A/G+1), where A is the difference between the current pressure sensitive data and the previous pressure sensitive data, and G is The maximum interval;
- the second insertion module is configured to insert the new pressure sensitive data and the current pressure sensitive data into the to-be-sent blocking queue after the supplemental sub-module is supplemented with new pressure-sensing data.
- the optimization system further includes:
- a third insertion module configured to insert the current pressure sensitive data directly into the comparison when the comparison module compares that the difference between the current pressure sensitive data and the previous pressure sensitive data is less than or equal to the maximum interval
- the sending blocking queue is mentioned.
- the optimization system further includes:
- a fitting module configured to fit the pressure sensitive data in the pressure sensitive data set supplemented with the new pressure sensitive data according to the data correlation degree in the pressure sensitive data group supplemented with the new pressure sensitive data.
- the definition module is configured to define an initial data group and an affinity weight array
- the balancing module is configured to sequentially substitute the pressure sensitive data in the pressure sensitive data group supplemented with the new pressure sensitive data into the initial data group, and add a new one according to the correlation weight array.
- the pressure sensitive data in the pressure sensitive data set of the pressure sensitive data is balanced to obtain balanced pressure sensitive data.
- FIG. 1 is a flow chart of a method for optimizing a stylus handwriting according to an embodiment of the invention
- FIG. 2 is a flow chart of a method for optimizing a stylus handwriting according to another embodiment of the present invention.
- Figure 3 is a flow chart of adding new pressure sensitive data between the two pressure sensitive data in Figure 2;
- FIG. 4 is a schematic structural diagram of an stylus handwriting optimization system according to another embodiment of the present invention.
- a method for optimizing a stylus handwriting includes at least the following steps:
- the stylus is used to input commands to a computer screen, a mobile device, a tablet, and the like with a touch screen.
- the user can click on the touch screen of the terminal device to select a file or a drawing, and the stylus touches the touch screen.
- a pressure sensitive data set composed of a series of pressure sensitive data sets is generated, which is generated from the time when the stylus touches the touch screen until the stylus leaves the touch screen, and the pressure sensitive data set is generated.
- the original binary data, the application software in the terminal device will have a thread to read the pressure sensitive data group, and the binary data can be parsed according to the relevant protocol, converted into 10-digit data that is easier to process, and finally converted into upper layer needs. The data is sent out.
- the data interval is an interval composed of the maximum pressure sensitive data and the minimum pressure sensitive data in the pressure sensitive data group
- the pressure sensitive data in a pressure sensitive data group includes 0, 1, 3, 13, 28, 35, 39, 47, 50, 36, 30, 26, 22, 18, 15, 1, 0,
- the data interval of the pressure sensitive data set is [0, 50]
- the data stretching method is used to expand the interval of the original data.
- the data interval of the pressure sensitive data set is expanded to be an integer multiple of the data interval [0, 50]. It can be understood that when the data interval of the pressure sensitive data set is expanded, The expanded multiple can be selected according to the actual processing capability of the terminal device.
- the expanded multiple can be relatively high, and conversely, the expanded multiple It should be relatively small. For example, if the overall expansion is 4 times, the expanded data interval is [0, 200], and the pressure sensitive data in the pressure sensitive data group after the data interval is expanded becomes 0, 4, 12, 52, 112, 140, 156, 188, 200, 144, 140, 104, 88, 72. , 60, 4, 0.
- a maximum interval is defined for the expanded data interval, and the maximum interval may be determined according to the actual processing capability of the terminal device. For a terminal device with good performance and strong processing capability, the data value of the maximum interval may be relatively small. So that the optimized data will be smoother. Then, the difference between the two consecutive pressure sensitive data in the pressure sensitive data group after the expanded data interval is compared with the maximum interval, and if the difference between the two consecutive pressure sensitive data in the pressure sensitive data group after the data interval is expanded If the value is greater than the maximum interval, new pressure sensitive data is added between the two consecutive pressure sensitive data by a method of program intelligent compensation.
- the stylus hardware hardware defects and limitations can be solved from the software point of view, firstly, by expanding the data interval of the original pressure sensitive data group, when the data interval is expanded, the pressure sensitive data is expanded.
- the difference between the two consecutive pressure sensitive data in the group is large, the new pressure sensitive data is directly added to the two pressure sensitive data, and the pressure sensitive data in the original pressure sensitive data group is finally smoothed.
- the handwriting changes are no longer abrupt, thereby achieving a better writing effect.
- a method for optimizing a stylus handwriting includes at least the following steps:
- the application software of the terminal device has a thread for reading the stylus pressure sensitive data, and the pressure sensitive data is parsed according to the protocol, and the data is from the stylus hardware, for example, the pressure generated by the stylus is sequentially read.
- the sense data is 0, 1, 3, 13, 28, 35, 39, 47, 50, 36, 30, 26, 22, 18, 15, 1, 0.
- the interval of the original data is expanded. For example, if the overall expansion is 4 times, the expanded data interval is [0, 200], and the pressure sensitive data in the pressure sensitive data group after the data interval is expanded is changed. It is 0, 4, 12, 52, 112, 140, 156, 188, 200, 144, 120, 104, 88, 72, 60, 4, 0.
- step S203 includes:
- S2031 The first pressure sensitive data in the pressure sensitive data group after the extended data interval is directly inserted into the blocking queue to be sent, and the data in the blocking queue to be sent is sent to the upper application;
- a variable R can also be defined for recording the previous pressure sensitive data, and then a pressure sensitive data is to be sent to the blocking queue Q, and the data in the queue Q is sent to the upper application when the first pressure is received. When the data is sensed, it is assigned to R and the value is inserted into the queue (this data is immediately sent to the application).
- the supplementary data interval between the current pressure sensitive data and the previous pressure sensitive data is A/(A /G+1), the new pressure sensitive data of the quantity (A/G+1), and inserting the new pressure sensitive data and the current pressure sensitive data into the blocking queue to be sent, wherein A is The difference between the current pressure sensitive data and the previous pressure sensitive data, G is the maximum interval.
- the difference A between the current pressure sensitive data and the previous pressure sensitive data R and the maximum interval G are compared;
- A is greater than the maximum interval G, between the current pressure sensitive data and the previous pressure sensitive data New pressure sensitive data with A/(A/G+1) and quantity (A/G+1), where computer-based data processing mechanism, when A/(A/G+1) or (A/G+1) When the result is not an integer, only the integer digits before the decimal point are taken.
- the original pressure sensitive data are: 0,1,3,13,28,35,39,47,50,36,30,26,22,18,15,1,0, the data interval is [1,50];
- the expanded data interval is [1,200], and the pressure sensitive data after the data interval is expanded becomes: 0, 4, 12, 52, 112, 140, 156, 188, 200, 144, 120, 104, 88, 72, 60, 4, 0.
- the final pressure sensitive data becomes:
- the pressure sensitive data becomes smoother.
- the defects and limitations of the stylus hardware can be solved from the software perspective, firstly by expanding the data of the original pressure sensitive data set. In the interval, when the difference between the two pressure sensitive data in the pressure sensitive data group after the data interval is expanded is large, the new pressure sensitive data is directly added to the two pressure sensitive data, and finally the original pressure sensitive data group is The pressure-sensing data becomes smoother, and after the upper-layer application receives the optimized pressure-sensing data, the handwriting changes are no longer abrupt, thereby achieving a better writing effect.
- the pressure sensitive data in the pressure sensitive data set supplemented with the new pressure sensitive data is fitted according to the data correlation degree.
- the pressure sensitive data in the pressure sensitive data set supplemented with the new pressure sensitive data may be further optimized, and the pressure in the pressure sensitive data set supplemented with the new pressure sensitive data is based on the data correlation degree.
- the sensory data is fitted to make the pressure sensitive data smoother.
- the step S204 specifically includes:
- the pressure sensitive data in the data set is balanced to obtain balanced pressure sensitive data.
- each value in the array represents the correlation of the nearest L elements, such as the length L of the array is 5, representing and The current value is related to the last five values.
- Array length and correlation weights can be adjusted based on machine performance and needs. Specifically, in this embodiment, the total number of correlations is n to the power of 2, for example, the total number of correlations is 5, that is, the total number of correlations is 32, and the correlation degree of each value is 2, 4, 7, 7, 12 .
- a pressure sensitive data queue is saved. Each new value of the queue is multiplied by the respective weights according to the five values, and the right shift is generated by n bits. It is smooth and natural to write the handwriting with such data.
- the pressure sensitive data of the received stylus is:
- the final pressure-sensitive data are: 0, 2, 7, 11, 17, 23, 31, 38, 44, 51, 60, 67, 75, 82, 90. It can be seen that the 11th mutation data 74 For being well balanced. The final pressure sensitivity data is further optimized and the writing will be smoother.
- the weight array is to affect the final pressure sensitive data, it is also possible to perform a vector between the two pressure sensitive data of the balanced pressure sensitive data set, and perform operations between the two vectors. Large, you can dynamically adjust the weight array to make the final pressure sensitive data closer to the natural writing state.
- FIG. 4 another embodiment of the present invention provides an optimization system for a stylus handwriting based on the same inventive concept, including:
- a reading module configured to sequentially read the pressure sensitive data of the stylus, and form the plurality of the pressure sensitive data to form a pressure sensitive data group;
- An expansion module configured to expand a data interval of the pressure sensitive data set acquired by the reading module, where the data interval is an interval composed of maximum pressure sensitive data and minimum pressure sensitive data in the pressure sensitive data group;
- a supplementary module configured to: when the difference between the two consecutive pressure sensitive data in the pressure sensitive data group after the expanded data interval is greater than a preset maximum interval in the pressure sensitive data group after the expanded data interval, New pressure sensitive data is added between the two pressure sensitive data.
- the supplemental module includes a first inserting module, a comparing module, a supplemental submodule, and a second inserting module;
- the first insertion module is configured to insert the first pressure sensitive data in the pressure sensitive data group after the extended data interval into the blocking queue to be sent, and the data in the blocking queue to be sent is sent to the upper application. ;
- the comparing module is configured to compare the difference between the current pressure sensitive data and the previous pressure sensitive data and the maximum interval from the second pressure sensitive data in the pressure sensitive data group after the expanded data interval ;
- the supplementary submodule is configured to supplement a data interval between the current pressure sensitive data and the previous pressure sensitive data when a difference between the current pressure sensitive data and the previous pressure sensitive data is greater than the maximum interval A new pressure sensitive data of A/(A/G+1) and quantity (A/G+1), where A is the difference between the current pressure sensitive data and the previous pressure sensitive data, and G is The maximum interval;
- the second insertion module is configured to insert the new pressure sensitive data and the current pressure sensitive data into the to-be-sent blocking queue after the supplemental sub-module is supplemented with new pressure-sensing data.
- the optimization system further includes:
- a third insertion module configured to insert the current pressure sensitive data directly into the comparison when the comparison module compares that the difference between the current pressure sensitive data and the previous pressure sensitive data is less than or equal to the maximum interval
- the sending blocking queue is mentioned.
- the optimization system further includes:
- a fitting module configured to fit the pressure sensitive data in the pressure sensitive data set supplemented with the new pressure sensitive data according to the data correlation degree in the pressure sensitive data group supplemented with the new pressure sensitive data.
- the fitting module includes a definition module and a balance module
- the definition module is used to define an initial data group and an affinity weight array
- the balancing module is configured to sequentially substitute the pressure sensitive data in the pressure sensitive data group supplemented with the new pressure sensitive data into the initial data group, and add a new one according to the correlation weight array.
- the pressure sensitive data in the pressure sensitive data set of the pressure sensitive data is balanced to obtain balanced pressure sensitive data.
- the stylus handwriting optimization system proposed in this embodiment can solve the defects and limitations of the stylus hardware from the software point of view. Firstly, by expanding the data interval of the original pressure sensitive data group, the pressure sensitive data group after expanding the data interval When the difference between the two pressure sensitive data is large, the pressure sensitive data is directly added to the two pressure sensitive data, and the pressure sensitive data in the original pressure sensitive data group is finally smoothed, and the upper layer is applied in the upper layer. After receiving the optimized pressure sensing data, the handwriting changes are no longer abrupt, thereby achieving a better writing effect.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with such an instruction execution system, apparatus, or device.
- computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Character Discrimination (AREA)
- Collating Specific Patterns (AREA)
Abstract
一种触控笔笔迹的优化方法及系统,该方法包括:依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组(S101);扩大所述压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间(S102);当扩大数据区间后的压感数据组中的连续两次压感数据之间的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述连续两次压感数据之间补充新的压感数据(S103)。该方法首先扩大数据区间,当扩大数据区间后的压感数据组中的连续两次压感数据的差值较大时,在该连续两次压感数据之间补充新的压感数据,最终将原始的压感数据组中的压感数据变的更加平滑,使笔迹变化不再突兀,从而实现更好的书写效果。
Description
本发明涉及触控技术领域,特别是涉及一种触控笔笔迹的优化方法及系统。
随着科技的进步和互联网行业的不断发展,触控技术已逐渐普及。目前触控笔可大概归为两种类型:电阻式触控笔和电容式触控笔,不同类型的触控笔分别适用于电阻式和电容式触摸屏终端。触控笔笔头采用导电材质,能代替人手在触摸屏终端的屏幕上轻松、快捷、准确地输入信息;触控笔由于其精细准确和流畅的操作,已被用户所广泛接受。
触摸屏终端对触控笔的识别是通过获取触控笔在接触到触摸屏终端发出的一系列的压感数据,由于触控笔的硬件调节的限制或者工艺限制,在使用过程中常常会出现明显的数据抖动,上层应用在对这种抖动较大的压感数据进行识别和显示的过程中,会出现明显的竹节效应,即笔迹变化突兀,导致书写效果很差。
发明内容
本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明的一个目的在于提出一种触控笔笔迹的优化方法,解决现有技术笔迹变化突兀,书写效果差的问题。
根据本发明实施例的触控笔笔迹的优化方法,包括:
依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组;
扩大所述压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间;
当扩大数据区间后的压感数据组中的连续两次压感数据之间的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述连续两次压感数
据之间补充新的压感数据。
根据本发明实施例的触控笔笔迹的优化方法,能够从软件角度解决触控笔硬件方面的缺陷和限制,首先通过扩大原始压感数据组的数据区间,当扩大数据区间后的压感数据组中的连续两次压感数据的差值较大时,在该连续两次压感数据直接补充新的压感数据,最终将原始的压感数据组中的压感数据变的更加平滑,上层应用在接收到优化后的压感数据后,笔迹变化不再突兀,从而实现更好的书写效果。
另外,根据本发明上述实施例的触控笔笔迹的优化方法,还可以具有如下附加的技术特征:
进一步地,在本发明的一个实施例中,所述当扩大数据区间后的压感数据组中的连续两次压感数据之间的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述连续两次压感数据之间补充新的压感数据的步骤具体包括:
所述扩大数据区间后的压感数据组中的第一个压感数据直接插入待发送阻塞队列,所述待发送阻塞队列中的数据用于发送给上层应用;
从所述扩大数据区间后的压感数据组中的第二个压感数据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小;
当所述当前的压感数据和上一压感数据的差值大于所述最大间隔时,在所述当前的压感数据和上一压感数据之间补充数据间隔为A/(A/G+1)、数量为(A/G+1)的新的压感数据,并将所述新的压感数据和当前的压感数据插入所述待发送阻塞队列,其中,A为所述当前的压感数据和上一压感数据的差值,G为所述最大间隔。
进一步地,在本发明的一个实施例中,所述从所述扩大数据区间后的压感数据组中的第二个压感数据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小的步骤之后,所述方法还包括:
当所述当前的压感数据和上一压感数据的差值小于或等于所述最大间隔时,所述当前的压感数据直接插入所述待发送阻塞队列。
进一步地,在本发明的一个实施例中,所述在所述连续两次压感数据之间
补充新的压感数据的步骤之后,所述方法还包括:
在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合。
进一步地,在本发明的一个实施例中,所述在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合的步骤具体包括:
定义初始数据组和相关度权重数组;
将所述补充了新的压感数据的压感数据组中的压感数据依次代入所述初始数据组中,并根据所述相关度权重数组对所述补充了新的压感数据的压感数据组中的压感数据进行平衡,以获得平衡后的压感数据。
本发明的另一个目的在于提出一种触控笔笔迹的优化系统,解决现有技术笔迹变化突兀,书写效果差的问题。
根据本发明实施例的触控笔笔迹的优化系统,包括:
读取模块,用于依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组;
扩大模块,用于扩大所述读取模块获取的压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间;
补充模块,用于当扩大数据区间后的压感数据组中的连续两次压感数据的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述联系两次压感数据之间补充新的压感数据。
另外,根据本发明上述实施例的触控笔笔迹的优化系统,还可以具有如下附加的技术特征:
进一步地,在本发明的一个实施例中,所述补充模块包括第一插入模块、比较模块、补充子模块和第二插入模块;
所述第一插入模块用于将所述扩大数据区间后的压感数据组中的第一个压感数据直接插入待发送阻塞队列,所述待发送阻塞队列中的数据用于发送给上层应用;
所述比较模块用于从所述扩大数据区间后的压感数据组中的第二个压感数
据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小;
所述补充子模块用于当所述当前的压感数据和上一压感数据的差值大于所述最大间隔时,在所述当前的压感数据和上一压感数据之间补充数据间隔为A/(A/G+1)、数量为(A/G+1)的新的压感数据,其中,A为所述当前的压感数据和上一压感数据的差值,G为所述最大间隔;
所述第二插入模块用于在所述补充子模块补充了新的压感数据后,将所述新的压感数据和当前的压感数据插入所述待发送阻塞队列。
进一步地,在本发明的一个实施例中,所述优化系统还包括:
第三插入模块,用于当所述比较模块比较到所述当前的压感数据和上一压感数据的差值小于或等于所述最大间隔时,将所述当前的压感数据直接插入所述待发送阻塞队列。
进一步地,在本发明的一个实施例中,所述优化系统还包括:
拟合模块,用于在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合。
进一步地,在本发明的一个实施例中,所述定义模块用于定义初始数据组和相关度权重数组;
所述平衡模块用于将所述补充了新的压感数据的压感数据组中的压感数据依次代入所述初始数据组中,并根据所述相关度权重数组对所述补充了新的压感数据的压感数据组中的压感数据进行平衡,以获得平衡后的压感数据。
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:
图1是根据本发明一实施例的触控笔笔迹的优化方法的流程图;
图2是根据本发明另一实施例的触控笔笔迹的优化方法的流程图;
图3是图2中在两次压感数据之间补充新的压感数据的流程图;
图4是根据本发明另一实施例的触控笔笔迹的优化系统的结构示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,本发明一实施例提出的触控笔笔迹的优化方法,至少包括以下步骤:
S101,依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组;
其中,触控笔是用来输入指令到电脑屏幕、移动设备、绘图板等具有触摸屏的终端设备,用户可以通过触控笔点击终端设备的触控屏来选取文件或绘画,触控笔接触触摸屏时会产生由一系列的压感数据组成的压感数据组,该压感数据组是从触控笔刚接触触摸屏开始至触控笔离开触控屏的过程中产生的,该压感数据组原始为二进制数据,终端设备中的应用软件会存在一条读取该压感数据组的线程,同时可以根据相关协议解析该二进制数据,转化为更容易处理的10进制数据,最终转化为上层需要的数据并发送出去。
S102,扩大所述压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间;
其中,数据区间为压感数据组中最大压感数据和最小压感数据组成的区间,例如,一个压感数据组中的压感数据包括0,1,3,13,28,35,39,47,50,36,30,26,22,18,15,1,0,则该压感数据组的数据区间为[0,50],采用数据拉伸的方法,将原始数据的区间扩大,以达到使数据更加精细的目的,扩大所述压感数据组的数据区间具体为整数倍的扩大该数据区间[0,50],可以理解的,在扩大该压感数据组的数据区间时,可以根据终端设备的实际处理能力选择扩大的倍数,对于性能好、处理能力强的终端设备,扩大的倍数可以比较高,反之,扩大的倍数
应比较小,例如,可以整体扩大4倍,则扩大后的数据区间为[0,200],扩大数据区间后的压感数据组中的压感数据变为0,4,12,52,112,140,156,188,200,144,120,104,88,72,60,4,0。
S103,当扩大数据区间后的压感数据组中的连续两次压感数据之间的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述连续两次压感数据之间补充新的压感数据。
在S103中,首先针对扩大后的数据区间定义一个最大间隔,该最大间隔的可以根据终端设备的实际处理能力确定,对于性能好、处理能力强的终端设备,该最大间隔的数据值可以比较小,这样优化后的数据会更平滑。然后将扩大数据区间后的压感数据组中的连续两次压感数据的差值与该最大间隔时进行对比,若扩大数据区间后的压感数据组中的连续两次压感数据的差值大于该最大间隔,则通过程序智能补点的方法,在所述连续两次压感数据之间补充新的压感数据。
根据本发明实施例的触控笔笔迹的优化方法,能够从软件角度解决触控笔硬件方面的缺陷和限制,首先通过扩大原始压感数据组的数据区间,当扩大数据区间后的压感数据组中的连续两次压感数据的差值较大时,在该连续两次压感数据直接补充新的压感数据,最终将原始的压感数据组中的压感数据变的更加平滑,上层应用在接收到优化后的压感数据后,笔迹变化不再突兀,从而实现更好的书写效果。
请参阅图2,本发明另一实施例提出的触控笔笔迹的优化方法,至少包括以下步骤:
S201,依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组;
其中,终端设备的应用软件软件中存在一条读取触控笔压感数据的线程,同时根据协议解析该压感数据,该数据来自触控笔硬件,例如依次读取到触控笔发出的压感数据为0,1,3,13,28,35,39,47,50,36,30,26,22,18,15,1,0。
S202,扩大所述压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间;
其中,采用数据拉伸的方法,将原始数据的区间扩大,例如,整体扩大4倍,则扩大后的数据区间为[0,200],扩大数据区间后的压感数据组中的压感数据对应变为0,4,12,52,112,140,156,188,200,144,120,104,88,72,60,4,0。
S203,当扩大数据区间后的压感数据组中的连续两次压感数据之间的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述连续两次压感数据之间补充新的压感数据;
其中,首先针对扩大后的数据区间定义一个最大间隔G,例如,定义最大间隔G=10,然后当扩大数据区间后的压感数据组中的两次压感数据的差值大于10时,在所述两次压感数据之间补充新的压感数据。
请参阅图3,具体在本实施例中,步骤S203包括:
S2031,所述扩大数据区间后的压感数据组中的第一个压感数据直接插入待发送阻塞队列,所述待发送阻塞队列中的数据用于发送给上层应用;
具体实施时,还可以定义一个变量R用于记录上一次的压感数据,再定义一个压感数据待发送阻塞队列Q,队列Q中的数据会发送给上层应用,当接收到第一个压感数据时,赋值给R,同时将值插入队列(该数据会立即被发送给应用)。
S2032,从所述扩大数据区间后的压感数据组中的第二个压感数据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小;
S2033,当所述当前的压感数据和上一压感数据的差值大于所述最大间隔时,在所述当前的压感数据和上一压感数据之间补充数据间隔为A/(A/G+1)、数量为(A/G+1)的新的压感数据,并将所述新的压感数据和当前的压感数据插入所述待发送阻塞队列,其中,A为所述当前的压感数据和上一压感数据的差值,G为所述最大间隔。
具体实施时,接收到第二个压感数据时,比较当前的压感数据和上一压感数据R的差值A与所述最大间隔G的大小;
若A小于或等于所述最大间隔G,则当前的压感数据直接插入所述待发送阻塞队列;
若A大于所述最大间隔G,在所述当前的压感数据和上一压感数据之间补
充数据间隔为A/(A/G+1)、数量为(A/G+1)的新的压感数据,其中,基于计算机的数据处理机制,当A/(A/G+1)或(A/G+1)计算出来结果不是整数时,只取小数点前的整数位。
下面根据本实施例中的具体压感数据给出详细说明:
原始的压感数据为:0,1,3,13,28,35,39,47,50,36,30,26,22,18,15,1,0,数据区间为[1,50];
扩大后的数据区间为[1,200],扩大数据区间后的压感数据变为:0,4,12,52,112,140,156,188,200,144,120,104,88,72,60,4,0。
定义最大间隔值G为10,
对于第一个压感数据0,直接插入队列Q;
对于第二个压感数据4,A=4-0=4<G,直接插入队列Q;
对于第三个压感数据12,A=12-4=8<G,直接插入队列Q;
对于第四个压感数据52,A=52-12=40>G则需要补充A/G+1=40/10+1=5个点,补充间隔g=A/(A/G+1)=8,则补充20,28,36,44,52这几个点.....
以此类推;
最终压感数据变为:
0,4,12,20,28,36,44,52,52,60,68,76,84,92,100,108,112,121,130,139,140,148,156,164,172,180,188,194,200,191,182,173,164,155,146,144,136,128,120,112,104,96,88,80,72,66,60,51,42,33,24,15,6,4,0。
可以看出,压感数据变的更加平滑,根据本实施例的触控笔笔迹的优化方法,能够从软件角度解决触控笔硬件方面的缺陷和限制,首先通过扩大原始压感数据组的数据区间,当扩大数据区间后的压感数据组中的两次压感数据的差值较大时,在该两次压感数据直接补充新的压感数据,最终将原始的压感数据组中的压感数据变的更加平滑,上层应用在接收到优化后的压感数据后,笔迹变化不再突兀,从而实现更好的书写效果。
S204,在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合。
本实施例,还可以对补充了新的压感数据的压感数据组中的压感数据进行进一步优化,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合,使压感数据的更加平滑。
其中,步骤S204具体包括:
定义初始数据组和相关度权重数组;
将所述补充了新的压感数据的压感数据组中的压感数据依次代入所述初始数据组中,并根据所述相关度权重数组对所述补充了新的压感数据的压感数据组中的压感数据进行平衡,以获得平衡后的压感数据。
具体实施时,首先保存一个长度L的数组(在一次设置一个软件中这个长度应该是固定的),数组中每个值代表最近的L个元素的相关度,比如数组长度L为5,代表和当前数值和最近的五个值相关。可以根据机器的性能和需求,调整数组长度和相关度权重。具体在本实施例中,相关度总数为2的n次方,例如,相关度总数为2的5次方,即相关度总数为32,各个值相关度为2,4,7,7,12。首先保存一个压感数据队列,队列的每一个新值都是根据5个值乘以各自权重,在进行右移n位生成,在用这样的数据进行书写笔迹会很流畅自然。
下面通过一具体数据组进行详细说明:
接收到的触控笔的压感数据为:
0,4,12,19,26,33,40,47,52,60,74,76,84,92,100;其中,第11位的压感数据74为突变数据。
定义初始数据数组为[0,0,0,0,0],定义权重数组为[2,4,7,7,12];
将第1个压感数据0代入初始数据数组中,得数据数组[0,0,0,0,],平衡后的压感数据为(0*0)/2=0;
将第2个压感数据4代入数据数组中,得数据数组[0,4,0,0,0],平衡后的压感数据为(0*2+4*4)/6=2;
将第3个压感数据12代入数据数组中,得数据数组[0,4,12,0,0],平衡后的压感数据为(0*2+4*4+12*7)/(2+4+7)=7;
将第4个压感数据19代入数据数组中,得数据数组[0,4,12,19,0],平衡后的压感数据为(0*2+4*4+12*7+19*7)/(2+4+7+7)=11;
将第5个压感数据26代入数据数组中,得数据数组[0,4,12,19,26],平衡后的压感数据为(0*2+4*4+12*7+19*7+26*12)/32=17;
将第6个压感数据33代入数据数组中,得数据数组[4,12,19,26,33],平衡后的压感数据为(4*2+12*4+19*7+26*7+33*12)/32=23;
将第7个压感数据40代入数据数组中,得数据数组[12,19,26,33,40],平衡后的压感数据为(12*2+19*4+26*7+33*7+40*12)/32=31;
将第8个压感数据47代入数据数组中,得数据数组[19,26,33,40,47],平衡后的压感数据为(19*2+26*4+33*7+40*7+47*12)/32=38;
将第9个压感数据52代入数据数组中,得数据数组[26,33,40,47,52],平衡后的压感数据为(26*2+33*4+40*7+47*7+52*12)/32=44;
将第10个压感数据60代入数据数组中,得数据数组[33,40,47,52,60],平衡后的压感数据为(33*2+40*4+47*7+52*7+60*12)/32=51;
将第11个压感数据74代入数据数组中,得数据数组[40,47,52,60,74],平衡后的压感数据为(40*2+47*4+52*7+60*7+74*12)/32=60;
将第12个压感数据76代入数据数组中,得数据数组[47,52,60,74,76],平衡后的压感数据为(47*2+52*4+60*7+74*7+76*12)/32=67;
将第13个压感数据84代入数据数组中,得数据数组[52,60,74,76,84],平衡后的压感数据为(52*2+60*4+74*7+76*7+84*12)/32=75;
将第14个压感数据92代入数据数组中,得数据数组[60,74,76,84,92],平衡后的压感数据为(60*2+74*4+76*7+84*7+92*12)/32=82;
将第15个压感数据100代入数据数组中,得数据数组[74,76,84,92,100],平衡后的压感数据为(74*2+76*4+84*7+92*7+100*12)/32=90。
最终平衡后的压感数据为:0,2,7,11,17,23,31,38,44,51,60,67,75,82,90,可以看到,第11位的突变数据74为被很好的平衡。最终压感数据得到进一步优化,书写会更加平滑。
可以理解的,由于权重数组为会影响最终的压感数据,因此还可以通过对平衡后的压感数据组的两个压感数据之间做向量,两个向量之间做运算,如果变化过大,可以动态调整权重数组,使最终的压感数据更加接近自然书写的状
态。
请参阅图4,基于同一发明构思,本发明另一实施例提出了一种触控笔笔迹的优化系统,包括:
读取模块,用于依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组;
扩大模块,用于扩大所述读取模块获取的压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间;
补充模块,用于当扩大数据区间后的压感数据组中的连续两次压感数据的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述联系两次压感数据之间补充新的压感数据。
本实施例中,所述补充模块包括第一插入模块、比较模块、补充子模块和第二插入模块;
所述第一插入模块用于将所述扩大数据区间后的压感数据组中的第一个压感数据直接插入待发送阻塞队列,所述待发送阻塞队列中的数据用于发送给上层应用;
所述比较模块用于从所述扩大数据区间后的压感数据组中的第二个压感数据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小;
所述补充子模块用于当所述当前的压感数据和上一压感数据的差值大于所述最大间隔时,在所述当前的压感数据和上一压感数据之间补充数据间隔为A/(A/G+1)、数量为(A/G+1)的新的压感数据,其中,A为所述当前的压感数据和上一压感数据的差值,G为所述最大间隔;
所述第二插入模块用于在所述补充子模块补充了新的压感数据后,将所述新的压感数据和当前的压感数据插入所述待发送阻塞队列。
本实施例中,所述优化系统还包括:
第三插入模块,用于当所述比较模块比较到所述当前的压感数据和上一压感数据的差值小于或等于所述最大间隔时,将所述当前的压感数据直接插入所述待发送阻塞队列。
本实施例中,所述优化系统还包括:
拟合模块,用于在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合。
本实施例中,所述拟合模块包括定义模块和平衡模块;
所述定义模块用于定义初始数据组和相关度权重数组;
所述平衡模块用于将所述补充了新的压感数据的压感数据组中的压感数据依次代入所述初始数据组中,并根据所述相关度权重数组对所述补充了新的压感数据的压感数据组中的压感数据进行平衡,以获得平衡后的压感数据。
本实施例提出的触控笔笔迹的优化系统,能够从软件角度解决触控笔硬件方面的缺陷和限制,首先通过扩大原始压感数据组的数据区间,当扩大数据区间后的压感数据组中的两次压感数据的差值较大时,在该两次压感数据直接补充新的压感数据,最终将原始的压感数据组中的压感数据变的更加平滑,上层应用在接收到优化后的压感数据后,笔迹变化不再突兀,从而实现更好的书写效果。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。
Claims (10)
- 一种触控笔笔迹的优化方法,其特征在于,包括:依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组;扩大所述压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间;当扩大数据区间后的压感数据组中的连续两次压感数据之间的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述连续两次压感数据之间补充新的压感数据。
- 根据权利要求1所述的触控笔笔迹优化的方法,其特征在于,所述当扩大数据区间后的压感数据组中的连续两次压感数据之间的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述连续两次压感数据之间补充新的压感数据的步骤具体包括:所述扩大数据区间后的压感数据组中的第一个压感数据直接插入待发送阻塞队列,所述待发送阻塞队列中的数据用于发送给上层应用;从所述扩大数据区间后的压感数据组中的第二个压感数据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小;当所述当前的压感数据和上一压感数据的差值大于所述最大间隔时,在所述当前的压感数据和上一压感数据之间补充数据间隔为A/(A/G+1)、数量为(A/G+1)的新的压感数据,并将所述新的压感数据和当前的压感数据插入所述待发送阻塞队列,其中,A为所述当前的压感数据和上一压感数据的差值,G为所述最大间隔。
- 根据权利要求2所述的触控笔笔迹优化的方法,其特征在于,所述从所述扩大数据区间后的压感数据组中的第二个压感数据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小的步骤之后,所述方法还包括:当所述当前的压感数据和上一压感数据的差值小于或等于所述最大间隔时,所述当前的压感数据直接插入所述待发送阻塞队列。
- 根据权利要求1至3任意一项所述的触控笔笔迹优化的方法,其特征在于,所述在所述连续两次压感数据之间补充新的压感数据的步骤之后,所述方 法还包括:在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合。
- 根据权利要求4所述的触控笔笔迹优化的方法,其特征在于,所述在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合的步骤具体包括:定义初始数据组和相关度权重数组;将所述补充了新的压感数据的压感数据组中的压感数据依次代入所述初始数据组中,并根据所述相关度权重数组对所述补充了新的压感数据的压感数据组中的压感数据进行平衡,以获得平衡后的压感数据。
- 一种触控笔笔迹的优化系统,其特征在于,包括:读取模块,用于依次读取触控笔的压感数据,将获取到的多个所述压感数据形成压感数据组;扩大模块,用于扩大所述读取模块获取的压感数据组的数据区间,所述数据区间为所述压感数据组中最大压感数据和最小压感数据组成的区间;补充模块,用于当扩大数据区间后的压感数据组中的连续两次压感数据的差值大于所述扩大数据区间后的压感数据组中预设的最大间隔时,在所述联系两次压感数据之间补充新的压感数据。
- 根据权利要求6所述的触控笔笔迹的优化系统,其特征在于,所述补充模块包括第一插入模块、比较模块、补充子模块和第二插入模块;所述第一插入模块用于将所述扩大数据区间后的压感数据组中的第一个压感数据直接插入待发送阻塞队列,所述待发送阻塞队列中的数据用于发送给上层应用;所述比较模块用于从所述扩大数据区间后的压感数据组中的第二个压感数据起,比较当前的压感数据和上一压感数据的差值与所述最大间隔的大小;所述补充子模块用于当所述当前的压感数据和上一压感数据的差值大于所述最大间隔时,在所述当前的压感数据和上一压感数据之间补充数据间隔为A/(A/G+1)、数量为(A/G+1)的新的压感数据,其中,A为所述当前的压感数据和 上一压感数据的差值,G为所述最大间隔;所述第二插入模块用于在所述补充子模块补充了新的压感数据后,将所述新的压感数据和当前的压感数据插入所述待发送阻塞队列。
- 根据权利要求7所述的触控笔笔迹的优化系统,其特征在于,所述优化系统还包括:第三插入模块,用于当所述比较模块比较到所述当前的压感数据和上一压感数据的差值小于或等于所述最大间隔时,将所述当前的压感数据直接插入所述待发送阻塞队列。
- 根据权利要求6至8任意一项所述的触控笔笔迹的优化系统,其特征在于,所述优化系统还包括:拟合模块,用于在补充了新的压感数据的压感数据组中,根据数据相关度对所述补充了新的压感数据的压感数据组中的压感数据进行拟合。
- 根据权利要求9所述的触控笔笔迹的优化系统,其特征在于,所述拟合模块包括定义模块和平衡模块;所述定义模块用于定义初始数据组和相关度权重数组;所述平衡模块用于将所述补充了新的压感数据的压感数据组中的压感数据依次代入所述初始数据组中,并根据所述相关度权重数组对所述补充了新的压感数据的压感数据组中的压感数据进行平衡,以获得平衡后的压感数据。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611021445.3A CN106843714B (zh) | 2016-11-15 | 2016-11-15 | 触控笔笔迹的优化方法及系统 |
| CN201611021445.3 | 2016-11-15 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018090736A1 true WO2018090736A1 (zh) | 2018-05-24 |
Family
ID=59145732
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/103814 Ceased WO2018090736A1 (zh) | 2016-11-15 | 2017-09-27 | 触控笔笔迹的优化方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106843714B (zh) |
| WO (1) | WO2018090736A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106843714B (zh) * | 2016-11-15 | 2020-05-12 | 广州视源电子科技股份有限公司 | 触控笔笔迹的优化方法及系统 |
| CN115705104A (zh) * | 2021-08-09 | 2023-02-17 | 广州视源电子科技股份有限公司 | 一种书写效果处理方法、装置、设备及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103064554A (zh) * | 2012-12-17 | 2013-04-24 | 上海海知信息技术有限公司 | 一种手写输入法的笔迹平滑处理方法及手写输入法 |
| US20140320460A1 (en) * | 2012-09-11 | 2014-10-30 | FlatFrong Laboratories AB | Touch force estimation in an ftir-based projection-type touch-sensing apparatus |
| CN104252306A (zh) * | 2013-06-27 | 2014-12-31 | 宏碁股份有限公司 | 笔触显示方法 |
| CN105556566A (zh) * | 2013-10-25 | 2016-05-04 | 株式会社和冠 | 动态手写验证、基于手写的用户认证、手写数据生成和手写数据保存 |
| CN106843714A (zh) * | 2016-11-15 | 2017-06-13 | 广州视源电子科技股份有限公司 | 触控笔笔迹的优化方法及系统 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101295217B (zh) * | 2008-06-05 | 2010-06-09 | 中兴通讯股份有限公司 | 手写输入处理装置和方法 |
| CN102521855A (zh) * | 2011-11-22 | 2012-06-27 | 广东威创视讯科技股份有限公司 | 基于触控平台的笔迹调整方法及装置 |
| TWI470490B (zh) * | 2012-02-17 | 2015-01-21 | Wistron Corp | 手寫輸入之筆劃呈現方法與電子裝置 |
| CN104346091B (zh) * | 2013-07-31 | 2020-04-21 | 北京壹人壹本信息科技有限公司 | 笔迹的显示方法和装置 |
| CN104049874B (zh) * | 2014-06-10 | 2017-04-05 | 广州视睿电子科技有限公司 | 触控笔的触摸笔迹生成方法和系统 |
-
2016
- 2016-11-15 CN CN201611021445.3A patent/CN106843714B/zh active Active
-
2017
- 2017-09-27 WO PCT/CN2017/103814 patent/WO2018090736A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140320460A1 (en) * | 2012-09-11 | 2014-10-30 | FlatFrong Laboratories AB | Touch force estimation in an ftir-based projection-type touch-sensing apparatus |
| CN103064554A (zh) * | 2012-12-17 | 2013-04-24 | 上海海知信息技术有限公司 | 一种手写输入法的笔迹平滑处理方法及手写输入法 |
| CN104252306A (zh) * | 2013-06-27 | 2014-12-31 | 宏碁股份有限公司 | 笔触显示方法 |
| CN105556566A (zh) * | 2013-10-25 | 2016-05-04 | 株式会社和冠 | 动态手写验证、基于手写的用户认证、手写数据生成和手写数据保存 |
| CN106843714A (zh) * | 2016-11-15 | 2017-06-13 | 广州视源电子科技股份有限公司 | 触控笔笔迹的优化方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106843714A (zh) | 2017-06-13 |
| CN106843714B (zh) | 2020-05-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20140325408A1 (en) | Apparatus and method for providing musical content based on graphical user inputs | |
| CN107463304B (zh) | 桌面图标整理方法、装置、移动设备及存储介质 | |
| US20200012411A1 (en) | Method for processing icons and mobile terminal | |
| CN105373611B (zh) | 一种文件显示方法及装置 | |
| CN111901538B (zh) | 一种字幕生成方法、装置、设备及存储介质 | |
| CN110299136A (zh) | 一种用于语音识别的处理方法及其系统 | |
| CN105117380B (zh) | 粘贴处理方法及装置 | |
| US11436403B2 (en) | Online document commenting method and apparatus | |
| CN114223021B (zh) | 电子装置及其处理手写输入的方法 | |
| CN112445729A (zh) | 操作地址确定方法、PCIe系统、电子设备及存储介质 | |
| CN107506104A (zh) | 桌面图标的整理方法、装置、移动终端及存储介质 | |
| CN106951527A (zh) | 一种歌曲推荐方法及装置 | |
| CN106095378A (zh) | 一种音量调节方法及装置 | |
| CN116189707B (zh) | 歌曲识别方法、计算机设备和存储介质 | |
| CN107958039A (zh) | 一种检索词纠错方法、装置及服务器 | |
| US20230004528A1 (en) | Systems and methods for template-based data processing and visualization | |
| CN114676825A (zh) | 一种神经网络模型量化方法、系统、设备及介质 | |
| CN114913311A (zh) | 一种虚拟人物服饰匹配方法、设备及介质 | |
| EP2863542B1 (en) | Method and apparatus for providing a visual user interface for audio equalization | |
| CN108628886B (zh) | 一种音频文件推荐方法及装置 | |
| WO2018090736A1 (zh) | 触控笔笔迹的优化方法及系统 | |
| CN114418114A (zh) | 一种算子融合方法、装置、终端设备及存储介质 | |
| CN108133048B (zh) | 文件排序方法、装置及移动终端 | |
| CN104216625A (zh) | 显示对象显示位置的调整方法和终端设备 | |
| CN108416300A (zh) | 一种识别书写轨迹的方法、装置及终端设备 |
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: 17872753 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: 17872753 Country of ref document: EP Kind code of ref document: A1 |