Data processing method and electronic equipment

By using data processing methods in electronic devices, in response to touch operation and performing displacement compensation, the problems of complex operation and low accuracy of touch function on the display unit are solved, and high-precision touch and better user Experience.

CN119473045APending Publication Date: 2025-02-18LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411546103.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

When implementing the touch function on the display unit, the prior art has problems such as complex operation and low touch accuracy, especially when the display point position of the display unit is shifted, the touch point position and the display point are inconsistent, which affects the user. Experience.

Method used

By providing a data processing method in the electronic device, the touch point is determined in response to the touch operation, and the touch point is displaced compensation based on the displacement compensation information of the display unit, ensuring the target touch point and the display unit's The target display point corresponds to.

Benefits of technology

It improves the accuracy of touch, meets the needs of precise clicks, enhances the user experience, and reduces the operation complexity and the need for display units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473045A_ABST
    Figure CN119473045A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and electronic equipment, and the method comprises the steps: responding to a touch operation received by a touch unit, and determining a touch point location corresponding to the touch operation; determining displacement compensation information corresponding to the touch point location in response to the displacement of the display point location corresponding to the touch point location of the display unit; performing displacement compensation on the touch point location based on displacement compensation information corresponding to the touch point location to obtain a target touch point location corresponding to the touch operation, so that the target touch point location corresponds to a target display point location of the display unit; wherein the touch point location is different from the target touch point location.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of data processing, and in particular to a data processing method and electronic equipment. Background Art

[0002] In the related art, the integrated display unit only has a display function, and touch control can be realized on the display unit by replacing the display unit or superimposing a touch control unit on the display unit. However, when replacing the display unit, the original display unit needs to be removed, which has the problem of complicated operation. At the same time, when superimposing the touch control unit on the display unit, the display point position of the display unit will be displaced, so that the touch control point position and the display point position are inconsistent, and there is a problem of low touch accuracy. Summary of the invention

[0003] In view of this, the embodiments of the present application at least provide a data processing method and an electronic device.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a data processing method, which includes:

[0006] In response to a touch operation received at the touch unit, determining a touch point corresponding to the touch operation;

[0007] In response to the displacement of a display point corresponding to the touch point on the display unit, determining displacement compensation information corresponding to the touch point;

[0008] The touch point is displacement compensated based on the displacement compensation information corresponding to the touch point to obtain a target touch point corresponding to the touch operation, so that the target touch point corresponds to the target display point of the display unit; wherein the touch point is different from the target touch point.

[0009] An embodiment of the present application provides an electronic device, including a touch module and a display module, wherein the touch module is attached to the display module, the touch module includes a touch unit and a first processing unit, and the display module includes a display unit, a second processing unit, and a preset register, wherein:

[0010] A touch module, configured to respond to a touch operation received on the touch unit and determine a touch point corresponding to the touch operation through a first processing unit;

[0011] A display module, configured to determine displacement compensation information corresponding to the touch point through a second processing unit in response to a displacement of a display point corresponding to the touch point on the display unit;

[0012] The touch module is also used to perform displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain the target touch point corresponding to the touch operation, so that the target touch point corresponds to the target display point of the display unit; wherein the touch point is different from the target touch point.

[0013] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0015] Figure 1 A schematic diagram of an implementation process of a data processing method provided in an embodiment of the present application Figure 1 ;

[0016] Figure 2 A schematic diagram of a target display point provided in an embodiment of the present application;

[0017] Figure 3A A schematic diagram of a display point provided in an embodiment of the present application Figure 1 ;

[0018] Figure 3B A schematic diagram of a display point provided in an embodiment of the present application Figure 2 ;

[0019] Figure 3C A schematic diagram of touch points and display points provided in an embodiment of the present application;

[0020] Figure 4A A schematic diagram of a touch point provided in an embodiment of the present application Figure 1 ;

[0021] Figure 4B A schematic diagram of a touch point provided in an embodiment of the present application Figure 2 ;

[0022] Figure 5 A schematic diagram of displacement compensation provided in an embodiment of the present application;

[0023] Figure 6 A schematic diagram of an implementation process of a data processing method provided in an embodiment of the present application Figure 2 ;

[0024] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0025] Figure 8A hardware entity schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0027] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0028] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are merely to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0029] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the general understanding of those skilled in the art in the field to which the embodiments of the present application belong. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0030] At present, an organic light-emitting diode (OLED) integrated display unit with built-in pixel shift technology is widely used in electronic devices. The integrated display unit only has a display function. In the related art, touch control can be achieved on the display unit by replacing the display unit or superimposing a touch control unit on the display unit. However, when replacing the display unit, the original display unit needs to be removed and the replaced display unit needs to support touch control, which has the problems of complex operation and high requirements for the display unit. At the same time, when the display point of the display unit is displaced, the touch control unit does not know that the display point of the display unit has moved, so that the touch point and the display point are inconsistent. For scenes that require precise clicks (for example, games, drawing, etc.), there is a problem of low touch accuracy, which may affect the user experience.

[0031] The embodiment of the present application provides a data processing method, which first determines the touch point corresponding to the touch operation in response to the touch operation received on the touch unit, then determines the displacement compensation information corresponding to the touch point in response to the displacement of the display point corresponding to the touch point on the display unit, and finally performs displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain the target touch point corresponding to the touch operation. In this way, on the one hand, since the touch point is displacement compensated based on the displacement compensation information corresponding to the touch point, the target touch point corresponds to the target display point of the display unit, which improves the accuracy of the touch, thereby meeting the demand for precise clicking and enhancing the user experience; on the other hand, since the data processing method of the present application realizes the compensation of the touch point without replacing the display unit, it reduces the complexity of the operation and the demand for the display unit. At the same time, the method can be applied to different electronic devices, which improves the versatility of the data processing method.

[0032] The method provided in the embodiment of the present application can be executed by an electronic device, wherein the electronic device can be a laptop, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other types of terminals, and can also be implemented as a server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0033] Figure 1 A schematic diagram of a data processing method provided in an embodiment of the present application Figure 1 ,like Figure 1 As shown, the method includes steps S101 to S103, wherein:

[0034] Step S101 , in response to a touch operation received by a touch unit, determining a touch point corresponding to the touch operation.

[0035] Here, the touch unit may be any suitable set for implementing touch control. A touch operation is an operation performed on the touch unit. A touch point is a touch click position in the touch unit based on the touch operation feedback. In some embodiments, a touch point may be an area, and the touch point may include at least one point.

[0036] In some embodiments, the touch control unit may include but is not limited to a touch screen. The touch screen may include but is not limited to at least one of: a capacitive touch screen, a resistive touch screen, an infrared and ultrasonic touch screen, an optical touch screen, etc. The capacitive touch screen may be implemented by self-capacitance sensing technology or mutual capacitance sensing technology. During implementation, the touch operation may be first received by the touch screen, and then the touch point corresponding to the touch operation may be determined by the first processing unit corresponding to the touch control unit.

[0037] Exemplarily, when the touch screen is a resistive touch screen, when the resistive touch screen receives a touch operation, the two conductive layers of the resistive touch screen come into contact to form a conductive path, which can change the state of the internal resistance network of the resistive touch screen, and the resistance value of the resistive touch screen changes. Then, the first processing unit corresponding to the touch unit can determine the touch point corresponding to the touch operation according to the changed resistance value.

