Method for positioning handwriting position based on computer touchpad

By collecting touchpad contact parameters in real time and switching modes dynamically, combining least squares calibration and mean filtering algorithms, accurately positioning the handwriting starting point and fitting natural handwriting, the problem of inaccurate handwriting positioning of traditional touchpads is solved, and high-precision and natural and smooth handwriting input effect is achieved.

CN120045089AInactive Publication Date: 2025-05-27SHENZHEN YAMILA ELECTRONICS TECH CO LTD

Patent Information

Application Number
CN202510519158.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-05-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional touchpad is not positioned accurately in handwriting scenarios, is susceptible to environmental noise and temperature drift, and the coordinate mapping relationship does not consider nonlinear distortion compensation in complex display environments.

Method used

The touchpad contact parameters are collected in real time through the first pressure sensor, the cursor control mode and the handwriting positioning mode are dynamically switched, and the touchpad and screen coordinate mapping model is established using least squares dynamic calibration parameters. The handwriting start point is accurately positioned in combination with the mean filtering algorithm, and the number of Bezier curve control points is determined through curvature and velocity calculations in the handwriting fitting stage.

Benefits of technology

It realizes the precise positioning of the handwriting position of the touchpad, improves the accuracy and natural fluency of handwriting input, and is suitable for complex display environments and diverse usage scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045089A_ABST
    Figure CN120045089A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of touch pad handwriting positioning, and discloses a method for positioning a handwriting position based on a computer touch pad, and the method comprises the steps: S1, collecting related contact parameters of the touch pad in real time through a first pressure sensor, and dynamically switching a cursor control mode and a handwriting positioning mode; parameters such as contact duration, pressure values and click times are collected in real time through a pressure sensor matrix, cursor control and handwriting positioning modes are dynamically switched, a coordinate mapping model of the touchpad and a screen is established by adopting the least square dynamic calibration parameters, a handwriting starting point is accurately positioned in combination with a mean filtering algorithm, and in the handwriting fitting stage, the handwriting matching precision is improved. The number of Bezier curve control points is determined through curvature and speed calculation, track point coordinates are collected through a pressure sensor matrix, smooth handwriting is constructed, full-process control over handwriting input of the touch pad is achieved, and the method has the advantages of being intelligent in mode switching, high in positioning precision, natural and smooth in handwriting and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of touchpad handwriting positioning, and in particular to a method for positioning a handwriting position based on a computer touchpad. Background Art

[0002] With the lightweight development trend of smart terminal devices, laptops, as the core carrier of mobile office and life entertainment, are undergoing a deep evolution from physical buttons to touch technology in their input interaction methods. As a standard configuration of laptops, touchpads have evolved from early mechanical mouse replacement devices that only support single-point touch to multi-modal interaction platforms that integrate multi-touch, gesture recognition, pressure sensing and other functions. According to IDC's 2024 Global PC Market Report, the penetration rate of high-end touchpads with pressure sensing function in flagship models has exceeded 65%, indicating that users have put forward higher requirements for the interactive experience of touch devices.

[0003] In professional fields such as education and design, handwriting input has become a functional expansion direction that users urgently need due to its naturalness and efficiency. However, the functional migration of traditional touchpads to handwriting tablets faces multiple technical challenges: First, existing touchpads mostly use capacitive touch technology, and their coordinate positioning relies on the calculation of the capacitance change of the finger contact area and position. In handwriting scenarios, it is easily affected by factors such as environmental noise and temperature drift, resulting in track offset errors of more than ±2mm; in addition, the coordinate mapping relationship between the touchpad and the screen is usually based on a fixed scale scaling, without considering nonlinear distortion compensation in complex display environments such as curved screens and multi-screen expansion. Summary of the invention

[0004] In order to solve the problem in the prior art that the traditional touch pad is not accurate enough in locating the handwriting position, the present application provides a method for locating the handwriting position based on a computer touch pad.

