[go: up one dir, main page]

WO2022257870A1 - Virtual scale display method and related device - Google Patents

Virtual scale display method and related device Download PDF

Info

Publication number
WO2022257870A1
WO2022257870A1 PCT/CN2022/097085 CN2022097085W WO2022257870A1 WO 2022257870 A1 WO2022257870 A1 WO 2022257870A1 CN 2022097085 W CN2022097085 W CN 2022097085W WO 2022257870 A1 WO2022257870 A1 WO 2022257870A1
Authority
WO
WIPO (PCT)
Prior art keywords
gesture
touch screen
contact
virtual
hand
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2022/097085
Other languages
French (fr)
Chinese (zh)
Inventor
叶枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2022257870A1 publication Critical patent/WO2022257870A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present application relates to the field of terminal software, in particular to a method for displaying a virtual scale and related equipment.
  • an interactive touch display device such as interactive electronic whiteboards
  • a stylus to facilitate users to write on the screen.
  • Electronic whiteboards are generally suitable for multi-person discussion scenarios and play a role similar to blackboards.
  • conference rooms or teaching scenarios sometimes there is a need for drawing, table drawing, and pattern measurement, and a virtual ruler needs to be called out through specific operations.
  • the existing gestures for triggering and calling the virtual ruler are relatively complicated, and the operation is difficult and costly, and does not conform to the user's operating habits.
  • the present application detects a contact gesture with the touch screen, and based on the contact gesture indicates the contact of the side of the user's hand with the touch screen, and displays a virtual scale on the touch screen according to the contact area of the contact gesture.
  • a contact gesture indicates the contact of the side of the user's hand with the touch screen, and displays a virtual scale on the touch screen according to the contact area of the contact gesture.
  • the contact area between the side of the hand and the touch screen is a flat strip area, close to a straight line. Triggering the display of the virtual ruler based on this operation mode is more in line with the user's operation habits.
  • An embodiment of the present application provides a method for displaying a virtual ruler, which is applied to an electronic device, the electronic device includes a touch screen, and the method includes:
  • the touch screen may include a touch-sensitive surface, a sensor or a sensor group that receives input from the user based on tactile contact, and "detecting a contact gesture with the touch screen” may be understood as detecting a contact gesture with the touch-sensitive surface on the touch screen ;
  • the contact gesture Based on the contact gesture indicating that the side of the user's hand is in contact with the touch screen, displaying a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is a strip-shaped area, The virtual ruler is attached to the long side of the strip-shaped area.
  • contact area can be understood as a detectable area in contact with the touch-sensitive surface, which can be a continuous area or a discrete area composed of dense touch points (for example, a contact area can be a group of densely distributed The long strip area formed by the contact points);
  • the virtual scale is attached to the long side of the strip-shaped area, that is to say, in the display position, the virtual scale and the strip-shaped area need to be very close, and in the direction, the virtual scale and the strip-shaped area need to be very close.
  • the long sides of the shaped region are parallel or close to parallel;
  • the display of the virtual ruler is triggered.
  • the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode Triggering the display of the virtual ruler is more in line with the user's operating habits.
  • the side of the hand is the side of the user's hand that is located on the side of the little finger in an unfolded state.
  • the side of the hand in the embodiment of the present application can be understood as the side of the user's hand located on the side of the little finger in the unfolded state (for example, including at least one of the surface of the hypothenar part of the user's hand or the surface of the little finger).
  • the unfolded state of the hand may be a state where the user's fingers (or only the little finger) are on the same plane (or close to the same plane) as the palm.
  • the contact area includes: a contact area between a hypothenar part on the side of the user's hand and the touch screen; or, a contact area between a little finger on the side of the user's hand and the touch screen.
  • the side of the hand may include the area of the hypothenar area and the area of the little finger.
  • the side of the user's hand is in contact with the touch screen, at least one of the following contact situations may occur due to the posture of the hand or the characteristics of the user's hand shape:
  • the area of the hypothenar is in contact with the touch screen
  • the area of the little finger is in contact with the touch screen
  • the method further includes: based on the contact area of the contact gesture meeting a preset condition, determining that the contact gesture indicates that the side of the user's hand is in contact with the touch screen; the preset condition includes : The contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen.
  • the shape can be understood as the outline feature of the boundary line of the contact area.
  • the outline shape of the boundary line of the contact area is flat and long, it can be considered that the shape of the contact area conforms to the hypothenar position and/or little finger on the side of the user's hand.
  • the shape can also be understood as the distribution characteristics of the contact points included in the contact area, and whether the above shape characteristics are satisfied can be judged by detecting the distribution shape of the touch points. (For example, if a group of densely distributed elongated touch points are detected, it can be considered that the shape of the contact area conforms to the shape characteristics of the contact area when the hypothenar position on the side of the user's hand and/or the little finger position is in contact with the touch screen) ;
  • the area size of the contact area when the area size of the contact area is within the preset range (the maximum value in this range cannot be too large, and the minimum value in this range cannot be too small, it can be set based on the characteristics of the side of the hand of the human hand. ), then it can be considered that the size of the contact area conforms to the characteristics of the area size of the contact area when the hypothenar part and/or little finger part of the side of the user's hand is in contact with the touch screen.
  • the method also includes:
  • the contact gesture indicates that the side of the user's hand is in contact with the touch screen.
  • the virtual ruler is attached to the long side of the strip-shaped region, including:
  • the acute angle between the direction of the virtual ruler and the direction indicated by the long side of the strip-shaped area is smaller than a preset value, and the preset value can be 1 degree, 2 degrees, 3 degrees, 4 degrees, 5 degrees, 10 degrees, etc.; and the virtual ruler and the strip-shaped area meet one of the following conditions:
  • the preset value can be 1cm, 2cm, 3cm, 4cm, 5cm, 10cm, 15cm, etc.
  • the method before displaying the virtual ruler on the touch screen according to the contact area of the contact gesture, the method further includes: detecting that the contact gesture is maintained for a time longer than a preset time.
  • the maintenance time of the contact gesture can start counting when the contact gesture is detected, or after detecting that the contact intensity between the contact gesture and the touch screen is greater than a certain contact intensity threshold (threshold greater than 0), the maintenance time can be The timing ends when it is detected that the contact intensity of the contact gesture is 0, or the timing ends when it is detected that the contact intensity of the contact gesture is less than a certain contact intensity threshold (threshold greater than 0).
  • the maintenance time of the contact gesture may be the maintenance time when the contact gesture remains in a static state (or the movement is less than a certain range), for example, the maintenance time of the contact gesture may be the maintenance time when the pressing gesture is at rest (or the movement is less than a certain range) .
  • the above static state may be understood as a static state of the contact area of the touch gesture;
  • the method further includes: detecting movement of a contact area of the contact gesture; and adjusting a display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.
  • the so-called movement can be understood as a change in position and/or a change in direction
  • the so-called following can be understood as always fitting the display position of the virtual ruler with the contact area of the touch gesture. Since the contact area of the touch gesture moves, the display position and direction of the virtual ruler will also change, and in the virtual The display area of the ruler is always in close contact with the long side of the contact area.
  • the method further includes: detecting a hand-raising gesture of the user; in response to the hand-raising gesture, hiding the display of the virtual ruler on the touch screen.
  • the gesture of raising the hand can be understood as the side of the hand leaving the touch screen, or the contact intensity between the side of the hand and the touch screen is less than a certain threshold, or the contact area between the side of the hand and the touch screen is smaller than a preset value.
  • the instructing that the side of the user's hand contacts the touch screen based on the contact gesture includes: instructing that the side of the user's hand and the touch screen perform a preset number of taps based on the contact gesture
  • the method further includes: detecting a hand-raising gesture of the user; in response to the hand-raising gesture, maintaining the display of the virtual ruler on the touch screen.
  • the virtual ruler still needs to be used after the user raises his hand, so it is necessary to trigger the fixed display of the virtual ruler on the touch screen based on a certain gesture
  • the preset number of taps needs to occur within a preset time, and the preset time is a short time (for example, 0.1S, 0.2S, 0.3S, 0.4S, 0.5S, etc.);
  • tapping positions of the preset number of taps on the touch screen need to be kept consistent, or slight deviations are allowed.
  • the preset number of times can be 2 times, 3 times, etc.
  • the virtual ruler can be fixedly displayed on the touch screen.
  • the method further includes: detecting a user's selection instruction for the virtual scale; in response to the selection instruction, displaying a trigger control, where the trigger control is used to indicate the selection of the virtual scale At least one of the following operations is performed: a deletion operation, a position adjustment operation, and a rotation operation.
  • the user can trigger the selection of the virtual ruler by clicking on the fixedly displayed virtual ruler.
  • the touch screen will pop up a trigger control.
  • the trigger control can be a prompt for indicating the deletion operation of the virtual ruler. Click the "Delete" prompt or drag the virtual ruler to the trash icon) to delete the virtual ruler.
  • the user can trigger the selection of the virtual ruler by clicking on the fixedly displayed virtual ruler.
  • the touch screen will pop up a trigger control.
  • the trigger control can be a prompt for indicating the position adjustment operation for the virtual ruler.
  • the user can By clicking the "posture adjustment” control, you can enter the posture adjustment mode for the virtual ruler. For example, in this mode, the user can adjust the display posture of the virtual ruler by touching the side of the hand and the touch screen.
  • the adjustment method can refer to the above The relevant descriptions about the control of the display position of the virtual ruler in the embodiment will not be repeated here.
  • the virtual ruler For another example, if you need to rotate the virtual ruler, you can use two fingers (on the virtual ruler or within the preset distance of the virtual ruler) to place two Click at different positions, and the two touch points rotate clockwise or counterclockwise at the same time to turn the virtual ruler.
  • the included angle between the virtual scale before and after the rotation can be displayed in real time.
  • tapping and fixed display of the virtual ruler and other gestures are in line with the user's operating habits and can greatly improve the operating efficiency.
  • the virtual ruler is used to measure the length of the drawing line segment displayed on the touch screen; or, the virtual ruler is used to measure the length of the drawing points displayed on the touch screen distance measurement.
  • the method further includes: detecting that there is a drawing line segment associated with the virtual ruler in a gesture on the touch screen, and displaying the length value of the drawing line segment; the existing gesture association includes : the direction difference from the virtual ruler is smaller than a preset value; and/or, the distance value from the virtual ruler is smaller than a preset value.
  • the so-called posture association can be understood as a high degree of fit between the virtual ruler and the drawing straight line segment.
  • the posture association can be expressed by the direction difference and the distance value.
  • the direction difference between the drawing straight line segment and the virtual ruler is less than the preset value (such as less than 20 degrees, 25 degrees, 30 degrees, 35 degrees, 40 degrees, 45 degrees, etc.); and/or, the distance between the drawn straight line segment and the virtual ruler is less than a preset value (such as 1cm, 2cm, 3cm etc.), it can be considered that there is a drawing line segment associated with the gesture of the virtual ruler on the touch screen.
  • the distance can be understood as the distance between the nearest point on the virtual ruler and the drawing straight line segment, or the average value of the distance between the point on the virtual ruler and the drawing straight line segment, or can be used to characterize the virtual ruler and drawing The method for the distance between straight line segments.
  • the detection module detects that there are multiple drawing straight line segments associated with the virtual ruler in gestures on the touch screen, the length value of the drawing straight line segment with the highest degree of gesture-association may be acquired and displayed.
  • the method further includes: adjusting the display position of the virtual ruler according to the position of the line segment to be measured, so that the display position of the virtual ruler fits with the drawn straight line. That is to say, a display effect similar to magnetic attraction is realized.
  • adjusting the display position of the virtual ruler may include adjusting the position and display direction of the virtual ruler.
  • the method further includes: detecting that there is a first intersection point and a second intersection point between the drawn line segment on the touch screen and the virtual ruler, and displaying A distance value between the first intersection point and the second intersection point.
  • the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.
  • the method further includes: detecting a line-drawing gesture on the touch screen; based on the fact that the virtual ruler is displayed on the touch screen, and the position of the line-drawing gesture of the The distance between the virtual rulers is within a preset distance (for example, 1cm, 2cm, 3cm, 4cm, 5cm, etc.), according to the position of the line drawn by the gesture of drawing a line, a straight line segment for drawing is displayed, wherein the straight line segment for drawing parallel to the virtual ruler.
  • a preset distance for example, 1cm, 2cm, 3cm, 4cm, 5cm, etc.
  • the drawing trajectory of the drawing and painting can be corrected to a straight line.
  • a straight line will be drawn automatically.
  • the line drawing position includes a starting point position and an ending point position
  • the drawing straight line segment is a line segment between the starting point position and the ending point position
  • the line drawing position includes a starting point position and a real-time line drawing position
  • the method further includes: displaying a line drawing length based on the real-time line drawing position, where the line drawing length is the The distance value between the starting point position and the real-time drawing line position.
  • the drawing line between the first and last two drawing points can be calculated and displayed, and the length of the drawing line can be displayed.
  • the line drawing position includes a starting point position and an ending point position
  • the drawing straight line segment is a line segment between the starting point position and the ending point position
  • the detection module may be based on the
  • the real-time line drawing position displays the line drawing length
  • the line drawing length is the distance value between the starting point position and the real-time line drawing position.
  • the length of the line segment drawn exceeds the expected value, you can draw it back, which will have a deletion effect.
  • the generated line segment is the expected value, and the drawn Curves (the distance between the curve and the virtual ruler is within the preset range) will be automatically corrected to a straight line.
  • the two functions of the ruler are converted into intelligent operations suitable for the virtual interface.
  • the measurement is to automatically display the measured value, and the length value is displayed when drawing a straight line, which removes the limitations of the physical world and saves It takes less time for users to take readings, greatly improving user efficiency.
  • the present application provides an object copy method, the method comprising: detecting a drag gesture for a target object displayed on a touch screen; in response to the drag gesture, displaying the target object on the touch screen The mirror image of the target object, and according to the drag gesture, update the display position of the mirror image in real time, so that the mirror image moves with the drag gesture; detect the hand-raising gesture; respond to the hand-raising gesture, move the The mirror image is fixedly displayed at the display position where the mirror image is located.
  • the method of copying and pasting by dragging gestures is simple and intuitive, which reduces the number of steps required for existing copy and paste, and shortens the process of copying and pasting.
  • the method before the detection of the drag gesture for the target object displayed on the touch screen, the method further includes:
  • the copy function for the target object is enabled:
  • a click gesture is detected for the target object.
  • the detecting the long press gesture for the target object includes:
  • a long press gesture is detected in which the contact area with the touch screen covers the target object or is within a preset distance around the target object.
  • the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen.
  • the long press gesture is a two-finger long press gesture.
  • the detecting the click gesture for the target object includes:
  • a click gesture in which a contact area with the touch screen covers the target object is detected.
  • the embodiment of the present application provides a virtual ruler display device, which is applied to electronic equipment, and the electronic equipment includes a touch screen, and the device includes:
  • a detection module configured to detect a contact gesture with the touch screen
  • a display module configured to indicate the contact of the side of the user's hand with the touch screen based on the contact gesture, and display a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is In the strip-shaped area, the virtual ruler is attached to the long side of the strip-shaped area.
  • the side of the hand is the side of the user's hand that is located on the side of the little finger in an unfolded state.
  • the contact area includes:
  • the contact area between the little finger on the side of the user's hand and the touch screen is the contact area between the little finger on the side of the user's hand and the touch screen.
  • the device also includes:
  • a determining module configured to determine that the contact gesture indicates contact between the side of the user's hand and the touch screen based on that the contact area of the contact gesture satisfies a preset condition; the preset condition includes:
  • the contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen.
  • the device also includes:
  • An acquisition module configured to acquire gesture data of the contact gesture
  • the determining module is further configured to determine, according to the gesture data, through a neural network, that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.
  • the virtual ruler is attached to the long side of the strip-shaped region, including:
  • the acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value; and the virtual scale and the strip-shaped area meet one of the following conditions:
  • the detection module is configured to detect that the duration of the contact gesture is greater than a preset time before displaying a virtual ruler on the touch screen in the contact area according to the contact gesture .
  • the detection module is configured to detect movement of a contact area of the contact gesture
  • the display module is configured to adjust the display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.
  • the detection module is configured to detect a user's hand-raising gesture
  • the display module is configured to hide the display of the virtual ruler on the touch screen in response to the hand-raising gesture.
  • the instructing the contact of the side of the user's hand with the touch screen based on the contact gesture includes:
  • the method further includes:
  • the user's hand gesture is detected
  • the detection module is configured to detect a user's selection instruction for the virtual scale
  • the display module is configured to display a trigger control in response to the selection instruction, and the trigger control is used to indicate at least one of the following operations on the virtual scale:
  • the virtual ruler is used to measure the length of a drawn straight line segment displayed on the touch screen; or,
  • the virtual ruler is used for distance measurement between drawing points displayed on the touch screen.
  • the detection module is configured to detect that there is a drawing line segment associated with the gesture of the virtual ruler on the touch screen;
  • the display module is used to display the length value of the straight line segment of the drawing; the existence gesture association includes:
  • the direction difference from the virtual scale is smaller than a preset value; and/or,
  • the distance from the virtual ruler is smaller than a preset value.
  • the display module is configured to adjust the display position of the virtual ruler according to the position of the line segment to be measured, so that the display position of the virtual ruler fits with the drawn straight line.
  • the detection module is configured to detect that there is a first intersection point and a second intersection point between the drawn line segment on the touch screen and the virtual scale after the virtual scale is displayed on the touch screen;
  • the display module is configured to display a distance value between the first intersection point and the second intersection point.
  • the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.
  • the detection module is configured to detect a line-drawing gesture on the touch screen
  • the display module is configured to display the virtual ruler on the touch screen, and the distance between the line-drawing position of the line-drawing gesture and the virtual ruler is within a preset distance, according to the line-drawing gesture The position of the drawn line, displaying the drawn straight line segment, wherein the drawn straight line segment is parallel to the virtual ruler.
  • the line drawing position includes a starting point position and an ending point position
  • the drawing straight line segment is a line segment between the starting point position and the ending point position
  • the line drawing position includes a starting point position and a real-time line drawing position
  • the method further includes:
  • the line-drawing length is a distance value between the starting point position and the real-time line-drawing position.
  • the present application provides an object replication device, the device comprising:
  • a detection module configured to detect a drag gesture for a target object displayed on the touch screen; the detection module is also configured to detect a hand-raising gesture after the display module displays a mirror image of the target object;
  • a display module configured to display a mirror image of the target object on the touch screen in response to the drag gesture, and update the display position of the mirror image in real time according to the drag gesture, so that the mirror image follows the The drag gesture moves; the display module is further configured to, in response to the hand-raising gesture, fix and display the mirror image at the display position where the mirror image is located.
  • the device also includes:
  • An enabling module configured to enable the copy function for the target object when at least one of the following gestures is detected before the detection of the drag gesture for the target object displayed on the touch screen:
  • a click gesture is detected for the target object.
  • the detecting the long press gesture for the target object includes:
  • a long press gesture is detected in which the contact area with the touch screen covers the target object or is within a preset distance around the target object.
  • the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen.
  • the long press gesture is a two-finger long press gesture.
  • the detecting the click gesture for the target object includes:
  • a click gesture in which a contact area with the touch screen covers the target object is detected.
  • the present application provides an electronic device, including: a processor, a memory, a touch screen, and a bus, wherein: the processor, the memory, and the touch screen are connected through the bus;
  • the memory is used to store computer programs or instructions
  • the processor is used to call or execute the programs or instructions stored in the memory, and is also used to control the touch screen, so as to implement the steps described in the first aspect and any possible implementation manner of the first aspect, and Any one of the second aspect and the steps described in the possible implementation manners of the second aspect.
  • the present application provides a computer storage medium, including computer instructions.
  • the computer instructions When the computer instructions are run on an electronic device or a server, the steps described in any one of the above-mentioned first aspect and possible implementation modes of the first aspect are executed. , and the second aspect and the steps described in any one possible implementation manner of the second aspect.
  • the present application provides a computer program product.
  • the computer program product When the computer program product is run on an electronic device or a server, it executes the steps described in any one of the above-mentioned first aspect and possible implementation modes of the first aspect, and the first aspect. The steps described in the possible implementation manners of any one of the second aspect and the second aspect.
  • the present application provides a chip system, which includes a processor, configured to support an execution device or a training device to implement the functions involved in the above aspect, for example, send or process the data involved in the above method; or, information.
  • the chip system further includes a memory, and the memory is used for storing necessary program instructions and data of the execution device or the training device.
  • the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
  • An embodiment of the present application provides a method for displaying a virtual scale, including: detecting a contact gesture with the touch screen; indicating the contact of the user's hand side with the touch screen based on the contact gesture, and according to the contact area of the contact gesture, A virtual scale is displayed on the touch screen, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale is attached to a long side of the strip-shaped area.
  • the display of the virtual scale is triggered. On the one hand, only the user's single hand is required to operate, and the operation difficulty and cost are very small.
  • the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode, triggering the display of the virtual scale is more in line with the user's operation habits.
  • Fig. 1 is the product structure schematic diagram that the embodiment of the present application provides
  • FIG. 2 is a structural block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an embodiment of a method for displaying a virtual ruler provided in an embodiment of the present application
  • FIG. 4 is a schematic diagram of a gesture in the embodiment of the present application.
  • Fig. 5 is a schematic diagram of a gesture in the embodiment of the present application.
  • Fig. 6 is a schematic diagram of a gesture in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of a gesture in the embodiment of the present application.
  • Fig. 8 is a schematic diagram of a gesture in the embodiment of the present application.
  • FIG. 9 is a schematic diagram of a gesture contact in the embodiment of the present application.
  • FIG. 10 is a schematic diagram of a gesture contact in the embodiment of the present application.
  • FIG. 11 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 15 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 16 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 17 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 18 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 19 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 20 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 21 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • Fig. 22a is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 22b is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 22c is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 22d is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 23 is a schematic diagram of establishing an index table in the embodiment of the present application.
  • FIG. 24 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 25 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 26 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 27 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 28 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 29 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 30 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 31 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 32 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 33 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 34 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 35 is a schematic diagram of a terminal interface in the embodiment of the present application.
  • FIG. 36 is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 37a is a schematic diagram of an embodiment of an object copy method provided by the embodiment of the present application.
  • Fig. 37b is a schematic diagram of a terminal interface in the embodiment of the present application.
  • FIG. 38 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 39 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 40 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • FIG. 41 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • Fig. 42 is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 43 is a schematic diagram of a terminal interface in the embodiment of the present application.
  • FIG. 44 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • Fig. 45 is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 46 is a schematic diagram of a terminal interface in the embodiment of the present application.
  • Fig. 47 is a schematic diagram of a terminal interface in the embodiment of the present application.
  • FIG. 48 is a schematic diagram of a terminal interface in an embodiment of the present application.
  • Fig. 49 is a schematic structural diagram of a virtual ruler display device provided by an embodiment of the present application.
  • FIG. 50 is a schematic structural diagram of an object copying device provided by an embodiment of the present application.
  • FIG. 51 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • the embodiment of the present application may be applied in the system 100 including the touch screen 103 .
  • FIG. 1 shows a system 100 to which the embodiment of the present application is applied, wherein the system 100 may include an electronic device 101 and a pen 102 associated with the electronic device 101 .
  • the electronic device 101 may be an electronic whiteboard (or called an electronic interactive smart board) shown in FIG. 1 , and the electronic device 101 includes a touch screen 103 . It should be understood that the electronic device 101 may also be a portable mobile device including a touch screen, such as but not limited to a mobile or portable computing device (such as a smart phone), a personal computer, a server computer, a handheld device (such as a tablet), or a laptop.
  • a mobile or portable computing device such as a smart phone
  • a personal computer such as a personal computer
  • a server computer such as a server computer
  • a handheld device such as a tablet
  • laptop such as a laptop.
  • the touch screen 103 can recognize a user's contact gesture.
  • the touch screen 103 can be an infrared touch screen (infrared touch screen).
  • the infrared touch screen is composed of infrared emitting and receiving sensing elements mounted on the outer frame of the touch screen. On the surface of the screen, an infrared detection network is formed. Any touching object The touch screen operation can be realized by changing the infrared rays on the contacts.
  • the realization principle of the infrared touch screen is similar to that of the surface acoustic wave touch screen, which uses infrared emitting and receiving sensing elements.
  • These elements form an infrared detection network on the surface of the screen, and the touch-operated object (such as the contact between the side of the hand and the touch screen 103 in the embodiment of the present application) can change the infrared rays of the touch point, and then be converted into the coordinate position of the touch, thereby realizing Recognition of touch gestures.
  • the touch-operated object such as the contact between the side of the hand and the touch screen 103 in the embodiment of the present application
  • the touch screen 103 may be a capacitive touch screen, and the capacitive touch screen works by utilizing the current induction of the human body.
  • the capacitive touch screen can be a four-layer composite glass screen, the inner surface and the interlayer of the glass screen are each coated with a layer of ITO (nano indium tin oxide), and the outermost layer is a thin layer of silica glass protective layer, The interlayer ITO coating is used as the working surface, four electrodes are drawn from the four corners, and the inner ITO layer is the shielding layer to ensure a good working environment.
  • ITO nano indium tin oxide
  • the capacitance is direct conductor, so the finger draws a small current from the point of contact. This current flows out of the electrodes on the four corners of the touch screen respectively, and the current flowing through these four electrodes is proportional to the distance from the finger to the four corners.
  • the controller obtains the position of the touch point through accurate calculation of the four current ratios. , and then the recognition of touch gestures can be realized.
  • touch screen 103 can also be other types of touch screens capable of recognizing gestures of contact, or be replaced with a touch screen that only has a display function but can cooperate with other external devices (such as sensors) to recognize gestures of contact. limited.
  • the pen 102 may also provide input to the electronic device 101 by contacting or otherwise interacting with the touch screen 103 .
  • the touch screen 103 can display patterns and characters, and can also provide a drawing interface for users to freely draw and draw, such as a whiteboard interface provided by an electronic whiteboard, a drawing board provided by an application (APP), and the like.
  • a drawing interface for users to freely draw and draw, such as a whiteboard interface provided by an electronic whiteboard, a drawing board provided by an application (APP), and the like.
  • the user can touch the touch screen 103 through the side of the hand, and the electronic device 101 can trigger the display of the virtual scale after detecting the user's contact gesture.
  • the exemplary operating environment of the present application is introduced above, and the internal structure of the electronic device 101 is described below with reference to an example.
  • FIG. 2 is a schematic structural diagram of an electronic device 101 provided by an embodiment of the present application.
  • the structure shown in FIG. 2 does not constitute a specific limitation on the electronic device 101 .
  • the electronic device 101 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the electronic device 101 can include an input/output controller 218 that can output information to one or more output devices 222 (eg, a touch screen or a speaker) that are separate or integrated with the electronic device 101 .
  • the input/output controller 218 may also be used to receive input from one or more input devices 220 (eg, a keyboard, a microphone, or a touch screen).
  • output device 222 may also serve as input device 220 .
  • An example of such a device would be a touch screen.
  • a user may provide input to input device 220 and/or receive output from output device 222 .
  • the input device 220 may be a touch screen, and the user provides gesture input to the input/output controller 218 by touching the side of the hand with the touch screen, and the input/output controller 218 may transmit the gesture input to the processor, and the processor 204 for processing.
  • the electronic device 101 may include one or more processors 204, and these processors may include one or more processing units, for example: the processor 204 may include an application processor (application processor, AP), a modem processor, a graphics processing unit Graphics processing unit (GPU), image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network Processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit Graphics processing unit
  • GPU Graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network Processor neural-network processing unit
  • the controller of the processor 204 can generate an operation control signal according to the instruction operation code and the timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 204 for storing instructions and data.
  • the memory in processor 204 is a cache memory.
  • the memory may hold instructions or data that the processor 204 has just used or recycled. If the processor 204 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 204 is reduced, thereby improving the efficiency of the system.
  • processor 204 may include one or more interfaces.
  • the interface may include, but not limited to, a mobile industry processor interface (mobile industry processor interface, MIPI), an external memory interface, and/or a universal serial bus (universal serial bus, USB) interface and the like.
  • MIPI mobile industry processor interface
  • MIPI mobile industry processor interface
  • USB universal serial bus
  • the MIPI interface can be used to connect the processor 204 with peripheral devices such as a touch screen.
  • the MIPI interface may include a display serial interface (display serial interface, DSI) and the like.
  • the processor 204 communicates with the touch screen through the DSI interface to realize the display function of the touch screen.
  • the interface connection relationship between the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device 101 .
  • the electronic device 101 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the electronic device 101 may implement a display function through a GPU, a touch screen, an application processor, and the like.
  • the GPU is a microprocessor for image processing, which connects the touch screen and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 204 may include one or more GPUs that execute program instructions to generate or alter display information. Specifically, one or more GPUs in the processor 204 can implement image rendering tasks (such as rendering tasks related to drawing virtual rulers, distance values, length values, etc. in this application, and deliver the rendering results to the application processor or Other display drivers, the application processor or other display drivers trigger the display to display virtual rulers, distance values, length values, etc.).
  • a touch screen may include a display screen and associated sensors (eg, pressure sensors and touch sensors).
  • Displays are used to display images, videos, etc.
  • the display screen includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active matrix organic light emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed
  • quantum dot light emitting diodes quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the pressure sensor is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensors such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 101 can determine the strength of the pressure according to the change of the capacitance.
  • the electronic device 101 may detect the intensity of the touch operation according to the pressure sensor.
  • the electronic device 101 may also calculate the touched position according to the detection signal of the pressure sensor.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
  • Touch sensor also known as "touch device”.
  • the touch sensor can be arranged on the touch screen, and the touch screen is composed of the touch sensor and the display screen.
  • the touch sensor is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation may be provided through the display screen.
  • the touch sensor may also be disposed on the surface of the electronic device 101, which is different from the position of the display screen.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 101 can be realized through the NPU, for example, a touch gesture recognition task can be realized based on the NPU.
  • the external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 101.
  • the external memory card communicates with the processor 204 through the external memory interface to realize the data storage function. For example, you can save music, video and other files in the external memory card.
  • Memory 214 may be used to store computer-executable program code, which includes instructions.
  • the memory 214 may include an area for storing programs and an area for storing data.
  • the storage program area can store the operating system 206, the application software 208 required by at least one function (such as image playing function, etc.) and the like.
  • the storage data area can store data (such as image data, etc.) created during the use of the electronic device 101 .
  • the memory 214 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 204 executes various functional applications and data processing of the electronic device 101 by executing instructions stored in the memory 214 and/or instructions stored in the memory provided in the processor.
  • the method described in the embodiment of the present application may be a code stored in the memory 214 (or an external memory), and the processor 110 may acquire the code in the memory to implement the method provided in the embodiment of the present application.
  • the electronic device 101 can also interact with other electronic devices through the communication device 216 .
  • the methods described herein may be performed at least in part by one or more hardware logic components.
  • illustrative types of hardware logic components include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts, ASSP), system on chip (system on chip, SOC) and programmable logic device (programable logic device, PLD), etc.
  • FPGAs field programmable gate arrays
  • ASICs application specific integrated circuits
  • ASSP application specific standard parts
  • SOC system on chip
  • PLD programmable logic device
  • functions such as detection of contact gestures and determination of gesture categories can be implemented based on hardware logic components.
  • Fig. 3 is a schematic flowchart of a virtual scale display method provided by the embodiment of the present application.
  • the virtual scale display method provided by the embodiment of the present application includes:
  • the electronic device 101 may detect a contact gesture with the touch screen.
  • the touch screen may include a touch-sensitive surface, a sensor or a sensor group that receives input from the user based on tactile contact, and "detecting a contact gesture with the touch screen” may be understood as detecting a contact gesture with the touch-sensitive surface on the touch screen .
  • the devices and modules for detecting contact gestures related to the touch screen are described.
  • the touch screen can cooperate with the detection module to detect a contact gesture on the touch screen.
  • the detection module can be a program, a data structure or a subset thereof stored in the memory related to the detection of the contact gesture, or a part exists in the memory in the form of a program, a data structure or a subset thereof, and a part is in the form of a hardware logic module .
  • the touch screen can capture contact data, and the detection module can perform various actions related to contact gesture detection according to the contact data.
  • the touch screen can capture the contact data (such as electrical signals) between the user and the touch-sensitive surface in real time, and transmit the contact data to the detection module. various actions.
  • the detection module is described to realize the detection of the contact gesture on the touch screen.
  • the detection module can determine the intensity and/or its change when the user is in contact with the touch screen based on the contact data, as well as the size and/or its change of the contact area, and then determine the gesture of the contact gesture based on the above information type.
  • “strength” can be understood as the force or pressure (force per unit area) of a contact (eg, hand side contact) on the touch-sensitive surface of the touch screen.
  • the intensity of contact can be determined using various methods and various sensors or combinations of sensors. For example, below the touch-sensitive surface, the force at different points on the touch-sensitive surface on the touch screen is measured, eg, using one or more sensors adjacent to the touch-sensitive surface. In some implementations, force measurements from multiple sensors may be combined (eg, weighted averaged) to determine the strength of the contact.
  • contact area can be understood as a detectable area in contact with the touch-sensitive surface, which can be a continuous area or a discrete area composed of dense touch points (for example, a contact area can be a group of densely distributed The long strip area formed by the contact points).
  • the detection module can perform various actions related to the contact gesture detection based on the contact data, and then determine the gesture type of the contact gesture, the movement of the contact gesture, the stop of the contact gesture, and the like.
  • the detection module can determine whether contact has occurred and the type of contact gesture (e.g., detect a finger press event, or a contact event from the side of the hand), determine whether there is movement of the contact, and track movement on the touch-sensitive surface (e.g., Detect one or more finger drag events, or a drag event from the side of the hand), and determine whether contact has ceased (for example, detect a finger lift event, or detect a lift event from the side of the hand).
  • the type of contact gesture e.g., detect a finger press event, or a contact event from the side of the hand
  • determine whether there is movement of the contact e.g., track movement on the touch-sensitive surface (e.g., Detect one or more finger drag events, or a drag event from the side of the hand)
  • determine whether contact has ceased for example, detect a finger lift event, or detect a lift event from the side of the hand.
  • the above-mentioned “movement of the contact gesture” can also be referred to as the movement of the contact area of the contact gesture, and the data related to the movement of the contact area can include, but not limited to, the rate (magnitude), speed (magnitude and direction) and/or acceleration (change in magnitude and/or direction).
  • the detection module can perform various actions related to contact gesture detection based on the contact data, so as to determine the gesture type indicated by the contact gesture, wherein the gesture type is, for example but not limited to, click, double click, long press, drag, hand Sideways stationary contact with the touchscreen, sideways hand drag, sideways hand turn, sideways double tap, and more.
  • the gesture type is, for example but not limited to, click, double click, long press, drag, hand Sideways stationary contact with the touchscreen, sideways hand drag, sideways hand turn, sideways double tap, and more.
  • the detection module may be a pre-trained neural network model, and the neural network model has the ability to recognize the gesture category indicated by the contact gesture based on the contact data of the contact gesture.
  • the contact gesture Based on the contact gesture indicating that the side of the user's hand is in contact with the touch screen, display a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is strip-shaped area, the virtual ruler is attached to the long side of the strip-shaped area.
  • the detection module may determine the gesture type indicated by the contact gesture. In one implementation, the detection module may determine that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.
  • the display of the virtual ruler is triggered.
  • the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode Triggering the display of the virtual ruler is more in line with the user's operating habits.
  • the side of the hand in the embodiment of the present application can be understood as the side of the user's hand located on the side of the little finger in the unfolded state (for example, including at least one of the surface of the hypothenar part of the user's hand or the surface of the little finger).
  • the unfolded state of the hand may be a state where the user's fingers (or only the little finger) are on the same plane (or close to the same plane) as the palm.
  • a user's hand posture is shown in Fig. 4.
  • the lower side of the hand is the side of the user's hand, which includes the little finger and the user's hand.
  • the surface of the hypothenar region is shown in Fig. 5.
  • the lower right side of the hand is the user's hand side, which includes the little finger and the user's hand.
  • the surface of the hypothenar region of the hand is shown in Fig. 4.
  • the contact between the side of the user's hand and the touch screen is equivalent to the contact between the hypothenar part of the side of the user's hand and the touch screen and/or the contact of the little finger part of the side of the user's hand with the touch screen.
  • the contact intensity and contact area of the touch screen meet certain conditions, it can be considered as the contact of the side of the user's hand with the touch screen.
  • Fig. 6 is the schematic diagram when the side of the user's hand is in contact with the touch screen from the perspective of facing the touch screen
  • Fig. 7 is the schematic diagram of the side of the user's hand in contact with the touch screen from the perspective of the side view of the touch screen From the point of view of the user's behavior, based on the difference in touch intensity and contact area, the side of the user's hand can be swipe the touch screen (small contact area, low contact intensity), or lightly press the touch screen (large contact area, Medium contact strength), or heavy pressure touch screen (large contact area, high contact strength).
  • the side of the user's hand when the side of the user's hand lightly presses the touchscreen or presses heavily on the touchscreen for more than a certain period of time, it may be considered that the user needs to trigger the display of the virtual scale.
  • the side of the user's hand when the side of the user's hand lightly presses the touchscreen or presses heavily on the touchscreen for more than X seconds, it can be considered that the user needs to trigger the display of the virtual scale.
  • the detection module From the perspective of the detection module, it needs to be processed and analyzed based on the contact intensity of the touch gesture and the contact area of the touch gesture and the touch screen. When it meets certain conditions, it can be considered as the contact between the side of the user's hand and the touch screen.
  • the detection module may acquire the contact area of the contact gesture, and based on the contact area meeting a preset condition, determine that the contact gesture indicates that the side of the user's hand is in contact with the touch screen; the preset The conditions include: the contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar position and/or little finger on the side of the user's hand is in contact with the touch screen .
  • the side of the hand may include the area of the hypothenar area and the area of the little finger.
  • the side of the user's hand is in contact with the touch screen, at least one of the following contact situations may occur due to the posture of the hand or the characteristics of the user's hand shape:
  • the area of the hypothenar is in contact with the touch screen
  • the area of the little finger is in contact with the touch screen
  • the contact area is a flat strip-shaped area
  • the contact area is a flat strip-shaped area, and the size of the area can be smaller than the size of the contact area when the area of the hypothenar is in contact with the touch screen;
  • the contact area is two strip-shaped areas arranged in the same direction, and the long sides of the two strip-shaped areas in the same direction.
  • the detection module can acquire the data of the contact area, and then analyze the shape and area size of the contact area, when the shape and area size of the contact area conform to the hypothenar part and/or the little finger part of the side of the user's hand in contact with the touch screen
  • the touch area is characterized, it may be determined that the touch gesture indicates contact of the side of the user's hand with the touch screen.
  • the shape can be understood as the outline feature of the boundary line of the contact area.
  • the outline shape of the boundary line of the contact area is flat and long, it can be considered that the shape of the contact area conforms to the hypothenar position and/or little finger on the side of the user's hand.
  • the shape can also be understood as the distribution characteristics of the contact points included in the contact area, and whether the above shape characteristics are satisfied can be judged by detecting the distribution shape of the touch points. (For example, if a group of densely distributed elongated touch points are detected, it can be considered that the shape of the contact area conforms to the shape characteristics of the contact area when the hypothenar position on the side of the user's hand and/or the little finger position is in contact with the touch screen) ;
  • the area size of the contact area when the area size of the contact area is within the preset range (the maximum value in this range cannot be too large, and the minimum value in this range cannot be too small, it can be set based on the characteristics of the side of the hand of the human hand. ), then it can be considered that the size of the contact area conforms to the characteristics of the area size of the contact area when the hypothenar part and/or little finger part of the side of the user's hand is in contact with the touch screen.
  • the user may accidentally touch or perform a touch gesture with the touch screen, but this contact gesture is not used to trigger the virtual ruler. It can be based on the screening of the contact intensity of the touch gesture to avoid triggering the virtual ruler in the above scenarios. show.
  • the display of the virtual scale may not be triggered, and
  • the touch gesture is a press gesture, the display of the virtual ruler may be triggered (provided that the contact area of the touch gesture satisfies the above-mentioned shape and area size conditions).
  • the press gesture may include a light press and a deep press, and when the contact intensity increases from an intensity lower than the light press intensity threshold to an intensity between the light press intensity threshold and the deep press intensity threshold, it may be called a touch surface detected "light press” input on the An increase in contact intensity from an intensity below the deep press intensity threshold to an intensity above the deep press intensity threshold may be referred to as detecting a "deep press” input on the touch surface. An increase in contact intensity from an intensity below the contact detection intensity threshold to an intensity between the contact detection intensity threshold and the light press intensity threshold may be referred to as detecting a "swipe touch" input on the touch surface.
  • the contact detection intensity threshold is zero. In some embodiments, the contact detection intensity threshold may be greater than zero.
  • the detection module can be a pre-trained neural network model, and the neural network model has the ability to identify the gesture category indicated by the contact gesture based on the contact data of the contact gesture.
  • the detection module Gesture data of the contact gesture may be acquired, and according to the gesture data, it is determined through a neural network that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.
  • the display of the virtual ruler may not be triggered.
  • the maintenance time of the contact gesture can also be used as the condition for triggering the display of the virtual scale, that is, it needs to be detected that the maintenance time of the contact gesture is greater than the preset time, for example, the preset time can be set to 0.1S, 0.15 S, 0.2S, 0.25S, 0.3S, 0.35S, 0.4S, 0.45S, 1S, 2S.
  • the maintenance time of the contact gesture can start counting when the contact gesture is detected, or after detecting that the contact intensity between the contact gesture and the touch screen is greater than a certain contact intensity threshold (threshold greater than 0), the maintenance time can be The timing ends when it is detected that the contact intensity of the contact gesture is 0, or the timing ends when it is detected that the contact intensity of the contact gesture is less than a certain contact intensity threshold (threshold greater than 0).
  • the maintenance time of the contact gesture may be the maintenance time when the contact gesture remains in a static state (or the movement is less than a certain range), for example, the maintenance time of the contact gesture may be the maintenance time when the pressing gesture is at rest (or the movement is less than a certain range) .
  • the above static state may be understood as a static state of the contact area of the touch gesture.
  • a virtual ruler may be displayed on the touch screen according to the contact area of the contact gesture.
  • the virtual ruler is described next:
  • the virtual ruler is an affordance displayed on the touch screen.
  • the display shape of the virtual ruler is similar to a straightedge (for example, it can be a flat rectangle or a line segment).
  • the user can also use the virtual ruler as a reference tool when drawing a straight line on the touch screen, specifically
  • the process is similar to the process in which a user draws a line with a ruler in a physical real space.
  • the shape of the contact area is a flat strip, and the direction indicated by the long side of the strip is in line with the four directions of the user's hand.
  • the directions pointed by the fingers (or only the little finger) are parallel (or nearly parallel).
  • the display direction of the virtual scale can be made to be parallel or nearly parallel to the direction indicated by the long side of the bar, and the display mode of this virtual scale conforms to the user's operating habits.
  • the display direction of the virtual ruler (which may also be simply referred to as the direction of the virtual ruler in the embodiment of the present application) may be understood as the direction of the side on the virtual ruler used for measurement or drawing a reference.
  • the virtual scale is attached to the long side of the strip-shaped area, that is, in the display position, the virtual scale and the strip-shaped area need to be very close, and in the direction, the virtual scale and the strip-shaped area need to be very close.
  • the long sides of the elongated regions are parallel or nearly parallel.
  • the virtual ruler and the strip-shaped area satisfy one of the following conditions:
  • the virtual ruler there is overlap between the virtual ruler and the strip-shaped region (such as shown in Figure 13); or, the virtual ruler is tangent to the strip-shaped region (such as shown in Figure 12); or, the virtual ruler and the distance between the strip-shaped area is less than a preset value (such as shown in Figure 14 and Figure 15, wherein Figure 15 shows the situation when the virtual ruler is a line segment), the preset value can be 1cm, 2cm, 3cm, 4cm, 5cm, 10cm, 15cm, etc.
  • the acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value, and the preset value can be 1 degree, 2 degrees, or 3 degrees. degrees, 4 degrees, 5 degrees, 10 degrees, etc.
  • the posture of the virtual ruler after triggering the display of the virtual ruler, can be adjusted through a specific gesture, for example, changing the posture (position and angle) of the virtual ruler so that the virtual ruler can measure different elements (drawing line length or the distance between plotted points).
  • the movement of the virtual scale can be driven by the movement of the contact area on the side of the user's hand.
  • the detection module may detect the movement of the contact area of the contact gesture, and adjust the display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.
  • the so-called movement can be understood as a change in position and/or a change in direction
  • the so-called following can be understood as always fitting the display position of the virtual ruler with the contact area of the touch gesture. Since the contact area of the touch gesture moves, the display position and direction of the virtual ruler will also change, and in the virtual The display area of the ruler is always in close contact with the long side of the contact area.
  • the contact area of the touch gesture moves, and then the display position and direction of the virtual ruler will also change following the contact area.
  • a certain gesture can be used to trigger the display of the hidden virtual ruler on the touch screen.
  • the gesture can be a gesture of raising the hand.
  • the display of the virtual scale is hidden on the touch screen in response to the user's hand-raising gesture, wherein the hand-raising gesture can be understood as the side of the hand leaving the touch screen, or the contact strength between the side of the hand and the touch screen is less than A certain threshold, or the contact area between the side of the hand and the touch screen is smaller than a preset value.
  • the virtual ruler still needs to be used after the user raises his hand, so it is necessary to trigger the fixed display of the virtual ruler on the touch screen based on a certain gesture.
  • the user can tap the touch screen for a preset number of times by the side of the hand to trigger the fixed display of the virtual scale on the touch screen.
  • the detection module can indicate the The side of the user's hand touches the touch screen for a preset number of times, and after the user's hand-raising gesture is detected, the display of the virtual scale is maintained on the touch screen (for example, as shown in FIG. 31 ).
  • the preset number of taps needs to occur within a preset time, and the preset time is a short time (for example, 0.1S, 0.2S, 0.3S, 0.4S, 0.5S, etc.);
  • tapping positions of the preset number of taps on the touch screen need to be kept consistent, or slight deviations are allowed.
  • the preset number of times can be 2 times, 3 times, etc.
  • the virtual ruler can be fixedly displayed on the touch screen.
  • a certain gesture operation can be used to adjust the display posture of the virtual ruler (the display posture may include a display position and/or a display direction).
  • the detection module can detect a user's selection instruction for the virtual scale, and in response to the selection instruction, a trigger control can be displayed, and the trigger control is used to indicate at least one of the following operations on the virtual scale: delete operation , position adjustment operations, and rotation operations.
  • the user can trigger the selection of the virtual scale by clicking on the fixedly displayed virtual scale, and at the same time of selection, the touch screen will pop up a trigger control, for example, the trigger control can be a prompt for indicating a deletion operation for the virtual scale (such as the "delete" prompt shown in FIG. 33, and the trash can logo shown in FIG. 35), the user can delete the virtual ruler by clicking on the "delete” prompt or dragging the virtual ruler to the trash bin logo).
  • the trigger control can be a prompt for indicating a deletion operation for the virtual scale (such as the "delete" prompt shown in FIG. 33, and the trash can logo shown in FIG. 35)
  • the user can delete the virtual ruler by clicking on the "delete” prompt or dragging the virtual ruler to the trash bin logo).
  • the user can trigger the selection of the virtual ruler by clicking on the fixedly displayed virtual ruler.
  • a trigger control will pop up on the touch screen. 33
  • the user can click on the "posture adjustment" control to enter the posture adjustment mode for the virtual ruler.
  • the user can touch the side of the hand and the touch screen
  • the adjustment method can refer to the relevant description of the display position control of the virtual ruler in the above embodiment, which will not be repeated here.
  • the display posture of the virtual ruler can be adjusted directly through gesture operations.
  • the new virtual ruler when the virtual ruler is not selected, if a touch gesture between the side of the user's hand and the touch screen is detected (the condition for triggering the display of the virtual ruler is met), another virtual ruler can be additionally displayed , the new virtual ruler can also follow the translation of the receiving area on the side of the hand. In addition, the new virtual ruler can also be fixed and displayed with continuous tapping gestures.
  • the touch screen exits the drawing interface and enters the display interface (such as displaying the screen content of other electronic devices)
  • the virtual ruler displayed on the drawing interface will also follow the exit of the drawing interface Disappearing will not affect the display of the projected content.
  • tapping and fixed display of the virtual ruler and other gestures are in line with the user's operating habits and can greatly improve the operating efficiency.
  • the virtual ruler may be used to measure the length of the drawn straight line segment displayed on the touch screen.
  • At least one drawing straight line segment can be displayed on the touch screen.
  • the user wants to measure the length of one of the drawing straight line segments, the user can adjust the virtual position by moving the touch gesture on the touch screen.
  • the display position of the ruler so that the display position of the virtual ruler is close to or accurately fits the straight segment of the drawing to be measured.
  • the detection module can acquire the length value of the drawn straight line segment where the virtual scale fits, and display the length value.
  • the user when the user may not be able to accurately fit the drawing line segment to be measured, or the operation required to fit the drawing line segment to be measured is relatively difficult, the user can draw when the virtual ruler is located near the drawing line segment to be measured Length measurement and length value display of straight line segments.
  • the detection module detects that there is a drawing line segment associated with the virtual scale on the touch screen, and displays the length value of the drawing line segment.
  • the degree of fit is very high.
  • posture association can be expressed by direction difference and distance value.
  • the direction difference between the drawing line segment and the virtual ruler is less than the preset value (for example, less than 20 degrees, 25 degrees, 30 degrees, 35 degrees, 40 degrees , 45 degrees, etc.); and/or, when the distance between the drawing line segment and the virtual ruler is less than a preset value (such as 1cm, 2cm, 3cm, etc.), it can be considered that there is a distance between the virtual ruler and the virtual ruler on the touch screen.
  • a straight line segment of the drawing associated with the pose.
  • the distance can be understood as the distance between the nearest point on the virtual ruler and the drawing straight line segment, or the average value of the distance between the point on the virtual ruler and the drawing straight line segment, or can be used to characterize the virtual ruler and drawing The method for the distance between straight line segments.
  • the detection module detects that there are multiple drawing straight line segments associated with the virtual ruler in gestures on the touch screen, the length value of the drawing straight line segment with the highest degree of gesture association can be acquired and displayed.
  • drawing straight segments drawing straight segment A and drawing straight segment B
  • the distance value between the virtual ruler and the drawing straight segment A is A1
  • the distance value between the virtual ruler and the drawing straight segment B is B1
  • the direction difference between the virtual ruler and the drawing line segment A is A2
  • the direction difference between the virtual ruler and the drawing line segment B is B2
  • A1 is equal to A2
  • B1 is greater than B2
  • the degree of correlation between the attitude of the drawing line segment B and the virtual scale is the largest when A1 is greater than A2 and B1 is equal to B2.
  • a feature quantity that can represent the distance value and direction difference can be obtained.
  • the feature quantity is positively correlated with the distance value and direction difference. smaller.
  • the detection module detects that there is a drawing line segment associated with the posture of the virtual ruler on the touch screen, and the display position of the virtual ruler does not accurately fit the drawing line segment, it can be adjusted based on the position of the drawing line segment.
  • the display position of the virtual ruler so that the display position of the virtual ruler fits the drawing line, that is, a display effect similar to magnetic attraction is realized.
  • adjusting the display position of the virtual ruler may include adjusting the position and display direction of the virtual ruler.
  • the drawing straight line segment within the predefined range of the virtual ruler has a magnetic attraction effect on the virtual ruler. fit.
  • the touch screen in FIG. 21 displays two straight line segments for drawing.
  • the virtual ruler will move along with the user's gestures, refer to Figure 22b, when the virtual ruler moves to the left near the drawing straight line segment, the virtual ruler will automatically adjust the display position to fit the drawing straight line segment 1, refer to Figure 22c , when the contact area between the side of the user's hand and the touch screen continues to the right, the virtual ruler will cancel the magnetic effect, that is, it will not fit the straight line segment 1 of the drawing, and continue to follow the user's gesture.
  • the drawing line if the drawing line is near the virtual scale, the drawing line will have a magnetic attraction effect on the virtual scale, and automatically measure the length of the drawing line, avoiding the process of manually fitting the virtual scale and the drawing line, reducing It reduces the difficulty of measurement, avoids the problem of inaccurate fitting when fitting manually, and improves the accuracy of measurement.
  • the virtual ruler may be used to measure distances between drawing points displayed on the touch screen.
  • At least one drawing line segment can be displayed on the touch screen.
  • the virtual point can be adjusted by moving the touch gesture on the touch screen.
  • the display position of the ruler is such that the virtual ruler intersects with two points (or multiple points) on the measured drawing line segment, and then, referring to Figure 24, the detection module can obtain two intersection points (or at least two of the plurality of intersection points) intersection point) and display the distance value.
  • the detection module may detect that there is a first intersection point and a second intersection point between the drawing line segment on the touch screen and the virtual scale, and display the distance value between the first intersection point and the second intersection point.
  • the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.
  • the virtual ruler can be used as a reference tool when the user draws a straight line on the touch screen (see Figure 25).
  • the so-called reference tool can be understood as when the drawing track fits the ruler When , due to the obstruction of the ruler, the drawing track is limited to a straight line.
  • the straightedge in the physical space can be implemented based on its own structural characteristics and can be used as a reference tool when drawing a straight line (when placed on the drawing plane, when the user draws with a brush, the drawing track
  • the drawing trajectory will be restricted to a straight line by the ruler, and then a straight line can be drawn)
  • the virtual ruler is only an affordance displayed on the touch screen, so it is necessary to recognize the user's line drawing trajectory (or call it is the positional relationship between the line drawing position) and the virtual scale, and based on the positional relationship between the line drawing position and the virtual scale, limit the line drawing track.
  • the drawing trajectory of the writing and painting can be corrected as a straight line (refer to Figure 26, the left figure in Figure 26 is the user's actual line drawing trajectory, and the right figure is the drawing straight line displayed after correction), when the user draws a line along the virtual ruler through the above method, a straight line will be drawn automatically.
  • the detection module may detect a line-drawing gesture on the touch screen, based on the fact that the virtual scale is displayed on the touch screen, and the distance between the line-drawing position of the line-drawing gesture and the virtual scale is within Within a preset distance (such as 1 cm, 2 cm, 3 cm, 4 cm, 5 cm, etc.), according to the line drawing position of the line drawing gesture, a drawing line segment is displayed, wherein the drawing line segment is parallel to the virtual ruler.
  • a preset distance such as 1 cm, 2 cm, 3 cm, 4 cm, 5 cm, etc.
  • the drawing line between the first and last two drawing points can be calculated and displayed, and the length of the drawing line can be displayed.
  • the line drawing position includes a starting point position and an ending point position
  • the drawing straight line segment is a line segment between the starting point position and the ending point position (refer to FIG. 28 ,
  • the left picture in Fig. 28 is the user's actual drawing line trajectory, and the right picture is the drawing straight line displayed after correction)
  • the detection module can display the drawing line length based on the real-time drawing line position, and the drawing line length is the described The distance value between the starting point position and the real-time drawing line position.
  • the length of the line segment drawn exceeds the expected value, you can draw it back, which will have a deletion effect.
  • the generated line segment is the expected value, and the drawn Curves (the distance between the curve and the virtual ruler is within the preset range) will be automatically corrected to a straight line.
  • the general solution is to erase a part or redraw, but it is also difficult to obtain a line segment of an accurate length by erasing or redrawing.
  • the position of the end point will move back (the position of the start point is the starting point of drawing with the stylus, and the position of the end point is the position of the stylus when drawing a picture)
  • the last position, during the drawing process, the position of the end point can be regarded as a dynamic movement, until the drawing is completed, the position where the stylus is detached is the final end point position).
  • the line segment A2 is equivalent to drawing twice, the first time ( Forward drawing) to draw the trajectory line, when the second (reverse drawing) is repeated with the first drawing, the repeated line segment A2 is deleted, that is, part of the first straight line is erased, and finally only the starting point position is retained and the line segment A3 between the position of the end point.
  • marking the length within the line segment only mark the length of the line segment A3 between the start point position and the end point position.
  • the stylus can be drawn again when it is redrawn. Therefore, a line segment with an expected length of 15 cm can be obtained by (repeatedly) adjusting the position of the end point.
  • the intersection of two line segments is deleted (for example, the intersection of the diagonals of a square, when drawing two different diagonals, the intersection will also be drawn twice).
  • the deletion effect of repeated line drawing can increase the time judgment mechanism. Only when the same line segment is drawn twice within the predetermined time can the deletion effect be achieved. Or it can be realized through other judgment mechanisms. For example, only when the direction of movement of the stylus is opposite twice before and after is met, the direction mechanism such as deletion judgment is satisfied.
  • the two functions of the ruler are converted into intelligent operations suitable for the virtual interface.
  • the measurement is to automatically display the measured value, and the length value is displayed when drawing a straight line, which removes the limitations of the physical world and saves It takes less time for users to take readings, greatly improving user efficiency.
  • An embodiment of the present application provides a method for displaying a virtual scale, including: detecting a contact gesture with the touch screen; indicating the contact of the user's hand side with the touch screen based on the contact gesture, and according to the contact area of the contact gesture, A virtual scale is displayed on the touch screen, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale is attached to a long side of the strip-shaped area.
  • the display of the virtual scale is triggered. On the one hand, only the user's single hand is required to operate, and the operation difficulty and cost are very small.
  • the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode, triggering the display of the virtual scale is more in line with the user's operation habits.
  • Fig. 37a is a schematic flowchart of an object copying method provided by the embodiment of the present application.
  • an object copying method provided by the embodiment of the present application includes:
  • the existing operation logic includes three-finger pinch to complete copy, and three-finger release to paste.
  • the industry has a set of basic logic: select the content, right click or special button to enter the semantic menu, click the copy button, move to the target position to call up the semantic menu, and click the paste button. It can be seen that the mainstream method must select elements as a prerequisite before copying and pasting. There are many operation steps, and the operation cost of copying and pasting is very high.
  • the copied object when performing a copy and paste operation, can be dragged to a position to be pasted, and the position where the hand is raised is the pasted position.
  • the copy function for the target object when a long press gesture for the target object is detected, the copy function for the target object may be enabled.
  • the long press gesture may be a two-finger long press gesture, for example, refer to FIG. 37b.
  • the target object is a drawing object displayed on the touch screen, for example, it may be a character, pattern, stroke or the like.
  • the long press gesture may include a light press and a deep press, and when the contact intensity increases from an intensity lower than the light press intensity threshold to an intensity between the light press intensity threshold and the deep press intensity threshold, it may be called a touch detection "Light press” input on the surface.
  • An increase in contact intensity from an intensity below the deep press intensity threshold to an intensity above the deep press intensity threshold may be referred to as detecting a "deep press” input on the touch surface.
  • An increase in contact intensity from an intensity below the contact detection intensity threshold to an intensity between the contact detection intensity threshold and the light press intensity threshold may be referred to as detecting a "swipe touch" input on the touch surface.
  • the contact detection intensity threshold is zero. In some embodiments, the contact detection intensity threshold may be greater than zero.
  • the display of the virtual ruler may not be triggered.
  • the duration of the long-press gesture can also be used as a trigger to enable the copy function for the target object, that is, it needs to be detected that the duration of the long-press gesture is greater than a preset time, such as a preset
  • the time can be set as 0.1S, 0.15S, 0.2S, 0.25S, 0.3S, 0.35S, 0.4S, 0.45S, 1S, 2S.
  • the maintenance time of the long press gesture can start counting when the long press gesture is detected, or after detecting that the contact intensity between the long press gesture and the touch screen is greater than a certain contact intensity threshold (threshold greater than 0), the maintenance time The timing can be ended when the contact intensity of the long press gesture is detected to be 0, or when the contact intensity of the long press gesture is detected to be less than a certain contact intensity threshold (threshold greater than 0).
  • the maintenance time of the long press gesture can be the maintenance time when the long press gesture remains in a static state (or the movement is less than a certain range), for example, the maintenance time of the long press gesture can be when the press gesture is at rest (or the movement is less than a certain range) the maintenance time. It should be understood that the above static can be interpreted as that the contact area of the long press gesture does not move or moves in a small range.
  • the so-called enabling the copy function for the target object can be understood as activating the copy state.
  • the copy state is not activated, the display elements on the drawing and writing interface cannot be copied.
  • the so-called long press gesture for the target object can be understood as the target object is covered by the contact area of the long press gesture.
  • the detection module detects the long press gesture
  • the copy command will not be triggered (that is, the copy function for the display element will not be enabled. ).
  • the display element can be selected, and the display elements within this range are placed in a copy activation state (that is, the copy function for the target object is enabled).
  • the touch gesture is a two-finger long-press gesture
  • the touch gesture is a two-finger long-press gesture
  • there is a display element in the contact area then select the display element and put the element in a copy-activated state (that is, enable replication for the target object).
  • the so-called long press gesture for the target object may also be understood as the contact area of the long press gesture is within a preset distance around the target object.
  • the contact area of the long press gesture can be associated with a fixed predefined range, or can be extended on the basis of the predefined range, for example, within the preset distance of the boundary of the predefined range, it can be found pattern, the range can be extended to the newly discovered pattern, and the newly discovered pattern can also be applied to this extension.
  • a circle is determined according to the predefined range area, and select the pattern in the circular area, that is, select the word "cow”.
  • the extended shape can be adapted to a predefined shape, for example, a circular translation is performed to finally obtain an ellipse. It can also be adapted to the preset distance of the boundary judgment, such as an irregular pattern that is adapted to the actual shape and the boundary of the word.
  • this extension can be interrupted when a pattern that does not need to be copied is selected. For example, referring to FIG. 45 , an additional finger slide can be used to divide the selected area into two parts, and then the area corresponding to the two-finger part is deselected. As shown in the figure below, after splitting, if the word "Ji" is not selected, when you move two fingers, only "Nian Da of the Ox" will be copied.
  • the copy function for the target object may be enabled after detecting the click gesture for the target object.
  • the detection of the click gesture for the target object may be understood as the detection of a click gesture in which the contact area with the touch screen covers the target object.
  • the copy selection of the target object can also be performed based on the frame selection control (which can be physical or virtual) displayed on the touch screen.
  • the frame selection of the icon can be carried out , after selecting the icon, select the target object, and then enable the copy function for the target object.
  • the user performs a drag gesture on the touch screen for the target object
  • the end point of the drag gesture (that is, the position of the hand-raising gesture) may be the position where the paste operation for the target object needs to be performed.
  • the drag gesture may be a two-finger drag gesture.
  • the user triggers the copy function for the target object through a long press gesture
  • the drag gesture may be to keep the long press gesture in contact with the touch screen and move on the touch screen gesture.
  • the user triggers the copy function for the target object through the click gesture, and then uses the drag gesture to perform the copy operation, that is, the selection operation and the copy operation are separated.
  • the starting point of the touch area of the drag gesture may not be (or be) near the display position of the target object, but can be dragged at any display position on the touch screen, and the copied target object can be copied, and the target object can be dragged The object slides in the direction of the two-finger swipe.
  • the target object after the detection module detects a drag gesture for the target object, the target object has a tendency to be dragged away, and after detecting the instruction of the drag gesture, the target object is copied Operation, copy the target object, generate a copy body (or called a mirror image), and make the mirror image move with the movement of the drag gesture, and the body of the target object is still in the original position without sliding.
  • a copy body or called a mirror image
  • the mirror image of the target object may appear in a semi-blurred state.
  • a hand raising gesture is detected.
  • the hand gesture when the drag gesture slides to the expected position, the hand gesture is performed, that is, when the hand is out of contact with the display screen or the contact intensity is less than the threshold, the paste operation is triggered. It is to paste the target object at the position of the hand gesture, and then complete the copy and paste process.
  • gesture rules for the copy operation are not only applicable to the drawing elements on the drawing interface, but also applicable to the copying of text on the display interface.
  • press and hold the selected text for example, in Figure 48 Press and hold with two fingers as shown
  • drag to copy a copy after release, the copy will be displayed at the position where the finger leaves.
  • An embodiment of the present application provides an object copying method, the method comprising: detecting a drag gesture for a target object displayed on a touch screen; in response to the drag gesture, displaying the target object on the touch screen and according to the drag gesture, update the display position of the mirror image in real time, so that the mirror image moves with the drag gesture; detect a hand-raising gesture; respond to the hand-raising gesture, move the mirror image It is fixedly displayed at the display position where the mirror image is located.
  • the method of copying and pasting by dragging gestures is simple and intuitive, which reduces the number of steps required for existing copy and paste, and shortens the process of copying and pasting.
  • the way of copying can be performed.
  • the gesture is simple and commonly used, and the operation is simple and conforms to the user's cognition.
  • Fig. 49 is a schematic structural diagram of a virtual ruler display device provided by an embodiment of the present application, which is applied to electronic equipment, the electronic equipment includes a touch screen, and the device 4900 includes:
  • a detection module 4901 configured to detect a contact gesture with the touch screen
  • step 301 For a specific description of the detection module 4901, reference may be made to the description of step 301, which will not be repeated here.
  • the display module 4902 is configured to indicate the contact of the side of the user's hand with the touch screen based on the contact gesture, and display a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale is attached to the long side of the strip-shaped area.
  • step 302 For a specific description of the display module 4902, reference may be made to the description of step 302, which will not be repeated here.
  • the side of the hand is the side of the user's hand that is located on the side of the little finger in an unfolded state.
  • the contact area includes:
  • the contact area between the little finger on the side of the user's hand and the touch screen is the contact area between the little finger on the side of the user's hand and the touch screen.
  • the device also includes:
  • a determining module 4904 configured to determine that the contact gesture indicates contact between the side of the user's hand and the touch screen based on that the contact area of the contact gesture satisfies a preset condition; the preset condition includes:
  • the contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen.
  • the device also includes:
  • An acquisition module 4903 configured to acquire gesture data of the contact gesture
  • the determination module 4904 is further configured to determine, according to the gesture data, through a neural network, that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.
  • the virtual ruler is attached to the long side of the strip-shaped region, including:
  • the acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value; and the virtual scale and the strip-shaped area meet one of the following conditions:
  • the detection module 4901 is configured to detect that the duration of the contact gesture is longer than a preset before displaying a virtual ruler on the touch screen in the contact area according to the contact gesture time.
  • the detection module 4901 is configured to detect the movement of the contact area of the contact gesture
  • the display module 4902 is configured to adjust the display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.
  • the detection module 4901 is configured to detect the user's hand-raising gesture
  • the display module is configured to hide the display of the virtual ruler on the touch screen in response to the hand-raising gesture.
  • the instructing the contact of the side of the user's hand with the touch screen based on the contact gesture includes:
  • the method further includes:
  • the user's hand gesture is detected
  • the detection module 4901 is configured to detect a user's selection instruction for the virtual scale
  • the display module is configured to display a trigger control in response to the selection instruction, and the trigger control is used to indicate at least one of the following operations on the virtual scale:
  • the virtual ruler is used to measure the length of a drawn line segment displayed on the touch screen; or,
  • the virtual ruler is used for distance measurement between drawing points displayed on the touch screen.
  • the detection module 4901 is configured to detect that there is a drawing line segment associated with the gesture of the virtual ruler on the touch screen;
  • the display module is used to display the length value of the straight line segment of the drawing; the existence gesture association includes:
  • the direction difference from the virtual scale is smaller than a preset value; and/or,
  • the distance from the virtual ruler is smaller than a preset value.
  • the display module 4902 is configured to adjust the display position of the virtual ruler according to the position of the line segment to be measured, so that the display position of the virtual ruler fits with the drawn straight line.
  • the detection module 4901 is configured to detect that there is a first intersection point and a second intersection point between the drawn line segment on the touch screen and the virtual scale after the virtual scale is displayed on the touch screen;
  • the display module 4902 is configured to display the distance value between the first intersection point and the second intersection point.
  • the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.
  • the detection module 4901 is configured to detect a gesture of drawing a line on the touch screen
  • the display module 4902 is configured to display the virtual ruler on the touch screen, and the distance between the line drawing position of the line drawing gesture and the virtual ruler is within a preset distance, according to the line drawing
  • the line drawing position of the gesture displays a drawing line segment, wherein the drawing line segment is parallel to the virtual ruler.
  • the line drawing position includes a starting point position and an ending point position
  • the drawing straight line segment is a line segment between the starting point position and the ending point position
  • the line drawing position includes a starting point position and a real-time line drawing position
  • the method further includes:
  • the line-drawing length is a distance value between the starting point position and the real-time line-drawing position.
  • An embodiment of the present application provides a virtual ruler display device, including: a detection module 4901, configured to detect a contact gesture with the touch screen; a display module 4902, configured to indicate that the side of the user's hand is in contact with the touch screen based on the contact gesture According to the contact area of the contact gesture, a virtual ruler is displayed on the touch screen, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale and the long side of the strip-shaped area fit.
  • the display of the virtual scale is triggered. On the one hand, only the user's single hand is required to operate, and the operation difficulty and cost are very small.
  • the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode, triggering the display of the virtual scale is more in line with the user's operation habits.
  • FIG. 50 is a schematic structural diagram of an object replication device provided in an embodiment of the present application. As shown in FIG. 50, the device 5000 includes:
  • the detection module 5001 is configured to detect a drag gesture for a target object displayed on the touch screen; the detection module is also configured to detect a hand-raising gesture after the display module displays a mirror image of the target object;
  • step 3701 and step 3703 For a specific description of the detection module 5001, reference may be made to the descriptions of step 3701 and step 3703, which will not be repeated here.
  • the display module 5002 is configured to display a mirror image of the target object on the touch screen in response to the drag gesture, and update the display position of the mirror image in real time according to the drag gesture, so that the mirror image follows the The drag gesture moves; the display module is further configured to, in response to the hand-raising gesture, fix and display the mirror image at the display position where the mirror image is located.
  • step 3702 and step 3704 For a specific description of the display module 5002, reference may be made to the descriptions of step 3702 and step 3704, which will not be repeated here.
  • the device also includes:
  • the enabling module 5003 is configured to enable the copy function for the target object when at least one of the following gestures is detected before the detection of the drag gesture for the target object displayed on the touch screen:
  • a click gesture is detected for the target object.
  • the detection module 5001 is configured to detect a long press gesture in which the contact area with the touch screen covers the target object or is within a preset distance around the target object.
  • the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen.
  • the long press gesture is a two-finger long press gesture.
  • the detection module 5001 is configured to detect a click gesture that a contact area with the touch screen covers the target object.
  • An embodiment of the present application provides an object copying device, including: a detection module 5001, configured to detect a drag gesture for a target object displayed on a touch screen; the detection module is also configured to display the target on a display module A hand gesture is detected after the mirror image of the object; the display module 5002 is configured to display the mirror image of the target object on the touch screen in response to the drag gesture, and update the mirror image in real time according to the drag gesture The display position of the mirror image so that the mirror image moves along with the drag gesture; the display module is further configured to display the mirror image at the display position where the mirror image is located in response to the hand-raising gesture.
  • the method of copying and pasting by dragging gestures is simple and intuitive, which reduces the number of steps required for existing copy and paste, and shortens the process of copying and pasting.
  • FIG. 51 is a schematic structural diagram of the terminal device provided by the embodiment of the present application.
  • the terminal device 5100 may specifically be an electronic whiteboard, a virtual reality VR device, a mobile phone, a tablet, a notebook computer, a smart wearable device, etc., which are not limited here.
  • the terminal device 5100 includes: a receiver 5101, a transmitter 5102, a processor 5103, and a memory 5104 (the number of processors 5103 in the terminal device 5100 can be one or more, and one processor is taken as an example in FIG.
  • the processor 5103 may include an application processor 51031 and a communication processor 51032 .
  • the receiver 5101, the transmitter 5102, the processor 5103, and the memory 5104 may be connected through a bus or in other ways.
  • the memory 5104 may include read-only memory and random-access memory, and provides instructions and data to the processor 5103 .
  • a part of the memory 5104 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 5104 stores processors and operating instructions, executable modules or data structures, or their subsets, or their extended sets, wherein the operating instructions may include various operating instructions for implementing various operations.
  • the processor 5103 controls the operation of the terminal device.
  • various components of the terminal device are coupled together through a bus system, where the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus.
  • the various buses are referred to as bus systems in the figures.
  • the methods disclosed in the foregoing embodiments of the present application may be applied to the processor 5103 or implemented by the processor 5103 .
  • the processor 5103 may be an integrated circuit chip and has a signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 5103 or instructions in the form of software.
  • the above-mentioned processor 5103 can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and can further include an application-specific integrated circuit (application specific integrated circuit, ASIC), field programmable Field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field programmable Field-programmable gate array
  • the processor 5103 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 5104, and the processor 5103 reads the information in the memory 5104, and completes the steps of the above method in combination with its hardware.
  • the processor 5103 can read the information in the memory 5104, and combine its hardware to complete the steps related to the display of the virtual scale in the steps 301 to 302 in the above embodiment, and the steps related to the display of the virtual scale in the steps 3701 to 3704 in the above embodiment. Copy the steps associated with the method.
  • the receiver 5101 can be used to receive input digital or character information, and generate signal input related to related settings and function control of the terminal device.
  • the transmitter 5102 can be used to output digital or character information through the first interface; the transmitter 5102 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 5102 can also include a display device such as a touch screen.
  • An embodiment of the present application further provides a computer program product, which, when running on a computer, causes the computer to execute the steps of the method described in the embodiment corresponding to FIG. 3 and FIG. 37a in the above embodiments.
  • An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a program for signal processing, and when it is run on a computer, the computer executes the method described in the foregoing embodiments The steps of the image processing method.
  • the image display device provided by the embodiment of the present application may specifically be a chip, and the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, a pin or a circuit, etc. .
  • the processing unit can execute the computer-executed instructions stored in the storage unit, so that the chips in the execution device execute the data processing methods described in the above embodiments, or make the chips in the training device execute the data processing methods described in the above embodiments.
  • the storage unit is a storage unit in the chip, such as a register, a cache, etc.
  • the storage unit may also be a storage unit located outside the chip in the wireless access device, such as only Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), etc.
  • ROM Read-only memory
  • RAM random access memory
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be A physical unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the connection relationship between the modules indicates that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.
  • the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application .
  • a computer device which can be a personal computer, a server, or a network device, etc.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • wired eg, coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless eg, infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application provides a virtual scale display method, comprising: detecting a contact gesture with a touch screen, indicating contact between the hand side surface of a user and the touch screen on the basis of the contact gesture, and displaying a virtual scale on the touch screen. According to the present application, when it is detected that the contact gesture indicates the contact between the hand side surface of the user and the touch screen, the display of the virtual scale can be triggered, on one hand, only one hand of the user is needed for operation, so that the operation difficulty and the cost are very low; and on the other hand, when the hand of the user is unfolded, a contact region between the hand side surface and the touch screen is a flat elongated region and is approximate to a straight line, and the display of the virtual scale triggered on the basis of the operation mode better conforms to the operation habit of the user.

Description

一种虚拟标尺显示方法以及相关设备A virtual ruler display method and related equipment

本申请要求于2021年6月9日提交中国专利局、申请号为202110644928.3、发明名称为“一种虚拟标尺显示方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110644928.3 and the title of the invention "a virtual scale display method and related equipment" submitted to the China Patent Office on June 9, 2021, the entire contents of which are incorporated herein by reference Applying.

技术领域technical field

本申请涉及终端软件领域,尤其涉及一种虚拟标尺显示方法以及相关设备。The present application relates to the field of terminal software, in particular to a method for displaying a virtual scale and related equipment.

背景技术Background technique

随着互联网及通讯技术的迅猛发展,办公信息化已日益成为整个IT服务体系中的一个重要组成部分。其中,最贴近用户的交互式触控显示设备(比如交互式电子白板)大行其道,已成为数字会议的标准配件。如图1所示,为实现更好的书写体验,交互式触控显示设备一般会配置触控笔,方便用户在屏幕上书写。With the rapid development of Internet and communication technology, office informatization has increasingly become an important part of the entire IT service system. Among them, interactive touch display devices (such as interactive electronic whiteboards) that are closest to users are popular and have become standard accessories for digital conferences. As shown in FIG. 1 , in order to achieve a better writing experience, an interactive touch display device is generally equipped with a stylus to facilitate users to write on the screen.

电子白板一般适用于多人讨论场景,起到类似黑板的作用。在会议室或教学场景下,有时候会有绘图、表格绘制、图案测量的需求,需要通过特定操作唤出虚拟标尺。现有的触发唤出虚拟标尺的手势较为复杂,操作难度和成本很高,且不符合用户的操作习惯。Electronic whiteboards are generally suitable for multi-person discussion scenarios and play a role similar to blackboards. In conference rooms or teaching scenarios, sometimes there is a need for drawing, table drawing, and pattern measurement, and a virtual ruler needs to be called out through specific operations. The existing gestures for triggering and calling the virtual ruler are relatively complicated, and the operation is difficult and costly, and does not conform to the user's operating habits.

发明内容Contents of the invention

本申请通过检测与所述触摸屏的接触手势,并基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺。一方面只需要用户的单手进行操作,操作难度和成本很小,另一方面,当用户的手部展开时,手侧面与触摸屏的接触区域为扁平的长条状区域,接近于一条直线,基于这种操作模式触发虚拟标尺的显示更符合用户的操作习惯。The present application detects a contact gesture with the touch screen, and based on the contact gesture indicates the contact of the side of the user's hand with the touch screen, and displays a virtual scale on the touch screen according to the contact area of the contact gesture. On the one hand, only one hand of the user is required to operate, and the operation difficulty and cost are very small. On the other hand, when the user's hand is unfolded, the contact area between the side of the hand and the touch screen is a flat strip area, close to a straight line. Triggering the display of the virtual ruler based on this operation mode is more in line with the user's operation habits.

本申请实施例提供了一种虚拟标尺显示方法,应用于电子设备,所述电子设备包括触摸屏,所述方法包括:An embodiment of the present application provides a method for displaying a virtual ruler, which is applied to an electronic device, the electronic device includes a touch screen, and the method includes:

检测与所述触摸屏的接触手势;detecting a contact gesture with the touch screen;

其中,触摸屏可以包括基于触觉接触来接收来自用户的输入的触敏表面、传感器或传感器组,“检测与所述触摸屏的接触手势”可以理解为检测到与所述触摸屏上触敏表面的接触手势;Wherein, the touch screen may include a touch-sensitive surface, a sensor or a sensor group that receives input from the user based on tactile contact, and "detecting a contact gesture with the touch screen" may be understood as detecting a contact gesture with the touch-sensitive surface on the touch screen ;

基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。Based on the contact gesture indicating that the side of the user's hand is in contact with the touch screen, displaying a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is a strip-shaped area, The virtual ruler is attached to the long side of the strip-shaped area.

其中,“接触区域”可以理解为可以检测到的和触敏表面相接触的区域,该区域可以为连续的区域或者是由密集的触摸点构成的离散区域(例如接触区域可以为一组密集分布的接触点构成的长条形区域);Among them, "contact area" can be understood as a detectable area in contact with the touch-sensitive surface, which can be a continuous area or a discrete area composed of dense touch points (for example, a contact area can be a group of densely distributed The long strip area formed by the contact points);

其中,虚拟标尺与所述长条状区域的长边贴合,也就是说,在显示位置上,虚拟标尺与所述长条状区域需要很接近,在方向上,虚拟标尺与所述长条状区域的长边平行或者接 近于平行;Wherein, the virtual scale is attached to the long side of the strip-shaped area, that is to say, in the display position, the virtual scale and the strip-shaped area need to be very close, and in the direction, the virtual scale and the strip-shaped area need to be very close. The long sides of the shaped region are parallel or close to parallel;

为了能够降低用户触发虚拟标尺显示功能的操作难度和成本,本申请实施例中,当检测到接触手势指示用户的手侧面与所述触摸屏的接触时,触发虚拟标尺的显示,一方面只需要用户的单手进行操作,操作难度和成本很小,另一方面,当用户的手部展开时,手侧面与触摸屏的接触区域为扁平的长条状区域,接近于一条直线,基于这种操作模式触发虚拟标尺的显示更符合用户的操作习惯。In order to reduce the operational difficulty and cost for the user to trigger the virtual ruler display function, in the embodiment of the present application, when a contact gesture is detected indicating that the side of the user's hand is in contact with the touch screen, the display of the virtual ruler is triggered. On the one hand, only the user needs to On the other hand, when the user's hand is extended, the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode Triggering the display of the virtual ruler is more in line with the user's operating habits.

在一种可能的实现中,所述手侧面为用户的手部在展开状态下位于小拇指一侧的手侧面。In a possible implementation, the side of the hand is the side of the user's hand that is located on the side of the little finger in an unfolded state.

本申请实施例中的手侧面可以理解为用户的手部在展开状态下位于小拇指一侧的手侧面(例如包括用户手部的小鱼际部位的表面或者小拇指部位的表面中的至少一个)。The side of the hand in the embodiment of the present application can be understood as the side of the user's hand located on the side of the little finger in the unfolded state (for example, including at least one of the surface of the hypothenar part of the user's hand or the surface of the little finger).

