CN118068987A - Touch calibration method, device, equipment and storage medium based on display screen - Google Patents

Touch calibration method, device, equipment and storage medium based on display screen Download PDF

Info

Publication number
CN118068987A
CN118068987A CN202410482105.9A CN202410482105A CN118068987A CN 118068987 A CN118068987 A CN 118068987A CN 202410482105 A CN202410482105 A CN 202410482105A CN 118068987 A CN118068987 A CN 118068987A
Authority
CN
China
Prior art keywords
touch
response
calibration
target
determining
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
CN202410482105.9A
Other languages
Chinese (zh)
Other versions
CN118068987B (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.)
Shenzhen Mingyashun Technology Co ltd
Original Assignee
Shenzhen Mingyashun 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 Shenzhen Mingyashun Technology Co ltd filed Critical Shenzhen Mingyashun Technology Co ltd
Priority to CN202410482105.9A priority Critical patent/CN118068987B/en
Publication of CN118068987A publication Critical patent/CN118068987A/en
Application granted granted Critical
Publication of CN118068987B publication Critical patent/CN118068987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention belongs to the technical field of electric digital data processing, and discloses a touch calibration method, device, equipment and storage medium based on a display screen. According to the method, when a touch calibration mode is entered, touch coordinates of a current response of a display screen are obtained, a display picture of the display screen is obtained, a target response control of a current interface is determined according to the display picture, a response area of the target response control is determined, a touch vector is determined according to the response area of the target response control and the touch coordinates, a touch priority of the touch coordinates is determined according to the touch vector, a touch response queue is determined according to the touch priority, the touch response queue is screened, an effective touch response queue is obtained, target touch coordinates are obtained according to the effective touch response queue, a touch calibration amount is determined according to the target touch coordinates and the response area, and touch calibration is performed according to the touch calibration amount, so that accurate calibration of the display screen is achieved.

Description