[0005] In a first aspect, the present application provides a method for locating a handwriting position based on a computer touchpad, using the following technical solution: A method for locating a handwriting position based on a computer touchpad, the method comprising: S1, collecting relevant contact parameters of the touch panel in real time through the first pressure sensor, and dynamically switching the cursor control mode and the handwriting positioning mode; S2. After activating the handwriting positioning mode, press and hold the touchpad positioning button to activate the cursor control mode, and locate the handwriting starting point by analyzing the collected coordinates of multiple touch points; S3. During the handwriting process, the touchpad collects the handwriting trajectory and constructs the handwriting according to the algorithm fitting.

[0006] By adopting the above technical solution, the modes can be flexibly switched according to different user operations, and the handwriting position of the touch panel can be located, providing convenience for users to perform handwriting input on the touch panel.

[0007] Optionally, in step S1, the process of dynamically switching between the cursor control mode and the handwriting positioning mode includes: S11, collecting the contact time, number of clicks, pressure value and contact area of ​​the touch panel; S12, monitoring and analyzing the contact time, number of clicks, pressure value and contact area; S13, when the contact duration is greater than or equal to the preset first time period and the pressure value is greater than or equal to the preset pressure, switching to the handwriting positioning mode; When the number of clicks within the preset second time period is greater than or equal to the preset number and the contact area is less than or equal to the preset area, switching to the cursor control mode.

[0008] By adopting the above technical solution, the mode can be switched through comprehensive analysis of multiple contact parameters, making the mode switching more intelligent and accurate, and better adapting to the operating habits and actual usage scenarios of different users.

[0009] Optionally, in step S2, the process of locating the handwriting starting point includes: S21, collecting pressure distribution data on the touch panel through a first pressure sensor, analyzing the data in combination with the screen resolution, and establishing a model for mapping the touch panel coordinates to the screen coordinates; S22, activating the cursor control mode by pressing the lower left positioning button of the touch pad, obtaining the touch position on the touch pad, and mapping it to the screen coordinates according to the model; S23, processing the collected coordinates of multiple touch points by a mean filtering method to locate the handwriting starting point.

[0010] By adopting the above technical solution, the coordinate mapping model and mean filtering processing can be used to more accurately correspond the handwriting starting point on the touch panel to the screen, thereby improving the accuracy of handwriting positioning.

[0011] Optionally, in step S21, the process of establishing a touch panel coordinate mapping to a screen coordinate model includes: The above formulas are combined to establish a model for mapping touch panel coordinates to screen coordinates; in, are the touchpad coordinates, is the screen coordinate, , , , , , , , are the dynamic calibration parameters obtained by least squares.

[0012] By adopting the above technical solution, the least square calibration parameters can be used to make the coordinate mapping model more accurate, adapt to different screen resolutions and touch panel characteristics, and ensure high precision and stability of coordinate mapping.

[0013] Optionally, the process of constructing handwriting according to algorithm fitting includes: S31, collecting the coordinates of each track point on the touch panel through a first pressure sensor; S32, calculating the curvature and speed of each trajectory point except the first and last points; S33, bringing the curvature and speed of each trajectory point into the preset control point allocation rule to obtain the number of control points inserted near each trajectory point; S34, bringing the number of control points into the Bezier curve fitting algorithm, solving the coordinates of each control point by the least square method, and connecting the coordinates of each control point in sequence to generate a smooth curve.

[0014] By adopting the above technical solution, the curvature and speed of the coordinates of each regular point can be analyzed, and then appropriate control points can be inserted to make the handwriting more natural and smooth, closer to the real handwriting effect, and improve the quality of handwriting input.

[0015] Optionally, the process of obtaining the curvature of the trajectory point includes: By combining the above formulas, we can obtain The curvature of the trajectory points ; The coordinates of each trajectory point are , the coordinates of each adjacent trajectory point are equally spaced sampling, , is the coordinate pair parameter of the i-th trajectory point The first-order derivative of , is the coordinate pair parameter of the i-th trajectory point The second-order derivative value of .

[0016] By adopting the above technical solution, the curvature of each trajectory point can be accurately calculated, providing an accurate basis for the allocation of control points in the subsequent handwriting fitting process, which helps to improve the handwriting fitting quality.

[0017] Optionally, the process of obtaining the velocity of the trajectory point includes: The instantaneous speed when the i-th trajectory point is formed is obtained by calculating and analyzing the above formula .

[0018] By adopting the above technical solution, the instantaneous speed of each regular point can be obtained, and combined with the curvature, the dynamic characteristics of the handwriting process can be more comprehensively fed back, so that the handwriting fitting is more in line with the actual handwriting effect, and the handwriting effect is further optimized.

[0019] Optionally, a plurality of the first pressure sensors are provided and distributed in an array to form a pressure sensor matrix, and the pressure sensor matrix periodically performs self-calibration to maintain data accuracy.

[0020] By adopting the above technical solution, the pressure sensor matrix can improve the accuracy of data collected by the first pressure sensor, and regular self-calibration further ensures the accuracy and reliability of the collected touch panel contact parameters.

[0021] Optionally, a pressure sensing button is provided at the lower right of the touch panel, and the pressure sensing button is equipped with a second pressure sensor, and a corresponding pressure sensing threshold is preset. ,and ; The pressure value collected by the second pressure sensor Compare with the preset pressure sensing threshold; like , then a cancellation instruction is generated; like , a delete instruction is generated; like , a clear instruction is generated.

[0022] By adopting the above technical solution, pressure-sensitive keys and their corresponding command functions are added, providing users with a more convenient operation method during the handwriting process and improving the efficiency of handwriting input.

[0023] In a second aspect, the present application provides a storage medium, which adopts the following technical solution: A storage medium stores a program of any one of the above methods for locating handwriting positions based on a computer touch panel.

[0024] In summary, the present application includes at least one of the following beneficial technical effects: (1) The present invention uses a pressure sensor matrix to collect parameters such as contact duration, pressure value, number of clicks, etc. in real time, dynamically switches between cursor control and handwriting positioning modes, uses least squares dynamic calibration parameters to establish a touchpad and screen coordinate mapping model, combines a mean filter algorithm to accurately locate the handwriting starting point, and in the handwriting fitting stage, determines the number of Bezier curve control points by calculating the curvature and speed, uses a pressure sensor matrix to collect trajectory point coordinates and constructs a smooth handwriting, and integrates pressure sensing buttons to realize functions such as undo and delete. Data accuracy is ensured through regular self-calibration, and the full process control of touchpad handwriting input is realized. It has the advantages of intelligent mode switching, high positioning accuracy, and natural and smooth handwriting, and is suitable for handwriting interaction scenarios of mobile devices such as laptops.

[0025] (2) The present invention collects parameters such as the contact time, number of clicks, pressure value and contact area of ​​the touch panel, monitors and analyzes these parameters, and switches the cursor control mode and handwriting positioning mode according to different parameter threshold conditions, thereby making the computer touch panel input mode switching more intelligent and accurate, adapting to the operating habits of different users and diversified usage scenarios, and improving the user experience.

[0026] (3) The present invention establishes a coordinate mapping model by collecting touchpad pressure distribution data and combining it with screen resolution, uses the lower left positioning button of the touchpad to activate the cursor control mode to obtain the touch position and map it to the screen, and then uses mean filtering to process the touch point coordinates to determine the handwriting starting point, thereby improving the accuracy of handwriting starting point positioning, ensuring that the handwriting input can accurately correspond to the corresponding position on the screen, and is applicable to screens of any resolution.

[0027] (4) The present invention collects the coordinates of the track points on the touch panel, calculates the curvature and speed of the track points except the first and last points, determines the number of inserted control points according to preset rules, brings them into the Bezier curve fitting algorithm and uses the least squares method to solve the control point coordinates to generate smooth handwriting, thereby making the handwriting more natural and smooth, closer to the real handwriting effect, and improving the quality of handwriting input. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 The present invention provides a flow chart of the steps of a method for locating a handwriting position based on a computer touch panel. DETAILED DESCRIPTION

[0029] Embodiments of the present application are described in detail below, examples of which are shown in the accompanying drawings.