其中,手部的展开状态可以为用户的手指(或者是仅包括小拇指)处于和手掌心同一个平面(或者是接近于处于同一个平面)的状态。Wherein, the unfolded state of the hand may be a state where the user's fingers (or only the little finger) are on the same plane (or close to the same plane) as the palm.

在一种可能的实现中,所述接触区域包括:用户的手侧面的小鱼际部位与所述触摸屏的接触区域;或者,用户的手侧面的小拇指部位与所述触摸屏的接触区域。In a possible implementation, the contact area includes: a contact area between a hypothenar part on the side of the user's hand and the touch screen; or, a contact area between a little finger on the side of the user's hand and the touch screen.

手部侧面可以包括小鱼际部位的区域和小拇指部位的区域,当用户的手侧面与触摸屏接触时,可能由于手部的姿势或者用户的手型特点,出现如下的至少一种接触情况:The side of the hand may include the area of the hypothenar area and the area of the little finger. When the side of the user's hand is in contact with the touch screen, at least one of the following contact situations may occur due to the posture of the hand or the characteristics of the user's hand shape:

小鱼际部位的区域与触摸屏接触;The area of the hypothenar is in contact with the touch screen;

小拇指部位的区域与触摸屏接触;The area of the little finger is in contact with the touch screen;

小鱼际部位的区域和小拇指部位的区域一起与触摸屏接触。The area of the hypothenar and the area of the little finger together make contact with the touch screen.

