Touch height testing method and device, infrared touch screen, electronic equipment and medium
By simulating writing trajectory test on the infrared touch screen, approximate the real writing scene and accurately measure the touch height, the handwriting error problem caused by the difference between the test methods and the actual writing status in the existing technology is solved, and the touch writing experience and test accuracy are improved .
Patent Information
- Application Number
- CN202411206838.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-20
AI Technical Summary
When testing the touch height of the existing infrared touch screen, the test method and the actual writing status are very different, resulting in large handwriting errors and affecting the touch writing experience.
Use simulated writing trajectory to perform touch writing operations on the touch screen. By obtaining the contact point coordinates of the simulated writing trajectory and the touch screen, the touch height is calculated. The simulated writing trajectory includes tilt sliding between the air and the surface of the touch screen. Transition trajectory, approximate real writing scenes, and improve testing accuracy.
Through simulated writing trajectory testing, the writing height of the touch screen is accurately measured, which reduces handwriting errors and improves the touch writing experience, and does not require strict calibration of the touch screen, which improves the testing efficiency.
Smart Images

Figure CN119166432A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of infrared touch screen technology, and in particular to a touch height testing method, device, infrared touch screen, electronic device and computer-readable storage medium. Background Art
[0002] When the infrared touch screen is performing infrared light touch positioning, there is a certain touch height, that is, the writing height on the touch screen. Since the infrared light propagates on the upper surface of the screen glass, the infrared light is blocked and detected before the touching object touches the glass surface, thereby generating a touch event. Due to the existence of the touch height, it is easy to cause unintentional writing such as connected strokes and pen tilting when using a stylus for touch writing.
[0003] Therefore, when writing on the infrared touch screen, it is necessary to test its touch height, including the touch height when the pen is put down and the touch height when the pen is lifted. The commonly used methods for testing the touch height are as follows: from a safe height, keep falling. If there is no point reported, continue to fall. If there is a point reported, record the height from the glass surface at this time as the touch height when the pen is put down; return the pen tip to the position in contact with the contact glass, and keep lifting the pen. If the touch device is still reporting a point, continue to lift the pen; if there is no point reported, record the height from the glass surface at this time as the touch height when the pen is lifted.
[0004] However, the above test method, because the working condition of the stylus during the test is far different from the movement state of the pen tip during actual writing, leads to a large difference between the tested touch height and the actual touch height of actual writing, resulting in a large error in the handwriting displayed by the touch writing, which seriously affects the touch writing experience. Summary of the invention
[0005] Based on this, it is necessary to provide a touch height testing method, device, infrared touch screen, electronic device and computer-readable storage medium to address one of the above technical problems.
[0006] A touch height testing method, comprising:
[0007] Performing a touch writing operation on the touch screen according to a preset simulated writing trajectory; wherein the simulated writing trajectory includes a transition trajectory of tilted sliding between the air above the touch screen and the surface of the touch screen;
[0008] Acquire the first coordinates corresponding to the contact point position of the simulated writing trajectory and the touch screen and the second coordinates of the first reported point position or the last reported point position of the touch writing operation recognized by the touch screen;
[0009] The touch height of the touch screen is calculated according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory.
[0010] A touch height testing device, comprising:
[0011] Performing a touch writing operation on the touch screen according to a preset simulated writing trajectory; wherein the simulated writing trajectory includes a transition trajectory of tilted sliding between the air above the touch screen and the surface of the touch screen;
[0012] Acquire the first coordinates corresponding to the contact point position of the simulated writing trajectory and the touch screen and the second coordinates of the first reported point position or the last reported point position of the touch writing operation recognized by the touch screen;
[0013] The touch height of the touch screen is calculated according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory.
[0014] An infrared touch screen comprises: an infrared touch frame, a touch display screen and a control panel;
[0015] The control board is configured to execute the steps of the touch height testing method.
[0016] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and is characterized in that the processor implements the steps of the touch height testing method when executing the computer program.
[0017] A computer-readable storage medium stores a computer program, which implements the steps of the touch height testing method when executed by a processor.
[0018] The above technical scheme performs a touch writing operation on the touch screen according to a preset simulated writing trajectory, and the simulated writing trajectory includes a transition trajectory of inclined sliding between the air above the touch screen and the surface of the touch screen; obtains the first coordinate corresponding to the contact point position of the simulated writing trajectory and the touch screen and the second coordinate of the first reported point position or the last reported point position of the touch writing operation recognized by the touch screen, and calculates the touch height of the touch screen according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory; in this technical scheme, the writing handwriting method in the test is close to the actual writing scene, and is more suitable for measuring the writing height of the touch screen, thereby improving the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is an example infrared touch frame touch schematic diagram;
[0020] Figure 2 is a flow chart of a touch height testing method according to an embodiment;
[0021] Figure 3 is a schematic diagram of a simulated writing trajectory of an example;
[0022] Figure 4 is a schematic diagram of an example of simulated touch writing operation;
[0023] Figure 5 is a side view of an example touch writing operation;
[0024] Figure 6 is a schematic diagram of a simulated writing trajectory of another example;
[0025] Figure 7 is a side view of another example of touch writing operation;
[0026] Figure 8 is a schematic diagram of the structure of a touch height testing device according to an embodiment;
[0027] Fig. 9 This is a schematic diagram of an example infrared touch screen structure;
[0028] Fig.10 is a schematic diagram of an example electronic device structure. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0030] For the application scenario of the touch height test method of the present application, it can be used in the touch height test of various touch screens. The touch screen can be an interactive smart tablet, a touch tablet, and a touch screen. Figure 1 , Figure 1 This is an example of an infrared touch frame touch schematic diagram. As shown in the figure, when a user uses a touch object, such as a stylus, finger, etc. to perform a touch operation on the touch screen, the infrared detection light of the infrared touch frame propagates on the upper surface of the glass above the surface of the touch screen, and the touch position and handwriting shape are determined by the blocked position and size. Due to the existence of the touch height, it is recognized as handwriting when it does not touch the surface glass of the touch screen, which makes it easy to have continuous strokes and warped pens when touching and writing. For this reason, the present application provides a touch height test method to test its touch height, and the test process is closer to the actual writing scene, thereby improving the test accuracy.
[0031] In one embodiment, reference Figure 2 As shown, Figure 2 The present invention is a flow chart of a touch height testing method according to an embodiment, comprising the following steps:
[0032] Step S10, performing a touch writing operation on the touch screen according to a preset simulated writing trajectory; wherein the simulated writing trajectory includes a transition trajectory of tilted sliding between the air above the touch screen and the surface of the touch screen.
[0033] In this step, a simulated writing trajectory of tilted sliding is preset according to daily touch writing operation habits, which can simulate the trajectory of the user's actual writing scene. The simulated writing trajectory includes at least a transition trajectory between the air above the touch screen and the surface of the touch screen, and the transition trajectory extends from approaching the touch screen to tilted sliding to contacting the touch screen surface; the tilted sliding can simulate the process of the user putting down and lifting the pen when writing, and the tilted sliding can be decomposed into vertical movement from not touching the touch screen to contacting the touch screen surface, and lateral movement parallel to the touch screen surface.
[0034] When performing a touch writing operation, a stylus pen can be clamped by a mechanical arm or other spatial motion mechanism, and the mechanical arm is controlled by a computer program to move the tip of the stylus pen according to the simulated writing trajectory, and the tip of the stylus pen finally contacts the surface of the touch screen. In one embodiment, the entire test device includes a control device for controlling the mechanical arm and calculating the touch height, and a touch screen with an infrared touch device disposed therein. The control device can read the coordinate data detected by the touch screen, and the motion coordinates of the tip of the stylus pen in the real space controlled by the control device to move the mechanical arm are all pre-set (known). The control device can be a separate computing device, or it can be the main control chip of the touch screen or the computer module therein.
[0035] refer to Figure 3 As shown, Figure 3 It is a schematic diagram of an example simulated writing trajectory. The simulated writing trajectory 12 described in the figure includes a transition trajectory of tilted sliding. The figure shows a transition trajectory of pen writing. When the tip of the stylus pen is controlled by the mechanical arm to tilt and slide downward, the tip of the stylus pen will be detected by the touch screen. Point P on the transition trajectory is the first reporting point position of the touch screen 01. For the first reporting point position, as shown in the figure, the pen tip continues to tilt and slide downward from point P to P1, which will be detected by the touch screen 01. After the touch screen detects the touch position of the pen tip, the position coordinates of the pen tip will be reported to the host computer, such as the main chip of the touch screen or the computer module. The process of reporting the position coordinates of the pen tip can be called reporting point, and the position of the reporting point is the reporting point position; the first reporting point position is the coordinate of the first position point detected by the pen tip by the touch screen, that is, the touch height point to be tested.
[0036] As for the contact point position P1, it is the position where the pen tip actually contacts the touch screen 01 when it moves along the simulated writing trajectory. In one embodiment, this contact point position P1 can be preset, and its coordinate position is known. Since P1 is also one of the points in the motion trajectory of the pen tip operated by the robot arm, that is, a point with a touch height of zero, and since the motion trajectory of the pen tip operated by the robot arm is preset, the coordinates of P1 are known. P2 is the projection point of point P on the surface of the touch screen 01, and is also the end point where the touch screen 01 detects the touch operation and displays the writing handwriting.
[0037] During the test, the pen tip is controlled to perform a touch writing operation on the touch screen 01 according to the preset simulated writing trajectory. When the touch writing operation is performed according to the simulated writing trajectory, in addition, when the touch writing operation is lower than the touch height P point, the writing handwriting P2P1 corresponding to the transition trajectory of the simulated writing trajectory can be displayed on the touch screen.
[0038] like Figure 3 In the embodiment, when the transition trajectory of the simulated writing trajectory is from left to right, a section of pen-lifting touch writing operation process can be realistically simulated on the touch screen; when the transition trajectory of the simulated writing trajectory is from right to left, a section of pen-lifting touch writing operation process can be realistically simulated on the touch screen.
[0039] Step S20, obtaining the first coordinates corresponding to the contact point position of the simulated writing trajectory and the touch screen and the second coordinates of the first reported point position or the last reported point position of the touch writing operation recognized by the touch screen.
[0040] In this step, the first coordinates corresponding to the contact point position of the simulated writing trajectory and the touch screen are obtained, and the touch coordinates are detected in real time by the touch screen when performing the touch writing operation, and the second coordinates of the first reported point position or the last reported point position of the touch writing operation are obtained.
[0041] For example, Figure 3 In the process, the first coordinate P1 corresponding to the contact point position can be obtained and reported to the operating system of the touch screen for storage, and the second coordinate P2 of the first reported point position of the touch writing operation can be obtained and saved through the handwriting of the touch writing operation recognized by the touch screen.
[0042] In one embodiment, for a method of obtaining a first coordinate P1 corresponding to a contact point position between a simulated writing trajectory and a touch screen, the first coordinate P1 can be obtained by pre-measuring the contact point position between the simulated writing trajectory and the touch screen and converting it into coordinate parameters of the touch screen.
[0043] In order to facilitate accurate measurement of the first coordinate, as an embodiment, a preset auxiliary trajectory can be used to assist in determining the contact point position of the simulated writing trajectory and the touch screen. The auxiliary trajectory is the touch point that contacts the touch screen surface during simulated touch writing, that is, the point with a touch height of zero. By controlling the pen tip through the mechanical arm, the pen tip can be controlled to have a touch height of zero when in the auxiliary trajectory, and the pen tip directly contacts the touch screen. Generally, the auxiliary trajectory can be a point trajectory or a line segment trajectory. Preferably, a line segment trajectory can be selected. At this time, the mechanical arm can be controlled in advance to use the stylus tip to perform a touch operation in the Y-axis direction of the touch screen, and multiple touch points can be written on the touch screen to form an auxiliary trajectory. Since the writing is performed along the Y-axis direction of the touch screen, the handwriting position recognized and displayed by the touch screen is the same as the coordinates on the plane of the real writing trajectory, that is, the X-axis coordinates are the same, and the simulated writing trajectory is written along the X-axis direction of the touch screen, that is, the Y-axis coordinates are the same, so the coordinate position of the actual pen tip contacting the touch screen can be obtained by using the coordinate parameters of the auxiliary trajectory.
[0044] refer to Figure 4 As shown, Figure 4 This is an example schematic diagram of a simulated touch writing operation, which shows a 3D perspective. An auxiliary track 11 can be preset on the touch screen 01. The display position of the auxiliary track 11 on the touch screen 01 is the contact point position of the simulated writing track and the touch screen, so that the coordinates of the auxiliary track 11 can be detected by the touch screen 01 to obtain the first coordinate P1.
[0045] Step S30, calculating the touch height of the touch screen according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory.
[0046] In this step, based on the touch writing operation of the highly simulated real writing scene, the touch height of the touch screen can be calculated according to the first coordinate and the second coordinate measured in real time by the touch screen, combined with the preset geometric position relationship of the simulated writing trajectory relative to the touch screen surface.
[0047] Figure 5 As shown, Figure 5It is an example of a side view of a touch writing operation; the touch screen recognizes the coordinate point P of the touch writing operation, P can be the first point position reported by the touch screen when the pen is put down to write, or the last point position reported by the touch screen when the pen tip leaves the touch screen plane when the pen is lifted to write, the first point position or the last point position corresponding to the display of the writing handwriting is the second coordinate P2, the second coordinate P2 is the projection point of the coordinate point P in the vertical direction of the touch screen 01, the contact point position of the simulated writing trajectory and the touch screen is the first coordinate P1, it can be seen from the figure that the height h of the coordinate point P from the touch screen surface is the touch height; according to the first coordinate P1, the second coordinate P2, and the projection relationship between the second coordinate P2 and the coordinate point P, the coordinate point P can be calculated, thereby obtaining the touch height h of the touch screen.
[0048] In one embodiment, the method for calculating the touch height of the touch screen in step S30 may include the following:
[0049] S301, calculating the projection length of the transition trajectory according to the first coordinate and the second coordinate.
[0050] For example, Figures 3 to 5 As shown in FIG. 1 , the projection length L of the transition trajectory 12 can be calculated according to the first coordinate P1 and the second coordinate P2 .
[0051] S302: Obtain an angle between a transition track in the simulated writing track and the touch screen surface.
[0052] For example, Figures 3 to 5 As shown in , according to the preset spatial relationship between the simulated writing track 12 and the touch screen 01 , the angle θ thereof can be set.
[0053] S303: Calculate a touch height of the touch screen according to the projection length and the included angle.
[0054] For example, Figures 3 to 5As shown in , according to the geometric relationship of the right triangle, the corresponding touch height h=L×cosθ of the touch screen 01 at the coordinate point P can be calculated using the projection length L and the angle θ. In the specific calculation, since the simulated writing handwriting is in the real space coordinate system, and the touch screen recognizes the position point of its own touch screen coordinate system, the coordinate values of the first coordinate P1 and the second coordinate P2 in the touch screen coordinate system, when calculating the coordinate point P of the first reported point position or the last reported point position, it is necessary to convert the first coordinate P1 and the second coordinate P2 of the touch screen coordinate system into the real space coordinate system for synchronous calculation. Therefore, by converting the touch screen coordinate system into the coordinate position in the real space coordinate system, the projection length L in the real space coordinate system can be obtained, so that the distance length of the coordinate point P in the real space coordinate system from the touch screen plane can be obtained, that is, the touch height h. For the corresponding relationship between the coordinate system of the touch screen and the real space coordinate system, in one embodiment, it can be calculated according to the resolution of the touch screen and the actual screen size.
[0055] As in the technical solution of the above-mentioned embodiment, a simulated writing trajectory close to the actual writing scene is used for testing. By executing a touch writing operation and obtaining corresponding coordinate data, in one instance, the touch screen operating system can calculate a touch height that is more suitable for measuring the touch screen, thereby greatly improving the test accuracy. By using auxiliary trajectories for auxiliary testing, there is no need for strict calibration of the touch screen, which also improves the test efficiency.
[0056] In one embodiment, in order to more accurately reflect the touch height parameters of the touch screen, the touch height test method of the present application can also be repeatedly performed multiple times to perform touch writing operations on the touch screen 01 according to the preset simulated writing trajectory 12; the touch heights h corresponding to the multiple touch writing operations are counted, and the touch height parameters can be obtained by counting the multiple calculation results, including the average value. Standard deviation δ, maximum height h max , minimum height h min wait.
[0057] In one embodiment, in order to test the touch height of the entire touch screen, the touch height testing method of the present application can also preset simulated writing trajectories in multiple areas on the touch screen, and perform touch writing operations on each area of the touch screen according to the preset simulated writing trajectories to obtain the touch height of the entire touch screen; further, the final touch height of the entire touch screen can be displayed in a table or graphic form for easy reference during use.
[0058] In order to make the technical solution of the present application more clear, more relevant embodiments are described below in conjunction with the accompanying drawings.
[0059] In one embodiment, in order to more realistically simulate the process of touch writing operation, the touch height testing method of the present application simultaneously tests the touch heights including the pen-down height and the pen-lifting height during one test process; correspondingly, the contact point position includes the pen-down contact point position and the pen-lifting contact point position; the transition trajectory includes the pen-down transition trajectory from above the touch screen to the touch screen surface and the pen-lifting transition trajectory from the touch screen surface to above the touch screen; exemplarily, for the simulated writing trajectory, it may include a trajectory consisting of a pen-down transition trajectory, a writing trajectory sliding on the touch screen surface, and a pen-lifting transition trajectory.
[0060] The simulated writing trajectory in the above-mentioned embodiment can truly simulate the process of putting down the pen, writing and lifting the pen in a touch writing operation, and can better reflect the real application scenario.
[0061] refer to Figure 6 As shown, Figure 6 This is another example schematic diagram of a simulated writing trajectory, which is a 3D perspective. For the simulated writing trajectory 12, the transition trajectory 122 includes a pen-down transition trajectory 122a from the air above the touch screen 01 to the surface of the touch screen 01 and a pen-lifting transition trajectory 122b from the surface of the touch screen 01 to the air above the touch screen 01; further, the simulated writing trajectory 12 also includes a first segment trajectory 121a above the touch screen 01 before the pen is put down and a last segment trajectory 121b above the touch screen 01 after the pen is lifted, and a writing trajectory 123 on the surface of the touch screen 01.
[0062] As in the simulated writing trajectory 12 of the above embodiment, the touch writing operation can be performed from left to right. In the pen-falling transition trajectory 122a stage, the touch writing operation moves from the air above the touch screen to the surface of the touch screen. a Click to generate a projection handwriting P 1a P 2a In the writing trajectory stage 123 on the touch screen surface, the corresponding touch writing handwriting is displayed on the touch screen. In the pen lift transition trajectory stage 122b, the touch writing operation leaves the touch screen surface. At the pen lift height P b A projection handwriting P will also be generated. 1b P 2b , thereby realistically simulating the pen-putting and pen-lifting process of a touch writing operation, and better reflecting the real application scenario.
[0063] Exemplarily, for the auxiliary track 11, as Figure 6 As shown, it includes a pen-drop auxiliary track 11a for determining the position of the pen-drop contact point and a pen-lift auxiliary track 11b for determining the position of the pen-lift contact point; the pen-drop auxiliary track 11a is arranged in parallel with the pen-lift auxiliary track 11b, so as to accurately assist in measuring the coordinates of the pen-drop contact point position and the pen-lift contact point position.
[0064] In one embodiment, in the scheme of simulating the writing trajectory and testing the pen-down height and the pen-up height simultaneously based on the above embodiment, the first coordinate may include the coordinate P of the pen-down contact point. 1a and the contact point coordinates P 1b The second coordinate may include the coordinates of the pen projection point P 2a and the coordinates of the projection point P 2b ; Due to the contact point coordinates P 1a and the contact point coordinates P 1b The length of the simulated writing track between the two points can determine the actual distance in the real space coordinate system. 1a and P 1b The distance in the touch screen coordinate system can be used to obtain the corresponding relationship between the touch screen coordinate system and the real space coordinate system.
[0065] Accordingly, the method for calculating the touch height of the touch screen in step S30 may specifically include the following steps:
[0066] (1) Calculating the pen projection length of the pen transition trajectory according to the pen contact point coordinates and the pen projection point coordinates; obtaining a first angle between the pen transition trajectory and the touch screen surface; and calculating the pen height of the touch screen according to the pen projection length and the first angle.
[0067] like Figure 7 As shown, Figure 7 is another example of a touch writing operation side view, by using the contact point coordinates P 1a and the coordinates of the projection point P 2a The pen projection length L1 of the pen transition trajectory 122a can be calculated; combined with the geometric relationship of the triangle, according to the angle θ1 between the pen projection length L1 and the surface of the touch screen 01, the touch screen 01 at the pen projection point P can be calculated. 2a The height of the pen at the corresponding position is h1=L1×cosθ1.
[0068] (2) Calculating the pen-lifting projection length of the pen-lifting transition trajectory according to the coordinates of the pen-lifting contact point and the coordinates of the pen-lifting projection point; obtaining a second angle between the pen-lifting transition trajectory and the touch screen surface; and calculating the pen-lifting height of the touch screen according to the pen-lifting projection length and the second angle.
[0069] refer to Figure 7 As shown, according to the coordinates of the contact point P 2a and the coordinates of the projection point P 2bThe pen-lifting projection length L2 of the pen-lifting transition trajectory 122b can be calculated; combined with the geometric relationship of the triangle, according to the angle θ2 between the pen-lifting projection length L2 and the surface of the touch screen 01, the touch screen 01 at the pen-lifting projection point P can be calculated. 2a The pen lifting height at the corresponding position is h2 = L2 × cosθ2.
[0070] As in the scheme of the above-mentioned embodiment, the touch writing operations of putting down the pen, writing and lifting the pen in an actual writing scene are simulated by simulating the writing trajectory. The test results are more suitable for measuring the actual writing height of the touch screen, which improves the test accuracy. Two auxiliary trajectories are used to assist in determining the position of the contact point when the pen is put down and the contact point when the pen is lifted. The test process does not require calibration of the touch screen, which greatly improves the test efficiency.
[0071] In one embodiment, the touch writing operation can be repeated multiple times on the touch screen, and the pen drop height and pen lift height corresponding to the multiple touch writing operations can be counted, and the pen drop height parameters and pen lift height parameters can be calculated respectively, including the mean value, standard deviation, maximum height, minimum height and other parameters.
[0072] In one embodiment, simulated writing trajectories may be preset in multiple areas on the touch screen, and touch writing operations may be performed on each area of the touch screen according to the preset simulated writing trajectories to obtain the pen drop height and pen lift height of the entire touch screen.
[0073] Based on the technical solutions of the above embodiments, the pen drop height, pen lift height and other parameters of the touch screen can be obtained by repeating multiple tests. Further, by testing in multiple areas, the pen drop height and pen lift height of the entire touch screen can be obtained, which has higher test accuracy and higher test efficiency.
[0074] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0075] Based on the same inventive concept, the embodiment of the present application also provides a touch height test device for implementing the touch height test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more touch height test device embodiments provided below can refer to the above limitations on the touch height test method, and will not be repeated here.
[0076] In one embodiment, Figure 8 As shown, Figure 8 The structure diagram of a touch height testing device according to an embodiment includes:
[0077] The writing module 10 is used to perform a touch writing operation on the touch screen according to a preset simulated writing trajectory; wherein the simulated writing trajectory includes a transition trajectory of tilted sliding between the air above the touch screen and the surface of the touch screen;
[0078] The recognition module 20 is used to obtain the first coordinates corresponding to the contact point position of the simulated writing trajectory and the touch screen and the second coordinates of the first reported point position or the last reported point position of the touch writing operation recognized by the touch screen;
[0079] The calculation module 30 is used to calculate the touch height of the touch screen according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory.
[0080] Each module in the above touch height test device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of the processor in hardware form, or stored in a memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0081] An embodiment of the infrared touch screen is described below.
[0082] This application also provides an infrared touch screen, referring to Fig. 9 , Fig. 9 This is a schematic diagram of an example infrared touch screen structure, which may include: an infrared touch frame, a touch display screen and a control board; wherein the control board is configured to execute the steps of the touch height test method of any of the above embodiments; specifically, the infrared touch frame is provided with an array of transmitting lamps and receiving lamps; the transmitting lamps and the receiving lamps are connected to the controller through a signal processing circuit; the transmitting lamp tubes emit infrared rays under the control of the control board; the receiving lamp tubes receive infrared signals; the control board can be configured to execute the steps of the touch height test method of any of the above embodiments through the corresponding controller.
[0083] For the infrared touch screen in the above-mentioned embodiment, the handwriting method in the test is close to the actual writing scene, which is more suitable for measuring the writing height of the touch screen and improves the test accuracy; and the auxiliary track is used for auxiliary testing, which eliminates the need for strict calibration of the touch screen and also improves the test efficiency.
[0084] Embodiments of an electronic device and a computer-readable storage medium are described below.
[0085] In one embodiment, the present application further provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor executes the steps of the touch height test method of any of the above embodiments. Fig.10 , Fig.10 This is an example of an electronic device structure diagram, which may include a processor, a memory, a communication interface, etc. connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities, the memory includes a non-volatile storage medium and an internal memory, the non-volatile storage medium stores an operating system and a computer program, the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium, and the communication interface can be used to communicate with external devices in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, the steps of the touch height test method of any of the above embodiments are implemented.
[0086] Those skilled in the art will understand that the structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the controller to which the scheme of the present application is applied. The specific controller may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0087] In one embodiment, the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0088] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0089] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A touch height testing method, characterized in that: include: Performing a touch writing operation on the touch screen according to a preset simulated writing trajectory; wherein the simulated writing trajectory includes a transition trajectory of tilted sliding between the air above the touch screen and the surface of the touch screen; Acquire the first coordinates corresponding to the contact point position of the simulated writing trajectory and the touch screen and the second coordinates of the first reported point position or the last reported point position of the touch writing operation recognized by the touch screen; The touch height of the touch screen is calculated according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory.
2. The touch height testing method according to claim 1, characterized in that: Acquiring a first coordinate corresponding to a contact point position of the simulated writing trajectory and the touch screen, comprising: The first coordinates corresponding to the contact point position of the simulated writing trajectory and the touch screen are obtained according to the coordinate parameters of the auxiliary trajectory recognized by the touch screen; wherein the auxiliary trajectory is a trajectory preset for determining the contact point position.
3. The touch height testing method according to claim 2, characterized in that: The step of calculating the touch height of the touch screen according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory includes: Calculate the projection length of the transition trajectory according to the first coordinate and the second coordinate; Obtaining an angle between a transition track in the simulated writing track and a touch screen surface; The touch height of the touch screen is calculated according to the projection length and the included angle.
4. The touch height testing method according to claim 3, characterized in that: Also includes: The touch writing operation is repeatedly performed multiple times, the touch heights corresponding to the multiple touch writing operations are counted, and the touch height parameter is calculated; wherein the touch height parameter includes at least one of an average value, a standard deviation, a maximum height, and a minimum height.
5. The touch height testing method according to claim 4, characterized in that: Also includes: Simulated writing tracks are preset in multiple areas on the touch screen, and touch writing operations are performed on each area of the touch screen according to the preset simulated writing tracks to obtain the touch height of the entire touch screen.
6. The touch height testing method according to any one of claims 1 to 5, characterized in that: The touch height includes the pen-down height and the pen-lifting height; The contact point positions include: a pen-down contact point position and a pen-lift contact point position; The transition trajectory includes: a pen-down transition trajectory from the air above the touch screen to the surface of the touch screen and a pen-up transition trajectory from the surface of the touch screen to the air above the touch screen.
7. The touch height testing method according to claim 6, characterized in that: The simulated writing trajectory also includes: a writing trajectory connecting the pen-down transition trajectory and the pen-up transition trajectory and sliding on the touch screen surface; The pen-dropping contact point position is preset with a pen-dropping auxiliary trajectory for determining the pen-dropping contact point position, and the pen-lifting contact point position is preset with a pen-lifting auxiliary trajectory for determining the pen-lifting contact point position; wherein the pen-dropping auxiliary trajectory is arranged in parallel with the pen-lifting auxiliary trajectory.
8. The touch height testing method according to claim 6, characterized in that: The first coordinates include: coordinates of the contact point where the pen is put down and coordinates of the contact point where the pen is lifted up; The second coordinates include: the coordinates of the projection point where the pen is put down and the coordinates of the projection point where the pen is lifted up; Calculating the touch height of the touch screen according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory includes: Calculating the pen projection length of the pen transition trajectory according to the pen contact point coordinates and the pen projection point coordinates; acquiring a first angle between the pen transition trajectory and the touch screen surface; and calculating the pen height of the touch screen according to the pen projection length and the first angle; Calculate the pen lift projection length of the pen lift transition trajectory according to the pen lift contact point coordinates and the pen lift projection point coordinates; obtain the second angle between the pen lift transition trajectory and the touch screen surface; and calculate the pen lift height of the touch screen according to the pen lift projection length and the second angle.
9. A touch height testing device, characterized in that: include: A writing module, used to perform a touch writing operation on the touch screen according to a preset simulated writing trajectory; wherein the simulated writing trajectory includes a transition trajectory of tilted sliding between the air above the touch screen and the surface of the touch screen; An identification module, used to obtain a first coordinate corresponding to the contact point position of the simulated writing trajectory and the touch screen and a second coordinate of the first reported point position or the last reported point position of the touch writing operation identified by the touch screen; The calculation module is used to calculate the touch height of the touch screen according to the geometric relationship between the first coordinate, the second coordinate and the simulated writing trajectory.
10. An infrared touch screen, characterized in that: include: Infrared touch frame, touch display screen and control panel; The control board is configured to execute the steps of the touch height testing method according to any one of claims 1 to 8.
11. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the touch height testing method according to any one of claims 1 to 8 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the touch height testing method according to any one of claims 1 to 8 are implemented.
