Recognition Method, Device and Electronic Pen for the State of Holding a Pen with Left and Right Hands
By setting a touch sensor on the electronic pen to identify the touch position of the index finger, thumb or tiger's mouth, the problem that the existing electronic pen cannot recognize the side of the pen holding is solved, and the accurate identification of the state of the pen holding with the left and right hands is achieved, improving user convenience.
Patent Information
- Application Number
- CN202211359358.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2042-10-31
AI Technical Summary
Existing electronic pens are usually only suitable for people holding pens with the right hand, which leads to people holding pens with the left hand being less convenient to use, and it is impossible to effectively identify whether the user's hand holding the electronic pen is left or right hand.
By setting a touch sensor around the pen on the electronic pen, the hand touch information is obtained, the touch positions of the index finger, the thumb or tiger's mouth are identified, and the pen holding state is determined based on the relative relationship between these positions and the scanning start and end position.
It realizes accurate identification of the state of holding the pen in the left and right hands, improves the convenience of using the left hand pen in the left hand pen, and is adapted to the pen holding operation on different sides.
Smart Images

Figure CN115657881B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic devices, and particularly relates to a method and device for identifying the left and right hand pen-holding states and an electronic pen. Background Art
[0002] With the development of electronic devices, the market has put forward higher requirements for the operation compatibility of electronic devices. In particular, with the popularization of electronic devices with large-size display screens such as tablet computers and folding mobile phones, electronic pens have begun to thrive because they have higher precision when operating on the display screen compared to fingers.
[0003] However, there are two groups of users, those who are used to holding the pen with their left hand and those who are used to holding the pen with their right hand. Currently, most electronic pens are mainly adapted for users who hold the pen with their right hand. This may make the convenience of left-handed users when operating with an electronic pen lower than that of right-handed users. The prerequisite for an electronic device to be adapted to the pen-holding operations of hands on different sides is to be able to identify whether the hand holding the electronic pen is the right hand or the left hand. Therefore, how to determine whether the hand holding the electronic pen is the left hand or the right hand has become an urgent problem to be solved. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a method and device for identifying the left and right hand pen-holding states and an electronic pen, which can identify whether the hand holding the electronic pen is the right hand or the left hand.
[0005] In a first aspect, the embodiments of this application provide a method for identifying the left and right hand pen-holding states, which is applied to an electronic pen. The electronic pen includes a touch sensing member disposed around the pen body. The method includes:
[0006] Obtain hand touch information through the touch sensing member, where the hand touch information includes a plurality of touch positions;
[0007] Identify the index finger touch position and a first touch position from the plurality of touch positions, where the first touch position indicates the thumb touch position or the thumb web touch position;
[0008] Based on the relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position, determine that the electronic pen is in a left hand pen-holding state or a right hand pen-holding state, where the scanning start position and the scanning end position are the start position and the end position respectively when scanning and sampling along the circumferential direction of the pen body through the touch sensing member.
[0009] In a second aspect, the embodiments of this application provide a device for identifying the left and right hand pen-holding states, which is applied to an electronic pen. The electronic pen includes a touch sensing member disposed around the pen body. The device includes:
[0010] An acquisition module, configured to acquire hand touch information through the touch sensing member, where the hand touch information includes a plurality of touch positions;
[0011] An identification module, configured to identify an index finger touch position and a first touch position from the plurality of touch positions, where the first touch position indicates a thumb touch position or a thumb web touch position;
[0012] A determination module, configured to determine whether the electronic pen is in a left - hand pen - holding state or a right - hand pen - holding state based on the relative positions between the index finger touch position, the first touch position, a scanning start position, and a scanning end position, where the scanning start position and the scanning end position are, in sequence, the start position and the end position when scanning and sampling are performed along the circumferential direction of the pen body through the touch sensing member.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method described in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0017] In the embodiments of the present application, the method for identifying the left and right hand pen-holding states provided by the embodiments of the present application is applied to an electronic pen, which includes a touch sensing member disposed around the pen body. The electronic pen obtains hand touch information including a plurality of touch positions through the touch sensing member, and identifies the index finger touch position and the first touch position from the plurality of touch positions. Then, based on the relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position, it is determined whether the electronic pen is in the left hand pen-holding state or the right hand pen-holding state. Among them, the first touch position indicates the thumb touch position or the thumb web touch position. The scanning start position and the scanning end position are the start position and the end position respectively when scanning and sampling along the circumferential direction of the pen body through the touch sensing member. In this technical solution, by using the different relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position when holding the pen with the left and right hands, the identification of the left and right hand pen-holding states of the electronic pen is realized. Description of the Drawings
[0018] Figure 1 is a schematic diagram of holding a pen with the left hand;
[0019] Figure 2 is a schematic diagram of holding a pen with the right hand;
[0020] Figure 3 is a structural diagram of an electronic pen provided by the embodiments of the present application;
[0021] Figure 4 is a plan view of the sensing area of a touch sensing member provided by the embodiments of the present application;
[0022] Figure 5 and Figure 6 is a schematic diagram of the pen body coordinate system of an electronic pen provided by the embodiments of the present application;
[0023] Figure 7 and Figure 8 is a schematic diagram of the rotation of an electronic pen provided by the embodiments of the present application;
[0024] Figure 9 is a flowchart of a method for identifying the left and right hand pen-holding states provided by the embodiments of the present application;
[0025] Figure 10 is another plan view of the sensing area of a touch sensing member provided by the embodiments of the present application;
[0026] Figures 11 to 18 is a schematic diagram of the relative positions of various positions on an electronic pen provided by the embodiments of the present application;
[0027] Figure 19 and Figure 20It is the schematic diagram for determining the scanning start position and the scanning end position provided by the embodiments of the present application;
[0028] Figure 21 It is the flowchart of a method for identifying the pen-holding states of the left and right hands provided by the embodiments of the present application;
[0029] Figures 22 to 24 It is the schematic diagram for determining the scanning start position and the scanning end position provided by the embodiments of the present application;
[0030] Figure 25 It is the schematic diagram for determining the standard start scanning line and the standard end scanning line provided by the embodiments of the present application;
[0031] Figures 26 to 29 It is the line graph of the pen body pressure change provided by the embodiments of the present application;
[0032] Figure 30 It is the block diagram of a device for identifying the pen-holding states of the left and right hands provided by the embodiments of the present application;
[0033] Figure 31 It is the block diagram of an electronic pen provided by the embodiments of the present application;
[0034] Figure 32 It is the structural diagram of an electronic pen provided by the embodiments of the present application. Detailed implementation manners
[0035] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0036] The terms "first", "second", etc. in the description and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order different from those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0037] Next, in conjunction with the accompanying drawings, a method for identifying the pen-holding states of the left and right hands provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0038] For ease of understanding, the principles involved in the embodiments of the present application will be described below.
[0039] If the self-rotation angle of the pen body is the same when holding the pen with the left and right hands, that is, after holding the pen with the left hand (or right hand), switch to holding the pen with the right hand (or left hand) while keeping the pen body from rotating. Then the relative positional relationship between the contact positions of the thumb (or the web between the thumb and index finger) and the index finger on the pen body is different when holding the pen with both hands. For example, as Figure 1 and Figure 2 show, with the relative positional relationship between the reference line 101 on the pen body and the thumb and index finger remaining unchanged, it illustrates that the pen body is stationary when switching the pen-holding hand between the left and right hands. Taking Figure 1 and Figure 2 as a reference, considering the icon 102 on the pen body, it is considered that the direction indicated by the arrow on the icon 102 is the left side of the reference line 101, and the opposite direction of the arrow indicated by the icon 102 is the right side of the reference line 101. As can be seen from Figure 1 , when holding the pen with the left hand, the index finger 103 is on the right side of the reference line 100, and the thumb 104 is on the left side of the reference line 101. As can be seen from Figure 2 , when holding the pen with the right hand, the index finger 103 is on the left side of the reference line 101, and the thumb 104 is on the right side of the reference line 101.
[0040] Based on this, the embodiments of the present application provide a method for identifying the pen-holding state of the left and right hands, which can identify whether the user is holding the pen with the left hand or the right hand according to the relative relationship between the contact positions of the thumb (or the web between the thumb and index finger) and the index finger on the pen body when the user holds the electronic pen.
[0041] Please refer to Figure 3 , which shows a schematic structural diagram of an electronic pen provided by the embodiments of the present application. This electronic pen can execute the method for identifying the pen-holding state of the left and right hands provided by the embodiments of the present application. As shown in Figure 3 , the electronic pen 300 includes a touch sensing member 301 and a touch integrated circuit (IC). The touch sensing member 301 is disposed around the pen body 302. Optionally, the touch sensing member 301 can be a capacitive film. Among them, please refer to Figure 4 , which shows an unfolded plane structure diagram of the touch sensing member 301. As shown in Figure 4As shown, the touch sensing element 301 includes a plurality of row scan lines Rx and a plurality of column scan lines Tx arranged in an array. The touch IC can sequentially send row scan signals to the plurality of row scan lines through the row driving electrodes, and sequentially send column scan signals to the plurality of column scan lines through the column driving electrodes. In this way, when the user touches the electronic pen 300, the touch sensing element 301 can perform scanning sampling through the row scan lines and the column scan lines to capture the touch area envelope and obtain scan data. The touch IC obtains the hand touch information by detecting the change amount between the scan data and the initial scan data. The hand touch information is used to reflect the contact position of the user's hand on the touch sensing element.
[0042] Among them, the touch IC can control the order of sending row scan signals to the plurality of row scan lines, and control the order of sending column scan signals to the plurality of column scan lines. Thus, the touch IC can control which row scan line serves as the starting row scan line 303, and correspondingly control which row scan line serves as the ending row scan line 304. Similarly, the touch IC can control which column scan line serves as the starting column scan line 305, and correspondingly control which column scan line serves as the ending column scan line 306. The ending row scan line can also be referred to as the terminal row scan line, and the ending column scan line can also be referred to as the terminal column scan line. It should be noted that in the embodiments of the present application, Figure 3 and Figure 4 the scan lines arranged circumferentially along the pen body in the touch sensing element 301 are taken as an example of the column scan lines for illustration.
[0043] Optionally, the electronic pen 300 further includes a gyroscope. The gyroscope is used to detect the pen body rotation angle of the electronic pen 300, and the pen body rotation angle is the rolling angle of the electronic pen.
[0044] Please refer to Figure 5 and Figure 6 , which shows a schematic diagram of a pen body coordinate system provided by an embodiment of the present application. As Figure 5 shown and Figure 6As shown in the figure, when the electronic pen is placed horizontally, the origin of the pen body coordinate system is the centroid O of the electronic pen. The pen body coordinate system includes mutually perpendicular Xp axis, Yp axis, and Zg axis. The Xp axis is parallel to the extension direction of the pen body and points to the pen tip, that is, the Xp axis is parallel to the horizontal direction. The Zg axis is perpendicular to the extension direction and points to the lower side of the pen body, that is, the Zg axis is parallel to the gravity direction of the electronic pen. The Yp axis is perpendicular to the extension direction and points to the left side of the pen body. The left side of the pen body refers to the left side when the user looks at the pen body along the extension line of the pen body from the pen tip. And, in the pen body coordinate system, the angle of rotation around the Xp axis is the roll angle (Roll), the angle of rotation around the Yp axis is the pitch angle (Pitch), and the angle of rotation around the Zg axis is the yaw angle (Yaw). In the embodiments of the present application, the initial state of the electronic pen is taken as the horizontal placement state as an example for description. When the electronic pen is in the initial state, the pen body rotation angle detected by the gyroscope is 0°, that is, the roll angle of the electronic pen detected by the gyroscope is 0°. As Figure 7 shown and Figure 8 shown, after the electronic pen 701 in the initial state rotates 180° clockwise around the pen body, that is, around the Xp axis. In the pen body coordinate system of the rotated electronic pen 702, the included angle θ between the Zg axis Zg’ and the Zg axis Zg in the original coordinate system is 180°. The included angle θ between the Yp axis Yp’ and the Yp axis Yp is 180°. That is, the roll angle θ of the electronic pen is 180°. In the embodiments of the present application, the clockwise direction described refers to the clockwise direction when the user looks at the pen body along the extension line of the pen body from the pen tip, and the counterclockwise direction refers to the counterclockwise direction when the user looks at the pen body along the extension line of the pen body from the pen tip.
[0045] Please refer to Figure 9 , which shows a flowchart of a method for identifying the left and right hand pen-holding states provided by the embodiments of the present application. This identification method can be applied to an electronic pen provided by the embodiments of the present application. For example, Figure 3 the electronic pen shown. As Figure 9 shown, the method for identifying the left and right hand pen-holding states includes:
[0046] Step 901, obtain hand touch information through a touch sensing component, where the hand touch information includes multiple touch positions.
[0047] In the embodiments of the present application, after the user holds the electronic pen, the electronic pen can obtain the hand touch information of the user through its touch sensing component. This hand touch information is used to reflect the contact position of the user's hand on the touch sensing component.
[0048] Optionally, when the touch sensing component is a capacitive film, the electronic pen performs scanning and sampling through row scanning lines and column scanning lines to obtain scanning data, which includes the capacitance values of each node capacitor within the sensing area of the touch sensing component. The electronic pen determines target node capacitors with a change amount greater than the variable threshold based on the change amount of the capacitance value of each node capacitor relative to the initial capacitance value. Multiple touch positions are determined according to the positions of the target node capacitors within the sensing area to obtain hand touch information. Among them, multiple target node capacitors at any one touch position within the sensing area are connected.
[0049] Exemplarily, assume that the variable threshold is 100 and the initial capacitance value is 0. The touch sensing component includes 14 column scanning lines (Tx0 to Tx13) and 13 row scanning lines (Rx0 to Rx12), then there are 13×12 node capacitors within its sensing area 1001. As Figure 10 shown, the capacitance values of each node capacitor 1002 obtained by the electronic pen through scanning and sampling of the touch sensing component are 1, 2, 10, 20, 18, 8..... -4, 0, 15, 17, 9, and 3 in sequence. Then the hand touch information obtained by the electronic device includes touch position A1003 and touch position B 1004. Among them, the starting position of the electronic device's scanning and sampling is the starting column scanning line Tx0 and the starting row scanning position Rx0, and the starting and ending position is the ending column scanning line Tx14 and the ending row scanning line Rx13.
[0050] Step 902, identify the index finger touch position and the first touch position from multiple touch positions, where the first touch position indicates the thumb touch position or the thumb web touch position.
[0051] In the embodiments of the present application, the index finger touch position refers to the contact position between the index finger and the touch sensing component / pen body. The thumb touch position refers to the contact position between the thumb and the touch sensing component / pen body. The thumb web contact position refers to the contact position between the thumb web and the touch sensing component / pen body. As Figure 1 or Figure 2 shown, it is not difficult to see from the user's pen-holding posture that the contact area between the index finger and the pen body is smaller than the contact area between the thumb (or thumb web) and the pen body. The electronic pen can identify the index finger touch position and the first touch position from multiple touch positions according to the contact area of each touch position.
[0052] Optionally, the hand touch information may further include: the contact area of each touch position. The process by which the electronic pen identifies the index finger touch position and the first touch position from multiple touch positions may include: the electronic pen determines the touch position corresponding to the smallest contact area among the contact areas corresponding to each touch position as the index finger touch position, and determines the touch position corresponding to the largest contact area as the first touch position.
[0053] Among them, the electronic pen can determine the index finger touch position and the first touch position by comparing the sizes of the contact areas corresponding to each touch position. For example, the contact area of a touch position can be determined according to the number of node capacitances it includes. Continuing with the example in step 901 above, the hand touch information includes touch position A 1003 and touch position B 1004, and the contact area corresponding to touch position A 1003 is smaller than the contact area corresponding to touch position B 1004. The electronic pen can determine that touch position A 1003 is the index finger touch position and touch position B 1004 is the first touch position.
[0054] Step 903: Based on the relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position, determine whether the electronic pen is in the left - hand pen - holding state or the right - hand pen - holding state. Among them, the scanning start position and the scanning end position are, in sequence, the start position and the end position when scanning and sampling along the circumferential direction of the pen body through the touch sensor.
[0055] As shown above, in the embodiment of the present application, the scanning lines arranged along the circumferential direction of the pen body by the touch sensor are used as column scanning lines Tx, and the first touch position is used as the thumb touch position for illustration. Then, the scanning start position is the position corresponding to the starting column scanning line during scanning and sampling. The scanning end position is the position corresponding to the ending column scanning line during scanning and sampling. Of course, the scanning lines arranged along the circumferential direction of the pen body by the touch sensor can also be row scanning lines Rx, and the embodiment of the present application does not limit this.
[0056] Please refer to Figures 11 to 12 , Figure 11 which shows a schematic diagram of the right - hand pen - holding posture and the sensing area of the touch sensor when holding the pen with the right hand. Figure 12 is a schematic diagram of the left - hand pen - holding posture and the sensing area of the touch sensor when holding the pen with the left hand. As Figure 11 shown, the index finger touch position 1101 is closer to the scanning start position 1103 than the thumb contact position 1102. The thumb contact position 1102 is closer to the scanning end position 1104 than the index finger contact position 1101. As Figure 12 shown, the index finger touch position 1201 is closer to the scanning end position 1104 than the thumb contact position 1202. The thumb contact position 1202 is closer to the scanning start position 1103 than the index finger contact position 1201. Among them, Figure 11 and Figure 12 on the electronic pen held in the hand, the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is counter - clockwise. And, the area between the index finger position and the thumb position on the outer surface of the pen body includes a first area and a second area, and the first area is away from the position of the tiger's mouth on the pen body. Figure 11 and Figure 12On the electronic pen held in the middle hand, the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first region, that is, the scanning start position and the scanning end position are above the tiger's mouth.
[0057] Please refer to Figures 13 to 14 , Figure 13 which shows a schematic diagram of the right hand holding the pen and the sensing area of the touch sensor when holding the pen with the right hand. Figure 14 is a schematic diagram of the left hand holding the pen and the sensing area of the touch sensor when holding the pen with the left hand. As Figure 13 shown, the index finger touch position 1301 is closer to the scanning start position 1303 than the thumb contact position 1302. The thumb contact position 1302 is closer to the scanning end position 1304 than the index finger touch position 1301. As Figure 14 shown, the index finger touch position 1401 is closer to the scanning end position 1304 than the thumb contact position 1402. The thumb contact position 1402 is closer to the scanning start position 1303 than the index finger touch position 1401. Among them, Figure 13 and Figure 14 on the electronic pen held in the middle hand, the scanning sampling direction of the touch sensor along the circumferential direction of the pen body is clockwise. And, the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the second region.
[0058] Please refer to Figures 15 to 16 , Figure 15 which shows a schematic diagram of the right hand holding the pen and the sensing area of the touch sensor when holding the pen with the right hand. Figure 16 is a schematic diagram of the left hand holding the pen and the sensing area of the touch sensor when holding the pen with the left hand. As Figure 15 shown, the thumb contact position 1502 is closer to the scanning start position 1503 than the index finger touch position 1501. The index finger contact position 1502 is closer to the scanning end position 1504 than the thumb contact position 1502. As Figure 16 shown, the thumb contact position 1502 is closer to the scanning end position 1504 than the index finger touch position 1501. The index finger contact position 1502 is closer to the scanning start position 1503 than the thumb contact position 1502. Among them, Figure 15 and Figure 16 on the electronic pen held in the middle hand, the scanning sampling direction of the touch sensor along the circumferential direction of the pen body is counterclockwise. And, the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the second region.
[0059] Please refer to Figures 17 to 18 , Figure 17 which shows a schematic diagram of the left hand holding the pen and the sensing area of the touch sensor when holding the pen with the right hand. Figure 18 is a schematic diagram of the right hand holding the pen and the sensing area of the touch sensor when holding the pen with the left hand. AsFigure 17 As shown, the index finger touch position 1701 is closer to the scanning start position 1703 than the thumb contact position 1702. The thumb contact position 1702 is closer to the scanning end position 1704 than the index finger touch position 1701. As Figure 18 shown, the index finger touch position 1801 is closer to the scanning end position 1704 than the thumb contact position 1802. The thumb contact position 1802 is closer to the scanning start position 1703 than the index finger touch position 1801. Among them, Figure 17 and Figure 18 on the electronic pen held in the hand, the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is clockwise. And, the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first area. Figure 13 、 Figure 14 、 Figure 15 and Figure 16 in, the corresponding positions of the scanning start position and the scanning end position on the pen body are marked with dotted lines and are located in the second area. Figure 11 、 Figure 12 、 Figure 17 and Figure 18 in, the corresponding positions of the scanning start position and the scanning end position on the pen body are marked with solid lines and are located in the first area.
[0060] Based on Figures 11 to 18 the principle described above, the electronic pen can determine whether the electronic pen is in the left - hand pen - holding state or the right - hand pen - holding state according to the relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position according to its corresponding situation.
[0061] In an optional implementation, the pen body of the electronic pen can rotate freely, which makes the rolling angle of the pen body when holding the pen with the left hand may be different from the rolling angle of the pen body when holding the pen with the right hand, that is, the first position when holding the pen with the left hand is different from the first position when holding the pen with the right hand. The first position refers to the corresponding positions of the scanning start position and the scanning end position on the pen body.
[0062] Therefore, the electronic pen can control the starting position and the ending position during scanning sampling so that the orientation of the scanning starting position and the scanning ending position relative to the center of mass of the electronic pen is fixed. It is not difficult to understand that when the orientation of the scanning starting position and the scanning ending position relative to the center of mass in the electronic pen is fixed, no matter what the rolling angle of the electronic pen after rolling rotation is, the scanning starting position and the scanning ending position will not send rolling rotation. The positions of the scanning starting position and the scanning ending position on the coordinate system of the electronic pen in the initial state remain unchanged. Moreover, when the pen is held by the same hand, no matter what the rolling angle of the electronic pen after rolling rotation is, the relative positions between the scanning starting position, the scanning ending position, the index finger contact position, the thumb contact position, and the tiger's mouth contact position remain unchanged. In the embodiment of the present application, in order to fix the orientation of the scanning starting position and the scanning ending position relative to the center of mass of the electronic pen, the specific implementation method of controlling the starting position and the ending position during scanning sampling is not described here for the time being, and will be described in detail later.
[0063] For example, assume that the touch sensing element includes 12 evenly distributed column scan lines (Tx0-Tx11), and the scanning sampling direction is clockwise. The center angle of the pen body circumferential line segment between each column scan line is 30°, that is, when the pen body rotates 30°, the serial number of the column scan line on the touch sensing element differs by 1 from the serial number of the column scan line before the rotation. Figure 19 As shown, in the coordinate system of the electronic pen in the initial state, the scanning start position 1901 is the position corresponding to the column scanning line Tx0, and the scanning end position 1902 is the position corresponding to the column scanning line Tx11. After the electronic pen in the initial state rotates 30° clockwise around the Xp axis. Figure 20 As shown, in the body coordinate system of the electronic pen after rotation, the angle θ between the Zg axis Zg' and the Zg axis Zg in the original coordinate system is 30°. The angle θ between the Yp axis Yp' and the Yp axis Yp is 30°. The scanning start position 1901 of the electronic pen after rotation is the position corresponding to the column scanning line Tx11, and the scanning end position 1902 is the position corresponding to the column scanning line Tx10. The scanning start position 1901 intersects with the Zg axis of the current body coordinate system of the electronic pen.
[0064] When the positions of the scanning start position and the scanning end position relative to the center of mass of the electronic pen are fixed, the process of determining whether the electronic pen is in the left-hand holding state or the right-hand holding state based on the relative position between the index finger touch position, the first touch position, the scanning start position and the scanning end position may include: determining whether the electronic pen is in the left-hand holding state or the right-hand holding state based on the first distance and the second distance, and / or the third distance and the fourth distance.
[0065] Among them, the first distance is the distance from the scanning start position to the index finger touch position along the scanning sampling direction of the pen body circumference. The second distance is the distance from the scanning start position to the first touch position in the scanning sampling direction. The third distance is the distance from the index finger touch position to the scanning end position in the scanning sampling direction. The fourth distance is the distance from the first touch position to the scanning end position in the scanning sampling direction. The electronic pen can determine whether the index finger touch position is closer to the scanning start position than the first touch position according to the first distance and the second distance, and then determine whether the electronic pen is in the left-handed pen-holding state or the right-handed pen-holding state. The electronic pen can determine whether the index finger touch position is closer to the scanning end position than the first touch position according to the third distance and the fourth distance, and then determine whether the electronic pen is in the left-handed pen-holding state or the right-handed pen-holding state.
[0066] In an optional case, the first distance can be the distance from the scanning start position to the side of the index finger touch position that is closest to the scanning start position. Similarly, the second distance can be the distance from the scanning start position to the side of the first touch position that is closest to the scanning start position. The third distance can be the distance from the side of the index finger touch position that is closest to the scanning end position to the scanning end position. The fourth distance can be the distance from the side of the first touch position that is closest to the scanning end position to the scanning end position.
[0067] Exemplarily, taking Figure 10 the example shown, the first distance corresponding to the index finger touch position (touch position A 1003) is 2L. The third distance corresponding to the index finger touch position is 8L. The second distance corresponding to the first touch position (touch position B 1004) is 7L. The fourth distance corresponding to the first touch position is 1L. Wherein, L is the distance between two adjacent column scanning lines.
[0068] In another optional case, the first distance can also be the distance from the scanning start position to the target point within the index finger touch position. Similarly, the second distance can be the distance from the scanning start position to the target point within the first touch position. The third distance can be the distance from the target point within the index finger touch position to the scanning end position. The fourth distance can be the distance from the target point within the first touch position to the scanning end position. The target point refers to the midpoint of the longest line segment parallel to the row scanning line within the touch position.
[0069] Exemplarily, taking Figure 10 the example shown, the first distance corresponding to the index finger touch position (touch position A 1003) is 3.5L. The third distance corresponding to the index finger touch position is 9.5L. The second distance corresponding to the first touch position (touch position B 1004) is 9.5L. The fourth distance corresponding to the first touch position is 3.5L. Wherein, L is the distance between two adjacent column scanning lines.
[0070] Optionally, the process by which the electronic pen determines whether it is in a left-handed or right-handed pen-holding state based on the first distance and the second distance, and / or the third distance and the fourth distance, may include:
[0071] When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the first region, if the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance, it is determined that the electronic pen is in the right-handed pen-holding state; if the first distance is greater than the second distance, or the third distance is less than the fourth distance, it is determined that the electronic pen is in the left-handed pen-holding state.
[0072] When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the second region, if the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance, it is determined that the electronic pen is in the right-handed pen-holding state; if the first distance is greater than the second distance, or the third distance is less than the fourth distance, it is determined that the electronic pen is in the left-handed pen-holding state.
[0073] When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the second region, if the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right-handed pen-holding state; if the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left-handed pen-holding state.
[0074] When the scanning and sampling direction of the electronic pen along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the first region, if the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right-handed pen-holding state; if the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left-handed pen-holding state. Here, the clockwise direction is the clockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body. The counterclockwise direction is the counterclockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body. The region between the index finger position and the thumb position on the outer surface of the pen body includes the first region and the second region, and the first region is away from the position of the tiger's mouth on the pen body.
[0075] In some embodiments of the present application, after the electronic pen can identify the index finger touch position and the first touch position from multiple touch positions, it can first obtain the scanning sampling direction of the touch sensor along the circumferential direction of the pen body and the target position relationship, where the target position relationship indicates whether the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first area. Then, according to the scanning sampling direction and the target position relationship, the electronic pen determines whether it is in the left hand holding state or the right hand holding state by using the first size relationship and the second size relationship.
[0076] Among them, the first size relationship is the size relationship between the first distance and the second distance. The second size relationship is the size relationship between the third distance and the fourth distance. It is not difficult to understand that the first distance being less than the second distance means that the index finger touch position is closer to the scanning start position than the first touch position. Conversely, the first distance being greater than the second distance means that the first touch position is closer to the scanning start position than the index finger touch position. The third distance being less than the fourth distance means that the index finger touch position is closer to the scanning end position than the first touch position. Conversely, the third distance being greater than the fourth distance means that the first touch position is closer to the scanning end position than the index finger touch position.
[0077] Optionally, the electronic pen can store the scanning sampling direction of the touch sensor along the circumferential direction of the pen body. Then the electronic pen can directly obtain the scanning sampling direction from the storage space.
[0078] Further optionally, the electronic pen can identify the index finger touch position, the thumb touch position, and the thumb web touch position from the multiple touch positions included in the hand touch information. And determine two areas between the index finger touch position and the thumb touch position within the sensing area of the touch sensor, and these two areas can be considered as the areas between the index finger and the thumb on the outer surface of the pen body. The electronic pen determines whether the thumb web touch position, the scanning start position, and the scanning end position exist in the same area among the two areas, so as to determine the target position relationship according to the judgment result. When the thumb web touch position, the scanning start position, and the scanning end position do not exist in the same area, the electronic pen determines that the target position relationship indicates that the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first area. When the thumb web touch position, the scanning start position, and the scanning end position exist in the same area, the electronic pen determines that the target position relationship indicates that the corresponding positions of the scanning start position and the scanning end position on the pen body are not located in the first area.
[0079] Exemplarily, when the scanning sampling direction along the pen body direction is from the pen tail to the pen tip, the electronic pen can determine the touch position closest to the start row scanning line among the multiple touch positions as the thumb web touch position. Among the remaining touch positions, the touch position corresponding to the smallest contact area is determined as the index finger touch position, and the touch position corresponding to the largest contact area is determined as the first touch position.
[0080] In an alternative implementation, in order to keep the azimuths of the scanning start position and the scanning end position fixed relative to the centroid of the electronic pen, the recognition method further includes a control process for the start position and the end position before step 901 of obtaining the hand touch information through the touch sensor. As Figure 21 shown, the control process for the start position and the end position may include the following steps 2101 to 2102.
[0081] Step 2101: When the electronic pen rotates, obtain the rolling angle of the electronic pen.
[0082] Optionally, the electronic pen obtains its rolling angle through a gyroscope.
[0083] Step 2102: Determine the scanning start position and the scanning end position according to the rolling angle, the total number of scanning lines distributed along the circumferential direction of the pen body by the touch sensor, and the position of the standard start scanning line.
[0084] Among them, when the rolling angle of the electronic pen is zero, the start position during the scanning sampling along the circumferential direction of the pen body by the touch sensor is the position of the standard start scanning line. When the obtained rolling angle of the electronic pen is θ, the rolling angle of the standard start scanning line relative to the scanning line corresponding to the scanning start position is Or , where α is the quotient of 360 and the total number, represents the ceiling operation, represents the floor operation.
[0085] In the embodiment of the present application, when the rolling angle of the electronic pen is zero, it indicates that the electronic pen is in the initial state. Correspondingly, the position of the standard start scanning line is the start position during the scanning sampling along the circumferential direction of the pen body by the touch sensor of the electronic pen in the initial state. The scanning line adjacent to the standard start scanning line in the opposite direction of the scanning sampling direction is the standard end scanning line. The position of the standard end scanning line is the end position during the scanning sampling along the circumferential direction of the pen body by the touch sensor of the electronic pen in the initial state. It should be noted that after the electronic pen determines the scanning start position and the scanning end position, it can control the touch IC to transmit column scanning signals to the scanning lines in sequence from the scanning line corresponding to the scanning start position along the scanning sampling direction until the scanning line corresponding to the scanning end position through column driving. And, the electronic pen controls the touch IC to transmit row scanning signals to the scanning lines in sequence from the start row scanning line along the scanning sampling direction until the end row scanning line. Then, the electronic device obtains the hand touch information through the touch sensor.
[0086] Optionally, the electronic pen may determine the position of the scan line adjacent to the scan line corresponding to the scan start position in the opposite direction of the scan sampling direction as the scan end position. Alternatively, after the electronic pen determines the standard end scan line based on the standard start scan line, it determines the scan end position according to the rolling angle, the total number of scan lines where the touch sensing elements are circumferentially distributed along the pen body, and the position of the standard end scan line.
[0087] Exemplarily, assume that the total number of scan lines where the touch sensing elements are circumferentially distributed along the pen body is 12. If the rolling angle θ of the electronic pen is 30, the central angle of the circumferential line segment between the standard start scan line and the scan line corresponding to the scan start position is 30. If the rolling angle θ of the electronic pen is 28, the central angle of the circumferential line segment between the standard start scan line and the scan line corresponding to the scan start position is 0 or 30.
[0088] In an optional implementation, the numbers of the scan lines of the touch sensing element from the standard start scan line to the standard end scan line increase in sequence. The process by which the electronic pen determines the scan start position and the scan end position according to the rolling angle, the total number of scan lines where the touch sensing elements are circumferentially distributed along the pen body, and the position of the standard start scan line may include: using a target formula to calculate the sequence number increment y according to the rolling angle θ and the total number m, and the target formula is: ;
[0089] wherein, when the sequence number increment is a positive integer, based on the sequence number of the standard start scan line and the sequence number increment, calculate the sequence number of the scan line corresponding to the scan start position and the sequence number of the scan line corresponding to the scan end position to determine the scan start position and the scan end position. When the sequence number increment is a decimal, determine the integer closest to the value of the sequence increment, and based on the sequence number of the standard start scan line and the integer, calculate the sequence number of the scan line corresponding to the scan start position and the sequence number of the scan line corresponding to the scan end position to determine the scan start position and the scan end position. Among them, when the decimal part of the sequence increment is less than or equal to 0.5, the integer is the value after rounding down the sequence number increment. When the decimal part of the sequence increment is greater than or equal to 0.5, the integer is the value after rounding up the sequence number increment.
[0090] Exemplarily, the touch sensing element includes k column scan lines (Tx1 - Tx(k)), the scan sampling direction is the clockwise direction, and k is a positive integer. As Figure 22 shown, when the rolling angle of the electronic pen is zero, the scan start position 2201 in the pen body coordinate system is the position corresponding to the column scan line Tx(k), and the column scan line Tx(k) is also the standard start scan line. The scan end position 2202 is the position corresponding to the column scan line Tx(k - 1), and the column scan line Tx(k - 1) is also the standard end scan line.
[0091] Assume that the electronic pen in the initial state rotates clockwise by θ around the Xp axis, that is, the rolling angle θ of the electronic pen is [360 / 2k, 3×360 / 2k]. As Figure 23 shown, in the pen body coordinate system of the rotated electronic pen, the included angle between the Zg axis Zg’ and the Zg axis Zg in the original coordinate system is θ. The included angle between the Yp axis Yp’ and the Yp axis Yp is θ. The scanning start position 2301 of the rotated electronic pen is the position corresponding to the column scanning line Tx(k - 1), and the scanning end position 2302 is the position corresponding to the column scanning line Tx(k - 2).
[0092] Assume that the electronic pen in the initial state rotates counterclockwise by θ around the Xp axis, that is, the rolling angle θ of the electronic pen is [-360 / 2k, -3×360 / 2k]. As Figure 24 shown, the scanning start position 2401 of the rotated electronic pen is the position corresponding to the column scanning line Tx(k + 1), and the scanning end position 2402 is the position corresponding to the column scanning line Tx(k).
[0093] In some embodiments of the present application, the recognition method further includes a process of determining the standard start scanning line. This determination process may include: when the rolling angle of the electronic pen is zero, obtaining the total number. In the case where the total number is even, one of the scanning lines intersecting the center of gravity axis among the scanning lines distributed circumferentially along the pen body of the touch sensor is used as the standard start scanning line. In the case where the total number is odd, one of the scanning lines located on one side of any intersection point between the touch sensor and the center of gravity axis among the scanning lines distributed circumferentially along the pen body of the touch sensor is used as the standard start scanning line.
[0094] Optionally, in the case where the total number is even, the scanning line of the vertex intersecting the center of gravity axis among the scanning lines distributed circumferentially along the pen body of the touch sensor is used as the standard start scanning line. In the case where the total number is odd, one of the scanning lines located on the right side of any intersection point between the touch sensor and the center of gravity axis among the scanning lines distributed circumferentially along the pen body of the touch sensor is used as the standard start scanning line. Wherein, when the rolling angle of the electronic pen is zero, the center of gravity axis of the electronic pen is the straight line where the Zg axis is located in the pen body coordinate system of the electronic pen.
[0095] Exemplarily, as Figure 19 shown, the total number 12 of the column scanning lines distributed circumferentially along the pen body is even, and the standard start scanning line is the column scanning line Tx0. Correspondingly, the standard end scanning line is the column scanning line Tx11. As Figure 25 shown, the total number 13 of the column scanning lines distributed circumferentially along the pen body is odd, and the standard start scanning line is the column scanning line Tx12. Correspondingly, the standard end scanning line is the column scanning line Tx0.
[0096] In some embodiments of the present application, the electronic pen can also combine various input forms according to its left- or right-handed pen-holding state to perform various processing operations corresponding to different pen-holding postures and various input forms, thereby realizing diversified pen gesture interactions. The process of the electronic pen performing processing operations includes:
[0097] The electronic pen receives a first input from the user. In response to the first input, it recognizes the left- or right-handed pen-holding state of the electronic pen when the user performs the first input and the input form of the first input. According to the recognition results of the left- or right-handed pen-holding state and the input form, it performs a processing operation corresponding to the recognition results. Among them, the processing operations corresponding to different recognition results are different. The input form can include but is not limited to: single-click input, double-click input, tight grip input, or sliding input.
[0098] Among them, the electronic pen can support the triggering operation of the processing operation combining the left- or right-handed pen-holding state and various input forms. Suppose the input form includes single-click input, double-click input, tight grip input, or sliding input. Then the electronic pen supports eight triggering operations (R1-R8). These eight triggering operations include: left-handed pen-holding state and single-click input (left-handed single-click gesture operation), left-handed pen-holding state and double-click input (left-handed double-click gesture operation), left-handed pen-holding state and tight grip operation (left-handed tight grip gesture operation), left-handed pen-holding state and sliding input (left-handed sliding gesture operation), right-handed pen-holding state and single-click input (right-handed single-click gesture operation), right-handed pen-holding state and double-click input (right-handed double-click gesture operation), right-handed pen-holding state and tight grip operation (right-handed tight grip gesture operation), right-handed pen-holding state and sliding input (right-handed sliding gesture operation). It is worth noting that the processing operations corresponding to various triggering operations can support user customization. In this way, the user can set different pen gestures and input forms to correspond to different processing operation functions according to their own habits, enrich the intelligent auxiliary functions of the electronic pen, and improve the convenience of the user using the electronic pen.
[0099] Optionally, the electronic pen can store the corresponding relationship among the left- or right-handed pen-holding state, the input form, and the processing operation. The process of the electronic pen performing the processing operation corresponding to the recognition results according to the recognition results of the left- or right-handed pen-holding state and the input form can include: The electronic pen searches for the processing operation corresponding to both the left- or right-handed pen-holding state and the input form in the recognition results from the corresponding relationship, and performs this processing operation.
[0100] For example, assume that in the correspondence relationship among the left and right hand pen-holding states, input forms, and processing operations, it is recorded that the left hand pen-holding state, single-click input corresponds to the first processing operation; the right hand pen-holding state, single-click input corresponds to the second processing operation. Among them, the first processing operation is used to display a toolbar on the left side of the display screen in an electronic device connected to the electronic pen. The second processing operation is used to display a toolbar on the right side of the display screen in an electronic device connected to the electronic pen.
[0101] After the electronic pen receives the first input, if it is recognized that the electronic pen is in the left hand pen-holding state and the input form is single-click input when the user performs the first input, the electronic pen causes the electronic device connected to the electronic pen to display a first interface, and a toolbar is displayed on the left side of the first interface. If it is recognized that the electronic pen is in the right hand pen-holding state and the input form is single-click input when the user performs the first input. Then the electronic pen causes the electronic device connected to the electronic pen to display a second interface, and a toolbar is displayed on the right side of the second interface. In this way, according to different left and right hand pen-holding postures, the same input form can achieve different processing functions, improving the usability of different user pen-holding habits and enhancing the user experience.
[0102] In an optional implementation manner, the processing operation functions corresponding to multiple trigger operations can be the processing operation functions corresponding to different function keys on the electronic device. In this way, the trigger operation can correspond to a function key with the same processing operation function. When the user uses the electronic pen to perform a trigger operation, it is equivalent to pressing a function key on the electronic device, so that the electronic pen performs the processing operation corresponding to the trigger operation, and the processing operation is used to control the electronic device to execute the function corresponding to the function key. For example, taking the above eight trigger operations as an example, the eight trigger operations can respectively correspond to key A, key B, key C, key D, key E, key F, key G, and key H.
[0103] In the embodiment of the present application, the electronic pen can use the left and right hand pen-holding state recognition method provided in the embodiment of the present application to recognize the left and right hand pen-holding states of the electronic pen when the user performs the first input. The electronic pen can recognize the input form of the first input according to the relevant operation parameters of the first input.
[0104] Among them, when the relevant operation parameters of the first input meet the requirements of the single-click gesture, it is determined that the input form of the first input is single-click input. When the relevant operation parameters of the first input meet the requirements of the double-click gesture, it is determined that the input form of the first input is double-click input. When the relevant operation parameters of the first input meet the requirements of the tight grip gesture, it is determined that the input form of the first input is tight grip input. When the relevant operation parameters of the first input meet the requirements of the sliding gesture, it is determined that the input form of the first input is sliding input.
[0105] Specifically, the single - click gesture requirements include the pen - body touch single - click gesture requirements and the pen - body pressure - sensitive single - click gesture requirements. The pen - body touch single - click gesture requirements are as follows: in the first input click operation, the time interval between the pressing operation and the lifting operation is less than the first time threshold, the touch area of the finger on the pen body when performing the first input is less than the first area threshold, and the distance between the position of the pressing operation and the position of the lifting operation in the first input click operation is less than the first distance threshold. The pen - body pressure - sensitive single - click gesture requirements are as follows: as Figure 26 shown, when performing the first input, the pressure applied to the pen body, that is, the change time ΔD11 of the pen body pressure from g1 to g2, the duration ΔD12 of the pen body pressure maintained at g2, and the change time ΔD13 from g2 to g1 all conform to their corresponding normal time ranges. Among them, ΔD11 = t2 - t1, ΔD12 = t3 - t2, ΔD13 = t4 - t3.
[0106] Specifically, the double - click gesture requirements include the pen - body touch double - click gesture requirements and the pen - body pressure - sensitive double - click gesture requirements. The pen - body touch double - click gesture requirements are as follows: in the two click operations of the first input, the time interval between the pressing operation and the lifting operation is less than the second time threshold, the touch area of the finger on the pen body in both click operations is less than the second area threshold, and the distance between the position of the pressing operation and the position of the lifting operation in both click operations is less than the second distance threshold. The pen - body pressure - sensitive double - click gesture requirements are as follows: as Figure 27 shown, when performing the first input, the change time ΔD21 of the pen body pressure from g1 to g2, the duration ΔD22 maintained at g2, the change time ΔD23 from g2 to g1, the duration ΔD24 maintained at g1, the change time ΔD25 from g1 to g2 again, the duration ΔD26 maintained at g2, and the final change time ΔD27 from g2 to g1 all conform to their corresponding normal time ranges. Among them, ΔD21 = t2 - t1, ΔD22 = t3 - t2, ΔD23 = t4 - t3, ΔD24 = t5 - t4, ΔD25 = t6 - t5, ΔD26 = t7 - t6, ΔD27 = t8 - t7.
[0107] Specifically, the swipe gesture requirements include the pen - body touch swipe gesture requirements and the pen - body pressure - sensitive swipe gesture requirements. The pen - body touch swipe gesture requirements are as follows: when performing the first input, the touch area of the finger on the pen body is less than the third area threshold, the swipe distance of the first input conforms to the target distance range, and the swipe speed of the first input conforms to the target speed range. The pen - body pressure - sensitive swipe gesture requirements are as follows: as Figure 28As shown, when the first input is executed, the change time ΔD31 of the pen body pressure from g1 to g2, the duration ΔD32 of the pen body pressure being maintained at g2, and the change time ΔD33 of the pen body pressure being reduced from g2 to g1 all conform to their corresponding normal time ranges. Among them, ΔD31=t2-t1, ΔD32=t3-t2, and ΔD33=t4-t3. Among them, g1 is the pen body pressure when the user does not execute the first input. g2 is the maximum pressure applied to the pen body when the user executes the first input in the form of single-click input, double-click input, and sliding input.
[0108] Specifically, the gripping gesture requirements include the pen body touch gripping gesture requirements and the pen body pressure gripping gesture requirements. The pen body touch gripping gesture requirements: when executing the first input, the touch position of the finger on the pen body meets the target position range, and the duration of the first input on the pen body meets the target time range. The pen body pressure gripping gesture requirements are: Figure 29 As shown, when executing the first input, the change time ΔD41 of the pen body pressure from g1 to g3, the duration ΔD42 maintained at g3, and the change time ΔD43 from g3 to g1 are all within their corresponding normal time ranges. Among them, g3>g2, ΔD41=t2-t1, ΔD42=t3-t2, ΔD43=t4-t3. g3 is the maximum pressure applied to the pen body when the user executes the first input in the form of a tight grip input. In this way, by utilizing the pen grip touch features (data features, time features, and displacement features) corresponding to inputs of different input forms and the change features of the pen grip pressure, multi-feature recognition of the user's normal gesture input operation is performed, thereby improving the recognition accuracy of normal gesture input operations, relatively reducing the probability of false triggering of gesture input operations, and improving user experience.
[0109] In summary, the method for identifying the left-hand holding state of the pen provided in the embodiment of the present application is applied to an electronic pen, which includes a touch sensing member arranged around the pen body. The electronic pen obtains hand touch information including multiple touch positions through the touch sensing member, and identifies the index finger touch position and the first touch position from the multiple touch positions. Therefore, based on the relative positions between the index finger touch position, the first touch position, the scanning start position and the scanning end position, it is determined whether the electronic pen is in the left-hand holding state or the right-hand holding state. Among them, the first touch position indicates the thumb touch position or the base of the thumb touch position. The scanning start position and the scanning end position are respectively the starting position and the ending position when the touch sensing member performs scanning sampling along the circumference of the pen body. In this technical solution, the identification of the left-hand holding state of the electronic pen is realized by utilizing the different relative positions between the index finger touch position, the first touch position, the scanning start position and the scanning end position when the left-hand holding pen is used.
[0110] The recognition method for left and right hand pen - holding states provided by the embodiments of the present application may be executed by a recognition device for left and right hand pen - holding states. In the embodiments of the present application, taking the recognition device for left and right hand pen - holding states executing the recognition method for left and right hand pen - holding states as an example, the recognition device for left and right hand pen - holding states provided by the embodiments of the present application is described.
[0111] Please refer to Figure 30 , which shows a block diagram of a recognition device for left and right hand pen - holding states provided by the embodiments of the present application. The recognition device for left and right hand pen - holding states is applied to an electronic pen, and the electronic pen includes a touch - sensing member that is disposed around the pen body. As Figure 30 shown, the recognition device 3000 for left and right hand pen - holding states includes: an acquisition module 3001, a recognition module 3002, and a determination module 3003.
[0112] The acquisition module 3001 is configured to obtain hand touch information through the touch - sensing member, where the hand touch information includes a plurality of touch positions;
[0113] The recognition module 3002 is configured to identify an index - finger touch position and a first touch position from the plurality of touch positions, where the first touch position indicates a thumb touch position or a thumb - web touch position;
[0114] The determination module 3003 is configured to determine whether the electronic pen is in a left - hand pen - holding state or a right - hand pen - holding state based on the relative positions among the index - finger touch position, the first touch position, the scanning start position, and the scanning end position, where the scanning start position and the scanning end position are, in sequence, the start position and the end position when scanning and sampling along the circumferential direction of the pen body through the touch - sensing member.
[0115] Optionally, the azimuths of the scanning start position and the scanning end position relative to the centroid of the electronic pen are fixed; the determination module 3003 is further configured to: determine whether the electronic pen is in a left - hand pen - holding state or a right - hand pen - holding state according to the first distance and the second distance, and / or, the third distance and the fourth distance, where the first distance is the distance from the scanning start position to the index - finger touch position in the scanning and sampling direction along the circumferential direction of the touch - sensing member, the second distance is the distance from the scanning start position to the first touch position in the scanning and sampling direction, the third distance is the distance from the index - finger touch position to the scanning end position in the scanning and sampling direction, and the fourth distance is the distance from the first touch position to the scanning end position in the scanning and sampling direction.
[0116] Optionally, the determination module 3003 is further configured to:
[0117] When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the first area, when the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is greater than the second distance, or the third distance is less than the fourth distance, it is determined that the electronic pen is in the left hand holding state;
[0118] When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the second area, when the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is greater than the second distance, or the third distance is less than the fourth distance, it is determined that the electronic pen is in the left hand holding state;
[0119] When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the second area, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left hand holding state,
[0120] When the scanning and sampling direction of the electronic pen along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the first area, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left hand holding state, where the clockwise direction is the clockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body, the counterclockwise direction is the counterclockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body, the area between the index finger position and the thumb position on the outer surface of the pen body includes the first area and the second area, and the first area is away from the position of the tiger's mouth on the pen body.
[0121] Optionally, the obtaining module 3001 is further configured to obtain the rolling angle of the electronic pen when the electronic pen rotates;
[0122] The determination module 3003 is further configured to determine a scanning start position and a scanning end position according to the rolling angle, the total number of scanning lines in which the touch sensors are circumferentially distributed along the pen body, and the position of the standard start scanning line,
[0123] wherein, when the rolling angle of the electronic pen is zero, the start position during the scanning and sampling by the touch sensors along the circumferential direction of the pen body is the position of the standard start scanning line, and when the obtained rolling angle of the electronic pen is θ, the rolling angle of the standard start scanning line relative to the scanning line corresponding to the scanning start position is Or , α is the quotient of 360 and the total number, denotes the ceiling operation, denotes the floor operation.
[0124] Optionally, the hand touch information further includes: the contact area of each touch position; the recognition module 3002 is further configured to determine, from the contact areas corresponding to each touch position, the touch position corresponding to the minimum contact area as the index finger touch position, and the touch position corresponding to the maximum contact area as the first touch position.
[0125] In the embodiments of the present application, the left and right hand pen-holding state recognition device is applied to an electronic pen, which includes touch sensors arranged around the pen body. The electronic pen obtains hand touch information including multiple touch positions through the touch sensors, and identifies the index finger touch position and the first touch position from the multiple touch positions. Thus, based on the relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position, it is determined whether the electronic pen is in the left hand pen-holding state or the right hand pen-holding state. Among them, the first touch position indicates the thumb touch position or the thumb web touch position. The scanning start position and the scanning end position are sequentially the start position and the end position during the scanning and sampling by the touch sensors along the circumferential direction of the pen body. In this technical solution, by using the different relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position when holding the pen with the left and right hands, the recognition of the left and right hand pen-holding states of the electronic pen is realized.
[0126] The left and right hand pen-holding state recognition device in the embodiments of the present application can be an electronic pen or a component in the electronic pen, such as an integrated circuit or a chip.
[0127] The left and right hand pen-holding state recognition device in the embodiments of the present application can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
[0128] The left and right hand pen-holding state recognition device provided in the embodiments of the present application can achieve Figure 9Or Figure 21 For the sake of avoiding repetition, the various processes implemented by the method embodiments will not be described herein again.
[0129] Optionally, as Figure 31 shown, an embodiment of the present application further provides an electronic pen 3100, including a processor 3101 and a memory 3102. A program or instruction that can run on the processor 3101 is stored on the memory 3102. When the program or instruction is executed by the processor 3101, the various steps of the above-mentioned method embodiment for recognizing the left and right hand pen-holding states are implemented, and the same technical effects can be achieved. For the sake of avoiding repetition, it will not be described herein again.
[0130] Figure 32 The figure is a schematic hardware structure diagram of an electronic pen for implementing an embodiment of the present application. The electronic pen 3200 includes, but is not limited to: a radio frequency unit 3201, a network module 3202, an audio output unit 3203, an input unit 3204, a sensor 3205, a display unit 3206, a user input unit 3207, an interface unit 3208, a memory 3209, and a processor 3200 and other components. The electronic pen 3200 further includes a touch sensing member, and the touch sensing member is disposed around the pen body.
[0131] Those skilled in the art can understand that the electronic pen 3200 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 3200 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 32 The structure of the electronic device shown in does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements, which will not be described herein again.
[0132] Among them, the processor 3200 is used to obtain hand touch information through the touch sensing member, and the hand touch information includes a plurality of touch positions; and is used to identify an index finger touch position and a first touch position from the plurality of touch positions, where the first touch position indicates a thumb touch position or a thumb web touch position; and is further used to determine whether the electronic pen is in a left hand pen-holding state or a right hand pen-holding state based on the relative positions between the index finger touch position, the first touch position, a scan start position, and a scan end position, where the scan start position and the scan end position are successively the start position and the end position when scanning and sampling along the circumferential direction of the pen body through the touch sensing member.
[0133] In the embodiments of the present application, the electronic pen obtains hand touch information including multiple touch positions through a touch sensing component, and identifies the index finger touch position and the first touch position from the multiple touch positions. Then, based on the relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position, it is determined whether the electronic pen is in a left-handed pen-holding state or a right-handed pen-holding state. Among them, the first touch position indicates the thumb touch position or the thumb web touch position. The scanning start position and the scanning end position are, in sequence, the start position and the end position when scanning and sampling along the circumferential direction of the pen body through the touch sensing component. In this technical solution, the different relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position when holding the pen with the left or right hand are used to realize the identification of the left-handed and right-handed pen-holding states of the electronic pen.
[0134] Optionally, the azimuths of the scanning start position and the scanning end position relative to the centroid of the electronic pen are fixed; the processor 3200 is further configured to determine whether the electronic pen is in a left-handed pen-holding state or a right-handed pen-holding state according to the first distance and the second distance, and / or, the third distance and the fourth distance.
[0135] Among them, the first distance is the distance from the scanning start position to the index finger touch position in the scanning and sampling direction of the touch sensing component along the circumferential direction of the pen body, the second distance is the distance from the scanning start position to the first touch position in the scanning and sampling direction, the third distance is the distance from the index finger touch position to the scanning end position in the scanning and sampling direction, and the fourth distance is the distance from the first touch position to the scanning end position in the scanning and sampling direction.
[0136] Optionally, the processor 3200 is further configured to, when the scanning and sampling direction of the touch sensing component along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first area, determine that the electronic pen is in a right-handed pen-holding state when the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance; determine that the electronic pen is in a left-handed pen-holding state when the first distance is greater than the second distance, or the third distance is less than the fourth distance.
[0137] When the scanning and sampling direction of the touch sensing component along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the second area, determine that the electronic pen is in a right-handed pen-holding state when the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance; determine that the electronic pen is in a left-handed pen-holding state when the first distance is greater than the second distance, or the third distance is less than the fourth distance.
[0138] When the scanning and sampling direction of the touch sensing element along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the second region, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left hand holding state.
[0139] When the scanning and sampling direction of the electronic pen along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first region, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left hand holding state.
[0140] Wherein, the clockwise direction is the clockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body, the counterclockwise direction is the counterclockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body, the region between the index finger position and the thumb position on the outer surface of the pen body includes a first region and a second region, and the first region is away from the position of the tiger's mouth on the pen body.
[0141] Optionally, the processor 3200 is further configured to: when the electronic pen rotates, obtain the rolling angle of the electronic pen; and further configured to determine the scanning start position and the scanning end position according to the rolling angle, the total number of scanning lines distributed along the circumferential direction of the touch sensing element, and the position of the standard start scanning line. Wherein, when the rolling angle of the electronic pen is zero, the start position when the touch sensing element performs scanning and sampling along the circumferential direction of the pen body is the position of the standard start scanning line. When the obtained rolling angle of the electronic pen is θ, the rolling angle of the standard start scanning line relative to the scanning line corresponding to the scanning start position is Or , α is the quotient of 360 and the total number, represents the ceiling operation, represents the floor operation.
[0142] Optionally, the hand touch information further includes: the contact area of each touch position; the processor 3200 is further configured to determine, from the contact areas corresponding to each touch position, the touch position corresponding to the minimum contact area as the index finger touch position, and the touch position corresponding to the maximum contact area as the first touch position.
[0143] In the embodiments of the present application, the electronic pen obtains hand touch information including multiple touch positions through a touch sensing component, and identifies the index finger touch position and the first touch position from the multiple touch positions. Then, based on the relative positions among the index finger touch position, the first touch position, the scan start position, and the scan end position, it is determined whether the electronic pen is in the left hand pen-holding state or the right hand pen-holding state. Among them, the first touch position indicates the thumb touch position or the thumb web touch position. The scan start position and the scan end position are, in sequence, the start position and the end position when scanning and sampling along the circumferential direction of the pen body through the touch sensing component. In this technical solution, the different relative positions among the index finger touch position, the first touch position, the scan start position, and the scan end position when holding the pen with the left or right hand are utilized to realize the identification of the left and right hand pen-holding states of the electronic pen.
[0144] It should be understood that, in the embodiments of the present application, the input unit 3204 may include a Graphics Processing Unit (GPU) 32041 and a microphone 32042. The GPU 32041 processes the image data of static pictures or videos obtained by an image capturing device (such as a camera) in the video capture mode or the image capture mode. The display unit 3206 may include a display panel 32061, and the display panel 32061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 3207 includes at least one of a touch panel 32071 and other input devices 32072. The touch panel 32071 is also called a touch screen. The touch panel 32071 may include two parts: a touch detection device and a touch controller. The other input devices 32072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here.
[0145] The memory 3209 can be used to store software programs and various data. The memory 3209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 3209 may include a volatile memory or a non-volatile memory, or the memory 3209 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 3209 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.
[0146] The processor 3200 may include one or more processing units; optionally, the processor 3200 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor may not be integrated into the processor 3200 either.
[0147] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above-mentioned embodiment of the method for recognizing the left and right hand pen-holding states, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0148] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs.
[0149] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned embodiment of the method for identifying the left and right hand pen-holding states, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0150] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip.
[0151] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above-mentioned embodiment of the method for identifying the left and right hand pen-holding states, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0152] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without more limitations, the element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0153] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0154] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A method for identifying the pen-holding states of the left and right hands, characterized in that, Applied to an electronic pen, the electronic pen includes a touch sensor, and the touch sensor is disposed around the pen body. The method includes: Obtaining hand touch information through the touch sensor, where the hand touch information includes a plurality of touch positions; Identifying an index finger touch position and a first touch position from the plurality of touch positions, where the first touch position indicates a thumb touch position or a thumb web touch position; Based on the relative positions among the index finger touch position, the first touch position, a scan start position, and a scan end position, determining whether the electronic pen is in a left-handed pen-holding state or a right-handed pen-holding state. Here, the scan start position and the scan end position are, in sequence, the start position and the end position when scanning and sampling along the circumferential direction of the pen body through the touch sensor. The area between the index finger position and the thumb position on the outer surface of the pen body includes a first area and a second area, and the first area is away from the position of the thumb web on the pen body. When the first touch position indicates the thumb touch position, the corresponding positions of the scan start position and the scan end position on the pen body are located in the first area or the second area; when the first touch position indicates the thumb web touch position, the corresponding positions of the scan start position and the scan end position on the pen body are located in the first area; Wherein, the orientations of the scan start position and the scan end position relative to the centroid of the electronic pen are fixed; the determining whether the electronic pen is in a left-handed pen-holding state or a right-handed pen-holding state based on the relative positions among the index finger touch position, the first touch position, the scan start position, and the scan end position includes: Determining whether the electronic pen is in a left-handed pen-holding state or a right-handed pen-holding state according to a first distance and a second distance, and / or, a third distance and a fourth distance, Wherein, the first distance is the distance from the scan start position to the index finger touch position in the scan sampling direction along the circumferential direction of the pen body by the touch sensor, the second distance is the distance from the scan start position to the first touch position in the scan sampling direction, the third distance is the distance from the index finger touch position to the scan end position in the scan sampling direction, and the fourth distance is the distance from the first touch position to the scan end position in the scan sampling direction.
2. The method according to claim 1, characterized in that The determining whether the electronic pen is in a left-handed pen-holding state or a right-handed pen-holding state according to a first distance and a second distance, and / or, a third distance and a fourth distance includes: When the scan sampling direction along the circumferential direction of the pen body by the touch sensor is counterclockwise, and the corresponding positions of the scan start position and the scan end position on the pen body are located in the first area, if the first distance is less than or equal to the second distance, or, the third distance is greater than or equal to the fourth distance, determining that the electronic pen is in a right-handed pen-holding state; if the first distance is greater than the second distance, or, the third distance is less than the fourth distance, determining that the electronic pen is in a left-handed pen-holding state; When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the second region, when the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance, it is determined that the electronic pen is in the right-handed pen-holding state; when the first distance is greater than the second distance, or the third distance is less than the fourth distance, it is determined that the electronic pen is in the left-handed pen-holding state; When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the second region, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right-handed pen-holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left-handed pen-holding state. When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located within the first region, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right-handed pen-holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left-handed pen-holding state. Wherein, the clockwise direction is the clockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body, and the counterclockwise direction is the counterclockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body.
3. The method according to claim 1 or 2, characterized in that, Before obtaining the hand touch information through the touch sensor, the method further includes: When the electronic pen rotates, obtaining the rolling angle of the electronic pen; Determining the scanning start position and the scanning end position according to the rolling angle, the total number of scanning lines of the touch sensor distributed along the circumferential direction of the pen body, and the position of the standard start scanning line. Wherein, when the rolling angle of the electronic pen is zero, the starting position of the touch sensing element for scanning and sampling along the circumferential direction of the pen body is the position where the standard starting scan line is located. When the obtained rolling angle of the electronic pen is θ, the rolling angle of the standard starting scan line relative to the scan line corresponding to the scan starting position is Or , where α is the quotient of 360 and the total number, represents the ceiling operation, represents the floor operation.
4. The method according to claim 1, wherein The hand touch information further includes: the contact area of each touch position; identifying the index finger touch position and the first touch position from the multiple touch positions includes: Determining the touch position corresponding to the minimum contact area among the contact areas corresponding to each touch position as the index finger touch position, and determining the touch position corresponding to the maximum contact area as the first touch position.
5. An identification device for the pen-holding states of the left and right hands, characterized in that, Applied to an electronic pen, the electronic pen includes a touch sensor, and the touch sensor is disposed around the pen body. The device includes: An obtaining module, configured to obtain hand touch information through the touch sensor, where the hand touch information includes multiple touch positions; An identifying module, configured to identify an index finger touch position and a first touch position from the multiple touch positions, where the first touch position indicates a thumb touch position or a thumb web touch position; A determination module, configured to determine whether the electronic pen is in a left-handed or right-handed pen-holding state based on the relative positions among the index finger touch position, the first touch position, the scanning start position, and the scanning end position, where the scanning start position and the scanning end position are successively the start position and the end position when scanning and sampling along the circumferential direction of the pen body through the touch sensor, the area between the index finger position and the thumb position on the outer surface of the pen body includes a first area and a second area, and the first area is away from the position of the tiger's mouth on the pen body. When the first touch position indicates the thumb touch position, the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first area or the second area; when the first touch position indicates the tiger's mouth touch position, the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first area; The azimuths of the scanning start position and the scanning end position relative to the centroid of the electronic pen are fixed; the determination module is further configured to: Determine whether the electronic pen is in a left-handed or right-handed pen-holding state based on the first distance and the second distance, and / or, the third distance and the fourth distance, where the first distance is the distance from the scanning start position to the index finger touch position in the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body, the second distance is the distance from the scanning start position to the first touch position in the scanning and sampling direction, the third distance is the distance from the index finger touch position to the scanning end position in the scanning and sampling direction, and the fourth distance is the distance from the first touch position to the scanning end position in the scanning and sampling direction.
6. The device according to claim 5, characterized in that, The determination module is further configured to: When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first area, if the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance, determine that the electronic pen is in a right-handed pen-holding state; if the first distance is greater than the second distance, or the third distance is less than the fourth distance, determine that the electronic pen is in a left-handed pen-holding state; When the scanning and sampling direction of the touch sensor along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the second area, if the first distance is less than or equal to the second distance, or the third distance is greater than or equal to the fourth distance, determine that the electronic pen is in a right-handed pen-holding state; if the first distance is greater than the second distance, or the third distance is less than the fourth distance, determine that the electronic pen is in a left-handed pen-holding state; When the scanning and sampling direction of the touch sensing element along the circumferential direction of the pen body is counterclockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the second region, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left hand holding state. When the scanning and sampling direction of the electronic pen along the circumferential direction of the pen body is clockwise, and the corresponding positions of the scanning start position and the scanning end position on the pen body are located in the first region, when the first distance is greater than or equal to the second distance, or the third distance is less than or equal to the fourth distance, it is determined that the electronic pen is in the right hand holding state; when the first distance is less than the second distance, or the third distance is greater than the fourth distance, it is determined that the electronic pen is in the left hand holding state. Wherein, the clockwise direction is the clockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body, and the counterclockwise direction is the counterclockwise direction when the user looks at the pen body from the tip of the pen along the extension line of the pen body.
7. The device according to claim 5 or 6, characterized in that The obtaining module is further configured to obtain the rolling angle of the electronic pen when the electronic pen rotates. The determining module is further configured to determine the scanning start position and the scanning end position according to the rolling angle, the total number of scanning lines of the touch sensing element distributed along the circumferential direction of the pen body, and the position of the standard start scanning line. Wherein, when the rolling angle of the electronic pen is zero, the starting position of the touch sensor during circumferential scanning and sampling along the pen body is the position where the standard starting scan line is located. When the obtained rolling angle of the electronic pen is θ, the rolling angle of the standard starting scan line relative to the scan line corresponding to the scan starting position is or , where α is the quotient of 360 and the total number, represents the ceiling operation, represents the floor operation.
8. The device according to claim 5, characterized in that The hand touch information further includes: the contact area of each touch position; the recognition module is further configured to: Determine the touch position corresponding to the minimum contact area among the contact areas corresponding to each touch position as the index finger touch position, and determine the touch position corresponding to the maximum contact area as the first touch position.
9. An electronic pen, characterized in that, It includes a processor and a memory, and the memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the left and right hand holding state recognition method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Intelligent pen holding posture detection method
CN113569779A
Online teaching method, electronic equipment and communication system
CN114816088A