在一种可能的实现中,所述方法还包括:基于所述接触手势的接触区域满足预设条件,确定所述接触手势指示所述用户的手侧面与触摸屏的接触;所述预设条件包括:所述接触区域为长条状区域,所述长条状区域的形状和面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的特点。In a possible implementation, the method further includes: based on the contact area of the contact gesture meeting a preset condition, determining that the contact gesture indicates that the side of the user's hand is in contact with the touch screen; the preset condition includes : The contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen.

其中,形状可以理解为接触区域边界线的轮廓特征,当接触区域边界线的轮廓形状为扁平的长条状,则可以认为接触区域的形状符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的形状特点;Among them, the shape can be understood as the outline feature of the boundary line of the contact area. When the outline shape of the boundary line of the contact area is flat and long, it can be considered that the shape of the contact area conforms to the hypothenar position and/or little finger on the side of the user's hand. The shape characteristics of the contact area when the part is in contact with the touch screen;

其中,形状也可以理解为接触区域包括的接触点的分布特征,可以通过检测触摸点的分布形状来判断是否是满足上述形状特点。(比如检测到一组密集分布的长条形的触摸点,则可以认为接触区域的形状符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的形状特点);Wherein, the shape can also be understood as the distribution characteristics of the contact points included in the contact area, and whether the above shape characteristics are satisfied can be judged by detecting the distribution shape of the touch points. (For example, if a group of densely distributed elongated touch points are detected, it can be considered that the shape of the contact area conforms to the shape characteristics of the contact area when the hypothenar position on the side of the user's hand and/or the little finger position is in contact with the touch screen) ;

其中,当接触区域的面积大小在预设的范围内(该范围中的极大值不能过大,该范围中的极小值也不能过小,可以基于人的手部手侧面的特点来设定),则可以认为接触区域的面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的面积大小特点。Wherein, when the area size of the contact area is within the preset range (the maximum value in this range cannot be too large, and the minimum value in this range cannot be too small, it can be set based on the characteristics of the side of the hand of the human hand. ), then it can be considered that the size of the contact area conforms to the characteristics of the area size of the contact area when the hypothenar part and/or little finger part of the side of the user's hand is in contact with the touch screen.

在一种可能的实现中,所述方法还包括:In a possible implementation, the method also includes:

获取所述接触手势的手势数据;acquiring gesture data of the contact gesture;

根据所述手势数据,通过神经网络,确定所述接触手势指示所述用户的手侧面与触摸屏的接触。According to the gesture data, through a neural network, it is determined that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.

在一种可能的实现中,所述虚拟标尺与所述长条状区域的长边贴合,包括:In a possible implementation, the virtual ruler is attached to the long side of the strip-shaped region, including:

所述虚拟标尺的方向与所述长条状区域的长边指示的方向之间的锐夹角小于预设值,预设值可以为1度、2度、3度、4度、5度、10度等;且所述虚拟标尺与所述长条状区域满足如下条件的一个:The acute angle between the direction of the virtual ruler and the direction indicated by the long side of the strip-shaped area is smaller than a preset value, and the preset value can be 1 degree, 2 degrees, 3 degrees, 4 degrees, 5 degrees, 10 degrees, etc.; and the virtual ruler and the strip-shaped area meet one of the following conditions:

所述虚拟标尺与所述长条状区域存在重叠;或者,所述虚拟标尺与所述长条状区域相切;或者,所述虚拟标尺与所述长条状区域之间的距离小于预设值,预设值可以为1cm、2cm、3cm、4cm、5cm、10cm、15cm等。There is overlap between the virtual scale and the strip-shaped area; or, the virtual scale is tangent to the strip-shaped area; or, the distance between the virtual scale and the strip-shaped area is less than a preset The preset value can be 1cm, 2cm, 3cm, 4cm, 5cm, 10cm, 15cm, etc.

在一种可能的实现中,所述根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺之前,所述方法还包括:检测到所述接触手势的维持时间大于预设时间。In a possible implementation, before displaying the virtual ruler on the touch screen according to the contact area of the contact gesture, the method further includes: detecting that the contact gesture is maintained for a time longer than a preset time.

其中,接触手势的维持时间可以是以检测到接触手势就开始计时,或者是检测到接触手势与触摸屏的接触强度大于一定接触强度阈值(大于0的阈值)之后才开始计时,维持时间可以是以检测到接触手势的接触强度为0时结束计时,或者是检测到接触手势的接触强度小于一定接触强度阈值(大于0的阈值)时结束计时。Wherein, the maintenance time of the contact gesture can start counting when the contact gesture is detected, or after detecting that the contact intensity between the contact gesture and the touch screen is greater than a certain contact intensity threshold (threshold greater than 0), the maintenance time can be The timing ends when it is detected that the contact intensity of the contact gesture is 0, or the timing ends when it is detected that the contact intensity of the contact gesture is less than a certain contact intensity threshold (threshold greater than 0).

其中,接触手势的维持时间可以是接触手势保持静止状态(或者移动小于一定幅度)时的维持时间,例如接触手势的维持时间可以是处于静止的按压手势(或者移动小于一定幅度)时的维持时间。应理解,上述静止状态可以理解为接触手势的接触区域的静止状态;Wherein, the maintenance time of the contact gesture may be the maintenance time when the contact gesture remains in a static state (or the movement is less than a certain range), for example, the maintenance time of the contact gesture may be the maintenance time when the pressing gesture is at rest (or the movement is less than a certain range) . It should be understood that the above static state may be understood as a static state of the contact area of the touch gesture;

在一种可能的实现中,所述方法还包括:检测到所述接触手势的接触区域的移动;调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置跟随所述接触区域。In a possible implementation, the method further includes: detecting movement of a contact area of the contact gesture; and adjusting a display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.

其中,所谓移动可以理解为,发生了位置的变化和/或方向的变化;Wherein, the so-called movement can be understood as a change in position and/or a change in direction;

其中,所谓跟随,可以理解为将虚拟标尺的显示位置始终与接触手势的接触区域贴合,由于接触手势的接触区域发生了移动,进而虚拟标尺的显示位置和方向也会发生改变,且在虚拟标尺的显示区域始终保持和接触区域的长边的贴合。Among them, the so-called following can be understood as always fitting the display position of the virtual ruler with the contact area of the touch gesture. Since the contact area of the touch gesture moves, the display position and direction of the virtual ruler will also change, and in the virtual The display area of the ruler is always in close contact with the long side of the contact area.

在一种可能的实现中,所述方法还包括:检测到用户的抬手手势;响应于所述抬手手势,在所述触摸屏上隐藏所述虚拟标尺的显示。In a possible implementation, the method further includes: detecting a hand-raising gesture of the user; in response to the hand-raising gesture, hiding the display of the virtual ruler on the touch screen.

其中,抬手手势可以理解为手侧面脱离触摸屏,或者是手侧面与触摸屏的接触强度小于一定的阈值,或者是手侧面与触摸屏的接触区域小于预设值。Wherein, the gesture of raising the hand can be understood as the side of the hand leaving the touch screen, or the contact intensity between the side of the hand and the touch screen is less than a certain threshold, or the contact area between the side of the hand and the touch screen is smaller than a preset value.

在一种可能的实现中,所述基于所述接触手势指示所述用户的手侧面与触摸屏的接触, 包括:基于所述接触手势指示所述用户的手侧面与触摸屏进行了预设次数的敲击;所述在所述触摸屏上显示虚拟标尺之后,所述方法还包括:检测到用户的抬手手势;响应于所述抬手手势,在所述触摸屏上维持所述虚拟标尺的显示。In a possible implementation, the instructing that the side of the user's hand contacts the touch screen based on the contact gesture includes: instructing that the side of the user's hand and the touch screen perform a preset number of taps based on the contact gesture After the virtual ruler is displayed on the touch screen, the method further includes: detecting a hand-raising gesture of the user; in response to the hand-raising gesture, maintaining the display of the virtual ruler on the touch screen.

在一些场景中,当用户抬手后仍然需要使用虚拟标尺,因此需要基于一定的手势来触发虚拟标尺在触摸屏上的固定显示;In some scenarios, the virtual ruler still needs to be used after the user raises his hand, so it is necessary to trigger the fixed display of the virtual ruler on the touch screen based on a certain gesture;

可选的,预设次数的敲击需要在预设时间内发生,预设时间为较短的时间(例如为0.1S、0.2S、0.3S、0.4S、0.5S等);Optionally, the preset number of taps needs to occur within a preset time, and the preset time is a short time (for example, 0.1S, 0.2S, 0.3S, 0.4S, 0.5S, etc.);

其中,预设次数的敲击在触摸屏上的敲击位置需要保持一致,或者是允许微小的偏差。Wherein, the tapping positions of the preset number of taps on the touch screen need to be kept consistent, or slight deviations are allowed.

其中,预设次数可以为2次、3次等,例如,在手侧面连续敲击两次时,虚拟标尺可以固定显示在触摸屏上。Wherein, the preset number of times can be 2 times, 3 times, etc. For example, when the side of the hand is tapped twice continuously, the virtual ruler can be fixedly displayed on the touch screen.

在一种可能的实现中,所述方法还包括:检测到用户针对于所述虚拟标尺的选择指令;响应于所述选择指令,显示触发控件,所述触发控件用于指示对所述虚拟标尺进行如下的至少一种操作:删除操作、位置调整操作以及旋转操作。In a possible implementation, the method further includes: detecting a user's selection instruction for the virtual scale; in response to the selection instruction, displaying a trigger control, where the trigger control is used to indicate the selection of the virtual scale At least one of the following operations is performed: a deletion operation, a position adjustment operation, and a rotation operation.

如,用户可以通过点击固定显示的虚拟标尺来触发虚拟标尺的选择,在选中的同时,触摸屏会弹出触发控件,例如触发控件可以是用于指示针对于虚拟标尺的删除操作的提示,用户可以通过点击“删除”提示或者将虚拟标尺拖动到垃圾桶标识)来删除虚拟标尺。For example, the user can trigger the selection of the virtual ruler by clicking on the fixedly displayed virtual ruler. When the virtual ruler is selected, the touch screen will pop up a trigger control. For example, the trigger control can be a prompt for indicating the deletion operation of the virtual ruler. Click the "Delete" prompt or drag the virtual ruler to the trash icon) to delete the virtual ruler.

例如,用户可以通过点击固定显示的虚拟标尺来触发虚拟标尺的选择,在选中的同时,触摸屏会弹出触发控件,例如触发控件可以是用于指示针对于虚拟标尺的位置调整操作的提示,用户可以通过点击“姿态调整”控件,进而进入针对于虚拟标尺的姿态调整的模式,例如,在该模式下,用户可以通过手侧面和触摸屏的接触来进行虚拟标尺的显示姿态调整,调整方式可以参照上述实施例中关于虚拟标尺的显示位置调控的相关描述,这里不再赘述,又例如,若需要旋转虚拟标尺,可以通过双指分别在(虚拟标尺上或者在虚拟标尺的预设距离内)两个不同的位置点击,两个触摸点同时顺时针或逆时针旋转,以转动虚拟标尺。可选的,在操作虚拟标尺转动时,可以实时显示转动前后虚拟标尺之间的夹角。For example, the user can trigger the selection of the virtual ruler by clicking on the fixedly displayed virtual ruler. When the virtual ruler is selected, the touch screen will pop up a trigger control. For example, the trigger control can be a prompt for indicating the position adjustment operation for the virtual ruler. The user can By clicking the "posture adjustment" control, you can enter the posture adjustment mode for the virtual ruler. For example, in this mode, the user can adjust the display posture of the virtual ruler by touching the side of the hand and the touch screen. The adjustment method can refer to the above The relevant descriptions about the control of the display position of the virtual ruler in the embodiment will not be repeated here. For another example, if you need to rotate the virtual ruler, you can use two fingers (on the virtual ruler or within the preset distance of the virtual ruler) to place two Click at different positions, and the two touch points rotate clockwise or counterclockwise at the same time to turn the virtual ruler. Optionally, when operating the virtual scale to rotate, the included angle between the virtual scale before and after the rotation can be displayed in real time.

本申请实施例中,通过旋转或移动手侧面来给虚拟标尺赋予相应的旋转或移动操作,敲击固定显示虚拟标尺等手势,符合用户的操作习惯,能大幅提升操作效率。In the embodiment of the present application, by rotating or moving the side of the hand to give corresponding rotation or movement operations to the virtual ruler, tapping and fixed display of the virtual ruler and other gestures are in line with the user's operating habits and can greatly improve the operating efficiency.

在一种可能的实现中,所述虚拟标尺用于进行在所述触摸屏上显示的绘画直线段的长度测量;或者,所述虚拟标尺用于进行在所述触摸屏上显示的绘画点之间的距离测量。In a possible implementation, the virtual ruler is used to measure the length of the drawing line segment displayed on the touch screen; or, the virtual ruler is used to measure the length of the drawing points displayed on the touch screen distance measurement.

在一种可能的实现中,所述方法还包括:检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段,显示所述绘画直线段的长度值;所述存在姿态关联包括:与所述虚拟标尺的方向差异小于预设值;和/或,与所述虚拟标尺之间的距离值小于预设值。In a possible implementation, the method further includes: detecting that there is a drawing line segment associated with the virtual ruler in a gesture on the touch screen, and displaying the length value of the drawing line segment; the existing gesture association includes : the direction difference from the virtual ruler is smaller than a preset value; and/or, the distance value from the virtual ruler is smaller than a preset value.

其中,所谓存在姿态关联可以理解为虚拟标尺与绘画直线段的贴合程度很高,例如姿态关联可以通过方向差异和距离值来表示,当绘画直线段与虚拟标尺的方向差异小于预设值(例如小于20度、25度、30度、35度、40度、45度等);和/或,绘画直线段与所述虚 拟标尺之间的距离值小于预设值(例如1cm、2cm、3cm等)时,可以认为所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段。Among them, the so-called posture association can be understood as a high degree of fit between the virtual ruler and the drawing straight line segment. For example, the posture association can be expressed by the direction difference and the distance value. When the direction difference between the drawing straight line segment and the virtual ruler is less than the preset value ( Such as less than 20 degrees, 25 degrees, 30 degrees, 35 degrees, 40 degrees, 45 degrees, etc.); and/or, the distance between the drawn straight line segment and the virtual ruler is less than a preset value (such as 1cm, 2cm, 3cm etc.), it can be considered that there is a drawing line segment associated with the gesture of the virtual ruler on the touch screen.

其中,距离可以理解为虚拟标尺上与绘画直线段最近的点之间的距离,或者是虚拟标尺上的点与绘画直线段之间的距离的平均值,或者可以用其他可以表征虚拟标尺与绘画直线段之间的距离的方法。Among them, the distance can be understood as the distance between the nearest point on the virtual ruler and the drawing straight line segment, or the average value of the distance between the point on the virtual ruler and the drawing straight line segment, or can be used to characterize the virtual ruler and drawing The method for the distance between straight line segments.

应理解,当检测模块检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的多个绘画直线段时,可以获取姿态关联的关联度最大的绘画直线段的长度值,并进行显示。It should be understood that when the detection module detects that there are multiple drawing straight line segments associated with the virtual ruler in gestures on the touch screen, the length value of the drawing straight line segment with the highest degree of gesture-association may be acquired and displayed.

在一种可能的实现中,所述方法还包括:根据所述待测量线段的位置,调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置与所述绘画直线贴合。也就是实现了类似于磁吸的显示效果。其中,调整虚拟标尺的显示位置可以包括对虚拟标尺的位置调整以及显示方向调整。In a possible implementation, the method further includes: adjusting the display position of the virtual ruler according to the position of the line segment to be measured, so that the display position of the virtual ruler fits with the drawn straight line. That is to say, a display effect similar to magnetic attraction is realized. Wherein, adjusting the display position of the virtual ruler may include adjusting the position and display direction of the virtual ruler.

在一种可能的实现中,所述在所述触摸屏上显示虚拟标尺之后,所述方法还包括:检测到所述触摸屏上的绘画线段与所述虚拟标尺存在第一交点和第二交点,显示所述第一交点和所述第二交点之间的距离值。In a possible implementation, after the virtual ruler is displayed on the touch screen, the method further includes: detecting that there is a first intersection point and a second intersection point between the drawn line segment on the touch screen and the virtual ruler, and displaying A distance value between the first intersection point and the second intersection point.

在一种可能的实现中,所述虚拟标尺用于作为在所述触摸屏上画直线时的参考工具。In a possible implementation, the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.

在一种可能的实现中,所述方法还包括:检测到在所述触摸屏上的画线手势;基于所述触摸屏上显示有所述虚拟标尺,且所述画线手势的画线位置与所述虚拟标尺之间的距离在预设距离内(例如1cm、2cm、3cm、4cm、5cm等等),根据所述画线手势的画线位置,显示绘画直线段,其中,所述绘画直线段与所述虚拟标尺平行。In a possible implementation, the method further includes: detecting a line-drawing gesture on the touch screen; based on the fact that the virtual ruler is displayed on the touch screen, and the position of the line-drawing gesture of the The distance between the virtual rulers is within a preset distance (for example, 1cm, 2cm, 3cm, 4cm, 5cm, etc.), according to the position of the line drawn by the gesture of drawing a line, a straight line segment for drawing is displayed, wherein the straight line segment for drawing parallel to the virtual ruler.

一方面,当在虚拟标尺一定范围内写画时(没有抬手动作),可以约束写画的范围不能越过虚拟标尺,即只能在虚拟标尺一侧写画,当写画范围越过虚拟标尺时,显示和虚拟标尺(可以进行写画的一侧)贴合的直线,进而相当于虚拟标尺起到了和物理空间中直尺类似的功能。On the one hand, when writing within a certain range of the virtual ruler (without raising your hand), you can restrict the range of writing and drawing not to cross the virtual ruler, that is, you can only write on one side of the virtual ruler. When the drawing range exceeds the virtual ruler , displaying the straight line that fits with the virtual ruler (the side that can be used for writing and drawing), which is equivalent to that the virtual ruler has a function similar to that of a ruler in physical space.

另一方面,可以响应在虚拟标尺预定义范围内的写画行为,将写画的绘画轨迹校正为直线,通过上述方式当用户沿着虚拟标尺划线,会自动画出直线。On the other hand, in response to the drawing and drawing behavior within the predefined range of the virtual ruler, the drawing trajectory of the drawing and painting can be corrected to a straight line. When the user draws a line along the virtual ruler in the above way, a straight line will be drawn automatically.

在一种可能的实现中,所述画线位置包括起始点位置以及终止点位置,所述绘画直线段为所述起始点位置与所述终止点位置之间的线段。In a possible implementation, the line drawing position includes a starting point position and an ending point position, and the drawing straight line segment is a line segment between the starting point position and the ending point position.

在一种可能的实现中,所述画线位置包括起始点位置以及实时画线位置,所述方法还包括:基于所述实时画线位置,显示画线长度,所述画线长度为所述起始点位置与所述实时画线位置之间的距离值。In a possible implementation, the line drawing position includes a starting point position and a real-time line drawing position, and the method further includes: displaying a line drawing length based on the real-time line drawing position, where the line drawing length is the The distance value between the starting point position and the real-time drawing line position.

且为了得到预期长度的线条,在沿着尺子划线写画时,可以计算并显示首末两个画点之间的绘画直线,并显示绘画直线的长度。在一种可能的实现中,所述画线位置包括起始 点位置以及终止点位置,所述绘画直线段为所述起始点位置与所述终止点位置之间的线段,且检测模块可以基于所述实时画线位置,显示画线长度,所述画线长度为所述起始点位置与所述实时画线位置之间的距离值。And in order to get a line of expected length, when drawing along the ruler, the drawing line between the first and last two drawing points can be calculated and displayed, and the length of the drawing line can be displayed. In a possible implementation, the line drawing position includes a starting point position and an ending point position, the drawing straight line segment is a line segment between the starting point position and the ending point position, and the detection module may be based on the The real-time line drawing position displays the line drawing length, and the line drawing length is the distance value between the starting point position and the real-time line drawing position.

也就是说,如果画的线段长度超过预期值,可以往回画,会起到删除效果,只要末端画点与起始画点的距离为预期值,生成的线段就是预期值,且画出的曲线(曲线与虚拟标尺的距离在预设范围内)会被自动校正为直线。That is to say, if the length of the line segment drawn exceeds the expected value, you can draw it back, which will have a deletion effect. As long as the distance between the end point and the start point is the expected value, the generated line segment is the expected value, and the drawn Curves (the distance between the curve and the virtual ruler is within the preset range) will be automatically corrected to a straight line.

本申请实施例中,将直尺两个功能:测量和画直线,转换为适合虚拟界面的智能操作,测量是自动显示测量值,画直线时显示长度值,去除了物理世界的局限,节省了用户读数的时间,大幅提升用户效率。In the embodiment of this application, the two functions of the ruler: measuring and drawing a straight line are converted into intelligent operations suitable for the virtual interface. The measurement is to automatically display the measured value, and the length value is displayed when drawing a straight line, which removes the limitations of the physical world and saves It takes less time for users to take readings, greatly improving user efficiency.

第二方面,本申请提供了一种对象复制方法,所述方法包括:检测到针对于触摸屏上显示的目标对象的拖动手势;响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;检测到抬手手势;响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。In a second aspect, the present application provides an object copy method, the method comprising: detecting a drag gesture for a target object displayed on a touch screen; in response to the drag gesture, displaying the target object on the touch screen The mirror image of the target object, and according to the drag gesture, update the display position of the mirror image in real time, so that the mirror image moves with the drag gesture; detect the hand-raising gesture; respond to the hand-raising gesture, move the The mirror image is fixedly displayed at the display position where the mirror image is located.