[0038] In some implementations, the touch operation may be triggered by at least one of, including but not limited to, a finger, a capacitive stylus, and the like.

[0039] In some embodiments, a point in the touch position may be represented by any suitable form, such as Cartesian coordinates, polar coordinates, pixel coordinates, etc. For example, when using Cartesian coordinates, two-dimensional coordinates (x, y) are generally used to represent a point in the touch position, wherein x represents the horizontal position of the touch position, and y represents the vertical position of the touch position. For another example, when using polar coordinates, a point in the touch position is represented by using (r, θ), wherein r represents the distance from the touch position to the origin, and θ represents the angle between the touch position and the positive x-axis. For another example, when using pixel coordinates, two-dimensional coordinates (x, y) are generally used to represent a point in the touch position, wherein x represents the horizontal offset position of the touch position relative to the upper left corner of the screen, and y represents the vertical offset position of the touch point relative to the upper left corner of the screen.

[0040] In some implementations, based on the touch position corresponding to the touch operation, the touch position corresponding to the touch operation may be used as a touch point.

[0041] Step S102, in response to the displacement of the display point corresponding to the touch point on the display unit, determining the displacement compensation information corresponding to the touch point.

[0042] Here, the display unit may be any suitable set for realizing the display function. The display point is a position displayed in the display unit. In some embodiments, the display point is an area, and the display point may include at least one point.

[0043] In some embodiments, the touch point of the touch unit has a display point corresponding to the touch point in the display unit.

[0044] The displacement compensation information corresponding to the touch point refers to information for correcting or adjusting the touch point. In some embodiments, the displacement compensation information corresponding to the touch point may include, but is not limited to, at least one of: a displacement compensation direction corresponding to the touch point, a displacement compensation distance corresponding to the touch point, a displacement compensation pixel corresponding to the touch point, and a displacement compensation amount corresponding to the touch point.

[0045] In some embodiments, the display unit may include, but is not limited to, a display screen. A display screen is a display tool that displays display points on a screen. The display screen may be any suitable screen, for example, a liquid crystal display (LCD), an OLED, a mini LED display, a micro LED display, and the like.

[0046] In some embodiments, the points in the display point position can be represented by any suitable form, such as Cartesian coordinates, polar coordinates, pixel coordinates, etc.

[0047] In some implementations, the representation form of the points in the display point position and the representation form of the points in the touch point position may be the same or different.

[0048] In some embodiments, the display unit has a corresponding second processing unit, which, when detecting the displacement of the display point corresponding to the touch point of the display unit, can determine the displacement compensation information corresponding to the touch point based on the displacement information generated during the displacement of the display point.

[0049] In some embodiments, in response to the displacement of a display point corresponding to a touch point on the display unit, position information of the display point before the displacement and the position information at the end of the displacement can be obtained, and then the displacement compensation information corresponding to the touch point can be determined based on the deviation information between the position information before the displacement and the position information at the end of the displacement.

[0050] In some embodiments, the display point may be determined in response to the displacement of the target display point, and then the displacement information corresponding to the display point may be determined, and finally the displacement compensation information corresponding to the touch point may be determined based on the displacement information corresponding to the display point. The display unit performs display based on the display point, and the display point is different from the target display point.

[0051] Step S103, performing displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain a target touch point corresponding to the touch operation, so that the target touch point corresponds to the target display point of the display unit; wherein the touch point is different from the target touch point.

[0052] Here, the target touch point is a touch click position obtained after displacement compensation of the touch point. In some embodiments, the target touch point may be an area, and the target touch point may include at least one point. In some embodiments, the touch point is different from the target touch point.

[0053] In some embodiments, the points in the target touch position may be represented in any suitable form, such as Cartesian coordinates, polar coordinates, pixel coordinates, etc. The representation form of the points in the target touch position may be the same as the representation form of the points in the touch position.

[0054] The target display point of the display unit refers to the position where the display point of the display unit is initially displayed. In some embodiments, the target display point may be an area, and the target display point may include at least one point. In some embodiments, the display point is different from the target display point or may be the same.

[0055] In some embodiments, the points in the target display location may be represented by any suitable form, such as Cartesian coordinates, polar coordinates, pixel coordinates, etc. The representation form of the points in the target display location may be the same as the representation form of the points in the display location.

[0056] In some implementations, the displacement compensation information corresponding to the touch point may be superimposed on the touch point to achieve displacement compensation for the touch point, thereby obtaining a target touch point corresponding to the touch operation.

[0057] In some embodiments, there is a corresponding relationship between the target touch point obtained after the displacement compensation of the touch point and the position of the target display point of the display unit, and the target touch point and the target display point at least partially overlap.

[0058] In some embodiments, since the displacement compensation information corresponding to the touch point includes different contents, the touch point can be displacement compensated by methods including but not limited to at least one of the following: displacement compensation for the touch point based on the displacement compensation direction corresponding to the touch point, displacement compensation for the touch point based on the displacement compensation distance corresponding to the touch point, displacement compensation for the touch point based on the displacement compensation pixel corresponding to the touch point, and displacement compensation for the touch point based on the displacement compensation amount corresponding to the touch point.

[0059] In an embodiment of the present application, firstly, in response to the touch operation received on the touch unit, the touch point corresponding to the touch operation is determined, then in response to the displacement of the display point corresponding to the touch point on the display unit, the displacement compensation information corresponding to the touch point is determined, and finally, the touch point is displacement compensated based on the displacement compensation information corresponding to the touch point to obtain the target touch point corresponding to the touch operation. In this way, on the one hand, since the touch point is displacement compensated based on the displacement compensation information corresponding to the touch point, the target touch point corresponds to the target display point of the display unit, which improves the accuracy of the touch, thereby meeting the demand for precise clicking and enhancing the user experience; on the other hand, since the data processing method of the present application realizes the compensation of the touch point without replacing the display unit, it reduces the complexity of the operation while also reducing the demand for the display unit. At the same time, the method can be applied to different electronic devices, which improves the versatility of the data processing method.

[0060] In some embodiments, the method further includes step S104 and step S105, and step S101 includes step S11, wherein:

[0061] Step S104: performing a display operation in the first area of ​​the display unit.

[0062] Here, the first area of ​​the display unit refers to the area of ​​the display unit where the display function is triggered. In some embodiments, the first area of ​​the display unit may be a partial area of ​​the display unit or the entire area of ​​the display unit. For example, the central area of ​​the display unit, the left half of the display unit, etc.

[0063] In some embodiments, in response to the triggering of the display function, the display operation can be performed in the first area of ​​the display unit by calling the media interface of the display unit. The media interface may include, but is not limited to, a High Definition Multimedia Interface (HDMI), a DisplayPort (DP), etc. HDMI is a fully digital video and sound transmission interface. DP is a standardized digital video interface.

[0064] In some implementations, the display function may be triggered by a preset operation, which may include but is not limited to: click, long press, double click, etc.

[0065] Figure 2 A schematic diagram of a target display point provided in an embodiment of the present application, such as Figure 2As shown, the target display point 21 is an area in the figure. The target display point 21 is represented by pixel coordinates. The target display point 21 is generated in the display unit. In the bird's-eye view, the coordinates of a point 211 in the target display point 21 are (5, 3).