Touch calibration method, device, equipment and storage medium based on display screen
Technical Field
The present invention relates to the field of electronic digital data processing technologies, and in particular, to a touch calibration method, device, equipment and storage medium based on a display screen.
Background
With the popularity of smart devices and the increasing demand for convenient operation, touch screens have become an integral part of modern electronic devices. In order to ensure that the operation of the user on the touch screen can accurately correspond to the corresponding position on the screen, the development of the touch calibration technology is particularly important, the currently commonly used touch calibration method is mainly based on the capacitance technology or the resistance technology, the currently commonly used touch calibration scheme is that the touch calibration points are sequentially displayed on the display screen, the user needs to click to complete the calibration in sequence, and the calibration mode needs to independently execute the calibration action.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a touch calibration method, device, equipment and storage medium based on a display screen, and aims to solve the technical problem of low touch calibration efficiency of the display screen in the prior art.
In order to achieve the above purpose, the present invention provides a touch calibration method based on a display screen, the method comprising the following steps:
When entering a touch calibration mode, acquiring touch coordinates of a current response of the display screen;
acquiring a display picture of the display screen, and determining a target response control of a current interface according to the display picture;
Determining a response area of the target response control, determining a touch vector according to the response area of the target response control and the touch coordinate, determining a touch priority of the touch coordinate according to the touch vector, and determining a touch response queue according to the touch priority;
Screening the touch response queue to obtain an effective touch response queue, and obtaining target touch coordinates according to the effective touch response queue;
And determining a touch calibration quantity according to the target touch coordinate and the response area, and performing touch calibration according to the touch calibration quantity.
Optionally, the determining the response area of the target response control, determining a touch vector according to the target response control and the touch coordinate, determining a touch priority of the touch coordinate according to the touch vector, and determining a touch response queue according to the touch priority includes:
Determining a response area of the target response control, and acquiring response center coordinates of the response area according to the response area;
taking the touch coordinate as a starting point and the response center coordinate as an end point to obtain a touch direction between the target response control and the touch coordinate;
Determining a touch distance according to the touch center coordinates and the touch coordinates;
obtaining the touch vector according to the touch direction and the touch distance;
And sequencing the modes of the touch vectors, determining the touch priority of each touch coordinate, and determining a touch response queue according to the touch priority.
Optionally, the screening the touch response queue to obtain an effective touch response queue, and obtaining the target touch coordinate according to the effective touch response queue includes:
Acquiring an under-screen image of the display screen, wherein the under-screen image comprises a touch image of a touch position;
Determining a touch image according to the touch coordinates and the under-screen image;
Detecting the brightness of the touch image to obtain brightness information of the touch image;
Determining a brightness value of the brightness information, and outputting a touch image corresponding to the brightness value as an effective touch image when the brightness value is smaller than a preset brightness value;
And determining the touch coordinates according to the effective touch image, adding the touch coordinates to the effective touch response queue according to the touch coordinates, and obtaining target touch coordinates according to the effective touch response queue.
Optionally, the screening the touch response queue to obtain an effective touch response queue, and obtaining the target touch coordinate according to the effective touch response queue, further includes:
acquiring a capacitance signal of the display screen, and converting the capacitance signal into a digital signal;
Determining touch coordinates according to the digital signals, and monitoring the motion trail of the touch coordinates and the touch time for maintaining the motion trail;
And outputting the touch coordinate as an effective touch coordinate when the motion track meets a preset motion track and the touch time is smaller than the preset touch time, adding the effective touch coordinate to the effective touch response queue, and obtaining a target touch coordinate according to the effective touch response queue.
Optionally, before determining the touch calibration amount according to the target touch coordinate and the response area, the method further includes:
Determining a touch trigger range of the target touch coordinate according to the target touch coordinate;
determining the number of the responsive controls in the touch trigger range;
Detecting the number of the control parts which can respond to the control part to obtain a detection result;
and executing the step of determining the touch calibration quantity according to the target touch coordinates and the response area based on the detection result.
Optionally, the determining a touch calibration amount according to the target touch coordinate and the response area, and performing touch calibration according to the touch calibration amount, further includes:
when the number of the respondable areas is a first preset number, determining the position relation between the target touch coordinates and the response areas;
When the position relation is that the target touch coordinate is located outside the response area, determining a calibration direction and a calibration distance according to the target touch coordinate and the trigger area;
And obtaining a touch calibration quantity according to the calibration direction and the calibration distance, and performing touch calibration according to the touch calibration quantity.
Optionally, the determining a touch calibration amount according to the target touch coordinate and the response area, and performing touch calibration according to the touch calibration amount, further includes:
when the number of the responses is a second preset number, determining the response center coordinates of each response area, wherein the response center coordinates of each response area;
obtaining offset distances according to the target touch coordinates and the response center coordinates of the response areas;
Sorting the offset distances, and determining the shortest offset distance;
Determining a target response area according to the shortest offset distance;
Determining a calibration direction and a calibration distance according to the response coordinates of the target response area and the target touch coordinates;
And obtaining a touch calibration quantity according to the calibration direction and the calibration distance, and performing touch calibration according to the touch calibration quantity.
In addition, in order to achieve the above object, the present invention further provides a touch calibration device based on a display screen, where the touch calibration device based on the display screen includes:
The touch control detection module is used for acquiring the touch control coordinate of the current response of the display screen when entering a touch control calibration mode, and establishing a touch control coordinate set according to the touch control coordinate;
The control identification module is used for acquiring a display picture of the current display screen and determining a target response control of the current interface according to the display picture;
the touch response module is used for determining a response area of the target response control, determining a touch vector according to the target response control and the touch coordinates, determining a touch priority of the touch coordinates according to the touch vector, and determining a touch response queue according to the touch priority;
The touch control screening module is used for screening the touch control response queue to obtain an effective touch control response queue, and obtaining target touch control coordinates according to the effective touch control response queue;
And the touch calibration module is used for determining a touch calibration quantity according to the target touch coordinate and the response area and carrying out touch calibration according to the touch calibration quantity.
In addition, in order to achieve the above object, the present invention further provides a touch calibration device based on a display screen, where the touch calibration device based on the display screen includes: the touch calibration system comprises a memory, a processor and a touch calibration program based on a display screen, wherein the touch calibration program is stored on the memory and can run on the processor, and the touch calibration program based on the display screen is configured to realize the steps of the touch calibration method based on the display screen.
In addition, in order to achieve the above object, the present invention further provides a storage medium, on which a touch calibration program based on a display screen is stored, where the touch calibration program based on the display screen implements the steps of the touch calibration method based on the display screen as described above when being executed by a processor.
According to the method, when a touch calibration mode is entered, touch coordinates of a current response of a display screen are obtained, a display picture of the display screen is obtained, a target response control of a current interface is determined according to the display picture, a response area of the target response control is determined, a touch vector is determined according to the response area of the target response control and the touch coordinates, a touch priority of the touch coordinates is determined according to the touch vector, a touch response queue is determined according to the touch priority, the touch response queue is screened, an effective touch response queue is obtained, target touch coordinates are obtained according to the effective touch response queue, a touch calibration amount is determined according to the target touch coordinates and the response area, and touch calibration is performed according to the touch calibration amount, so that accurate calibration of the display screen is achieved.
Drawings
Fig. 1 is a schematic structural diagram of a touch calibration device based on a display screen in a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a touch calibration method according to a first embodiment of the present invention;
FIG. 3 is a diagram showing a positional relationship between touch coordinates and a response area in a coordinate system according to an embodiment of a touch calibration method based on a display screen of the present invention;
FIG. 4 is a flowchart of a touch calibration method according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a position relationship when the number of respondable touch calibration methods based on display screens is a first preset number according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a position relationship when the number of respondable touch calibration methods based on display screen is a second preset number according to an embodiment of the present invention;
Fig. 7 is a block diagram of a touch calibration device based on a display screen according to a first embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a touch calibration device based on a display screen in a hardware operation environment according to an embodiment of the present invention.
As shown in fig. 1, the touch calibration device based on a display screen may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 does not constitute a limitation of the display-based touch calibration device, and may include more or fewer components than illustrated, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a touch calibration program based on a display screen may be included in the memory 1005 as one storage medium.
In the touch calibration device based on a display screen shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the touch calibration device based on the display screen can be arranged in the touch calibration device based on the display screen, and the touch calibration device based on the display screen calls the touch calibration program based on the display screen stored in the memory 1005 through the processor 1001 and executes the touch calibration method based on the display screen.
The embodiment of the invention provides a touch calibration method based on a display screen, and referring to fig. 2, fig. 2 is a flow chart of a first embodiment of the touch calibration method based on the display screen.
In this embodiment, the touch calibration method based on the display screen includes the following steps:
step S10: and when entering a touch calibration mode, acquiring touch coordinates of the current response of the display screen.
It should be noted that, the execution body of the embodiment is a touch calibration device based on a display screen, where the touch calibration device based on the display screen has functions of data processing, data communication, program running, etc., and the touch calibration device based on the display screen may be an integrated controller, a control computer, etc., or may be other devices with similar functions, which is not limited in this embodiment.
It can be understood that the touch calibration mode is one of the operation modes of the display screen, and in this embodiment, the touch calibration mode can exist simultaneously in the operation state, that is, the operation is performed while the calibration is performed, and the touch coordinates refer to the touch event detected on the display screen, and the touch coordinates currently responded on the display screen are determined according to the touch event.
In a specific implementation, when the display screen works normally, whether the touch calibration mode is started or not can be selected, when the touch calibration mode is started, touch calibration can be performed simultaneously when the display screen works, and the use complexity of a user for using the display screen can be simplified. When the touch calibration mode is started, when a user performs touch operation on the display screen, the display screen can be monitored, and when a response event is triggered on the display screen, a touch signal is triggered, so that the touch coordinate of the current response is obtained. The present embodiment is described with reference to a display screen of a mobile phone. When the mobile phone starts a touch calibration mode, touch coordinates of the response of the display screen can be monitored, water drops possibly fall down on the display screen of the mobile phone or touch failure or touch misalignment is caused by water on fingers when the mobile phone is operated according to the use habit of the mobile phone, and under normal conditions, the water drops on the display screen and the fingers of a user are regarded as the touch coordinates, so that an internal program can be trapped to continuously execute response events corresponding to the touch coordinates when the touch coordinates are processed, and further, the situation that the picture becomes jittery or other influences on use occur. Therefore, when the touch calibration mode is entered, the touch coordinate of the current response of the display screen is obtained.
Step S20: and acquiring a display picture of the display screen, and determining a target response control of the current interface according to the display picture.
It should be noted that, the display screen of the display screen refers to the display content of the current display screen, which includes the image information displayed in the display screen and the response controls available for interaction in the display screen, and the target response control refers to the selected response control of the current response controls in the display screen.
In a specific implementation, a current display picture of a display screen is monitored and identified, the positions of response controls in the display picture are obtained, the positions of the response controls which can be corresponding to the touch coordinates are determined by comparing the obtained touch coordinates with the response areas of the response controls, and corresponding target response controls are determined, wherein the target response controls can be in any number. In the process, the respondable controls in the current display picture can be numbered, and the response information of each respondable control can be determined, wherein the response information comprises the response range, the response mode and the like.
Step S30: determining a response area of the target response control, determining a touch vector according to the response area of the target response control and the touch coordinate, determining a touch priority of the touch coordinate according to the touch vector, and determining a touch response queue according to the touch priority.
It should be noted that, the response area refers to a range in which the target response control can identify the touch coordinate, and when the response area of the target response control includes the touch coordinate or the touch range corresponding to the touch coordinate, it can be determined that the target response control of the current touch event includes the current target controllable area. The touch priority refers to that when a plurality of touch coordinates are included in the response area, each touch coordinate can be selected and ordered to obtain the touch priority, and the touch response queue is a data set obtained by ordering the touch coordinates according to the touch priority.
In a specific implementation, a response area of a target response control is determined, a display screen coordinate system is established by taking a display screen as a reference, the display screen coordinate system is a plane rectangular coordinate system, a display picture can be projected to the display screen coordinate system, the response area of each target response control can be determined, for each response control, a touch center exists, the touch center is the middle of the response area, a touch vector is determined according to the touch coordinates, the touch vector comprises a distance between two coordinate points, the distance between the two coordinate points can also be called as a mode of the touch vector, and the direction of a connecting line between the two coordinate points is also included. Because the touch coordinates and the coordinates of the touch center of the target response area are in the same plane in the space where the display screen is located, the touch vectors of two touch points can be determined, the touch vectors are further analyzed, the priority of the touch vectors is obtained, and then a touch response queue is determined according to the touch priority.
Further, the determining the response area of the target response control, determining a touch vector according to the target response control and the touch coordinate, determining a touch priority of the touch coordinate according to the touch vector, and determining a touch response queue according to the touch priority, includes:
Determining a response area of the target response control, and acquiring response center coordinates of the response area according to the response area;
taking the touch coordinate as a starting point and the response center coordinate as an end point to obtain a touch direction between the target response control and the touch coordinate;
Determining a touch distance according to the touch center coordinates and the touch coordinates;
obtaining the touch vector according to the touch direction and the touch distance;
And sequencing the modes of the touch vectors, determining the touch priority of each touch coordinate, and determining a touch response queue according to the touch priority.
In a specific implementation, referring to fig. 3, fig. 3 is a position relationship diagram of touch coordinates and a response area in a coordinate system. Therefore, if the touch coordinate isThe coordinates of the touch center are/>Then the touch vector may be represented asThen the distance between the two coordinate points is denoted/>
When determining the priority of the vector, the distance between the touch coordinate and the coordinate of the touch center of the target response area is preferentially determinedAnd comparing, namely sorting the touch response queues according to the distances from small to large, and if the distances between two coordinate points corresponding to two or more touch vectors are equal, determining the priority according to the preset direction selection, wherein the priority can be determined by taking the vertical axis as the initial direction and clockwise as the positive direction, and determining the touch response queue according to the touch response priority.
Step S40: and screening the touch response queue to obtain an effective touch response queue, and obtaining target touch coordinates according to the effective touch response queue.
It should be noted that, the target touch coordinates refer to touch coordinates capable of triggering the response control to execute related operations, and the number of the target touch coordinates is associated with a triggering event to be executed according to needs.
In a specific implementation, the touch coordinates in the touch response queue refer to the generated touch coordinates identified by the display screen. However, there may be a factor of non-user behavior, such as water, to generate the touch coordinates on the display screen, but it is obvious that the touch coordinates generated by water or the like are not wanted, so that the touch response queue needs to be screened to obtain an effective touch response queue, and then the target touch coordinates are obtained for the effective touch response queue.
Further, the screening the touch response queue to obtain an effective touch response queue, and obtaining the target touch coordinate according to the effective touch response queue, further includes:
acquiring a capacitance signal of the display screen, and converting the capacitance signal into a digital signal;
Determining touch coordinates according to the digital signals, and monitoring the motion trail of the touch coordinates and the touch time for maintaining the motion trail;
And outputting the touch coordinate as an effective touch coordinate when the motion track meets a preset motion track and the touch time is smaller than the preset touch time, adding the effective touch coordinate to the effective touch response queue, and obtaining a target touch coordinate according to the effective touch response queue.
When the user performs a touch operation, the display screen generates a capacitance signal, at this time, the touch position can be determined according to the capacitance signal, but in this embodiment, the capacitance signal is converted into a digital signal, the digital signal is analyzed, the touch position is determined, at this time, the obtained position only indicates that the touch operation exists in the current position, but the touch behavior cannot be accurately identified, for example, the touch behavior of the user is not the touch behavior but drops on the display screen, at this time, the display screen still generates the capacitance signal, and the touch coordinate is identified, when the touch coordinate is in the response area, the false touch behavior is caused, namely, the non-subjectively expected touch behavior is generated, so that the touch coordinate in the display screen needs to be analyzed, whether the touch coordinate is the operation performed by the user is determined, and the false touch behavior caused by similar water drops is eliminated. Therefore, when the touch coordinate is detected, the motion track of the touch coordinate and the touch time consumed for maintaining the motion track can be monitored, for example, when the touch coordinate is not changed for a long time, the current operation can be determined not to be the user operation at the moment when the motion track is not moved, so that when the operation is executed, the touch behavior corresponding to the current touch coordinate needs to be shielded, and in one case: when a drop of water falls in a corresponding response area in the display screen, the user operates the mobile phone under the condition of wetting hands, and simultaneously, the user executes related touch operation, at the moment, the display screen receives two touch signals, one touch signal can be recognized for a long time and does not change for a long time, at the moment, the current touch coordinate can be defined as an invalid touch coordinate, the other touch coordinate in the change is an effective coordinate, and the touch coordinate can be determined to be executed by the user. In another case, the water drops flow on the display screen, the positions of touch coordinates triggered by the water drops are continuously changed, and one point can be determined, so that the touch coordinates generated by the display screen can be tracked and monitored at the moment in the flowing process of the water drops, if continuous long-time movement of the touch coordinates occurs to a certain touch coordinate, the current touch coordinates can be regarded as invalid coordinates, the coordinates can be continuously monitored, and in the subsequent processing, the touch time of the coordinates can be adjusted to be free of operation, and at the moment, the touch coordinates generated by non-user behaviors caused by factors such as the water drops can be eliminated, so that the influence of external environments on the touch behaviors can be eliminated from the source, and the touch behaviors of users can be greatly optimized. After the invalid touch coordinates are eliminated, the rest touch coordinates can be added into a touch response queue in the form of valid coordinates, and then the coordinates in the touch response queue are screened to obtain target control coordinates.
Further, the screening the touch response queue to obtain an effective touch response queue, and obtaining the target touch coordinate according to the effective touch response queue includes:
Acquiring an under-screen image of the display screen, wherein the under-screen image comprises a touch image of a touch position;
Determining a touch image according to the touch coordinates and the under-screen image;
Detecting the brightness of the touch image to obtain brightness information of the touch image;
Determining a brightness value of the brightness information, and outputting a touch image corresponding to the brightness value as an effective touch image when the brightness value is smaller than a preset brightness value;
And determining the touch coordinates according to the effective touch image, adding the touch coordinates to the effective touch response queue according to the touch coordinates, and obtaining target touch coordinates according to the effective touch response queue.
In a specific implementation, the image information of the touch position above the display screen, which is also called an under-screen image, can be obtained through the under-screen sensor, and because the touch operation performed by the user is performed by using a finger or by using a touch device such as a touch pen to perform touch actions, shielding of a certain area occurs in a touch area, interference caused by substances such as water and the like is caused, and the under-screen image of the obtained display screen can be obtained according to the physical characteristics of the under-screen image. At this time, brightness detection can be performed on the touch images, brightness information of each touch image is determined, a brightness value of each image is obtained, when the brightness value is smaller than a preset brightness value, the touch image corresponding to the brightness value is output as an effective touch image, and the preset brightness value is obtained according to big data analysis. The effective touch coordinates can be determined according to the effective touch images, because the touch images are acquired from the under-screen images corresponding to the touch coordinates. After the effective touch coordinates are obtained, the effective touch coordinates can be added to an effective touch coordinate queue, and the target touch coordinates are further obtained.
Step S50: and determining a touch calibration quantity according to the target touch coordinate and the response area, and performing touch calibration according to the touch calibration quantity.
It should be noted that, the touch calibration amount refers to a physical amount corresponding to a touch center and a positional relationship between a touch range and a response control in order to solve a current target touch coordinate when performing a touch operation.
In a specific implementation, when determining a touch calibration amount according to a target touch coordinate and a response area, determining a position relationship between the touch coordinate and the response area, and when the target touch coordinate is located in the response area, calibrating is not required; when the target touch coordinate is located outside the response area, the touch range at the moment is necessarily coincident with the response area, in this case, the shortest distance from the touch coordinate to the response area can be used as a calibration length, the direction in which the touch center is located is used as a calibration direction, the touch calibration quantity is obtained according to the calibration length and the calibration direction, and the touch calibration is performed according to the touch calibration quantity. When touch calibration is performed according to the touch calibration amount, coordinate values of the touch coordinates can be directly changed into new coordinate values based on the touch calibration amount on the basis of the touch coordinates during coordinate processing, and the calibrated touch coordinates are obtained.
According to the method, when a touch calibration mode is entered, touch coordinates of a current response of a display screen are obtained, a display picture of the display screen is obtained, a target response control of the current interface is determined according to the display picture, a response area of the target response control is determined, a touch vector is determined according to the response area of the target response control and the touch coordinates, a touch priority of the touch coordinates is determined according to the touch vector, a touch response queue is determined according to the touch priority, the touch response queue is screened, an effective touch response queue is obtained, target touch coordinates are obtained according to the effective touch response queue, a touch calibration amount is determined according to the target touch coordinates and the response area, touch calibration is performed according to the touch calibration amount, and accurate calibration of the display screen is achieved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a touch calibration method based on a display screen according to a second embodiment of the present invention.
Based on the first embodiment, the touch calibration method based on a display screen of the present embodiment further includes, before the step S50:
Step S501: and determining a touch trigger range of the target touch coordinate according to the target touch coordinate.
Step S502: and determining the number of the responsive controls in the touch trigger range.
Step S503: and detecting the number of the control parts which can be responded to obtain a detection result.
Step S504: and executing the step of determining the touch calibration quantity according to the target touch coordinates and the response area based on the detection result.
In a specific implementation, before calibration, a touch trigger range of the target touch coordinate needs to be determined according to the target touch coordinate, for example, a contact area of a finger and a display screen, coordinate values covered by the contact area can be regarded as the touch trigger range, that is, when coordinates of a response area of a response control appear in the touch trigger range, at the moment, the two areas overlap, and the current touch action can be regarded as an effective touch action. However, in order to ensure that the touch behavior can be accurately executed, the number of the respondable controls in the touch trigger range needs to be confirmed, the number of the respondable controls is detected to obtain a detection result, the detection result is the number of the respondable controls, and the step of determining the touch calibration amount according to the target touch coordinates and the response area is executed based on the detection result.
Further, the determining a touch calibration amount according to the target touch coordinate and the response area, and performing touch calibration according to the touch calibration amount, further includes:
when the number of the respondable areas is a first preset number, determining the position relation between the target touch coordinates and the response areas;
When the position relation is that the target touch coordinate is located outside the response area, determining a calibration direction and a calibration distance according to the target touch coordinate and the trigger area;
And obtaining a touch calibration quantity according to the calibration direction and the calibration distance, and performing touch calibration according to the touch calibration quantity.
In a specific implementation, the first preset number refers to a case that the number is 1, and at this time, the positional relationship between the target touch coordinate and the response area is determined, and referring to fig. 5, fig. 5 is a schematic diagram of the positional relationship when the number of respondable objects is the first preset number. In fig. 5, two positions correspond to each other, and from the left side in fig. 5, it can be seen that the trigger center of the trigger area is not in the response area, but there is a coincidence area between the two areas, so that the current touch behavior can be considered as being established at this time, and since the touch coordinates are not in the response area, it is necessary to determine the coordinate equation of the response area, calculate the shortest distance, that is, the calibration distance, between the touch coordinates and the response area, and obtain the touch calibration value.
Determining a touch calibration amount according to the target touch coordinate and the response area, and performing touch calibration according to the touch calibration amount, and further comprising:
when the number of the responses is a second preset number, determining the response center coordinates of each response area, wherein the response center coordinates of each response area;
obtaining offset distances according to the target touch coordinates and the response center coordinates of the response areas;
Sorting the offset distances, and determining the shortest offset distance;
Determining a target response area according to the shortest offset distance;
Determining a calibration direction and a calibration distance according to the response coordinates of the target response area and the target touch coordinates;
And obtaining a touch calibration quantity according to the calibration direction and the calibration distance, and performing touch calibration according to the touch calibration quantity.
In a specific implementation, the second preset number refers to a case where the number is greater than 1, and the positional relationship at this time is shown in fig. 6, and fig. 6 is a schematic diagram of the positional relationship when the number of respondable units is the second preset number. For convenience of explanation, the present embodiment is explained with a responsive number of 2. When the trigger area is overlapped with the two responsive areas at the same time, considering subjective consciousness of a user, for example, when the user subjectively touches the response area 1, the trigger area covers the response area 1 and the response area 2 at the same time due to objective reasons, at this time, since the response signals received by the response area 1 and the response area 2 are both received, in normal conditions, the response area 1 and the response area 2 need to execute corresponding operations, in this embodiment, touch vectors can be calculated according to the touch coordinates of the trigger area and the response coordinates of the response area 1 and the response area 2, and the target response area of the trigger area is determined according to the distance of the touch vectors, in the positional relationship shown in fig. 6, namely, the response area 1, at this time, the response area 2 cannot execute the triggering action. After that, the response ranges of the trigger area and the response area 1 need to be compared, specifically, a touch calibration amount is obtained according to the calibration direction and the calibration distance, and a method for performing touch calibration according to the touch calibration amount is consistent with an operation under the condition that the number of the responses is 1, and will not be described herein.
According to the embodiment, the specific response areas are determined through the position relation between the trigger areas and the response areas with different numbers, whether calibration is needed or not is determined according to the position relation between the touch coordinates of the trigger areas and the response areas, when calibration is needed, the calibration direction can be determined according to the touch coordinates and the center coordinates of the response areas, the calibration distance is determined with the response areas, and further the trigger calibration quantity is obtained, the fact that one trigger area triggers a plurality of response controls simultaneously or triggers non-target response controls is avoided, accurate calibration of a display screen is achieved, and the use experience of a user is optimized.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a touch calibration program based on a display screen, and the touch calibration program based on the display screen realizes the steps of the touch calibration method based on the display screen when being executed by a processor.
Referring to fig. 7, fig. 7 is a block diagram illustrating a touch calibration device according to a first embodiment of the present invention.
As shown in fig. 7, a touch calibration device based on a display screen according to an embodiment of the present invention includes:
the touch detection module 10 is configured to obtain a touch coordinate currently responded by the display screen when entering a touch calibration mode, and establish a touch coordinate set according to the touch coordinate;
the control identification module 20 is used for acquiring a display picture of the current display screen and determining a target response control of the current interface according to the display picture;
the touch response module 30 is configured to determine a response area of the target response control, determine a touch vector according to the target response control and the touch coordinates, determine a touch priority of the touch coordinates according to the touch vector, and determine a touch response queue according to the touch priority;
The touch screening module 40 is configured to screen the touch response queue to obtain an effective touch response queue, and obtain a target touch coordinate according to the effective touch response queue;
The touch calibration module 50 is configured to determine a touch calibration amount according to the target touch coordinate and the response area, and perform touch calibration according to the touch calibration amount.
According to the method, when a touch calibration mode is entered, touch coordinates of a current response of a display screen are obtained, a display picture of the display screen is obtained, a target response control of the current interface is determined according to the display picture, a response area of the target response control is determined, a touch vector is determined according to the response area of the target response control and the touch coordinates, a touch priority of the touch coordinates is determined according to the touch vector, a touch response queue is determined according to the touch priority, the touch response queue is screened, an effective touch response queue is obtained, target touch coordinates are obtained according to the effective touch response queue, a touch calibration amount is determined according to the target touch coordinates and the response area, touch calibration is performed according to the touch calibration amount, and accurate calibration of the display screen is achieved.
In an embodiment, the touch response module 30 is further configured to determine a response area of the target response control, obtain a response center coordinate of the response area according to the response area, take the touch coordinate as a start point, obtain a touch direction between the target response control and the touch coordinate, determine a touch distance according to the touch center coordinate and the touch coordinate, obtain the touch vector according to the touch direction and the touch distance, sort modes of the touch vector, determine a touch priority of each touch coordinate, and determine a touch response queue according to the touch priority.
In an embodiment, the touch filtering module 40 is further configured to obtain an under-screen image of the display screen, where the under-screen image includes a touch image of a touch position, determine the touch image according to the touch coordinates and the under-screen image, detect brightness of the touch image to obtain brightness information of the touch image, determine a brightness value of the brightness information, output the touch image corresponding to the brightness value as an effective touch image when the brightness value is less than a preset brightness value, determine the touch coordinates according to the effective touch image, add the touch coordinates to the effective touch response queue, and obtain target touch coordinates according to the effective touch response queue.
In an embodiment, the touch screening module 40 is further configured to obtain a capacitance signal of the display screen, convert the capacitance signal into a digital signal, determine a touch coordinate according to the digital signal, monitor a motion track of the touch coordinate and a touch time for maintaining the motion track, output the touch coordinate as an effective touch coordinate when the motion track meets a preset motion track and the touch time is less than the preset touch time, and add the effective touch coordinate to the effective touch response queue, and obtain a target touch coordinate according to the effective touch response queue.
In an embodiment, the touch calibration module 50 is further configured to determine a touch trigger range of the target touch coordinate according to the target touch coordinate, determine the number of the resposable controls in the touch trigger range, detect the number of the resposable controls to obtain a detection result, and execute the step of determining the touch calibration amount according to the target touch coordinate and the response area based on the detection result.
In an embodiment, the touch calibration module 50 is further configured to determine a positional relationship between the target touch coordinate and the response area when the number of respondable objects is a first preset number, determine a calibration direction and a calibration distance according to the target touch coordinate and the trigger area when the positional relationship is that the target touch coordinate is located outside the response area, obtain a touch calibration amount according to the calibration direction and the calibration distance, and perform touch calibration according to the touch calibration amount.
In an embodiment, the touch calibration module 50 is further configured to determine a response center coordinate of each response area when the number of respondable areas is a second preset number, obtain offset distances according to the target touch coordinates and the response center coordinates of each response area, sort the offset distances, determine a shortest offset distance, determine a target response area according to the shortest offset distance, determine a calibration direction and a calibration distance according to the response coordinates of the target response area and the target touch coordinates, obtain a touch calibration amount according to the calibration direction and the calibration distance, and perform touch calibration according to the touch calibration amount.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of embodiments, it will be clear to a person skilled in the art that the above embodiment method may be implemented by means of software plus a necessary general hardware platform, but may of course also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk) and comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The touch calibration method based on the display screen is characterized by comprising the following steps of:
When entering a touch calibration mode, acquiring touch coordinates of a current response of the display screen;
acquiring a display picture of the display screen, and determining a target response control of a current interface according to the display picture;
Determining a response area of the target response control, determining a touch vector according to the response area of the target response control and the touch coordinate, determining a touch priority of the touch coordinate according to the touch vector, and determining a touch response queue according to the touch priority;
Screening the touch response queue to obtain an effective touch response queue, and obtaining target touch coordinates according to the effective touch response queue;
And determining a touch calibration quantity according to the target touch coordinate and the response area, and performing touch calibration according to the touch calibration quantity.
2. The method of claim 1, wherein the determining the response area of the target response control, determining a touch vector from the target response control and the touch coordinates, determining a touch priority of the touch coordinates from the touch vector, and determining a touch response queue from the touch priority, comprises:
Determining a response area of the target response control, and acquiring response center coordinates of the response area according to the response area;
taking the touch coordinate as a starting point and the response center coordinate as an end point to obtain a touch direction between the target response control and the touch coordinate;
determining a touch distance according to the response center coordinates and the touch coordinates;
obtaining the touch vector according to the touch direction and the touch distance;
And sequencing the modes of the touch vectors, determining the touch priority of each touch coordinate, and determining a touch response queue according to the touch priority.
3. The method of claim 1, wherein the screening the touch response queue to obtain an effective touch response queue and obtaining the target touch coordinates according to the effective touch response queue comprises:
Acquiring an under-screen image of the display screen, wherein the under-screen image comprises a touch image of a touch position;
Determining a touch image according to the touch coordinates and the under-screen image;
Detecting the brightness of the touch image to obtain brightness information of the touch image;
Determining a brightness value of the brightness information, and outputting a touch image corresponding to the brightness value as an effective touch image when the brightness value is smaller than a preset brightness value;
And determining the touch coordinates according to the effective touch image, adding the touch coordinates to the effective touch response queue according to the touch coordinates, and obtaining target touch coordinates according to the effective touch response queue.
4. The method of claim 1, wherein the screening the touch response queue to obtain an effective touch response queue and obtaining the target touch coordinates according to the effective touch response queue, further comprises:
acquiring a capacitance signal of the display screen, and converting the capacitance signal into a digital signal;
Determining touch coordinates according to the digital signals, and monitoring the motion trail of the touch coordinates and the touch time for maintaining the motion trail;
And outputting the touch coordinate as an effective touch coordinate when the motion track meets a preset motion track and the touch time is smaller than the preset touch time, adding the effective touch coordinate to the effective touch response queue, and obtaining a target touch coordinate according to the effective touch response queue.
5. The method of any of claims 1-4, wherein prior to determining a touch calibration amount from the target touch coordinates and the response area, further comprising:
Determining a touch trigger range of the target touch coordinate according to the target touch coordinate;
determining the number of the responsive controls in the touch trigger range;
Detecting the number of the control parts which can respond to the control part to obtain a detection result;
and executing the step of determining the touch calibration quantity according to the target touch coordinates and the response area based on the detection result.
6. The method of claim 5, wherein the determining a touch calibration amount according to the target touch coordinates and the response area, and performing touch calibration according to the touch calibration amount further comprises:
when the number of the respondable controls is a first preset number, determining the position relation between the target touch coordinates and the response area;
When the position relation is that the target touch coordinate is located outside the response area, determining a calibration direction and a calibration distance according to the target touch coordinate and the trigger area;
And obtaining a touch calibration quantity according to the calibration direction and the calibration distance, and performing touch calibration according to the touch calibration quantity.
7. The method of claim 5, wherein the determining a touch calibration amount according to the target touch coordinates and the response area, and performing touch calibration according to the touch calibration amount further comprises:
When the number of the resposable controls is a second preset number, determining the response center coordinates of each response area, wherein the response center coordinates of each response area;
obtaining offset distances according to the target touch coordinates and the response center coordinates of the response areas;
Sorting the offset distances, and determining the shortest offset distance;
Determining a target response area according to the shortest offset distance;
Determining a calibration direction and a calibration distance according to the response coordinates of the target response area and the target touch coordinates;
And obtaining a touch calibration quantity according to the calibration direction and the calibration distance, and performing touch calibration according to the touch calibration quantity.
8. The utility model provides a touch calibration device based on display screen which characterized in that, touch calibration device based on display screen includes:
The touch control detection module is used for acquiring the touch control coordinate of the current response of the display screen when entering a touch control calibration mode, and establishing a touch control coordinate set according to the touch control coordinate;
The control identification module is used for acquiring a display picture of the current display screen and determining a target response control of the current interface according to the display picture;
the touch response module is used for determining a response area of the target response control, determining a touch vector according to the target response control and the touch coordinates, determining a touch priority of the touch coordinates according to the touch vector, and determining a touch response queue according to the touch priority;
The touch control screening module is used for screening the touch control response queue to obtain an effective touch control response queue, and obtaining target touch control coordinates according to the effective touch control response queue;
And the touch calibration module is used for determining a touch calibration quantity according to the target touch coordinate and the response area and carrying out touch calibration according to the touch calibration quantity.
9. A touch calibration device based on a display screen, the device comprising: a memory, a processor, and a display-based touch calibration program stored on the memory and executable on the processor, the display-based touch calibration program configured to implement the steps of the display-based touch calibration method of any one of claims 1 to 7.
10. A storage medium, wherein a display-based touch calibration program is stored on the storage medium, and the display-based touch calibration program, when executed by a processor, implements the steps of the display-based touch calibration method according to any one of claims 1 to 7.
CN202410482105.9A 2024-04-22 2024-04-22 Touch calibration method, device, equipment and storage medium based on display screen Active CN118068987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410482105.9A CN118068987B (en) 2024-04-22 2024-04-22 Touch calibration method, device, equipment and storage medium based on display screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410482105.9A CN118068987B (en) 2024-04-22 2024-04-22 Touch calibration method, device, equipment and storage medium based on display screen