拖动手势进行复制粘贴的方式,简单直观,降低了现有复制粘贴所需要步骤数量,缩短了复制粘贴的过程。The method of copying and pasting by dragging gestures is simple and intuitive, which reduces the number of steps required for existing copy and paste, and shortens the process of copying and pasting.

在一种可能的实现中,所述检测到针对于触摸屏上显示的目标对象的拖动手势之前,所述方法还包括:In a possible implementation, before the detection of the drag gesture for the target object displayed on the touch screen, the method further includes:

在检测到如下的至少一种手势时,使能针对于所述目标对象的复制功能:When at least one of the following gestures is detected, the copy function for the target object is enabled:

检测到针对于所述目标对象的长按手势;或者,detecting a long press gesture directed at the target object; or,

检测到针对于所述目标对象的单击手势。A click gesture is detected for the target object.

在一种可能的实现中,所述检测到针对于所述目标对象的长按手势,包括:In a possible implementation, the detecting the long press gesture for the target object includes:

检测到与所述触摸屏的接触区域覆盖所述目标对象或者在所述目标对象周围预设距离内的长按手势。A long press gesture is detected in which the contact area with the touch screen covers the target object or is within a preset distance around the target object.

在一种可能的实现中,所述拖动手势为保持所述长按手势与所述触摸屏的接触且在所述触摸屏上发生移动的手势。In a possible implementation, the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen.

在一种可能的实现中,所述长按手势为双指长按手势。In a possible implementation, the long press gesture is a two-finger long press gesture.

在一种可能的实现中,所述检测到针对于所述目标对象的单击手势,包括:In a possible implementation, the detecting the click gesture for the target object includes:

检测到与所述触摸屏的接触区域覆盖所述目标对象的单击手势。A click gesture in which a contact area with the touch screen covers the target object is detected.

第三方面,本申请实施例提供了一种虚拟标尺显示装置,应用于电子设备,所述电子 设备包括触摸屏,所述装置包括:In the third aspect, the embodiment of the present application provides a virtual ruler display device, which is applied to electronic equipment, and the electronic equipment includes a touch screen, and the device includes:

检测模块,用于检测与所述触摸屏的接触手势;A detection module, configured to detect a contact gesture with the touch screen;

显示模块,用于基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。A display module, configured to indicate the contact of the side of the user's hand with the touch screen based on the contact gesture, and display a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is In the strip-shaped area, the virtual ruler is attached to the long side of the strip-shaped area.

在一种可能的实现中,所述手侧面为用户的手部在展开状态下位于小拇指一侧的手侧面。In a possible implementation, the side of the hand is the side of the user's hand that is located on the side of the little finger in an unfolded state.

在一种可能的实现中,所述接触区域包括:In a possible implementation, the contact area includes:

用户的手侧面的小鱼际部位与所述触摸屏的接触区域;或者,the contact area of the hypothenar portion of the side of the user's hand with the touch screen; or,

用户的手侧面的小拇指部位与所述触摸屏的接触区域。The contact area between the little finger on the side of the user's hand and the touch screen.

在一种可能的实现中,所述装置还包括:In a possible implementation, the device also includes:

确定模块,用于基于所述接触手势的接触区域满足预设条件,确定所述接触手势指示所述用户的手侧面与触摸屏的接触;所述预设条件包括:A determining module, configured to determine that the contact gesture indicates contact between the side of the user's hand and the touch screen based on that the contact area of the contact gesture satisfies a preset condition; the preset condition includes:

所述接触区域为长条状区域,所述长条状区域的形状和面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的特点。The contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen.

在一种可能的实现中,所述装置还包括:In a possible implementation, the device also includes:

获取模块,用于获取所述接触手势的手势数据;An acquisition module, configured to acquire gesture data of the contact gesture;

所述确定模块,还用于根据所述手势数据,通过神经网络,确定所述接触手势指示所述用户的手侧面与触摸屏的接触。The determining module is further configured to determine, according to the gesture data, through a neural network, that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.

在一种可能的实现中,所述虚拟标尺与所述长条状区域的长边贴合,包括:In a possible implementation, the virtual ruler is attached to the long side of the strip-shaped region, including:

所述虚拟标尺的方向与所述长条状区域的长边指示的方向之间的锐夹角小于预设值;且所述虚拟标尺与所述长条状区域满足如下条件的一个:The acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value; and the virtual scale and the strip-shaped area meet one of the following conditions:

所述虚拟标尺与所述长条状区域存在重叠;或者,所述虚拟标尺与所述长条状区域相切;或者,所述虚拟标尺与所述长条状区域之间的距离小于预设值。There is overlap between the virtual scale and the strip-shaped area; or, the virtual scale is tangent to the strip-shaped area; or, the distance between the virtual scale and the strip-shaped area is less than a preset value.

在一种可能的实现中,所述检测模块,用于在所述根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺之前,检测到所述接触手势的维持时间大于预设时间。In a possible implementation, the detection module is configured to detect that the duration of the contact gesture is greater than a preset time before displaying a virtual ruler on the touch screen in the contact area according to the contact gesture .

在一种可能的实现中,所述检测模块,用于检测到所述接触手势的接触区域的移动;In a possible implementation, the detection module is configured to detect movement of a contact area of the contact gesture;

所述显示模块,用于调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置跟随所述接触区域。The display module is configured to adjust the display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.

在一种可能的实现中,所述检测模块,用于检测到用户的抬手手势;In a possible implementation, the detection module is configured to detect a user's hand-raising gesture;

所述显示模块,用于响应于所述抬手手势,在所述触摸屏上隐藏所述虚拟标尺的显示。The display module is configured to hide the display of the virtual ruler on the touch screen in response to the hand-raising gesture.

在一种可能的实现中,所述基于所述接触手势指示所述用户的手侧面与触摸屏的接触,包括:In a possible implementation, the instructing the contact of the side of the user's hand with the touch screen based on the contact gesture includes:

基于所述接触手势指示所述用户的手侧面与触摸屏进行了预设次数的敲击;Instructing the side of the user's hand to tap the touch screen for a preset number of times based on the contact gesture;

所述在所述触摸屏上显示虚拟标尺之后,所述方法还包括:After the virtual ruler is displayed on the touch screen, the method further includes:

检测到用户的抬手手势;The user's hand gesture is detected;

响应于所述抬手手势,在所述触摸屏上维持所述虚拟标尺的显示。In response to the raising hand gesture, maintaining display of the virtual ruler on the touch screen.

在一种可能的实现中,所述检测模块,用于检测到用户针对于所述虚拟标尺的选择指令;In a possible implementation, the detection module is configured to detect a user's selection instruction for the virtual scale;

所述显示模块,用于响应于所述选择指令,显示触发控件,所述触发控件用于指示对所述虚拟标尺进行如下的至少一种操作:The display module is configured to display a trigger control in response to the selection instruction, and the trigger control is used to indicate at least one of the following operations on the virtual scale:

删除操作、位置调整操作以及旋转操作。Delete operations, reposition operations, and rotation operations.

在一种可能的实现中,所述虚拟标尺用于进行在所述触摸屏上显示的绘画直线段的长度测量;或者,In a possible implementation, the virtual ruler is used to measure the length of a drawn straight line segment displayed on the touch screen; or,

所述虚拟标尺用于进行在所述触摸屏上显示的绘画点之间的距离测量。The virtual ruler is used for distance measurement between drawing points displayed on the touch screen.

在一种可能的实现中,所述检测模块,用于检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段;In a possible implementation, the detection module is configured to detect that there is a drawing line segment associated with the gesture of the virtual ruler on the touch screen;

所述显示模块,用于显示所述绘画直线段的长度值;所述存在姿态关联包括:The display module is used to display the length value of the straight line segment of the drawing; the existence gesture association includes:

与所述虚拟标尺的方向差异小于预设值;和/或,The direction difference from the virtual scale is smaller than a preset value; and/or,

与所述虚拟标尺之间的距离值小于预设值。The distance from the virtual ruler is smaller than a preset value.

在一种可能的实现中,所述显示模块,用于根据所述待测量线段的位置,调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置与所述绘画直线贴合。In a possible implementation, the display module is configured to adjust the display position of the virtual ruler according to the position of the line segment to be measured, so that the display position of the virtual ruler fits with the drawn straight line.

在一种可能的实现中,所述检测模块,用于在所述触摸屏上显示虚拟标尺之后,检测到所述触摸屏上的绘画线段与所述虚拟标尺存在第一交点和第二交点;In a possible implementation, the detection module is configured to detect that there is a first intersection point and a second intersection point between the drawn line segment on the touch screen and the virtual scale after the virtual scale is displayed on the touch screen;

所述显示模块,用于显示所述第一交点和所述第二交点之间的距离值。The display module is configured to display a distance value between the first intersection point and the second intersection point.

在一种可能的实现中,所述虚拟标尺用于作为在所述触摸屏上画直线时的参考工具。In a possible implementation, the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.

在一种可能的实现中,所述检测模块,用于检测到在所述触摸屏上的画线手势;In a possible implementation, the detection module is configured to detect a line-drawing gesture on the touch screen;

所述显示模块,用于基于所述触摸屏上显示有所述虚拟标尺,且所述画线手势的画线 位置与所述虚拟标尺之间的距离在预设距离内,根据所述画线手势的画线位置,显示绘画直线段,其中,所述绘画直线段与所述虚拟标尺平行。The display module is configured to display the virtual ruler on the touch screen, and the distance between the line-drawing position of the line-drawing gesture and the virtual ruler is within a preset distance, according to the line-drawing gesture The position of the drawn line, displaying the drawn straight line segment, wherein the drawn straight line segment is parallel to the virtual ruler.

在一种可能的实现中,所述画线位置包括起始点位置以及终止点位置,所述绘画直线段为所述起始点位置与所述终止点位置之间的线段。In a possible implementation, the line drawing position includes a starting point position and an ending point position, and the drawing straight line segment is a line segment between the starting point position and the ending point position.

在一种可能的实现中,所述画线位置包括起始点位置以及实时画线位置,所述方法还包括:In a possible implementation, the line drawing position includes a starting point position and a real-time line drawing position, and the method further includes:

基于所述实时画线位置,显示画线长度,所述画线长度为所述起始点位置与所述实时画线位置之间的距离值。Based on the real-time line-drawing position, display the line-drawing length, where the line-drawing length is a distance value between the starting point position and the real-time line-drawing position.

第四方面,本申请提供了一种对象复制装置,所述装置包括:In a fourth aspect, the present application provides an object replication device, the device comprising:

检测模块,用于检测到针对于触摸屏上显示的目标对象的拖动手势;所述检测模块,还用于在显示模块显示所述目标对象的镜像之后检测到抬手手势;A detection module, configured to detect a drag gesture for a target object displayed on the touch screen; the detection module is also configured to detect a hand-raising gesture after the display module displays a mirror image of the target object;

显示模块,用于响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;所述显示模块,还用于响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。A display module, configured to display a mirror image of the target object on the touch screen in response to the drag gesture, and update the display position of the mirror image in real time according to the drag gesture, so that the mirror image follows the The drag gesture moves; the display module is further configured to, in response to the hand-raising gesture, fix and display the mirror image at the display position where the mirror image is located.

在一种可能的实现中,所述装置还包括:In a possible implementation, the device also includes:

使能模块,用于在所述检测到针对于触摸屏上显示的目标对象的拖动手势之前,在检测到如下的至少一种手势时,使能针对于所述目标对象的复制功能:An enabling module, configured to enable the copy function for the target object when at least one of the following gestures is detected before the detection of the drag gesture for the target object displayed on the touch screen:

检测到针对于所述目标对象的长按手势;或者,detecting a long press gesture directed at the target object; or,

检测到针对于所述目标对象的单击手势。A click gesture is detected for the target object.

在一种可能的实现中,所述检测到针对于所述目标对象的长按手势,包括:In a possible implementation, the detecting the long press gesture for the target object includes:

检测到与所述触摸屏的接触区域覆盖所述目标对象或者在所述目标对象周围预设距离内的长按手势。A long press gesture is detected in which the contact area with the touch screen covers the target object or is within a preset distance around the target object.

在一种可能的实现中,所述拖动手势为保持所述长按手势与所述触摸屏的接触且在所述触摸屏上发生移动的手势。In a possible implementation, the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen.

在一种可能的实现中,所述长按手势为双指长按手势。In a possible implementation, the long press gesture is a two-finger long press gesture.

在一种可能的实现中,所述检测到针对于所述目标对象的单击手势,包括:In a possible implementation, the detecting the click gesture for the target object includes:

检测到与所述触摸屏的接触区域覆盖所述目标对象的单击手势。A click gesture in which a contact area with the touch screen covers the target object is detected.

第五方面,本申请提供了一种电子设备,包括:处理器、存储器、触摸屏和总线,其中:所述处理器、所述存储器和所述触摸屏通过所述总线连接;In a fifth aspect, the present application provides an electronic device, including: a processor, a memory, a touch screen, and a bus, wherein: the processor, the memory, and the touch screen are connected through the bus;

所述存储器,用于存放计算机程序或指令;The memory is used to store computer programs or instructions;

所述处理器,用于调用或执行所述存储器上所存放的程序或指令,还用于控制触摸屏,以实现上述第一方面及第一方面中任一项可能实现方式所述的步骤、以及第二方面及第二方面中任一项可能实现方式所述的步骤。The processor is used to call or execute the programs or instructions stored in the memory, and is also used to control the touch screen, so as to implement the steps described in the first aspect and any possible implementation manner of the first aspect, and Any one of the second aspect and the steps described in the possible implementation manners of the second aspect.

第六方面,本申请提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备或服务器上运行时,执行上述第一方面及第一方面中任一项可能实现方式所述的步骤、以及第二方面及第二方面中任一项可能实现方式所述的步骤。In a sixth aspect, the present application provides a computer storage medium, including computer instructions. When the computer instructions are run on an electronic device or a server, the steps described in any one of the above-mentioned first aspect and possible implementation modes of the first aspect are executed. , and the second aspect and the steps described in any one possible implementation manner of the second aspect.

第七方面,本申请提供了一种计算机程序产品,当计算机程序产品在电子设备或服务器上运行时,执行上述第一方面及第一方面中任一项可能实现方式所述的步骤、以及第二方面及第二方面中任一项可能实现方式所述的步骤。In a seventh aspect, the present application provides a computer program product. When the computer program product is run on an electronic device or a server, it executes the steps described in any one of the above-mentioned first aspect and possible implementation modes of the first aspect, and the first aspect. The steps described in the possible implementation manners of any one of the second aspect and the second aspect.

第八方面,本申请提供了一种芯片系统,该芯片系统包括处理器,用于支持执行设备或训练设备实现上述方面中所涉及的功能,例如,发送或处理上述方法中所涉及的数据;或,信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存执行设备或训练设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。In an eighth aspect, the present application provides a chip system, which includes a processor, configured to support an execution device or a training device to implement the functions involved in the above aspect, for example, send or process the data involved in the above method; or, information. In a possible design, the chip system further includes a memory, and the memory is used for storing necessary program instructions and data of the execution device or the training device. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.

本申请实施例提供了一种虚拟标尺显示方法,包括:检测与所述触摸屏的接触手势;基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。当检测到接触手势指示用户的手侧面与所述触摸屏的接触时,触发虚拟标尺的显示,一方面只需要用户的单手进行操作,操作难度和成本很小,另一方面,当用户的手部展开时,手侧面与触摸屏的接触区域为扁平的长条状区域,接近于一条直线,基于这种操作模式触发虚拟标尺的显示更符合用户的操作习惯。An embodiment of the present application provides a method for displaying a virtual scale, including: detecting a contact gesture with the touch screen; indicating the contact of the user's hand side with the touch screen based on the contact gesture, and according to the contact area of the contact gesture, A virtual scale is displayed on the touch screen, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale is attached to a long side of the strip-shaped area. When a contact gesture is detected indicating that the side of the user's hand is in contact with the touch screen, the display of the virtual scale is triggered. On the one hand, only the user's single hand is required to operate, and the operation difficulty and cost are very small. On the other hand, when the user's hand When the upper part is unfolded, the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode, triggering the display of the virtual scale is more in line with the user's operation habits.

附图说明Description of drawings

图1为本申请实施例提供的产品结构示意图;Fig. 1 is the product structure schematic diagram that the embodiment of the present application provides;

图2为本申请实施例的电子设备的结构框图;FIG. 2 is a structural block diagram of an electronic device according to an embodiment of the present application;

图3为本申请实施例提供的一种虚拟标尺显示方法的实施例示意图;FIG. 3 is a schematic diagram of an embodiment of a method for displaying a virtual ruler provided in an embodiment of the present application;

图4为本申请实施例中的一种手势示意;FIG. 4 is a schematic diagram of a gesture in the embodiment of the present application;

图5为本申请实施例中的一种手势示意;Fig. 5 is a schematic diagram of a gesture in the embodiment of the present application;

图6为本申请实施例中的一种手势示意;Fig. 6 is a schematic diagram of a gesture in the embodiment of the present application;

图7为本申请实施例中的一种手势示意;FIG. 7 is a schematic diagram of a gesture in the embodiment of the present application;

图8为本申请实施例中的一种手势示意;Fig. 8 is a schematic diagram of a gesture in the embodiment of the present application;

图9为本申请实施例中的一种手势接触的示意;FIG. 9 is a schematic diagram of a gesture contact in the embodiment of the present application;

图10为本申请实施例中的一种手势接触的示意;FIG. 10 is a schematic diagram of a gesture contact in the embodiment of the present application;

图11为本申请实施例中的一种终端界面的示意;FIG. 11 is a schematic diagram of a terminal interface in an embodiment of the present application;

图12为本申请实施例中的一种终端界面的示意;FIG. 12 is a schematic diagram of a terminal interface in an embodiment of the present application;

图13为本申请实施例中的一种终端界面的示意;FIG. 13 is a schematic diagram of a terminal interface in an embodiment of the present application;

图14为本申请实施例中的一种终端界面的示意;FIG. 14 is a schematic diagram of a terminal interface in an embodiment of the present application;

图15为本申请实施例中的一种终端界面的示意;FIG. 15 is a schematic diagram of a terminal interface in an embodiment of the present application;

图16为本申请实施例中的一种终端界面的示意;FIG. 16 is a schematic diagram of a terminal interface in an embodiment of the present application;

图17为本申请实施例中的一种终端界面的示意;FIG. 17 is a schematic diagram of a terminal interface in an embodiment of the present application;

图18为本申请实施例中的一种终端界面的示意;FIG. 18 is a schematic diagram of a terminal interface in an embodiment of the present application;

图19为本申请实施例中的一种终端界面的示意;FIG. 19 is a schematic diagram of a terminal interface in an embodiment of the present application;

图20为本申请实施例中的一种终端界面的示意;FIG. 20 is a schematic diagram of a terminal interface in an embodiment of the present application;

图21为本申请实施例中的一种终端界面的示意;FIG. 21 is a schematic diagram of a terminal interface in an embodiment of the present application;

图22a为本申请实施例中的一种终端界面的示意;Fig. 22a is a schematic diagram of a terminal interface in the embodiment of the present application;

图22b为本申请实施例中的一种终端界面的示意;Fig. 22b is a schematic diagram of a terminal interface in the embodiment of the present application;

图22c为本申请实施例中的一种终端界面的示意;Fig. 22c is a schematic diagram of a terminal interface in the embodiment of the present application;

图22d为本申请实施例中的一种终端界面的示意;Fig. 22d is a schematic diagram of a terminal interface in the embodiment of the present application;

图23为本申请实施例中的一种索引表建立的示意;Fig. 23 is a schematic diagram of establishing an index table in the embodiment of the present application;

图24为本申请实施例中的一种终端界面的示意;FIG. 24 is a schematic diagram of a terminal interface in an embodiment of the present application;

图25为本申请实施例中的一种终端界面的示意;FIG. 25 is a schematic diagram of a terminal interface in an embodiment of the present application;

图26为本申请实施例中的一种终端界面的示意;FIG. 26 is a schematic diagram of a terminal interface in an embodiment of the present application;

图27为本申请实施例中的一种终端界面的示意;FIG. 27 is a schematic diagram of a terminal interface in an embodiment of the present application;

图28为本申请实施例中的一种终端界面的示意;FIG. 28 is a schematic diagram of a terminal interface in an embodiment of the present application;

图29为本申请实施例中的一种终端界面的示意;FIG. 29 is a schematic diagram of a terminal interface in an embodiment of the present application;

图30为本申请实施例中的一种终端界面的示意;FIG. 30 is a schematic diagram of a terminal interface in an embodiment of the present application;

图31为本申请实施例中的一种终端界面的示意;FIG. 31 is a schematic diagram of a terminal interface in an embodiment of the present application;

图32为本申请实施例中的一种终端界面的示意;FIG. 32 is a schematic diagram of a terminal interface in an embodiment of the present application;

图33为本申请实施例中的一种终端界面的示意;FIG. 33 is a schematic diagram of a terminal interface in an embodiment of the present application;

图34为本申请实施例中的一种终端界面的示意;FIG. 34 is a schematic diagram of a terminal interface in an embodiment of the present application;

图35为本申请实施例中的一种终端界面的示意;FIG. 35 is a schematic diagram of a terminal interface in the embodiment of the present application;

图36为本申请实施例中的一种终端界面的示意;FIG. 36 is a schematic diagram of a terminal interface in the embodiment of the present application;

图37a为本申请实施例提供的一种对象复制方法的实施例示意图;Fig. 37a is a schematic diagram of an embodiment of an object copy method provided by the embodiment of the present application;

图37b为本申请实施例中的一种终端界面的示意;Fig. 37b is a schematic diagram of a terminal interface in the embodiment of the present application;

图38为本申请实施例中的一种终端界面的示意;FIG. 38 is a schematic diagram of a terminal interface in an embodiment of the present application;

图39为本申请实施例中的一种终端界面的示意;FIG. 39 is a schematic diagram of a terminal interface in an embodiment of the present application;

图40为本申请实施例中的一种终端界面的示意;FIG. 40 is a schematic diagram of a terminal interface in an embodiment of the present application;

图41为本申请实施例中的一种终端界面的示意;FIG. 41 is a schematic diagram of a terminal interface in an embodiment of the present application;

图42为本申请实施例中的一种终端界面的示意;Fig. 42 is a schematic diagram of a terminal interface in the embodiment of the present application;

图43为本申请实施例中的一种终端界面的示意;Fig. 43 is a schematic diagram of a terminal interface in the embodiment of the present application;

图44为本申请实施例中的一种终端界面的示意;FIG. 44 is a schematic diagram of a terminal interface in an embodiment of the present application;

图45为本申请实施例中的一种终端界面的示意;Fig. 45 is a schematic diagram of a terminal interface in the embodiment of the present application;

图46为本申请实施例中的一种终端界面的示意;Fig. 46 is a schematic diagram of a terminal interface in the embodiment of the present application;

图47为本申请实施例中的一种终端界面的示意;Fig. 47 is a schematic diagram of a terminal interface in the embodiment of the present application;

图48为本申请实施例中的一种终端界面的示意;FIG. 48 is a schematic diagram of a terminal interface in an embodiment of the present application;

图49为本申请实施例提供的一种虚拟标尺显示装置的结构示意;Fig. 49 is a schematic structural diagram of a virtual ruler display device provided by an embodiment of the present application;

图50为本申请实施例提供的一种对象复制装置的结构示意;FIG. 50 is a schematic structural diagram of an object copying device provided by an embodiment of the present application;

图51为本申请实施例提供的终端设备的一种结构示意图。FIG. 51 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.

具体实施方式Detailed ways

下面结合本发明实施例中的附图对本发明实施例进行描述。本发明的实施方式部分使用的术语仅用于对本发明的具体实施例进行解释,而非旨在限定本发明。Embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention. The terms used in the embodiments of the present invention are only used to explain specific examples of the present invention, and are not intended to limit the present invention.

下面结合附图,对本申请的实施例进行描述。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。Embodiments of the present application are described below in conjunction with the accompanying drawings. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, and this is merely a description of the manner in which objects with the same attribute are described in the embodiments of the present application. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, product, or apparatus comprising a series of elements is not necessarily limited to those elements, but may include elements not expressly included. Other elements listed explicitly or inherent to the process, method, product, or apparatus.

首先介绍本申请的示例性操作环境First introduce the exemplary operating environment of this application

本申请实施例可以应用在包括触摸屏103的系统100中。The embodiment of the present application may be applied in the system 100 including the touch screen 103 .

参照图1,图1示出了本申请实施例所应用的系统100,其中,系统100可以包括电子设备101和与电子设备101相关联的笔102。Referring to FIG. 1 , FIG. 1 shows a system 100 to which the embodiment of the present application is applied, wherein the system 100 may include an electronic device 101 and a pen 102 associated with the electronic device 101 .

电子设备101可以为图1示出的电子白板(或者称之为电子交互式智能板),电子设备101包括触摸屏103。应理解,电子设备101也可以为包括触控屏的便携式移动设备,例如但不限于移动或便携式计算设备(如智能手机)、个人计算机、服务器计算机、手持式设备(例如平板)或膝上型设备、多处理器系统、游戏控制台或控制器、基于微处理器的系统、机顶盒、可编程消费电子产品、移动电话、具有可穿戴或配件形状因子(例如,手表、眼镜、头戴式耳机或耳塞)的移动计算和/或通信设备、网络PC、小型计算机、大型计算机、包括上面的系统或设备中的任何一种的分布式计算环境等等。The electronic device 101 may be an electronic whiteboard (or called an electronic interactive smart board) shown in FIG. 1 , and the electronic device 101 includes a touch screen 103 . It should be understood that the electronic device 101 may also be a portable mobile device including a touch screen, such as but not limited to a mobile or portable computing device (such as a smart phone), a personal computer, a server computer, a handheld device (such as a tablet), or a laptop. devices, multiprocessor systems, game consoles or controllers, microprocessor-based systems, set-top boxes, programmable consumer electronics, mobile phones, wearable or accessory form factors (e.g., watches, glasses, headsets) or earbuds), network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like.

触摸屏103能够识别用户的接触手势。The touch screen 103 can recognize a user's contact gesture.

在一种实现中,触摸屏103可以为红外线触摸屏(infrared touch screen),红外线触摸屏由装在触摸屏外框上的红外线发射与接收感测元件构成,在屏幕表面上,形成红外线探测网,任何触摸物体可改变触点上的红外线而实现触摸屏操作。红外线式触控屏的实现原理与表面声波式触控相似,它使用的是红外线发射与接收感测元件。这些元件在屏幕表面形成红外线探测网,触控操作的物体(比如本申请实施例中手侧面与触摸屏103的接触)可以改变触点的红外线,进而被转化成触控的坐标位置,进而实现了对触摸手势的识别。In one implementation, the touch screen 103 can be an infrared touch screen (infrared touch screen). The infrared touch screen is composed of infrared emitting and receiving sensing elements mounted on the outer frame of the touch screen. On the surface of the screen, an infrared detection network is formed. Any touching object The touch screen operation can be realized by changing the infrared rays on the contacts. The realization principle of the infrared touch screen is similar to that of the surface acoustic wave touch screen, which uses infrared emitting and receiving sensing elements. These elements form an infrared detection network on the surface of the screen, and the touch-operated object (such as the contact between the side of the hand and the touch screen 103 in the embodiment of the present application) can change the infrared rays of the touch point, and then be converted into the coordinate position of the touch, thereby realizing Recognition of touch gestures.

在一种实现中,触摸屏103可以为电容式触摸屏,电容式触摸屏是利用人体的电流感应进行工作的。示例性的,电容式触摸屏可以是一块四层复合玻璃屏,玻璃屏的内表面和夹层各涂有一层ITO(纳米铟锡金属氧化物),最外层是一薄层矽土玻璃保护层,夹层ITO涂层作为工作面,四个角上引出四个电极,内层ITO为屏蔽层可以保证良好的工作环境。当用户的手部触摸在金属层上时(例如本申请实施例中手侧面与触摸屏103的接触),由于人体电场,用户和触摸屏表面形成以一个耦合电容,对于高频电流来说,电容是直接导体,于是手指从接触点吸走一个很小的电流。这个电流分别从触摸屏的四角上的电极中流出,并且流经这四个电极的电流与手指到四角的距离成正比,控制器通过对这四个电流比例的精确计算,得出触摸点的位置,进而可以实现对触摸手势的识别。In one implementation, the touch screen 103 may be a capacitive touch screen, and the capacitive touch screen works by utilizing the current induction of the human body. Exemplarily, the capacitive touch screen can be a four-layer composite glass screen, the inner surface and the interlayer of the glass screen are each coated with a layer of ITO (nano indium tin oxide), and the outermost layer is a thin layer of silica glass protective layer, The interlayer ITO coating is used as the working surface, four electrodes are drawn from the four corners, and the inner ITO layer is the shielding layer to ensure a good working environment. When the user's hand touches the metal layer (such as the contact between the side of the hand and the touch screen 103 in the embodiment of the present application), due to the electric field of the human body, a coupling capacitance is formed between the user and the surface of the touch screen. For high-frequency currents, the capacitance is direct conductor, so the finger draws a small current from the point of contact. This current flows out of the electrodes on the four corners of the touch screen respectively, and the current flowing through these four electrodes is proportional to the distance from the finger to the four corners. The controller obtains the position of the touch point through accurate calculation of the four current ratios. , and then the recognition of touch gestures can be realized.

应理解,触摸屏103还可以是其他类型的具有接触手势识别能力的触摸屏,或者是替换为只具有显示功能的但是可以和其他外接设备(例如传感器)配合以实现接触手势识别的触摸屏,这里并不限定。It should be understood that the touch screen 103 can also be other types of touch screens capable of recognizing gestures of contact, or be replaced with a touch screen that only has a display function but can cooperate with other external devices (such as sensors) to recognize gestures of contact. limited.

在一个示例中,笔102也可以通过接触触摸屏103或以其他方式与触摸屏103交互以便向电子设备101提供输入。In one example, the pen 102 may also provide input to the electronic device 101 by contacting or otherwise interacting with the touch screen 103 .

触摸屏103可以进行图案、文字的显示,还可以提供一个写画界面,以供用户自由写画,比如电子白板提供的白板界面、应用(application,APP)提供的写画板等。The touch screen 103 can display patterns and characters, and can also provide a drawing interface for users to freely draw and draw, such as a whiteboard interface provided by an electronic whiteboard, a drawing board provided by an application (APP), and the like.

本申请实施例中,用户可以通过手侧面和触摸屏103接触,电子设备101在检测到用户的接触手势后,可以触发虚拟标尺的显示。In the embodiment of the present application, the user can touch the touch screen 103 through the side of the hand, and the electronic device 101 can trigger the display of the virtual scale after detecting the user's contact gesture.

以上介绍了本申请的示例性操作环境,接下来结合一个示例对电子设备101的内部结构进行描述。The exemplary operating environment of the present application is introduced above, and the internal structure of the electronic device 101 is described below with reference to an example.

参见图2,图2是本申请实施例提供的电子设备101的结构示意图。Referring to FIG. 2 , FIG. 2 is a schematic structural diagram of an electronic device 101 provided by an embodiment of the present application.

可以理解的是,图2示意的结构并不构成对电子设备101的具体限定。在本申请另一些实施例中,电子设备101可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in FIG. 2 does not constitute a specific limitation on the electronic device 101 . In other embodiments of the present application, the electronic device 101 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

电子设备101可包括输入/输出控制器218,输入/输出控制器218可以向与电子设备101分开或集成在一起的一个或多个输出设备222(例如,触摸屏或扬声器)输出信息。输入/输出控制器218还可用于接收来自一个或多个输入设备220(例如,键盘、话筒或触摸屏)的输入。在一个实施例中,输出设备222也可充当输入设备220。此类设备的示例可以是触摸屏。在一些实施例中,用户可向输入设备220提供输入和/或从输出设备222接收输出。The electronic device 101 can include an input/output controller 218 that can output information to one or more output devices 222 (eg, a touch screen or a speaker) that are separate or integrated with the electronic device 101 . The input/output controller 218 may also be used to receive input from one or more input devices 220 (eg, a keyboard, a microphone, or a touch screen). In one embodiment, output device 222 may also serve as input device 220 . An example of such a device would be a touch screen. In some embodiments, a user may provide input to input device 220 and/or receive output from output device 222 .

本申请实施例中,输入设备220可以为触摸屏,用户通过手侧面与触摸屏接触来向输入/输出控制器218提供手势输入,输入/输出控制器218可以将手势输入传递至处理器,由处理器204进行处理。In the embodiment of the present application, the input device 220 may be a touch screen, and the user provides gesture input to the input/output controller 218 by touching the side of the hand with the touch screen, and the input/output controller 218 may transmit the gesture input to the processor, and the processor 204 for processing.

电子设备101可以包括一个或多个处理器204,这些处理器可以包括一个或多个处理单元,例如:处理器204可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP), 控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The electronic device 101 may include one or more processors 204, and these processors may include one or more processing units, for example: the processor 204 may include an application processor (application processor, AP), a modem processor, a graphics processing unit Graphics processing unit (GPU), image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network Processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

处理器204的控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller of the processor 204 can generate an operation control signal according to the instruction operation code and the timing signal, and complete the control of fetching and executing the instruction.

处理器204中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器204中的存储器为高速缓冲存储器。该存储器可以保存处理器204刚用过或循环使用的指令或数据。如果处理器204需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器204的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 204 for storing instructions and data. In some embodiments, the memory in processor 204 is a cache memory. The memory may hold instructions or data that the processor 204 has just used or recycled. If the processor 204 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 204 is reduced, thereby improving the efficiency of the system.

在一些实施例中,处理器204可以包括一个或多个接口。例如,接口可以包括,但不限于移动产业处理器接口(mobile industry processor interface,MIPI)、外部存储器接口和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 204 may include one or more interfaces. For example, the interface may include, but not limited to, a mobile industry processor interface (mobile industry processor interface, MIPI), an external memory interface, and/or a universal serial bus (universal serial bus, USB) interface and the like.

MIPI接口可以被用于连接处理器204与触摸屏等外围器件。MIPI接口可以包括显示屏串行接口(display serial interface,DSI)等。处理器204和触摸屏通过DSI接口通信,实现触摸屏的显示功能。The MIPI interface can be used to connect the processor 204 with peripheral devices such as a touch screen. The MIPI interface may include a display serial interface (display serial interface, DSI) and the like. The processor 204 communicates with the touch screen through the DSI interface to realize the display function of the touch screen.

可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备101的结构限定。在本申请另一些实施例中,电子设备101也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device 101 . In other embodiments of the present application, the electronic device 101 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.