[0066] Figure 3A A schematic diagram of a display point provided in an embodiment of the present application Figure 1 ,like Figure 3A As shown, the first display point 31 is an area in the figure, the first display point 31 is represented by pixel coordinates, the first display point 31 is generated in the display unit, and in the bird's-eye view, the coordinates of a point 311 in the first display point 31 are (8, 5), relative to Figure 2 For a certain point 211 in the provided target display point 21, the first display point 31 is displaced by 3 pixels in the x direction and by 2 pixels in the y direction.

[0067] Figure 3B A schematic diagram of a display point provided in an embodiment of the present application Figure 2 ,like Figure 3B As shown, the second display point 32 is an area in the figure, the second display point 32 is represented by pixel coordinates, the second display point 32 is generated in the display unit, and in the bird's-eye view, the coordinates of a point 321 in the second display point 32 are (13, 9), relative to Figure 2 For a certain point 211 in the provided target display point 21, the second display point 32 is displaced by 8 pixels in the x direction and by 6 pixels in the y direction.

[0068] Step S105 , receiving a touch operation in the second area of ​​the touch unit; wherein positions of the first area and the second area have a corresponding relationship.

[0069] Here, the second area of ​​the touch unit refers to the area of ​​the touch unit that receives the touch operation. In some embodiments, the second area of ​​the touch unit can be a partial area of ​​the touch unit or the entire area of ​​the touch unit, for example, the central area of ​​the touch unit, the right half of the touch unit, etc.

[0070] In some embodiments, there is a corresponding relationship between the first area of ​​the display unit and the second area of ​​the touch unit. In a top view, the first area of ​​the display unit and the second area of ​​the touch unit are overlapping areas.

[0071] In some embodiments, when the second area of ​​the touch unit is touched, the electric field of the capacitive sensor array of the touch unit changes, thereby causing a change in capacitance value, thereby generating a touch signal, and the touch unit can receive a touch operation through the touch signal.

[0072] Step S11, determining a touch point based on a touch position corresponding to the touch operation; wherein the touch point at least partially overlaps with the display point.

[0073] Here, the touch position corresponding to the touch operation refers to the touch position of the touch operation on the touch unit. In some embodiments, the touch position corresponding to the touch operation can generate an area on the touch unit, and the area can be used as a touch point.

[0074] In some embodiments, the point in the touch position can be represented by any suitable form, such as Cartesian coordinates, polar coordinates, pixel coordinates, etc.

[0075] In some implementations, the touch position corresponding to the touch operation can be used as the touch point, or the touch position corresponding to the touch operation can be used as the base point and the points in the vicinity of the touch position can be used as the touch point. In implementation, the touch point and the display point at least partially overlap.

[0076] In some embodiments, the display point is determined in the display unit according to the content to be displayed, and the touch point is determined in the touch unit according to the touch position corresponding to the touch operation by performing a touch operation based on the display point. For example, when a mobile phone displays an application icon, the area where the application icon is displayed is the display point, and the application icon can be touched by clicking a finger to perform a touch operation, thereby determining the touch point according to the touch position corresponding to the touch operation. However, the area actually clicked by the finger does not necessarily include the entire area of ​​the application icon, so the touch point and the display point at least partially overlap.

[0077] Figure 3C A schematic diagram of a touch point and a display point provided in an embodiment of the present application, such as Figure 3C As shown, the third display point 33 and the first touch point 34 are an area in the figure, and the third display point 33 and the first touch point 34 at least partially overlap.

[0078] In some embodiments, the touch unit can read the coordinate data generated by the touch operation through a driver or a hardware interface, and then use the coordinate data as the touch position corresponding to the touch operation. For example, in a capacitive touch screen, the first processing unit corresponding to the capacitive touch screen will periodically generate a driving signal, and measure the charge size by receiving the electrode sensing signal change, thereby calculating the touch position corresponding to the touch operation.

[0079] Figure 4A A schematic diagram of a touch point provided in an embodiment of the present application Figure 1 ,like Figure 4AAs shown, the second touch point 41 and the fourth display point 42 are an area in the figure, the second touch point 41 and the fourth display point 42 are represented by pixel coordinates, the fourth display point 42 is generated in the display unit, and the second touch point 41 is generated in the touch unit. In the bird's-eye view, the coordinates of a point 411 in the second touch point 41 are (14, 9), and the coordinates of a point 421 in the fourth display point 42 are (13, 9), and the second touch point 41 and the fourth display point 42 overlap.

[0080] Figure 4B A schematic diagram of a touch point provided in an embodiment of the present application Figure 2 ,like Figure 4B As shown, the target display point 21 and the third touch point 43 are an area in the figure, the target display point 21 and the third touch point 43 are represented by pixel coordinates, the target display point 21 is generated in the display unit, and the third touch point 43 is generated in the touch unit. In a bird's-eye view, the coordinates of a point 211 in the target display point 21 are (5, 3), and the coordinates of a point 431 in the third touch point 43 are (13, 9), and the target display point 21 and the third touch point 43 do not overlap.

[0081] In the implementation manner of the present application, display operations and touch operations are respectively performed by a first area and a second area having a corresponding relationship, and the touch point is determined according to the touch position corresponding to the touch operation, so that the touch point and the display point at least partially overlap, thereby improving the accuracy of the touch point.

[0082] In some embodiments, step S102 includes steps S121 to S123, wherein:

[0083] Step S121, determining the display point in response to the displacement of the target display point.

[0084] Here, the product characteristics of the display unit cause some areas of the display unit to age due to long-term lighting after long-term use, so image retention or image burn-in may occur. Therefore, when the time condition is met, the display unit will shift the target display point to avoid the target display point being displayed at a fixed position all the time.

[0085] In some embodiments, the target display point is displaced within a preset area. The preset area is an area established with the target display point as the center, and can be of any suitable size, for example, an area with a radius of 0.2 mm (millimeter) with the target display point as the center, an area with a radius of 8 pixel cells with the target display point as the center, etc.

[0086] In some implementations, after the target display point is displaced once, a display point is generated. If the time condition is met, the display point will be displaced again within the preset area, thereby generating another display point.

[0087] In some implementations, the position of the target display point may be fixed, and the position of the display point may be variable.

[0088] In some embodiments, in response to the displacement of the target display point, it is possible to continuously detect whether the position information of the target display point changes. When the position information of the target display point stops changing, the target display point at the moment when the position information of the target display point stops changing is used as the display point to determine the display point.

[0089] Step S122, determining the displacement information corresponding to the display point.

[0090] Here, the displacement information corresponding to the display point refers to the information generated during the displacement of the display point. The displacement information corresponding to the display point may include but is not limited to: at least one of the displacement direction corresponding to the display point, the displacement distance corresponding to the display point, the displacement pixel corresponding to the display point, and the displacement amount corresponding to the display point.

[0091] In some embodiments, in response to the displacement of the target display point, the displacement trajectory of the target display point can be continuously collected. When the target display point stops displacing, the collected displacement trajectory of the target display point is used as the displacement information corresponding to the display point to determine the displacement information corresponding to the display point.

[0092] In some embodiments, in response to the displacement of the target display point, the displacement information corresponding to the target display point can be stored in a preset register, and then after the displacement of the target display point is completed, the displacement information corresponding to the display point can be obtained from the preset register to determine the displacement information corresponding to the display point.

