Radar touch point active prediction method and system

文档序号:152766 发布日期:2021-10-26 浏览:20次 中文

阅读说明:本技术 一种雷达触摸点主动预测方法及系统 (Radar touch point active prediction method and system ) 是由 方鸿亮 白金涛 陈哲祥 于 2021-06-20 设计创作,主要内容包括:本发明提出了一种雷达触摸点主动预测方法及系统,涉及触控领域。一种雷达触摸点主动预测方法包括:记录触摸区域滑动的滑动点所有位置;计算消息从扫描到识别的滞后时间;根据滞后时间计算出滞后帧数;根据预设公式计算出修正值;根据记录的滑动点,获取到修正值,通过已知任一组数据反推待整定参数的值,并进行误差最小化计算;计算得出的待整定参数值代入预设公式算出当前帧的预测帧所处位置。其能够采用PID控制算法,考虑到本系统对实时性要求较高,去掉积分项,算出当前帧的预测帧所处位置。此外本发明还提出了一种雷达触摸点主动预测系统。(The invention provides a radar touch point active prediction method and system, and relates to the field of touch control. The active prediction method for the radar touch points comprises the following steps: recording all positions of sliding points of the sliding of the touch area; calculating a lag time of the message from scanning to recognition; calculating the number of delay frames according to the delay time; calculating a correction value according to a preset formula; acquiring a correction value according to the recorded sliding point, reversely deducing the value of the parameter to be set through any known group of data, and performing error minimization calculation; and substituting the calculated parameter value to be set into a preset formula to calculate the position of the prediction frame of the current frame. The PID control algorithm can be adopted, the integral term is removed and the position of the prediction frame of the current frame is calculated in consideration of high real-time requirement of the system. In addition, the invention also provides a radar touch point active prediction system.)

1. A radar touch point active prediction method is characterized by comprising the following steps:

recording all positions of sliding points of the sliding of the touch area;

calculating a lag time of the message from scanning to recognition;

calculating the number of delay frames according to the delay time;

calculating a correction value according to a preset formula;

acquiring a correction value according to the recorded sliding point, reversely deducing the value of the parameter to be set through any known group of data, and performing error minimization calculation;

and substituting the calculated parameter value to be set into a preset formula to calculate the position of the prediction frame of the current frame.

2. The active radar touch point prediction method of claim 1, wherein the calculating the correction value according to the predetermined formula comprises:

δu=a*V0+b*δV

wherein, δ u is a correction value, V0 is a current speed value, δ V is a difference value between the current speed and a previous frame speed, and a and b are parameters to be set.

3. The active prediction method for radar touch points according to claim 1, wherein the obtaining of the correction value according to the recorded sliding points, the back-deriving the value of the parameter to be set by knowing any one set of data, and performing the error minimization meter comprises:

and reversely deducing the parameter value to be set through a group of known data according to the correction value, the current speed value, the difference value between the current speed and the previous frame speed, and performing error minimization calculation.

4. The active prediction method for radar touch points according to claim 1, further comprising, before recording all positions of the sliding points of the sliding of the touch area:

and acquiring data when no touch occurs, optimizing the data to obtain reference data, acquiring real-time sliding points, comparing the real-time sliding points with the reference data, and searching for a touch area.

5. The active prediction method for radar touch points according to claim 4, further comprising:

and performing clustering division on the sliding point region according to the real-time sliding points, respectively fitting two adjacent different clusters according to the descending trend of the relative direction to respectively obtain the clusters after correction, and calculating corresponding sliding point coordinates according to the clusters after correction.

6. The active prediction method for radar touch points according to claim 5, wherein the classifying the sliding point regions according to the real-time sliding points comprises:

and taking a central unit as a center of the cluster, searching the periphery, and bringing the units with the real-time induction quantity around the central unit larger than a preset threshold value and smaller than the real-time induction quantity of the central unit into the cluster.

7. The active prediction method for radar touch points according to claim 6, further comprising:

and searching the cells which are included in the clustering as reference cells to the surrounding, and including the cells of which the real-time induction quantity is larger than a preset threshold value and smaller than the real-time induction quantity of the reference cells in the clustering until no cells of which the real-time induction quantity is larger than the preset threshold value and smaller than the real-time induction quantity of the reference cells exist around the cells in the clustering.

8. A radar touch point active prediction system, comprising:

the recording module is used for recording all the positions of sliding points sliding in the touch area;

a first calculation module for calculating a lag time from scanning to recognition of the message;

the second calculation module is used for calculating the number of the lag frames according to the lag time;

the third calculation module is used for calculating a correction value according to a preset formula;

the fourth calculation module is used for acquiring a correction value according to the recorded sliding point, reversely deducing the value of the parameter to be set through any known group of data, and performing error minimization calculation;

and the output module is used for substituting the calculated parameter value to be set into a preset formula to calculate the position of the prediction frame of the current frame.

9. The active radar touch point prediction system of claim 8, comprising:

at least one memory for storing computer instructions;

at least one processor in communication with the memory, wherein the at least one processor, when executing the computer instructions, causes the system to perform: the device comprises a recording module, a first calculating module, a second calculating module, a third calculating module, a fourth calculating module and an output module.

10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.

Technical Field

The invention relates to the field of touch control, in particular to a radar touch point active prediction method and system.

Background

The capacitive touch screen is widely applied to various human-computer interaction systems, and provides great convenience for people to operate various complex electronic devices. The capacitive touch screen uses the induction capacitors arranged below the screen, the induction capacitance values are changed by pressing objects such as fingers, the obtained capacitance values are transmitted to the chip to be processed, the positions of touch points are obtained, and the operations such as clicking and line drawing are realized by uninterruptedly obtaining the positions of the touch points.

The touch point is identified from scanning to receiving, so that time lag exists, and the lag effect is more obvious for network transceiving. Active prediction can be performed according to historical speed, and hysteresis in time is counteracted. The hysteresis value cannot be offset accurately by simply weighting the speed and the hysteresis time.

Disclosure of Invention

The invention aims to provide a radar touch point active prediction method which can adopt a PID (proportion integration differentiation) control algorithm, takes the high requirement of the system on real-time into consideration, removes an integral term and calculates the position of a prediction frame of a current frame.

Another object of the present invention is to provide an active prediction system for radar touch points, which can operate an active prediction method for radar touch points.

The embodiment of the invention is realized by the following steps:

in a first aspect, an embodiment of the present application provides a radar touch point active prediction method, which includes recording all positions of a sliding point where a touch area slides; calculating a lag time of the message from scanning to recognition; calculating the number of delay frames according to the delay time; calculating a correction value according to a preset formula; acquiring a correction value according to the recorded sliding point, reversely deducing the value of the parameter to be set through any known group of data, and performing error minimization calculation; and substituting the calculated parameter value to be set into a preset formula to calculate the position of the prediction frame of the current frame.

In some embodiments of the present invention, the calculating the correction value according to the preset formula includes:

δu=a*V0+b*δV

wherein, δ u is a correction value, V0 is a current speed value, δ V is a difference value between the current speed and a previous frame speed, and a and b are parameters to be set.

In some embodiments of the present invention, the obtaining the correction value according to the recorded sliding point, performing back-estimation on the value of the parameter to be set by knowing any one group of data, and performing the error minimization meter includes: and reversely deducing the parameter value to be set through a group of known data according to the correction value, the current speed value, the difference value between the current speed and the previous frame speed, and performing error minimization calculation.

In some embodiments of the present invention, before recording all positions of the sliding point of the sliding of the touch area, the method further includes: and acquiring data when no touch occurs, optimizing the data to obtain reference data, acquiring real-time sliding points, comparing the real-time sliding points with the reference data, and searching for a touch area.

In some embodiments of the present invention, the foregoing further includes performing cluster division on the sliding point region according to the real-time sliding point, performing fitting respectively according to a downward trend in the relative direction for two adjacent different clusters, respectively obtaining corrected clusters, and calculating corresponding sliding point coordinates according to the corrected clusters.

In some embodiments of the present invention, the classifying the sliding point regions according to the real-time sliding points includes: and taking a central unit as a center of the cluster, searching the periphery, and bringing the units with the real-time induction quantity around the central unit larger than a preset threshold value and smaller than the real-time induction quantity of the central unit into the cluster.

In some embodiments of the present invention, the method further includes taking the unit included in the cluster as a reference unit to search around, and including the unit whose real-time sensing amount around the reference unit is greater than the preset threshold and smaller than the real-time sensing amount of the reference unit into the cluster until no unit whose real-time sensing amount is greater than the preset threshold and smaller than the real-time sensing amount of the reference unit exists around the unit included in the cluster.

In a second aspect, an embodiment of the present application provides a radar touch point active prediction system, which includes a recording module, configured to record all positions of a sliding point where a touch area slides; a first calculation module for calculating a lag time from scanning to recognition of the message; the second calculation module is used for calculating the number of the lag frames according to the lag time; the third calculation module is used for calculating a correction value according to a preset formula; the fourth calculation module is used for acquiring a correction value according to the recorded sliding point, reversely deducing the value of the parameter to be set through any known group of data, and performing error minimization calculation; and the output module is used for substituting the calculated parameter value to be set into a preset formula to calculate the position of the prediction frame of the current frame.