电子设备101可以通过GPU,触摸屏,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接触摸屏和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器204可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。具体的,处理器204中的一个或多个GPU可以实现图像的渲染任务(例如本申请中与绘制虚拟标尺、距离值、长度值等相关的渲染任务,并将渲染结果传递至应用处理器或者其他显示驱动,由应用处理器或者其他显示驱动触发显示屏进行虚拟标尺、距离值、长度值等的显示)。The electronic device 101 may implement a display function through a GPU, a touch screen, an application processor, and the like. The GPU is a microprocessor for image processing, which connects the touch screen and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 204 may include one or more GPUs that execute program instructions to generate or alter display information. Specifically, one or more GPUs in the processor 204 can implement image rendering tasks (such as rendering tasks related to drawing virtual rulers, distance values, length values, etc. in this application, and deliver the rendering results to the application processor or Other display drivers, the application processor or other display drivers trigger the display to display virtual rulers, distance values, length values, etc.).

触摸屏可以包括显示屏以及相关的传感器(例如压力传感器和触摸传感器)。A touch screen may include a display screen and associated sensors (eg, pressure sensors and touch sensors).

显示屏用于显示图像,视频等。显示屏包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。Displays are used to display images, videos, etc. The display screen includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.

压力传感器用于感受压力信号,可以将压力信号转换成电信号。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器,电极之间的电容改变。电子设备101可以根据电容的变化确定压力的强度。当有触摸操作作用于触摸屏,电子设备101可以根据压力传感器检测所述触摸操作强度。电子设备101也可以根据压力传感器的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor is used to sense the pressure signal and convert the pressure signal into an electrical signal. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 101 can determine the strength of the pressure according to the change of the capacitance. When a touch operation acts on the touch screen, the electronic device 101 may detect the intensity of the touch operation according to the pressure sensor. The electronic device 101 may also calculate the touched position according to the detection signal of the pressure sensor. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.

触摸传感器,也称“触控器件”。触摸传感器可以设置于触摸屏,由触摸传感器与显示屏组成触摸屏。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备101的表面,与显示屏所处的位置不同。Touch sensor, also known as "touch device". The touch sensor can be arranged on the touch screen, and the touch screen is composed of the touch sensor and the display screen. The touch sensor is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation may be provided through the display screen. In some other embodiments, the touch sensor may also be disposed on the surface of the electronic device 101, which is different from the position of the display screen.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备101的智能认知等应用,例如可以基于NPU实现触摸手势类别的识别任务。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 101 can be realized through the NPU, for example, a touch gesture recognition task can be realized based on the NPU.

外部存储器接口可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备101的存储能力。外部存储卡通过外部存储器接口与处理器204通信,实现数据存储功能。例如将可以将音乐,视频等文件保存在外部存储卡中。The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 101. The external memory card communicates with the processor 204 through the external memory interface to realize the data storage function. For example, you can save music, video and other files in the external memory card.

存储器214可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。存储器214可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统206,至少一个功能所需的应用软件208(比如图像播放功能等)等。存储数据区可存储电子设备101使用过程中所创建的数据(比如图像数据等)等。此外,存储器214可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器204通过运行存储在存储器214的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备101的各种功能应用以及数据处理。Memory 214 may be used to store computer-executable program code, which includes instructions. The memory 214 may include an area for storing programs and an area for storing data. Wherein, the storage program area can store the operating system 206, the application software 208 required by at least one function (such as image playing function, etc.) and the like. The storage data area can store data (such as image data, etc.) created during the use of the electronic device 101 . In addition, the memory 214 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 204 executes various functional applications and data processing of the electronic device 101 by executing instructions stored in the memory 214 and/or instructions stored in the memory provided in the processor.

其中,本申请实施例中所描述的方法可以为存储在存储器214(或者是外部存储器)中的代码,处理器110可以获取到存储器中的代码来实现本申请实施例提供的方法。Wherein, the method described in the embodiment of the present application may be a code stored in the memory 214 (or an external memory), and the processor 110 may acquire the code in the memory to implement the method provided in the embodiment of the present application.

电子设备101还可以通过通信设备216与其他电子设备进行交互。The electronic device 101 can also interact with other electronic devices through the communication device 216 .

应理解,替代地或附加地,本文中所描述的方法可以至少部分地由一个或多个硬件逻辑组件来执行。例如而非限制,可被使用的硬件逻辑组件的说明性类型包括现场可编程逻辑门阵列(field programmable gate array,FPGA)、专用集成电路(application specific integrated circuit,ASIC)、专用标准部分(application specific standard parts,ASSP)、片上系统(system on chip,SOC)以及可编程逻辑器件(programable logic device,PLD)等。例如针对于接触手势的检测,以及手势类别判定等功能可以基于硬件逻辑组件来实现。It should be understood that alternatively or additionally, the methods described herein may be performed at least in part by one or more hardware logic components. By way of example and not limitation, illustrative types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts, ASSP), system on chip (system on chip, SOC) and programmable logic device (programable logic device, PLD), etc. For example, functions such as detection of contact gestures and determination of gesture categories can be implemented based on hardware logic components.

此外,附图中的各种元素的至少一部分功能性可由附图中的其他元素或附图中未示出的实体(例如,处理器、web服务、服务器、应用程序、计算设备等)来进行分布式执行,这里并不限定。Furthermore, at least some of the functionality of the various elements in the figures may be performed by other elements in the figures or by entities not shown in the figures (eg, processors, web services, servers, applications, computing devices, etc.) Distributed execution is not limited here.

为了便于理解,结合附图和应用场景,对本申请实施例提供的虚拟标尺显示方法进行具体阐述。For ease of understanding, the method for displaying a virtual ruler provided in the embodiment of the present application is specifically described in conjunction with the drawings and application scenarios.

参照图3,图3为本申请实施例提供的一种虚拟标尺显示方法的流程示意,如图3所示,本申请实施例提供的虚拟标尺显示方法,包括:Referring to Fig. 3, Fig. 3 is a schematic flowchart of a virtual scale display method provided by the embodiment of the present application. As shown in Fig. 3, the virtual scale display method provided by the embodiment of the present application includes:

301、检测与所述触摸屏的接触手势。301. Detect a contact gesture with the touch screen.

在例如会议室或教学的产品使用场景下,有时候会有绘图、表格绘制、图案测量的需求,因此需要通过特定的手势操作(例如本申请实施例中的接触手势)在触摸屏上唤出虚拟标尺。In product usage scenarios such as meeting rooms or teaching, sometimes there is a need for drawing, table drawing, and pattern measurement, so it is necessary to use specific gesture operations (such as the touch gesture in the embodiment of this application) to call out virtual gestures on the touch screen. ruler.

本申请实施例中,电子设备101可以检测与所述触摸屏的接触手势。In this embodiment of the present application, the electronic device 101 may detect a contact gesture with the touch screen.

其中,触摸屏可以包括基于触觉接触来接收来自用户的输入的触敏表面、传感器或传感器组,“检测与所述触摸屏的接触手势”可以理解为检测到与所述触摸屏上触敏表面的接触手势。Wherein, the touch screen may include a touch-sensitive surface, a sensor or a sensor group that receives input from the user based on tactile contact, and "detecting a contact gesture with the touch screen" may be understood as detecting a contact gesture with the touch-sensitive surface on the touch screen .

首先描述检测与所述触摸屏的接触手势相关的器件和模块。Firstly, the devices and modules for detecting contact gestures related to the touch screen are described.

在一种可能的实现中,触摸屏可以和检测模块配合来检测触摸屏上的接触手势。其中,检测模块可以为存储器中存储的和接触手势检测相关的程序、数据结构或其子集,或者是一部分以程序、数据结构或其子集的形式存在于存储器,一部分为硬件逻辑模块的形式。触摸屏可以捕获接触数据,检测模块可以根据接触数据来执行与接触手势检测相关的各种动作。In a possible implementation, the touch screen can cooperate with the detection module to detect a contact gesture on the touch screen. Wherein, the detection module can be a program, a data structure or a subset thereof stored in the memory related to the detection of the contact gesture, or a part exists in the memory in the form of a program, a data structure or a subset thereof, and a part is in the form of a hardware logic module . The touch screen can capture contact data, and the detection module can perform various actions related to contact gesture detection according to the contact data.

在一种可能的实现中,触摸屏可以实时捕获用户与触敏表面的接触数据(例如可以为电信号),并将接触数据传递至检测模块,检测模块可以基于接触数据来执行与接触手势检测相关的各种动作。In a possible implementation, the touch screen can capture the contact data (such as electrical signals) between the user and the touch-sensitive surface in real time, and transmit the contact data to the detection module. various actions.

接下来描述检测模块实现针对于触摸屏上的接触手势的检测。Next, the detection module is described to realize the detection of the contact gesture on the touch screen.

在一种实现中,检测模块可以基于接触数据来确定用户与触摸屏发生接触时的强度大小和/或其变化、以及接触区域的大小和/或其变化,进而基于上述信息来确定接触手势的手势类型。In one implementation, the detection module can determine the intensity and/or its change when the user is in contact with the touch screen based on the contact data, as well as the size and/or its change of the contact area, and then determine the gesture of the contact gesture based on the above information type.

其中,“强度”可以理解为在触摸屏的触敏表面上的接触(例如,手侧面接触)的力或压力(每单位面积的力)。接触的强度可以使用多种方法和多种传感器或传感器的组合来确定。例如,在触敏表面下方,例如使用相邻于触敏表面的一个或多个传感器来测量触摸屏上触敏表面上的不同点处的力。在一些具体实施中,可以将来自多个传感器的力测量值进行组合(例如,加权平均)来确定接触的强度。此外,还可以将在触敏表面上检测到的接触区域的大小和/或其变化、接触附近的触敏表面的电容和/或其变化以及/或者接触附近的触敏表面的电阻和/或其变化,来间接表示触敏表面上的接触的力或压力。Herein, "strength" can be understood as the force or pressure (force per unit area) of a contact (eg, hand side contact) on the touch-sensitive surface of the touch screen. The intensity of contact can be determined using various methods and various sensors or combinations of sensors. For example, below the touch-sensitive surface, the force at different points on the touch-sensitive surface on the touch screen is measured, eg, using one or more sensors adjacent to the touch-sensitive surface. In some implementations, force measurements from multiple sensors may be combined (eg, weighted averaged) to determine the strength of the contact. In addition, the size of the contact area detected on the touch-sensitive surface and/or its change, the capacitance of the touch-sensitive surface in the vicinity of the touch and/or its change and/or the resistance of the touch-sensitive surface in the vicinity of the touch and/or It changes to indirectly represent the force or pressure of a contact on a touch-sensitive surface.

其中,“接触区域”可以理解为可以检测到的和触敏表面相接触的区域,该区域可以为连续的区域或者是由密集的触摸点构成的离散区域(例如接触区域可以为一组密集分布的接触点构成的长条形区域)。Among them, "contact area" can be understood as a detectable area in contact with the touch-sensitive surface, which can be a continuous area or a discrete area composed of dense touch points (for example, a contact area can be a group of densely distributed The long strip area formed by the contact points).

检测模块可以基于接触数据来执行与接触手势检测相关的各种动作,进而确定接触手势的手势类型、接触手势的移动情况、接触手势的停止情况等等。The detection module can perform various actions related to the contact gesture detection based on the contact data, and then determine the gesture type of the contact gesture, the movement of the contact gesture, the stop of the contact gesture, and the like.

例如,检测模块可以确定是否已发生接触以及接触手势的类型(例如,检测手指按下事件,或者手侧面的接触事件)、确定是否存在接触的移动并跟踪在触敏表面上的移动(例如,检测一个或多个手指拖动事件,或者是手侧面的拖动事件),以及确定接触是否已停止(例如,检测手指抬起事件,或者检测手侧面的抬起事件)。For example, the detection module can determine whether contact has occurred and the type of contact gesture (e.g., detect a finger press event, or a contact event from the side of the hand), determine whether there is movement of the contact, and track movement on the touch-sensitive surface (e.g., Detect one or more finger drag events, or a drag event from the side of the hand), and determine whether contact has ceased (for example, detect a finger lift event, or detect a lift event from the side of the hand).

其中,上述“接触手势的移动”也可以称之为接触手势的接触区域的移动,和接触区 域的移动相关的数据可以但不限于包括接触区域移动的速率(量值)、速度(量值和方向)和/或加速度(量值和/或方向的改变)。Wherein, the above-mentioned "movement of the contact gesture" can also be referred to as the movement of the contact area of the contact gesture, and the data related to the movement of the contact area can include, but not limited to, the rate (magnitude), speed (magnitude and direction) and/or acceleration (change in magnitude and/or direction).

进而,检测模块可以基于接触数据来执行与接触手势检测相关的各种动作,以此确定接触手势指示的手势类型,其中,手势类型例如但不限于是点击、双击、长按、拖动、手侧面与触摸屏的静止接触、手侧面拖动、手侧面转动、手侧面双击等等。Furthermore, the detection module can perform various actions related to contact gesture detection based on the contact data, so as to determine the gesture type indicated by the contact gesture, wherein the gesture type is, for example but not limited to, click, double click, long press, drag, hand Sideways stationary contact with the touchscreen, sideways hand drag, sideways hand turn, sideways double tap, and more.

在一种可能的实现中,检测模块可以为预训练好的神经网络模型,该神经网络模型具有基于接触手势的接触数据识别出接触手势指示的手势类别的能力。In a possible implementation, the detection module may be a pre-trained neural network model, and the neural network model has the ability to recognize the gesture category indicated by the contact gesture based on the contact data of the contact gesture.

302、基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。302. Based on the contact gesture indicating that the side of the user's hand is in contact with the touch screen, display a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is strip-shaped area, the virtual ruler is attached to the long side of the strip-shaped area.

本申请实施例中,检测模块可以确定出接触手势指示的手势类型。在一种实现中,检测模块可以确定出接触手势指示用户的手侧面与所述触摸屏的接触。In the embodiment of the present application, the detection module may determine the gesture type indicated by the contact gesture. In one implementation, the detection module may determine that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.

为了能够降低用户触发虚拟标尺显示功能的操作难度和成本,本申请实施例中,当检测到接触手势指示用户的手侧面与所述触摸屏的接触时,触发虚拟标尺的显示,一方面只需要用户的单手进行操作,操作难度和成本很小,另一方面,当用户的手部展开时,手侧面与触摸屏的接触区域为扁平的长条状区域,接近于一条直线,基于这种操作模式触发虚拟标尺的显示更符合用户的操作习惯。In order to reduce the operational difficulty and cost for the user to trigger the virtual ruler display function, in the embodiment of the present application, when a contact gesture is detected indicating that the side of the user's hand is in contact with the touch screen, the display of the virtual ruler is triggered. On the one hand, only the user needs to On the other hand, when the user's hand is extended, the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode Triggering the display of the virtual ruler is more in line with the user's operating habits.

接下来结合附图对用户的手侧面与所述触摸屏的接触进行描述。Next, the contact between the side of the user's hand and the touch screen will be described with reference to the accompanying drawings.

1、手侧面1. The side of the hand

本申请实施例中的手侧面可以理解为用户的手部在展开状态下位于小拇指一侧的手侧面(例如包括用户手部的小鱼际部位的表面或者小拇指部位的表面中的至少一个)。The side of the hand in the embodiment of the present application can be understood as the side of the user's hand located on the side of the little finger in the unfolded state (for example, including at least one of the surface of the hypothenar part of the user's hand or the surface of the little finger).

其中,手部的展开状态可以为用户的手指(或者是仅包括小拇指)处于和手掌心同一个平面(或者是接近于处于同一个平面)的状态。Wherein, the unfolded state of the hand may be a state where the user's fingers (or only the little finger) are on the same plane (or close to the same plane) as the palm.

参照图4,图4中示出了一种用户的手部姿势,在图4示出的手部姿势中,手部靠下的一侧为用户的手侧面,其包括小拇指部位和用户手部的小鱼际部位的表面。参照图5,图5中示出了另一种用户的手部姿势,在图5示出的手部姿势中,手部靠右下的一侧为用户的手侧面,其包括小拇指部位和用户手部的小鱼际部位的表面。Referring to Fig. 4, a user's hand posture is shown in Fig. 4. In the hand posture shown in Fig. 4, the lower side of the hand is the side of the user's hand, which includes the little finger and the user's hand. The surface of the hypothenar region. Referring to Fig. 5, another user's hand posture is shown in Fig. 5. In the hand posture shown in Fig. 5, the lower right side of the hand is the user's hand side, which includes the little finger and the user's hand. The surface of the hypothenar region of the hand.

本申请实施例,用户手侧面与触摸屏的接触,相当于用户的手侧面的小鱼际部位与所述触摸屏的接触和/或用户的手侧面的小拇指部位与所述触摸屏的接触。In this embodiment of the present application, the contact between the side of the user's hand and the touch screen is equivalent to the contact between the hypothenar part of the side of the user's hand and the touch screen and/or the contact of the little finger part of the side of the user's hand with the touch screen.

2、手侧面与所述触摸屏的接触2. Contact between the side of the hand and the touch screen

本申请实施例中,当与所述触摸屏的接触的接触强度以及接触面积满足一定条件时,可以认为是用户的手侧面与触摸屏的接触。In the embodiment of the present application, when the contact intensity and contact area of the touch screen meet certain conditions, it can be considered as the contact of the side of the user's hand with the touch screen.

参照图6和图7,其中,图6为从正视触摸屏的角度来看,用户的手侧面与触摸屏接触时的示意,图7为从侧视触摸屏的角度来看,用户的手侧面与触摸屏接触时的示意,从用户的行为来看,基于触摸强度、接触面积的不同,用户的手侧面可以是轻扫触摸屏(接触面积小、接触强度很低),或者是轻压触摸屏(接触面积大、接触强度中等),或者是重 压触摸屏(接触面积大、接触强度大)。本申请实施例中,当用户的手侧面轻扫触摸屏时,可以认为是用户与触摸屏存在误触,而当用户手侧面轻压触摸屏或者是重压触摸屏时,可以认为用户需要触发显示虚拟标尺。Referring to Fig. 6 and Fig. 7, among them, Fig. 6 is the schematic diagram when the side of the user's hand is in contact with the touch screen from the perspective of facing the touch screen, and Fig. 7 is the schematic diagram of the side of the user's hand in contact with the touch screen from the perspective of the side view of the touch screen From the point of view of the user's behavior, based on the difference in touch intensity and contact area, the side of the user's hand can be swipe the touch screen (small contact area, low contact intensity), or lightly press the touch screen (large contact area, Medium contact strength), or heavy pressure touch screen (large contact area, high contact strength). In the embodiment of the present application, when the side of the user's hand swipe the touch screen, it can be considered that there is a false touch between the user and the touch screen, and when the side of the user's hand lightly presses the touch screen or presses the touch screen heavily, it can be considered that the user needs to trigger the display of the virtual scale.

在一种实现中,当用户手侧面轻压触摸屏或者是重压触摸屏超过一定时间时,才可以认为是用户需要触发显示虚拟标尺。具体可以参照图8,当用户手侧面轻压触摸屏或者是重压触摸屏超过X秒时,可以认为是用户需要触发显示虚拟标尺。In one implementation, when the side of the user's hand lightly presses the touchscreen or presses heavily on the touchscreen for more than a certain period of time, it may be considered that the user needs to trigger the display of the virtual scale. Specifically, referring to FIG. 8 , when the side of the user's hand lightly presses the touchscreen or presses heavily on the touchscreen for more than X seconds, it can be considered that the user needs to trigger the display of the virtual scale.

从检测模块的角度来看,需要基于接触手势的接触强度以及接触手势和触摸屏的接触区域进行处理分析,当其满足一定条件时,可以认为是用户的手侧面与触摸屏的接触。From the perspective of the detection module, it needs to be processed and analyzed based on the contact intensity of the touch gesture and the contact area of the touch gesture and the touch screen. When it meets certain conditions, it can be considered as the contact between the side of the user's hand and the touch screen.

接下来介绍接触区域需要满足的条件(包括形状条件和面积大小条件):Next, the conditions (including shape conditions and area size conditions) that need to be satisfied by the contact area are introduced:

在一种实现中,检测模块可以获取所述接触手势的接触区域,并基于所述接触区域满足预设条件,确定所述接触手势指示所述用户的手侧面与触摸屏的接触;所述预设条件包括:所述接触区域为一个长条状区域,所述长条状区域的形状和面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的特点。In one implementation, the detection module may acquire the contact area of the contact gesture, and based on the contact area meeting a preset condition, determine that the contact gesture indicates that the side of the user's hand is in contact with the touch screen; the preset The conditions include: the contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar position and/or little finger on the side of the user's hand is in contact with the touch screen .

手部侧面可以包括小鱼际部位的区域和小拇指部位的区域,当用户的手侧面与触摸屏接触时,可能由于手部的姿势或者用户的手型特点,出现如下的至少一种接触情况:The side of the hand may include the area of the hypothenar area and the area of the little finger. When the side of the user's hand is in contact with the touch screen, at least one of the following contact situations may occur due to the posture of the hand or the characteristics of the user's hand shape:

小鱼际部位的区域与触摸屏接触;The area of the hypothenar is in contact with the touch screen;

小拇指部位的区域与触摸屏接触;The area of the little finger is in contact with the touch screen;

小鱼际部位的区域和小拇指部位的区域一起与触摸屏接触;The area of the hypothenar area and the area of the little finger together make contact with the touch screen;

参照图10,当小鱼际部位的区域与触摸屏接触时,接触区域为一个扁平的长条状区域;Referring to Figure 10, when the area of the hypothenar part is in contact with the touch screen, the contact area is a flat strip-shaped area;

当小拇指部位的区域与触摸屏接触时,接触区域为一个扁平的长条状区域,面积大小可以小于小鱼际部位的区域与触摸屏接触时的接触区域大小;When the area of the little finger is in contact with the touch screen, the contact area is a flat strip-shaped area, and the size of the area can be smaller than the size of the contact area when the area of the hypothenar is in contact with the touch screen;

参照图9,当小鱼际部位的区域和小拇指部位的区域一起与触摸屏接触时,接触区域为排布在同一方向上的两个长条状区域,所述两个长条状区域的长边所在的方向一致。Referring to Fig. 9, when the area of the hypothenar part and the area of the little finger are in contact with the touch screen together, the contact area is two strip-shaped areas arranged in the same direction, and the long sides of the two strip-shaped areas in the same direction.

检测模块可以获取到接触区域的数据,然后对接触区域的形状和面积大小进行分析,当接触区域的形状和面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的特点时,可以确定接触手势指示所述用户的手侧面与触摸屏的接触。The detection module can acquire the data of the contact area, and then analyze the shape and area size of the contact area, when the shape and area size of the contact area conform to the hypothenar part and/or the little finger part of the side of the user's hand in contact with the touch screen When the touch area is characterized, it may be determined that the touch gesture indicates contact of the side of the user's hand with the touch screen.

其中,形状可以理解为接触区域边界线的轮廓特征,当接触区域边界线的轮廓形状为扁平的长条状,则可以认为接触区域的形状符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的形状特点;Among them, the shape can be understood as the outline feature of the boundary line of the contact area. When the outline shape of the boundary line of the contact area is flat and long, it can be considered that the shape of the contact area conforms to the hypothenar position and/or little finger on the side of the user's hand. The shape characteristics of the contact area when the part is in contact with the touch screen;

其中,形状也可以理解为接触区域包括的接触点的分布特征,可以通过检测触摸点的分布形状来判断是否是满足上述形状特点。(比如检测到一组密集分布的长条形的触摸点,则可以认为接触区域的形状符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的形状特点);Wherein, the shape can also be understood as the distribution characteristics of the contact points included in the contact area, and whether the above shape characteristics are satisfied can be judged by detecting the distribution shape of the touch points. (For example, if a group of densely distributed elongated touch points are detected, it can be considered that the shape of the contact area conforms to the shape characteristics of the contact area when the hypothenar position on the side of the user's hand and/or the little finger position is in contact with the touch screen) ;

其中,当接触区域的面积大小在预设的范围内(该范围中的极大值不能过大,该范围中的极小值也不能过小,可以基于人的手部手侧面的特点来设定),则可以认为接触区域的面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的面积大小特点。Wherein, when the area size of the contact area is within the preset range (the maximum value in this range cannot be too large, and the minimum value in this range cannot be too small, it can be set based on the characteristics of the side of the hand of the human hand. ), then it can be considered that the size of the contact area conforms to the characteristics of the area size of the contact area when the hypothenar part and/or little finger part of the side of the user's hand is in contact with the touch screen.

接下来介绍接触强度需要满足的条件:Next, the conditions that the contact strength needs to meet are introduced:

在一些场景中,用户会出现误触或者进行了和触摸屏的触摸手势,但是该接触手势并非用于触发虚拟标尺,可以基于接触手势的接触强度的筛选来避免在上述场景中,触发虚拟标尺的显示。In some scenarios, the user may accidentally touch or perform a touch gesture with the touch screen, but this contact gesture is not used to trigger the virtual ruler. It can be based on the screening of the contact intensity of the touch gesture to avoid triggering the virtual ruler in the above scenarios. show.

具体的,用户与触摸屏进行了轻扫触摸(接触强度很小的触摸)时,通常可以认为是用户出现了误触,当确定触摸手势的接触强度过小时,可以不触发虚拟标尺的显示,而当接触手势为按压手势时,可以触发虚拟标尺的显示(前提是接触手势的接触区域满足上述形状和面积大小条件)。Specifically, when the user performs a swipe touch (a touch with a small contact intensity) on the touch screen, it can generally be considered that the user has made a false touch. When it is determined that the contact intensity of the touch gesture is too small, the display of the virtual scale may not be triggered, and When the touch gesture is a press gesture, the display of the virtual ruler may be triggered (provided that the contact area of the touch gesture satisfies the above-mentioned shape and area size conditions).

其中,按压手势可以包括轻按压和深按压,当接触强度从低于轻按压强度阈值的强度增大到介于轻按压强度阈值与深按压强度阈值之间的强度时可以称为检测到触摸表面上的“轻按压”输入。接触强度从低于深按压强度阈值的强度增大到高于深按压强度阈值的强度可以称为检测到触摸表面上的“深按压”输入。接触强度从低于接触检测强度阈值的强度增大到介于接触检测强度阈值与轻按压强度阈值之间的强度可以称为检测到触摸表面上的“轻扫触摸”输入。接触强度从高于接触检测强度阈值的强度减小到低于接触检测强度阈值的强度时可以称为检测到接触从触摸表面抬离(也就是抬手手势)。在一些实施方案中,接触检测强度阈值为零。在一些实施方案中,接触检测强度阈值可以大于零。Wherein, the press gesture may include a light press and a deep press, and when the contact intensity increases from an intensity lower than the light press intensity threshold to an intensity between the light press intensity threshold and the deep press intensity threshold, it may be called a touch surface detected "light press" input on the An increase in contact intensity from an intensity below the deep press intensity threshold to an intensity above the deep press intensity threshold may be referred to as detecting a "deep press" input on the touch surface. An increase in contact intensity from an intensity below the contact detection intensity threshold to an intensity between the contact detection intensity threshold and the light press intensity threshold may be referred to as detecting a "swipe touch" input on the touch surface. When the contact intensity decreases from an intensity higher than the contact detection intensity threshold to an intensity lower than the contact detection intensity threshold, it may be referred to as detecting that the contact is lifted from the touch surface (ie, a hand-raising gesture). In some embodiments, the contact detection intensity threshold is zero. In some embodiments, the contact detection intensity threshold may be greater than zero.

在一种可能的实现中,检测模块可以为预训练好的神经网络模型,该神经网络模型具有基于接触手势的接触数据识别出接触手势指示的手势类别的能力,本申请实施例中,检测模块可以获取所述接触手势的手势数据,根据所述手势数据,通过神经网络,确定所述接触手势指示所述用户的手侧面与触摸屏的接触。In a possible implementation, the detection module can be a pre-trained neural network model, and the neural network model has the ability to identify the gesture category indicated by the contact gesture based on the contact data of the contact gesture. In the embodiment of the present application, the detection module Gesture data of the contact gesture may be acquired, and according to the gesture data, it is determined through a neural network that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.

在一种可能的实现中,除了当用户轻扫触摸屏时会认为是误触,接触手势的维持时间过小时也可以认为是误触,在这种情况下也可以不触发虚拟标尺的显示。In a possible implementation, besides when the user swipes the touch screen, it will be considered as a false touch, and if the duration of the contact gesture is too short, it can also be considered as a false touch. In this case, the display of the virtual ruler may not be triggered.

本申请实施例中,还可以以接触手势的维持时间作为触发显示虚拟标尺的条件,也就是需要检测到所述接触手势的维持时间大于预设时间,例如预设时间可以设置为0.1S、0.15S、0.2S、0.25S、0.3S、0.35S、0.4S、0.45S、1S、2S。In the embodiment of the present application, the maintenance time of the contact gesture can also be used as the condition for triggering the display of the virtual scale, that is, it needs to be detected that the maintenance time of the contact gesture is greater than the preset time, for example, the preset time can be set to 0.1S, 0.15 S, 0.2S, 0.25S, 0.3S, 0.35S, 0.4S, 0.45S, 1S, 2S.

其中,接触手势的维持时间可以是以检测到接触手势就开始计时,或者是检测到接触手势与触摸屏的接触强度大于一定接触强度阈值(大于0的阈值)之后才开始计时,维持时间可以是以检测到接触手势的接触强度为0时结束计时,或者是检测到接触手势的接触强度小于一定接触强度阈值(大于0的阈值)时结束计时。Wherein, the maintenance time of the contact gesture can start counting when the contact gesture is detected, or after detecting that the contact intensity between the contact gesture and the touch screen is greater than a certain contact intensity threshold (threshold greater than 0), the maintenance time can be The timing ends when it is detected that the contact intensity of the contact gesture is 0, or the timing ends when it is detected that the contact intensity of the contact gesture is less than a certain contact intensity threshold (threshold greater than 0).

其中,接触手势的维持时间可以是接触手势保持静止状态(或者移动小于一定幅度)时的维持时间,例如接触手势的维持时间可以是处于静止的按压手势(或者移动小于一定幅度)时的维持时间。应理解,上述静止状态可以理解为接触手势的接触区域的静止状态。Wherein, the maintenance time of the contact gesture may be the maintenance time when the contact gesture remains in a static state (or the movement is less than a certain range), for example, the maintenance time of the contact gesture may be the maintenance time when the pressing gesture is at rest (or the movement is less than a certain range) . It should be understood that the above static state may be understood as a static state of the contact area of the touch gesture.

本申请实施例中,如果确定所述接触手势指示用户的手侧面与所述触摸屏的接触,则可以根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺。In this embodiment of the present application, if it is determined that the contact gesture indicates that the side of the user's hand is in contact with the touch screen, a virtual ruler may be displayed on the touch screen according to the contact area of the contact gesture.

接下来描述虚拟标尺:The virtual ruler is described next:

虚拟标尺为显示在触摸屏上的示能表示,虚拟标尺的显示形状类似于直尺(例如可以 为扁平的矩形、或者是一条线段),其上可以包括长度标注参考,用户可以基于虚拟标尺进行在所述触摸屏上显示的绘画直线段的长度测量,或者进行在所述触摸屏上显示的绘画点之间的距离测量,用户还可以将虚拟标尺作为在所述触摸屏上画直线时的参考工具,具体过程类似于在物理真实空间中,用户通过直尺画线的过程。The virtual ruler is an affordance displayed on the touch screen. The display shape of the virtual ruler is similar to a straightedge (for example, it can be a flat rectangle or a line segment). To measure the length of the straight line segment of the drawing displayed on the touch screen, or to measure the distance between the drawing points displayed on the touch screen, the user can also use the virtual ruler as a reference tool when drawing a straight line on the touch screen, specifically The process is similar to the process in which a user draws a line with a ruler in a physical real space.

接下来描述虚拟标尺的显示位置和接触手势的接触区域之间的关系:Next, the relationship between the display position of the virtual ruler and the contact area of the touch gesture is described:

为了能够使得用户可以基于自己的意图来调整虚拟标尺的显示位置,则需要将用户的接触手势和虚拟标尺的显示位置建立关联,也就是虚拟标尺的显示位置需要基于用户与触摸屏的接触手势的接触区域作为参考。In order to enable the user to adjust the display position of the virtual ruler based on their own intentions, it is necessary to associate the user's touch gesture with the display position of the virtual ruler, that is, the display position of the virtual ruler needs to be based on the user's touch with the touch screen. region as a reference.

在一种实现中,由于接触手势为展开后手部的手侧面与触摸屏的接触,其接触区域的形状为扁平的长条形,长条形的长边所指示的方向与用户手部的四指(或者仅包括小拇指)所指的方向平行(或者接近平行)。参照图11,可以让虚拟标尺的显示方向与长条形的长边所指示的方向平行或者接近平行,这种虚拟标尺的显示方式符合用户的操作习惯。In one implementation, since the contact gesture is the contact between the side of the hand and the touch screen after the hand is unfolded, the shape of the contact area is a flat strip, and the direction indicated by the long side of the strip is in line with the four directions of the user's hand. The directions pointed by the fingers (or only the little finger) are parallel (or nearly parallel). Referring to FIG. 11 , the display direction of the virtual scale can be made to be parallel or nearly parallel to the direction indicated by the long side of the bar, and the display mode of this virtual scale conforms to the user's operating habits.

其中,虚拟标尺的显示方向(本申请实施例中也可以简称为虚拟标尺的方向)可以理解为虚拟标尺上用于测量或者画线参考的边所处的方向。Wherein, the display direction of the virtual ruler (which may also be simply referred to as the direction of the virtual ruler in the embodiment of the present application) may be understood as the direction of the side on the virtual ruler used for measurement or drawing a reference.

本申请实施例中,虚拟标尺与所述长条状区域的长边贴合,也就是说,在显示位置上,虚拟标尺与所述长条状区域需要很接近,在方向上,虚拟标尺与所述长条状区域的长边平行或者接近于平行。In the embodiment of the present application, the virtual scale is attached to the long side of the strip-shaped area, that is, in the display position, the virtual scale and the strip-shaped area need to be very close, and in the direction, the virtual scale and the strip-shaped area need to be very close. The long sides of the elongated regions are parallel or nearly parallel.

具体的,在显示位置上,所述虚拟标尺与所述长条状区域满足如下条件的一个:Specifically, at the display position, the virtual ruler and the strip-shaped area satisfy one of the following conditions:

所述虚拟标尺与所述长条状区域存在重叠(例如图13所示);或者,所述虚拟标尺与所述长条状区域相切(例如图12所示);或者,所述虚拟标尺与所述长条状区域之间的距离小于预设值(例如图14和图15所示,其中,图15示出了当虚拟标尺为一条线段时的情况),预设值可以为1cm、2cm、3cm、4cm、5cm、10cm、15cm等。There is overlap between the virtual ruler and the strip-shaped region (such as shown in Figure 13); or, the virtual ruler is tangent to the strip-shaped region (such as shown in Figure 12); or, the virtual ruler and the distance between the strip-shaped area is less than a preset value (such as shown in Figure 14 and Figure 15, wherein Figure 15 shows the situation when the virtual ruler is a line segment), the preset value can be 1cm, 2cm, 3cm, 4cm, 5cm, 10cm, 15cm, etc.

具体的,在显示方向上,所述虚拟标尺的方向与所述长条状区域的长边指示的方向之间的锐夹角小于预设值,预设值可以为1度、2度、3度、4度、5度、10度等。Specifically, in the display direction, the acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value, and the preset value can be 1 degree, 2 degrees, or 3 degrees. degrees, 4 degrees, 5 degrees, 10 degrees, etc.

接下来描述虚拟标尺的显示规则(包括显示位置调控、隐藏触发、固定显示、固定显示之后的姿态调整等),分别进行说明:Next, describe the display rules of the virtual ruler (including display position control, hidden trigger, fixed display, posture adjustment after fixed display, etc.), respectively:

1、关于虚拟标尺的显示位置调控:1. Regarding the control of the display position of the virtual ruler:

本申请实施例中,在触发显示虚拟标尺后,可以通过特定的手势来调整虚拟标尺的姿态,比如,改变虚拟标尺的姿态(位置和角度),使虚拟标尺能够测量不同的元素(绘画线长度或者绘画点之间的距离)。本实施例中,结合用户的接触手势,可以通过用户的手侧面的接触区域的移动来带动虚拟标尺的移动。In the embodiment of the present application, after triggering the display of the virtual ruler, the posture of the virtual ruler can be adjusted through a specific gesture, for example, changing the posture (position and angle) of the virtual ruler so that the virtual ruler can measure different elements (drawing line length or the distance between plotted points). In this embodiment, combined with the user's contact gesture, the movement of the virtual scale can be driven by the movement of the contact area on the side of the user's hand.

具体的,检测模块可以检测到所述接触手势的接触区域的移动,并调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置跟随所述接触区域。Specifically, the detection module may detect the movement of the contact area of the contact gesture, and adjust the display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.

其中,所谓移动可以理解为,发生了位置的变化和/或方向的变化;Wherein, the so-called movement can be understood as a change in position and/or a change in direction;

其中,所谓跟随,可以理解为将虚拟标尺的显示位置始终与接触手势的接触区域贴合, 由于接触手势的接触区域发生了移动,进而虚拟标尺的显示位置和方向也会发生改变,且在虚拟标尺的显示区域始终保持和接触区域的长边的贴合。Among them, the so-called following can be understood as always fitting the display position of the virtual ruler with the contact area of the touch gesture. Since the contact area of the touch gesture moves, the display position and direction of the virtual ruler will also change, and in the virtual The display area of the ruler is always in close contact with the long side of the contact area.

参照图16和图17,接触手势的接触区域发生了移动,进而虚拟标尺的显示位置和方向也会跟随接触区域而发生改变。Referring to FIG. 16 and FIG. 17 , the contact area of the touch gesture moves, and then the display position and direction of the virtual ruler will also change following the contact area.

2、关于虚拟标尺的取消显示:2. About canceling the display of the virtual ruler:

在一些场景中,当用户没有使用虚拟标尺的需求时,可以通过一定的手势来触发触摸屏隐藏虚拟标尺的显示,手势可以为抬手手势,本申请实施例中,参照图18,检测模块可以检测到用户的抬手手势,响应于用户的抬手手势在所述触摸屏上隐藏所述虚拟标尺的显示,其中,抬手手势可以理解为手侧面脱离触摸屏,或者是手侧面与触摸屏的接触强度小于一定的阈值,或者是手侧面与触摸屏的接触区域小于预设值。In some scenarios, when the user does not need to use the virtual ruler, a certain gesture can be used to trigger the display of the hidden virtual ruler on the touch screen. The gesture can be a gesture of raising the hand. In the embodiment of the present application, referring to FIG. In response to the user's hand-raising gesture, the display of the virtual scale is hidden on the touch screen in response to the user's hand-raising gesture, wherein the hand-raising gesture can be understood as the side of the hand leaving the touch screen, or the contact strength between the side of the hand and the touch screen is less than A certain threshold, or the contact area between the side of the hand and the touch screen is smaller than a preset value.

3、关于虚拟标尺的固定显示3. Regarding the fixed display of the virtual ruler

在一些场景中,当用户抬手后仍然需要使用虚拟标尺,因此需要基于一定的手势来触发虚拟标尺在触摸屏上的固定显示。In some scenarios, the virtual ruler still needs to be used after the user raises his hand, so it is necessary to trigger the fixed display of the virtual ruler on the touch screen based on a certain gesture.

在一种可能的实现中,用户可以通过手侧面对触摸屏进行预设次数的敲击,来触发虚拟标尺在触摸屏上的固定显示,参照图30所示,检测模块可以基于所述接触手势指示所述用户的手侧面与触摸屏进行了预设次数的敲击,在检测到用户的抬手手势之后,在所述触摸屏上维持所述虚拟标尺的显示(例如可以参照图31所示)。In a possible implementation, the user can tap the touch screen for a preset number of times by the side of the hand to trigger the fixed display of the virtual scale on the touch screen. Referring to FIG. 30 , the detection module can indicate the The side of the user's hand touches the touch screen for a preset number of times, and after the user's hand-raising gesture is detected, the display of the virtual scale is maintained on the touch screen (for example, as shown in FIG. 31 ).

可选的,预设次数的敲击需要在预设时间内发生,预设时间为较短的时间(例如为0.1S、0.2S、0.3S、0.4S、0.5S等);Optionally, the preset number of taps needs to occur within a preset time, and the preset time is a short time (for example, 0.1S, 0.2S, 0.3S, 0.4S, 0.5S, etc.);

其中,预设次数的敲击在触摸屏上的敲击位置需要保持一致,或者是允许微小的偏差。Wherein, the tapping positions of the preset number of taps on the touch screen need to be kept consistent, or slight deviations are allowed.

其中,预设次数可以为2次、3次等,例如,在手侧面连续敲击两次时,虚拟标尺可以固定显示在触摸屏上。Wherein, the preset number of times can be 2 times, 3 times, etc. For example, when the side of the hand is tapped twice continuously, the virtual ruler can be fixedly displayed on the touch screen.

4、关于虚拟标尺固定显示之后的姿态调整4. Regarding the attitude adjustment after the virtual ruler is fixed and displayed

在一种实现中,当虚拟标尺固定显示在触摸屏上时,可以通过一定的手势操作来调整虚拟标尺的显示姿态(显示姿态可以包括显示位置和/或显示方向)。检测模块可以检测到用户针对于所述虚拟标尺的选择指令,响应于所述选择指令,可以显示触发控件,所述触发控件用于指示对所述虚拟标尺进行如下的至少一种操作:删除操作、位置调整操作以及旋转操作。In one implementation, when the virtual ruler is fixedly displayed on the touch screen, a certain gesture operation can be used to adjust the display posture of the virtual ruler (the display posture may include a display position and/or a display direction). The detection module can detect a user's selection instruction for the virtual scale, and in response to the selection instruction, a trigger control can be displayed, and the trigger control is used to indicate at least one of the following operations on the virtual scale: delete operation , position adjustment operations, and rotation operations.

例如,参照图32,用户可以通过点击固定显示的虚拟标尺来触发虚拟标尺的选择,在选中的同时,触摸屏会弹出触发控件,例如触发控件可以是用于指示针对于虚拟标尺的删除操作的提示(例如图33中示出的“删除”提示,以及图35示出的垃圾桶标识),用户可以通过点击“删除”提示或者将虚拟标尺拖动到垃圾桶标识)来删除虚拟标尺。For example, referring to FIG. 32 , the user can trigger the selection of the virtual scale by clicking on the fixedly displayed virtual scale, and at the same time of selection, the touch screen will pop up a trigger control, for example, the trigger control can be a prompt for indicating a deletion operation for the virtual scale (such as the "delete" prompt shown in FIG. 33, and the trash can logo shown in FIG. 35), the user can delete the virtual ruler by clicking on the "delete" prompt or dragging the virtual ruler to the trash bin logo).