Publications (2)

Publication Number Publication Date
CN118068987A true CN118068987A (en) 2024-05-24
CN118068987B CN118068987B (en) 2024-08-09

Family

ID=91109874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410482105.9A Active CN118068987B (en) 2024-04-22 2024-04-22 Touch calibration method, device, equipment and storage medium based on display screen

Country Status (1)

Country Link
CN (1) CN118068987B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817483A (en) * 2021-01-29 2021-05-18 网易(杭州)网络有限公司 Multi-point touch processing method, device, equipment and storage medium
CN113760123A (en) * 2021-07-26 2021-12-07 杭州逗酷软件科技有限公司 Screen touch optimization method and device, terminal device and storage medium
CN114356203A (en) * 2020-09-27 2022-04-15 中兴通讯股份有限公司 False touch prevention method, terminal device and storage medium
CN116520973A (en) * 2022-01-20 2023-08-01 北京小米移动软件有限公司 False touch prevention method and device, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356203A (en) * 2020-09-27 2022-04-15 中兴通讯股份有限公司 False touch prevention method, terminal device and storage medium
US20230070059A1 (en) * 2020-09-27 2023-03-09 Zte Corporation False touch rejection method, terminal device, and storage medium
CN112817483A (en) * 2021-01-29 2021-05-18 网易(杭州)网络有限公司 Multi-point touch processing method, device, equipment and storage medium
CN113760123A (en) * 2021-07-26 2021-12-07 杭州逗酷软件科技有限公司 Screen touch optimization method and device, terminal device and storage medium
CN116520973A (en) * 2022-01-20 2023-08-01 北京小米移动软件有限公司 False touch prevention method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN118068987B (en) 2024-08-09