In some embodiments of the invention, the above includes: at least one memory for storing computer instructions; at least one processor in communication with the memory, wherein the at least one processor, when executing the computer instructions, causes the system to: the device comprises a recording module, a first calculating module, a second calculating module, a third calculating module, a fourth calculating module and an output module.

In a third aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a method such as any one of radar touch point active prediction methods.

Compared with the prior art, the embodiment of the invention has at least the following advantages or beneficial effects:

the method can adopt a PID (proportion, integral and differential) control algorithm, and the integral term is removed to calculate the position of the predicted frame of the current frame in consideration of the high requirement of the system on real-time property. And a touch point correction method based on an aggregation algorithm can be used for correcting two sliding points which are touched and close at the same time in an aggregation and fitting mode, so that more accurate data can be provided for the coordinate calculation of the sliding points, and the error of the final coordinate calculation can be reduced.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

Fig. 1 is a schematic diagram illustrating steps of an active prediction method for radar touch points according to an embodiment of the present invention;

fig. 2 is a detailed step diagram of an active radar touch point prediction method according to an embodiment of the present invention;

FIG. 3 is a schematic diagram of an active radar touch point prediction system according to an embodiment of the present invention;

fig. 4 is an electronic device according to an embodiment of the present invention.

Icon: 10-a recording module; 20-a first calculation module; 30-a second calculation module; 40-a third calculation module; 50-a fourth calculation module; 60-an output module; 101-a memory; 102-a processor; 103-communication interface.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.

Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

It is to be noted that the term "comprises," "comprising," or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.

Example 1

Referring to fig. 1, fig. 1 is a schematic diagram illustrating steps of an active radar touch point prediction method according to an embodiment of the present invention, which is shown as follows:

step S100, recording all positions of sliding points of the sliding of the touch area;

in some embodiments, the touch area is slid multiple times, and all positions of the sliding points of the entire process are recorded.

Step S110, calculating lag time from scanning to recognition of the message;

step S120, calculating a lag frame number according to the lag time;

in some embodiments, the lag k frame number is calculated from time, i.e. when the nth point is acquired, n + k frames have actually been touched.

Step S130, calculating a correction value according to a preset formula;

in some embodiments, the predetermined formula is:

δu=a*V0+b*δV

wherein, δ u is a correction value, V0 is a current speed value, δ V is a difference value between the current speed and a previous frame speed, and a and b are parameters to be set.

Step S140, acquiring a correction value according to the recorded sliding point, reversely deducing the value of the parameter to be set through any known group of data, and performing error minimization calculation;

in some embodiments, from the recorded sliding points, the value of δ u (n + k point minus n point) may be obtained, and V0, δ V may be calculated. That is, the values of the parameters a and b to be set can be back-deduced by knowing a set of data, and error minimization calculation is performed.

And S150, substituting the calculated parameter value to be set into a preset formula to calculate the position of the prediction frame of the current frame.

In some embodiments, the calculated values of the parameters a and b to be set are substituted into step S130, so that the position of the predicted frame of the current frame can be calculated.

Example 2

Referring to fig. 2, fig. 2 is a detailed step diagram of a radar touch point active prediction method according to an embodiment of the present invention, which is shown as follows:

and S200, acquiring data when no touch occurs, optimizing the data to obtain reference data, acquiring real-time sliding points, comparing the real-time sliding points with the reference data, and searching for a touch area.

And step S210, performing clustering division on the sliding point region according to the real-time sliding points, respectively fitting two adjacent different clusters according to the descending trend of the relative direction to respectively obtain the clusters after correction, and calculating corresponding sliding point coordinates according to the clusters after correction.

Step S220, a central unit is used as a center of the cluster, searching is carried out to the periphery, and the units with the real-time induction quantity around the central unit larger than a preset threshold value and smaller than the real-time induction quantity of the central unit are brought into the cluster.

And step S230, searching the cells included in the clustering as reference cells, and including the cells with the real-time induction quantity around the reference cells larger than a preset threshold value and smaller than the real-time induction quantity of the reference cells in the clustering until no cells with the real-time induction quantity larger than the preset threshold value and smaller than the real-time induction quantity of the reference cells exist around the clustered cells.

In some embodiments, data when no touch occurs is collected and optimized to obtain reference data; collecting real-time induction quantity, comparing the real-time induction quantity with reference data, and searching a sliding point area; according to the real-time induction quantity, carrying out clustering division on the sliding point region; respectively fitting two adjacent different clusters according to the descending trend of the relative direction to respectively obtain the modified clusters; and calculating corresponding sliding point coordinates according to the corrected clustering.

In some embodiments, data when no sliding occurs is collected, and as a preferred embodiment, multiple sampling and continuous optimization can be performed to obtain the reference data.

In some embodiments, when a sliding occurs, a real-time induction quantity is collected, the real-time induction quantity is compared with reference data and calculated, a sliding point area is searched, and when a touch occurs, the real-time induction quantity of the sliding point area is changed more greatly than the reference data.