例如,用户可以通过点击固定显示的虚拟标尺来触发虚拟标尺的选择,在选中的同时,触摸屏会弹出触发控件,例如触发控件可以是用于指示针对于虚拟标尺的位置调整操作的提示(例如图33中示出的“姿态调整”提示),用户可以通过点击“姿态调整”控件,进而进入针对于虚拟标尺的姿态调整的模式,例如,在该模式下,用户可以通过手侧面和触摸屏的接触来进行虚拟标尺的显示姿态调整,调整方式可以参照上述实施例中关于虚拟标 尺的显示位置调控的相关描述,这里不再赘述,又例如,参照图34,若需要旋转虚拟标尺,可以通过双指分别在(虚拟标尺上或者在虚拟标尺的预设距离内)两个不同的位置点击,两个触摸点同时顺时针或逆时针旋转,以转动虚拟标尺。可选的,在操作虚拟标尺转动时,可以实时显示转动前后虚拟标尺之间的夹角。For example, the user can trigger the selection of the virtual ruler by clicking on the fixedly displayed virtual ruler. When the virtual ruler is selected, a trigger control will pop up on the touch screen. 33), the user can click on the "posture adjustment" control to enter the posture adjustment mode for the virtual ruler. For example, in this mode, the user can touch the side of the hand and the touch screen To adjust the display posture of the virtual ruler, the adjustment method can refer to the relevant description of the display position control of the virtual ruler in the above embodiment, which will not be repeated here. For another example, referring to Figure 34, if you need to rotate the virtual ruler, you can use two Click on two different positions (on the virtual ruler or within a preset distance of the virtual ruler) respectively, and the two touch points rotate clockwise or counterclockwise at the same time, so as to rotate the virtual ruler. Optionally, when operating the virtual scale to rotate, the included angle between the virtual scale before and after the rotation can be displayed in real time.

应理解,当用户选择虚拟标尺后,可以直接通过手势操作来调整虚拟标尺的显示姿态。It should be understood that after the user selects the virtual ruler, the display posture of the virtual ruler can be adjusted directly through gesture operations.

在一种实现中,参照图36,在没有选中虚拟标尺的情况下,若又检测到用户的手侧面与触摸屏的接触手势(满足触发显示虚拟标尺的条件),可以再额外显示另一个虚拟标尺,新的虚拟标尺也可以跟随手侧面的接收区域的平移而移动。此外,新的虚拟标尺也可以用连续敲击手势进行固定显示。In one implementation, referring to FIG. 36 , when the virtual ruler is not selected, if a touch gesture between the side of the user's hand and the touch screen is detected (the condition for triggering the display of the virtual ruler is met), another virtual ruler can be additionally displayed , the new virtual ruler can also follow the translation of the receiving area on the side of the hand. In addition, the new virtual ruler can also be fixed and displayed with continuous tapping gestures.

在一种实现中,如果触摸屏退出写画界面,而进入到显示界面(例如显示的是其他电子设备的投屏内容),那么显示在写画界面上的虚拟标尺也会跟随写画界面的退出而消失,不会影响投屏内容的显示。In one implementation, if the touch screen exits the drawing interface and enters the display interface (such as displaying the screen content of other electronic devices), then the virtual ruler displayed on the drawing interface will also follow the exit of the drawing interface Disappearing will not affect the display of the projected content.

本申请实施例中,通过旋转或移动手侧面来给虚拟标尺赋予相应的旋转或移动操作,敲击固定显示虚拟标尺等手势,符合用户的操作习惯,能大幅提升操作效率。In the embodiment of the present application, by rotating or moving the side of the hand to give corresponding rotation or movement operations to the virtual ruler, tapping and fixed display of the virtual ruler and other gestures are in line with the user's operating habits and can greatly improve the operating efficiency.

接下来结合用户和虚拟标尺之间的交互描述虚拟标尺的功能实现(包括长度测量功能、距离测量功能、画线功能):Next, combine the interaction between the user and the virtual ruler to describe the function realization of the virtual ruler (including the length measurement function, the distance measurement function, and the line drawing function):

1、长度测量功能1. Length measurement function

本申请实施例中,所述虚拟标尺可以用于进行在所述触摸屏上显示的绘画直线段的长度测量。In the embodiment of the present application, the virtual ruler may be used to measure the length of the drawn straight line segment displayed on the touch screen.

在一种可能的实现中,参照图19,触摸屏上可以显示有至少一个绘画直线段,当用户想对其中的一个绘画直线段进行长度测量时,可以通过接触手势在触摸屏上的移动来调整虚拟标尺的显示位置,使得虚拟标尺的显示位置接近于或者准确贴合要测量的绘画直线段。In a possible implementation, referring to FIG. 19, at least one drawing straight line segment can be displayed on the touch screen. When the user wants to measure the length of one of the drawing straight line segments, the user can adjust the virtual position by moving the touch gesture on the touch screen. The display position of the ruler, so that the display position of the virtual ruler is close to or accurately fits the straight segment of the drawing to be measured.

在一种实现中,参照图20,当虚拟标尺的显示位置准确贴合要测量的绘画直线段时,检测模块可以获取到虚拟标尺所贴合的绘画直线段的长度值,并显示长度值。In one implementation, referring to FIG. 20 , when the display position of the virtual ruler accurately fits the drawn straight line segment to be measured, the detection module can acquire the length value of the drawn straight line segment where the virtual scale fits, and display the length value.

然而,当用户可能无法准确贴合要测量的绘画直线段,或者贴合要测量的绘画直线段所需的操作难度较高,可以在虚拟标尺位于待测量的绘画直线段附近时,就进行绘画直线段的长度测量和长度值显示。However, when the user may not be able to accurately fit the drawing line segment to be measured, or the operation required to fit the drawing line segment to be measured is relatively difficult, the user can draw when the virtual ruler is located near the drawing line segment to be measured Length measurement and length value display of straight line segments.

具体的,检测模块在检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段,显示所述绘画直线段的长度值,所谓存在姿态关联可以理解为虚拟标尺与绘画直线段的贴合程度很高,例如姿态关联可以通过方向差异和距离值来表示,当绘画直线段与虚拟标尺的方向差异小于预设值(例如小于20度、25度、30度、35度、40度、45度等);和/或,绘画直线段与所述虚拟标尺之间的距离值小于预设值(例如1cm、2cm、3cm等)时,可以认为所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段。Specifically, the detection module detects that there is a drawing line segment associated with the virtual scale on the touch screen, and displays the length value of the drawing line segment. The degree of fit is very high. For example, posture association can be expressed by direction difference and distance value. When the direction difference between the drawing line segment and the virtual ruler is less than the preset value (for example, less than 20 degrees, 25 degrees, 30 degrees, 35 degrees, 40 degrees , 45 degrees, etc.); and/or, when the distance between the drawing line segment and the virtual ruler is less than a preset value (such as 1cm, 2cm, 3cm, etc.), it can be considered that there is a distance between the virtual ruler and the virtual ruler on the touch screen. There is a straight line segment of the drawing associated with the pose.

其中,距离可以理解为虚拟标尺上与绘画直线段最近的点之间的距离,或者是虚拟标尺上的点与绘画直线段之间的距离的平均值,或者可以用其他可以表征虚拟标尺与绘画直线段之间的距离的方法。Among them, the distance can be understood as the distance between the nearest point on the virtual ruler and the drawing straight line segment, or the average value of the distance between the point on the virtual ruler and the drawing straight line segment, or can be used to characterize the virtual ruler and drawing The method for the distance between straight line segments.

应理解,当检测模块检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的多个绘 画直线段时,可以获取姿态关联的关联度最大的绘画直线段的长度值,并进行显示。It should be understood that when the detection module detects that there are multiple drawing straight line segments associated with the virtual ruler in gestures on the touch screen, the length value of the drawing straight line segment with the highest degree of gesture association can be acquired and displayed.

例如,存在姿态关联的多个绘画直线段(绘画直线段A、绘画直线段B),虚拟标尺与绘画直线段A之间的距离值为A1,虚拟标尺与绘画直线段B之间的距离值为B1,虚拟标尺与绘画直线段A之间的方向差异为A2,虚拟标尺与绘画直线段B之间的方向差异为B2,当A1等于A2,B1大于B2时,绘画直线段B与虚拟标尺的姿态关联的关联度最大,当A1大于A2,B1等于B2时,绘画直线段B与虚拟标尺的姿态关联的关联度最大。此外,还可以通过对距离值和方向差异进行运算,得到一个可以表征距离值和方向差异的特征量,该特征量与距离值和方向差异成正相关,特征量越大,则姿态关联的关联度越小。For example, there are multiple drawing straight segments (drawing straight segment A and drawing straight segment B) associated with postures, the distance value between the virtual ruler and the drawing straight segment A is A1, and the distance value between the virtual ruler and the drawing straight segment B is B1, the direction difference between the virtual ruler and the drawing line segment A is A2, the direction difference between the virtual ruler and the drawing line segment B is B2, when A1 is equal to A2, and B1 is greater than B2, the drawing line segment B and the virtual ruler The degree of correlation between the attitude of the drawing line segment B and the virtual scale is the largest when A1 is greater than A2 and B1 is equal to B2. In addition, by calculating the distance value and direction difference, a feature quantity that can represent the distance value and direction difference can be obtained. The feature quantity is positively correlated with the distance value and direction difference. smaller.

此外,当检测模块检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段,且虚拟标尺的显示位置未准确地贴合该绘画直线段时,可以基于绘画直线段的位置调整虚拟标尺的显示位置,以便所述虚拟标尺的显示位置与所述绘画直线贴合,也就是实现了类似于磁吸的显示效果。In addition, when the detection module detects that there is a drawing line segment associated with the posture of the virtual ruler on the touch screen, and the display position of the virtual ruler does not accurately fit the drawing line segment, it can be adjusted based on the position of the drawing line segment. The display position of the virtual ruler, so that the display position of the virtual ruler fits the drawing line, that is, a display effect similar to magnetic attraction is realized.

其中,调整虚拟标尺的显示位置可以包括对虚拟标尺的位置调整以及显示方向调整。Wherein, adjusting the display position of the virtual ruler may include adjusting the position and display direction of the virtual ruler.

具体的,在通过虚拟标尺进行测量时,虚拟标尺的预定义范围内的绘画直线段对虚拟标尺具有磁吸效果,在磁吸效果的影响下,虚拟标尺会自动改变姿态,自动和绘画直线段贴合。Specifically, when measuring through the virtual ruler, the drawing straight line segment within the predefined range of the virtual ruler has a magnetic attraction effect on the virtual ruler. fit.

示例性的,参照图21,图21中触摸屏显示有两个绘画直线段,参照图22a,用户的手侧面与触摸屏的接触区域移动至靠左的绘画直线段(以下称之为绘画直线段1),虚拟标尺会跟随用户的手势而移动,参照图22b,当虚拟标尺移动至靠左的绘画直线段附近,虚拟标尺会自动调整显示位置至与绘画直线段1贴合的位置,参照图22c,当用户的手侧面与触摸屏的接触区域继续向右,虚拟标尺会取消磁吸效果,也就是不贴合绘画直线段1,而继续跟随用户的手势移动,参照图22d,用户的手侧面与触摸屏的接触区域向右下移动,当虚拟标尺移动至靠右下的绘画直线段(绘画直线段2)附近,虚拟标尺会自动调整显示位置至与绘画直线段2贴合的位置。Exemplarily, referring to FIG. 21, the touch screen in FIG. 21 displays two straight line segments for drawing. Referring to FIG. ), the virtual ruler will move along with the user's gestures, refer to Figure 22b, when the virtual ruler moves to the left near the drawing straight line segment, the virtual ruler will automatically adjust the display position to fit the drawing straight line segment 1, refer to Figure 22c , when the contact area between the side of the user's hand and the touch screen continues to the right, the virtual ruler will cancel the magnetic effect, that is, it will not fit the straight line segment 1 of the drawing, and continue to follow the user's gesture. Referring to Figure 22d, the side of the user's hand and The contact area of the touch screen moves to the lower right, and when the virtual ruler moves to the vicinity of the lower right drawing line segment (drawing line segment 2), the virtual ruler will automatically adjust the display position to fit the drawing line segment 2.

本申请实施例中,如果绘画线在虚拟标尺附近,绘画线会对虚拟标尺有磁吸作用,并自动进行绘画线长度的测量,避免了手动将虚拟标尺和绘画线贴合的过程,减小了测量的难度,同时避免了在通过手动进行贴合时可能不能准确贴合的问题,提升了测量的精度。In the embodiment of the present application, if the drawing line is near the virtual scale, the drawing line will have a magnetic attraction effect on the virtual scale, and automatically measure the length of the drawing line, avoiding the process of manually fitting the virtual scale and the drawing line, reducing It reduces the difficulty of measurement, avoids the problem of inaccurate fitting when fitting manually, and improves the accuracy of measurement.

以上介绍了虚拟标尺的长度测量功能,接下来介绍虚拟标尺的距离测量功能:The length measurement function of the virtual ruler is introduced above, and the distance measurement function of the virtual ruler is introduced next:

2、距离测量功能2. Distance measurement function

本申请实施例中,所述虚拟标尺可以用于进行在所述触摸屏上显示的绘画点之间的距离测量。In the embodiment of the present application, the virtual ruler may be used to measure distances between drawing points displayed on the touch screen.

在一种可能的实现中,参照图23,触摸屏上可以显示有至少一个绘画线段,当用户想测量绘画线段上两个点之间的距离时,可以通过接触手势在触摸屏上的移动来调整虚拟标尺的显示位置,使得虚拟标尺与测量绘画线段上的两个点(或者多个点)交汇,进而,参照图24检测模块可以获取到两个交汇点(或者是多个交汇点中至少两个交汇点)之间的距离值,并进行距离值的显示。具体的,检测模块可以检测到所述触摸屏上的绘画线段与所 述虚拟标尺存在第一交点和第二交点,并显示所述第一交点和所述第二交点之间的距离值。In a possible implementation, referring to FIG. 23 , at least one drawing line segment can be displayed on the touch screen. When the user wants to measure the distance between two points on the drawing line segment, the virtual point can be adjusted by moving the touch gesture on the touch screen. The display position of the ruler is such that the virtual ruler intersects with two points (or multiple points) on the measured drawing line segment, and then, referring to Figure 24, the detection module can obtain two intersection points (or at least two of the plurality of intersection points) intersection point) and display the distance value. Specifically, the detection module may detect that there is a first intersection point and a second intersection point between the drawing line segment on the touch screen and the virtual scale, and display the distance value between the first intersection point and the second intersection point.

以上介绍了虚拟标尺的距离测量功能,接下来介绍虚拟标尺的画线功能:The distance measurement function of the virtual ruler is introduced above, and the line drawing function of the virtual ruler is introduced next:

3、画线功能3. Line drawing function

本申请实施例中,所述虚拟标尺用于作为在所述触摸屏上画直线时的参考工具。In the embodiment of the present application, the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.

类似于在物理空间中利用直尺画线的过程,虚拟标尺可以作为用户在触摸屏上画直线时的参考工具(参照图25),其中,所谓参考工具,可以理解为当绘画轨迹贴合直尺时,由于标尺的阻碍,使得绘画轨迹被限制为直线。Similar to the process of using a ruler to draw a line in physical space, the virtual ruler can be used as a reference tool when the user draws a straight line on the touch screen (see Figure 25). The so-called reference tool can be understood as when the drawing track fits the ruler When , due to the obstruction of the ruler, the drawing track is limited to a straight line.

与物理空间中的直尺不同的是,物理空间的直尺可以基于自身的结构特征来实现在画直线时可以被作为参考工具(在放置到绘画平面上时,用户使用画笔绘画时当绘画轨迹与直尺存在交汇时绘画轨迹会被直尺限制为直线,进而可以画出直线),而虚拟标尺仅仅是显示在触摸屏上的示能表示,因此需要识别出用户的画线轨迹(或者称之为画线位置)与虚拟标尺之间的位置关系,并基于画线位置与虚拟标尺之间的位置关系来限制画线轨迹。Different from the straightedge in the physical space, the straightedge in the physical space can be implemented based on its own structural characteristics and can be used as a reference tool when drawing a straight line (when placed on the drawing plane, when the user draws with a brush, the drawing track When there is an intersection with the ruler, the drawing trajectory will be restricted to a straight line by the ruler, and then a straight line can be drawn), and the virtual ruler is only an affordance displayed on the touch screen, so it is necessary to recognize the user's line drawing trajectory (or call it is the positional relationship between the line drawing position) and the virtual scale, and based on the positional relationship between the line drawing position and the virtual scale, limit the line drawing track.

接下来描述如何基于画线位置与虚拟标尺之间的位置关系来限制画线轨迹,进而实现基于虚拟标尺实现画直线的功能:Next, describe how to limit the line drawing trajectory based on the positional relationship between the line drawing position and the virtual ruler, and then realize the function of drawing a straight line based on the virtual ruler:

一方面,当在虚拟标尺一定范围内写画时(没有抬手动作),可以约束写画的范围不能越过虚拟标尺,即只能在虚拟标尺一侧写画,当写画范围越过虚拟标尺时,显示和虚拟标尺(可以进行写画的一侧)贴合的直线,进而相当于虚拟标尺起到了和物理空间中直尺类似的功能(参照图27所示,图27中的左图为用户的实际画线轨迹,右图为矫正后显示的绘画直线)。On the one hand, when writing within a certain range of the virtual ruler (without raising your hand), you can restrict the range of writing and drawing not to cross the virtual ruler, that is, you can only write on one side of the virtual ruler. When the drawing range exceeds the virtual ruler , displaying the straight line that fits with the virtual ruler (the side that can be used for writing and drawing), which is equivalent to that the virtual ruler has a function similar to that of the ruler in the physical space (refer to Figure 27, the left picture in Figure 27 is the user The actual drawing line trajectory, the right picture is the drawing straight line displayed after correction).

另一方面,可以响应在虚拟标尺预定义范围内的写画行为,将写画的绘画轨迹校正为直线(参照图26所示,图26中的左图为用户的实际画线轨迹,右图为矫正后显示的绘画直线),通过上述方式当用户沿着虚拟标尺划线,会自动画出直线。On the other hand, in response to the writing and drawing behavior within the predefined range of the virtual scale, the drawing trajectory of the writing and painting can be corrected as a straight line (refer to Figure 26, the left figure in Figure 26 is the user's actual line drawing trajectory, and the right figure is the drawing straight line displayed after correction), when the user draws a line along the virtual ruler through the above method, a straight line will be drawn automatically.

具体的,检测模块可以检测到在所述触摸屏上的画线手势,基于所述触摸屏上显示有所述虚拟标尺,且所述画线手势的画线位置与所述虚拟标尺之间的距离在预设距离内(例如1cm、2cm、3cm、4cm、5cm等等),根据所述画线手势的画线位置,显示绘画直线段,其中,所述绘画直线段与所述虚拟标尺平行。Specifically, the detection module may detect a line-drawing gesture on the touch screen, based on the fact that the virtual scale is displayed on the touch screen, and the distance between the line-drawing position of the line-drawing gesture and the virtual scale is within Within a preset distance (such as 1 cm, 2 cm, 3 cm, 4 cm, 5 cm, etc.), according to the line drawing position of the line drawing gesture, a drawing line segment is displayed, wherein the drawing line segment is parallel to the virtual ruler.

且为了得到预期长度的线条,在沿着尺子划线写画时,可以计算并显示首末两个画点之间的绘画直线,并显示绘画直线的长度。在一种可能的实现中,所述画线位置包括起始点位置以及终止点位置,所述绘画直线段为所述起始点位置与所述终止点位置之间的线段(参照图28所示,图28中的左图为用户的实际画线轨迹,右图为矫正后显示的绘画直线),且检测模块可以基于所述实时画线位置,显示画线长度,所述画线长度为所述起始点位置与所述实时画线位置之间的距离值。And in order to get a line of expected length, when drawing along the ruler, the drawing line between the first and last two drawing points can be calculated and displayed, and the length of the drawing line can be displayed. In a possible implementation, the line drawing position includes a starting point position and an ending point position, and the drawing straight line segment is a line segment between the starting point position and the ending point position (refer to FIG. 28 , The left picture in Fig. 28 is the user's actual drawing line trajectory, and the right picture is the drawing straight line displayed after correction), and the detection module can display the drawing line length based on the real-time drawing line position, and the drawing line length is the described The distance value between the starting point position and the real-time drawing line position.

也就是说,如果画的线段长度超过预期值,可以往回画,会起到删除效果,只要末端画点与起始画点的距离为预期值,生成的线段就是预期值,且画出的曲线(曲线与虚拟标尺的距离在预设范围内)会被自动校正为直线。That is to say, if the length of the line segment drawn exceeds the expected value, you can draw it back, which will have a deletion effect. As long as the distance between the end point and the start point is the expected value, the generated line segment is the expected value, and the drawn Curves (the distance between the curve and the virtual ruler is within the preset range) will be automatically corrected to a straight line.

如图29所示,假设用户在画图时,需要画一条长度是15cm的线段(即线段长度预期 值为15cm),从起始点位置起画。然而,用户在屏幕上画线段时,不能像在白纸上沿着直尺划线一样精确的画出15cm的线段,很有可能画出的线段长度超过15cm,比如画笔轨迹校正后(在后台实现,用户看到的就是直线)得到的线段A1长度为25(如图29中的左图所示)。As shown in Figure 29, suppose the user needs to draw a line segment with a length of 15cm (that is, the expected length of the line segment is 15cm) when drawing a picture, starting from the starting point. However, when the user draws a line segment on the screen, he cannot draw a 15cm line segment as accurately as when drawing a line along a ruler on a white paper. Realize that what the user sees is a straight line) The length of the obtained line segment A1 is 25 (as shown in the left figure in Figure 29).

此时,一般的方案是擦除一部分或者重新画,但是擦除或重新画也很难得到精确长度的线段。在本示例中,如图29中的右图所示,将手写笔往反方向移动,则终止点位置往回移动(起始点位置就是手写笔的画图起点,终止点位置就是手写笔画图时的最后位置,在画图过程中,终止点位置可以视为动态移动的,直到完成画图,手写笔脱离的位置就是最终的终止点位置)。At this time, the general solution is to erase a part or redraw, but it is also difficult to obtain a line segment of an accurate length by erasing or redrawing. In this example, as shown in the right figure in Figure 29, if you move the stylus in the opposite direction, the position of the end point will move back (the position of the start point is the starting point of drawing with the stylus, and the position of the end point is the position of the stylus when drawing a picture) The last position, during the drawing process, the position of the end point can be regarded as a dynamic movement, until the drawing is completed, the position where the stylus is detached is the final end point position).

在图29中的右图中,手写笔反方向移动时,由于虚拟标尺会将手写笔画出的直线/曲线校正为直线,因此,在线段A2部分,相当于会画两次,第一次(正向画)画出轨迹线,第二次(反向画)与第一次画的重复时,将重复的线段A2删除,即擦除了部分第一次的直线,最终只保留起始点位置和终止点位置之间的线段A3。在标注线段内的长度时,只标注起始点位置和终止点位置之间的线段A3长度。删除线段后,手写笔重新画过时,又可以重新画出,因此,可以通过(反复)调整终止点位置的位置,来得到预期长度15cm的线段。In the right picture in Figure 29, when the stylus moves in the opposite direction, since the virtual ruler will correct the straight line/curve drawn by the stylus to a straight line, the line segment A2 is equivalent to drawing twice, the first time ( Forward drawing) to draw the trajectory line, when the second (reverse drawing) is repeated with the first drawing, the repeated line segment A2 is deleted, that is, part of the first straight line is erased, and finally only the starting point position is retained and the line segment A3 between the position of the end point. When marking the length within the line segment, only mark the length of the line segment A3 between the start point position and the end point position. After the line segment is deleted, the stylus can be drawn again when it is redrawn. Therefore, a line segment with an expected length of 15 cm can be obtained by (repeatedly) adjusting the position of the end point.

应理解,为了避免画几何图形时,两个线段的交点被删除(比如,正方形的对角线交点,画两条不同的对角线时,交点也会先后画两次)。重复画线的删除效果可以增加时间判定机制,只有在预定时间内,同一线段被画两次,才有删除的效果。或者通过其他判定机制实现,比如前后两次的手写笔移动方向相反才满足删除判定等方向机制。It should be understood that in order to avoid drawing geometric figures, the intersection of two line segments is deleted (for example, the intersection of the diagonals of a square, when drawing two different diagonals, the intersection will also be drawn twice). The deletion effect of repeated line drawing can increase the time judgment mechanism. Only when the same line segment is drawn twice within the predetermined time can the deletion effect be achieved. Or it can be realized through other judgment mechanisms. For example, only when the direction of movement of the stylus is opposite twice before and after is met, the direction mechanism such as deletion judgment is satisfied.

本申请实施例中,将直尺两个功能:测量和画直线,转换为适合虚拟界面的智能操作,测量是自动显示测量值,画直线时显示长度值,去除了物理世界的局限,节省了用户读数的时间,大幅提升用户效率。In the embodiment of this application, the two functions of the ruler: measuring and drawing a straight line are converted into intelligent operations suitable for the virtual interface. The measurement is to automatically display the measured value, and the length value is displayed when drawing a straight line, which removes the limitations of the physical world and saves It takes less time for users to take readings, greatly improving user efficiency.

本申请实施例提供了一种虚拟标尺显示方法,包括:检测与所述触摸屏的接触手势;基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。当检测到接触手势指示用户的手侧面与所述触摸屏的接触时,触发虚拟标尺的显示,一方面只需要用户的单手进行操作,操作难度和成本很小,另一方面,当用户的手部展开时,手侧面与触摸屏的接触区域为扁平的长条状区域,接近于一条直线,基于这种操作模式触发虚拟标尺的显示更符合用户的操作习惯。An embodiment of the present application provides a method for displaying a virtual scale, including: detecting a contact gesture with the touch screen; indicating the contact of the user's hand side with the touch screen based on the contact gesture, and according to the contact area of the contact gesture, A virtual scale is displayed on the touch screen, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale is attached to a long side of the strip-shaped area. When a contact gesture is detected indicating that the side of the user's hand is in contact with the touch screen, the display of the virtual scale is triggered. On the one hand, only the user's single hand is required to operate, and the operation difficulty and cost are very small. On the other hand, when the user's hand When the upper part is unfolded, the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode, triggering the display of the virtual scale is more in line with the user's operation habits.

参照图37a,图37a为本申请实施例提供的一种对象复制方法的流程示意,如图37a所示,本申请实施例提供的一种对象复制方法包括:Referring to Fig. 37a, Fig. 37a is a schematic flowchart of an object copying method provided by the embodiment of the present application. As shown in Fig. 37a, an object copying method provided by the embodiment of the present application includes:

3701、检测到针对于触摸屏上显示的目标对象的拖动手势。3701. Detect a drag gesture for a target object displayed on the touch screen.

在主流终端设备(如智能手机、平板电脑)上有和复制操作相关的手势,例如已有的操作逻辑包括三指捏合完成复制,三指松开进行粘贴。同时,对复制粘贴,业界有一套基本逻辑:选中内容、右键或特殊按钮进入语义菜单、点击复制按钮、移动到目标位置后调 出语义菜单、点击粘贴按钮。可见主流方式复制粘贴前都必须特别选中元素作为前提,操作步骤很多,复制粘贴操作的操作代价很高。There are gestures related to the copy operation on mainstream terminal devices (such as smartphones and tablet computers). For example, the existing operation logic includes three-finger pinch to complete copy, and three-finger release to paste. At the same time, for copy and paste, the industry has a set of basic logic: select the content, right click or special button to enter the semantic menu, click the copy button, move to the target position to call up the semantic menu, and click the paste button. It can be seen that the mainstream method must select elements as a prerequisite before copying and pasting. There are many operation steps, and the operation cost of copying and pasting is very high.

本申请实施例中,在进行复制粘贴操作时,可以将复制对象拖拽至需要进行粘贴的位置,抬手的位置即为粘贴的位置。In the embodiment of the present application, when performing a copy and paste operation, the copied object can be dragged to a position to be pasted, and the position where the hand is raised is the pasted position.

接下来描述如何进行复制对象的选择:The following describes how to select the copied object:

1、通过长按手势:1. By long press gesture:

本申请实施例中,在检测到针对于所述目标对象的长按手势时,可以使能针对于所述目标对象的复制功能。其中,长按手势可以为双指长按手势,例如可以参照图37b。In this embodiment of the present application, when a long press gesture for the target object is detected, the copy function for the target object may be enabled. Wherein, the long press gesture may be a two-finger long press gesture, for example, refer to FIG. 37b.

其中,目标对象为触摸屏上显示的绘画对象,例如可以为一个字符、图案、笔画等等。Wherein, the target object is a drawing object displayed on the touch screen, for example, it may be a character, pattern, stroke or the like.

其中,长按手势可以包括轻按压和深按压,当接触强度从低于轻按压强度阈值的强度增大到介于轻按压强度阈值与深按压强度阈值之间的强度时可以称为检测到触摸表面上的“轻按压”输入。接触强度从低于深按压强度阈值的强度增大到高于深按压强度阈值的强度可以称为检测到触摸表面上的“深按压”输入。接触强度从低于接触检测强度阈值的强度增大到介于接触检测强度阈值与轻按压强度阈值之间的强度可以称为检测到触摸表面上的“轻扫触摸”输入。接触强度从高于接触检测强度阈值的强度减小到低于接触检测强度阈值的强度时可以称为检测到接触从触摸表面抬离(也就是抬手手势)。在一些实施方案中,接触检测强度阈值为零。在一些实施方案中,接触检测强度阈值可以大于零。Wherein, the long press gesture may include a light press and a deep press, and when the contact intensity increases from an intensity lower than the light press intensity threshold to an intensity between the light press intensity threshold and the deep press intensity threshold, it may be called a touch detection "Light press" input on the surface. An increase in contact intensity from an intensity below the deep press intensity threshold to an intensity above the deep press intensity threshold may be referred to as detecting a "deep press" input on the touch surface. An increase in contact intensity from an intensity below the contact detection intensity threshold to an intensity between the contact detection intensity threshold and the light press intensity threshold may be referred to as detecting a "swipe touch" input on the touch surface. When the contact intensity decreases from an intensity higher than the contact detection intensity threshold to an intensity lower than the contact detection intensity threshold, it may be referred to as detecting that the contact is lifted from the touch surface (ie, a hand-raising gesture). In some embodiments, the contact detection intensity threshold is zero. In some embodiments, the contact detection intensity threshold may be greater than zero.

在一种可能的实现中,除了当用户轻扫触摸屏时会认为是误触,长按手势的维持时间过小时也可以认为是误触,在这种情况下也可以不触发虚拟标尺的显示。In a possible implementation, besides when the user swipes the touch screen, it will be considered as a false touch, and if the duration of the long press gesture is too short, it can also be considered as a false touch. In this case, the display of the virtual ruler may not be triggered.

本申请实施例中,还可以以长按手势的维持时间作为触发使能针对于所述目标对象的复制功能的条件,也就是需要检测到长按手势的维持时间大于预设时间,例如预设时间可以设置为0.1S、0.15S、0.2S、0.25S、0.3S、0.35S、0.4S、0.45S、1S、2S。In this embodiment of the present application, the duration of the long-press gesture can also be used as a trigger to enable the copy function for the target object, that is, it needs to be detected that the duration of the long-press gesture is greater than a preset time, such as a preset The time can be set as 0.1S, 0.15S, 0.2S, 0.25S, 0.3S, 0.35S, 0.4S, 0.45S, 1S, 2S.

其中,长按手势的维持时间可以是以检测到长按手势就开始计时,或者是检测到长按手势与触摸屏的接触强度大于一定接触强度阈值(大于0的阈值)之后才开始计时,维持时间可以是以检测到长按手势的接触强度为0时结束计时,或者是检测到长按手势的接触强度小于一定接触强度阈值(大于0的阈值)时结束计时。Wherein, the maintenance time of the long press gesture can start counting when the long press gesture is detected, or after detecting that the contact intensity between the long press gesture and the touch screen is greater than a certain contact intensity threshold (threshold greater than 0), the maintenance time The timing can be ended when the contact intensity of the long press gesture is detected to be 0, or when the contact intensity of the long press gesture is detected to be less than a certain contact intensity threshold (threshold greater than 0).

其中,长按手势的维持时间可以是长按手势保持静止状态(或者移动小于一定幅度)时的维持时间,例如长按手势的维持时间可以是处于静止的按压手势(或者移动小于一定幅度)时的维持时间。应理解,上述静止可以理解为长按手势的接触区域不移动或者移动幅度很小。Wherein, the maintenance time of the long press gesture can be the maintenance time when the long press gesture remains in a static state (or the movement is less than a certain range), for example, the maintenance time of the long press gesture can be when the press gesture is at rest (or the movement is less than a certain range) the maintenance time. It should be understood that the above static can be interpreted as that the contact area of the long press gesture does not move or moves in a small range.

其中,所谓使能针对于目标对象的复制功能可以理解为激活复制状态,在复制状态未被激活的状态下,写画界面上的显示元素不能被复制,在使用其他手势操作时,都是对显示元素本身的操作;只有使能针对于显示元素的复制功能后,显示元素的复制状态才被激活,才能够响应接下来的和复制粘贴相关的操作。Among them, the so-called enabling the copy function for the target object can be understood as activating the copy state. When the copy state is not activated, the display elements on the drawing and writing interface cannot be copied. The operation of the display element itself; only after the copy function for the display element is enabled, the copy status of the display element is activated, and it can respond to the next operations related to copy and paste.

其中,所谓针对于所述目标对象的长按手势,可以理解为长按手势的接触区域覆盖有目标对象。Wherein, the so-called long press gesture for the target object can be understood as the target object is covered by the contact area of the long press gesture.

在一种可能的实现中,检测模块在检测到长按手势时,如果长按手势的接触区域内没 有显示元素,则不会触发复制指令(也就是不会使能针对于显示元素的复制功能)。如果有显示元素(例如目标对象),则可以选中显示元素,并将该范围内的显示元素置于复制激活状态(也就是使能针对于目标对象的复制功能)。In a possible implementation, when the detection module detects the long press gesture, if there is no display element in the contact area of the long press gesture, the copy command will not be triggered (that is, the copy function for the display element will not be enabled. ). If there is a display element (for example, a target object), the display element can be selected, and the display elements within this range are placed in a copy activation state (that is, the copy function for the target object is enabled).

以长按手势为双指长按手势为例,当如果触摸手势为双指长按手势,且接触区域内存在显示元素,则选中该显示元素,并使该元素置于复制激活态(也就是使能针对于所述目标对象的复制功能)。Taking the long-press gesture as an example of a two-finger long-press gesture, if the touch gesture is a two-finger long-press gesture, and there is a display element in the contact area, then select the display element and put the element in a copy-activated state (that is, enable replication for the target object).

在一种实现中,所谓针对于所述目标对象的长按手势,还可以理解为长按手势的接触区域在所述目标对象周围预设距离内。In one implementation, the so-called long press gesture for the target object may also be understood as the contact area of the long press gesture is within a preset distance around the target object.

本申请实施例中,对于长按手势的接触区域可以关联于一个固定的预定义范围,也可以在预定义范围的基础上进行延伸,比如,在预定义范围的边界的预设距离内又发现图案,则可以将范围延伸到新发现的图案上,同时新发现的图案也可以适用该延伸,例如,参照图43,双指长按“牛”字时,根据预定义的范围确定一个圆形区域,并选择圆形区域内的图案,即选中“牛”字,例如,参照图44,还可以再执行边界附近判定,在圆形边界的预设距离(比如5mm)内,查找是否有图案,然后选中“年”字的至少一个笔画,然后选中整个“年”字,再依次选中“大”字和“吉”字。这样,可以一次选中“牛年大吉”四个字。在进行范围延伸时,延伸的形状可以是和预定义的形状相适应,比如,执行圆的平移,最终得到椭圆形。也可以是和边界判断的预设距离相适应,比如实际的形状和字的边界相适应的不规则图案。In the embodiment of the present application, the contact area of the long press gesture can be associated with a fixed predefined range, or can be extended on the basis of the predefined range, for example, within the preset distance of the boundary of the predefined range, it can be found pattern, the range can be extended to the newly discovered pattern, and the newly discovered pattern can also be applied to this extension. For example, referring to Figure 43, when two fingers long press the word "cow", a circle is determined according to the predefined range area, and select the pattern in the circular area, that is, select the word "cow". For example, referring to Figure 44, you can also perform a judgment near the boundary to find whether there is a pattern within the preset distance (such as 5mm) of the circular boundary , then select at least one stroke of the word "Nian", then select the entire "Nian" character, and then select the characters "Da" and "Ji" in turn. In this way, the four words "good luck in the year of the ox" can be selected at one time. When performing range extension, the extended shape can be adapted to a predefined shape, for example, a circular translation is performed to finally obtain an ellipse. It can also be adapted to the preset distance of the boundary judgment, such as an irregular pattern that is adapted to the actual shape and the boundary of the word.

应理解,当选中不需要复制的图案时,这种延伸是可以打断的。比如,参照图45,可以使用额外的手指滑动将选中的区域分成两部分,则相对原理双指的那部分区域取消选中。如下图,分割后,“吉”字未被选中,则双指移动时,就只复制“牛年大”。It should be understood that this extension can be interrupted when a pattern that does not need to be copied is selected. For example, referring to FIG. 45 , an additional finger slide can be used to divide the selected area into two parts, and then the area corresponding to the two-finger part is deselected. As shown in the figure below, after splitting, if the word "Ji" is not selected, when you move two fingers, only "Nian Da of the Ox" will be copied.

2、通过单击手势:2. By single-click gesture:

本申请实施例中,可以在检测到针对于所述目标对象的单击手势,使能针对于所述目标对象的复制功能。In the embodiment of the present application, the copy function for the target object may be enabled after detecting the click gesture for the target object.

在一种可能的实现中,参考图40,检测到针对于所述目标对象的单击手势可以理解为检测到与所述触摸屏的接触区域覆盖所述目标对象的单击手势。In a possible implementation, referring to FIG. 40 , the detection of the click gesture for the target object may be understood as the detection of a click gesture in which the contact area with the touch screen covers the target object.

单击选中复制和长按选中复制的区别在于,单击选中是选中一个对象,双指选中则选中的是预定义范围内的显示元素,这对于写画板上的复制是至关重要的,在写画板上写画时,由于文字由笔画组成,写画时,笔画是独立的,因此,一个笔画即为一个图案,由若干个图案(笔画)组成一个字,因此,单击选中时,只能选中一个笔画(不考虑连笔的情况),则复制只能复制选中的笔画(比如上图中的横笔),不能完整的复制整个字。而双指选中时,选中的是双指区域内的图案,可以选择整个字,因而可以完整的复制整个字。The difference between single-click to select and long-press to select and copy is that single-click to select an object, and two-finger selection selects the display elements within a predefined range, which is crucial for copying on the drawing board. When writing on the drawing board, because the text is composed of strokes, when writing, the strokes are independent. Therefore, one stroke is a pattern, and a word is composed of several patterns (strokes). Therefore, when you click to select, only If one stroke can be selected (regardless of continuous strokes), the copy can only copy the selected stroke (such as the horizontal stroke in the picture above), and cannot completely copy the entire character. When selecting with two fingers, the pattern in the area of the two fingers is selected, and the entire character can be selected, so the entire character can be completely copied.

此外,参照图46和图47,还可以基于触摸屏上显示的框选控件(可以是实体的,也可以是虚拟的)来进行目标对象的复制选择,选中该按钮后,可以进行图标的框选,选中图标后,再进行目标对象的选择,进而使能针对于所述目标对象的复制功能。In addition, with reference to Fig. 46 and Fig. 47, the copy selection of the target object can also be performed based on the frame selection control (which can be physical or virtual) displayed on the touch screen. After the button is selected, the frame selection of the icon can be carried out , after selecting the icon, select the target object, and then enable the copy function for the target object.

以上介绍了如何使能针对于目标对象的复制功能,接下来描述如何对目标对象进行复制操作:The above describes how to enable the copy function for the target object, and then describes how to copy the target object:

本申请实施例中,用户在触摸屏上进行针对于目标对象的拖动手势,拖动手势的终点(也就是抬手手势的位置)可以为需要进行针对于目标对象的粘贴操作的位置。其中,拖动手势可以为双指拖动手势。In the embodiment of the present application, the user performs a drag gesture on the touch screen for the target object, and the end point of the drag gesture (that is, the position of the hand-raising gesture) may be the position where the paste operation for the target object needs to be performed. Wherein, the drag gesture may be a two-finger drag gesture.

在一种可能的实现中,用户通过长按手势触发针对于目标对象的复制功能,则所述拖动手势可以为保持所述长按手势与所述触摸屏的接触且在所述触摸屏上发生移动的手势。In a possible implementation, the user triggers the copy function for the target object through a long press gesture, then the drag gesture may be to keep the long press gesture in contact with the touch screen and move on the touch screen gesture.

在一种可能的实现中,参照图41,用户通过点击手势触发针对于目标对象的复制功能,则可以再用拖动手势进行复制操作,也就是选择操作和复制操作是分离的,这时候,拖动手势的触摸区域的起点可以不在(也可以在)目标对象的显示位置附近,而是可以在触摸屏的任意显示位置进行拖动,均可以使复制的目标对象进行复制操作,并拖动目标对象沿着双指滑动的方向进行滑动。In a possible implementation, referring to Figure 41, the user triggers the copy function for the target object through the click gesture, and then uses the drag gesture to perform the copy operation, that is, the selection operation and the copy operation are separated. At this time, The starting point of the touch area of the drag gesture may not be (or be) near the display position of the target object, but can be dragged at any display position on the touch screen, and the copied target object can be copied, and the target object can be dragged The object slides in the direction of the two-finger swipe.

3702、响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;3702. In response to the drag gesture, display the mirror image of the target object on the touch screen, and update the display position of the mirror image in real time according to the drag gesture, so that the mirror image follows the drag gesture move;

参照图38,本申请实施例中,检测模块在检测到针对于目标对象的拖动手势之后,目标对象具有被拖动走的趋势,在检测到拖动手势的指令后,进行目标对象的复制操作,复制该目标对象,产生一个复制体(或者称之为镜像),并使镜像跟随拖动手势的移动而移动,目标对象的本体仍然在原来的位置不滑动。Referring to FIG. 38 , in the embodiment of the present application, after the detection module detects a drag gesture for the target object, the target object has a tendency to be dragged away, and after detecting the instruction of the drag gesture, the target object is copied Operation, copy the target object, generate a copy body (or called a mirror image), and make the mirror image move with the movement of the drag gesture, and the body of the target object is still in the original position without sliding.

在一种可能的实现中,为了指示复制体,目标对象的镜像可以呈现为半虚化状态。In a possible implementation, in order to indicate the replica, the mirror image of the target object may appear in a semi-blurred state.

3703、检测到抬手手势。3703. A hand raising gesture is detected.

关于抬手手势的具体描述可以参照上述实施例中相关的描述,这里不再赘述。For a specific description of the hand-raising gesture, reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here.

3704、响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。3704. In response to the hand-raising gesture, fix and display the mirror image at the display position where the mirror image is located.

参照图39和图42,本申请实施例中,当拖动手势滑动至预期位置后,进行抬手手势,也就是手部和显示屏脱离接触或者是接触强度小于阈值时,触发粘贴操作,也就是将目标对象粘贴在抬手手势的位置,进而完成复制粘贴过程。Referring to Fig. 39 and Fig. 42, in the embodiment of the present application, when the drag gesture slides to the expected position, the hand gesture is performed, that is, when the hand is out of contact with the display screen or the contact intensity is less than the threshold, the paste operation is triggered. It is to paste the target object at the position of the hand gesture, and then complete the copy and paste process.

此外,上述复制操作的手势规则不仅适用于写画界面上的写画元素,还适用于显示界面上文本的复制,参照图48,选中文本后,针对选中的文本进行长按(例如图48中示出的双指长按),拖动即可复制一个复制体,释放后,复制体显示在手指脱离位置。In addition, the above-mentioned gesture rules for the copy operation are not only applicable to the drawing elements on the drawing interface, but also applicable to the copying of text on the display interface. Referring to Figure 48, after selecting the text, press and hold the selected text (for example, in Figure 48 Press and hold with two fingers as shown), drag to copy a copy, after release, the copy will be displayed at the position where the finger leaves.

本申请实施例提供了一种对象复制方法,所述方法包括:检测到针对于触摸屏上显示的目标对象的拖动手势;响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;检测到抬手手势;响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。拖动手势进行复制粘贴的方式,简单直观,降低了现有复制粘贴所需要步骤数量,缩短了复制粘贴的过程。An embodiment of the present application provides an object copying method, the method comprising: detecting a drag gesture for a target object displayed on a touch screen; in response to the drag gesture, displaying the target object on the touch screen and according to the drag gesture, update the display position of the mirror image in real time, so that the mirror image moves with the drag gesture; detect a hand-raising gesture; respond to the hand-raising gesture, move the mirror image It is fixedly displayed at the display position where the mirror image is located. The method of copying and pasting by dragging gestures is simple and intuitive, which reduces the number of steps required for existing copy and paste, and shortens the process of copying and pasting.

此外,基于长按手势来激发复制激活态,从而可以进行复制的方式,手势简单,为常用手势,操作简便且符合用户认知。In addition, based on the long-press gesture to activate the copy activation state, the way of copying can be performed. The gesture is simple and commonly used, and the operation is simple and conforms to the user's cognition.

参照图49,图49为本申请实施例提供的一种虚拟标尺显示装置的结构示意,应用于电子设备,所述电子设备包括触摸屏,所述装置4900包括:Referring to Fig. 49, Fig. 49 is a schematic structural diagram of a virtual ruler display device provided by an embodiment of the present application, which is applied to electronic equipment, the electronic equipment includes a touch screen, and the device 4900 includes:

检测模块4901,用于检测与所述触摸屏的接触手势;A detection module 4901, configured to detect a contact gesture with the touch screen;

关于检测模块4901的具体描述可以参照步骤301的描述,这里不再赘述。For a specific description of the detection module 4901, reference may be made to the description of step 301, which will not be repeated here.

显示模块4902,用于基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。The display module 4902 is configured to indicate the contact of the side of the user's hand with the touch screen based on the contact gesture, and display a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale is attached to the long side of the strip-shaped area.

关于显示模块4902的具体描述可以参照步骤302的描述,这里不再赘述。For a specific description of the display module 4902, reference may be made to the description of step 302, which will not be repeated here.

在一种可能的实现中,所述手侧面为用户的手部在展开状态下位于小拇指一侧的手侧面。In a possible implementation, the side of the hand is the side of the user's hand that is located on the side of the little finger in an unfolded state.

在一种可能的实现中,所述接触区域包括:In a possible implementation, the contact area includes:

用户的手侧面的小鱼际部位与所述触摸屏的接触区域;或者,the contact area of the hypothenar portion of the side of the user's hand with the touch screen; or,

用户的手侧面的小拇指部位与所述触摸屏的接触区域。The contact area between the little finger on the side of the user's hand and the touch screen.

在一种可能的实现中,所述装置还包括:In a possible implementation, the device also includes:

确定模块4904,用于基于所述接触手势的接触区域满足预设条件,确定所述接触手势指示所述用户的手侧面与触摸屏的接触;所述预设条件包括:A determining module 4904, configured to determine that the contact gesture indicates contact between the side of the user's hand and the touch screen based on that the contact area of the contact gesture satisfies a preset condition; the preset condition includes:

所述接触区域为长条状区域,所述长条状区域的形状和面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的特点。The contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen.

在一种可能的实现中,所述装置还包括:In a possible implementation, the device also includes:

获取模块4903,用于获取所述接触手势的手势数据;An acquisition module 4903, configured to acquire gesture data of the contact gesture;

所述确定模块4904,还用于根据所述手势数据,通过神经网络,确定所述接触手势指示所述用户的手侧面与触摸屏的接触。The determination module 4904 is further configured to determine, according to the gesture data, through a neural network, that the contact gesture indicates that the side of the user's hand is in contact with the touch screen.

在一种可能的实现中,所述虚拟标尺与所述长条状区域的长边贴合,包括:In a possible implementation, the virtual ruler is attached to the long side of the strip-shaped region, including:

所述虚拟标尺的方向与所述长条状区域的长边指示的方向之间的锐夹角小于预设值;且所述虚拟标尺与所述长条状区域满足如下条件的一个:The acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value; and the virtual scale and the strip-shaped area meet one of the following conditions:

所述虚拟标尺与所述长条状区域存在重叠;或者,所述虚拟标尺与所述长条状区域相切;或者,所述虚拟标尺与所述长条状区域之间的距离小于预设值。There is overlap between the virtual scale and the strip-shaped area; or, the virtual scale is tangent to the strip-shaped area; or, the distance between the virtual scale and the strip-shaped area is less than a preset value.

在一种可能的实现中,所述检测模块4901,用于在所述根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺之前,检测到所述接触手势的维持时间大于预设时间。In a possible implementation, the detection module 4901 is configured to detect that the duration of the contact gesture is longer than a preset before displaying a virtual ruler on the touch screen in the contact area according to the contact gesture time.

在一种可能的实现中,所述检测模块4901,用于检测到所述接触手势的接触区域的移动;In a possible implementation, the detection module 4901 is configured to detect the movement of the contact area of the contact gesture;

所述显示模块4902,用于调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置跟随所述接触区域。The display module 4902 is configured to adjust the display position of the virtual ruler so that the display position of the virtual ruler follows the contact area.

在一种可能的实现中,所述检测模块4901,用于检测到用户的抬手手势;In a possible implementation, the detection module 4901 is configured to detect the user's hand-raising gesture;

所述显示模块,用于响应于所述抬手手势,在所述触摸屏上隐藏所述虚拟标尺的显示。The display module is configured to hide the display of the virtual ruler on the touch screen in response to the hand-raising gesture.

在一种可能的实现中,所述基于所述接触手势指示所述用户的手侧面与触摸屏的接触,包括:In a possible implementation, the instructing the contact of the side of the user's hand with the touch screen based on the contact gesture includes:

基于所述接触手势指示所述用户的手侧面与触摸屏进行了预设次数的敲击;Instructing the side of the user's hand to tap the touch screen for a preset number of times based on the contact gesture;

所述在所述触摸屏上显示虚拟标尺之后,所述方法还包括:After the virtual ruler is displayed on the touch screen, the method further includes:

检测到用户的抬手手势;The user's hand gesture is detected;

响应于所述抬手手势,在所述触摸屏上维持所述虚拟标尺的显示。In response to the raising hand gesture, maintaining display of the virtual ruler on the touch screen.

在一种可能的实现中,所述检测模块4901,用于检测到用户针对于所述虚拟标尺的选择指令;In a possible implementation, the detection module 4901 is configured to detect a user's selection instruction for the virtual scale;

所述显示模块,用于响应于所述选择指令,显示触发控件,所述触发控件用于指示对所述虚拟标尺进行如下的至少一种操作:The display module is configured to display a trigger control in response to the selection instruction, and the trigger control is used to indicate at least one of the following operations on the virtual scale:

删除操作、位置调整操作以及旋转操作。Delete operations, reposition operations, and rotation operations.

在一种可能的实现中,所述虚拟标尺用于进行在所述触摸屏上显示的绘画直线段的长度测量;或者,In a possible implementation, the virtual ruler is used to measure the length of a drawn line segment displayed on the touch screen; or,

所述虚拟标尺用于进行在所述触摸屏上显示的绘画点之间的距离测量。The virtual ruler is used for distance measurement between drawing points displayed on the touch screen.

在一种可能的实现中,所述检测模块4901,用于检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段;In a possible implementation, the detection module 4901 is configured to detect that there is a drawing line segment associated with the gesture of the virtual ruler on the touch screen;

所述显示模块,用于显示所述绘画直线段的长度值;所述存在姿态关联包括:The display module is used to display the length value of the straight line segment of the drawing; the existence gesture association includes:

与所述虚拟标尺的方向差异小于预设值;和/或,The direction difference from the virtual scale is smaller than a preset value; and/or,

与所述虚拟标尺之间的距离值小于预设值。The distance from the virtual ruler is smaller than a preset value.

在一种可能的实现中,所述显示模块4902,用于根据所述待测量线段的位置,调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置与所述绘画直线贴合。In a possible implementation, the display module 4902 is configured to adjust the display position of the virtual ruler according to the position of the line segment to be measured, so that the display position of the virtual ruler fits with the drawn straight line.

在一种可能的实现中,所述检测模块4901,用于在所述触摸屏上显示虚拟标尺之后,检测到所述触摸屏上的绘画线段与所述虚拟标尺存在第一交点和第二交点;In a possible implementation, the detection module 4901 is configured to detect that there is a first intersection point and a second intersection point between the drawn line segment on the touch screen and the virtual scale after the virtual scale is displayed on the touch screen;

所述显示模块4902,用于显示所述第一交点和所述第二交点之间的距离值。The display module 4902 is configured to display the distance value between the first intersection point and the second intersection point.

在一种可能的实现中,所述虚拟标尺用于作为在所述触摸屏上画直线时的参考工具。In a possible implementation, the virtual ruler is used as a reference tool when drawing a straight line on the touch screen.

在一种可能的实现中,所述检测模块4901,用于检测到在所述触摸屏上的画线手势;In a possible implementation, the detection module 4901 is configured to detect a gesture of drawing a line on the touch screen;

所述显示模块4902,用于基于所述触摸屏上显示有所述虚拟标尺,且所述画线手势的画线位置与所述虚拟标尺之间的距离在预设距离内,根据所述画线手势的画线位置,显示绘画直线段,其中,所述绘画直线段与所述虚拟标尺平行。The display module 4902 is configured to display the virtual ruler on the touch screen, and the distance between the line drawing position of the line drawing gesture and the virtual ruler is within a preset distance, according to the line drawing The line drawing position of the gesture displays a drawing line segment, wherein the drawing line segment is parallel to the virtual ruler.

在一种可能的实现中,所述画线位置包括起始点位置以及终止点位置,所述绘画直线段为所述起始点位置与所述终止点位置之间的线段。In a possible implementation, the line drawing position includes a starting point position and an ending point position, and the drawing straight line segment is a line segment between the starting point position and the ending point position.

在一种可能的实现中,所述画线位置包括起始点位置以及实时画线位置,所述方法还包括:In a possible implementation, the line drawing position includes a starting point position and a real-time line drawing position, and the method further includes:

基于所述实时画线位置,显示画线长度,所述画线长度为所述起始点位置与所述实时画线位置之间的距离值。Based on the real-time line-drawing position, display the line-drawing length, where the line-drawing length is a distance value between the starting point position and the real-time line-drawing position.

本申请实施例提供了一种虚拟标尺显示装置,包括:检测模块4901,用于检测与所述触摸屏的接触手势;显示模块4902,用于基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。当检测到接触手势指示用户的手侧面与所述触摸屏的接触时,触发虚拟标尺的显示,一方面只需要用户的单手进行操作,操作难度和成本很小,另一方面,当用户的手部展开时,手侧面与 触摸屏的接触区域为扁平的长条状区域,接近于一条直线,基于这种操作模式触发虚拟标尺的显示更符合用户的操作习惯。An embodiment of the present application provides a virtual ruler display device, including: a detection module 4901, configured to detect a contact gesture with the touch screen; a display module 4902, configured to indicate that the side of the user's hand is in contact with the touch screen based on the contact gesture According to the contact area of the contact gesture, a virtual ruler is displayed on the touch screen, wherein the contact area of the contact gesture is a strip-shaped area, and the virtual scale and the long side of the strip-shaped area fit. When a contact gesture is detected indicating that the side of the user's hand is in contact with the touch screen, the display of the virtual scale is triggered. On the one hand, only the user's single hand is required to operate, and the operation difficulty and cost are very small. On the other hand, when the user's hand When the upper part is unfolded, the contact area between the side of the hand and the touch screen is a flat strip area, which is close to a straight line. Based on this operation mode, triggering the display of the virtual scale is more in line with the user's operation habits.

参照图50,图50为本申请实施例提供的一种对象复制装置的结构示意,如图50所示,所述装置5000包括:Referring to FIG. 50, FIG. 50 is a schematic structural diagram of an object replication device provided in an embodiment of the present application. As shown in FIG. 50, the device 5000 includes:

检测模块5001,用于检测到针对于触摸屏上显示的目标对象的拖动手势;所述检测模块,还用于在显示模块显示所述目标对象的镜像之后检测到抬手手势;The detection module 5001 is configured to detect a drag gesture for a target object displayed on the touch screen; the detection module is also configured to detect a hand-raising gesture after the display module displays a mirror image of the target object;

关于检测模块5001的具体描述可以参照步骤3701和步骤3703的描述,这里不再赘述。For a specific description of the detection module 5001, reference may be made to the descriptions of step 3701 and step 3703, which will not be repeated here.

显示模块5002,用于响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;所述显示模块,还用于响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。The display module 5002 is configured to display a mirror image of the target object on the touch screen in response to the drag gesture, and update the display position of the mirror image in real time according to the drag gesture, so that the mirror image follows the The drag gesture moves; the display module is further configured to, in response to the hand-raising gesture, fix and display the mirror image at the display position where the mirror image is located.

关于显示模块5002的具体描述可以参照步骤3702和步骤3704的描述,这里不再赘述。For a specific description of the display module 5002, reference may be made to the descriptions of step 3702 and step 3704, which will not be repeated here.

在一种可能的实现中,所述装置还包括:In a possible implementation, the device also includes:

使能模块5003,用于在所述检测到针对于触摸屏上显示的目标对象的拖动手势之前,在检测到如下的至少一种手势时,使能针对于所述目标对象的复制功能:The enabling module 5003 is configured to enable the copy function for the target object when at least one of the following gestures is detected before the detection of the drag gesture for the target object displayed on the touch screen:

检测到针对于所述目标对象的长按手势;或者,detecting a long press gesture directed at the target object; or,

检测到针对于所述目标对象的单击手势。A click gesture is detected for the target object.

在一种可能的实现中,所示检测模块5001,用于检测到与所述触摸屏的接触区域覆盖所述目标对象或者在所述目标对象周围预设距离内的长按手势。In a possible implementation, the detection module 5001 is configured to detect a long press gesture in which the contact area with the touch screen covers the target object or is within a preset distance around the target object.

在一种可能的实现中,所述拖动手势为保持所述长按手势与所述触摸屏的接触且在所述触摸屏上发生移动的手势。In a possible implementation, the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen.

在一种可能的实现中,所述长按手势为双指长按手势。In a possible implementation, the long press gesture is a two-finger long press gesture.

在一种可能的实现中,所述检测模块5001,用于检测到与所述触摸屏的接触区域覆盖所述目标对象的单击手势。In a possible implementation, the detection module 5001 is configured to detect a click gesture that a contact area with the touch screen covers the target object.

本申请实施例提供了一种对象复制装置,包括:检测模块5001,用于检测到针对于触摸屏上显示的目标对象的拖动手势;所述检测模块,还用于在显示模块显示所述目标对象的镜像之后检测到抬手手势;显示模块5002,用于响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;所述显示模块,还用于响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。拖动手势进行复制粘贴的方式,简单直观,降低了现有复制粘贴所需要步骤数量,缩短了复制粘贴的过程。An embodiment of the present application provides an object copying device, including: a detection module 5001, configured to detect a drag gesture for a target object displayed on a touch screen; the detection module is also configured to display the target on a display module A hand gesture is detected after the mirror image of the object; the display module 5002 is configured to display the mirror image of the target object on the touch screen in response to the drag gesture, and update the mirror image in real time according to the drag gesture The display position of the mirror image so that the mirror image moves along with the drag gesture; the display module is further configured to display the mirror image at the display position where the mirror image is located in response to the hand-raising gesture. The method of copying and pasting by dragging gestures is simple and intuitive, which reduces the number of steps required for existing copy and paste, and shortens the process of copying and pasting.

接下来介绍本申请实施例提供的一种终端设备,终端设备可以为图49以及图50中描述的装置,请参阅图51,图51为本申请实施例提供的终端设备的一种结构示意图,终端设备5100具体可以表现为电子白板、虚拟现实VR设备、手机、平板、笔记本电脑、智能穿戴设备等,此处不做限定。具体的,终端设备5100包括:接收器5101、发射器5102、处 理器5103和存储器5104(其中终端设备5100中的处理器5103的数量可以一个或多个,图51中以一个处理器为例),其中,处理器5103可以包括应用处理器51031和通信处理器51032。在本申请的一些实施例中,接收器5101、发射器5102、处理器5103和存储器5104可通过总线或其它方式连接。Next, a terminal device provided by the embodiment of the present application is introduced. The terminal device may be the device described in FIG. 49 and FIG. 50. Please refer to FIG. 51. FIG. 51 is a schematic structural diagram of the terminal device provided by the embodiment of the present application. The terminal device 5100 may specifically be an electronic whiteboard, a virtual reality VR device, a mobile phone, a tablet, a notebook computer, a smart wearable device, etc., which are not limited here. Specifically, the terminal device 5100 includes: a receiver 5101, a transmitter 5102, a processor 5103, and a memory 5104 (the number of processors 5103 in the terminal device 5100 can be one or more, and one processor is taken as an example in FIG. 51 ) , where the processor 5103 may include an application processor 51031 and a communication processor 51032 . In some embodiments of the present application, the receiver 5101, the transmitter 5102, the processor 5103, and the memory 5104 may be connected through a bus or in other ways.

存储器5104可以包括只读存储器和随机存取存储器,并向处理器5103提供指令和数据。存储器5104的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。存储器5104存储有处理器和操作指令、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,操作指令可包括各种操作指令,用于实现各种操作。The memory 5104 may include read-only memory and random-access memory, and provides instructions and data to the processor 5103 . A part of the memory 5104 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM). The memory 5104 stores processors and operating instructions, executable modules or data structures, or their subsets, or their extended sets, wherein the operating instructions may include various operating instructions for implementing various operations.

处理器5103控制终端设备的操作。具体的应用中,终端设备的各个组件通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都称为总线系统。The processor 5103 controls the operation of the terminal device. In a specific application, various components of the terminal device are coupled together through a bus system, where the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, the various buses are referred to as bus systems in the figures.

上述本申请实施例揭示的方法可以应用于处理器5103中,或者由处理器5103实现。处理器5103可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器5103中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器5103可以是通用处理器、数字信号处理器(digital signal processing,DSP)、微处理器或微控制器,还可进一步包括专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。该处理器5103可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器5104,处理器5103读取存储器5104中的信息,结合其硬件完成上述方法的步骤。具体的,处理器5103可以读取存储器5104中的信息,结合其硬件完成上述实施例中步骤301至步骤302中与虚拟标尺显示相关的步骤,以及上述实施例中步骤3701至这步骤3704中与复制方法相关的步骤。The methods disclosed in the foregoing embodiments of the present application may be applied to the processor 5103 or implemented by the processor 5103 . The processor 5103 may be an integrated circuit chip and has a signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 5103 or instructions in the form of software. The above-mentioned processor 5103 can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and can further include an application-specific integrated circuit (application specific integrated circuit, ASIC), field programmable Field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The processor 5103 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 5104, and the processor 5103 reads the information in the memory 5104, and completes the steps of the above method in combination with its hardware. Specifically, the processor 5103 can read the information in the memory 5104, and combine its hardware to complete the steps related to the display of the virtual scale in the steps 301 to 302 in the above embodiment, and the steps related to the display of the virtual scale in the steps 3701 to 3704 in the above embodiment. Copy the steps associated with the method.

接收器5101可用于接收输入的数字或字符信息,以及产生与终端设备的相关设置以及功能控制有关的信号输入。发射器5102可用于通过第一接口输出数字或字符信息;发射器5102还可用于通过第一接口向磁盘组发送指令,以修改磁盘组中的数据;发射器5102还可以包括触摸屏等显示设备。The receiver 5101 can be used to receive input digital or character information, and generate signal input related to related settings and function control of the terminal device. The transmitter 5102 can be used to output digital or character information through the first interface; the transmitter 5102 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 5102 can also include a display device such as a touch screen.

本申请实施例中还提供一种包括计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中图3以及图37a对应的实施例中描述的方法的步骤。An embodiment of the present application further provides a computer program product, which, when running on a computer, causes the computer to execute the steps of the method described in the embodiment corresponding to FIG. 3 and FIG. 37a in the above embodiments.

本申请实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有用于进行信号处理的程序,当其在计算机上运行时,使得计算机执行如前述实施例描述的方法中的图像处理方法的步骤。An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a program for signal processing, and when it is run on a computer, the computer executes the method described in the foregoing embodiments The steps of the image processing method.

本申请实施例提供的图像显示装置具体可以为芯片,芯片包括:处理单元和通信单元, 所述处理单元例如可以是处理器,所述通信单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行存储单元存储的计算机执行指令,以使执行设备内的芯片执行上述实施例描述的数据处理方法,或者,以使训练设备内的芯片执行上述实施例描述的数据处理方法。可选地,所述存储单元为所述芯片内的存储单元,如寄存器、缓存等,所述存储单元还可以是所述无线接入设备端内的位于所述芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。The image display device provided by the embodiment of the present application may specifically be a chip, and the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, a pin or a circuit, etc. . The processing unit can execute the computer-executed instructions stored in the storage unit, so that the chips in the execution device execute the data processing methods described in the above embodiments, or make the chips in the training device execute the data processing methods described in the above embodiments. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be a storage unit located outside the chip in the wireless access device, such as only Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), etc.

另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。In addition, it should be noted that the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be A physical unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in the present application, the connection relationship between the modules indicates that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general-purpose hardware, and of course it can also be realized by special hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, Special components, etc. to achieve. In general, all functions completed by computer programs can be easily realized by corresponding hardware, and the specific hardware structure used to realize the same function can also be varied, such as analog circuits, digital circuits or special-purpose circuit etc. However, for this application, software program implementation is a better implementation mode in most cases. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application .

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.

所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.

Claims (53)

一种虚拟标尺显示方法,其特征在于,应用于电子设备,所述电子设备包括触摸屏,所述方法包括:A method for displaying a virtual scale, characterized in that it is applied to an electronic device, the electronic device includes a touch screen, and the method includes: 检测与所述触摸屏的接触手势;detecting a contact gesture with the touch screen; 基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。Based on the contact gesture indicating that the side of the user's hand is in contact with the touch screen, displaying a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is a strip-shaped area, The virtual ruler is attached to the long side of the strip-shaped area. 根据权利要求1所述的方法,其特征在于,所述手侧面为用户的手部在展开状态下位于小拇指一侧的手侧面。The method according to claim 1, characterized in that, the side of the hand is the side of the user's hand that is located on the side of the little finger in an unfolded state. 根据权利要求1或2所述的方法,其特征在于,所述接触区域包括:The method according to claim 1 or 2, wherein the contact area comprises: 用户的手侧面的小鱼际部位与所述触摸屏的接触区域;或者,the contact area of the hypothenar portion of the side of the user's hand with the touch screen; or, 用户的手侧面的小拇指部位与所述触摸屏的接触区域。The contact area between the little finger on the side of the user's hand and the touch screen. 根据权利要求1至3任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises: 基于所述接触手势的接触区域满足预设条件,确定所述接触手势指示所述用户的手侧面与触摸屏的接触;所述预设条件包括:Based on the contact area of the contact gesture meeting a preset condition, it is determined that the contact gesture indicates that the user's hand side is in contact with the touch screen; the preset condition includes: 所述接触区域为长条状区域,所述长条状区域的形状和面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的特点。The contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen. 根据权利要求1至3任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises: 获取所述接触手势的手势数据;acquiring gesture data of the contact gesture; 根据所述手势数据,通过神经网络,确定所述接触手势指示所述用户的手侧面与触摸屏的接触。According to the gesture data, through a neural network, it is determined that the contact gesture indicates that the side of the user's hand is in contact with the touch screen. 根据权利要求1至5任一所述的方法,其特征在于,所述虚拟标尺与所述长条状区域的长边贴合,包括:The method according to any one of claims 1 to 5, wherein the virtual ruler is attached to the long side of the elongated region, comprising: 所述虚拟标尺的方向与所述长条状区域的长边指示的方向之间的锐夹角小于预设值;且所述虚拟标尺与所述长条状区域满足如下条件的一个:The acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value; and the virtual scale and the strip-shaped area meet one of the following conditions: 所述虚拟标尺与所述长条状区域存在重叠;或者,所述虚拟标尺与所述长条状区域相切;或者,所述虚拟标尺与所述长条状区域之间的距离小于预设值。There is overlap between the virtual scale and the strip-shaped area; or, the virtual scale is tangent to the strip-shaped area; or, the distance between the virtual scale and the strip-shaped area is less than a preset value. 根据权利要求1至6任一所述的方法,其特征在于,所述根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein, before displaying a virtual ruler on the touch screen according to the contact area of the contact gesture, the method further comprises: 检测到所述接触手势的维持时间大于预设时间。The maintenance time for detecting the contact gesture is longer than a preset time. 根据权利要求1至7任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises: 检测到所述接触手势的接触区域的移动;detecting movement of the contact area of the contact gesture; 调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置跟随所述接触区域。The display position of the virtual scale is adjusted so that the display position of the virtual scale follows the contact area. 根据权利要求1至8任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises: 检测到用户的抬手手势;The user's hand gesture is detected; 响应于所述抬手手势,在所述触摸屏上隐藏所述虚拟标尺的显示。In response to the hand-raising gesture, the display of the virtual ruler is hidden on the touch screen. 根据权利要求1至9任一所述的方法,其特征在于,所述基于所述接触手势指示所述用户的手侧面与触摸屏的接触,包括:The method according to any one of claims 1 to 9, wherein the instructing the contact of the side of the user's hand with the touch screen based on the contact gesture comprises: 基于所述接触手势指示所述用户的手侧面与触摸屏进行了预设次数的敲击;Instructing the side of the user's hand to tap the touch screen for a preset number of times based on the contact gesture; 所述在所述触摸屏上显示虚拟标尺之后,所述方法还包括:After the virtual ruler is displayed on the touch screen, the method further includes: 检测到用户的抬手手势;The user's hand gesture is detected; 响应于所述抬手手势,在所述触摸屏上维持所述虚拟标尺的显示。In response to the raising hand gesture, maintaining display of the virtual ruler on the touch screen. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method according to claim 10, characterized in that the method further comprises: 检测到用户针对于所述虚拟标尺的选择指令;detecting a user's selection instruction for the virtual scale; 响应于所述选择指令,显示触发控件,所述触发控件用于指示对所述虚拟标尺进行如下的至少一种操作:In response to the selection instruction, a trigger control is displayed, and the trigger control is used to instruct to perform at least one of the following operations on the virtual scale: 删除操作、位置调整操作以及旋转操作。Delete operations, reposition operations, and rotation operations. 根据权利要求1至11任一所述的方法,其特征在于,所述虚拟标尺用于进行在所述触摸屏上显示的绘画直线段的长度测量;或者,The method according to any one of claims 1 to 11, wherein the virtual ruler is used to measure the length of the drawn straight line segment displayed on the touch screen; or, 所述虚拟标尺用于进行在所述触摸屏上显示的绘画点之间的距离测量。The virtual ruler is used for distance measurement between drawing points displayed on the touch screen. 根据权利要求1至12任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 12, further comprising: 检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段,显示所述绘画直线段的长度值;所述存在姿态关联包括:Detecting that there is a drawing straight line segment associated with the virtual scale on the touch screen, and displaying the length value of the drawing straight line segment; the existing gesture association includes: 与所述虚拟标尺的方向差异小于预设值;和/或,The direction difference from the virtual scale is smaller than a preset value; and/or, 与所述虚拟标尺之间的距离值小于预设值。The distance from the virtual ruler is smaller than a preset value. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method according to claim 13, further comprising: 根据所述待测量线段的位置,调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置与所述绘画直线贴合。According to the position of the line segment to be measured, the display position of the virtual ruler is adjusted so that the display position of the virtual ruler fits with the drawn straight line. 根据权利要求1至14任一所述的方法,其特征在于,所述在所述触摸屏上显示虚拟标尺之后,所述方法还包括:The method according to any one of claims 1 to 14, wherein after displaying the virtual ruler on the touch screen, the method further comprises: 检测到所述触摸屏上的绘画线段与所述虚拟标尺存在第一交点和第二交点,显示所述第一交点和所述第二交点之间的距离值。It is detected that there is a first intersection point and a second intersection point between the drawn line segment on the touch screen and the virtual ruler, and a distance value between the first intersection point and the second intersection point is displayed. 根据权利要求1至15任一所述的方法,其特征在于,所述虚拟标尺用于作为在所述触摸屏上画直线时的参考工具。The method according to any one of claims 1 to 15, wherein the virtual ruler is used as a reference tool when drawing a straight line on the touch screen. 根据权利要求1至16任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 16, further comprising: 检测到在所述触摸屏上的画线手势;detecting a line-drawing gesture on the touch screen; 基于所述触摸屏上显示有所述虚拟标尺,且所述画线手势的画线位置与所述虚拟标尺之间的距离在预设距离内,根据所述画线手势的画线位置,显示绘画直线段,其中,所述绘画直线段与所述虚拟标尺平行。Based on the virtual ruler being displayed on the touch screen, and the distance between the line-drawing position of the line-drawing gesture and the virtual ruler is within a preset distance, displaying a drawing according to the line-drawing position of the line-drawing gesture A straight line segment, wherein the drawn straight line segment is parallel to the virtual ruler. 根据权利要求17所述的方法,其特征在于,所述画线位置包括起始点位置以及终止点位置,所述绘画直线段为所述起始点位置与所述终止点位置之间的线段。The method according to claim 17, wherein the line drawing position includes a starting point position and an ending point position, and the drawing straight line segment is a line segment between the starting point position and the ending point position. 根据权利要求17或18所述的方法,其特征在于,所述画线位置包括起始点位置以及实时画线位置,所述方法还包括:The method according to claim 17 or 18, wherein the line drawing position comprises a starting point position and a real-time line drawing position, and the method further comprises: 基于所述实时画线位置,显示画线长度,所述画线长度为所述起始点位置与所述实时画线位置之间的距离值。Based on the real-time line-drawing position, display the line-drawing length, where the line-drawing length is a distance value between the starting point position and the real-time line-drawing position. 一种对象复制方法,其特征在于,所述方法包括:A method for copying an object, characterized in that the method comprises: 检测到针对于触摸屏上显示的目标对象的拖动手势;Detecting a drag gesture directed at the target object displayed on the touch screen; 响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;In response to the drag gesture, displaying a mirror image of the target object on the touch screen, and updating a display position of the mirror image in real time according to the drag gesture, so that the mirror image moves along with the drag gesture; 检测到抬手手势;A hand gesture is detected; 响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。In response to the hand-raising gesture, the mirror image is fixedly displayed at the display position where the mirror image is located. 根据权利要求20所述的方法,其特征在于,所述检测到针对于触摸屏上显示的目标对象的拖动手势之前,所述方法还包括:The method according to claim 20, wherein before the detection of the drag gesture for the target object displayed on the touch screen, the method further comprises: 在检测到如下的至少一种手势时,使能针对于所述目标对象的复制功能:When at least one of the following gestures is detected, the copy function for the target object is enabled: 检测到针对于所述目标对象的长按手势;或者,detecting a long press gesture directed at the target object; or, 检测到针对于所述目标对象的单击手势。A click gesture is detected for the target object. 根据权利要求21所述的方法,其特征在于,所述检测到针对于所述目标对象的长按手势,包括:The method according to claim 21, wherein the detecting the long press gesture for the target object comprises: 检测到与所述触摸屏的接触区域覆盖所述目标对象或者在所述目标对象周围预设距离内的长按手势。A long press gesture is detected in which the contact area with the touch screen covers the target object or is within a preset distance around the target object. 根据权利要求21或22所述的方法,其特征在于,所述拖动手势为保持所述长按手势与所述触摸屏的接触且在所述触摸屏上发生移动的手势。The method according to claim 21 or 22, wherein the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen. 根据权利要求21至23任一所述的方法,其特征在于,所述长按手势为双指长按手势。The method according to any one of claims 21 to 23, wherein the long press gesture is a two-finger long press gesture. 根据权利要求21至24任一所述的方法,其特征在于,所述检测到针对于所述目标对象的单击手势,包括:The method according to any one of claims 21 to 24, wherein the detecting the click gesture for the target object comprises: 检测到与所述触摸屏的接触区域覆盖所述目标对象的单击手势。A click gesture in which a contact area with the touch screen covers the target object is detected. 一种虚拟标尺显示装置,其特征在于,应用于电子设备,所述电子设备包括触摸屏,所述装置包括:A virtual scale display device, characterized in that it is applied to electronic equipment, the electronic equipment includes a touch screen, and the device includes: 检测模块,用于检测与所述触摸屏的接触手势;A detection module, configured to detect a contact gesture with the touch screen; 显示模块,用于基于所述接触手势指示用户的手侧面与所述触摸屏的接触,根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺,其中,所述接触手势的接触区域为长条状区域,所述虚拟标尺与所述长条状区域的长边贴合。A display module, configured to indicate the contact of the side of the user's hand with the touch screen based on the contact gesture, and display a virtual ruler on the touch screen according to the contact area of the contact gesture, wherein the contact area of the contact gesture is In the strip-shaped area, the virtual ruler is attached to the long side of the strip-shaped area. 根据权利要求26所述的装置,其特征在于,所述手侧面为用户的手部在展开状态下位于小拇指一侧的手侧面。The device according to claim 26, wherein the side of the hand is the side of the user's hand located on the side of the little finger when the hand is unfolded. 根据权利要求26或27所述的装置,其特征在于,所述接触区域包括:Apparatus according to claim 26 or 27, wherein said contact area comprises: 用户的手侧面的小鱼际部位与所述触摸屏的接触区域;或者,the contact area of the hypothenar portion of the side of the user's hand with the touch screen; or, 用户的手侧面的小拇指部位与所述触摸屏的接触区域。The contact area between the little finger on the side of the user's hand and the touch screen. 根据权利要求26至28任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 26 to 28, wherein the device further comprises: 确定模块,用于基于所述接触手势的接触区域满足预设条件,确定所述接触手势指示所述用户的手侧面与触摸屏的接触;所述预设条件包括:A determining module, configured to determine that the contact gesture indicates contact between the side of the user's hand and the touch screen based on that the contact area of the contact gesture satisfies a preset condition; the preset condition includes: 所述接触区域为长条状区域,所述长条状区域的形状和面积大小符合用户的手侧面的小鱼际部位和/或小拇指部位与所述触摸屏接触时接触区域的特点。The contact area is a strip-shaped area, and the shape and size of the strip-shaped area conform to the characteristics of the contact area when the hypothenar part and/or the little finger part of the side of the user's hand is in contact with the touch screen. 根据权利要求26至28任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 26 to 28, wherein the device further comprises: 获取模块,用于获取所述接触手势的手势数据;An acquisition module, configured to acquire gesture data of the contact gesture; 所述确定模块,还用于根据所述手势数据,通过神经网络,确定所述接触手势指示所述用户的手侧面与触摸屏的接触。The determining module is further configured to determine, according to the gesture data, through a neural network, that the contact gesture indicates that the side of the user's hand is in contact with the touch screen. 根据权利要求26至30任一所述的装置,其特征在于,所述虚拟标尺与所述长条状区域的长边贴合,包括:The device according to any one of claims 26 to 30, wherein the virtual ruler is attached to the long side of the elongated region, including: 所述虚拟标尺的方向与所述长条状区域的长边指示的方向之间的锐夹角小于预设值;且所述虚拟标尺与所述长条状区域满足如下条件的一个:The acute angle between the direction of the virtual scale and the direction indicated by the long side of the strip-shaped area is smaller than a preset value; and the virtual scale and the strip-shaped area meet one of the following conditions: 所述虚拟标尺与所述长条状区域存在重叠;或者,所述虚拟标尺与所述长条状区域相切;或者,所述虚拟标尺与所述长条状区域之间的距离小于预设值。There is overlap between the virtual scale and the strip-shaped area; or, the virtual scale is tangent to the strip-shaped area; or, the distance between the virtual scale and the strip-shaped area is less than a preset value. 根据权利要求26至31任一所述的装置,其特征在于,所述检测模块,用于在所述根据所述接触手势的接触区域,在所述触摸屏上显示虚拟标尺之前,检测到所述接触手势的维持时间大于预设时间。The device according to any one of claims 26 to 31, wherein the detection module is configured to detect the The maintenance time of the contact gesture is longer than the preset time. 根据权利要求26至32任一所述的装置,其特征在于,所述检测模块,用于检测到所述接触手势的接触区域的移动;The device according to any one of claims 26 to 32, wherein the detection module is configured to detect movement of the contact area of the contact gesture; 所述显示模块,用于调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置跟随所述接触区域。The display module is configured to adjust the display position of the virtual ruler so that the display position of the virtual ruler follows the contact area. 根据权利要求26至33任一所述的装置,其特征在于,所述检测模块,用于检测到用户的抬手手势;The device according to any one of claims 26 to 33, wherein the detection module is configured to detect a user's hand-raising gesture; 所述显示模块,用于响应于所述抬手手势,在所述触摸屏上隐藏所述虚拟标尺的显示。The display module is configured to hide the display of the virtual ruler on the touch screen in response to the hand-raising gesture. 根据权利要求26至34任一所述的装置,其特征在于,所述基于所述接触手势指示所述用户的手侧面与触摸屏的接触,包括:The device according to any one of claims 26 to 34, wherein the instructing the contact of the side of the user's hand with the touch screen based on the contact gesture comprises: 基于所述接触手势指示所述用户的手侧面与触摸屏进行了预设次数的敲击;Instructing the side of the user's hand to tap the touch screen for a preset number of times based on the contact gesture; 所述在所述触摸屏上显示虚拟标尺之后,所述方法还包括:After the virtual ruler is displayed on the touch screen, the method further includes: 检测到用户的抬手手势;The user's hand gesture is detected; 响应于所述抬手手势,在所述触摸屏上维持所述虚拟标尺的显示。In response to the raising hand gesture, maintaining display of the virtual ruler on the touch screen. 根据权利要求35所述的装置,其特征在于,所述检测模块,用于检测到用户针对于所述虚拟标尺的选择指令;The device according to claim 35, wherein the detection module is configured to detect a user's selection instruction for the virtual scale; 所述显示模块,用于响应于所述选择指令,显示触发控件,所述触发控件用于指示对所述虚拟标尺进行如下的至少一种操作:The display module is configured to display a trigger control in response to the selection instruction, and the trigger control is used to indicate at least one of the following operations on the virtual scale: 删除操作、位置调整操作以及旋转操作。Delete operations, reposition operations, and rotation operations. 根据权利要求26至36任一所述的装置,其特征在于,所述虚拟标尺用于进行在所述触摸屏上显示的绘画直线段的长度测量;或者,The device according to any one of claims 26 to 36, wherein the virtual ruler is used to measure the length of a drawn straight line segment displayed on the touch screen; or, 所述虚拟标尺用于进行在所述触摸屏上显示的绘画点之间的距离测量。The virtual ruler is used for distance measurement between drawing points displayed on the touch screen. 根据权利要求26至37任一所述的装置,其特征在于,所述检测模块,用于检测到所述触摸屏上存在与所述虚拟标尺存在姿态关联的绘画直线段;The device according to any one of claims 26 to 37, wherein the detection module is configured to detect that there is a drawing line segment associated with the posture of the virtual ruler on the touch screen; 所述显示模块,用于显示所述绘画直线段的长度值;所述存在姿态关联包括:The display module is used to display the length value of the straight line segment of the drawing; the existence gesture association includes: 与所述虚拟标尺的方向差异小于预设值;和/或,The direction difference from the virtual scale is smaller than a preset value; and/or, 与所述虚拟标尺之间的距离值小于预设值。The distance from the virtual ruler is smaller than a preset value. 根据权利要求38所述的装置,其特征在于,所述显示模块,用于根据所述待测量线段的位置,调整所述虚拟标尺的显示位置,以便所述虚拟标尺的显示位置与所述绘画直线贴合。The device according to claim 38, wherein the display module is configured to adjust the display position of the virtual ruler according to the position of the line segment to be measured, so that the display position of the virtual ruler is consistent with the drawing Straight fit. 根据权利要求26至39任一所述的装置,其特征在于,所述检测模块,用于在所述触摸屏上显示虚拟标尺之后,检测到所述触摸屏上的绘画线段与所述虚拟标尺存在第一交点和第二交点;The device according to any one of claims 26 to 39, wherein the detection module is configured to detect that the drawing line segment on the touch screen and the virtual scale exist for the first time after the virtual scale is displayed on the touch screen. a first intersection point and a second intersection point; 所述显示模块,用于显示所述第一交点和所述第二交点之间的距离值。The display module is configured to display a distance value between the first intersection point and the second intersection point. 根据权利要求26至40任一所述的装置,其特征在于,所述虚拟标尺用于作为在所述触摸屏上画直线时的参考工具。The device according to any one of claims 26 to 40, wherein the virtual ruler is used as a reference tool when drawing a straight line on the touch screen. 根据权利要求26至41任一所述的装置,其特征在于,所述检测模块,用于检测到在所述触摸屏上的画线手势;The device according to any one of claims 26 to 41, wherein the detection module is configured to detect a line-drawing gesture on the touch screen; 所述显示模块,用于基于所述触摸屏上显示有所述虚拟标尺,且所述画线手势的画线位置与所述虚拟标尺之间的距离在预设距离内,根据所述画线手势的画线位置,显示绘画直线段,其中,所述绘画直线段与所述虚拟标尺平行。The display module is configured to display the virtual ruler on the touch screen, and the distance between the line-drawing position of the line-drawing gesture and the virtual ruler is within a preset distance, according to the line-drawing gesture The position of the drawn line, displaying the drawn straight line segment, wherein the drawn straight line segment is parallel to the virtual ruler. 根据权利要求42所述的装置,其特征在于,所述画线位置包括起始点位置以及终止点位置,所述绘画直线段为所述起始点位置与所述终止点位置之间的线段。The device according to claim 42, wherein the line drawing position includes a starting point position and an ending point position, and the drawing straight line segment is a line segment between the starting point position and the ending point position. 根据权利要求41或42所述的装置,其特征在于,所述画线位置包括起始点位置以及实时画线位置,所述方法还包括:The device according to claim 41 or 42, wherein the line drawing position includes a starting point position and a real-time line drawing position, and the method further comprises: 基于所述实时画线位置,显示画线长度,所述画线长度为所述起始点位置与所述实时画线位置之间的距离值。Based on the real-time line-drawing position, display the line-drawing length, where the line-drawing length is a distance value between the starting point position and the real-time line-drawing position. 一种对象复制装置,其特征在于,所述装置包括:An object replication device, characterized in that the device comprises: 检测模块,用于检测到针对于触摸屏上显示的目标对象的拖动手势;所述检测模块,还用于在显示模块显示所述目标对象的镜像之后检测到抬手手势;A detection module, configured to detect a drag gesture for a target object displayed on the touch screen; the detection module is also configured to detect a hand-raising gesture after the display module displays a mirror image of the target object; 显示模块,用于响应于所述拖动手势,在所述触摸屏上显示所述目标对象的镜像,并根据所述拖动手势,实时更新所述镜像的显示位置,以便所述镜像跟随所述拖动手势移动;所述显示模块,还用于响应于所述抬手手势,将所述镜像固定显示在所述镜像所处的显示位置上。A display module, configured to display a mirror image of the target object on the touch screen in response to the drag gesture, and update the display position of the mirror image in real time according to the drag gesture, so that the mirror image follows the The drag gesture moves; the display module is further configured to, in response to the hand-raising gesture, fix and display the mirror image at the display position where the mirror image is located. 根据权利要求45所述的装置,其特征在于,所述装置还包括:The device according to claim 45, further comprising: 使能模块,用于在所述检测到针对于触摸屏上显示的目标对象的拖动手势之前,在检测到如下的至少一种手势时,使能针对于所述目标对象的复制功能:An enabling module, configured to enable the copy function for the target object when at least one of the following gestures is detected before the detection of the drag gesture for the target object displayed on the touch screen: 检测到针对于所述目标对象的长按手势;或者,detecting a long press gesture directed at the target object; or, 检测到针对于所述目标对象的单击手势。A click gesture is detected for the target object. 根据权利要求46所述的装置,所述检测到针对于所述目标对象的长按手势,包括:The device according to claim 46, the detecting the long press gesture for the target object comprises: 检测到与所述触摸屏的接触区域覆盖所述目标对象或者在所述目标对象周围预设距离内的长按手势。A long press gesture is detected in which the contact area with the touch screen covers the target object or is within a preset distance around the target object. 根据权利要求46或47所述的装置,所述拖动手势为保持所述长按手势与所述触摸屏的接触且在所述触摸屏上发生移动的手势。The device according to claim 46 or 47, wherein the dragging gesture is a gesture of keeping the long press gesture in contact with the touch screen and moving on the touch screen. 根据权利要求46至48任一所述的装置,所述长按手势为双指长按手势。According to the device according to any one of claims 46 to 48, the long press gesture is a two-finger long press gesture. 根据权利要求46至49任一所述的装置,所述检测到针对于所述目标对象的单击手势,包括:According to the device according to any one of claims 46 to 49, the detection of the single-click gesture for the target object comprises: 检测到与所述触摸屏的接触区域覆盖所述目标对象的单击手势。A click gesture in which a contact area with the touch screen covers the target object is detected. 一种电子设备,其特征在于,所述设备包括处理器、存储器、触摸屏和总线,其中:An electronic device, characterized in that the device includes a processor, a memory, a touch screen and a bus, wherein: 所述处理器、所述存储器和所述触摸屏通过所述总线连接;The processor, the memory and the touch screen are connected through the bus; 所述存储器,用于存放计算机程序或指令;The memory is used to store computer programs or instructions; 所述处理器,用于调用或执行所述存储器上所存放的程序或指令,还用于控制触摸屏,以实现权利要求1-25任一所述的方法步骤。The processor is used to call or execute the programs or instructions stored in the memory, and is also used to control the touch screen, so as to realize the method steps described in any one of claims 1-25. 一种计算机可读存储介质,包括程序,当其在计算机上运行时,使得计算机执行如权利要求1至25中任一项所述的方法。A computer-readable storage medium, including a program, which, when run on a computer, causes the computer to execute the method according to any one of claims 1 to 25. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在终端上运行时,使得所述终端执行所述权利要求1-25中任一权利要求所述的方法。A computer program product containing instructions, characterized in that, when the computer program product is run on a terminal, the terminal is made to execute the method of any one of claims 1-25.
PCT/CN2022/097085 2021-06-09 2022-06-06 Virtual scale display method and related device Ceased WO2022257870A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110644928.3 2021-06-09
CN202110644928.3A CN113515228B (en) 2021-06-09 2021-06-09 A virtual ruler display method and related equipment

Publications (1)

Publication Number Publication Date
WO2022257870A1 true WO2022257870A1 (en) 2022-12-15

Family

ID=78065759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/097085 Ceased WO2022257870A1 (en) 2021-06-09 2022-06-06 Virtual scale display method and related device

Country Status (2)

Country Link
CN (1) CN113515228B (en)
WO (1) WO2022257870A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515228B (en) * 2021-06-09 2025-03-04 华为技术有限公司 A virtual ruler display method and related equipment
CN114579024A (en) * 2022-02-28 2022-06-03 联想(北京)有限公司 Information processing method and device and electronic equipment
CN115774513B (en) * 2022-11-22 2023-07-07 北京元跃科技有限公司 System, method, electronic device and medium for determining drawing direction based on ruler

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096548A (en) * 2009-12-11 2011-06-15 达索系统公司 Method and system for duplicating an object using a touch-sensitive display
CN102141887A (en) * 2010-01-28 2011-08-03 微软公司 Brush, carbon-copy, and fill gestures
CN102169408A (en) * 2010-02-04 2011-08-31 微软公司 Link gestures
CN104732007A (en) * 2013-12-20 2015-06-24 达索系统公司 A device with a touch-sensitive display comprising a mechanism to copy and manipulate modeled objects
CN105278818A (en) * 2014-06-27 2016-01-27 腾讯科技(深圳)有限公司 Content copying method and apparatus in instant messaging software
CN107636593A (en) * 2015-06-07 2018-01-26 苹果公司 Device, method and graphical user interface for providing and interacting with a virtual drawing aid
CN113515228A (en) * 2021-06-09 2021-10-19 华为技术有限公司 A virtual ruler display method and related equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101580570B1 (en) * 2014-06-10 2015-12-28 주식회사 하이딥 Control method and controller for touch sensor panel
US10579216B2 (en) * 2016-03-28 2020-03-03 Microsoft Technology Licensing, Llc Applications for multi-touch input detection
JP7103782B2 (en) * 2017-12-05 2022-07-20 アルプスアルパイン株式会社 Input device and input control device
CN110245643B (en) * 2019-06-21 2021-08-24 上海摩象网络科技有限公司 Target tracking shooting method, device and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096548A (en) * 2009-12-11 2011-06-15 达索系统公司 Method and system for duplicating an object using a touch-sensitive display
CN102141887A (en) * 2010-01-28 2011-08-03 微软公司 Brush, carbon-copy, and fill gestures
CN102169408A (en) * 2010-02-04 2011-08-31 微软公司 Link gestures
CN104732007A (en) * 2013-12-20 2015-06-24 达索系统公司 A device with a touch-sensitive display comprising a mechanism to copy and manipulate modeled objects
CN105278818A (en) * 2014-06-27 2016-01-27 腾讯科技(深圳)有限公司 Content copying method and apparatus in instant messaging software
CN107636593A (en) * 2015-06-07 2018-01-26 苹果公司 Device, method and graphical user interface for providing and interacting with a virtual drawing aid
CN113515228A (en) * 2021-06-09 2021-10-19 华为技术有限公司 A virtual ruler display method and related equipment

Also Published As

Publication number Publication date
CN113515228B (en) 2025-03-04
CN113515228A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
US9996176B2 (en) Multi-touch uses, gestures, and implementation
US8941600B2 (en) Apparatus for providing touch feedback for user input to a touch sensitive surface
TWI514229B (en) Graphics editing method and electronic device using the same
JP5507494B2 (en) Portable electronic device with touch screen and control method
CN111475097B (en) A kind of handwriting selection method, device, computer equipment and storage medium
US20110216015A1 (en) Apparatus and method for directing operation of a software application via a touch-sensitive surface divided into regions associated with respective functions
US20100229090A1 (en) Systems and Methods for Interacting With Touch Displays Using Single-Touch and Multi-Touch Gestures
CN102077156A (en) Virtual touchpad
CN105094654B (en) Screen control method and device
WO2022257870A1 (en) Virtual scale display method and related device
US10345912B2 (en) Control method, control device, display device and electronic device
WO2023030377A1 (en) Writing/drawing content display method and related device
US20160026375A1 (en) Shadeless touch hand-held electronic device, method and graphical user interface
TWI488082B (en) Portable electronic apparatus and touch sensing method
CN105474164A (en) Disambiguation of indirect input
US20160306449A1 (en) Avoiding accidental cursor movement when contacting a surface of a trackpad
US9256360B2 (en) Single touch process to achieve dual touch user interface
CN105786373B (en) A touch track display method and electronic device
US11137903B2 (en) Gesture-based transitions between modes for mixed mode digital boards
US11216121B2 (en) Smart touch pad device
US20160026280A1 (en) Shadeless touch hand-held electronic device and touch cover
CN115657881B (en) Method and device for identifying states of left and right hand holding pens and electronic pen
US11604578B2 (en) Touch control method and touch control system applying ihe same
CN112363644A (en) Infrared imaging device and gesture recognition method thereof
Paturde et al. Multitouch and Gesture Recognition Technology Using Computer Interaction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22819468

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22819468

Country of ref document: EP

Kind code of ref document: A1