[0030] In the description of this specification, the description with reference to the terms "certain embodiments", "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0031] The present application embodiment discloses a method for locating a handwriting position based on a computer touch pad, referring to Figure 1 , the method comprising: S1. Collect relevant contact parameters of the touch panel in real time through the first pressure sensor. These parameters include contact force, duration, area and other information, which are used to dynamically switch the cursor control mode and the handwriting positioning mode to match different operation requirements of the user; S2. After activating the handwriting positioning mode, press and hold the touchpad positioning button to activate the cursor control mode, and analyze and process the collected coordinates of multiple touch points to locate the handwriting starting point, providing an accurate starting basis for subsequent handwriting input; S3. During the handwriting process, the touchpad collects the handwriting trajectory, which is composed of a series of continuous touch points. The handwriting is constructed according to the algorithm fitting, making the handwriting appear natural and smooth.

[0032] Through the above technical scheme, this embodiment provides a method for locating the handwriting position based on a computer touchpad. The method collects the touchpad contact parameters through a first pressure sensor to dynamically switch the cursor control and handwriting positioning modes. In the handwriting positioning mode, press and hold the positioning button to activate the cursor control mode and analyze the touch point coordinates to determine the handwriting starting point position, so as to achieve a seamless connection with the handwriting end point position of the previous stroke. Finally, the handwriting trajectory is collected to fit the handwriting, thereby achieving the ability to flexibly switch the computer touchpad input mode according to different operations, facilitating the positioning of the handwriting position on the touchpad, and providing convenience for users to perform handwriting input on the touchpad.

[0033] In one embodiment, in step S1, the process of dynamically switching between the cursor control mode and the handwriting positioning mode includes: S11, collecting the contact time, number of clicks, pressure value and contact area of ​​the touch panel, which are the key basis for judging mode switching; S12, monitoring and analyzing the contact duration, number of clicks, pressure value and contact area, and evaluating these parameters according to preset rules to determine whether to switch modes; S13, when the contact duration is greater than or equal to a preset first time period and the pressure value is greater than or equal to a preset pressure, it indicates that the user may have a handwriting intention, and the mode is switched to handwriting positioning mode. The preset first time period can be obtained by statistically analyzing the pressing duration before a large number of users' normal handwriting operations, and its value is generally 1-2 seconds. The preset pressure can be determined by testing the response of the touchpad under different forces and combining the user's comfortable pressing force, and is generally in the range of 0.3-0.5 Newtons; When the number of clicks within the preset second time period is greater than or equal to the preset number and the contact area is less than or equal to the preset area, it is inferred that the user wants to control the cursor and switch to the cursor control mode. The preset second time period can be set according to the user's habitual time for quick operations, which is generally 0.1-1 seconds. The preset number of times can be determined by analyzing the user's common frequency of quick click operations, which is usually 2 times. The preset area can be obtained based on the contact size of the finger when clicking normally, which is generally less than 1 square centimeter.

[0034] Through the above technical solution, this embodiment provides a mode switching method based on multi-parameter monitoring. The method can collect parameters such as the contact time, number of clicks, pressure value and contact area of ​​the touch panel, monitor and analyze these parameters, and switch the cursor control mode and handwriting positioning mode according to different parameter threshold conditions, thereby making the computer touchpad input mode switching more intelligent and accurate, adapting to the operating habits of different users and diverse usage scenarios, and improving the user experience.

[0035] In one embodiment, in step S2, the process of locating the handwriting starting point includes: S21, collecting pressure distribution data on the touch panel through the first pressure sensor, the data can reflect the position distribution of the finger on the touch panel, and analyzing it in combination with the screen resolution to establish a model for mapping the touch panel coordinates to the screen coordinates, so as to achieve accurate correspondence between the touch panel and the screen position; S22, activating the cursor control mode by pressing the lower left positioning button of the touchpad, obtaining the touch position on the touchpad, mapping it to screen coordinates according to the established model, and determining the corresponding position on the screen; S23. Process the collected coordinates of multiple touch points by using a mean filtering method to remove noise interference and accurately locate the handwriting starting point.

[0036] Through the above technical scheme, this embodiment provides a method for locating the handwriting starting point based on coordinate mapping and filtering processing. A coordinate mapping model is established by collecting touch panel pressure distribution data and combining it with the screen resolution. The cursor control mode is activated by using the lower left positioning button of the touch panel to obtain the touch position and map it to the screen. The touch point coordinates are then processed by mean filtering to determine the handwriting starting point, thereby improving the accuracy of handwriting starting point positioning, ensuring that the handwriting input can accurately correspond to the corresponding position on the screen, and can be applied to screens of any resolution.

