WO2021203724A1 - 笔迹选择方法、装置、计算机设备和存储介质 - Google Patents

笔迹选择方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2021203724A1
WO2021203724A1 PCT/CN2020/134212 CN2020134212W WO2021203724A1 WO 2021203724 A1 WO2021203724 A1 WO 2021203724A1 CN 2020134212 W CN2020134212 W CN 2020134212W WO 2021203724 A1 WO2021203724 A1 WO 2021203724A1
Authority
WO
WIPO (PCT)
Prior art keywords
handwriting
touch operation
target area
touch
long
Prior art date
Application number
PCT/CN2020/134212
Other languages
English (en)
French (fr)
Inventor
林德熙
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
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 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2021203724A1 publication Critical patent/WO2021203724A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Definitions

  • the embodiments of the present application relate to touch technology, for example, relate to a handwriting selection method, device, computer equipment, and storage medium.
  • Computer equipment usually supports multi-touch. Therefore, if the user wants to adjust part of the handwriting when writing handwriting, such as dragging, usually click the designated control, freeze the handwriting, and select the part of the handwriting. The selected handwriting is adjusted.
  • the user's writing behavior is a coherent operation. By clicking on the control and freezing the handwriting to select the handwriting will interrupt the writing behavior and reduce the efficiency of the handwriting.
  • the embodiments of the present application provide a handwriting selection method, device, computer equipment, and storage medium to solve how to select part of handwriting when writing handwriting, so as to maintain the continuity of writing behavior and improve the efficiency of handwriting.
  • an embodiment of the present application provides a method for selecting handwriting, including:
  • At least part of the handwriting is selected according to the target area as the target handwriting.
  • an embodiment of the present application also provides a method for selecting handwriting, including:
  • the display screen shows handwriting on the writing interface
  • the touch screen receives the first touch operation that occurs on the writing interface
  • the processor determines that the first touch operation is a long press operation
  • the processor selects at least part of the handwriting according to the target area as the target handwriting.
  • an embodiment of the present application also provides a handwriting selection device, including:
  • Handwriting display module used to display handwriting on the writing interface
  • the first touch operation receiving module is configured to receive the first touch operation that occurs on the writing interface
  • a long-press operation determining module configured to determine that the first touch operation is a long-press operation
  • a target area determining module configured to determine a target area on the writing interface based on the location where the long-press operation occurs, and the range of the target area is positively correlated with the duration of the long-press operation;
  • the target handwriting selection module is used to select at least part of the handwriting according to the target area as the target handwriting.
  • an embodiment of the present application also provides a computer device, and the computer device includes:
  • One or more processors are One or more processors;
  • Memory used to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the handwriting selection method as described in the first aspect.
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method for selecting handwriting as described in the first aspect is implemented.
  • the handwriting is displayed on the writing interface, the first touch operation occurring on the writing interface is received, and the first touch operation is determined to be a long-press operation, based on the position where the long-press operation occurs on the writing interface Determine the target area, where the range of the target area is positively related to the duration of the long-press operation. At least part of the handwriting is selected according to the target area as the target handwriting.
  • the long-press operation can be directly triggered by the long-press operation Control the target area to select the appropriate handwriting.
  • the touch operation of the user’s handwriting and the long-press operation belong to the same touch operation. The two are connected smoothly.
  • the handwriting can be selected by the long-press operation. The user does not need to click on the control or freeze the handwriting. Maintain the continuity of the user's writing behavior, thereby improving the efficiency of writing handwriting.
  • FIG. 1 is a flowchart of a method for selecting handwriting provided in Embodiment 1 of this application;
  • FIGS. 2A to 2E are exemplary diagrams of a selected target handwriting provided in Embodiment 1 of the present application.
  • FIG. 3 is a flowchart of a method for selecting handwriting provided in the second embodiment of the present application.
  • 4A to 4B are exemplary diagrams of displaying and canceling new handwriting provided in the second embodiment of the present application.
  • 4C to 4D are exemplary diagrams of a prompt mark provided in the second embodiment of the present application.
  • FIGS. 5A to 5D are schematic diagrams of drawing handwriting provided in the second embodiment of the present application.
  • Fig. 6 is a flowchart of a method for selecting handwriting provided in the third embodiment of the present application.
  • FIGS. 7A to 7K are exemplary diagrams of an operation target handwriting provided in the third embodiment of the present application.
  • FIG. 8 is a flowchart of a method for selecting handwriting provided in the fourth embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a handwriting selection device provided in Embodiment 5 of the application.
  • FIG. 10 is a schematic structural diagram of a computer device provided in Embodiment 6 of this application.
  • first and second are only used to distinguish one entity or operation or combination of handwriting from another entity or operation or combination of handwriting, and do not necessarily require or imply There is any such actual relationship or sequence before these entities or operations or handwriting combinations.
  • first and second of the first touch operation and the second touch operation are used to distinguish two different touch operations.
  • the handwriting selection method provided in this embodiment can be executed by a handwriting selection device.
  • the handwriting selection device can be implemented by software and/or hardware, and can be configured in a computer device.
  • the computer device can be two or more physical devices.
  • the entity composition can also be a physical entity composition, for example, a smart interactive tablet, a laptop, a mobile phone, a tablet, and so on.
  • a smart interactive tablet is used as a computer device for exemplary description.
  • the smart interactive tablet can be an integrated device that controls the content displayed on the display tablet through touch technology and realizes human-computer interaction. It integrates a projector, an electronic whiteboard, a screen, a sound, a TV, and a video conference. One or more functions such as a terminal.
  • the smart interactive tablet includes at least one screen.
  • the screens may be the same type of screen or different types of screens.
  • the screens can communicate directly or indirectly through the processor (such as the central processing unit) of the smart interactive tablet.
  • the processor can individually control each screen.
  • both screens have a touch function.
  • the touch operation response of the two screens is the same. Take the user's touch operation on one screen as an example. At this time, the user can touch the screen with a finger or a stylus to achieve a touch operation.
  • a smart interactive tablet The touch position of the touch operation on the screen is detected, and the response scheme is determined according to the display content corresponding to the touch position, and then responds to realize the touch function.
  • the response scheme is to execute the function.
  • the user can perform touch operations on one screen or simultaneously on two screens.
  • the specific method for determining the touch position of the touch operation on the screen can be set according to the actual situation. For example, when a touch operation is received at a certain position on the screen, the parameters collected by the electrical component responsible for detecting that position will occur. At this time, the smart interactive tablet can determine the touch position according to the parameter change. It is understandable that in practical applications, users can also implement control operations through keyboards, mice, physical buttons, and other methods.
  • the screen In a smart interactive tablet, the screen generally includes a display screen and a touch screen.
  • the display screen can display User Interface (UI) elements, such as windows (including controls) on the screen, which can specifically include LCD (Liquid Crystal Display) display, LED (Light-Emitting Diode) Diode) display, AMOLED (Active-matrix organic light emitting diode, active matrix organic light emitting diode) display, etc.
  • UI User Interface
  • LCD Liquid Crystal Display
  • LED Light-Emitting Diode
  • AMOLED Active-matrix organic light emitting diode, active matrix organic light emitting diode
  • Touch screen can also be called “touch screen” or “touch panel”. It is an inductive device that can receive input signals such as contacts. Specifically, it can include vector pressure sensing technology touch screen, resistive technology touch screen, capacitive technology touch screen, infrared technology Touch screens, surface acoustic wave technology touch screens, etc., are not limited in this embodiment.
  • the operating system includes but is not limited to iOS, Linux, and Windows. Among them, the Linux system includes many operating systems, such as Android. , Ubuntu system, etc. Each screen can be individually controlled through the operating system.
  • the smart interactive tablet may install at least one application program based on the operating system.
  • an application program with an electronic whiteboard function is used as an example for description.
  • an electronic whiteboard application is installed in a smart interactive tablet.
  • the application program may be an application program that comes with the operating system, or may be an application program downloaded from a third-party device or server.
  • functions such as writing, inserting tables, inserting pictures, inserting audio and video files, inserting courseware (such as PPT, etc.), playing audio and video files, inserting graphics, and drawing tables can be realized.
  • the same application can be opened at the same time, or different applications can be opened at the same time.
  • the same interface or different interfaces can be displayed on the two screens after it is started.
  • the application program may have different versions, and at this time, each screen may display the interface under the corresponding version.
  • two screens show different functions of the same application.
  • the operating system can receive the INT_TC interrupt message and switch to the interrupt service XY coordinate conversion mode, turn on ADC (Analog-to-digital converter, analog-to-digital converter) conversion, trigger INT_ADC interrupt after conversion is completed, and report input_event in ADC interrupt processing method.
  • ADC Analog-to-digital converter, analog-to-digital converter
  • the transmission of touch operations can be understood as: the user touches the touch screen, and the touch screen encapsulates the received touch information into a HID (Human Interface Device) standard touch information package, which is uploaded to the USB bus, and the built-in
  • HID Human Interface Device
  • the CPU processing is dispatched to the touch driver for distribution.
  • the transfer process is touch box ⁇ USB ⁇ drive ⁇ Windows message drive ⁇ application software window ⁇ application software framework message distribution module ⁇ application software business module.
  • Fig. 1 is a flowchart of a method for selecting handwriting provided in the first embodiment of the application. This embodiment can be applied to the case where handwriting is selected by a long-press operation when writing handwriting. The method specifically includes the following steps:
  • the user triggers the writing mode.
  • the interface in the writing mode can be called the writing interface.
  • the user can select the configuration parameters of the handwriting, such as color, width, etc., and use a finger or a touch pen to set the computer equipment.
  • a designated touch operation is triggered on the screen, where the designated touch operation can be used for writing handwriting, such as a sliding operation in a single-touch gesture.
  • the computer device receives the designated touch operation, and, in response to the touch operation, displays handwriting at the location where the designated touch operation occurs according to the configuration parameter.
  • the so-called handwriting can refer to the data points displayed on the screen of the computer equipment, and the data points can be realized in the form of lines, symbols, text, etc.
  • the user writes handwriting on the screen of the computer device, which respectively represent the six characters "1", “2", “3”, "4", "5", and "6".
  • the coordinate of each data point is generally the position where the specified touch operation occurs.
  • the data point is a position that can be interpolated between the positions where the specified touch operation occurs. , It can also be optimized processing, optimized position of the position where the specified touch operation occurs, etc., which is not limited in this embodiment.
  • the writing interface may be an independent interface.
  • a computer device provides an electronic whiteboard
  • the user triggers a control operation to display the electronic whiteboard in the computer device
  • the computer device receives the control operation and displays the electronic whiteboard as Writing interface
  • the user can trigger a touch operation on the electronic whiteboard
  • the computer device can display the handwriting corresponding to the touch operation on the screen of the computer device.
  • the control operation for displaying the electronic whiteboard includes but It is not limited to touch operation, keyboard operation, mouse operation, and physical button operation.
  • the writing interface can also be an interface with a background.
  • the computer device displays the local courseware, displays the data transmitted by the screen transfer device (USB Dongle, USB software protector), and belongs to the source device (such as a laptop, etc.).
  • the user triggers the annotation operation in the computer equipment, and the computer equipment receives the annotation operation, freezes the data such as the courseware and the screen picture, and makes it the background.
  • a mask is generated on the courseware, screen pictures and other data to serve as a writing interface.
  • the user can trigger a touch operation on the screen of the computer device, and the computer device can display the corresponding touch operation on the mask.
  • Handwriting where the annotation operation operation includes but is not limited to touch operation, keyboard operation, mouse operation, and physical button operation.
  • the so-called courseware can refer to the course documents produced according to the teaching requirements, through the determination of teaching objectives, teaching content and task analysis, teaching activity structure and interface design, for example, the courseware can be Word documents, PPT Files in public formats such as (PowerPoint, presentation) can also be customized pages formed by combining elements such as text, tables, pictures, etc., which is not limited in this embodiment.
  • the user can use a finger, a touch pen, etc. to perform operations such as tapping, sliding, etc. on the screen of the computer device, thereby triggering the first touch operation on the writing interface.
  • the first touch operation is still a touch operation. If the user intends to use the first touch operation to select part of the handwriting, according to the operation of selecting the handwriting in this embodiment, the user is usually near the handwriting that the user intends to select , Trigger the first touch operation.
  • the first touch operation 201 can be triggered near “1”, “2”, and “3”.
  • a small touch area can be displayed in the lower right corner of the writing interface and other places that are easy for the user to touch.
  • the user can trigger the first touch operation in the touch area.
  • the first touch operation occurring in the touch area in the writing interface can be received.
  • the position where the first touch operation occurs is the first coordinate
  • the first coordinate of the first touch operation is in accordance with the preset
  • the mapping relationship of is mapped to the second coordinate of the writing interface, where the second coordinate is outside the touch area, so that the position where the first touch operation is simulated is the second coordinate.
  • the user in addition to writing handwriting, the user can also select handwriting, etc. Therefore, for the first touch operation, the type can be recognized and corresponding processing can be performed according to the type.
  • the writing mode can be exited and the handwriting operation mode can be entered.
  • the handwriting operation mode it can be based on the long press operation Select part of the handwriting according to the operation, and wait for the user to perform other operations.
  • the pre-defined events of the operating system already include the long press event (OnLongClickListener), that is, you can directly monitor the events provided by the Android system. If the long press event (OnLongClickListener) is monitored, it means the first occurrence of the current The touch operation is a long press operation.
  • the long press event OnLongClickListener
  • the pre-defined events of the operating system also include the long press event (UILongPressGestureRecognizer), that is, you can directly monitor the events provided by the iOS system. If the long press gesture event (UILongPressGestureRecognizer) is monitored, it means that it is currently happening
  • the first touch operation is a long press operation.
  • the three events of the press event, the move event, and the lift event of the touch operation can be abstracted, and the timer can be added to identify the long press event. Press operation.
  • the press event can indicate that the touch screen is pressed, not moved, or lifted.
  • a press event occurs for each touch point, that is, multiple press events will occur during multi-touch operation, and the movement event can indicate that the The touch screen moves (or slides) after being pressed, and the lift event can indicate that the touch screen is lifted.
  • ACTION_Down is used to indicate a press event
  • ACTION_Move is used to indicate a movement event
  • ACTION_Up is used to indicate a lift event.
  • touchesBegan is used to indicate a press event
  • touchesMoved is used to indicate a move event
  • touchesEnded is used to indicate a lift event.
  • WM_TOUCH_DOWN is used to indicate a press event
  • WM_Touch_Move to indicate a move event
  • WM_Touch_Up to indicate a lift event.
  • GDK_TOUCH_BEGIN is used for pressing events
  • GDK_TOUCH_UPDATE is used for moving events
  • GDK_TOUCH_END is used for lifting events, and so on.
  • the computer device can trigger the corresponding operation according to the touch gesture to complete the touch.
  • Control operations that is, press events, move events, and lift events to define long-press operations.
  • the long-press operation is a single-touch operation.
  • the first touch operation is a multi-touch operation, it can be determined that the first touch operation is not a long-press operation.
  • the timer can be started by System.Thread.Timer or System.Windows.Threading.DispatcherTimer, KeQueryTickCount function or KeSetTimer, etc. This timer is used for timing. When the timing exceeds the preset time period, it stops timing and executes the specified action.
  • the time period is used to indicate how long the user presses for a long press operation, which can be freely set by those skilled in the art according to the actual situation or user habits, such as 500ms, 700ms, etc., this embodiment No restrictions.
  • the distance between the coordinates of the movement event and the coordinates of the press event can be calculated to determine the movement distance of the first touch operation.
  • the long-press operation belongs to a multi-touch operation. If the first touch operation is a multi-touch operation, it can continue to detect whether the first touch operation is a long-press operation. This embodiment There is no restriction on this.
  • the first touch operation occurs, other control operations are generally not allowed to interrupt the first touch operation.
  • the detection of the first touch can be interrupted at this time Whether the operation is a long press operation.
  • Boolean Variable is generated in the memory, and the Boolean variable is set to the first value (such as True).
  • the Boolean variable is modified from the first value to the second value (such as False).
  • the Boolean variable is the first value, it means that within the preset time period, the distance is less than the preset error value, then the first touch operation is confirmed It is a long press operation. If the Boolean variable is the second value, it means that the distance is greater than or equal to the preset error value within the preset time period, and it is confirmed that the first touch operation is not a long-press operation.
  • S104 Determine a target area on the writing interface based on the location where the long press operation occurs.
  • the operating parameters of the long-press operation can be extracted. At least some of the operating parameters can change with the long-press operation. According to the preset conversion relationship, use the operating parameters to convert to target area.
  • the target area includes the growth
  • the location of the press operation that is, the location where the long press operation occurred (the location where the long press operation originally occurred, or the location mapped by the location where the long press operation originally occurred) is located in the target area, and the range of the target area is the same as
  • the duration is positively correlated, that is, the longer the long-press operation lasts, the larger the range of the target area. Conversely, the smaller the long-press operation lasts, the smaller the range of the target area.
  • the shape of the target area may be a regular pattern such as a circle, an ellipse, a prism, a square, etc., or may be an irregular pattern, etc., which is not limited in this embodiment.
  • the position where the long press operation 201 occurs is taken as the center of the circle, and the radius is determined based on the duration of the long press operation 201 to generate a circular target area 202, where the radius is equal to
  • the duration is positively correlated, that is, the longer the long-press operation lasts, the larger the radius, which makes the range of the target area larger. Conversely, the longer the long-press operation lasts, and the smaller the radius makes the range of the target area smaller.
  • the radius can be calculated by the following formula:
  • l is the radius
  • t is the duration of the long press operation
  • n is the speed parameter, which can be used to adjust the expansion speed of the target area.
  • the two are positively correlated, that is, the larger the n, the faster the expansion of the target area, and vice versa. Smaller, the slower the expansion of the target area, which is a constant, which can be set by those skilled in the art according to the actual situation.
  • the target area is an area calculated by the computer device in the memory, in Figure 2C and Figure 2D, in order to facilitate the description of the target area, the dotted line represents the target area, but it does not mean that the visible area is an interface Visual elements in.
  • the above-mentioned target area and its determination method are just examples.
  • other target areas and its determination method can be set according to the actual situation.
  • the position, duration, pressing direction and other operations of the long press operation can be extracted.
  • the target area is determined based on the location of the long press operation, where the range of the target area is positively correlated with the duration of the long press operation, the expansion speed of the target area along the pressing direction is greater than the expansion speed along other directions, etc.
  • this application does not impose restrictions on this.
  • those skilled in the art can also adopt other target areas and its determination method according to actual needs, which are not limited in the embodiments of the present application.
  • the handwriting operation mode when generating the target area, you can select part or all of the handwriting from the displayed handwriting as the target handwriting through the positional relationship between the target area and the handwriting.
  • the user can operate all the handwriting on the screen through other touch operations, such as multi-touch. Therefore, in this embodiment, the user usually selects part of the handwriting through the target area as the target handwriting. The user performs other operations.
  • the user can also select all the handwriting through the target area as the target handwriting, and wait for the user to perform other operations, which is not limited in this embodiment.
  • the handwriting located in the target area can be selected as the target handwriting.
  • the handwriting with the relevance can also be selected as the target handwriting.
  • a user writes handwriting on a computer device, usually to complete a specific drawing or writing task, for example, writing a character, writing a paragraph, drawing a figure, etc.
  • These handwritings with independent meaning can be called a combination of handwriting .
  • the six characters "1", “2”, “3”, “4", “5", and “6” can each be a combination of six handwritings.
  • "1", “ 2" and “3” can also belong to one handwriting combination
  • "4", "5", and "6” belong to another handwriting combination, and so on.
  • the association in this embodiment may refer to handwritings belonging to the same handwriting combination.
  • these handwriting combinations can be selected together to facilitate the user's operation.
  • the handwriting can be grouped to determine that the handwriting with relevance is a combination of handwriting.
  • the hit test algorithm of geometric figures it can be detected whether the combination of handwriting and the target area are intersected, whether they are located in the target area, and whether they are located in the target area.
  • the handwriting combination is determined to be the target handwriting. On the contrary, if the handwriting combination is outside the target area, the handwriting combination will not be selected.
  • the user writes a handwriting combination in a relatively short period of time.
  • the handwriting combination can be recognized in the dimension of time.
  • the first handwriting can be determined.
  • the so-called first handwriting can mean that the interval exceeds After the preset target time period, the first handwriting to be written, where the target time period is used to define the first handwriting, which can be set by those skilled in the art according to the actual situation, such as 5 seconds, 10 seconds, etc., in this implementation The example does not impose restrictions on this.
  • the time range is determined based on the first handwriting. Specifically, the time range is usually determined with the time of writing the first handwriting as a starting point, and the length of the time range is a preset time length, thereby determining that the handwriting drawn within the time range is a handwriting combination.
  • the user writes a handwriting combination in a small range.
  • the handwriting combination can be recognized on a two-dimensional plane.
  • the first handwriting can be determined, and the handwriting range can be determined based on the first handwriting.
  • the handwriting range can be a circle with the first handwriting as the center and a preset value as the radius, or it can be a rectangle with the first handwriting as the center and the preset value as the side length, and so on. No restrictions. Therefore, it is determined that the handwriting drawn in the handwriting range is a handwriting combination.
  • the geometry of the selected target handwriting is merged into a geometric figure through the plane geometric figure merging algorithm. Because in the computer equipment, the geometry of the target handwriting is merged into a geometric figure.
  • the interface rendering level has been processed by default, that is, the interface display
  • the geometric figures of the handwriting will be merged into one rendering layer for display. Therefore, in this embodiment, the previously merged geometric figures are directly obtained without taking up additional calculation time.
  • the geometry of the handwriting merged on the entire page is constantly superimposed on the target area generated based on the long-press operation.
  • the geometry of the handwriting and the geometry of the target area can be superimposed into one graphic.
  • This graphic will be The intersection of the graphics of the target area and the graphics of the handwriting, and the intersection is displayed on the top layer of the page, without changing the drawing of the original handwriting geometry.
  • the display state of the target handwriting on the screen can be modified.
  • an external frame 203 is displayed outside the target handwriting "1", “2”, and “3", indicating that the handwriting "1", “2", and “3" in the external frame 203 are selected Status, etc.
  • the handwriting is displayed on the writing interface, the first touch operation occurring on the writing interface is received, and the first touch operation is determined to be a long-press operation, based on the position where the long-press operation occurs on the writing interface Determine the target area, where the range of the target area is positively related to the duration of the long-press operation. According to the target area, select at least part of the handwriting as the target handwriting.
  • the long-press operation can be directly triggered by the long-press operation Control the target area to select the appropriate handwriting.
  • the touch operation of the user’s handwriting and the long-press operation belong to the same touch operation. The two are connected smoothly.
  • the handwriting can be selected by the long-press operation. The user does not need to click on the control or freeze the handwriting. Maintain the continuity of the user's writing behavior, thereby improving the efficiency of writing handwriting.
  • this embodiment determines that the handwriting with relevance is a handwriting combination. If the handwriting combination intersects the target area or the handwriting combination is located in the target area, the handwriting combination is determined
  • the target handwriting by combining related handwritings into a handwriting combination, it conforms to the user's handwriting habit, and can quickly select additional handwriting as the target handwriting, which has high accuracy and improves the efficiency of selecting the target handwriting.
  • the handwriting combination is recognized in the dimensions of time or space, which can improve the recognition accuracy of the handwriting combination, thereby ensuring the selection The accuracy of the target's handwriting.
  • Fig. 3 is a flowchart of a method for selecting handwriting provided in the second embodiment of the application. This embodiment is based on the foregoing embodiment and further adds processing operations for optimizing handwriting display and displaying prompt signs. The method specifically includes the following steps:
  • S302 Receive a first touch operation that occurs on the writing interface.
  • the user triggers a touch operation
  • the computer device cannot know what the user's intention is to trigger the touch operation, that is, when the user presses the screen for the first time, it cannot know whether the user wants to trigger a specified touch such as a sliding operation.
  • Control operation to write handwriting still want to trigger long press operation to select handwriting.
  • an interactive filter layer is set in the computer device.
  • the writing mode if the first touch operation occurs on the writing interface, the first touch operation occurring on the writing interface can be transmitted to the preset interactive filter.
  • Layer the type of the first touch operation is recognized in the interactive filter layer, and the type of the first touch operation is output for use in subsequent process operations, where the type includes a long-press operation and a touch for writing handwriting operate.
  • the user triggers the first touch operation on a certain screen, and each screen can respond to the first touch operation and display the same New handwriting, it can also display new handwriting in response to the first touch operation on the screen where the first touch operation occurs, and other screens ignore the first touch operation, etc.
  • This embodiment does not impose restrictions on this .
  • the first touch operation is a touch operation used for writing handwriting, such as a sliding operation, rather than a long-press operation.
  • a new handwriting 402 is displayed, so that when the type of the first touch operation is recognized in the interactive filter layer as a touch operation for writing handwriting, such as a sliding operation, the response to the first touch can be improved. Control the speed of operation, thereby increasing the speed of displaying handwriting, thereby improving user experience.
  • Handwriting display is to convert the data points collected by touch into drawing commands.
  • the display process is generally divided into the following three steps:
  • the data points obtained through the touch operation are essentially touch points.
  • the data points are converted into lines, including the division of data points and drawing the data points as lines.
  • the data points are divided because the handwriting written by the user may have corners.
  • the data point in a dashed box is a stroke, and the corner is drawn.
  • the computer device cannot know whether the handwriting currently written by the user is Chinese or English. Therefore, it can determine whether the handwriting written by the user is English or Chinese by judging the angle of the corner, so as to determine whether to draw the corners or the rounded corners.
  • the line can be connected by determining the skeleton, but the line has no width yet, so the width of the line is determined by other calculations.
  • the width calculation includes the width calculation of the pen tip and the width calculation of the non-stroke tip.
  • n is a positive integer, such as 35) data points drawn in a period or the data points drawn in a period of time (such as 6ms) (the number is generally greater than n) as the stroke, and the other data points as the non-stroke.
  • the user can set the width of the line.
  • the width set by the user is the initial width.
  • the user’s touch speed can be measured by the number of collected data points.
  • the number of collected data points is positively correlated with the user’s touch speed, that is, the more data points collected, the faster the user’s touch speed. Conversely, the smaller the number of data points collected, the slower the user's touch speed.
  • the distance between the data point and the data point can also be calculated. By calculating the distance between two adjacent data points and the time difference between the two adjacent data points, it can be used to measure the touch speed.
  • the maximum speed is obtained by analyzing the log file of the computer device used by the user.
  • the log file records the use information of the user's touch operation in the computer device. 1 millisecond draws 5 units of length, and the unit length is the unit corresponding to the coordinates of the collected data points.
  • the length of the touch point report of the touch screen is related to the screen size DPI (Dots Per Inch, dots per inch), but the unit length is related to the user's vision, that is, the unit length error of the touch screen in different resolutions and different sizes of screens Very small.
  • the direct distance between the two data points can be used as the user's line drawing speed v.
  • the way to find u(v) is to take the user's slowest speed w, for example, this w is 1.
  • w is 1.
  • x is a constant, and x is taken as an example.
  • the maximum speed is set to 5.
  • the final handwriting width Thiiness is when the user's writing speed exceeds the maximum speed of 5 units and the length is 1 millisecond, the value of 80% of the width set by the user is taken.
  • the line is drawn at a speed of 120%.
  • the formula for calculating the width is as follows:
  • the width of the line segment calculated by taking the line segment of the pen tip as the normal line segment is taken as the width of the pen tip. Take the connecting point as the line segment for the stroke. If the stroke happens to be divided into two segments, then only the last line segment is used as the stroke. If it is divided into two segments, the point of the pen tip has an angle of less than 50°, and the last segment can be used as the pen tip.
  • a triangle is made. As shown in Figure 5D, the uppermost line is the stroke width, and the stroke width at each point is the width calculated from the distance between the point and the first point of the stroke.
  • the user's intention of triggering the first touch operation is to select the handwriting through the long-press operation, that is, the user is not actually writing handwriting, at this time, clear the new handwriting drawn in response to the first touch operation.
  • the new handwriting displayed is less in number and shorter in length, and, as shown in FIG. 4A, the new handwriting 402 is mostly concentrated on the user's finger , Stylus, etc., are just blocked. At this time, the current user and other users generally cannot see the new handwriting 402. Therefore, before determining the type of the first touch operation, draw the new handwriting first.
  • the type of a touch operation is a long-press operation, as shown in FIG. 4B, the new handwriting 402 is canceled, that is, the handwriting 402 not written by the user is cleared, and the impact on the user is minimized to ensure that the user passes normally. Long press operation 401 to select the handwriting.
  • S306 Determine a target area on the writing interface based on the location where the long press operation occurs.
  • the range of the target area is positively correlated with the duration of the long-press operation.
  • the handwriting selection mode since the long press operation generally changes continuously, some of its parameters can also change continuously, such as the duration, pressing direction, pressing pressure, etc., so the target area generated by this parameter It is also constantly changing, and the handwriting selected based on the target area is also constantly changing.
  • a prompt mark can be displayed on the writing interface.
  • the prompt mark is a visual element in the interface and can be used to prompt the positional relationship between the target area and the handwriting , Which prompts which handwriting intersects with the target area, which handwriting is located in the target area, and which handwriting is located outside the target area, so that it can be used to accurately select the required handwriting during the continuous change of the target area and improve the selection The accuracy of the target's handwriting.
  • the prompt mark also changes continuously with the change of the target area.
  • the prompting mark includes a first mark, and the first mark is used to prompt the range of the target area, and the first mark can be displayed on the handwriting.
  • the user can learn the range of the target area by browsing the first mark. Which handwritings are located in the target area and which handwritings are located outside the target area to facilitate the selection of handwriting.
  • the first mark can be displayed with a set transparency, such as 30%, 50%, etc., so that the user can observe the handwriting located in the target area while observing the first mark.
  • a set transparency such as 30%, 50%, etc.
  • a circle as an example of the target area, if the position where the long-press operation occurs is the center of the circle, and the radius is determined based on the duration of the long-press operation, a circular target area is generated, where the radius and the duration are positively correlated, then, such as As shown in FIG.
  • the position where the long press operation occurs is taken as the center of the circle, and the radius is determined based on the duration of the long press operation to generate a circular first identifier 403, where the radius is positively correlated with the duration, so that the first identifier 403 and
  • the target area (not shown in the figure) has the same shape and the same position, that is, the first mark 403 overlaps the target area, and the transparency of the first mark 403 is 50%, so that the user can see "1" through the first mark 403 Part of the handwriting in "1” and "2", it is learned that part of the handwriting in "1” and "2" is located in the first mark 403, that is, part of the handwriting in "1” and “2” covered by the first mark 403 is located in the target area Inside, other handwritings not covered by the first mark 403 are located outside the target area.
  • the prompt mark includes a second mark, and the second mark is used to prompt the handwriting that intersects the target area and the handwriting located in the target area, and the second mark can be displayed in the handwriting.
  • the second identifier includes color and/or stroke, that is, color and stroke can be used alone or in combination.
  • the handwriting located in the target area can be filled with a specified color, and/or a stroke can be added to the handwriting located in the target area.
  • the filling color is different from the original color of the handwriting, so as to distinguish the states located in the target area and located outside the target area.
  • the part of the handwriting 404 in the target area of "1" and “2" is filled with the specified color, so that the user can know the part of "1" and "2" filled with the specified color
  • the handwriting 404 is located in the target area, and other handwritings that are not filled with the specified color are located outside the target area.
  • the first mark and the second mark can be used alone or in combination, that is, it not only prompts the range of the target area, but also prompts the handwriting located in the target area, which is not limited in this embodiment.
  • the above prompt mark is only used as an example.
  • other prompt marks can be set according to the actual situation.
  • the third logo is used to prompt the handwriting located outside the target area, that is, to modify the transparency of the handwriting located outside the target area, etc., in this embodiment No restrictions.
  • those skilled in the art can also use other prompt identifications according to actual needs, and this embodiment does not limit this.
  • S308 Select at least part of the handwriting according to the target area as the target handwriting.
  • Fig. 6 is a flowchart of a method for selecting handwriting provided in the third embodiment of the application. This embodiment is based on the foregoing embodiment and further adds operations to the selected target handwriting. The method specifically includes the following steps:
  • S604 Determine a target area on the writing interface based on the location where the long press operation occurs.
  • the range of the target area is positively correlated with the duration of the long-press operation.
  • S605 Select at least part of the handwriting according to the target area as the target handwriting.
  • the user can use a finger, touch pen, etc. to perform operations such as clicking, sliding, etc. on the screen of the computer device, thereby triggering a second touch operation on the writing interface.
  • the computer device receives the second touch operation, According to the operation command mapped by the second touch operation, the selected target handwriting is adjusted accordingly, thereby improving the efficiency of the touch operation.
  • the second touch operation triggered by the user touches the target handwriting confirm that the second touch operation is valid; conversely, if the second touch operation triggered by the user touches the target For handwritings other than handwriting, confirm that the second touch operation is invalid, and cancel the selection of the target handwriting.
  • the second touch operation is generally a gesture operation, which may be a single-touch gesture or a multi-touch gesture, which is not limited in this embodiment.
  • the second touch operation includes at least one of the following:
  • Movement operations are generally single-touch gestures, which refer to sliding in a certain direction after the screen is pressed.
  • the second touch operation is a movement operation
  • the target handwriting is dragged based on the movement operation.
  • the movement direction of the movement operation can be determined, and the movement operation can be mapped to the distance in the movement direction according to a certain functional relationship. At this time, the target handwriting can be moved in the movement direction until it reaches The distance.
  • the proportional mapping is the distance in the moving direction; another example, as the moving distance of the mobile operation increases, the proportional mapping is the distance in the moving direction; another example, as the moving operation moves The speed increases and the proportional mapping is the distance in the direction of movement, and so on.
  • the rotation operation is generally a multi-touch gesture, which refers to the base point rotation movement of multiple touch points.
  • the second touch operation is a rotation operation
  • the target handwriting is rotated.
  • the rotation operation can be mapped to an angle according to a certain functional relationship, and in this case, the target handwriting can be rotated according to the angle.
  • the isometric mapping is an angle; another example, as the movement distance of the rotation operation increases, the isometric mapping is an angle; another example, as the movement speed of the rotation operation increases, the isometric mapping is For the angle, etc.
  • the zoom operation is generally a multi-touch gesture, which refers to the converging or spreading of multiple touch points.
  • the second touch operation is a zoom operation
  • the target handwriting is zoomed based on the zoom operation.
  • the target handwriting is reduced, and when multiple touch points are spread, the target handwriting is enlarged.
  • the scaling operation can be mapped to a scale according to a certain functional relationship.
  • the target handwriting can be scaled according to the scale.
  • the scale is less than 1, the target handwriting is reduced, and when the scale is greater than 1, Enlarge the target handwriting.
  • the proportional mapping becomes a ratio
  • the isoproportion mapping becomes a ratio
  • the proportional mapping becomes a ratio. For the ratio, etc.
  • the screen cutting operation can be a single gesture operation, or a combination of two or more gesture operations, such as a combined long press operation and a mobile operation, etc.
  • the gesture operation can be a single-touch operation or a multi-touch operation Control operation, this example does not impose restrictions on this.
  • the computer equipment is equipped with two or more screens.
  • one of the screens is called the first screen and the other is called the second screen.
  • the target handwriting is displayed in the first screen.
  • the second touch operation is a screen cutting operation
  • the target handwriting is switched from the first screen to the second screen display, that is, at least including canceling the display of the target handwriting on the first screen and displaying the target handwriting on the second screen.
  • it may also include playing an animation of switching the target handwriting from the first screen to the second screen.
  • a first application for drawing handwriting is installed on the first screen, and the first application is used for drawing target handwriting.
  • the first screen can change the parameters (such as coordinates, color, etc.) used to draw the target handwriting. , Width, transparency, etc.) are transmitted to the second screen, and the application draws the target handwriting according to the parameters.
  • the first screen can generate image data containing the target handwriting through screenshots, drawing, etc., and transmit the image data to the second screen, and the second screen displays the image data.
  • the target handwriting is displayed.
  • the first screen uses a thumbnail when receiving a first operation (such as a long-press operation)
  • the user interface displaying the second screen when receiving a second operation (such as a moving operation), a position is determined on the user interface according to the second operation, so as to notify the second screen to display the target handwriting at the position.
  • the first operation and the second operation belong to the touch operation in the screen cutting operation.
  • the second screen can transmit the user interface of the second screen to the first screen by means of screenshots, etc., so that the first screen can display the user interface of the second screen in the form of thumbnails.
  • the user interface may include two or more areas, and if the position falls within a certain area, the second screen displays the target handwriting in the area.
  • a thumbnail of the user interface of the second screen can be displayed on the first screen (left screen) of the computer device, As shown in Figure 7H, the thumbnail contains four areas, namely "up”, “down”, "left” and "right".
  • the user triggers a move operation to place the target handwriting in the thumbnail.
  • the area where the target handwriting is located is "down", which is convenient for the user to place "1", “2", and “3".
  • "1", "2", and “3” can be reduced according to the reduction ratio between the user interface and the thumbnail before moving. Of course, they can also be moved according to the original size, which is not limited in this example.
  • the above-mentioned second touch operation is just an example.
  • other second touch operations can be set according to actual conditions, which is not limited in this embodiment.
  • those skilled in the art can also use other second touch operations according to actual needs, which is not limited in this embodiment.
  • the user when the user triggers the long press operation, if the user feels that the selected target handwriting is sufficient, the user can have two interactive choices. One is to directly trigger the second touch operation without raising the hand. , The second is to raise your hand, and then continue to press to trigger a touch operation. In other words, there can be uninterrupted operations between the first touch operation and the second touch operation. For example, after the user triggers a long press operation, the user does not lift up, that is, no lift event (such as WM_Touch_Up) occurs.
  • no lift event such as WM_Touch_Up
  • the first touch operation and the second touch operation can be intermittently operated, for example, user trigger After the long press operation, lift up, that is, a lift event (such as WM_Touch_Up) occurs. At this time, the target handwriting is selected, and then press to trigger the rotation operation or zoom operation, rotate or zoom the target handwriting, etc.
  • This embodiment does not Be restricted.
  • Fig. 8 is a flowchart of a method for selecting handwriting provided by the fourth embodiment of the application.
  • This embodiment can be applied to the situation where handwriting is selected by a long-press operation when writing handwriting.
  • This method can be executed by a computer device, such as smart An interactive tablet, etc., the computer device can be implemented by software and/or hardware, including components such as a display screen, a touch screen, and a processor.
  • the method specifically includes the following steps:
  • the display screen displays handwriting on the writing interface
  • the touch screen receives a first touch operation that occurs on the writing interface.
  • the processor determines that the first touch operation is a long press operation.
  • the processor determines a target area on the writing interface based on the location where the long-press operation occurs, and the range of the target area is positively correlated with the duration of the long-press operation;
  • the processor selects at least part of the handwriting according to the target area as the target handwriting.
  • the method further includes:
  • the display screen displays new handwriting on the writing interface according to the first touch operation
  • the method further includes:
  • the display screen cancels displaying the new handwriting on the writing interface.
  • S803 includes:
  • the processor determines the movement distance of the first touch operation
  • the processor confirms that the first touch operation is a long press operation.
  • S804 includes:
  • the processor uses the location where the long-press operation occurs as the center of the circle, determines a radius based on the duration of the long-press operation, and generates a circular target area, where the radius is positively correlated with the duration.
  • it further includes:
  • the display screen displays a prompt mark on the writing interface, and the prompt mark is used to prompt the positional relationship between the target area and the handwriting.
  • the prompt identification includes a first identification and/or a second identification
  • the display screen to display the prompt identification on the writing interface includes:
  • the display screen displays a first mark on the handwriting, and the first mark is used to prompt the range of the target area;
  • the display screen displays a second mark in the handwriting, and the second mark is used to prompt the handwriting that intersects the target area and the handwriting that is located in the target area.
  • the second logo includes a color and/or stroke
  • the display screen displays the second logo in the handwriting, including:
  • the display screen fills the handwriting located in the target area with a specified color
  • the display screen adds a stroke to the handwriting located in the target area.
  • S805 includes:
  • the processor determines that the handwriting with relevance is a handwriting combination
  • the processor determines that the handwriting combination is the target handwriting if the handwriting combination intersects the target area or the handwriting combination is located in the target area.
  • the processor determining that the handwriting with relevance is a handwriting combination includes:
  • the processor determines the time range based on the first handwriting
  • the processor determines that the handwriting drawn within the time range is a handwriting combination
  • the processor determines the range of handwriting based on the first handwriting
  • the processor determines that the handwriting drawn in the handwriting range is a handwriting combination.
  • it further includes:
  • the touch screen receives the second touch operation that occurs on the writing interface
  • the display screen operates the target handwriting according to the second touch operation.
  • the display screen includes a first screen and a second screen, and the target handwriting is displayed on the first screen;
  • the operation of the display screen on the target handwriting according to the second touch operation includes:
  • the display screen drags the target handwriting based on the movement operation
  • the display screen rotates the target handwriting based on the rotation operation
  • the display screen zooms the target handwriting based on the zoom operation
  • the display screen switches the target handwriting from the first screen to the second screen for display based on the screen cutting operation.
  • S802 includes:
  • the touch screen receives the first touch operation that occurs in the touch area of the writing interface, and the position where the first touch operation occurs is the first coordinate;
  • the touch screen maps the first coordinates to the second coordinates on the writing interface to simulate the position where the first touch operation occurs as the second coordinates.
  • S803 includes:
  • the processor transmits the first touch operation occurring on the writing interface to a preset interactive filter layer
  • the processor recognizes the type of the first touch operation in the interactive filter layer, and outputs the type of the first touch operation.
  • FIG. 9 is a schematic structural diagram of a handwriting selection device provided in Embodiment 5 of this application.
  • the device may specifically include the following modules:
  • Handwriting display module 901 for displaying handwriting on the writing interface
  • the first touch operation receiving module 902 is configured to receive the first touch operation that occurs on the writing interface
  • the long-press operation determining module 903 is configured to determine that the first touch operation is a long-press operation
  • the target area determining module 904 is configured to determine a target area on the writing interface based on the location where the long-press operation occurs, and the range of the target area is positively correlated with the duration of the long-press operation;
  • the target handwriting selection module 905 is configured to select at least part of the handwriting according to the target area as the target handwriting.
  • it further includes:
  • the handwriting drawing module is configured to display new handwriting on the writing interface according to the first touch operation.
  • it further includes:
  • the handwriting removal module is used to cancel the display of the new handwriting on the writing interface in response to the long-press operation.
  • the long-press operation determining module 903 includes:
  • the moving distance determining sub-module is used to determine the moving distance of the first touch operation
  • the time period determining sub-module is configured to confirm that the first touch operation is a long press operation if the distance is less than a preset error value within a preset time period.
  • the target area determination module 904 includes:
  • the circular area generation sub-module is used to determine the radius based on the duration of the long-press operation by taking the position where the long-press operation occurs as the center of the circle, and generate a target area with a circular shape, wherein the radius is the same as the The duration is positively correlated.
  • it further includes:
  • the prompt mark display module is configured to display a prompt mark on the writing interface, and the prompt mark is used to prompt the positional relationship between the target area and the handwriting.
  • the prompt identification includes a first identification and/or a second identification
  • the prompt identification display module includes:
  • a first logo display submodule configured to display a first logo on the handwriting, and the first logo is used to prompt the range of the target area;
  • the second mark display submodule is configured to display a second mark in the handwriting, and the second mark is used to prompt the handwriting intersecting with the target area and the handwriting located in the target area.
  • the second logo includes color and/or stroke
  • the second logo display submodule includes:
  • the color filling unit is used to fill the handwriting located in the target area with a specified color
  • the stroke adding unit is used to add a stroke to the handwriting located in the target area.
  • the target handwriting selection module 905 includes:
  • a handwriting combination determining sub-module which is used to determine that the handwriting with relevance is a handwriting combination
  • the target handwriting determination submodule is configured to determine that the handwriting combination is a target handwriting if the handwriting combination intersects the target area or the handwriting combination is located in the target area.
  • the handwriting combination determination submodule includes:
  • Time range generating unit used to determine the time range based on the first handwriting
  • the time range determining unit is used to determine that the handwriting drawn within the time range is a handwriting combination
  • the handwriting range generating unit is used to determine the handwriting range based on the first handwriting
  • the handwriting range determining unit is used to determine that the handwriting drawn in the handwriting range is a handwriting combination.
  • it further includes:
  • the second touch operation receiving module is configured to receive a second touch operation that occurs on the writing interface
  • the target handwriting operation module is configured to operate the target handwriting according to the second touch operation.
  • the target handwriting operation module includes:
  • the moving operation determining sub-module is configured to determine that the second touch operation is a moving operation
  • the target handwriting drag sub-module is used to drag the target handwriting based on the moving operation
  • a rotation operation determining sub-module configured to determine that the second touch operation is a rotation operation
  • the target handwriting rotation sub-module is configured to rotate the target handwriting based on the rotation operation
  • a zoom operation determining sub-module configured to determine that the second touch operation is a zoom operation
  • the target handwriting zoom sub-module is used to zoom the target handwriting based on the zoom operation
  • a screen-cutting operation determining sub-module configured to determine that the second touch operation is a screen-cutting operation
  • the target handwriting switching sub-module is configured to switch the target handwriting display from the first screen to the second screen based on the screen cutting operation.
  • the first touch operation receiving module 902 includes:
  • a touch area receiving sub-module configured to receive a first touch operation occurring in a touch area in the writing interface, and the position where the first touch operation occurs is the first coordinate;
  • the coordinate mapping sub-module is configured to map the first coordinate to the second coordinate on the writing interface to simulate the position where the first touch operation occurs as the second coordinate.
  • the long-press operation determining module 903 includes:
  • the touch operation transmission sub-module is used to transmit the first touch operation that occurs on the writing interface to a preset interactive filter layer;
  • the type recognition sub-module is configured to recognize the type of the first touch operation in the interactive filter layer, and output the type of the first touch operation.
  • the handwriting selection device provided in the embodiment of the present application can execute the handwriting selection method provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects for the execution method.
  • FIG. 10 is a schematic structural diagram of a computer device provided in Embodiment 6 of this application.
  • the computer device includes a processor 1000, a memory 1001, a communication module 1002, an input device 1003, and an output device 1004; the number of processors 1000 in the computer device can be one or more.
  • the processor 1000, the memory 1001, the communication module 1002, the input device 1003, and the output device 1004 in the computer equipment can be connected by a bus or other means. In FIG. 10, the connection by a bus is taken as an example.
  • the memory 1001 can be used to store software programs, computer-executable programs, and modules, such as the modules corresponding to the handwriting selection method in this embodiment (for example, the handwriting selection device shown in FIG. 8
  • the handwriting display module 801, the first touch operation receiving module 802, the long-press operation determining module 803, the target area determining module 804, and the target handwriting selection module 805 are included.
  • the processor 1000 executes various functional applications and data processing of the computer device by running the software programs, instructions, and modules stored in the memory 1001, that is, realizes the aforementioned handwriting selection method.
  • the memory 1001 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of a computer device.
  • the memory 1001 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, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 1001 may further include a memory remotely provided with respect to the processor 1000, and these remote memories may be connected to a computer device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the communication module 1002 is used to establish a connection with the screen and realize data interaction with the screen.
  • the input device 1003 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of computer equipment, and can also be a camera for acquiring images and a pickup device for acquiring audio data.
  • the output device 1004 may include audio equipment such as speakers.
  • composition of the input device 1003 and the output device 1004 can be set according to actual conditions.
  • the processor 1000 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 1001, that is, realizes the above-mentioned method for controlling the connection node of the electronic whiteboard.
  • the computer device provided in this embodiment can execute the handwriting selection method provided in any embodiment of the present application, with specific corresponding functions and beneficial effects.
  • the seventh embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a method for selecting handwriting is realized, and the method includes:
  • At least part of the handwriting is selected according to the target area as the target handwriting.
  • the computer program of the computer-readable storage medium provided in the embodiment of the present application is not limited to the method operations described above, and can also perform related operations in the handwriting selection method provided in any embodiment of the present application.

Abstract

一种笔迹选择方法、装置、计算机设备和存储介质,该方法包括:在书写界面上显示笔迹;接收在书写界面上发生的第一触控操作;确定第一触控操作为长按操作;基于发生长按操作的位置在所述书写界面上确定目标区域,其中,目标区域的范围与长按操作持续的时长正相关;根据目标区域选定至少部分笔迹,作为目标笔迹。用户在书写笔迹时,可直接触发长按操作,通过长按操作控制目标区域,从而选定合适的笔迹,用户书写笔迹的触控操作与长按操作同属于触控操作,两者衔接顺畅,通过长按操作选定笔迹,用户无需点击控件、冻结笔迹,可以保持用户书写行为的连贯性,从而提高书写笔迹的效率。

Description

笔迹选择方法、装置、计算机设备和存储介质
本申请要求申请日为2020年4月7日、申请号为202010264050.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及触控的技术,例如涉及一种笔迹选择方法、装置、计算机设备和存储介质。
背景技术
在教育、会议、会客等场景,用户经常使用触控式的计算机设备,这些计算机设备通常具有电子白板的功能,方便用户在计算机设备的屏幕上直接进行书写,配合笔迹进行讲解。
由于计算机设备通常支持多点触控,因此,若用户想要在书写笔迹时,对部分笔迹进行调整,如拖动,通常是点击指定的控件,冻结笔迹,并选定该部分笔迹,从而对选定的笔迹进行调整。
但是,用户的书写行为是一个连贯的操作,通过点击控件、冻结笔迹选定笔迹都会打断书写行为,降低书写笔迹的效率。
发明内容
本申请实施例提供一种笔迹选择方法、装置、计算机设备和存储介质,以解决在书写笔迹时如何选定部分笔迹,以保持书写行为的连贯性、提高书写笔迹的效率。
第一方面,本申请实施例提供了一种笔迹的选择方法,包括:
在书写界面上显示笔迹;
接收在所述书写界面上发生的第一触控操作;
确定所述第一触控操作为长按操作;
基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
第二方面,本申请实施例还提供了一种笔迹的选择方法,包括:
显示屏在书写界面上显示笔迹;
触控屏接收在所述书写界面上发生的第一触控操作;
处理器确定所述第一触控操作为长按操作;
所述处理器基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
所述处理器根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
第三方面,本申请实施例还提供了一种笔迹的选择装置,包括:
笔迹显示模块,用于在书写界面上显示笔迹;
第一触控操作接收模块,用于接收在所述书写界面上发生的第一触控操作;
长按操作确定模块,用于确定所述第一触控操作为长按操作;
目标区域确定模块,用于基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
目标笔迹选定模块,用于根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
第四方面,本申请实施例还提供了一种计算机设备,所述计算机设备包括:
一个或多个处理器;
存储器,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面中所述的笔迹的选择方法。
第五方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面中所述的笔迹的选择方法。
在本实施例中,在书写界面上显示笔迹,接收在书写界面上发生的第一触控操作,确定第一触控操作为长按操作,基于发生长按操作的位置在所述书写界面上确定目标区域,其中,目标区域的范围与长按操作持续的时长正相关,根据目标区域选定至少部分笔迹,作为目标笔迹,用户在书写笔迹时,可直接触发长按操作,通过长按操作控制目标区域,从而选定合适的笔迹,用户书写笔迹的触控操作与长按操作同属于触控操作,两者衔接顺畅,通过长按操作选定笔迹,用户无需点击控件、冻结笔迹,可以保持用户书写行为的连贯性,从而提高书写笔迹的效率。
附图说明
图1为本申请实施例一提供的一种笔迹的选择方法的流程图;
图2A至图2E是本申请实施例一提供的一种选定目标笔迹的示例图;
图3是本申请实施例二提供的一种笔迹的选择方法的流程图;
图4A至图4B是本申请实施例二提供的一种显示及取消新的笔迹的示例图;
图4C至图4D是本申请实施例二提供的一种提示标识的示例图;
图5A至图5D是本申请实施例二提供的一种绘制笔迹的示意图;
图6是本申请实施例三提供的一种笔迹的选择方法的流程图;
图7A至图7K是本申请实施例三提供的一种操作目标笔迹的示例图;
图8是本申请实施例四提供的一种笔迹的选择方法的流程图;
图9为本申请实施例五提供的一种笔迹的选择装置的结构示意图;
图10为本申请实施例六提供的一种计算机设备的结构示意图。
具体实施方式
需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或操作或笔迹组合与另一个实体或操作或笔迹组合区分开来,而不一定要求或者暗示这些实体或操作或笔迹组合之前存在任何这种实际的关系或顺序。例如,第一触控操作和第二触控操作的“第一”和“第二”用来区分两个不同的触控操作。
本实施例中提供的笔迹选择方法可以由笔迹的选择装置来执行,该笔迹的选择装置可以由软件和/或硬件实现,可配置在计算机设备中,该计算机设备可以是两个或多个物理实体构成,也可以是一个物理实体构成,例如,智能交互平板、笔记本电脑、手机、平板,等等。
为了便于理解,实施例中以智能交互平板为计算机设备进行示例性描述。其中,智能交互平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。
一般而言,智能交互平板包括至少一个屏幕,在智能交互平板配置两个或两个以上的屏幕时,屏幕可以为相同类型的屏幕,也可以为不同类型的屏幕。屏幕之间可以直接进行通信,也可以通过智能交互平板的处理器(如中央处理器)间接进行通信。同时,处理器可以单独控制每个屏幕。进一步的,两个屏幕均具有触控功能。两个屏幕的触控操作响应方式相同,以用户在一个屏幕中进行触控操作为例,此时,用户可以通过手指或触控笔触控屏幕的方式实现触控操作,相应的,智能交互平板检测触控操作在屏幕中的触控位置,并根据触控位置对应的显示内容确定响应方案,进而进行响应,以实现触控功能。例如,根据触控位置确定对应的显示内容为某个功能的控件,此时,响应方案为执行该功能。实际应用中,用户可以对一个屏幕进行触控操作,也可以同时对两个屏幕进行触控操作。可选的,确定触控操作在屏幕中触控位置的具体方式可以结合实际情况设定,例如,当屏幕某个位置接收到触控操作时,负责检测该位置的电器元件采集的参数会发生变化,此时,智能交互平板可以根据参数变化情况确定触控位置。可以理解的是,实际应用中,用户还可以通过键盘、鼠标、物理按键等方式实现控制操作。
在智能交互平板中,屏幕一般可以包括显示屏和触摸屏(touch screen)。
其中,显示屏可以将用户界面(User Interface,UI)元素,如窗口(包括控件)显示到屏幕上,具体可以包括LCD(Liquid Crystal Display,液晶显示器)显示屏、LED(Light-Emitting Diode,发光二极管)显示屏、AMOLED(Active-matrix organic light emitting diode,有源矩阵有机发光二极体)显示屏,等等。
触摸屏又可以称为“触控屏”、“触控面板”,是个可接收触头等输入讯号的感应式装置,具体可以包括矢量压力传感技术触摸屏、电阻技术触摸屏、电容技术触摸屏、红外线技术触摸屏、表面声波技术触摸屏等等,本实施例对此不加以限制。
典型的,智能交互平板安装有至少一类操作系统,其中,操作系统包括但不限定于iOS系统、Linux系统及Windows系统,其中,Linux系统包括的操作系统有许多,例如,安卓(Android)系统、Ubuntu系统,等等。通过操作系统可以分别对每个屏幕进行单独控制。进一步的,智能交互平板可以基于操作系统安装至少一个应用程序,在本实施例中,以具有电子白板功能的应用程序进行示例性描述。例如,智能交互平板中安装有电子白板应用程序。其中,该应用程序可以为操作系统自带的应用程序,也可以为从第三方设备或者服务器中下载的应用程序。可选的,在电子白板功能下,可以实现书写、插入表格、插入图片、插入音视频文件、插入课件(如PPT等)、播放音视频文件、插入图形、绘制表格等功能。可以理解的是,对于两个屏幕而言,其可以同时开启相同的应用程序,或者同时开启不同的应用程序。对于同一应用程序而言,其被开启后在两个屏幕中可以显示相同的界面或不同的界面。可选的,当显示不同的界面时,应用程序可以具有不同的版本,此时每个屏幕可以显示对应版本下的界面。或者是,两个屏幕显示同一应用程序的不同功能。
在Ubuntu系统中,用户接触触摸屏时,将收集的触摸信息封装通过USB(Universal Serial Bus,通用串行总线)发送到操作系统,此时操作系统可以收到INT_TC中断消息,在中断服务中切换到XY坐标转换模式,开启ADC(Analog-to-digital converter,模拟数字转换器)转换,转换完成后触发INT_ADC中断,在ADC中断处理方法中上报input_event。在应用程序层可以通过读取/dev/input对应触摸屏文件的方式,循环读取文件,将读取到内容用input_event结构体解析可以获取触摸信息。
在Windows系统中,触控操作的传输可以理解为:用户接触触摸屏,触摸屏将接收到的触摸信息封装为HID(Human Interface Device,人机接口设备)标准触摸信息包,上传到USB总线,由内置CPU处理调度到触摸驱动程序进行分发。经过系统层调度将触摸消息分发到具体的应用。其中传递过程为触摸框→USB→驱动→Windows消息驱动→应用软件窗口→应用软件框架消息分发模块→应用软件业务模块。
实施例一
图1为本申请实施例一提供的一种笔迹的选择方法的流程图,本实施例可适用于在书写笔迹时通过长按操作选定笔迹的情况,该方法具体包括如下步骤:
S101、在书写界面上显示笔迹。
在计算机设备中,用户触发书写模式,此时,在书写模式中的界面可以称之为书写界面,用户可以选择笔迹的配置参数,如颜色、宽度等,并使用手指、触摸笔在计算机设备的屏幕上触发指定的触控操作,其中,该指定的触控操作可用于书写笔迹,如单点触控手势中的滑动操作。计算机设备接收该指定的触控操作,以及,响应于该触控操作,按照该配置参数在发生该指定的触控操作的位置显示笔迹。
所谓笔迹,可以指在计算机设备的屏幕上显示的数据点,该数据点可以变现为线条、符号、文字等形式。
例如,如图2A所示,用户在计算机设备的屏幕上书写笔迹,分别表示“1”、“2”、“3”、“4”、“5”、“6”这六个文字。
在一实施例中,每个数据点的坐标一般为发生该指定的触控操作的位置,当然,该数据点为可以进行插值处理、在发生该指定的触控操作的位置之间插入的位置,还可以为进行优化处理、对发生该指定的触控操作的位置进行优化之后的位置,等等,本实施例对此不加以限制。
在实际应用中,该书写界面可以为独立的界面,示例性地,计算机设备提供电子白板,用户在计算机设备中触发显示该电子白板的控制操作,计算机设备接收该控制操作,显示电子白板,作为书写界面,此时,用户可在电子白板上触发触控操作,则计算机设备可在该计算机设备的屏幕上显示与该触控操作相应的笔迹,其中,该显示该电子白板的控制操作包括但不限于触控操作、键盘操作、鼠标操作、物理按键操作。
此外,该书写界面也可以为具有背景的界面,示例性地,计算机设备显示本地的课件、显示传屏设备(USB Dongle,USB软件保护器)传输的、属于源设备(如笔记本电脑等)的屏幕画面等数据,用户在计算机设备中触发批注操作,计算机设备接收该批注操作,冻结课件、屏幕画面等数据,使之成为背景,即维持显示课件、屏幕画面等数据的当前帧画面,并在课件、屏幕画面等数据之上生成蒙层,从而作为书写界面,此时,用户可在计算机设备的屏幕上触发触控操作,则计算机设备可在该蒙层上显示与该触控操作相应的笔迹,其中,该批注操作操作包括但不限于触控操作、键盘操作、鼠标操作、物理按键操作。
其中,所谓课件,可以指是根据教学的要求,经过教学目标确定,教学内容和任务分析,教学活动结构及界面设计等环节,而加以制作的课程文档,例如,该课件可以为Word文档、PPT(PowerPoint,演示文稿)等公用格式的文件,也可以为文字、表格、图片等元素组合而成的自定义页面,本实施例对此不加以限制。
S102、接收在书写界面上发生的第一触控操作。
在书写模式中,用户可在在计算机设备的屏幕上使用手指、触摸笔等方式进行点击、滑动等操作,从而在书写界面上触发第一触控操作。
需要说明的是,该第一触控操作仍然属于触控操作,若用户意图使用第一触控操作选定部分笔迹,按照本实施例选定笔迹的操作,用户通常在意图选定的笔迹附近,触发第一触控操作。
例如,如图2B所示,若用户意图选定“1”、“2”、“3”,则可以在“1”、“2”、“3”附近触发第一触控操作201。
此外,对于智能交互平板等大型的计算机设备,可在书写界面的右下角等用户容易触及的位置显示一个面积较小的触控区域,用户可在该触控区域触发第一触控操作,此时,可接收在书写界面中触控区域中发生的第一触控操作,此时,发生第一触控操作的位置为第一坐标,将该第一触控操作的第一坐标按照预设的映射关系映射至书写界面的第二坐标,其中,第二坐标位于触控区域之外,从而模拟发生第一触控操作的位置为第二坐标。
S103、确定第一触控操作为长按操作。
在书写模式中,用户除了可以书写笔迹之外,还可以选定笔迹,等等,因此,对于第一触控操作,可识别其类型,并按照该类型进行相应的处理。
在本实施例中,若识别第一触控操作的类型为长按操作,即持续发生一段时间的按压操作,则可以退出书写模式,进入笔迹操作模式,在笔迹操作模式中,可基于该长按操作选定部分笔迹,待用户进行其他操作。
需要说明的是,在不同的操作系统中,识别长按操作的方式有所不同,本领域技术人员可以根据实际的操作系统设置相应的识别方式,本实施例对此不加以限制。
例如,在Android系统中,操作系统预先定义的事件已经包含了长按事件(OnLongClickListener),即可以直接监听Android系统提供的事件,如果监听到长按事件(OnLongClickListener),则表示当前发生的第一触控操作为长按操作。
又例如,在iOS系统中,操作系统预先定义的事件也已经包含了长按事件(UILongPressGestureRecognizer),即可以直接监听iOS系统提供的事件,如果监听到长按手势事件(UILongPressGestureRecognizer),则表示当前发生的第一触控操作为长按操作。
即使在操作系统中提供了长按事件,但是为了更好的进行控制,在可抽象出触控操作的按下事件、移动事件、抬起事件这三个事件,加上计时器即可识别长按操作。
其中,按下事件可以表示在触摸屏按下,未移动、未抬起,每一个触控点发生一次按下事件,即多点触控操作时会发生多次按下事件,移动事件可以表示在触摸屏按下后进行移动(或滑行),抬起事件可以表示在触摸屏抬起。
在Android系统中,使用ACTION_Down表示按下事件、使用ACTION_Move表示移动事件、使用ACTION_Up表示抬起事件,在iOS系统下,使用touchesBegan表示按下事件、使用touchesMoved表示移动事件、使用touchesEnded表示抬起事件,在Windows系统中,使用WM_TOUCH_DOWN表示按下事件、使用WM_Touch_Move表示移动事件、使用WM_Touch_Up表示抬起事件,在Ubuntu系统下可在GTK(GIMP Toolkit,是一套源码以LGPL许可协议分发、跨平台的图形工具包)框架下使用GDK_TOUCH_BEGIN表示按下事件、使用GDK_TOUCH_UPDATE表示移动事件、使用GDK_TOUCH_END表示抬起事件,等等。
可见,按下事件、移动事件、抬起事件这三个事件并不直接表示长按操作,而不同的事件可以组合定义触控手势,计算机设备可以按照该触控手势触发相应的操作,完成触控操作,即可以通过按下事件、移动事件、抬起事件定义长按操作。
示例性地,长按操作为单点触控操作,反之,若第一触控操作为多点触控操作,则可以认定该第一触控操作并非长按操作。
具体而言,在接收到按下事件时,确认发生第一触控操作,此时,可通过System.Thread.Timer或System.Windows.Threading.DispatcherTimer、KeQueryTickCount函数或KeSetTimer,等方式开启计时器,该计时器用于计时,在计时超过预设的时间段时, 停止计时,并执行指定的动作。
在本实施例中,该时间段用于表示用户按下多长的时间算长按操作,可以由本领域技术人员根据实际情况或用户习惯自由进行设置,如500ms、700ms等,本实施例对此不加以限制。
若第一触控操作为单点触控操作,则可以计算移动事件的坐标与按下事件的坐标之间的距离,用以确定第一触控操作的移动距离。
当然,在某些情况下,长按操作属于多点触控操作,若第一触控操作为多点触控操作,则可以继续检测该第一触控操作是否为长按操作,本实施例对此不加以限制。
需要说明的是,在发生第一触控操作时,一般不允许其他控制操作打断第一触控操作,例如,用户在用户界面中点击某个控件,此时,可以中断检测第一触控操作是否为长按操作。
此外,在内存中生成布尔变量(Boolean Variable),并将该布尔变量设置为第一值(如True)。
若在预设的时间段内、该距离大于或等于预设的误差值,则将该布尔变量从第一值修改为第二值(如False)。
在计时器计时结束时,指定检查布尔变量的动作,此时,若布尔变量为第一值,表示在预设的时间段内、该距离小于预设的误差值,则确认第一触控操作为长按操作。若布尔变量为第二值,表示在预设的时间段内、该距离大于或等于预设的误差值,则确认第一触控操作并非长按操作。
S104、基于发生长按操作的位置在书写界面上确定目标区域。
在笔迹操作模式中,若检测到长按操作,则可以提取长按操作的操作参数,至少部分操作参数可以随长按操作的变化而变化,按照预设的转换关系,使用该操作参数转换为目标区域。
在具体实现中,可至少提取发生长按操作的位置、长按操作持续的时长这些操作参数,基于发生长按操作的位置在书写界面上生成目标区域,一般而言,,目标区域包含发生长按操作的位置,即发生该长按操作的位置(原本发生该长按操作的位置,或者,原本发生该长按操作的位置所映射的位置)位于目标区域内,并且,目标区域的范围与时长正相关,即长按操作持续的时长越长,目标区域的范围越大,反之,长按操作持续的时长越小,目标区域的范围越小。
进一步地,该目标区域的形状可以为圆形、椭圆形、棱形、正方形等规则图形,也可以为不规则图形,等等,本实施例对此不加以限制。
以圆形为例,如图2C所示,可以以发生长按操作201的位置作为圆心、基于长按操作201持续的时长确定半径,生成形状为圆形的目标区域202,其中,该半径与该时长正相关,即长按操作持续的时长越长,半径越大,使得目标区域的范围越大,反之,长按操作持续的时长越小,半径越小,使得目标区域的范围越小。
示例性地,半径可以通过如下公式计算:
l=t*n
其中,l为半径,t为长按操作持续的时长,n为速度参数,可用于调节目标区域的扩张速度,两者正相关,即n越大,目标区域的扩张越快,反之,n越小,目标区域的扩张越慢,属于常量,可以由本领域技术人员根据实际情况设置,
进一步地,如图2D所示,当用户持续长按操作201时,长按操作持续的时长增加,半径随之增大,使得目标区域202的面积随之增大。
需要说明的是,由于目标区域为计算机设备在内存中计算得到的一个区域,在图2C和图2D中,为方便描述目标区域,使用虚线表示目标区域,但并不意味着可视区域为界面中的可视元素。
当然,上述目标区域及其确定方式只是作为示例,在实施本申请实施例时,可以根据实际情况设置其他目标区域及其确定方式,例如,可提取长按操作的位置、时长、按压方向等操作参数,基于发生长按操作的位置确定目标区域,其中,目标区域的范围与长按操作持续的时长正相关,目标区域沿按压方向的扩张速度大于沿其他方向的扩张速度,等等,本申请实施例对此不加以限制。另外,除了上述目标区域及其确定方式外,本领域技术人员还可以根据实际需要采用其它目标区域及其确定方式,本申请实施例对此也不加以限制。
S105、根据目标区域选定至少部分笔迹,作为目标笔迹。
在笔迹操作模式中,在生成目标区域时,可以通过目标区域与笔迹之间的位置关系,从已显示的笔迹中,选定部分或全部笔迹,作为目标笔迹。
一般而言,用户可以通过其他触控操作,如多点触控,对屏幕中的全部笔迹进行操作,因此,在本实施例中,用户通常通过目标区域选定部分笔迹,作为目标笔迹,待用户进行其他操作。
当然,用户也可以通过目标区域选定全部笔迹,作为目标笔迹,待用户进行其他操作,本实施例对此不加以限制。
在具体实现中,可以选定位于目标区域内的笔迹,作为目标笔迹。
此外,若其他笔迹与位于目标区域内的笔迹具有关联性,也可以选定具有关联性的笔迹,作为目标笔迹。
用户在计算机设备上书写笔迹,通常是为了完成一个特定的绘制或书写任务,例如,撰写一个字符、撰写一段文字、绘制一个图形,等等,这些具有独立意义的笔迹,可以称之为笔迹组合。
例如,如图2A所示,“1”、“2”、“3”、“4”、“5”、“6”这六个文字可以分别为六个笔迹组合,此外,“1”、“2”、“3”也可以属于一个笔迹组合,“4”、“5”、“6”属于另一个笔迹组合,等等。
本实施例中的关联性,可以指属于同一个笔迹组合的笔迹。
用户后续具有较大的可能是对这些笔迹组合进行统一的操作,那么,本实施例中可一起选中这些笔迹组合,方便用户操作。
在一实施例中,可以对笔迹进行分组,确定具有关联性的笔迹为笔迹组合,通过几何图形的命中测试算法,可以检测笔迹组合与目标区域是否相交、是否位于目标区域内、是否位于目标区域外,若笔迹组合与目标区域相交或者笔迹组合位于目标区域内,则确定该笔迹组合为目标笔迹,反之,若笔迹组合位于目标区域外,则不会选定该笔迹组合。
在一种方式中,用户在较短时间内书写一个笔迹组合,基于该书写习惯,可在时间的维度上识别笔迹组合,具体地,可确定首个笔迹,所谓首个笔迹,可以指间隔超过预设的目标时间段后,第一个书写的笔迹,其中,该目标时间段用于定义首个笔迹,可以由本领域技术人员根据实际情况设置,如5秒、10秒,等等,本实施例对此不加以限制。
基于首个笔迹确定时间范围,具体地,通常以书写首个笔迹的时间作为起点确定时间范围,该时间范围的长度为预设的时长,从而确定在该时间范围内绘制的笔迹为笔迹组合。
例如,如图2C、图2D所示,若用户在较短时间内书写“1”、“2”、“3”,在对笔迹进行分组时,可选定“1”、“2”、“3”属于同一个笔迹组合,由于“1”、“2”的部分笔迹位于目标区域202内,则可以选定“1”、“2”、“3”为目标笔迹。
在另一种方式中,用户在较小范围内书写一个笔迹组合,基于该书写习惯,可在二维平面上识别笔迹组合,具体地,可确定首个笔迹,基于首个笔迹确定笔迹范围,该笔迹范围可以为以首个笔迹为圆心、预设的值为半径的圆形,也可以为以首个笔迹为中心、预设的值为边长的矩形,等等,本实施例对此不加以限制。从而确定在笔迹范围内绘制的笔迹为笔迹组合。
例如,如图2C、图2D所示,若用户在较小区域内书写“1”、“2”、“3”,此时,可选定“1”、“2”、“3”属于同一个笔迹组合,由于“1”、“2”的部分笔迹位于目标区域202内,则可以选定“1”、“2”、“3”为目标笔迹。
将选定的目标笔迹的几何图形,通过平面几何图形合并算法合并为一个几何图形,由于在计算机设备中,将目标笔迹的几何合并为一个几何图形在界面渲染层面默认已经处理了,即界面显示会将笔迹的几何图形合并为一个渲染层显示,所以在本实施例是直接获取原先合并完成的几何图形,不会占用额外的计算时间。
在整个页面的笔迹合并的几何图形不断和基于长按操作生成的目标区域叠加,通过取交集的叠加方式,可以将笔迹的几何图形和目标区域的几何图形叠加为一个图形,这个图形将会是目标区域的图形和笔迹的图形的交集,并将交集在页面最上层显示,不需要更改原有的笔迹的几何图形的绘制。
可选的,为了将基于长按操作选定的目标笔迹与其他未被选定的笔迹区分,可以对修改目标笔迹在屏幕中的显示状态。
例如,如图2E所示,在目标笔迹“1”、“2”、“3”外显示外接边框203,表示该外接边框203内的笔迹“1”、“2”、“3”处于选定的状态,等等。
在本实施例中,在书写界面上显示笔迹,接收在书写界面上发生的第一触控操作,确定第一触控操作为长按操作,基于发生长按操作的位置在所述书写界面上确定目标区域,其中, 目标区域的范围与长按操作持续的时长正相关,根据目标区域选定至少部分笔迹,作为目标笔迹,用户在书写笔迹时,可直接触发长按操作,通过长按操作控制目标区域,从而选定合适的笔迹,用户书写笔迹的触控操作与长按操作同属于触控操作,两者衔接顺畅,通过长按操作选定笔迹,用户无需点击控件、冻结笔迹,可以保持用户书写行为的连贯性,从而提高书写笔迹的效率。
其次,由于长按操作较为单一,可控性较差,为此,本实施例确定具有关联性的笔迹为笔迹组合,若笔迹组合与目标区域相交或者笔迹组合位于目标区域内,则确定笔迹组合为目标笔迹,通过将具有关联性的笔迹组成笔迹组合,符合用户书写笔迹的习惯,可以快速选择额外的笔迹作为目标笔迹,准确性高,提高选定目标笔迹的效率。
进一步地,本实施例基于用户在较短时间内或在较小区域内书写一个笔迹组合的习惯,在时间或空间的维度上识别笔迹组合,可提高笔迹组合的识别精确度,从而保证选定目标笔迹的精确度。
实施例二
图3为本申请实施例二提供的一种笔迹的选择方法的流程图,本实施例以前述实施例为基础,进一步增加优化笔迹显示、显示提示标识的处理操作,该方法具体包括如下步骤:
S301、在书写界面上显示笔迹。
S302、接收在书写界面上发生的第一触控操作。
在书写模式中,用户触发触控操作,计算机设备无法知道用户触发触控操作的意图是什么,也就是用户第一次在屏幕按下的时候,无法知道用户是想触发滑动操作等指定的触控操作书写笔迹,还是想触发长按操作选定笔迹。
为此,在计算机设备中,设置一个交互过滤层,在书写模式中,若书写界面上发生第一触控操作,则可以将书写界面上发生的第一触控操作传输至预设的交互过滤层,在交互过滤层中识别该第一触控操作的类型,以及,输出第一触控操作的类型,供后续流程操作使用,其中,该类型包括长按操作、用于书写笔迹的触控操作。
需要说明的是,在本实施例中,由于在交互过滤层中识别该触控操作的类型的方式与实施例一中S102的应用基本相似,所以描述的比较简单,相关之处参见实施例一中S102的部分说明即可,本实施例在此不加以详述。
需要说明的是,在计算机设备配置两个或两个以上的屏幕时,用户在某个屏幕上触发第一触控操作,可以在每个屏幕中均响应于第一触控操作,显示相同的、新的笔迹,也可以在发生第一触控操作的屏幕响应于第一触控操作,显示新的笔迹,其他屏幕忽略该第一触控操作,等等,本实施例对此不加以限制。
S303、根据第一触控操作,显示新的笔迹。
在交互过滤层中识别第一触控操作的类型的同时,可以假设第一触控操作为滑动操作等用于书写笔迹的触控操作,并非长按操作,此时,如图4A所示,可响应第一触控操作401, 显示新的笔迹402,使得在交互过滤层中识别第一触控操作的类型为滑动操作等用于书写笔迹的触控操作时,可提高响应该第一触控操作的速度,从而提高显示笔迹的速度,从而提高用户体验。
具体而言,从触控操作中可以解析到很多数据点,显示笔迹是把触摸收集到的数据点转换为绘制的命令,该显示的过程一般分为如下三个步骤:
1、骨架
在通过触控操作拿到的数据点实质为触摸点,在确定骨架时,把数据点转换为线,包括数据点的分割和把数据点画为线。
具体而言,如图5A所示,从收集到的数据点,求两个相邻数据点的中心作为定点(黑色的数据点),使用收集到的数据点做控制点(白色的数据点),使用贝塞尔算法绘制曲线。
如图5B所示,把数据点进行分割,是因为用户书写的笔迹可能存在转角,通过分割数据点为不同的笔画,一个虚线框中的数据点为一个笔画,把转角绘制出来。
对于汉字,汉字具有棱角,对于英文,英文不具备棱角,故期望绘制圆角,因此,本实施例中,根据归属不同语言的字体的形状,可判断用户当前书写的笔迹是棱角还是圆角。
如用户书写的笔迹为英文,如“a”,那么用户希望是绘制圆角的,但是,如果用户书写的笔迹为汉字时,那么用户希望是绘制棱角的。计算机设备无法知道用户当前书写的笔迹是汉字还是英文,因此,可通过判断转角的角度判断用户书写的笔迹为英文还是汉字,从而确定绘制棱角还是圆角。
具体而言,如图5C所示,按照两个数据点连接为线段,求相邻线段的夹角的方法,如α,如果该夹角为钝角(大于90°),则可认为用户书写的笔迹为英文,使用贝塞尔算法显示笔迹,从而绘制出圆角,如果该夹角小于50°,则可认为用户书写的笔迹为汉字,显示笔迹时绘制出棱角,直接把数据点分为两个线段。
2、宽度
通过确定骨架可以连接出线条,但是这线条还没宽度,因此,经过其他计算确定该线条的宽度。
应用宽度的计算,可以写出两端宽度比较大、中间宽度比较小的笔迹。
在一实施例中,宽度计算包括笔锋的宽度计算和非笔锋的宽度计算。
把笔迹分为多段,使用用户的画线角度和存在移动事件(如WM_Touch_Move)与抬起事件(如WM_Touch_Up)之间的数据点分段。
取一段内最后画出来的n(n为正整数,如35)个数据点或一段时间(如6ms)内画出来的数据点(数量一般大于n)作为笔锋,其他的数据点作为非笔锋。
用户可以设置线条的宽度,这个用户设置的宽度为初始宽度,对于计算机设备的触摸屏,可以获得用户在触发触控操作时的触摸速度,即从收集到的数据点记录收集的时间,在一定时间内,可以以收集到的数据点的数量测量用户的触摸速度,收集到的数据点的数量与用户的触摸速度正相关,即收集到的数据点的数量越多,则用户触摸速度越快,反之,收集到的 数据点的数量越少,则用户触摸速度越慢。此外,还可以计算数据点与数据点之间的距离,通过计算相邻两个数据点的距离和该相邻两个数据点的时间差,可以用于测量触摸速度。
示例性地,本领域技术人员定义最高速度和最低速度,最高速度为通过用户使用计算机设备的日志文件分析得到,该日志文件记录了用户在计算机设备中的触控操作的使用信息,通常为每1毫秒绘制5单位长度,单位长度是收集到的数据点的坐标对应的单位。触摸屏的触摸点报告的长度和屏幕尺寸DPI(Dots Per Inch,每英寸点数)都相关,但是单位长度和用户视觉相关,也就是在不同的分辨率、不同的尺寸的屏幕,触摸屏的单位长度误差很小。
若用户设计的笔迹的宽度T,由于收集到的数据点的时间间隔的误差很小,为了优化计算,可以把两个数据点直接的距离作为用户的画线速度v。
求u(v)的方式是取用户的最慢速度w,示例性地,该w为1。为了防止在静止距离获得最小的点为负数,这里使用u(v)=Max(v-w,x),x为常量,示例性地,取x为2。为了防止用户的画线速度太快,取最高速度为5。而最后笔迹宽度Thiness就是在用户书写速度超过最高速度5单位长度1毫秒,的时候取用户设置的宽度80%的值,在用户使用很慢速度书写笔迹的时候采用120%的速度画线。
示例性地,计算宽度的公式如下:
Figure PCTCN2020134212-appb-000001
其中,a为T/0.12。
这样在用户使用快速书写笔迹时,画出宽度比较小的线条,即线条变细,在用户较慢地书写笔迹时,画出宽度比较大的线条,即线条变粗。
3、笔锋
具体而言,取把笔锋线段作为正常线段计算出的线段宽度作为笔锋宽度。笔锋取连接点作为线段,如果刚好笔锋被分开为两段,那么只取最后一段线段作为笔锋。分为两段的情况是笔锋的点存在转角小于50°,可以把最后一段作为笔锋。
示例性地,使用笔锋的点的距离l,做出一个三角形。如图5D所示,最上面的线就是笔锋宽度,每个点所在的笔锋宽度就是点和笔锋第一个点的距离计算出来的宽度。
S304、确定第一触控操作为长按操作。
S305、响应于长按操作,取消显示新的笔迹。
如果用户触发第一触控操作的意图是想要通过长按操作选定笔迹,也就是用户其实不是在书写笔迹,此时,清掉响应第一触控操作画出的新的笔迹。
由于在交互过滤层中识别该触控操作的类型耗时较少,显示的新的笔迹,数量较少,长度较短,并且,如图4A所示,新的笔迹402大多集中在用户的手指、触控笔等下方,刚好被遮挡,此时,当前用户与其他用户一般是不可见该新的笔迹402,因此,在确定第一触控操作的类型之前先行绘制新的笔迹,在确定第一触控操作的类型为长按操作时,如图4B所示,取消显示该新的笔迹402,即,清理非用户意图书写的笔迹402,尽可能减少对用户的影响,可保证用户正常通过长按操作401选定笔迹。
S306、基于发生长按操作的位置在书写界面上确定目标区域。
其中,目标区域的范围与长按操作持续的时长正相关。
S307、在书写界面上显示提示标识。
在笔迹选定模式中,由于长按操作一般是持续发生变化的,其部分参数也可以随之持续发生变化,如持续的时长、按压方向、按压压力等,因此,使用该参数生成的目标区域也是不断变化的,基于该目标区域选定的笔迹也是不断发生变化的。
为了让用户准确地选定所需的笔迹,在发生长按操作时,可在书写界面上显示提示标识,提示标识为界面中可视的元素,可用于提示目标区域与笔迹之间的位置关系,即提示哪些笔迹与目标区域相交,哪些笔迹位于目标区域内,哪些笔迹位于目标区域外,以便用于在目标区域在不断变化的过程中,可以准确地选定所需的笔迹,提高选定目标笔迹的精确度。
需要说明的是,由于目标区域也是不断变化的,因此,提示标识也是随之目标区域的变化而不断变化。
在一种提示的方式中,提示标识包括第一标识,第一标识用于提示目标区域的范围,则可以在笔迹之上显示第一标识,用户通过浏览第一标识了解目标区域的范围,获知哪些笔迹位于目标区域内、哪些笔迹位于目标区域外,便于选定笔迹。
可选地,第一标识可以以设定的透明度显示,如30%、50%等,方便用户在观察到第一标识的同时,观察到位于目标区域内的笔迹。
以圆形作为目标区域的示例,若以发生长按操作的位置作为圆心、基于长按操作持续的时长确定半径,生成形状为圆形的目标区域,其中,半径与时长正相关,那么,如图4C所示,以发生长按操作的位置作为圆心、基于长按操作持续的时长确定半径,生成形状为圆形的第一标识403,其中,半径与时长正相关,使得第一标识403与目标区域(图中未示出)形状相同、位置相同,即第一标识403与目标区域重叠,并且,第一标识403的透明度为50%,使得用户可以透过第一标识403看到“1”、“2”中的部分笔迹,获知“1”、“2”中的部分笔迹位于第一标识403内,即“1”、“2”中被第一标识403覆盖的部分笔迹位于目标区域内,未被第一标识403覆盖的其他笔迹位于目标区域外。
在另一种提示的方式中,提示标识包括第二标识,第二标识用于提示与目标区域相交的笔迹、位于目标区域内的笔迹,则可以在笔迹中显示第二标识。
示例性地,第二标识包括颜色和/或描边,即颜色和描边可以单独使用,也可以组合同时使用。
在本示例中,可以将位于目标区域内的笔迹填充指定的颜色,和/或,对位于目标区域内的笔迹添加描边。
其中,填充的颜色与该笔迹原有的颜色不同,以便区分位于目标区域内与位于目标区域外的状态。
以颜色为例,如图4D所示,将“1”、“2”中位于目标区域中的部分笔迹404填充指定的颜色,使得用户可以获知“1”、“2”中填充指定颜色的部分笔迹404位于目标区域内,其他未填 充指定颜色的笔迹位于目标区域外。
在一实施例中,第一标识与第二标识可以单独使用,也可以组合同时使用,即既提示目标区域的范围,又提示位于目标区域内的笔迹,本实施例对此不加以限制。
当然,上述提示标识只是作为示例,在实施本实施例时,可以根据实际情况设置其他提示标识,例如,第二标识为悬浮标识、透明度,即将位于目标区域内的笔迹修改为悬浮显示、修改位于目标区域内的笔迹的透明度,或者,设计第三标识,如透明度,第三标识用于提示位于目标区域外的笔迹,即修改位于目标区域外的笔迹的透明度,等等,本实施例对此不加以限制。另外,除了上述提示标识外,本领域技术人员还可以根据实际需要采用其它提示标识,本实施例对此也不加以限制。
S308、根据目标区域选定至少部分笔迹,作为目标笔迹。
实施例三
图6为本申请实施例三提供的一种笔迹的选择方法的流程图,本实施例以前述实施例为基础,进一步增加对选定的目标笔迹进行操作,该方法具体包括如下步骤:
S601、在书写界面上显示笔迹。
S602、接收在书写界面上发生的第一触控操作。
S603、确定第一触控操作为长按操作。
S604、基于发生长按操作的位置在书写界面上确定目标区域。
其中,目标区域的范围与长按操作持续的时长正相关。
S605、根据目标区域选定至少部分笔迹,作为目标笔迹。
S606、接收在书写界面上发生的第二触控操作。
S607、根据第二触控操作,对目标笔迹进行操作。
在选定目标笔迹之后,进行漫游模式。
在漫游模式,用户可以在计算机设备的屏幕上使用手指、触摸笔等方式进行点击、滑动等操作,从而在书写界面上触发第二触控操作,计算机设备接收到第二触控操作时,可按照该第二触控操作映射的操作命令,对被选定的目标笔迹进行相应的调整,从而提高触控操作的效率。
可选地,为了用户方便进行切换,如果用户触发的第二触控操作,是触摸到目标笔迹,确认第二触控操作有效,反之,如果用户触发的第二触控操作,是触摸到目标笔迹之外的其他笔迹,确认第二触控操作无效,取消目标笔迹的选定。
在一实施例中,第二触控操作一般为手势操作,可以为单点触控手势,也可以为多点触控手势,本实施例对此不加以限制。
为使本领域技术人员更好地理解本实施例,以下通过具体的示例来说明本实施例中对目标笔迹的操作。
在本实施例中,第二触控操作包括如下至少一种:
1、移动操作
移动操作一般属于单点触控手势,指在屏幕按下之后,沿某一个方向滑动。
在本示例中,确定第二触控操作为移动操作,基于移动操作,拖动目标笔迹。
例如,如图7A所示,用户的手指按下并向左滑动,触发移动操作,如图7B所示,在计算机设备的屏幕中可显示“1”、“2”、“3”向左滑动的过程,用户抬起手指时“1”、“2”、“3”停止滑动。
在一实施例中,可确定移动操作的移动方向,并按照一定的函数关系式将该移动操作映射至在该移动方向上的距离,此时,可在该移动方向上移动目标笔迹,直至到达该距离。
例如,随着移动操作的操作时长增加而等比例映射为移动方向的距离;再如,随着移动操作的移动距离增加而等比例映射为移动方向的距离;又如,随着移动操作的移动速度增加而等比例映射为移动方向的距离,等等。
2、旋转操作
旋转操作一般为多点触控手势,指多个触控点基点旋转移动。
在本示例中,确定第二触控操作为旋转操作,基于旋转操作,旋转目标笔迹。
例如,如图7C所示,用户的两个手指按下并向左顺时针旋转,触发旋转操作,如图7D所示,在计算机设备的屏幕中可显示“1”、“2”、“3”顺时针旋转的过程,用户抬起手指时“1”、“2”、“3”停止顺时针旋转。
在一实施例中,可按照一定的函数关系式将该旋转操作映射至角度,此时,可按照该角度旋转目标笔迹。
例如,随着旋转操作的操作时长增加而等比例映射为角度;再如,随着旋转操作的移动距离增加而等比例映射为角度;又如,随着旋转操作的移动速度增加而等比例映射为角度,等等。
3、缩放操作
缩放操作一般为多点触控手势,指多个触控点聚拢或扩散。
在本示例中,确定第二触控操作为缩放操作,基于缩放操作,缩放目标笔迹。
其中,多个触控点聚拢时,缩小目标笔迹,多个触控点扩散时,放大目标笔迹。
在一实施例中,可按照一定的函数关系式将该缩放操作映射至比例,此时,可按照该比例缩放目标笔迹,其中,该比例小于1时,缩小目标笔迹,该比例大于1时,放大目标笔迹。
例如,随着缩放操作的操作时长增加而等比例映射为比例;再如,随着缩放操作的移动距离增加而等比例映射为比例;又如,随着缩放操作的移动速度增加而等比例映射为比例,等等。
例如,如图7E所示,用户的两个手指按下并向外扩散,触发缩放操作,如图7F所示,在计算机设备的屏幕中可显示“1”、“2”、“3”放大的过程,用户抬起手指时“1”、“2”、“3”停止放大。
4、切屏操作
切屏操作可以为单个手势操作、也可以为两个或两个以上手势操作的组合,如组合长按操作与移动操作等,该手势操作可以为单点触控操作,也可以为多点触控操作,本示例对此不加以限制。
计算机设备配置有两个或两个以上的屏幕,为便于区分不同的屏幕,其中一个屏幕称之为第一屏幕,另一个屏幕称之为第二屏幕,在本示例中,目标笔迹显示在第一屏幕中,确定第二触控操作为切屏操作,基于切屏操作,将目标笔迹从第一屏幕切换至第二屏幕显示,即至少包括取消在第一屏幕显示目标笔迹、在第二屏幕显示目标笔迹这两个动作,在此基础上,还可以包括播放目标笔迹从第一屏幕切换至第二屏幕的动画。
第一屏幕安装有绘制笔迹的第一应用,该第一应用用于绘制目标笔迹。
若第二屏幕也安装有绘制笔迹的第二应用,并且该第一应用与第二应用为同一个应用或者兼容的应用,则第一屏幕可将用于绘制目标笔迹的参数(如坐标、颜色、宽度、透明度等)传输至第二屏幕,该应用按照该参数绘制目标笔迹。
若第二屏幕未安装有绘制笔迹的应用,则第一屏幕可以通过截图、画图等方式生成包含目标笔迹的图像数据,并将该图像数据传输至第二屏幕,第二屏幕显示该图像数据,从而显示目标笔迹。
在一实施例中,为了方便用户选择目标笔迹在第二屏幕中显示的位置,提高多屏的交互效率,第一屏幕在接收到第一操作(如长按操作)时,以缩略图的方式显示第二屏幕的用户界面,在接收到第二操作(如移动操作)时,根据该第二操作在用户界面确定一位置,从而通知第二屏幕在该位置显示目标笔迹。
其中,第一操作与第二操作属于切屏操作中的触控操作。
第二屏幕可以通过截屏等方式,将第二屏幕的用户界面传输至第一屏幕,使得第一屏幕可以以缩略图的方式显示第二屏幕的用户界面。
该用户界面可以包括两个或两个以上的区域,若该位置落入某个区域,则第二屏幕在该区域显示目标笔迹。
例如,如图7G所示,用户触发长按操作,如图7F所示,在计算机设备的第一屏幕(左侧屏幕)中可显示第二屏幕(右侧屏幕)的用户界面的缩略图,如图7H所示,缩略图包含四个区域,分别为“上”、“下”、“左”和“右”。
如图7I与图7J所示,用户触发移动操作,将目标笔迹放置在缩略图中,其位置所处的区域为“下”,为方便用户放置“1”、“2”、“3”,可以将“1”、“2”、“3”按照用户界面与缩略图之间的缩小比例进行缩小后再移动,当然,也可以按照原有大小进行移动,本示例对此不加以限制。
如图7K所示,在计算机设备的第一屏幕(左侧屏幕)中取消显示“123”、在第二屏幕(右侧屏幕)的用户界面中的“下”区域显示“1”、“2”、“3”,实现“1”、“2”、“3”的切屏显示。
当然,上述第二触控操作只是作为示例,在实施本实施例时,可以根据实际情况设置其他第二触控操作,本实施例对此不加以限制。另外,除了上述第二触控操作外,本领域技术 人员还可以根据实际需要采用其它第二触控操作,本实施例对此也不加以限制。
需要说明的是,在用户触发长按操作的过程中,如果用户觉得选定的目标笔迹已经足够了,那么用户可以有两个交互的选择,一是不抬手,直接触发第二触控操作,二是抬手,再继续按下触发触控操作。也就是说,第一触控操作与第二触控操作之间可未间断操作,例如,用户触发长按操作之后,并未抬起,即并未发生抬起事件(如WM_Touch_Up),在目标区域扩张到合适的范围、选定合适的笔迹作为目标笔迹时,直接移动触发移动操作,移动相应的目标笔迹;第一触控操作与第二触控操作之间可间断操作,例如,用户触发长按操作之后,抬起,即发生抬起事件(如WM_Touch_Up),此时选定目标笔迹,再按下触发旋转操作或缩放操作,旋转或缩放目标笔迹,等等,本实施例对此不加以限制。
此外,当用户进结束第二触控操作时,即抬手,发生抬起事件(如WM_Touch_Up),此时,可取消目标笔迹的选定。
实施例四
图8为本申请实施例四提供的一种笔迹的选择方法的流程图,本实施例可适用于在书写笔迹时通过长按操作选定笔迹的情况,该方法可以计算机设备来执行,如智能交互平板等,该计算机设备可以由软件和/或硬件实现,包括显示屏、触控屏、处理器等组件,该方法具体包括如下步骤:
S801、显示屏在书写界面上显示笔迹;
S802、触控屏接收在所述书写界面上发生的第一触控操作;
S803、处理器确定所述第一触控操作为长按操作;
S804、所述处理器基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
S805、所述处理器根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
在本申请的一个实施例中,在S802之后,所述方法还包括:
显示屏根据所述第一触控操作,在所述书写界面上显示新的笔迹;
在S803之后,所述方法还包括:
显示屏响应于所述长按操作,在所述书写界面上取消显示所述新的笔迹。
在本申请的一个实施例中,S803包括:
若所述第一触控操作为单点触控操作,则处理器确定所述第一触控操作的移动距离;
若在预设的时间段内、所述距离小于预设的误差值,则处理器确认所述第一触控操作为长按操作。
在本申请的一个实施例中,S804包括:
处理器以发生所述长按操作的位置作为圆心、基于所述长按操作持续的时长确定半径,生成形状为圆形的目标区域,其中,所述半径与所述时长正相关。
在本申请的一个实施例中,还包括:
显示屏在所述书写界面上显示提示标识,所述提示标识用于提示所述目标区域与所述笔迹之间的位置关系。
在本申请的一个实施例中,所述提示标识包括第一标识和/或第二标识,所述显示屏在所述书写界面上显示提示标识,包括:
显示屏在所述笔迹之上显示第一标识,所述第一标识用于提示所述目标区域的范围;
和/或,
显示屏在所述笔迹中显示第二标识,所述第二标识用于提示与所述目标区域相交的笔迹、位于所述目标区域内的笔迹。
在本申请的一个实施例中,所述第二标识包括颜色和/或描边,所述显示屏在所述笔迹中显示第二标识,包括:
显示屏将位于所述目标区域内的笔迹填充指定的颜色;
和/或,
显示屏对位于所述目标区域内的笔迹添加描边。
在本申请的一个实施例中,S805包括:
处理器确定具有关联性的所述笔迹为笔迹组合;
处理器若所述笔迹组合与所述目标区域相交或者所述笔迹组合位于所述目标区域内,则确定所述笔迹组合为目标笔迹。
在本申请的一个实施例中,所述处理器确定具有关联性的所述笔迹为笔迹组合,包括:
处理器基于首个笔迹确定时间范围;
处理器确定在所述时间范围内绘制的笔迹为笔迹组合;
或者,
处理器基于首个笔迹确定笔迹范围;
处理器确定在所述笔迹范围内绘制的笔迹为笔迹组合。
在本申请的一个实施例中,还包括:
触摸屏接收在所述书写界面上发生的第二触控操作;
显示屏根据所述第二触控操作,对所述目标笔迹进行操作。
在本申请的一个实施例中,显示屏包括第一屏幕、第二屏幕,所述目标笔迹显示在第一屏幕中;
所述显示屏根据所述第二触控操作,对所述目标笔迹进行操作,包括:
若确定所述第二触控操作为移动操作,则显示屏基于所述移动操作,拖动所述目标笔迹;
或者,
若确定所述第二触控操作为旋转操作,则显示屏基于所述旋转操作,旋转所述目标笔迹;
或者,
若确定所述第二触控操作为缩放操作,则显示屏基于所述缩放操作,缩放所述目标笔迹;
或者,
若确定所述第二触控操作为切屏操作,则显示屏基于所述切屏操作,将所述目标笔迹从第一屏幕切换至第二屏幕显示。
在本申请的一个实施例中,S802包括:
触摸屏接收在所述书写界面中触控区域发生的第一触控操作,发生所述第一触控操作的位置为第一坐标;
触摸屏将所述第一坐标映射至所述书写界面上的第二坐标,以模拟发生所述第一触控操作的位置为所述第二坐标。
在本申请的一个实施例中,S803包括:
处理器将所述书写界面上发生的第一触控操作传输至预设的交互过滤层;
处理器在所述交互过滤层中识别所述第一触控操作的类型,以及,输出所述第一触控操作的类型。
在本申请实施例中,由于与实施例一、二、三的应用基本相似,具备相应的有益效果,所以描述的比较简单,相关之处参见实施例一、二、三的部分说明即可,本申请实施例在此不加以详述。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作并不一定是本申请实施例所必须的。
实施例五
图9为本申请实施例五提供的一种笔迹的选择装置的结构示意图,该装置具体可以包括如下模块:
笔迹显示模块901,用于在书写界面上显示笔迹;
第一触控操作接收模块902,用于接收在所述书写界面上发生的第一触控操作;
长按操作确定模块903,用于确定所述第一触控操作为长按操作;
目标区域确定模块904,用于基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
目标笔迹选定模块905,用于根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
在本申请的一个实施例中,还包括:
笔迹绘制模块,用于根据所述第一触控操作,在所述书写界面上显示新的笔迹。
在本申请的一个实施例中,还包括:
笔迹清除模块,用于响应于所述长按操作,在所述书写界面上取消显示所述新的笔迹。
在本申请的一个实施例中,所述长按操作确定模块903包括:
移动距离确定子模块,用于确定所述第一触控操作的移动距离;
时间段确定子模块,用于若在预设的时间段内、所述距离小于预设的误差值,则确认所述第一触控操作为长按操作。
在本申请的一个实施例中,所述目标区域确定模块904包括:
圆形区域生成子模块,用于以发生所述长按操作的位置作为圆心、基于所述长按操作持续的时长确定半径,生成形状为圆形的目标区域,其中,所述半径与所述时长正相关。
在本申请的一个实施例中,还包括:
提示标识显示模块,用于在所述书写界面上显示提示标识,所述提示标识用于提示所述目标区域与所述笔迹之间的位置关系。
在本申请的一个实施例中,所述提示标识包括第一标识和/或第二标识,所述提示标识显示模块包括:
第一标识显示子模块,用于在所述笔迹之上显示第一标识,所述第一标识用于提示所述目标区域的范围;
和/或,
第二标识显示子模块,用于在所述笔迹中显示第二标识,所述第二标识用于提示与所述目标区域相交的笔迹、位于所述目标区域内的笔迹。
在本申请实施例的一个示例中,所述第二标识包括颜色和/或描边,所述第二标识显示子模块包括:
颜色填充单元,用于将位于所述目标区域内的笔迹填充指定的颜色;
和/或,
描边添加单元,用于对位于所述目标区域内的笔迹添加描边。
在本申请的一个实施例中,所述目标笔迹选定模块905包括:
笔迹组合确定子模块,用于确定具有关联性的所述笔迹为笔迹组合;
目标笔迹确定子模块,用于若所述笔迹组合与所述目标区域相交或者所述笔迹组合位于所述目标区域内,则确定所述笔迹组合为目标笔迹。
在本申请的一个实施例中,所述笔迹组合确定子模块包括:
时间范围生成单元,用于基于首个笔迹确定时间范围;
时间范围确定单元,用于确定在所述时间范围内绘制的笔迹为笔迹组合;
或者,
笔迹范围生成单元,用于基于首个笔迹确定笔迹范围;
笔迹范围确定单元,用于确定在所述笔迹范围内绘制的笔迹为笔迹组合。
在本申请的一个实施例中,还包括:
第二触控操作接收模块,用于接收在所述书写界面上发生的第二触控操作;
目标笔迹操作模块,用于根据所述第二触控操作,对所述目标笔迹进行操作。
在本申请实施例的一个示例中,所述目标笔迹操作模块包括:
移动操作确定子模块,用于确定所述第二触控操作为移动操作;
目标笔迹拖动子模块,用于基于所述移动操作,拖动所述目标笔迹;
或者,
旋转操作确定子模块,用于确定所述第二触控操作为旋转操作;
目标笔迹旋转子模块,用于基于所述旋转操作,旋转所述目标笔迹;
或者,
缩放操作确定子模块,用于确定所述第二触控操作为缩放操作;
目标笔迹缩放子模块,用于基于所述缩放操作,缩放所述目标笔迹;
或者,
切屏操作确定子模块,用于确定所述第二触控操作为切屏操作;
目标笔迹切换子模块,用于基于所述切屏操作,将所述目标笔迹从第一屏幕切换至第二屏幕显示。
在本申请的一个实施例中,所述第一触控操作接收模块902包括:
触控区域接收子模块,用于接收在所述书写界面中触控区域发生的第一触控操作,发生所述第一触控操作的位置为第一坐标;
坐标映射子模块,用于将所述第一坐标映射至所述书写界面上的第二坐标,以模拟发生所述第一触控操作的位置为所述第二坐标。
在本申请的一个实施例中,所述长按操作确定模块903包括:
触控操作传输子模块,用于将所述书写界面上发生的第一触控操作传输至预设的交互过滤层;
类型识别子模块,用于在所述交互过滤层中识别所述第一触控操作的类型,以及,输出所述第一触控操作的类型。
本申请实施例所提供的笔迹的选择装置可执行本申请任意实施例所提供的笔迹的选择方法,具备执行方法相应的功能模块和有益效果。
实施例六
图10为本申请实施例六提供的一种计算机设备的结构示意图。如图10所示,该计算机设备包括处理器1000、存储器1001、通信模块1002、输入装置1003和输出装置1004;计算机设备中处理器1000的数量可以是一个或多个,图10中以一个处理器1000为例;计算机设备中的处理器1000、存储器1001、通信模块1002、输入装置1003和输出装置1004可以通过总线或其他方式连接,图10中以通过总线连接为例。
存储器1001作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本实施例中的笔迹的选择方法对应的模块(例如,如图8所示的笔迹的选择装置中的笔迹显示模块801、第一触控操作接收模块802、长按操作确定模块803、目标区域确定模块804和目标笔迹选定模块805)。处理器1000通过运行存储在存储器1001中的软件程序、 指令以及模块,从而执行计算机设备的各种功能应用以及数据处理,即实现上述的笔迹的选择方法。
存储器1001可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器1001可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器1001可进一步包括相对于处理器1000远程设置的存储器,这些远程存储器可以通过网络连接至计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
通信模块1002,用于与屏幕建立连接,并实现与屏幕的数据交互。
输入装置1003可用于接收输入的数字或字符信息,以及产生与计算机设备的用户设置以及功能控制有关的键信号输入,还可以是用于获取图像的摄像头以及获取音频数据的拾音设备。
输出装置1004可以包括扬声器等音频设备。
需要说明的是,输入装置1003和输出装置1004的具体组成可以根据实际情况设定。
处理器1000通过运行存储在存储器1001中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的电子白板的连接节点控制方法。
本实施例提供的计算机设备,可执行本申请任一实施例提供的笔迹的选择方法,具体相应的功能和有益效果。
实施例七
本申请实施例七还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现一种笔迹的选择方法,该方法包括:
在书写界面上显示笔迹;
接收在所述书写界面上发生的第一触控操作;
确定所述第一触控操作为长按操作;
基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
当然,本申请实施例所提供的计算机可读存储介质,其计算机程序不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的笔迹的选择方法中的相关操作。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory, RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
值得注意的是,上述笔迹的选择装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。

Claims (17)

  1. 一种笔迹的选择方法,包括:
    在书写界面上显示笔迹;
    接收在所述书写界面上发生的第一触控操作;
    确定所述第一触控操作为长按操作;
    基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
    根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
  2. 根据权利要求1所述的方法,其中,
    在所述接收在所述书写界面上发生的第一触控操作之后,所述方法还包括:
    根据所述第一触控操作,在所述书写界面上显示新的笔迹;在所述确定所述第一触控操作为长按操作之后,所述方法还包括:
    响应于所述长按操作,在所述书写界面上取消显示所述新的笔迹。
  3. 根据权利要求1所述的方法,其中,所述确定所述第一触控操作为长按操作,包括:
    若所述第一触控操作为单点触控操作,则确定所述第一触控操作的移动距离;
    若在预设的时间段内、所述距离小于预设的误差值,则确认所述第一触控操作为长按操作。
  4. 根据权利要求1所述的方法,其中,所述基于发生所述长按操作的位置在所述书写界面上确定目标区域,包括:
    以发生所述长按操作的位置作为圆心、基于所述长按操作持续的时长确定半径,生成形状为圆形的目标区域,其中,所述半径与所述时长正相关。
  5. 根据权利要求1-4任一所述的方法,还包括:
    在所述书写界面上显示提示标识,所述提示标识用于提示所述目标区域与所述笔迹之间的位置关系。
  6. 根据权利要求5所述的方法,其中,所述提示标识包括第一标识和/或第二标识,所述在所述书写界面上显示提示标识,包括:
    在所述笔迹之上显示第一标识,所述第一标识用于提示所述目标区域的范围;
    和/或,
    在所述笔迹中显示第二标识,所述第二标识用于提示与所述目标区域相交的笔迹、位于所述目标区域内的笔迹。
  7. 根据权利要求6所述的方法,其中,所述第二标识包括颜色和/或描边,所述在所述笔迹中显示第二标识,包括:
    将位于所述目标区域内的笔迹填充指定的颜色;
    和/或,
    对位于所述目标区域内的笔迹添加描边。
  8. 根据权利要求1或2或3或4或6或7所述的方法,其中,所述根据所述目标区域选 定至少部分所述笔迹,作为目标笔迹,包括:
    确定具有关联性的所述笔迹为笔迹组合;
    若所述笔迹组合与所述目标区域相交或者所述笔迹组合位于所述目标区域内,则确定所述笔迹组合为目标笔迹。
  9. 根据权利要求8所述的方法,其中,所述确定具有关联性的所述笔迹为笔迹组合,包括:
    基于首个笔迹确定时间范围;
    确定在所述时间范围内绘制的笔迹为笔迹组合;
    或者,
    基于首个笔迹确定笔迹范围;
    确定在所述笔迹范围内绘制的笔迹为笔迹组合。
  10. 根据权利要求1或2或3或4或6或7或9所述的方法,还包括:
    接收在所述书写界面上发生的第二触控操作;
    根据所述第二触控操作,对所述目标笔迹进行操作。
  11. 根据权利要求10所述的方法,其中,所述目标笔迹显示在第一屏幕中;
    所述根据所述第二触控操作,对所述目标笔迹进行操作,包括:
    确定所述第二触控操作为移动操作;
    基于所述移动操作,拖动所述目标笔迹;
    或者,
    确定所述第二触控操作为旋转操作;
    基于所述旋转操作,旋转所述目标笔迹;
    或者,
    确定所述第二触控操作为缩放操作;
    基于所述缩放操作,缩放所述目标笔迹;
    或者,
    确定所述第二触控操作为切屏操作;
    基于所述切屏操作,将所述目标笔迹从第一屏幕切换至第二屏幕显示。
  12. 根据权利要求1或2或3或4或6或7或9所述的方法,其中,所述接收在所述书写界面上发生的第一触控操作,包括:
    接收在所述书写界面中触控区域发生的第一触控操作,发生所述第一触控操作的位置为第一坐标;
    将所述第一坐标映射至所述书写界面上的第二坐标,以模拟发生所述第一触控操作的位置为所述第二坐标。
  13. 根据权利要求1或2或3或4或6或7或9所述的方法,其中,所述确定所述第一触控操作为长按操作,包括:
    将所述书写界面上发生的第一触控操作传输至预设的交互过滤层;
    在所述交互过滤层中识别所述第一触控操作的类型,以及,输出所述第一触控操作的类型。
  14. 一种笔迹的选择方法,包括:
    显示屏在书写界面上显示笔迹;
    触控屏接收在所述书写界面上发生的第一触控操作;
    处理器确定所述第一触控操作为长按操作;
    所述处理器基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
    所述处理器根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
  15. 一种笔迹的选择装置,包括:
    笔迹显示模块,用于在书写界面上显示笔迹;
    第一触控操作接收模块,用于接收在所述书写界面上发生的第一触控操作;
    长按操作确定模块,用于确定所述第一触控操作为长按操作;
    目标区域确定模块,用于基于发生所述长按操作的位置在所述书写界面上确定目标区域,所述目标区域的范围与所述长按操作持续的时长正相关;
    目标笔迹选定模块,用于根据所述目标区域选定至少部分所述笔迹,作为目标笔迹。
  16. 一种计算机设备,包括:
    一个或多个处理器;
    存储器,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-13中任一所述的笔迹的选择方法。
  17. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如权利要求1-13中任一所述的笔迹的选择方法。
PCT/CN2020/134212 2020-04-07 2020-12-07 笔迹选择方法、装置、计算机设备和存储介质 WO2021203724A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010264050.6 2020-04-07
CN202010264050.6A CN111475097B (zh) 2020-04-07 2020-04-07 一种笔迹选择方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2021203724A1 true WO2021203724A1 (zh) 2021-10-14

Family

ID=71749974

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/134212 WO2021203724A1 (zh) 2020-04-07 2020-12-07 笔迹选择方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN111475097B (zh)
WO (1) WO2021203724A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610188A (zh) * 2022-02-09 2022-06-10 广东能龙教育股份有限公司 一种界面笔迹书写方法及系统、控制装置、存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475097B (zh) * 2020-04-07 2021-08-06 广州视源电子科技股份有限公司 一种笔迹选择方法、装置、计算机设备和存储介质
US20220308712A1 (en) * 2020-10-29 2022-09-29 Boe Technology Group Co., Ltd. Intelligent interactive method, device and apparatus for touch display device and storage medium
CN115480658A (zh) * 2021-05-28 2022-12-16 华为技术有限公司 一种手写笔输入方法、电子设备及系统
CN113433748B (zh) * 2021-07-07 2023-04-11 珠海市唯酷科技有限公司 具备局部擦除功能的液晶手写膜和电子书写设备
CN114035739B (zh) * 2021-11-12 2023-12-29 网易(杭州)网络有限公司 图形绘制方法和装置、计算机可读存储介质、电子设备
CN114237418A (zh) * 2021-11-19 2022-03-25 新华三智能终端有限公司 一种轨迹识别方法及装置
CN115002084B (zh) * 2022-08-01 2023-01-17 广州迈聆信息科技有限公司 书写笔迹处理方法、装置、电子设备和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019578A (zh) * 2011-09-27 2013-04-03 中国移动通信集团公司 文本选择方法和装置以及图片截取方法和装置
CN103324396A (zh) * 2012-12-17 2013-09-25 上海海知信息技术有限公司 在笔迹图像上进行编辑的方法
US20140181740A1 (en) * 2012-12-21 2014-06-26 Nokia Corporation Method and apparatus for related user inputs
CN110069205A (zh) * 2019-04-15 2019-07-30 广州视源电子科技股份有限公司 一种书写轨迹调整的方法、装置、终端设备和存储介质
CN110716680A (zh) * 2019-10-09 2020-01-21 广州视源电子科技股份有限公司 智能交互平板的控制方法和装置
CN110928614A (zh) * 2019-10-11 2020-03-27 广州视源电子科技股份有限公司 界面显示方法、装置、设备及存储介质
CN111475097A (zh) * 2020-04-07 2020-07-31 广州视源电子科技股份有限公司 一种笔迹选择方法、装置、计算机设备和存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170083154A1 (en) * 2014-03-20 2017-03-23 Nec Corporation Information processing apparatus, information processing method, and information processing program
CN104317453B (zh) * 2014-10-27 2017-09-26 广州视睿电子科技有限公司 触摸屏书写方法和系统
JP2016111652A (ja) * 2014-12-10 2016-06-20 オリンパス株式会社 撮像装置、撮像方法およびプログラム
CN107632760B (zh) * 2017-08-21 2019-12-17 广州视源电子科技股份有限公司 书写笔迹圈选方法及装置、触摸设备、可读存储介质
CN110928475B (zh) * 2019-10-09 2021-08-20 广州视源电子科技股份有限公司 智能交互平板的页面交互方法、装置、设备和存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019578A (zh) * 2011-09-27 2013-04-03 中国移动通信集团公司 文本选择方法和装置以及图片截取方法和装置
CN103324396A (zh) * 2012-12-17 2013-09-25 上海海知信息技术有限公司 在笔迹图像上进行编辑的方法
US20140181740A1 (en) * 2012-12-21 2014-06-26 Nokia Corporation Method and apparatus for related user inputs
CN110069205A (zh) * 2019-04-15 2019-07-30 广州视源电子科技股份有限公司 一种书写轨迹调整的方法、装置、终端设备和存储介质
CN110716680A (zh) * 2019-10-09 2020-01-21 广州视源电子科技股份有限公司 智能交互平板的控制方法和装置
CN110928614A (zh) * 2019-10-11 2020-03-27 广州视源电子科技股份有限公司 界面显示方法、装置、设备及存储介质
CN111475097A (zh) * 2020-04-07 2020-07-31 广州视源电子科技股份有限公司 一种笔迹选择方法、装置、计算机设备和存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610188A (zh) * 2022-02-09 2022-06-10 广东能龙教育股份有限公司 一种界面笔迹书写方法及系统、控制装置、存储介质
CN114610188B (zh) * 2022-02-09 2024-02-13 广东能龙教育股份有限公司 一种界面笔迹书写方法及系统、控制装置、存储介质

Also Published As

Publication number Publication date
CN111475097B (zh) 2021-08-06
CN111475097A (zh) 2020-07-31

Similar Documents

Publication Publication Date Title
WO2021203724A1 (zh) 笔迹选择方法、装置、计算机设备和存储介质
US9996176B2 (en) Multi-touch uses, gestures, and implementation
EP3180687B1 (en) Hover-based interaction with rendered content
US10133396B2 (en) Virtual input device using second touch-enabled display
US6380929B1 (en) Pen drawing computer input device
US20210049321A1 (en) Device, method, and graphical user interface for annotating text
CN102436343B (zh) 基于触摸输入来对齐用户界面元素
KR101328202B1 (ko) 제스처 입력을 통한 기능 수행 명령실행 방법 및 장치
WO2019047147A1 (zh) 图标移动方法及装置
US11137903B2 (en) Gesture-based transitions between modes for mixed mode digital boards
CN113515228A (zh) 一种虚拟标尺显示方法以及相关设备
US20240004532A1 (en) Interactions between an input device and an electronic device
JP6219100B2 (ja) ソフトウェアキーボードを表示可能な画像表示装置及びその制御方法
WO2022218352A1 (zh) 触控操作方法及装置
WO2023030377A1 (zh) 一种写画内容显示方法以及相关设备
US10809850B2 (en) Touch event processing method and touchscreen apparatus
CN108932054B (zh) 显示装置、显示方法和非暂时性的记录介质
WO2023131022A1 (zh) 显示控制方法、电子设备及可读存储介质
CN116048370A (zh) 显示设备及操作切换方法
CN114281284A (zh) 显示设备和图像显示方法

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: 20930383

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 02.03.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20930383

Country of ref document: EP

Kind code of ref document: A1