[0093] In some embodiments, determining the displacement information corresponding to the display point may include, but is not limited to, at least one of the following: determining the displacement direction corresponding to the display point based on the display point and the target display point, determining the displacement distance corresponding to the display point based on the display point and the target display point, determining the displacement pixels corresponding to the display point based on the display point and the target display point, determining the displacement amount corresponding to the display point based on the display point and the target display point, etc.

[0094] Step S123, based on the displacement information corresponding to the display point, determining the displacement compensation information corresponding to the touch point; wherein the display unit performs display based on the display point, and the display point is different from the target display point.

[0095] Here, since the display point is obtained by shifting the target display point, the display point is different from the target display point. In addition, the display unit performs display based on the display point obtained by shifting the target display point.

[0096] In some implementations, since the displacement information corresponding to the display points includes a variety of different information, the displacement compensation information corresponding to different touch points can be determined through the displacement information corresponding to different display points.

[0097] In some embodiments, it can be determined first whether the expression form of the display points of the display unit and the expression form of the touch points of the touch unit are the same. When the expression form of the display points of the display unit and the expression form of the touch points of the touch unit are the same, the displacement information corresponding to the display points can be directly used as the displacement compensation information corresponding to the touch points. When the expression form of the display points of the display unit and the expression form of the touch points of the touch unit are different, the expression form of the displacement information corresponding to the display points can be first converted into the expression form of the touch points of the touch unit, and then the displacement information corresponding to the converted display points can be used as the displacement compensation information corresponding to the touch points.

[0098] In some embodiments, when the displacement information corresponding to the display point is the displacement direction corresponding to the display point, the displacement compensation direction corresponding to the touch point can be determined based on the displacement direction corresponding to the display point, wherein the displacement compensation direction corresponding to the touch point is opposite to the displacement direction corresponding to the display point.

[0099] In some embodiments, when the displacement information corresponding to the display point is the displacement distance corresponding to the display point, the displacement compensation distance corresponding to the touch point can be determined based on the displacement distance corresponding to the display point, wherein the displacement distance corresponding to the display point is the same as or proportional to the displacement compensation distance corresponding to the touch point.

[0100] In some embodiments, when the displacement information corresponding to the display point is the displacement pixel corresponding to the display point, the displacement compensation pixel corresponding to the touch point can be determined based on the displacement pixel corresponding to the display point, wherein the displacement pixel corresponding to the display point is the same as or proportional to the displacement compensation pixel corresponding to the touch point.

[0101] In some embodiments, when the displacement information corresponding to the display point is the displacement amount corresponding to the display point, the displacement compensation amount corresponding to the touch point can be determined based on the displacement amount corresponding to the display point, wherein the displacement amount corresponding to the display point is the same as or proportional to the displacement compensation amount corresponding to the touch point.

[0102] In the implementation manner of the present application, the display point is first determined by the displacement of the target display point, and then the displacement compensation information corresponding to the touch point is determined by the displacement information corresponding to the determined display point, thereby improving the accuracy of the displacement compensation information corresponding to the touch point.

[0103] In some embodiments, the method further includes step S108, and step S122 includes step S1221, wherein:

[0104] Step S108 , in response to the displacement of the target display point, storing the displacement information corresponding to the target display point in a preset register.

[0105] Here, the register is a device with a storage function, and may include but is not limited to at least one of a basic register, a shift register, and the like.

[0106] In some implementations, a preset address may be set in the preset register, and the displacement information corresponding to the target display point is stored in the preset address. Whenever the display point is displaced once, the displacement information corresponding to the target display point generated in this displacement is stored in the preset register.

[0107] In some embodiments, in response to the displacement of the target display point, after the displacement of the target display point is completed, the displacement information corresponding to the target display point can be determined based on the difference information of the target display point before and after the displacement, and then the displacement information corresponding to the target display point can be stored in a preset register.

[0108] Step S1221, obtaining displacement information corresponding to the display point from a preset register.

[0109] Here, the method of obtaining the displacement information corresponding to the display point from the preset register may include but is not limited to: obtaining the displacement information corresponding to the display point from the preset register by reading data in the preset address, obtaining the displacement information corresponding to the display point from the preset register through pointer operation, etc.

[0110] In some implementations, since each time a display point is displaced, displacement information corresponding to a new target display point is generated, the displacement information corresponding to the display point can be obtained by reading the newly added data in the preset register.

[0111] In the implementation of the present application, when the target display point is displaced, the displacement information corresponding to the target display point is stored in a preset register, and then the displacement information corresponding to the display point can be obtained from the preset register. By storing the displacement information in the register, the displacement information can be called at any time according to the actual situation, thereby enhancing the stability of the displacement information.

[0112] In some embodiments, step S122 includes at least one of steps S122a to S122d, wherein:

[0113] Step S122a, determining the displacement direction corresponding to the display point based on the display point and the target display point.

[0114] Here, the displacement direction corresponding to the display point may include but is not limited to: at least one of upward displacement, downward displacement, leftward displacement, rightward displacement, oblique displacement, etc.

[0115] In some implementations, the target display point may be used as a base point, and then based on the position of the display point relative to the target display point, the displacement direction corresponding to the display point is determined.

[0116] In some implementations, the position information of the display point and the position information of the target display point may be determined first, and then the displacement direction corresponding to the display point may be determined according to the deviation information between the position information of the display point and the position information of the target display point.

[0117] In some embodiments, the deviation information between the position information of the display point and the position information of the target display point can be determined by the coordinate offset. The coordinate offset refers to the offset between the coordinates of the display point and the coordinates of the target display point. For example, the coordinates of the display point are (13, 9) and the coordinates of the target display point are (5, 3). In this case, the corresponding coordinate offset is (8, 6).

[0118] In some embodiments, the displacement direction corresponding to the display point can be determined by the coordinate offset (x, y). Where x represents the horizontal offset, which is positive to the right and negative to the left; y represents the vertical offset, which is negative to the upward direction and positive to the downward direction. For example, if a coordinate offset is (8, 6), the displacement direction corresponding to the display point includes downward displacement and rightward displacement.

[0119] Step S122b: determining the displacement distance corresponding to the display point based on the display point and the target display point.

[0120] Here, the displacement distance corresponding to the display point can be any appropriate size, for example, 0.02 mm, 0.03 mm, etc.

[0121] In some embodiments, a coordinate system can be established with the center of the display unit as the origin, and then the deviation information between the distance of the display point relative to the origin and the distance of the target display point relative to the origin can be determined. The deviation information is then used as the displacement distance corresponding to the display point to determine the displacement distance corresponding to the display point.

[0122] Step S122c: determining the displacement pixel corresponding to the display point based on the display point and the target display point.

[0123] Here, the displacement pixels corresponding to the display point refers to the number of pixels that the display point is displaced relative to the target display point. The displacement pixels corresponding to the display point can be any appropriate size, for example, (3, 3), (-6, -5), etc.

[0124] In some embodiments, the coordinate offset between the pixel coordinates of the display point and the pixel coordinates of the target display point can be determined first, and then the displacement pixel corresponding to the display point can be determined by the coordinate offset between the pixel coordinates of the display point and the pixel coordinates of the target display point.

[0125] In some embodiments, when measuring the pixel coordinates of a display point, a pixel coordinate system may be established with the upper left corner of the display unit as the origin, and a pixel grid as the minimum unit of the pixel coordinate system.

[0126] In some implementations, the coordinate offset (x, y) may be used as the displacement pixel corresponding to the display point, wherein x represents the horizontal displacement of the target display point, a positive x represents the target display point displacement x grids to the right, a negative x represents the target display point displacement x grids to the left, and y represents the vertical displacement of the target display point, a positive y represents the target display point displacement y grids downward, and a negative y represents the target display point displacement y grids upward.

[0127] Step S122d: determining the displacement corresponding to the display point based on the display point and the target display point.

[0128] Here, the displacement amount corresponding to the display point is data including the displacement direction and the displacement distance. The displacement amount corresponding to the display point can be any appropriate data, for example, 0.02 mm diagonally moving 45° to the lower left, 0.01 mm upward, etc.

[0129] In some embodiments, the displacement distance corresponding to the display point, the displacement pixel corresponding to the display point, and the displacement amount corresponding to the display point may be the same or in a proportional relationship.

[0130] In some embodiments, the external display device identification data information corresponding to the display unit can be obtained first, and then the pixel attribute information can be determined based on the external display device identification data information corresponding to the display unit, and then the pixel size corresponding to the display point can be determined based on the pixel attribute information, and finally the displacement corresponding to the display point can be determined based on the display point, the target display point and the pixel size corresponding to the display point.

[0131] In the implementation manner of the present application, the displacement information including the displacement direction corresponding to the display point, the displacement distance corresponding to the display point, the displacement pixel corresponding to the display point, and the displacement amount corresponding to the display point is determined by displaying the point and the target display point. The corresponding method can be selected according to actual needs to determine the displacement information, thereby improving the flexibility of the displacement information and broadening the application scenarios of the data processing method.

[0132] In some embodiments, step S122d includes steps S122d1 to S122d3, wherein:

[0133] Step S122d1, determining pixel attribute information based on the external display device identification data information corresponding to the display unit.

[0134] Here, the extended display identification data (EDID) information refers to the display device data transmitted in the DDC communication, which is a standard data format of the Video Electronics Standards Association. EDID information can be used to describe various parameters and configuration information of the display unit. EDID information may include, but is not limited to: at least one of the performance parameters of the display unit, the supplier information of the display unit, the maximum image size of the display unit, the color setting of the display unit, the frequency range limit of the display unit, the display name of the display unit, and the character string of the serial number of the display unit.

[0135] Pixel attribute information refers to the characteristics and information of a pixel, and may include but is not limited to at least one of: pixel color, pixel position, pixel size, and the like.

[0136] In some implementations, EDID information may be read from the display unit, and then pixel property information may be obtained from the EDID information.

[0137] Step S122d2, based on the pixel attribute information, determine the pixel size corresponding to the display point.

[0138] Here, the pixel size refers to the physical size of a single pixel grid on the display unit, that is, the size of the pixel grid. The pixel size can be any suitable size, for example, 8 bits, 16 bits, 32 bits, etc.

[0139] In some embodiments, the pixel size is related to the resolution of the display unit and the size of the display unit. For display units with the same resolution, the larger the size of the display unit, the larger the pixel size, and the smaller the size of the display unit, the smaller the pixel size.

[0140] In some implementations, the pixel size corresponding to the display point may be determined according to the size of the display unit and the resolution of the display unit.

[0141] In some implementations, the pixel size of the display unit may be read from the pixel attribute information, and then the pixel size of the display unit may be used as the pixel size corresponding to the display point.

[0142] Step S122d3, determining the displacement corresponding to the display point based on the display point, the target display point and the pixel size corresponding to the display point.

[0143] Here, the coordinate offset between the coordinates of the display point and the coordinates of the target display point may be determined first, and then the displacement corresponding to the display point may be determined based on the coordinate offset and the pixel size corresponding to the display point.

[0144] In some implementations, the coordinate offset (x, y) may be used as the displacement pixel corresponding to the display point, wherein x represents the horizontal displacement of the target display point, a positive x represents the target display point displacement x grids to the right, a negative x represents the target display point displacement x grids to the left, and y represents the vertical displacement of the target display point, a positive y represents the target display point displacement y grids downward, and a negative y represents the target display point displacement y grids upward.

[0145] In some embodiments, the actual displacement distance in the horizontal direction and the actual displacement distance in the vertical direction of the display point can be determined respectively according to the coordinate offset and the pixel size corresponding to the display point, and then the displacement amount corresponding to the display point can be determined according to the actual displacement distance in the horizontal direction and the actual displacement distance in the vertical direction of the display point.

[0146] In some embodiments, the actual displacement distance of the display point in the horizontal direction can be determined according to the first product, and the actual displacement distance of the display point in the vertical direction can be determined according to the second product. The first product refers to the product between the coordinate offset x and the pixel size corresponding to the display point, and the second product refers to the product between the coordinate offset y and the pixel size corresponding to the display point. In implementation, the first product can be used as the actual displacement distance of the display point in the horizontal direction, and the second product can be used as the actual displacement distance of the display point in the vertical direction.

[0147] In some embodiments, the actual displacement distance of the display point in the horizontal direction and the second product can be used as the actual displacement distance of the display point in the vertical direction. Determine the displacement corresponding to the display point, where A is the first product, B is the second product, and D is the displacement corresponding to the display point.

[0148] In an implementation manner of the present application, pixel attribute information is determined by external display device identification data information corresponding to the display unit, and then the pixel size corresponding to the display point is determined by the pixel attribute information. The display point and the target display point are combined to determine the displacement corresponding to the display point, thereby improving the accuracy of the displacement corresponding to the display point.

[0149] In some embodiments, step S123 includes at least one of steps S123a to S123d, wherein:

[0150] Step S123a, determining the displacement compensation direction corresponding to the touch point based on the displacement direction corresponding to the display point; wherein the displacement compensation direction corresponding to the touch point is opposite to the displacement direction corresponding to the display point.

[0151] Here, the displacement compensation direction corresponding to the touch point may include but is not limited to: at least one of upward displacement, downward displacement, leftward displacement, rightward displacement, oblique displacement, etc.

[0152] In some embodiments, the displacement compensation direction corresponding to the touch point may be opposite to the displacement direction corresponding to the display point. For example, when the displacement compensation direction corresponding to the touch point is upward displacement, the displacement direction corresponding to the display point is downward displacement.

[0153] Step S123b, determining the displacement compensation distance corresponding to the touch point based on the displacement distance corresponding to the display point; wherein the displacement distance corresponding to the display point is the same as or proportional to the displacement compensation distance corresponding to the touch point.

[0154] Here, the displacement compensation distance corresponding to the touch point can be any appropriate size, for example, 0.01 mm, 0.03 mm, etc.

[0155] In some implementations, the displacement distance corresponding to the display point and the displacement compensation distance corresponding to the touch point may be the same or in a proportional relationship.

[0156] In some embodiments, a base point may be selected at the same position of the display unit and the touch unit to establish a coordinate system, and after determining the displacement distance corresponding to the display point, the displacement distance corresponding to the display point may be used as the displacement compensation distance corresponding to the touch point.

[0157] Step S123c, determining the displacement compensation pixel corresponding to the touch point based on the displacement pixel corresponding to the display point; wherein the displacement pixel corresponding to the display point is the same as or proportional to the displacement compensation pixel corresponding to the touch point.

[0158] Here, the displacement compensation pixel corresponding to the touch point can be of any appropriate size, for example, (6, 3), (-1, 5), etc.

[0159] In some implementations, the displacement pixels corresponding to the display points and the displacement compensation pixels corresponding to the touch points may be the same or in a proportional relationship.

[0160] In some embodiments, the display unit has corresponding pixel attribute information, and the touch unit may also have corresponding pixel attribute information. The displacement compensation pixel corresponding to the touch point may be determined based on the difference information between the pixel attribute information of the display unit and the pixel attribute information of the touch unit and the displacement pixel corresponding to the display point. For example, when the pixel size of the display unit is the same as the pixel size of the touch unit, the displacement pixel corresponding to the display point may be the same as the displacement compensation pixel corresponding to the touch point. For another example, when the resolution of the display unit is proportional to the resolution of the touch unit, the displacement pixel corresponding to the display point may be proportional to the displacement compensation pixel corresponding to the touch point.

[0161] Step S123d, determining the displacement compensation amount corresponding to the touch point based on the displacement amount corresponding to the display point; wherein the displacement amount corresponding to the display point is the same as or proportional to the displacement compensation amount corresponding to the touch point.

[0162] Here, the displacement compensation amount corresponding to the touch point is data including the displacement direction and displacement distance. The displacement amount corresponding to the touch point can be any appropriate data, for example, 0.01 mm diagonally moving 30° to the lower right, 0.03 mm downward, etc.

[0163] In some implementations, the displacement amount corresponding to the display point and the displacement compensation amount corresponding to the touch point may be the same or in a proportional relationship.

[0164] In some embodiments, the displacement direction in the displacement amount corresponding to the display point and the displacement direction in the displacement compensation amount corresponding to the touch point can be opposite, and the displacement distance in the displacement amount corresponding to the display point and the displacement distance in the displacement compensation amount corresponding to the touch point can be the same or proportional.

[0165] In some implementations, the displacement compensation distance corresponding to the touch point, the displacement compensation pixel corresponding to the touch point, and the displacement compensation amount corresponding to the touch point may be the same or in a proportional relationship.

[0166] In an implementation manner of the present application, a variety of displacement compensation information including displacement compensation direction, displacement compensation distance, displacement compensation pixels and displacement compensation amount are determined by using displacement information corresponding to different display points. The corresponding method can be selected according to actual needs to determine the displacement compensation information, thereby improving the flexibility of the displacement compensation information.

[0167] In some embodiments, the method further comprises step S106 and step S107, wherein:

[0168] Step S106 , determining deviation information between the display unit and the touch unit based on the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit.

[0169] Here, the attribute information corresponding to the display unit may include but is not limited to: at least one of the size of the display unit, the pixel size of the display unit, the resolution of the display unit, etc. The attribute information corresponding to the touch unit may include but is not limited to: at least one of the size of the touch unit, the pixel size of the touch unit, the resolution of the touch unit, etc.

[0170] In some embodiments, the difference information between the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit can be determined first, and then the difference information between the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit can be used as the deviation information between the display unit and the touch unit.

[0171] In some embodiments, the difference information between the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit can be determined by a first ratio, wherein the first ratio refers to the ratio between the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit. The first ratio can be any suitable size, for example, 1.5, 0.6, etc. In implementation, the difference information between the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit can be determined based on the first ratio, the weighting / logarithm / index of the first ratio, etc. For example, the first ratio is used as the difference information between the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit.

[0172] Step S107, determining a proportional relationship based on the deviation information between the display unit and the touch unit.

[0173] Here, the deviation information between the display unit and the touch unit may include but is not limited to: at least one of the deviation information between the size of the display unit and the size of the touch unit, the deviation information between the pixel size of the display unit and the pixel size of the touch unit, the deviation information between the resolution of the display unit and the resolution of the touch unit, etc. The proportional relationship refers to the ratio corresponding to the deviation information between the display unit and the touch unit, and the proportional relationship can be any appropriate size, for example, 0.5 times, 2 times, etc.

[0174] In some implementations, the deviation information, the weighting / logarithm / fetching of the deviation information, etc. may be used as a proportional relationship. For example, the deviation information is used as a proportional relationship.

[0175] In the implementation manner of the present application, the proportional relationship is determined by the deviation information between the display unit and the touch unit, and then the displacement compensation information corresponding to the touch point can be determined according to the proportional relationship, thereby improving the accuracy of the displacement compensation information.

[0176] In some implementations, the step of “performing displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point” in step S103 includes at least one of steps S103a to S103d, wherein:

[0177] Step S103a, performing displacement compensation on the touch point based on the displacement compensation direction corresponding to the touch point.

[0178] Here, the displacement compensation direction corresponding to the touch point may be used as the target direction during displacement compensation, so as to perform displacement compensation on the touch point in the target direction.

[0179] In some implementations, a certain number of pixels may be compensated in the displacement direction corresponding to the touch point based on the pixel size corresponding to the touch unit and the displacement direction corresponding to the touch point, so as to perform displacement compensation on the touch point based on the displacement compensation direction corresponding to the touch point.

[0180] Step S103b: performing displacement compensation on the touch point based on the displacement compensation distance corresponding to the touch point.

[0181] Here, the displacement compensation distance corresponding to the touch point can be used as the target distance during displacement compensation. The touch point is used as a base point and the target distance is superimposed on the touch point to perform displacement compensation on the touch point.

[0182] In some embodiments, the displacement compensation distance corresponding to the touch point has a corresponding compensation direction. When performing displacement compensation on the touch point based on the displacement compensation distance corresponding to the touch point, it is necessary to superimpose the displacement compensation distance on the compensation direction corresponding to the displacement compensation distance.

[0183] Step S103c: performing displacement compensation on the touch point based on the displacement compensation pixel corresponding to the touch point.

[0184] Here, the displacement compensation pixel corresponding to the touch point may be used as the target pixel during displacement compensation, and the pixel coordinates corresponding to the target pixel may be superimposed on the touch point to perform displacement compensation on the touch point.

[0185] In some embodiments, the pixel coordinates corresponding to the target pixel can be divided into a horizontal coordinate and a vertical coordinate. The horizontal coordinate is used to represent the displacement compensation pixel in the horizontal direction, and the vertical coordinate is used to represent the displacement compensation pixel in the vertical direction. The pixel coordinates can be positive or negative.

[0186] Step S103d: performing displacement compensation on the touch point based on the displacement compensation amount corresponding to the touch point.

[0187] Here, the displacement compensation amount corresponding to the touch point may be used as the target displacement amount during displacement compensation, and the touch point may be subjected to displacement compensation according to the displacement direction and displacement distance of the target displacement amount.

[0188] Figure 5 A schematic diagram of displacement compensation provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the target display point 21, the fourth touch point 51 and the target touch point 52 are represented by pixel coordinates. The target display point 21, the fourth touch point 51 and the target touch point 52 are an area in the figure. The target display point 21 is generated in the display unit, the fourth touch point 51 and the target touch point 52 are generated in the touch unit, and the fourth touch point 51 is determined based on the touch operation. In a bird's-eye view, the fourth touch point 51 is subjected to displacement compensation on the x-axis and the y-axis respectively to obtain the target touch point 52. The coordinates of a point 511 in the fourth touch point 51 are (13, 9). After displacement compensation, a point 511 in the fourth touch point 51 corresponds to a point 521 in the target touch point 52. The coordinates of point 521 are (5, 3), and the target touch point 52 corresponds to the same area as the target display point 21.

[0189] In the implementation manner of the present application, displacement compensation is performed on the touch point by using a variety of displacement compensation information including displacement compensation direction, displacement compensation distance, displacement compensation pixels and displacement compensation amount. The corresponding displacement compensation information can be selected according to actual needs, thereby improving the flexibility of displacement compensation and broadening the application scenarios of the data processing method.

[0190] The following describes the application of the data processing method provided in the embodiment of the present application in an actual scenario, taking an electronic device having a touch unit attached to a display unit as an example.

[0191] At present, OLED integrated display units with built-in pixel shift technology are widely used in electronic devices, and the integrated display units only have display functions. In the related art, touch control can be achieved on the display unit by replacing the display unit or superimposing a touch control unit on the display unit. However, when replacing the display unit, the original display unit needs to be removed and the replaced display unit needs to support touch control, which has the problems of complex operation and high requirements for the display unit. At the same time, when the display point of the display unit is displaced, the touch control unit does not know that the display point of the display unit has moved, so that the touch point and the display point are inconsistent. For scenes that require precise clicks (for example, games, drawing, etc.), there is a problem of low touch accuracy, which may affect the user experience.

[0192] The embodiment of the present application provides a data processing method, which first determines the touch point corresponding to the touch operation in response to the touch operation received on the touch unit, then determines the displacement compensation information corresponding to the touch point in response to the displacement of the display point corresponding to the touch point on the display unit, and finally performs displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain the target touch point corresponding to the touch operation. In this way, on the one hand, since the touch point is displacement compensated based on the displacement compensation information corresponding to the touch point, the target touch point corresponds to the target display point of the display unit, which improves the accuracy of the touch, thereby meeting the demand for precise clicking and enhancing the user experience; on the other hand, since the data processing method of the present application realizes the compensation of the touch point without replacing the display unit, it reduces the complexity of the operation and the demand for the display unit. At the same time, the method can be applied to different electronic devices, which improves the versatility of the data processing method.

[0193] Figure 6 A schematic diagram of an implementation process of a data processing method provided in an embodiment of the present application Figure 2 ,like Figure 6 As shown, the method includes steps S201 to S208, wherein:

[0194] Step S201, laminating the display unit and the touch unit;

[0195] Step S202, performing a display operation in a first area of ​​the display unit, and receiving a touch operation in a second area of ​​the touch unit;

[0196] Here, the positions of the first area and the second area have a corresponding relationship.

[0197] Step S203, in response to the displacement of the target display point, storing the displacement information corresponding to the target display point in a preset register;

[0198] Step S204, obtaining displacement information corresponding to the display point from a preset register;

[0199] Step S205, determining the pixel size corresponding to the display point based on the external display device identification data information corresponding to the display unit;

[0200] Step S206, determining the displacement amount corresponding to the display point based on the displacement information corresponding to the display point and the pixel size corresponding to the display point;

[0201] Step S207, using the displacement corresponding to the display point as displacement compensation information corresponding to the touch point;

[0202] Step S208 , performing displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain a target touch point corresponding to the touch operation, so that the target touch point corresponds to the target display point of the display unit.

[0203] Based on the above embodiments, the present application also provides an electronic device, Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the electronic device 700 includes a touch module 701 and a display module 702, the touch module 701 is attached to the display module 702, the touch module 701 includes a touch unit 7011 and a first processing unit 7012, and the display module 702 includes a display unit 7021, a second processing unit 7022 and a preset register 7023, wherein:

[0204] The touch module 701 is used to respond to the touch operation received on the touch unit and determine the touch point corresponding to the touch operation through the first processing unit;

[0205] The display module 702 is used to determine the displacement compensation information corresponding to the touch point through the second processing unit in response to the displacement of the display point corresponding to the touch point on the display unit;

[0206] The touch module 701 is also used to perform displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain the target touch point corresponding to the touch operation, so that the target touch point corresponds to the target display point of the display unit; wherein the touch point is different from the target touch point.

[0207] Here, the touch module can be attached to the display module by OCA (Optically Clear Adhesive) or OCR (Optically Clear Resin).

[0208] The touch unit may be any suitable set for implementing touch control. A touch operation is an operation performed on the touch unit. A touch point is a touch click position in the touch unit based on the touch operation feedback. In some embodiments, a touch point may be an area, and the touch point may include at least one point.

[0209] In some embodiments, the touch control unit may include but is not limited to a touch screen. The touch screen may include but is not limited to at least one of a capacitive touch screen, a resistive touch screen, an infrared and ultrasonic touch screen, an optical touch screen, and the like.

[0210] In some embodiments, the points in the touch point position can be represented by any suitable form, such as Cartesian coordinates, polar coordinates, pixel coordinates, etc.

[0211] The displacement compensation information corresponding to the touch point may include but is not limited to: at least one of: the displacement compensation direction corresponding to the touch point, the displacement compensation distance corresponding to the touch point, the displacement compensation pixel corresponding to the touch point, the displacement compensation amount corresponding to the touch point, etc.

[0212] In some embodiments, there is a corresponding relationship between the target touch point obtained after the displacement compensation of the touch point and the position of the target display point of the display unit, and the target touch point and the target display point at least partially overlap.

[0213] In an embodiment of the present application, the touch module determines the touch point corresponding to the touch operation in response to the touch operation received in the touch unit, and the display module determines the displacement compensation information corresponding to the touch point in response to the displacement of the display point corresponding to the touch point in the display unit, so that the touch module performs displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain the target touch point corresponding to the touch operation. In this way, on the one hand, since the touch point is displacement compensated based on the displacement compensation information corresponding to the touch point, the target touch point corresponds to the target display point of the display unit, which improves the accuracy of the touch, thereby meeting the demand for precise clicking and enhancing the user experience; on the other hand, since the electronic device of the present application realizes the compensation of the touch point without replacing the display unit, it reduces the complexity of operation and the demand for the display unit.

[0214] In some embodiments, the display module 702 is also used to perform display operations in a first area of ​​the display unit; the touch module 701 is also used to receive touch operations in a second area of ​​the touch unit; wherein the positions of the first area and the second area have a corresponding relationship; the touch point is determined based on the touch position corresponding to the touch operation; wherein the touch point at least partially overlaps with the display point.

[0215] In some embodiments, the display module 702 is further used to determine the display point in response to the displacement of the target display point; determine the displacement information corresponding to the display point; and determine the displacement compensation information corresponding to the touch point based on the displacement information corresponding to the display point; wherein the display unit performs display based on the display point, and the display point is different from the target display point.

[0216] In some embodiments, the display module 702 is also used to determine the displacement direction corresponding to the display point based on the display point and the target display point; determine the displacement distance corresponding to the display point based on the display point and the target display point; determine the displacement pixel corresponding to the display point based on the display point and the target display point; determine the displacement amount corresponding to the display point based on the display point and the target display point.

[0217] In some embodiments, the display module 702 is also used to determine pixel attribute information based on the external display device identification data information corresponding to the display unit; determine the pixel size corresponding to the display point based on the pixel attribute information; determine the displacement corresponding to the display point based on the display point, the target display point and the pixel size corresponding to the display point.

[0218] In some embodiments, the display module 702 is further used to determine the displacement compensation direction corresponding to the touch point based on the displacement direction corresponding to the display point; wherein the displacement compensation direction corresponding to the touch point is opposite to the displacement direction corresponding to the display point;

[0219] Based on the displacement distance corresponding to the display point, the displacement compensation distance corresponding to the touch point is determined; wherein the displacement distance corresponding to the display point is the same as or proportional to the displacement compensation distance corresponding to the touch point; based on the displacement pixels corresponding to the display point, the displacement compensation pixels corresponding to the touch point are determined; wherein the displacement pixels corresponding to the display point are the same as or proportional to the displacement compensation pixels corresponding to the touch point; based on the displacement amount corresponding to the display point, the displacement compensation amount corresponding to the touch point is determined; wherein the displacement amount corresponding to the display point is the same as or proportional to the displacement compensation amount corresponding to the touch point.

[0220] In some embodiments, the display module 702 is further used to determine the deviation information between the display unit and the touch unit based on the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit; and determine the proportional relationship based on the deviation information between the display unit and the touch unit.

[0221] In some embodiments, the touch module 701 is further used to perform displacement compensation on the touch point based on the displacement compensation direction corresponding to the touch point; perform displacement compensation on the touch point based on the displacement compensation distance corresponding to the touch point; perform displacement compensation on the touch point based on the displacement compensation pixel corresponding to the touch point; perform displacement compensation on the touch point based on the displacement compensation amount corresponding to the touch point.

[0222] In some implementations, the display module 702 is further configured to store displacement information corresponding to the target display point in a preset register in response to the displacement of the target display point; and obtain the displacement information corresponding to the display point from the preset register.

[0223] The description of the electronic device embodiment above is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the electronic device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0224] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.

[0225] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0226] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the above method when executing the computer program.

[0227] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the above method when executed by a processor. The computer-readable storage medium may be transient or non-transient.

[0228] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.

[0229] It should be noted that Figure 8A schematic diagram of a hardware entity of an electronic device provided in an embodiment of the present application is shown in the figure. As shown in the figure, the hardware entity of the electronic device 800 includes: a processor 801, a communication interface 802 and a memory 803, wherein:

[0230] The processor 801 generally controls the overall operation of the electronic device 800 .

[0231] The communication interface 802 enables the electronic device to communicate with other terminals or servers through a network.

[0232] The memory 803 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or processed by the processor 801 and each module in the electronic device 800 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission can be performed between the processor 801, the communication interface 802, and the memory 803 through the bus 804.

[0233] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0234] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.

[0235] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0236] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0237] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0238] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0239] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, read-only memories, magnetic disks or optical disks.

[0240] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0241] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A data processing method, the method comprising: In response to a touch operation received at the touch unit, determining a touch point corresponding to the touch operation; In response to the displacement of a display point corresponding to the touch point on the display unit, determining displacement compensation information corresponding to the touch point; The touch point is displacement compensated based on the displacement compensation information corresponding to the touch point to obtain a target touch point corresponding to the touch operation, so that the target touch point corresponds to the target display point of the display unit; wherein the touch point is different from the target touch point.

2. The method according to claim 1, further comprising: Performing a display operation in a first area of ​​the display unit; A touch operation is received in a second area of ​​the touch unit; wherein positions of the first area and the second area have a corresponding relationship; The step of determining a touch point corresponding to a touch operation in response to a touch operation received at a touch unit includes: The touch point is determined based on the touch position corresponding to the touch operation; wherein the touch point at least partially overlaps with the display point.

3. The method according to claim 1, wherein the step of determining the displacement compensation information corresponding to the touch point in response to the displacement of the display point corresponding to the touch point on the display unit comprises: In response to the displacement of the target display point, determining the display point; Determining displacement information corresponding to the display point; Based on the displacement information corresponding to the display point, the displacement compensation information corresponding to the touch point is determined; wherein the display unit performs display based on the display point, and the display point is different from the target display point.

4. According to the method of claim 3, the determining the displacement information corresponding to the display point comprises at least one of the following: Based on the display point and the target display point, determining a displacement direction corresponding to the display point; Based on the display point and the target display point, determining a displacement distance corresponding to the display point; Based on the display point and the target display point, determining a displacement pixel corresponding to the display point; Based on the display point and the target display point, a displacement corresponding to the display point is determined.

5. The method according to claim 4, wherein determining the displacement corresponding to the display point based on the display point and the target display point comprises: Determining pixel attribute information based on external display device identification data information corresponding to the display unit; Based on the pixel attribute information, determining the pixel size corresponding to the display point; Based on the display point, the target display point and the pixel size corresponding to the display point, a displacement corresponding to the display point is determined.

6. The method according to claim 4, wherein determining the displacement compensation information corresponding to the touch point based on the displacement information corresponding to the display point comprises at least one of the following: Based on the displacement direction corresponding to the display point, the displacement compensation direction corresponding to the touch point is determined; wherein, The displacement compensation direction corresponding to the touch point is opposite to the displacement direction corresponding to the display point; Based on the displacement distance corresponding to the display point, determining the displacement compensation distance corresponding to the touch point; wherein the displacement distance corresponding to the display point is the same as or proportional to the displacement compensation distance corresponding to the touch point; Based on the displacement pixels corresponding to the display point, the displacement compensation pixels corresponding to the touch point are determined; wherein the displacement pixels corresponding to the display point are the same as or proportional to the displacement compensation pixels corresponding to the touch point; Based on the displacement amount corresponding to the display point, the displacement compensation amount corresponding to the touch point is determined; wherein the displacement amount corresponding to the display point is the same as or proportional to the displacement compensation amount corresponding to the touch point.

7. The method according to claim 6, further comprising: Determining deviation information between the display unit and the touch unit based on the attribute information corresponding to the display unit and the attribute information corresponding to the touch unit; The proportional relationship is determined based on deviation information between the display unit and the touch control unit.

8. The method according to claim 6, wherein the performing displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point comprises at least one of the following: Performing displacement compensation on the touch point based on the displacement compensation direction corresponding to the touch point; Performing displacement compensation on the touch point based on the displacement compensation distance corresponding to the touch point; Performing displacement compensation on the touch point based on the displacement compensation pixel corresponding to the touch point; The touch point is subjected to displacement compensation based on the displacement compensation amount corresponding to the touch point.

9. The method according to any one of claims 3 to 8, further comprising: In response to the displacement of the target display point, storing the displacement information corresponding to the target display point in a preset register; The determining the displacement information corresponding to the display point position includes: The displacement information corresponding to the display point is obtained from the preset register.

10. An electronic device, comprising a touch module and a display module, wherein the touch module is attached to the display module, the touch module comprises a touch unit and a first processing unit, and the display module comprises a display unit, a second processing unit, and a preset register, wherein: The touch module is used to respond to the touch operation received on the touch unit and determine the touch point corresponding to the touch operation through the first processing unit; The display module is used to determine the displacement compensation information corresponding to the touch point through the second processing unit in response to the displacement of the display point corresponding to the touch point on the display unit; The touch module is also used to perform displacement compensation on the touch point based on the displacement compensation information corresponding to the touch point to obtain a target touch point corresponding to the touch operation, so that the target touch point corresponds to the target display point of the display unit; wherein the touch point is different from the target touch point.