[0037] In one embodiment, in step S21, the process of establishing a touch panel coordinate mapping to a screen coordinate model includes: The above formulas are combined to establish a model for mapping touch panel coordinates to screen coordinates; in, is the touch panel coordinate, which can be obtained by collecting data and analyzing the first pressure sensor built into the touch panel. is the screen coordinate, which can be obtained by calculating and converting using the above formula. , , , , , , , To dynamically calibrate parameters through least squares, multiple known corresponding points can be selected on the touchpad and screen, such as four corner points and a center point on the touchpad, and the touchpad coordinates corresponding to these points can be recorded. And their corresponding screen coordinates on the screen , and then use the least squares method to fit these data to get , , , , , , , And as the touchpad and screen usage changes, you can also recalibrate regularly to ensure the accuracy of the parameters.

[0038] Through the above technical solution, this embodiment provides a method for establishing a coordinate mapping model based on least squares calibration. By combining the above-mentioned related formulas, the least squares dynamic calibration parameters are used to construct a mapping model from touch panel coordinates to screen coordinates, thereby making the coordinate mapping model more accurate and adaptable to different screen resolutions and touch panel characteristics, thereby ensuring high precision and stability of coordinate mapping.

[0039] In one embodiment, the process of constructing handwriting according to algorithm fitting includes: S31, collecting the coordinates of each track point on the touch panel through a first pressure sensor, and these coordinates record the movement path of the handwriting; S32, calculating the curvature and speed of each track point except the first and last points, wherein the curvature reflects the bending degree of the track, and the speed reflects the change in the speed of writing; S33, bringing the curvature and speed of each trajectory point into the preset control point allocation rule, and determining the number of control points to be inserted near each trajectory point according to the trajectory characteristics, so as to better fit the handwriting. The preset control point allocation rule can be formulated by analyzing a large number of handwritings of different styles and summarizing the relationship between the curvature and speed and the number of control points. For example, when the curvature is large and the speed is slow, more control points can be allocated to fit the curve more accurately. Generally, the number of allocated control points is controlled to be 3-7. S34, bringing the number of control points into the Bezier curve fitting algorithm, solving the coordinates of each control point by the least square method, and connecting the coordinates of each control point in sequence to generate a smooth curve, so that the handwriting is more natural and smooth.

[0040] Through the above technical scheme, this embodiment provides a handwriting fitting method based on trajectory features, which collects the coordinates of the trajectory points on the touch panel, calculates the curvature and speed of the trajectory points except the first and last points, determines the number of inserted control points according to preset rules, brings them into the Bezier curve fitting algorithm and uses the least squares method to solve the control point coordinates to generate smooth handwriting, thereby making the handwritten handwriting more natural and smooth, closer to the real handwriting effect, and improving the quality of handwriting input.

[0041] In one embodiment, the process of obtaining the curvature of the trajectory point includes: By combining the above formulas, we can obtain The curvature of the trajectory points ; The coordinates of each trajectory point are , the coordinates of each adjacent trajectory point are equally spaced sampling, Generally, it takes 0.01-0.1 seconds. , is the coordinate pair parameter of the i-th trajectory point The first-order derivative value reflects the coordinates with the parameter The rate of change of is the direction of the handwriting speed at this trajectory point. , is the coordinate pair parameter of the i-th trajectory point The second-order derivative value reflects the change of the velocity change rate, which is the relevant information of handwriting acceleration.

[0042] Through the above technical scheme, this embodiment provides a curvature calculation method based on the derivative of the trajectory point. By combining the above-mentioned related formulas, the curvature of the trajectory point is calculated using the trajectory point coordinates and their first-order and second-order derivative values. In this way, the curvature of the trajectory point can be accurately calculated, providing an accurate basis for the allocation of control points in the subsequent handwriting fitting process, which helps to improve the quality of handwriting fitting.

[0043] In one embodiment, the process of obtaining the velocity of the trajectory point includes: The instantaneous speed when the i-th trajectory point is formed is obtained by calculating and analyzing the above formula , instantaneous speed It reflects the writing speed at the i-th trajectory point during the writing process. Combined with the curvature, it can more comprehensively describe the handwriting trajectory characteristics.