Similar Documents

Publication Publication Date Title
CN107493495B (en) Interactive position determining method, system, storage medium and intelligent terminal
CN108595230B (en) Application program preloading method and device, storage medium and terminal
KR101892315B1 (en) Touch event anticipation in a computing device
WO2011152149A1 (en) Region recommendation device, region recommendation method, and recording medium
CN107613203B (en) Image processing method and mobile terminal
CN112506340B (en) Equipment control method, device, electronic equipment and storage medium
CN111714874B (en) Control state switching method and device and electronic equipment
KR101591586B1 (en) Data processing apparatus which detects gesture operation
CN111399721B (en) Method and device for triggering search by display interface, storage medium and terminal
CN108920055A (en) touch operation method, device, storage medium and electronic equipment
CN104571792A (en) Information processing method and electronic equipment
CN111145891A (en) Information processing method and device and electronic equipment
WO2013101371A1 (en) Apparatus and method for automatically controlling display screen density
CN118068987B (en) Touch calibration method, device, equipment and storage medium based on display screen
CN108604142B (en) Touch screen device operation method and touch screen device
CN111399724B (en) Display method, device, terminal and storage medium for system setting item
CN110275753B (en) Value added service acquisition method, device and equipment of application program
EP2639686A2 (en) Input control device, input control program, and input control method
CN114489461A (en) Touch response method, device, equipment and storage medium
JP2018036687A (en) Information processing device and information processing method
CN113360048A (en) Quick starting method and equipment
US11989475B2 (en) Selecting a display with machine learning
KR102094944B1 (en) Method for eye-tracking and terminal for executing the same
CN111316210B (en) Control method for preventing false touch of terminal, mobile terminal and computer readable storage medium
KR101993257B1 (en) Apparatus of correcting touch input based on compensation hand vibration

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