Pressure sensing data processing method and device, pressure sensing pen and storage medium
The pressure-sensitive data processing method standardizes pressure attenuation across different pressure-sensitive pens, addressing the inefficiency and high costs associated with developing pen tip display solutions by correcting pressure-sensing information during the pen-lifting stage.
Patent Information
- Application Number
- CN202310798674.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-12-31
AI Technical Summary
The development of pen tip display solutions for pressure-sensitive pens is wasteful of manpower and material resources due to the need to account for the varying rebound characteristics of different pressure sensors, leading to high development costs.
A pressure-sensitive data processing method that corrects pressure-sensing point information during the pen-lifting stage to achieve standardized pressure attenuation, independent of the rebound characteristics of individual pens, allowing for efficient application development across different batches or types.
This method enables standardized pressure-sensitive point reporting, reducing the need to consider individual pen characteristics, thereby saving resources and lowering development costs while ensuring consistent pen tip effects.
Smart Images

Figure CN119225546A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of interactive peripherals, and in particular to a pressure-sensitive data processing method, device, pressure-sensitive pen and storage medium. Background Art
[0002] At present, pressure sensors are widely used in various fields, especially in the fields of measurement and intelligent interaction. In the field of consumer electronics, with the popularization of interactive intelligent devices, the market demand for pressure-sensitive pens using pressure sensors is increasing.
[0003] In practical applications, the calibration and algorithm adaptation of the pressure sensor used in the pressure-sensitive pen are important factors that affect the writing experience of a pressure-sensitive pen. When the pressure-sensitive pen is writing, the strain gauge of the pressure sensor will deform after being subjected to force, causing its resistance value to change, and ultimately causing the voltage at the measuring end of the strain gauge to change. At this time, the AD module is used to collect the voltage magnitude, and the voltage magnitude can be converted into the measured pressure magnitude in the form of a digital signal. The pressure magnitude can be used as an information reference for interactive intelligent devices to respond or generate data, such as a reference for the thickness of handwriting when writing.
[0004] In writing based on interactive smart devices, calligraphy and painting have higher requirements for the presentation of the effect of changes in handwriting thickness. Due to the different characteristics of the pressure sensors in the pressure-sensitive pens, the rebound performance of the pressure sensors when writing is different, and the corresponding pen tips are also different. Pressure-sensitive pens produced by different manufacturers usually develop corresponding writing applications, and design pen tip display solutions based on the pressure changes when the pen is lifted in writing applications. However, these pen tip display solutions must be specifically targeted at the rebound characteristics of the pressure sensors in the matching pressure-sensitive pens, and the handwriting and pen tip algorithms must be developed and optimized to generate more beautiful pen tips. This application development method of developing a pen tip display solution based on the rebound characteristics of the pressure-sensitive pen is a waste of manpower and material resources, and the development cost is relatively high. Summary of the invention
[0005] The present invention provides a pressure-sensitive data processing method, device, pressure-sensitive pen and storage medium to solve the technical problem that in the prior art, the application development method of developing a pen tip display solution in conjunction with the rebound characteristics of the pressure-sensitive pen is relatively wasteful of manpower and material resources and has a high development cost.
[0006] In a first aspect, an embodiment of the present invention provides a pressure sensing data processing method, comprising:
[0007] Real-time acquisition of pressure point information obtained by pressure sensing of touch operation;
[0008] Confirm the pressure change parameters of the pressure-sensitive point information within the preset range before the current touch operation ends, and the pressure-sensitive point information within the preset range is generated corresponding to the current touch operation;
[0009] The corresponding pressure-sensing point information within the preset range is corrected according to the preset correction parameters to obtain the target pressure-sensing point information whose pressure change parameters satisfy the preset pressure-sensing attenuation process.
[0010] In a second aspect, an embodiment of the present invention further provides a pressure sensing data processing device, comprising:
[0011] An information acquisition unit, used to acquire in real time pressure-sensing point information obtained by performing pressure-sensing detection on a touch operation;
[0012] A parameter confirmation unit, used to confirm the pressure change parameters of the pressure-sensitive point information within a preset range before the current touch operation ends, and the pressure-sensitive point information within the preset range is generated corresponding to the current touch operation;
[0013] The information correction unit is used to correct the corresponding pressure-sensing point information within a preset range according to preset correction parameters, and obtain target pressure-sensing point information whose pressure change parameters meet the preset pressure attenuation process.
[0014] In a third aspect, an embodiment of the present invention further provides a pressure-sensitive pen, including:
[0015] one or more processors;
[0016] a memory for storing one or more computer programs;
[0017] When one or more computer programs are executed by one or more processors, the pressure-sensitive pen implements the pressure-sensitive data processing method of the first aspect.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the pressure-sensing data processing method of the first aspect is implemented.
[0019] In the above-mentioned pressure-sensing data processing method, device, pressure-sensing pen and storage medium, the pressure-sensing point information obtained by pressure-sensing detection of the touch operation is obtained in real time; the pressure change parameters of the pressure-sensing point information within a preset range before the end of the current touch operation are confirmed, and the pressure-sensing point information within the preset range all corresponds to the current touch operation; the corresponding pressure-sensing point information within the preset range is corrected according to the preset correction parameters, and the target pressure-sensing point information whose pressure change parameters meet the preset pressure attenuation process is obtained. By processing the pressure-sensitive point reporting information in the pen-lifting stage associated with the pen tip during the writing process, the pressure-sensitive point reporting information is directly corrected in the data generation stage of pressure detection, and the target pressure-sensitive point reporting information that meets the preset pressure attenuation process is obtained, so that pressure-sensitive pens of different batches or types can generate standardized pressure-sensitive point reporting information with the same pressure attenuation process in the pen-lifting stage, and the influence of the rebound characteristics in the pressure-sensitive point reporting information is removed. In the process of developing writing applications for corresponding pressure-sensitive pens, there is no need to consider the rebound characteristics of pressure-sensitive pens of different batches or types, and the development of writing applications can be quickly completed based on the standardized pressure-sensitive point reporting information, which saves manpower and material resources in the development process, improves development efficiency, and reduces development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A method flow chart of a pressure sensing data processing method provided by an embodiment of the present invention.
[0021] Figure 2 Schematic diagram of a process for generating target pressure data in an embodiment of the present invention.
[0022] Figure 3 A schematic diagram of the structure of a pressure-sensitive data processing device provided in an embodiment of the present invention.
[0023] Figure 4 A schematic structural diagram of a pressure-sensitive pen provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0025] It should be noted that the present application specification does not enumerate all optional implementation modes. After reading the present application specification, those skilled in the art should be able to understand that as long as the technical features do not contradict each other, any combination of the technical features can constitute an optional implementation mode.
[0026] When the pressure-sensitive pen is not subjected to external force, the strain gauge is at the pressure zero position, which corresponds to an initial resistance state. During the writing process, the pressure-sensitive pen is deformed by external force, which corresponds to a real-time resistance state and is detected by the AD module. The AD module can confirm the pressure from the pressure zero position to the current deformation based on the difference between the real-time resistance state and the initial resistance state.
[0027] The specific measurement principle of the strain gauge is that the resistance value of the metal wire is not only related to the properties of the material, but also to the length and cross-sectional area of the metal wire. The metal wire is pasted on the component. When the component is deformed by force, the length and cross-sectional area of the metal wire also change with the component, and then the resistance changes. The above change relationship can be expressed as dR / R=Ks*ε. Among them, Ks is the sensitivity coefficient of the material, and its physical meaning is the resistance change rate per unit strain, which indicates the significant degree of the resistance strain gauge effect of this type of wire. ε is the strain at the measuring point, which is a dimensionless quantity, but it is still customary to give a unit microstrain, and is usually represented by the symbol με. It can be seen from this that when the metal wire produces a strain effect, the strain ε is linearly related to the resistance change rate dR / R. This is the theoretical basis for using metal strain gauges to measure component strain, and strain and pressure have a clear correlation, so strain can be converted into pressure measurement results.
[0028] In the pressure-sensitive pen, the zero-pressure position of the strain gauge is usually considered to remain unchanged, and the strain gauge can return to the zero-pressure position after deformation during each writing operation. During each writing operation, when the pressure-sensitive pen is out of contact with the interactive smart device, it may happen that the pressure-sensitive pen is no longer in contact with the interactive smart device, and there is no actual pressure. However, it takes time for the strain gauge to return to the zero-pressure position, that is, the time for the strain gauge to return to the zero-pressure position will lag behind the time when the pressure-sensitive pen is out of contact. For the strain gauge, although there is no actual external pressure, the deformation will result in the detection result of pressure, and the pressure detected in this process gradually decreases until it reaches 0.
[0029] When a physical pen used for writing on paper is used for writing, the strength of the writing (such as a writing brush) will have corresponding changes in the thickness of the handwriting, especially when the pen is about to end and the pen is lifted, the pressure between the physical pen and the paper decreases, thereby forming an obvious pen tip effect. With reference to the reason why a physical pen produces pen tips, during the writing process of a pressure-sensitive pen, according to the gradually decreasing pressure data detected, handwriting with pen tip effects can be generated on an interactive smart device according to the touch position. An exemplary way of processing pen tips, for example, at the end of writing, according to the changes in the touch position and pressure data, the handwriting is displayed as uniformly decreasing, and the width of the end is smaller than that of other positions. This uniformly decreasing end generation effect is a pen tip.
[0030] The above is the general principle of generating pen tips based on pressure sensing detection. In the actual pressure sensing pens, the component that specifically completes the pressure detection is the strain gauge, and the detection of the real-time resistance state of the strain gauge is performed periodically. The rebound speed of some strain gauges is too fast, and less pressure data is detected during the rebound process. When the pen tip is directly generated with a small amount of pressure data, there may be almost no pen tip, or it may not be obvious. The rebound speed of some strain gauges is too slow, and more pressure data is detected during the rebound process. Using more pressure data directly may cause the pen tip to be too long, and the expected pen tip is not displayed, but a handwriting deformation similar to the tailing phenomenon. The writing process based on the pressure-sensitive pen is usually completed by writing applications. In order to present a good pen stroke effect, the pressure-sensitive pen and the writing application usually need to be developed in coordination. In the writing application, the pressure data generated during the pen lifting process based on the specific rebound characteristics of the pressure-sensitive pen is used to design the corresponding pen stroke generation scheme. This is especially true for developers of writing applications. For example, a batch of pressure-sensitive pens can generate 40 frames of pressure data during the normal writing process of lifting the pen, and another batch of pressure-sensitive pens can generate 60 frames of pressure data during the normal writing process of lifting the pen. If these two batches of pressure-sensitive pens want to display the same pen stroke when writing the same stroke, it is necessary to conduct a detailed analysis of the pressure data of the two batches and generate the same pen stroke based on the actual pressure data. The application development method of developing a pen stroke display scheme for each batch of pressure-sensitive pens is a waste of manpower and material resources, and the development cost is relatively high.
[0031] In response to the above technical problems, the present solution proposes a pressure-sensitive data processing method, which processes the pressure-sensitive point reporting information in the pen-lifting stage associated with the pen tip during the writing process, and directly corrects the pressure-sensitive point reporting information in the data generation stage of pressure detection to obtain target pressure-sensitive point reporting information that meets the preset pressure attenuation process, so that pressure-sensitive pens of different batches or types can generate standardized pressure-sensitive point reporting information with the same pressure attenuation process in the pen-lifting stage, and remove the influence of the rebound characteristics in the pressure-sensitive point reporting information. In the process of developing writing applications for corresponding pressure-sensitive pens, there is no need to consider the rebound characteristics of pressure-sensitive pens of different batches or types, and the writing application development can be quickly completed based on the standardized pressure-sensitive point reporting information, saving manpower and material resources in the development process, improving development efficiency, and reducing development costs.
[0032] The following is a detailed description of the various embodiments of the present invention.
[0033] Figure 1 This is a method flow chart of a pressure-sensitive data processing method provided by an embodiment of the present invention, and the pressure-sensitive data processing method is implemented by a pressure-sensitive pen. Figure 1 The pressure sensing data processing method includes steps S110 to S130:
[0034] Step S110: acquiring pressure-sensing point information obtained by performing pressure-sensing detection on the touch operation in real time.
[0035] After the pressure-sensitive pen is powered on, it enters the working state and starts to perform pressure-sensitive detection on the strain gauge cycle. For the preset number of digital signals detected first after power-on, since they are not affected by external force at this time and are of course at the pressure zero position, the existing signal processing method can be used to directly confirm that the pressure value corresponding to the current resistance is zero, which is defined as the initial reference signal value in the digital signal corresponding to the AD module. Specifically, a sliding average method is used to confirm the initial reference signal value based on multiple digital signals (for example, 20).
[0036] During the pressure-sensitive pen touch operation, based on the reference signal value, the AD module periodically performs pressure detection on the strain gauge, and the processor of the pressure-sensitive pen obtains the pressure point information obtained by the AD module through pressure detection in real time.
[0037] Step S120: confirming the pressure change parameters of the pressure-sensitive point information within a preset range before the current touch operation ends, where the pressure-sensitive point information within the preset range is generated corresponding to the current touch operation.
[0038] In a complete touch operation process, the pressure-sensitive pen first contacts the touch screen of the interactive smart device, and the instantaneous pressure between the pressure-sensitive pen and the touch screen is 0; then the pressure-sensitive pen maintains contact with the touch screen because of the touch operation; finally, the touch operation ends and the pressure-sensitive pen separates from the touch screen. In the process of maintaining the contact state, the pressure between the pressure-sensitive pen and the touch screen gradually increases and reaches a peak value. Depending on the type of specific touch operation, after maintaining the peak state for a certain period of time (not necessarily maintaining a fixed pressure value, which may fluctuate due to user operations), or after reaching the peak value, the pressure between the pressure-sensitive pen and the touch screen becomes 0 due to the separation process between the pressure-sensitive pen and the touch screen. Corresponding to Figure 2 The process from origin → A → B → C → D → E → F → G reflects the pressure change curve of a writing touch operation, from starting contact, to writing a certain distance in the contact state, and then to ending the writing touch operation.
[0039] When the pressure-sensitive point reporting information is specifically processed based on the embodiment of the present application, in order to maintain the final display effect of the pen tip, the pressure-sensitive point reporting information generated in the pen-lifting stage is processed. Reflected in the acquired pressure-sensitive point reporting information, it is necessary not to process all of the pen-lifting stage, but to process the last part, and the optional processing object is defined as a preset range. The preset range can be the first preset number of pressure-sensitive point reporting information before the end of the touch operation, that is, the number of pressure-sensitive point reporting information during the pressure reduction process in the pen-lifting stage is sufficient, then a part of the end of the group is taken and processed according to the embodiment of the present application. Alternatively, the number of pressure-sensitive point reporting information during the pressure reduction process in the pen-lifting stage is small, then the pressure-sensitive point reporting information in the pressure reduction (i.e., decreasing) stage before the end of the touch operation must be processed.
[0040] Step S130: Correct the corresponding pressure-sensing point information within the preset range according to the preset correction parameters to obtain the target pressure-sensing point information whose pressure change parameters satisfy the preset pressure-sensing attenuation process.
[0041] The pressure change parameter is mainly used to describe the overall trend of pressure change and the intensity of the overall trend, that is, whether the pressure increases or decreases, and whether the speed of increase or decrease is fast or slow. The size and speed can be characterized by the first-order derivative or slope. In order to describe intuitively, this scheme provides a detailed description of the attenuation slope based on the time-pressure coordinate system. The attenuation slope of the pressure-sensitive reporting point information is the slope of the line connecting the coordinate points corresponding to the previous pressure-sensitive reporting point information when the pressure data carried by each is mapped to form a coordinate point in the time-pressure coordinate system. The first-order derivative first fits each coordinate point in the time-pressure coordinate system to form a smooth curve, and then calculates the first-order derivative at the coordinate point corresponding to each pressure-sensitive reporting point information.
[0042] The time-pressure coordinate system refers to a coordinate system with time as the horizontal axis and pressure intensity as the vertical axis. When each pressure data is mapped to the time-pressure coordinate system according to the corresponding acquisition time and the detected pressure intensity, a point is obtained respectively. The slope of the line formed by connecting two adjacent points according to the acquisition sequence is the attenuation slope of the latter point among the two adjacent points. The attenuation slope is confirmed based on the actual detection results and is further defined as the confirmed attenuation slope. It should be noted that the above time-pressure coordinate system is only used to illustrate the definition of the attenuation slope, and does not mean that the time-pressure coordinate system is generated and displayed in the actual processing process. The attenuation slope can be directly confirmed through data calculation based on the pressure data and the corresponding time.
[0043] Based on the attenuation slope, step S130 can be specifically implemented through steps S131 to S133.
[0044] Step S131: Correct the attenuation slopes confirmed for the pressure-sensitive point information within the preset range in sequence to obtain an effective attenuation slope. The correction is based on the attenuation slope confirmed for each pressure-sensitive point information, and is performed according to preset correction parameters and the effective attenuation slope corresponding to the previous pressure-sensitive point information.
[0045] The pressure-sensitive point information carries pressure data. The shape finally drawn by the pen tip is confirmed by the pressure-sensitive detection results during the pen-lifting phase of the touch operation. That is, the continuous pressure changes within the preset range determine the shape of the pen tip. Therefore, the pressure is processed in a time sequence to ensure that the pen tip displays naturally and beautifully.
[0046] The effective attenuation slope is obtained as follows:
[0047] When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be accelerated:
[0048] K i1 =K i0 +(K i-1 -K i0 )*N
[0049] When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be slowed down:
[0050] K i1 =K i0 +(K i0 -K i-1 )*N
[0051] Among them, K i1 Indicates the effective attenuation slope of the i-th pressure-sensitive reporting point information within the preset range, K i0 Indicates the attenuation slope of the i-th pressure-sensitive reporting point information confirmed within the preset range, K i-1 represents the effective attenuation slope of the previous pressure-sensitive point information of the i-th pressure-sensitive point information within the preset range, N represents the preset correction parameter, K i0 and K i-1 Both are negative, K i1 The absolute value is less than K i-1 The absolute value of .
[0052] Through the above slope adjustment, the pressure-sensitive point information with too fast pressure-sensitive attenuation speed can be slowed down, and the pressure-sensitive point information with too slow pressure-sensitive attenuation speed can be accelerated. The preset correction parameters corresponding to N are obtained through experimental tests during the factory production process. For example, one hundred thousand pressure-sensitive pens of a certain type of pressure-sensitive pen are produced in the same batch. First, several pressure-sensitive pens are selected from them to test the identity of the pressure-sensitive point information generated when rebounding under the same pressure. If the entire batch is close, one of them can be selected for experimental testing to confirm the correction parameters for preset. During the experimental test, according to the above processing method, the value of N is continuously adjusted, and the corresponding writing effect is observed until the writing effect meets the established requirements, and the corresponding N can be confirmed as the correction parameter of the batch. The correction parameters and the correction process in the previous text can be given to the pressure-sensitive pens of the same batch that can use the N value through firmware burning, wired or wireless distribution, etc. In the subsequent use of the pressure-sensitive pen, the unified pressure-sensitive point information of the pen lifting stage can be output according to the specific parameters and any embodiment of this scheme. When developers develop writing applications, different pressure-sensitive pens can be used with this solution to design pen tips directly based on the unified pressure-sensitive point information in the pen-lifting phase without studying the rebound characteristics of the pressure-sensitive pens.
[0053] Step S132: For the pressure-sensitive point information within the preset range, confirm the new pressure data as the target pressure data at the corresponding time coordinate according to the corresponding effective attenuation slope and the effective pressure data of the previous pressure-sensitive point information, until the target pressure data of 0 is obtained. The effective pressure data of the pressure-sensitive point information within the preset range is the corresponding target pressure data.
[0054] In this solution, what is ultimately achieved is to enable pressure-sensitive pens of different types and batches to achieve the same detection results in the pen-lifting stage. Corresponding to the situation described above where the rebound speed is too fast (the corresponding pressure data detected during the pen-lifting process is less), the pressure-sensitive pen may need to add new valid pressure data. In this case, after generating valid pressure data based on the last pressure data within the preset range, subsequent valid pressure data can continue to be generated with the same effective attenuation slope and detection cycle until the target pressure data of 0 is obtained, such as Figure 2 In the pressure change curve shown, the corresponding pen lifting stage is from C to G, and the pressure-sensitive point information within the preset range starts from D, where D can be left unprocessed. Specifically, see the definition of the preset range. Subsequently, E, F, and G are corrected to E`, F`, and G`, respectively. At this time, the actual detected pressure data has been processed, and H` is generated as the final valid pressure data (pressure data value is 0) with G` as the valid pressure data. Corresponding to the situation in the previous text where the rebound speed is too slow (more pressure data is detected during the corresponding pen lifting process), the pressure-sensitive pen may need to remove part of the detected pressure data. In this case, valid pressure data is generated once for the pressure data within the preset range until the target pressure data of 0 is obtained, and the subsequent unprocessed pressure data within the preset range is directly discarded.
[0055] Step S133: Generate target pressure point information according to the target pressure data.
[0056] In the pressure-sensing point information, in addition to the target pressure data, there can also be detection time data. For the target pressure data corrected according to the actual pressure data, the corresponding detection time data remains unchanged. For the target pressure data that is supplemented by slowing down the pressure attenuation rate, the detection time data is generated at intervals according to the preset detection period.
[0057] The pressure data processing method in the embodiment of the present application is implemented by a pressure-sensitive pen that completes pressure detection. In the pressure detection process corresponding to a touch operation, the pressure detection result is used for handwriting generation in an interactive intelligent device. Therefore, in the process of obtaining pressure point information in real time, a pressure data packet is sent according to a preset sending rule, and the pressure data packet is generated based on the pressure point information obtained in the most recent sending interval; specifically, for example, it is sent periodically, and a pressure data packet generated by several pressure point information in the most recent cycle (corresponding to a sending interval) is sent. For pressure point information that does not require correction, pressure data is directly generated and sent. For pressure point information that needs to be corrected, a pressure data packet is generated based on the target pressure point information, and is sent periodically at the corresponding sending time as the last pressure data packet of the current touch operation.
[0058] Sending on a periodic basis is an optional sending rule. In specific implementation, it can also be sent on a number of times, that is, after obtaining the target number of pressure-sensitive point information, it is sent once; of course, the sending of the target pressure-sensitive point information is a special sending case in the sending rules. The number of target pressure-sensitive point information may be the same as the target number, or it may be different from the target number. It is specifically confirmed by multiple tests of the pressure-sensitive pen when the pressure-sensitive pen is produced.
[0059] In the above method, the pressure-sensing point reporting information obtained by pressure-sensing detection of the touch operation is obtained in real time; the pressure change parameters of the pressure-sensing point reporting information within a preset range before the end of the current touch operation are confirmed, and the pressure-sensing point reporting information within the preset range all corresponds to the current touch operation; the corresponding pressure-sensing point reporting information within the preset range is corrected according to the preset correction parameters, and the target pressure-sensing point reporting information whose pressure change parameters meet the preset pressure attenuation process is obtained. By processing the pressure-sensitive point reporting information in the pen-lifting stage associated with the pen tip during the writing process, the pressure-sensitive point reporting information is directly corrected in the data generation stage of pressure detection, and the target pressure-sensitive point reporting information that meets the preset pressure attenuation process is obtained, so that pressure-sensitive pens of different batches or types can generate standardized pressure-sensitive point reporting information with the same pressure attenuation process in the pen-lifting stage, and the influence of the rebound characteristics in the pressure-sensitive point reporting information is removed. In the process of developing writing applications for corresponding pressure-sensitive pens, there is no need to consider the rebound characteristics of pressure-sensitive pens of different batches or types, and the development of writing applications can be quickly completed based on the standardized pressure-sensitive point reporting information, which saves manpower and material resources in the development process, improves development efficiency, and reduces development costs.
[0060] Figure 3 A schematic diagram of the structure of a pressure sensing data processing device provided by an embodiment of the present invention. Figure 3 The pressure sensing data processing device includes an information acquisition unit 210, a parameter confirmation unit 220 and an information correction unit 230.
[0061] Among them, the information acquisition unit 210 is used to obtain in real time the pressure-sensing point reporting information obtained by pressure-sensing detection of the touch operation; the parameter confirmation unit 220 is used to confirm the pressure change parameters of the pressure-sensing point reporting information within a preset range before the end of the current touch operation, and the pressure-sensing point reporting information within the preset range all corresponds to the current touch operation; the information correction unit 230 is used to correct the corresponding pressure-sensing point reporting information within the preset range according to the preset correction parameters, and obtain the target pressure-sensing point reporting information whose pressure change parameters meet the preset pressure attenuation process.
[0062] On the basis of the above embodiment, the pressure change parameter includes an attenuation slope, and the attenuation slope of the pressure-sensitive point reporting information is the slope of a line connecting the coordinate points corresponding to the previous pressure-sensitive point reporting information when the pressure data carried by each is mapped to form a coordinate point in the time-pressure coordinate system;
[0063] The information correction unit 230 includes:
[0064] The attenuation slope correction module is used to correct the attenuation slopes confirmed by the pressure-sensitive point information within the preset range in sequence according to the acquisition time sequence to obtain an effective attenuation slope. The correction is based on the attenuation slope confirmed by each pressure-sensitive point information, and is performed according to preset correction parameters and the effective attenuation slope corresponding to the previous pressure-sensitive point information;
[0065] The pressure data confirmation module is used to confirm the new pressure data as the target pressure data at the corresponding time coordinate for the pressure-sensitive point information within the preset range according to the corresponding effective attenuation slope and the effective pressure data of the previous pressure-sensitive point information, until the target pressure data of 0 is obtained, and the effective pressure data of the pressure-sensitive point information within the preset range is the corresponding target pressure data;
[0066] The reporting point information generation module is used to generate target pressure-sensitive reporting point information according to the target pressure data.
[0067] Based on the above embodiment, the effective attenuation slope is obtained by:
[0068] When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be accelerated:
[0069] K i1 =K i0 +(K i-1 -K i0 )*N
[0070] When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be slowed down:
[0071] K i1 =K i0 +(Ki0 -K i-1 )*N
[0072] Among them, K i1 Indicates the effective attenuation slope of the i-th pressure-sensitive reporting point information within the preset range, K i0 Indicates the attenuation slope of the i-th pressure-sensitive reporting point information confirmed within the preset range, K i-1 represents the effective attenuation slope of the previous pressure-sensitive point information of the i-th pressure-sensitive point information within the preset range, N represents the preset correction parameter, K i0 and K i-1 Both are negative, K i1 The absolute value is less than K i-1 The absolute value of .
[0073] Based on the above embodiment, the pressure sensing data processing device further includes:
[0074] A data sending unit, used to send a pressure data packet according to a preset sending rule in the process of obtaining the pressure-sensitive point reporting information in real time, the pressure data packet being generated according to the pressure-sensitive point reporting information obtained in the most recent sending interval;
[0075] The end data packet generating unit is used to generate a pressure data packet according to the target pressure sensing point reporting information as the last pressure data packet of the current touch operation.
[0076] The pressure-sensitive data processing device provided in the embodiment of the present invention is included in a pressure-sensitive pen and can be used to execute any of the pressure-sensitive data processing methods provided in the above embodiments, and has corresponding functions and beneficial effects.
[0077] It is worth noting that in the embodiment of the above-mentioned pressure-sensitive data processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0078] Figure 4 Schematic diagram of the structure of a pressure-sensitive pen provided by an embodiment of the present invention. Figure 4 As shown, the pressure-sensitive pen includes a processor 310 and a memory 320, and may also include an input device 330, an output device 340 and a communication device 350; the number of the processor 310 in the pressure-sensitive pen may be one or more, Figure 4 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330, the output device 340 and the communication device 350 in the pressure-sensitive pen can be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0079] The memory 320 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the pressure-sensitive data processing method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the pressure-sensitive pen by running the software programs, instructions and modules stored in the memory 320, that is, implements the above-mentioned pressure-sensitive data processing method.
[0080] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the pressure-sensitive pen, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the pressure-sensitive pen via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The input device 330 can be used to receive input digital or character information and generate key signal input related to user settings and function control of the pressure-sensitive pen. The output device 340 can include a display device such as a display screen for displaying power, working mode, etc.
[0082] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to perform relevant operations in the pressure-sensitive data processing method provided in any embodiment of the present application, and has corresponding functions and beneficial effects.
[0083] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0084] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0086] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0087] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0088] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A pressure sensing data processing method, characterized in that: include: Real-time acquisition of pressure point information obtained by pressure sensing of touch operation; Confirming the pressure change parameters of the pressure-sensitive point information within a preset range before the current touch operation ends, wherein the pressure-sensitive point information within the preset range is generated corresponding to the current touch operation; The corresponding pressure-sensing point information within the preset range is corrected according to the preset correction parameters to obtain the target pressure-sensing point information whose pressure change parameters satisfy the preset pressure-sensing attenuation process.
2. The pressure sensing data processing method according to claim 1, characterized in that: The pressure change parameter includes an attenuation slope. The attenuation slope of the pressure-sensitive point reporting information is the slope of a line connecting the coordinate points corresponding to the previous pressure-sensitive point reporting information when the pressure data carried by each pressure is mapped to form a coordinate point in the time-pressure coordinate system; The step of correcting the corresponding pressure-sensing point information within the preset range according to the preset correction parameters to obtain the target pressure-sensing point information whose pressure change parameters satisfy the preset pressure-sensing attenuation process includes: The attenuation slopes confirmed by the pressure-sensitive point information within the preset range are corrected in sequence according to the acquisition time sequence to obtain an effective attenuation slope, wherein the correction is based on the attenuation slope confirmed by each pressure-sensitive point information, and is performed according to preset correction parameters and the effective attenuation slope corresponding to the previous pressure-sensitive point information; For the pressure-sensitive point information within the preset range, new pressure data is confirmed as target pressure data at the corresponding time coordinate according to the corresponding effective attenuation slope and the effective pressure data of the previous pressure-sensitive point information, until the target pressure data of 0 is obtained, and the effective pressure data of the pressure-sensitive point information within the preset range is the corresponding target pressure data; Target pressure sensing point information is generated according to the target pressure data.
3. The pressure sensing data processing method according to claim 2, characterized in that: The effective attenuation slope is obtained as follows: When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be accelerated: K i1 =K i0 +(K i-1 -K i0 )*N When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be slowed down: K i1 =K i0 +(K i0 -K i-1 )*N Among them, K i1 Indicates the effective attenuation slope of the i-th pressure-sensitive reporting point information within the preset range, K i0 Indicates the attenuation slope of the i-th pressure-sensitive reporting point information confirmed within the preset range, K i-1 represents the effective attenuation slope of the previous pressure-sensitive point information of the i-th pressure-sensitive point information within the preset range, N represents the preset correction parameter, K i0 and K i-1 Both are negative, K i1 The absolute value is less than K i-1 The absolute value of .
4. The pressure sensing data processing method according to any one of claims 1 to 3, characterized in that: The preset range is a first preset number of pressure-sensing point information before the touch operation ends, or pressure-sensing point information in a pressure decreasing stage before the touch operation ends.
5. The pressure sensing data processing method according to any one of claims 1 to 3, characterized in that: Also includes: In the process of obtaining the pressure-sensitive point information in real time, a pressure data packet is sent according to a preset sending rule, wherein the pressure data packet is generated according to the pressure-sensitive point information obtained in the most recent sending interval; Correspondingly, after the corresponding pressure-sensing point information within the preset range is corrected according to the preset correction parameters to obtain the target pressure-sensing point information whose pressure change parameters satisfy the preset pressure-sensing attenuation process, the method further includes: A pressure data packet is generated according to the target pressure-sensing point reporting information as the last pressure data packet of the current touch operation.
6. A pressure-sensitive data processing device, characterized in that: include: An information acquisition unit, used to acquire in real time pressure-sensing point information obtained by performing pressure-sensing detection on a touch operation; A parameter confirmation unit, used to confirm the pressure change parameter of the pressure-sensitive point information within a preset range before the current touch operation ends, wherein the pressure-sensitive point information within the preset range is generated corresponding to the current touch operation; The information correction unit is used to correct the corresponding pressure-sensing point information within the preset range according to the preset correction parameters, so as to obtain the target pressure-sensing point information whose pressure change parameters satisfy the preset pressure-sensing attenuation process.
7. The pressure-sensitive data processing device according to claim 6, characterized in that: The pressure change parameter includes an attenuation slope. The attenuation slope of the pressure-sensitive point reporting information is the slope of a line connecting the coordinate points corresponding to the previous pressure-sensitive point reporting information when the pressure data carried by each pressure is mapped to form a coordinate point in the time-pressure coordinate system; The information correction unit comprises: An attenuation slope correction module is used to correct the attenuation slopes confirmed by the pressure-sensitive point information within the preset range in sequence according to the acquisition time sequence to obtain an effective attenuation slope, wherein the correction is based on the attenuation slope confirmed by each pressure-sensitive point information, and is performed according to preset correction parameters and the effective attenuation slope corresponding to the previous pressure-sensitive point information; A pressure data confirmation module is used to confirm new pressure data as target pressure data at a corresponding time coordinate for the pressure-sensitive point information within the preset range according to the corresponding effective attenuation slope and the effective pressure data of the previous pressure-sensitive point information, until the target pressure data of 0 is obtained, and the effective pressure data of the pressure-sensitive point information within the preset range is the corresponding target pressure data; The reporting point information generating module is used to generate target pressure-sensing reporting point information according to the target pressure data.
8. The pressure-sensitive data processing device according to claim 7, characterized in that: The effective attenuation slope is obtained as follows: When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be accelerated: K i1 =K i0 +(K i-1 -K i0 )*N When the pressure attenuation speed of the pressure-sensitive point information within the preset range needs to be slowed down: K i1 =K i0 +(K i0 -K i-1 )*N Among them, K i1 Indicates the effective attenuation slope of the i-th pressure-sensitive reporting point information within the preset range, K i0 Indicates the attenuation slope of the i-th pressure-sensitive reporting point information confirmed within the preset range, K i-1 represents the effective attenuation slope of the previous pressure-sensitive point information of the i-th pressure-sensitive point information within the preset range, N represents the preset correction parameter, K i0 and K i-1 Both are negative, K i1 The absolute value is less than K i-1 The absolute value of .
9. A pressure-sensitive pen, characterized in that: include: one or more processors; a memory for storing one or more computer programs; When the one or more computer programs are executed by the one or more processors, the pressure-sensitive pen implements the pressure-sensitive data processing method as described in any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the pressure sensing data processing method as described in any one of claims 1 to 5 is implemented.