CN117193565A - Touch screen detection method and device, electronic equipment and storage medium - Google Patents

Touch screen detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117193565A
CN117193565A CN202311446792.0A CN202311446792A CN117193565A CN 117193565 A CN117193565 A CN 117193565A CN 202311446792 A CN202311446792 A CN 202311446792A CN 117193565 A CN117193565 A CN 117193565A
Authority
CN
China
Prior art keywords
pen
track
point
touch
touch screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311446792.0A
Other languages
Chinese (zh)
Other versions
CN117193565B (en
Inventor
李�浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Zhongyuan Intelligent Technology Co ltd
Original Assignee
Guangzhou Zhongyuan Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Zhongyuan Intelligent Technology Co ltd filed Critical Guangzhou Zhongyuan Intelligent Technology Co ltd
Priority to CN202311446792.0A priority Critical patent/CN117193565B/en
Publication of CN117193565A publication Critical patent/CN117193565A/en
Application granted granted Critical
Publication of CN117193565B publication Critical patent/CN117193565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The disclosure provides a touch screen detection method, a touch screen detection device, electronic equipment and a storage medium, relates to the technical field of display, and particularly relates to the field of touch detection. The specific implementation scheme is as follows: controlling the touch pen to execute a first operation on the touch screen, wherein the first operation comprises the steps that the touch pen starts to slide from a first point in the touch screen to a second point in the touch screen, and moves a track above the touch screen after lifting the pen from the second point; detecting a nib movement track of the stylus and a touch track of the stylus in a touch screen in the process of executing a first operation by the stylus; determining a first track point in the pen point motion track based on the pen lifting position in the touch track; and determining the pen lifting height of the touch screen based on the height of the first track point. By adopting the technical scheme disclosed by the invention, the detection of the pen lifting height can be performed by simulating the real writing state, so that the detected pen lifting height is more accurate.

Description

Touch screen detection method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of display technologies, and in particular, to the field of touch detection. The disclosure relates to a touch screen detection method, a touch screen detection device, electronic equipment and a storage medium.
Background
As shown in fig. 1, a frame in the infrared touch screen is provided with an infrared emission lamp and an infrared receiving lamp. The infrared light emitted by the infrared emission lamp propagates above the glass of the infrared touch screen, and when the touch finger does not contact the surface of the glass yet, the infrared light is detected to be blocked, so that the occurrence of a touch event is detected. This is in the process when the touching finger has not contacted the glass surface, but it is detected that infrared light is blocked, the distance between the touching finger and the glass surface is the touch height.
Due to the existence of the touch control height, the conditions of continuous writing, tilting writing and the like caused by non-subjective will exist, so that the writing experience is affected. Therefore, how to accurately detect the touch height to avoid the situations of continuous writing, tilting pen, and the like caused by non-subjective will, and improve the writing experience is a technical problem to be solved in the field.
Disclosure of Invention
The disclosure provides a touch screen detection method, a touch screen detection device, electronic equipment and a storage medium.
According to an aspect of the present disclosure, there is provided a touch screen detection method, including:
controlling a touch pen to execute a first operation on a touch screen, wherein the first operation comprises the steps that the touch pen starts to slide from a first point in the touch screen to a second point in the touch screen, and moves a section of track above the touch screen after lifting the pen from the second point;
detecting a nib movement track of the stylus and a touch track of the stylus in the touch screen in the process of executing the first operation by the stylus;
determining a first track point in the pen point movement track based on the pen lifting position in the touch track;
and determining the pen lifting height of the touch screen based on the height of the first track point.
According to an aspect of the present disclosure, there is provided a touch screen detection apparatus, including:
the touch control pen control module is used for controlling the touch control pen to execute a first operation on the touch control screen, wherein the first operation comprises the steps that the touch control pen starts to slide from a first point in the touch control screen to a second point in the touch control screen, and moves a section of track above the touch control screen after being lifted from the second point;
the track detection module is used for detecting the nib movement track of the touch pen and the touch track of the touch pen in the touch screen in the process of executing the first operation by the touch pen;
the first track point determining module is used for determining a first track point in the pen point movement track based on the pen lifting position in the touch track;
and the pen lifting height determining module is used for determining the pen lifting height of the touch screen based on the height of the first track point.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the touch screen detection methods of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform any one of the touch screen detection methods according to the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a touch screen detection method according to any of the embodiments of the present disclosure.
According to the technology disclosed by the disclosure, the stylus is controlled to slide from a first point in the touch screen to a second point in the touch screen, a section of track is moved above the touch screen after the stylus is lifted from the second point, and the nib movement track of the stylus and the touch track of the stylus in the touch screen are detected in the process, so that a first track point is determined in the nib movement track based on the lifting position in the touch track, and the lifting height of the stylus can be accurately determined based on the height of the first track point. Therefore, the touch detection application program of the touch screen is adjusted in subsequent application, so that the conditions of continuous writing, pen tilting and the like caused by non-subjective will are avoided, and the writing experience is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic touch diagram of an infrared touch screen according to an embodiment of the disclosure;
FIG. 2 is a flow chart of a touch screen detection method according to an embodiment of the disclosure;
FIG. 3 is a flowchart of a touch screen detection method according to another embodiment of the present disclosure;
FIG. 4 is a flowchart of a touch screen detection method according to another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of test points in a touch screen according to an embodiment of the disclosure;
FIG. 6 is a schematic diagram of a touch trajectory according to an embodiment of the disclosure;
FIG. 7 is a schematic view of a pen tip motion profile according to an embodiment of the present disclosure;
FIGS. 8A-8C are schematic diagrams illustrating a change of a touch trajectory according to an embodiment of the disclosure;
FIG. 9 is a block diagram of a touch screen detection device according to an embodiment of the present disclosure;
fig. 10 is a block diagram of an electronic device for implementing a touch screen detection method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In some technologies, for the pen down height and the pen up height, the detection scheme is as follows:
1. detecting the pen-down height of the touch screen: the touch pen vertically falls from a height position above the touch screen, if the touch screen does not detect a touch point, the touch pen is continuously controlled to fall until the touch screen detects the touch point, and the distance between the pen point of the touch pen and the glass surface of the touch screen at the moment is recorded as the pen falling height.
2. Detecting the pen lifting height of the touch screen: the pen point of the touch pen is contacted with the touch screen of the touch screen, the pen is lifted vertically upwards from the contact position, if the touch screen can still detect a touch point, the pen is lifted continuously until the touch point is not detected, and the distance between the pen point of the touch pen and the glass surface of the touch screen at the moment is recorded as the pen lifting height.
However, the above method has the following disadvantages: when the pen-down height or the pen-up height is detected, the working condition of the touch pen is far away from the working condition of the touch pen which is actually written, and the writing state cannot be really simulated, so that the obtained pen-down height or pen-up height is detected, and the pen-down height or pen-up height is not the pen-down height or the pen-up height when being actually written.
Based on this, the disclosure provides a touch screen detection method, which can solve the above problems.
Fig. 2 is a flowchart of a touch screen detection method according to an embodiment of the disclosure.
As shown in fig. 2, the touch screen detection method may include:
s210, controlling a touch pen to execute a first operation on the touch screen, wherein the first operation comprises the steps that the touch pen starts to slide from a first point in the touch screen to a second point in the touch screen, and moves a track above the touch screen after lifting the touch pen from the second point;
s220, detecting a pen point motion track of the touch pen and a touch track of the touch pen in a touch screen in the process of executing a first operation by the touch pen;
s230, determining a first track point in the pen point motion track based on the pen lifting position in the touch track;
s240, determining the pen lifting height of the touch screen based on the height of the first track point.
Wherein steps S210 and S220 are performed simultaneously.
It is understood that a plurality of test points are disposed on the touch screen, including a first point and a second point. The first and second points may be updated according to the plurality of test points, and the steps S210 to S240 described above may be repeatedly performed to test the pen-lifting height of the touch screen at different positions on the touch screen. Or, the steps S210 to S240 are repeatedly performed without updating the first point and the second point, so as to repeatedly perform the test of the pen lifting height of the touch screen at the same position on the touch screen.
For example, when a plurality of pen lifting heights of the touch screen are obtained, statistics such as a maximum value, a minimum value, a mean value, a standard deviation and the like of the pen lifting heights can be calculated, and the statistics of the pen lifting heights can be used for adjusting a touch detection application program of the touch screen later. Or, the touch detection application program of the touch screen is adjusted by utilizing the height of any pen.
The stylus slides from a first point to a second point after the first point is dropped, and the sliding route of the stylus can be a straight line, a curve or a broken line.
Illustratively, after the stylus is lifted from the second point, the stylus moves over the touch screen for a trajectory, which may be referred to as a first trajectory. In the first track, the touch screen cannot detect the touch track of the touch pen, so that the touch track does not comprise the first track, but the pen point motion track of the touch pen comprises the first track. Wherein the first track may be a straight line, a curved line, a broken line, or the like.
Illustratively, the pen-up position in the touch trajectory should be near the 2 nd point described above. The pen-lifting position refers to a position of the touch screen from the time when the touch point can be detected to the time when the touch point cannot be detected, and therefore the last point in the touch track can be used as the pen-lifting position.
For example, determining the first track point in the pen tip motion track based on the pen lifting position in the touch track may include determining a track point in the pen tip motion track where the orthographic projection on the touch screen coincides with or is closest to the pen lifting position, and taking the track point as the first track point.
Illustratively, the height of each track point in the pen tip motion track refers to the vertical distance between the track point and the touch screen surface. The coordinates of each track point in the pen point motion track are three-dimensional coordinates, and the heights of each track point are different. The coordinates of each track point in the touch track are two-dimensional coordinates, and the heights of each track point are the same, for example, the heights are all set to be zero.
According to the technology disclosed by the disclosure, the stylus is controlled to slide from a first point in the touch screen to a second point in the touch screen, a section of track is moved above the touch screen after the stylus is lifted from the second point, and the nib movement track of the stylus and the touch track of the stylus in the touch screen are detected in the process, so that a first track point is determined in the nib movement track based on the lifting position in the touch track, and the lifting height of the stylus can be accurately determined based on the height of the first track point. Therefore, the touch detection application program of the touch screen is adjusted in subsequent application, so that the conditions of continuous writing, pen tilting and the like caused by non-subjective will are avoided, and the writing experience is improved.
In one embodiment, determining the first track point in the pen tip motion track based on the pen lifting position in the touch track may include: determining a second track point closest to the pen lifting position in a orthographic projection track projected on the touch screen by the pen point movement track based on the pen lifting position in the touch track; and determining a track point of which the orthographic projection on the touch screen coincides with the second track point in the pen point movement track, and taking the track point as a first track point.
In practical application, since the touch track is composed of a plurality of track points, the pen point movement track is also composed of a plurality of track points, and each track point in the pen point movement track is not necessarily overlapped with a track point in the touch track when projected on the screen, in this embodiment, the second track point closest to the pen lifting position can be determined in the orthographic projection track of the pen point movement track projected on the touch screen, and then the track point overlapped with the second track point in the orthographic projection on the touch screen is determined in the pen point movement track, so as to obtain the first track point. The height of the first track point is the pen lifting height.
According to the embodiment, the second track point closest to the pen lifting position is searched by utilizing the orthographic projection track projected on the touch screen by the pen point movement track, so that the first track point overlapped with the second track point in orthographic projection can be accurately determined in the pen point movement track, and the pen lifting height can be accurately determined.
In one embodiment, determining a first track point in the pen tip motion track based on the pen lifting position in the touch track includes: determining a first time based on a pen lifting time corresponding to a pen lifting position in a touch track and a preset first time interval, wherein the pen lifting time is earlier than the first time, and the time interval between the first time and the pen lifting time is the first time interval; and determining the track point corresponding to the first time as a first track point in the pen point movement track.
It can be understood that in the touch track and the pen tip motion track, each track point corresponds to one detection time. The pen lifting position in the touch track is the track point position corresponding to the time of reporting the pen lifting event by the touch screen.
For example, when the touch device is detected to report a pen lifting event, the pen lifting time is recorded as T1. Then, a first time T2 is calculated using T1, where T1 precedes T2, and the time interval between T2 and T1 is Dt, which is typically less than 100ms. Thus, the height of the pen tip position corresponding to the first time T2 relative to the glass is used as the pen lifting height.
Likewise, the present disclosure may also detect pen up and pen down heights simultaneously. Or the pen-down height is detected independently.
Fig. 3 is a flowchart of a touch screen detection method according to an embodiment of the disclosure.
In one embodiment, as shown in fig. 3, the first operation further includes, after the stylus moves over the touch screen for a trajectory, dropping the stylus at a third point in the touch screen and sliding to a fourth point in the touch screen, the method further comprising:
s250, determining a third track point in the pen point motion track based on the pen down position in the touch track;
s260, determining the pen down height of the touch pen based on the height of the third track point.
It can be appreciated that a plurality of test points are provided on the touch screen, including a first point, a second point, a third point, and a fourth point. The first, second, third and fourth points may be updated according to the plurality of test points, and the steps S210 to S260 are repeatedly performed to test the pen lifting height and the pen dropping height of the touch screen at different positions on the touch screen. Or, the steps S210 to S260 are repeatedly executed without updating the first point, the second point, the third point and the fourth point, so as to repeatedly execute the test of the pen lifting height and the pen dropping height of the touch screen at the same position on the touch screen.
For example, in the case where a plurality of pen-up heights and a plurality of pen-down heights of the touch screen are obtained, statistics such as a maximum value, a minimum value, a mean value, and a standard deviation of the pen-up heights, and statistics such as a maximum value, a minimum value, a mean value, and a standard deviation of the pen-down heights may be calculated. In the following, the statistics of the pen lifting height and/or the pen dropping height can be utilized to adjust the touch detection application program of the touch screen. Or, the touch detection application program of the touch screen is adjusted by utilizing the height of any pen. Or, adjusting the touch detection application program of the touch screen by utilizing any pen falling height.
Illustratively, the pen down position in the touch trajectory is near the third point. The pen-down position is a position of the touch screen from when the touch point is not detected to when the touch point is detected. Thus, the pen down position may be the first track point in the touch track after the pen up position.
Illustratively, the sliding path of the stylus from the third point to the fourth point may be a straight line, a curve, a broken line, or the like.
Illustratively, determining the third trajectory point in the pen tip motion trajectory based on the pen down position in the touch trajectory may include: and determining a track point which is the front projection on the touch screen and coincides with or is closest to the pen drop position in the pen point movement track, and taking the track point as a third track point.
According to the embodiment, after the stylus moves over the touch screen for a certain track, the third point in the touch screen drops and slides to the fourth point in the screen, in the process, the pen point movement track of the stylus and the touch track of the stylus in the touch screen are continuously detected, so that the third track point is determined in the pen point movement track based on the drop position in the touch track, and the drop height of the stylus can be accurately determined based on the height of the third track point. Therefore, the touch detection application program of the touch screen is adjusted in subsequent application, so that the conditions of continuous writing, pen tilting and the like caused by non-subjective will are avoided, and the writing experience is improved.
In one embodiment, determining a second trajectory point in the pen tip motion trajectory based on the pen down position in the touch trajectory includes: determining a fourth track point closest to the pen-down position in a orthographic projection track of the pen point movement track projected on the touch screen based on the pen-down position in the touch track; and in the pen point movement track, determining a track point of which the orthographic projection on the touch screen coincides with the fourth track point, and taking the track point as a third track point.
In practical application, since the touch track is composed of a plurality of track points, the pen point movement track is also composed of a plurality of track points, and each track point in the pen point movement track is not necessarily overlapped with a track point in the touch track when projected on the screen, in this embodiment, the fourth track point closest to the pen-down position can be determined in the orthographic projection track of the pen point movement track projected on the touch screen, and then the track point overlapped with the fourth track point in the orthographic projection on the touch screen is determined in the pen point movement track, so as to obtain the third track point. The height of the third track point is the pen-down height.
According to the embodiment, the fourth track point closest to the pen drop position is searched by utilizing the orthographic projection track projected on the touch screen by the pen point movement track, so that the third track point overlapped with the fourth track point in orthographic projection can be accurately determined in the pen point movement track, and the pen drop height can be accurately determined.
In an embodiment, the determining the third track point in the pen tip motion track based on the pen drop position in the touch track includes: determining a second time based on a pen-down time corresponding to a pen-down position in the touch track and a preset second time interval, wherein the pen-down time is later than the second time, and the time interval between the second time and the pen-down time is the second time interval; and in the pen point movement track, determining the track point corresponding to the second time as a third track point.
It can be understood that in the touch track and the pen tip motion track, each track point corresponds to one detection time. The pen-down position in the touch track is the track point position corresponding to the touch screen when reporting the pen-down event.
For example, when a touch device reporting a pen down event is detected, the pen up time at this time is recorded as T3. Then, a second time T4 is calculated using T3, wherein T4 precedes T3, and the time interval between T3 and T4 is Dt, which is typically less than 100ms. Thus, the height of the pen tip position relative to the glass corresponding to the second time T4 is used as the pen-down height.
In one embodiment, as shown in fig. 3, the method further includes:
s270, adjusting the touch detection application program of the touch screen based on the pen lifting height and/or the pen falling height.
According to the embodiment, the actual writing track is simulated by controlling the stylus, and the pen lifting height and the pen falling height are accurately obtained by comparing the pen point movement track with the touch track in the touch screen. Therefore, the pen lifting height and the pen falling height are utilized to adjust the touch detection application program of the touch screen, and the conditions of pen connection, pen tilting and the like caused by non-subjective will can be avoided, so that the writing experience is improved.
Fig. 4 is a flowchart of a touch screen detection method according to another embodiment of the present disclosure. Fig. 5 is a schematic diagram of test points in a touch screen according to an embodiment of the disclosure. Fig. 6 is a schematic diagram of a touch trajectory according to an embodiment of the disclosure. Fig. 7 is a schematic view of a pen tip movement trace according to an embodiment of the present disclosure. Fig. 8A-8C are schematic diagrams illustrating a change of a touch trajectory according to an embodiment of the disclosure.
As shown in fig. 4, an application example of detecting the pen-up height and the pen-down height of the touch screen will be described, which specifically includes the following:
1. as shown in fig. 5, n test points are set in a touch area of the touch screen. Test points are distributed around and in the center of the touch control difference.
2. The touch pen is controlled to drop at a first point A1 and slide to a second point A2, after the pen is lifted from the second point A2, the touch pen drops from a third point A3 and slides to a fourth point A4, and meanwhile, the touch screen detects a touch track and shoots A3D track of the pen point movement, so that the touch track of FIG. 6 and the pen point movement track of FIG. 7 are obtained.
3. And comparing the touch track with the pen point movement track to obtain the pen drop height and the pen lifting height. For example, determining the pen-down position and the pen-up position in the touch track, and then searching a first track point with the front projection coincident with or closest to the pen-up position and a second track point with the front projection coincident with or closest to the pen-down position in the pen-tip motion track, wherein the height of the first track point is the pen-up height, and the height of the second track point is the pen-down height.
As can be seen from fig. 8A to 8C, the lower the pen lifting height or the pen dropping height, the shorter the extra continuous handwriting except the continuous handwriting from the first point to the second point in the touch track, and the shorter the extra continuous handwriting except the edge continuous handwriting from the third point to the fourth point.
4. Repeating the steps 2 and 3 for a plurality of times to obtain a plurality of pen lifting heights and a plurality of pen falling heights. And calculating the plurality of pen lifting heights to obtain an average value, a standard deviation, a maximum value and a minimum value of the pen lifting heights. And calculating a plurality of pen-down heights to obtain an average value, a standard deviation, a maximum value and a minimum value of the pen-down heights.
5. Setting n test points for the touch screen, and sequentially executing the steps 2 to 4 to obtain test results of pen lifting height and pen falling height of each test point. Therefore, the test results of the pen lifting height and the pen dropping height of each test point can be displayed in a table or graph mode.
According to the embodiment, the actual writing track is simulated by controlling the stylus, and the pen lifting height and the pen falling height are accurately obtained by comparing the pen point movement track with the touch track in the touch screen. Therefore, the pen lifting height and the pen falling height are utilized to adjust the touch detection application program of the touch screen, and the conditions of pen connection, pen tilting and the like caused by non-subjective will can be avoided, so that the writing experience is improved.
Fig. 9 is a block diagram of a touch screen detection device according to an embodiment of the disclosure.
As shown in fig. 9, the touch screen detection device may include:
a stylus control module 910, configured to control a stylus to perform a first operation on a touch screen, where the first operation includes the stylus sliding from a first point in the touch screen to a second point in the touch screen, and moving a track above the touch screen after lifting the stylus from the second point;
the track detection module 920 is configured to detect a pen tip motion track of the stylus and a touch track of the stylus in the touch screen during the process of the stylus executing the first operation;
a first track point determining module 930, configured to determine a first track point in the pen tip movement track based on the pen lifting position in the touch track;
and a pen lifting height determining module 940, configured to determine a pen lifting height of the touch screen based on the height of the first track point.
In one embodiment, the first track point determining module 930 includes:
the second track point determining unit is used for determining a second track point closest to the pen lifting position in the orthographic projection track of the pen point movement track projected on the touch screen based on the pen lifting position in the touch track;
and the first track point determining unit is used for determining the track point of which the orthographic projection on the touch screen coincides with the second track point in the pen point movement track, and taking the track point as the first track point.
In one embodiment, the pen lifting position is a position of a last track point in the touch track.
In one embodiment, the first operation further comprises the stylus dropping a pen at a third point in the touch screen and sliding to a fourth point in the touch screen after moving a track over the touch screen, the apparatus further comprising:
the third track point determining module is used for determining a third track point in the pen point movement track based on the pen drop position in the touch track;
and the pen-down height determining module is used for determining the pen-down height of the touch pen based on the height of the third track point.
In one embodiment, the determining a third track point in the pen tip motion track based on the pen down position in the touch track includes:
a fourth track point determining unit, configured to determine, based on a pen-down position in the touch track, a fourth track point closest to the pen-down position in a forward projection track of the pen-tip movement track projected on the touch screen;
and the third track point determining unit is used for determining a track point of which the orthographic projection on the touch screen coincides with the fourth track point in the pen point movement track, and taking the track point as the third track point.
In one embodiment, the pen-down position is a first track point located after the pen-up position in the touch track.
In one embodiment, the apparatus further comprises:
and the application program adjusting module is used for adjusting the touch detection application program of the touch screen based on the pen lifting height and/or the pen falling height.
For descriptions of specific functions and examples of each module and sub-module of the apparatus in the embodiments of the present disclosure, reference may be made to the related descriptions of corresponding steps in the foregoing method embodiments, which are not repeated herein.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 10 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile apparatuses, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing apparatuses. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 10, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, mouse, etc.; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as a touch screen detection method. For example, in some embodiments, a touch screen detection method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When a computer program is loaded into RAM 603 and executed by computing unit 601, one or more of the steps of a touch screen detection method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform a touch screen detection method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions, improvements, etc. that are within the principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. The touch screen detection method is characterized by comprising the following steps of:
controlling a touch pen to execute a first operation on a touch screen, wherein the first operation comprises the steps that the touch pen starts to slide from a first point in the touch screen to a second point in the touch screen, and moves a section of track above the touch screen after lifting the pen from the second point;
detecting a nib movement track of the stylus and a touch track of the stylus in the touch screen in the process of executing the first operation by the stylus;
determining a first track point in the pen point movement track based on the pen lifting position in the touch track;
and determining the pen lifting height of the touch screen based on the height of the first track point.
2. The method of claim 1, wherein the determining a first trajectory point in the pen tip motion trajectory based on a pen lift position in the touch trajectory comprises:
determining a second track point closest to the pen lifting position in a front projection track of the pen point movement track projected on the touch screen based on the pen lifting position in the touch track;
and determining a track point of which the orthographic projection on the touch screen coincides with the second track point in the pen point movement track, and taking the track point as the first track point.
3. The method of claim 1, wherein the determining a first trajectory point in the pen tip motion trajectory based on a pen lift position in the touch trajectory comprises:
determining a first time based on a pen lifting time corresponding to a pen lifting position in the touch track and a preset first time interval, wherein the pen lifting time is earlier than the first time, and the time interval between the first time and the pen lifting time is the first time interval;
and in the pen point movement track, determining the track point corresponding to the first time as the first track point.
4. The method of claim 1, wherein the first operation further comprises the stylus following a trajectory over the touch screen, dropping a pen at a third point in the touch screen and sliding to a fourth point in the touch screen, the method further comprising:
determining a third track point in the pen point movement track based on the pen drop position in the touch track;
and determining the pen-down height of the touch pen based on the height of the third track point.
5. The method of claim 4, wherein determining a third trajectory point in the pen tip motion trajectory based on the pen down position in the touch trajectory comprises:
determining a fourth track point closest to the pen-down position in a orthographic projection track of the pen point movement track projected on the touch screen based on the pen-down position in the touch track;
and determining a track point of which the orthographic projection on the touch screen coincides with the fourth track point in the pen point movement track, and taking the track point as the third track point.
6. The method of claim 4, wherein determining a third trajectory point in the pen tip motion trajectory based on the pen down position in the touch trajectory comprises:
determining a second time based on a pen-down time corresponding to a pen-down position in the touch track and a preset second time interval, wherein the pen-down time is later than the second time, and the time interval between the second time and the pen-down time is the second time interval;
and in the nib movement track, determining the track point corresponding to the second time as the third track point.
7. The method as recited in claim 4, further comprising:
and adjusting the touch detection application program of the touch screen based on the pen lifting height and/or the pen falling height.
8. A touch screen detection device, comprising:
the touch control pen control module is used for controlling the touch control pen to execute a first operation on the touch control screen, wherein the first operation comprises the steps that the touch control pen starts to slide from a first point in the touch control screen to a second point in the touch control screen, and moves a section of track above the touch control screen after being lifted from the second point;
the track detection module is used for detecting the nib movement track of the touch pen and the touch track of the touch pen in the touch screen in the process of executing the first operation by the touch pen;
the first track point determining module is used for determining a first track point in the pen point movement track based on the pen lifting position in the touch track;
and the pen lifting height determining module is used for determining the pen lifting height of the touch screen based on the height of the first track point.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202311446792.0A 2023-11-02 2023-11-02 Touch screen detection method and device, electronic equipment and storage medium Active CN117193565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311446792.0A CN117193565B (en) 2023-11-02 2023-11-02 Touch screen detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311446792.0A CN117193565B (en) 2023-11-02 2023-11-02 Touch screen detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117193565A true CN117193565A (en) 2023-12-08
CN117193565B CN117193565B (en) 2024-03-01

Family

ID=88987195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311446792.0A Active CN117193565B (en) 2023-11-02 2023-11-02 Touch screen detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117193565B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580687A (en) * 2020-04-30 2020-08-25 京东方科技集团股份有限公司 Data processing method and device and intelligent interaction equipment
JP2022087633A (en) * 2020-12-01 2022-06-13 株式会社リコー Display device, erasing method switching method, and program
CN115413335A (en) * 2021-02-01 2022-11-29 京东方科技集团股份有限公司 Handwriting recognition method and device, handwriting recognition system and interactive panel
WO2022257030A1 (en) * 2021-06-08 2022-12-15 广州创知科技有限公司 Touch data processing method, and interactive flat panel
CN116521009A (en) * 2022-01-21 2023-08-01 广州视源电子科技股份有限公司 Writing height identification method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580687A (en) * 2020-04-30 2020-08-25 京东方科技集团股份有限公司 Data processing method and device and intelligent interaction equipment
JP2022087633A (en) * 2020-12-01 2022-06-13 株式会社リコー Display device, erasing method switching method, and program
CN115413335A (en) * 2021-02-01 2022-11-29 京东方科技集团股份有限公司 Handwriting recognition method and device, handwriting recognition system and interactive panel
WO2022257030A1 (en) * 2021-06-08 2022-12-15 广州创知科技有限公司 Touch data processing method, and interactive flat panel
CN116521009A (en) * 2022-01-21 2023-08-01 广州视源电子科技股份有限公司 Writing height identification method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN117193565B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US10452188B2 (en) Predictive compensation for a latency of an input device
US9430093B2 (en) Monitoring interactions between two or more objects within an environment
US20180157372A1 (en) Program, electronic device, system, and control method with which touch target is predicted on basis of operation history
US7256773B2 (en) Detection of a dwell gesture by examining parameters associated with pen motion
EP3926526A2 (en) Optical character recognition method and apparatus, electronic device and storage medium
US9904847B2 (en) System for recognizing multiple object input and method and product for same
US9575578B2 (en) Methods, devices, and computer readable storage device for touchscreen navigation
US10620758B2 (en) Glove touch detection
CN111625157B (en) Fingertip key point detection method, device, equipment and readable storage medium
CN111539347B (en) Method and device for detecting target
CN104777984A (en) Touch trajectory tracking method and device and touch screen device
WO2015102974A1 (en) Hangle-based hover input method
CN111353466B (en) Lane line recognition processing method, equipment and storage medium
US20200142582A1 (en) Disambiguating gesture input types using multiple heatmaps
KR20180010555A (en) An input-latency reduction method based on a prediction of a position
CN117193565B (en) Touch screen detection method and device, electronic equipment and storage medium
CN114327057A (en) Object selection method, device, equipment, medium and program product
US9524099B2 (en) Information processing apparatus, non-transitory readable medium, and handwriting input method
CN105260089A (en) User interface display method and electronic device
CN117193566B (en) Touch screen detection method and device, electronic equipment and storage medium
JP2015075956A (en) Handwriting input reception device and method
CN112926419B (en) Character judgment result processing method and device and electronic equipment
EP4130967A1 (en) Grouping strokes of digital ink
US20230060045A1 (en) Systems and methods for grid-aligned inking
CN115756283A (en) Application card moving method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant