The present disclosure claims priority to Chinese patent application No. 202010362845.0, filed on Apr. 30, 2020 and entitled “Data Processing Method, Device, and Intelligent Interactive Device”, the entire contents of which are incorporated herein by reference in its entirety.
Embodiments of the present disclosure generally relate to the display technical field, and more particularly, to a data processing method and device and an intelligent inactive device.
With the development of science and technologies, many scenarios such as conferences, teaching, or commercial exhibition uses displays to replace traditional whiteboards, which can greatly improve the efficiency of work, teaching and conferences.
The current displays can be touched by a hand and a writing pen. In some scenarios, the hand and the pen can write at the same time. If the pen-holding hand touches or is very close to the displays, unnecessary touch traces will be generated, which will affect the written contents.
An objective of the present disclosure is to provide a data processing method and device and an intelligent interactive device so as to at least overcome the above-mentioned deficiencies in related art that the pen-holding hand affects written contents.
In some embodiments of the present disclosure, there is provided a data processing method performed by a display having a touch function. The method includes:
obtaining a writing track point position when a writing pen writes on the display, and an inclination angle of the writing pen relative to the display when the writing pen writes on the display;
obtaining a touch track point position of a user on the display at a current moment;
obtaining a holding parameter for holding the writing pen; and
determining a shielding area for a touch at the current moment according to the holding parameter, the inclination angle and the writing track point position, wherein the writing track point position is received at the current moment or within a set time period threshold earlier than the current moment;
wherein when touch track point position is located in the shielding area, a track of the touch track point position is not displayed on the display.
In an exemplary embodiment of the present disclosure, the holding parameter includes a distance between a pen-holding endpoint where a user holds the writing pen and a pen tip, and a radius of a fist shape.
In an exemplary embodiment of the present disclosure, determining the shielding area for the touch at the current moment according to the holding parameter, the inclination angle and the writing track point position includes:
determining an orthographic projection point of the pen-holding endpoint on the display according to the writing track point position, the inclination angle and the distance between the pen-holding endpoint and the pen tip; and
determining the shielding area according to the radius of the fist shape and the orthographic projection point.
In an exemplary embodiment of the present disclosure, determining the orthographic projection point of the pen-holding endpoint on the display according to the writing track point position, the inclination angle and the distance between the pen-holding endpoint and the pen tip includes:
establishing a rectangular coordinate system with the writing track point position at the current moment as an origin, wherein a horizontal axis of the rectangular coordinate system is parallel to a sky side of the display, and a vertical axis of the rectangular coordinate system is perpendicular to the horizontal axis; and
performing calculations according to the following formula:
where Dx is an abscissa value of the orthographic projection point in the rectangular coordinate system, Dy is an ordinate value of the orthographic projection point in the rectangular coordinate system, L is the distance between the pen-holding endpoint and the pen tip, α is an included angle between the writing pen and the horizontal axis, and β is an included angle between the writing pen and the vertical axis.
In an exemplary embodiment of the present disclosure, before obtaining the touch track point position of the user on the display at the current moment, the method further includes:
obtaining a type of the pen-holding endpoint, wherein the type of the pen-holding endpoint is a second pen-holding endpoint or a first pen-holding endpoint, and a distance between the first pen-holding endpoint and the pen tip is smaller than a distance between the second pen-holding endpoint and the pen tip; and
obtaining a shape of the shielding area, wherein the shape of the shielding area is a circle, an ellipse, a semicircle, a sector or a rectangle.
In an exemplary embodiment of the present disclosure, the pen-holding endpoint is the second pen-holding endpoint, and the shape of the shielding area is the circle, the semicircle or the sector;
wherein determining the shielding area according to the radius of the fist shape and the orthographic projection point includes:
determining that the shielding area is a circle, a semicircle or a sector with the orthographic projection point as a center and the radius of the fist shape as a radius.
In an exemplary embodiment of the present disclosure, the pen-holding endpoint is the first pen-holding endpoint, and the shape of the shielding area is the semicircle or the rectangle;
wherein determining the shielding area according to the radius of the fist shape and the orthographic projection point includes:
determining a boundary point of the shielding area according to the radius of the fist shape and the orthographic projection point;
determining a size determination value of the shielding area according to the boundary point and the writing track point position; and
determining the shielding area according to the boundary point and the size determination value.
In an exemplary embodiment of the present disclosure, determining the boundary point of the shielding area according to the radius of the fist shape and the orthographic projection point includes:
the boundary point being located on an extension line of a connecting line for connecting the orthographic projection point and the writing track point position, wherein the extension line is an extension line with the orthographic projection point as a starting point, and a distance between the boundary point and the orthographic projection point does not exceed the radius of the fist shape.
In an exemplary embodiment of the present disclosure, the shape of the shielding area is the semicircle;
wherein determining the size determination value of the shielding area according to the boundary point and the writing track point position includes:
determining that the size determination value of the shielding area is a radius of the semicircle, wherein the radius is a distance between the writing track point position and the boundary point.
In an exemplary embodiment of the present disclosure, determining the shielding area according to the boundary point and the size determination value includes:
determining a semicircle with the boundary point as a center and away from the orthographic projection point as the shielding area.
In an exemplary embodiment of the present disclosure, the shape of the shielding area is the rectangle;
wherein determining the size determination value of the shielding area according to the boundary point and the writing track point position includes:
determining that the size determination value is a length and width of the rectangle, wherein the width is a distance between the writing track point position and the boundary point, and the length is n times the width, and n is a positive integer greater than or equal to 1.
In an exemplary embodiment of the present disclosure, determining the shielding area according to the boundary point and the size determination value includes:
determining that the boundary point is a center point of a long side of the rectangle, wherein the other long side of the rectangle is located on a side of the boundary point away from the orthographic projection point.
In an exemplary embodiment of the present disclosure, parameters of the pen-holding endpoint are pre-stored, and the parameters of the pen-holding endpoint includes a plurality of first pen-holding endpoint values or a plurality of second pen-holding endpoints values, and the first pen-holding endpoint values are less than the second pen-holding endpoint values;
a plurality of the pre-stored first pen-holding endpoint values are obtained, and a plurality of first sub-shielding areas are formed according to the plurality of first pen-holding endpoint values; and a range covered by the plurality of the first sub-shielding areas is determined the shielding for the touch at the current moment; or
a plurality of the pre-stored second pen-holding endpoint values are obtained, and a plurality of second sub-shielding areas are formed according to the plurality of second pen-holding endpoint values; and a range covered by the plurality of the second sub-shielding areas is determined the shielding for the touch at the current moment.
In an exemplary embodiment of the present disclosure, the method further includes:
in response to a pen-lifting operation of the writing pen, obtaining a duration of the pen-lifting operation, and if the duration exceeds the set time period threshold, cancelling the shielding area for the touch.
In some embodiments of the present disclosure, there is provided a touch data processing device, including:
a first receiving module configured to obtain a writing track point position when a writing pen writes on a display, and an inclination angle of the writing pen relative to the display when the writing pen writes on the display;
a second receiving module configured to obtain a touch track point position of a user on the display at a current moment;
an obtaining module configured to obtain a holding parameter for holding the writing pen;
a determination module configured to determine a shielding area for a touch at the current moment according to the holding parameter, the inclination angle and the writing track point position, wherein the writing track point position is received at the current moment or within a set time period threshold earlier than the current moment; and
a processing module configured to, when touch track point position is located in the shielding area, not display a track of the touch track point position on the display.
In some embodiments of the present disclosure, there is provided an intelligent interactive device, including:
a display with a touch function, wherein the display is used to receive a touch track point position of a user, a writing track point position of a writing pen and an inclination angle of the writing pen relative to the display when the writing pen writs on the display, and provide the touch track point position, the writing track point position and the inclination angle to a processor; and
the processor configured to perform processing according to the data processing method according to any one of the above embodiments and perform displaying on the display.
In an exemplary embodiment of the present disclosure, the intelligent interactive device further includes:
a writing pen configured to write on the display, and capable of detecting the inclination angle of the writing pen and transmitting the inclination angle to the processor.
The accompanying drawings, which are incorporated in and constitute a part of the description, illustrate embodiments consistent with the disclosure and serve to explain principles of the disclosure together with the description. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can be obtained from these drawings without creative effort.
Based on the objective, technical solutions and effects of the present disclosure, the following different embodiments are proposed to illustrate the objective of the present disclosure more clearly. Example embodiments will now be described more clearly with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other situations, well-known solutions are shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The data processing method according to embodiments of the present disclosure is applicable to a display 2 with a touch function. A user may touch the display 2 by a finger or by a writing pen 1. The display 2 may be operated by a single person, for example, in a teacher's explanation stage in a teaching process, an individual speaking stage in a meeting, a one-person explanation stage in a commercial presentation, and so on. Alternatively, the display 2 may be operated by multiple persons, for example, a multiple-student writing stage in a teaching process, a group discussion stage in a meeting, and multi-person explanation stage in a commercial presentation, etc. In the multi-person operations, some users may use the writing pen 1 to operate, while other users may perform operations with fingers. Thus, it is impossible to shield a finger operation during the operation of the writing pen. However, it is needed to avoid false touches by the fingers of the users who operate with the writing pen. The data processing method is suitable for when the display 2 displays a writing page, and of course, the display 2 can also be used when the display 2 displays a touch page.
The display 2 may include one or more of electromagnetic touch, resistive touch, infrared touch and capacitive touch.
The writing pen 1 is used for writing and touching on the display. The writing pen 1 may be either electromagnetic or capacitive. When the writing pen 1 is an electromagnetic type, the display 2 needs to include an electromagnetic touch module; when the writing pen 1 is a capacitive type, the display 2 needs to include a capacitive touch module. Finger touch can be achieved in a different way than the writing pen.
An exemplary embodiment first provides a data processing method. Referring to
In step S10, a writing track point position A when the writing pen 1 writes on the display 2, and an inclination angle of the writing pen 1 relative to the display 2 when the writing pen 1 writes on the display 2 are obtained.
In step S20, a touch track point position of a user on the display 2 at a current moment.
In step S30, a holding parameter for holding the writing pen 1 is obtained.
In step S40, a shielding area M for a touch at the current moment is determined according to the holding parameter, the inclination angle and the writing track point position A. The writing track point position A is received at the current moment or within a set time threshold period earlier than the current moment.
In step S50, when touch track point position is located in the shielding area M, a track of the touch track point position is not displayed on the display.
According to the data processing method in the exemplary embodiment, the shielding area M for the touch at the current moment can be automatically calculated according to the holding parameter, the inclination angle and the writing track point position A, and there is no need to input the shielding area information in advance. Thus, the hand holding the pen does interfere with the written contents.
Next, the data processing method according to the exemplary embodiment will be further described.
In step S10, the writing track point position A when the writing pen 1 writes on the display 2, and the inclination angle of the writing pen 1 relative to the display 2 when the writing pen 1 writes on the display 2 are obtained.
Referring to
The writing pen 1 may be an electromagnetic pen, and correspondingly the display 2 is a touch display having an electromagnetic induction function. When the writing pen 1 writes on a writing whiteboard, the writing track point position A on the writing whiteboard is the position of each point on a track formed by the writing pen 1 touching the display 2 when the writing pen 1 writes on or touches the writing whiteboard. The writing track point position A may be a coordinate value of a contact point between the writing pen 1 and the display 2 in the above-mentioned static rectangular coordinate system, and a plurality of coordinate values form the writing track.
The method for detecting the inclination angle according to some embodiments of the present disclosure may include providing an amplifying circuit and a detection instrument such as an N-axis gyroscope or a gravity sensing component in the pen.
The above-mentioned pen according to embodiments of the present disclosure may be an active pen. The active pen is provided with a gravity sensing portion, an amplifying circuit connected with an output end of the gravity sensing portion, and a signal emitting portion connected with an output end of the amplifying circuit. Based on the principle of gravity sensing, the angle between the active pen and the horizontal plane results in a change of a signal output, that is, the output signal changes with the change of the inclination angle of the pen. The angle with the horizontal plane is determined by the gravity sensing portion. According to some embodiments of the present disclosure, the writing pen may be an infrared pen. In this case, the corresponding display 2 is a touch display with an infrared sensing function. The writing pen 1 is provided with an inclination detection circuit, and the inclination detection circuit may detect the inclination angle of the writing pen 1 and transmit the inclination angle to the processor.
In step S20, a touch track point position of a user on the display at a current moment is obtained.
In an exemplary embodiment, the user is a user holding the writing pen, for example, the user uses his hand or foot to hold the pen, or a robot uses its hand to hole the pen.
The touch track point position is the position of each point on the track formed by the contact between a finger and the display 2 when the user writes on or touches the display 2 with the finger. The touch track point position may be a coordinate value of the contact point between the finger and the display 2 in the above-mentioned static rectangular coordinate system, and a plurality of coordinate values form the touch track.
In addition, in an exemplary embodiment, the data processing method may further include: in response to a pen-lifting operation of the writing pen, obtaining a duration of the pen-lifting operation; if the duration exceeds the set time period threshold, cancelling a shielding function for the shielding area; and if the duration does not exceed the set time period threshold, maintaining the shielding function for the shielding area.
Specifically, implementations may be as follows. While receiving the touch track point position, whether the writing track point position A is received may be detected. That is, when receiving the touch signal of the finger, whether there is a writing pen 1 which is performing a writing operation at the same time may be determined, that is, whether the user has a pen-lifting operation is determined. If the writing track point position A is not received, it means that that there is a pen-lifting operation.
After receiving the touch track point position of the user at the current moment, touch data processing may be performed according to whether the writing track point position A is detected. For example, if the writing track point position A is not received, a difference between the current moment when receiving the touch track point position and the last moment when the writing track point position A was last received is calculated. The difference is compared with the set time period threshold. If the difference is greater than the set time period threshold, the setting of the shielding area M is not performed; if the difference is less than the set time period threshold, the setting of the shielding area M is performed next.
In an exemplary embodiment, the set time period threshold is an effective time period for the writing pen 1 to lift off when the writing pen 1 is performing input. The set time period threshold is in the order of tens of milliseconds. When the user performing input with the writing pen 1, the user may lift off the display 2 for a short time. If a finger or a non-writing pen touches the display 2 during the short lift-off time, the shielding area M still needs to be set. This setting can provide a certain time delay for preventing false touches, so as to achieve a better effect of preventing false touches.
In step S30, a holding parameter for holding the writing pen 1 is obtained.
In an exemplary embodiment, the holding parameter may include a parameter indicating the holding of the pen by the user. Exemplarily, the pen-holding parameter may be a distance between a position farthest from the pen tip among positions where the pen is held by the user and the pen tip. Exemplarily, the holding parameter may include a distance between a pen-holding endpoint where a user holds the writing pen 1 and a pen tip, and a radius R of a fist shape. Both the pen-holding endpoint and the radius R of the fist shape are stored in a memory in advance. The pen-holding parameters may be set in a memory in the pen, or may be set on an intelligent display device, or touch display device or the like that interacts with the pen.
The pen-holding endpoint may include a first pen-holding endpoint D and a second pen-holding endpoint B. The first pen-holding endpoint D is a contact point between the user's pen-holding hand and the writing pen 1, and is the closest contact with the pen tip of the writing pen 1. The value of the first pen-holding endpoint is the distance between the first pen-holding endpoint D and the pen tip. The second pen-holding endpoint B is also a contact point between the user's pen-holding hand and the writing pen 1, and is the farthest contact point with the pen tip of the writing pen 1. The value of the second holding pen endpoint is the distance between the second holding pen endpoint B and the pen tip. The radius R of the fist shape is the radius of a circumcircle of a fist formed after the user makes a fist when the user holds the pen while writing.
The distance between the first pen-holding endpoint D and the pen tip of the writing pen 1 is greater than or equal to 2.5 cm and less than or equal to 3.5 cm. In the subsequent calculations, the radial size of the writing pen 1 can be ignored, that is, the writing pen 1 is marked as an inclined straight line (the central axis of the writing pen 1), and the first and second pen-holding endpoints D and B are located on the inclined line (on the central axis of the writing pen 1). The radius R of the fist shape is about 4 cm to 5 cm. The values of pen-holding endpoints and the radiuses R of the fist shape and their corresponding relationship are also set in the processor. The user can select corresponding values before use. After selection, the processor may obtain the pen-holding parameter for holding the writing pen 1 from the memory. The values of the pen-holding endpoints and the radiuses R of the fist shape may correspond to each other. Different pen-holding endpoints and radiuses R of the fist shape can be set according to different pen types. For example, the values of the first pen-holding endpoint and the radius R of the fist shape for children's pen are relatively small, the value of the first pen-holding endpoint is greater than or equal to 2.5 cm and less than or equal to 3 cm, and the radius R of the fist shape is about 4 cm. The values of the first pen-holding endpoint and the radius R of the fist shape for adult's pen are relatively large, the value of the first pen-holding endpoint is greater than or equal to 3 cm and less than or equal to 3.5 cm, and the radius R of the fist shape is about 5 cm. In addition, the type of writing pen 1 can also be set as female and male adult pens.
The distance between the second pen-holding endpoint B and the pen tip of the writing pen 1 is greater than or equal to 6.5 cm and less than or equal to 8.5 cm. For example, the values of the second pen-holding endpoint and the radius R of the fist shape for children's pen are relatively small, the value of the second pen-holding endpoint is greater than or equal to 6.5 cm and less than or equal to 7.5 cm, and the radius R of the fist shape is about 4 cm. The values of the second pen-holding endpoint and the radius R of the fist shape for adult's pen are relatively large, the value of the second pen-holding endpoint is greater than or equal to 7.5 cm and less than or equal to 8.5 cm, and the radius R of the fist shape is about 5 cm. Various types of writing pens 1 are provided, and the user can select the type of writing pens 1 in advance in order to improve the accuracy of the shielding area M. Of course, the values of the pen-holding endpoint and the radius R of the fist shape can also be set to only one case, and the user does not need to perform selection before use, and the values can be directly called from the memory.
In step S40, a shielding area for a touch at the current moment is determined according to the holding parameter, the inclination angle and the writing track point position. The writing track point position is received at the current moment or within a set time period threshold earlier than the current moment.
The determination modes of the shielding area M may include the following three modes: determining the shielding area M according to the second pen-holding endpoint B with the shape of the shielding area M being a circle, a semicircle or a sector; determining the shielding area M according to the first pen-holding endpoint D with the shape of the shielding area M being a semicircular; or determining the shielding area M according to the first pen-holding endpoint D with the shape of the shielding area M being a rectangle. The determination mode of the shielding area M can be set as one mode or multiple modes before the display 2 leaves the factory. In the case of only one mode, the user does not need to select it before use; in the case of multiple modes, the user needs to perform mode selection before use, that is, the user needs to input the first pen-holding endpoint D or the second pen-holding endpoint B which is to be used, and the shape of the shielding area M may be selected as a rectangle, a semicircle or a circle. In a case where the second pen-holding end point B is selected, the corresponding shape of the shielding area M is a circle, a semicircle or a sector. In a case where the first pen-holding endpoint D is selected, the corresponding shape of the shielding area M is generally a semicircle or a rectangle, and it is needed to choose from a semicircle or a rectangle. After the user performs selection, the processor acquires the user's selection, that is, the processor determines that the pen-holding endpoint is the second pen-holding endpoint or the first pen-holding endpoint, and the processor obtains the shape of the shielding area M as a circle, a semicircle, a sector, a semicircle or a rectangle, and then the processor proceeds to the next step.
Referring to
In step S410, an orthographic projection point of the pen-holding endpoint on the display is determined according to the writing track point position A, the inclination angle and the distance between the pen-holding endpoint and the pen tip.
In an exemplary embodiment, referring to
Then, calculations are performed according to the following formula:
where Dx is an abscissa value of the orthographic projection point D′ in the rectangular coordinate system, Dy is an ordinate value of the orthographic projection point D′ in the rectangular coordinate system, L is the distance between the pen-holding endpoint D and the pen tip, α is an included angle between the writing pen 1 and the horizontal axis X′, and β is an included angle between the writing pen 1 and the vertical axis Y′.
For a situation where the pen is held by a right hand, the above formula may be:
For a situation where the pen is held by a left hand, the above formula may be:
The orthographic projection point D′ (Dx, Dy) can be converted into the static rectangular coordinate values according to the writing track point position A. For example, the coordinates of the touch track point position A are (Ax, Ay), and the coordinates can directly use as pixel coordinates. The pixel density of the display 2 is PPI, and the orthographic projection point is D′(Ax+Dx*PPI, Ay+Dy* PPI). Specifically, the orthographic projection point for the situation where the pen is held by a left hand is D′ (Ax+|Dx*PPI|, Ay−|Dy*PPI|), and the orthographic projection point for the situation where the pen is held by a right hand is D′(Ax−|Dx*PPI|, Ay−|Dy*PPI|). For the subsequent conversion of the boundary point C and shielding area to specific pixel points and pixel areas, the conversion rule is to multiply the actual size by the pixel density PPI.
Of course, the orthographic projection point B′ of the second pen-holding endpoint B on the display is also determined by the above method.
In step S420, the shielding area is determined according to the radius R of the fist shape and the orthographic projection point.
In an exemplary embodiment, referring to
Of course, the shape of the shielding area M can also be selected to be a semicircle or a sector, and the semicircle or sector is a part of the above-mentioned circle, and is located on a side of the center of the circle away from the writing track point position A, and the central angle of the sector is greater than 180 degrees.
In other example implementations, the user may select the first pen-holding endpoint as the pen-holding endpoint, and the corresponding shielding area is a semicircle or a rectangle. In this case, referring to
In step S421, a boundary point of the shielding area is determined according to the radius of the fist shape and the orthographic projection point.
Referring to
In step S422, a size determination value of the shielding area M is determined according to the boundary point C and the writing track point position A.
In an example implementation, referring to
In other example embodiments of the present disclosure, referring to
In step S423, the shielding area M is determined according to the boundary point C and the size determination value.
In an example implementation, referring to
In other example embodiments of the present disclosure, referring to
In addition, the shielding area M can also be elliptical, the long axis of the ellipse is the same as the length of the rectangle, the short axis of the ellipse is the same as the width of the rectangle, and the boundary point C is an endpoint of the short axis of the ellipse, and the long axis of the ellipse is perpendicular to the connecting line which connects the boundary point and the orthographic projection point.
It should be noted that, because the pre-stored parameter of the pen-holding endpoint (that is, the distance between the pen-holding endpoint and the pen tip of the writing pen 1) is an interval value, that is, the parameter of the pen-holding endpoint includes a plurality of first pen-holding endpoint values or a plurality of second pen-holding endpoint values. The first pen-holding endpoint values are distances between the first pen-holding endpoint and the pen tip, and the second pen-holding endpoint values are distances between the second pen-holding endpoint and the pen tip.
Since the inclination angle of the writing pen 1 at a moment is only one and the radius R of the fist shape is constant, the distances between the boundary points of multiple sub-shielding areas and the orthographic projection points are increased as the distances between the pen-holding endpoints and the pen tip of the writing pen 1 increase. That is, the greater a distance between a pen-holding endpoint and the pen tip of the writing pen 1, the greater a distance between the boundary point of a sub-shielding area and the orthographic projection point. Accordingly, the size determination values of multiple sub-shielding areas are increased as the distances between the pen-holding endpoints and the pen tip of the writing pen 1 increase. That is, the greater a distance between a pen-holding endpoint and the pen tip of the writing pen 1, the larger the size determination value of a sub-shielding area. Therefore, a plurality of first sub-shielding areas are formed according to the plurality of the first pen-holding endpoint values, and a plurality of second sub-shielding areas are formed according to the plurality of second pen-holding endpoint values.
In this case, the shielding area M is an area covered by the plurality of first sub-shielding areas, or the shielding area M is an area covered by the plurality of second sub-shielding areas. Specifically, when the distance between the first pen-holding endpoint D and the pen tip of the writing pen 1 is the smallest, the shielding area M is the minimum shielding area M1. When the distance between the first pen-holding endpoint D and the pen tip of the writing pen 1 is the greatest, the shielding area M is the maximum shielding area M2. Referring to
Referring to
In step S50, when touch track point position is located in the shielding area, a track of the touch track point position is not displayed on the display.
In an example embodiment, the touch track point position being located in the shielding area means that the touch track point position is located within the shielding area or on an edge of the shielding area. The track of the touch track point position is not displayed on the display, and no corresponding action is performed.
It should be noted that, after receiving the pen touch operation of the writing pen 1, a corresponding operation is performed according to the pen touch data of the pen touch operation.
In addition, while receiving the touch track point position of the user at the current moment, an initial point position of the touch track point position can also be recorded. When the initial point position is within the shielding area and a subsequent touch track point position is outside the shielding area, the track of the touch track point position is not displayed on the display 2. This situation usually occurs when the user changes the posture of holding the pen and touches the display. For example, the user writes with the writing pen 1 for a long time, and changes the posture of holding the pen when his/her hand is tired, or changes the posture of holding the pen when the user is thinking. Of course, this situation may occur in the case of multiple people perform writing. For example, a teacher and students are writing at the same time, and the teacher's writing is used as the main writing. If a student accidentally writes in the teacher's shielding area and extends beyond the shielding area, the student's writing track is not displayed on the display.
When the initial point position is outside the shielding area and a subsequent touch track point position is within the shield area, the track of the touch track point position is displayed on the display. This situation often occurs in the case where multiple people perform writing. When one user is writing, another user is also writing. For example, in a multi-person drawing scene, two users want to draw the same picture, resulting in a small operating area distance between the two users. When the first user is drawing, the part that the second user needs to draw may be in the shielding area of the first user. At this time, the drawing of the second user cannot be shielded as interference.
Specifically, in the above-mentioned situation, the positions of multiple touch track points generally form a line instead of a single touch point operation. For example, a user is writing or drawing with the writing pen 1, and another user draws a line on the display 2 with his finger. The starting position of the line is in the shielding area and another part of the line is outside the shielding area, and the track of the touch track point position for this line is not displayed on the display. Another situation is that a user is writing or drawing with the writing pen 1, and another user draws a line on the display 2 with his finger, the starting position of the line is outside the shielding area, and another part of the line is located in the shielding area. The track of the touch track point position is displayed on the display.
Additionally, although various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and/or one step may be decomposed into multiple steps, and the like.
Further, an exemplary embodiment further provides a touch data processing device corresponding to the above data processing method. Referring to
The specific details of each module in the above-mentioned touch data processing device have been described in detail in the corresponding virtual object data processing method, and therefore repeated descriptions will be omitted here.
Further, an exemplary embodiment further provides an intelligent interactive device, which may include a display 2, a processor, and a writing pen 1. The display 2 has a touch function, and the display 2 is configured to receive the touch track point position of a user, the writing track point position of the writing pen 1 and the inclination angle of the writing pen 1 relative to the display 2 when writing, and provide the touch track point position, the writing track point position and the inclination angle of the writing pen 1 to the processor. The processor is configured to perform processing according to the data processing method described above and perform displaying on the display 2.
The writing pen 1 can be used for writing on the display, and may detect the inclination angle of the writing pen and transmit it to the processor. The writing pen may be an electromagnetic pen or a capacitive pen.
In an exemplary embodiment, the processor may be an SOC (System on Chip), and the processor and the display may be connected through interfaces such as usb/I2C/Uart to realize the communication of touch data at the physical layer. The SOC may include a calculation processing unit and a storage unit, may receive and process external events, and control the content output of the display 2.
The touch input of the SOC comes from a touch module of the display 2. Whether it is the touch event of the writing pen 1 (i.e. the writing track point position) or the touch event of the hand (i.e., the touch track point position), the application layer receives them as a MotionEvent (motion) event, and the getToolType method can be used to distinguish whether it is a touch event of the writing pen 1 or a touch event of the hand. After the SOC receives the touch event, it can render the touch track at the application layer, or the event can be processed in the system level. If it is determined that the current hand touch event is within the shielding area, the event is discarded and not reported to the application layer. The above mainly takes the application layer rendering shielding as an example to illustrate the determination method of hand accidental touch.
In an exemplary embodiment, the display may include a first touch module and a second touch module. The first touch module may receive a touch signal of the writing pen 1 (i.e., the writing track point position) and the inclination angle of the writing pen 1 relative to the display 2 when writing. The first touch module may be an electromagnetic touch module or a capacitive touch module. The second touch module may be an infrared touch module or a resistive touch module. The second touch module may receive the touch track point position of the user, that is, receive the touch track point position of a finger.
Further, an exemplary embodiment further provides a storage medium including computer-executable instructions. When the computer-executable instructions are executed by a computer processer, the computer processor is caused to perform the above data processing method.
It should be noted that although several modules or units of the device for performing actions are mentioned in the above detailed description, this division of the modules or units is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units.
From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of a software product, and the software product may be stored in a non-volatile storage medium (which may be a CD-ROM, U disk, mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the methods according to embodiments of the present disclosure.
Other embodiments of the present disclosure will become apparent to those skilled in the art upon consideration of the specification and practice of the disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
202010362845.0 | Apr 2020 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2021/080017 | 3/10/2021 | WO |