In some embodiments, the performing cluster division on the sliding point region according to the real-time induction quantity specifically includes: a unit for detecting that the real-time induction quantity is larger than a preset threshold value is used as a central unit of the sliding point area; taking a central unit as a center of the cluster, searching the periphery, and incorporating the units with the real-time induction quantity around the central unit larger than a preset threshold value and smaller than the real-time induction quantity of the central unit into the cluster; and searching the cells which are included in the clustering as reference cells to the surrounding, and including the cells of which the real-time induction quantity is larger than a preset threshold value and smaller than the real-time induction quantity of the reference cells in the clustering until no cells of which the real-time induction quantity is larger than the preset threshold value and smaller than the real-time induction quantity of the reference cells exist around the cells in the clustering.

In some embodiments, the preset threshold is 1000, if the real-time sensing amount of only one unit on the touch screen is greater than 1000, that is, the number of the central units is 1, the central unit is taken as the center of the cluster, the central unit expands in four directions, namely, up, down, left and right, the surrounding units have a gradient descending trend, the real-time sensing amount gradually decreases from 1000 or more to 100 or less, and normal data fluctuation within 100 is typical, so that the other preset threshold is 100. And taking the cells which are adjacent to the central cell and have the values larger than 100 around the central cell into the cluster, searching in four directions of the upper direction, the lower direction, the left direction and the right direction by taking the cell which is newly taken into the cluster as a reference cell, taking the cells which are adjacent to the reference cell, do not belong to the cluster and have real-time induction quantity lower than the reference cell and higher than 100 into the cluster, repeating the steps until no cell which can be taken into the cluster exists around the cell which is taken into the cluster, and then calculating the barycentric coordinate by using the real-time induction quantity of the cells in the cluster as the coordinate of the sliding point.

In some embodiments, if the number of the central units is more than 1, that is, there are a plurality of sliding points on the touch screen, all units with a real-time sensing amount greater than 1000 on the touch screen are selected as the central units of each cluster, and the clusters are expanded in the above manner. When the ranges of the two clusters are intersected (one cluster is expanded into the other cluster), whether the real-time induction quantity of the unit at the boundary is larger than a preset threshold value or not is detected, and if so, the two clusters are merged.

Example 3

Referring to fig. 3, fig. 3 is a schematic diagram of a radar touch point active prediction system module according to an embodiment of the present invention, which is shown as follows:

the recording module 10 is used for recording all the positions of sliding points of the sliding of the touch area;

a first calculation module 20 for calculating a lag time from scanning to recognition of the message;

a second calculating module 30, configured to calculate a lag frame number according to the lag time;

the third calculation module 40 is used for calculating a correction value according to a preset formula;

the fourth calculation module 50 is configured to obtain a correction value according to the recorded sliding point, reversely deduct a value of a parameter to be set according to any known group of data, and perform error minimization calculation;

and the output module 60 is configured to substitute the calculated parameter value to be set into a preset formula to calculate the position of the prediction frame of the current frame.

As shown in fig. 4, an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs; a processor 102. The one or more programs, when executed by the processor 102, implement the method of any of the first aspects as described above.

Also included is a communication interface 103, and the memory 101, processor 102 and communication interface 103 are electrically connected to each other, directly or indirectly, to enable transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, and the processor 102 executes the software programs and modules stored in the memory 101 to thereby execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.

The Memory 101 may be, but is not limited to, a Random Access Memory 101 (RAM), a Read Only Memory 101 (ROM), a Programmable Read Only Memory 101 (PROM), an Erasable Read Only Memory 101 (EPROM), an electrically Erasable Read Only Memory 101 (EEPROM), and the like.

The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor 102, including a Central Processing Unit (CPU) 102, a Network Processor 102 (NP), and the like; but may also be a Digital Signal processor 102 (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware components.

In the embodiments provided in the present application, it should be understood that the disclosed method and system and method can be implemented in other ways. The method and system embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

In another aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by the processor 102, implements the method according to any one of the first aspect described above. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory 101 (ROM), a Random Access Memory 101 (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

In summary, the method and system for actively predicting a radar touch point provided in the embodiments of the present application can use a PID (proportional, integral, and derivative) control algorithm, and in consideration of the high requirement of the system on real-time performance, the position of a prediction frame of a current frame is calculated by removing an integral term. And a touch point correction method based on an aggregation algorithm can be used for correcting two sliding points which are touched and close at the same time in an aggregation and fitting mode, so that more accurate data can be provided for the coordinate calculation of the sliding points, and the error of the final coordinate calculation can be reduced.

The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种应用于TDDI芯片的触控面板TP跳频扫描方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类