[0044] Through the above technical solution, this embodiment provides a method for calculating the velocity of a trajectory point based on a time interval. The instantaneous velocity when the i-th trajectory point is formed can be calculated by the above formula. Combined with the curvature, it can more comprehensively reflect the dynamic characteristics of handwriting, make the handwriting fitting more consistent with the actual handwriting situation, and further optimize the handwriting effect. In one embodiment, a plurality of the first pressure sensors are provided and distributed in an array to form a pressure sensor matrix. The matrix can comprehensively and meticulously collect pressure information on the touch panel, and can analyze the pressure information to obtain the coordinates of each track point on the touch panel. The pressure sensor matrix periodically performs self-calibration to maintain data accuracy and eliminate data errors caused by environmental changes, device aging and other factors. The calibration period can be preset, generally determined based on the performance of the sensor and the use environment, for example, calibration is performed every 10-20 hours of use.

[0045] Through the above technical scheme, this embodiment provides a pressure sensor matrix self-calibration method, the first pressure sensors are distributed in an array to form a pressure sensor matrix, and the matrix periodically performs self-calibration to maintain data accuracy. The self-calibration function of the pressure sensor matrix ensures the accuracy and reliability of the collected touch panel contact parameters, thereby ensuring the stable operation of the entire handwriting positioning method. Among them, the technology of obtaining the coordinates of the touch panel trajectory points through pressure sensor matrix analysis belongs to the prior art and will not be elaborated here.

[0046] In one embodiment, a pressure sensing button is provided at the lower right of the touch panel, and the pressure sensing button is equipped with a second pressure sensor, and a corresponding pressure sensing threshold is preset. ,and ; The pressure value collected by the second pressure sensor Compare with the preset pressure sensing threshold; like , then an undo instruction is generated, allowing the user to undo the previous operation; like , a delete command is generated to delete the current input content; like , a clear instruction is generated to clear all handwritten content; in, These thresholds can be obtained by testing and analyzing different operating force requirements, such as Can be set to 0.2N, Can be set to 0.4N, Can be set to 0.6 Newton.

[0047] Through the above technical scheme, this embodiment provides a method for generating instructions based on pressure-sensing buttons. A pressure-sensing button is set at the lower right corner of the touchpad, and a second pressure sensor is built in and a pressure-sensing threshold range is preset. The collected pressure value is compared with the threshold to generate undo, delete, and clear instructions. This can provide users with a more convenient operation method during the handwriting process, and can quickly perform undo, delete, clear and other operations, thereby improving the efficiency of handwriting input.

[0048] The present application proposes a method for locating the handwriting position based on a computer touchpad. The method collects parameters such as contact duration, pressure value, and number of clicks in real time through a pressure sensor matrix, dynamically switches between cursor control and handwriting positioning modes, and uses least squares dynamic calibration parameters to establish a touchpad and screen coordinate mapping model. The handwriting starting point is accurately located in combination with a mean filtering algorithm. In the handwriting fitting stage, the number of Bezier curve control points is determined by curvature and speed calculations. The pressure sensor matrix is ​​used to collect trajectory point coordinates and construct smooth handwriting. At the same time, pressure sensing buttons are integrated to realize functions such as undo and delete. Data accuracy is ensured through regular self-calibration, and full-process control of touchpad handwriting input is realized. The method has the advantages of intelligent mode switching, high positioning accuracy, and natural and smooth handwriting. It is suitable for handwriting interaction scenarios on mobile devices such as laptops.

[0049] The embodiment of the present application further discloses a storage medium storing a program of any one of the above-mentioned methods for locating a handwriting position based on a computer touchpad.

[0050] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for locating handwriting position based on a computer touchpad, characterized in that: The method comprises: S1, collecting relevant contact parameters of the touch panel in real time through the first pressure sensor, and dynamically switching the cursor control mode and the handwriting positioning mode; S2. After activating the handwriting positioning mode, press and hold the touchpad positioning button to activate the cursor control mode, and locate the handwriting starting point by analyzing the collected coordinates of multiple touch points; S3. During the handwriting process, the touchpad collects the handwriting trajectory and constructs the handwriting according to the algorithm fitting.

2. A method for locating handwriting position based on a computer touchpad according to claim 1, characterized in that: In step S1, the process of dynamically switching between the cursor control mode and the handwriting positioning mode includes: S11, collecting the contact time, number of clicks, pressure value and contact area of ​​the touch panel; S12, monitoring and analyzing the contact time, number of clicks, pressure value and contact area; S13, when the contact duration is greater than or equal to the preset first time period and the pressure value is greater than or equal to the preset pressure, switching to the handwriting positioning mode; When the number of clicks within the preset second time period is greater than or equal to the preset number and the contact area is less than or equal to the preset area, switching to the cursor control mode.

3. The method for locating handwriting position based on a computer touchpad according to claim 1, characterized in that: In step S2, the process of locating the handwriting starting point includes: S21, collecting pressure distribution data on the touch panel through a first pressure sensor, analyzing the data in combination with the screen resolution, and establishing a model for mapping the touch panel coordinates to the screen coordinates; S22, activating the cursor control mode by pressing the lower left positioning button of the touch pad, obtaining the touch position on the touch pad, and mapping it to the screen coordinates according to the model; S23, processing the collected coordinates of multiple touch points by a mean filtering method to locate the handwriting starting point.

4. The method for locating handwriting position based on a computer touchpad according to claim 3, characterized in that: In step S21, the process of establishing a touch panel coordinate mapping to a screen coordinate model includes: The above formulas are combined to establish a model for mapping touch panel coordinates to screen coordinates; in, are the touchpad coordinates, is the screen coordinate, , , , , , , , are the dynamic calibration parameters obtained by least squares.

5. The method for locating handwriting position based on a computer touchpad according to claim 4, characterized in that: The process of constructing handwriting according to algorithm fitting includes: S31, collecting the coordinates of each track point on the touch panel through a first pressure sensor; S32, calculating the curvature and speed of each trajectory point except the first and last points; S33, bringing the curvature and speed of each trajectory point into the preset control point allocation rule to obtain the number of control points inserted near each trajectory point; S34, bringing the number of control points into the Bezier curve fitting algorithm, solving the coordinates of each control point by the least square method, and connecting the coordinates of each control point in sequence to generate a smooth curve.

6. The method for locating handwriting position based on a computer touchpad according to claim 5, characterized in that: The process of obtaining the curvature of the trajectory point includes: By combining the above formulas, we can obtain The curvature of the trajectory points ; The coordinates of each trajectory point are , the coordinates of each adjacent trajectory point are equally spaced sampling, , is the coordinate pair parameter of the i-th trajectory point The first-order derivative of , is the coordinate pair parameter of the i-th trajectory point The second-order derivative value of .

7. The method for locating handwriting position based on a computer touchpad according to claim 6, characterized in that: The process of obtaining the velocity of the trajectory point includes: The instantaneous speed when the i-th trajectory point is formed is obtained by calculating and analyzing the above formula .

8. The method for locating handwriting position based on a computer touchpad according to claim 7, characterized in that: There are a plurality of first pressure sensors, which are distributed in an array to form a pressure sensor matrix. The pressure sensor matrix periodically performs self-calibration to maintain data accuracy.

9. The method for locating handwriting position based on a computer touch panel according to claim 8, characterized in that: The touch panel is provided with a pressure sensing button at the lower right corner, wherein the pressure sensing button is equipped with a second pressure sensor and a corresponding pressure sensing threshold is preset. ,and ; The pressure value collected by the second pressure sensor Compare with the preset pressure sensing threshold; like , a cancellation instruction is generated; like , a delete instruction is generated; like , a clear instruction is generated.

10. A storage medium, characterized in that: A program for locating a handwriting position based on a computer touch panel as described in any one of claims 1 to 9 is stored.

Citation Information

Patent Citations

  • Input apparatus, input mode switching method and computer apparatus

    CN104571909A

  • Handwriting real-time restoration method integrating deep learning and filtering

    CN119068496A

  • A writing trajectory generation method, device, equipment and medium based on smart pen

    CN119739300A

  • Input apparatus

    JP2018085046A

Cited By

  • Projection screen and self-adaptive reverse control method for intelligent box

    CN120812324A