CN114690930A - Handwriting processing method and device, interactive panel and storage medium - Google Patents

Handwriting processing method and device, interactive panel and storage medium Download PDF

Info

Publication number
CN114690930A
CN114690930A CN202110435260.1A CN202110435260A CN114690930A CN 114690930 A CN114690930 A CN 114690930A CN 202110435260 A CN202110435260 A CN 202110435260A CN 114690930 A CN114690930 A CN 114690930A
Authority
CN
China
Prior art keywords
handwriting
touch
writing
stack
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110435260.1A
Other languages
Chinese (zh)
Inventor
陈玉香
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Chuangzhi Technology Co ltd
Original Assignee
Guangzhou Chuangzhi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Chuangzhi Technology Co ltd filed Critical Guangzhou Chuangzhi Technology Co ltd
Priority to CN202110435260.1A priority Critical patent/CN114690930A/en
Publication of CN114690930A publication Critical patent/CN114690930A/en
Pending legal-status Critical Current

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1643Details related to the display arrangement, including those related to the mounting of the display in the housing the display being associated to a digitizer, e.g. laptops that can be used as penpads
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0421Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by interrupting or reflecting a light beam, e.g. optical touch-screen
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/12Classification; Matching

Landscapes

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

Abstract

The embodiment of the application discloses a handwriting processing method, a handwriting processing device, an interactive flat panel and a storage medium, wherein the method comprises the following steps: receiving first touch track information of a first writing operation, wherein the first writing operation is executed on a display screen by a first touch object; receiving a first elastic wave signal detected by an elastic wave sensor, and determining an identifier of a first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and contacts a display screen; determining a handwriting type corresponding to the first touch object according to the identifier of the first touch object, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information; and storing the drawing operation corresponding to the handwriting into the corresponding specific operation stack according to the identification corresponding to the handwriting, and storing the identification and the stack top address information of the specific operation stack into the global operation stack. By adopting the technical means, the problem that the operation mode for switching the writing effect is complex is solved.

Description

Handwriting processing method and device, interactive panel and storage medium
Technical Field
The embodiment of the application relates to the technical field of electronic whiteboards, in particular to a handwriting processing method and device, an interactive panel and a storage medium.
Background
With the continuous progress of the technology development, many electronic devices with handwriting input systems are entering the market, such as mobile phones, electronic books, tablet computers and other intelligent terminals with handwriting functions. In order to enrich the application of the intelligent terminal to the handwriting function, the electronic whiteboard application program is developed, and the electronic whiteboard can display input characters or pictures according to handwriting written by a user on a screen. The electronic whiteboard can acquire information such as contact area, position, moving speed and/or pressure of a touch object through the touch screen, and simulate writing handwriting by utilizing an algorithm, specifically, simulate writing effects of different media by utilizing different algorithms, such as simulating writing handwriting of a highlighter, a pen, a writing brush and the like.
In the prior art, in order to simulate out the writing effect of different media, need carry out different mode setting or attribute setting to whiteboard, for example, set up whiteboard's writing mode into pen mode, writing brush mode, fluorescence pen mode or set up writing handwriting's attribute into pen, writing brush, fluorescence pen etc. this kind of operating method is complicated, the user wants to realize other writing effects at the writing in-process, need set up again, when the user needs switch over in multiple writing effect, need operate the setting repeatedly, experience feels poor. In addition, the existing electronic whiteboard provides undo or redo operations for all handwriting in a unified manner, and only part of the handwriting cannot be undone or redone, which results in that an application scenario that some users only want to undo or redo certain types of handwriting cannot be satisfied.
Disclosure of Invention
The embodiment of the application provides a handwriting processing method and device, an interactive flat panel and a storage medium, solves the problem that in the prior art, the operation mode for switching multiple writing effects is complex, and improves user experience.
In a first aspect, an embodiment of the present application provides a handwriting processing method, which is applied to an interactive tablet, where the interactive tablet includes a display screen and a touch sensing module, the interactive tablet is further provided with an elastic wave sensor, and the method includes:
receiving first touch track information of a first writing operation detected by the touch sensing module, wherein the first writing operation is executed on the display screen by a first touch object;
receiving a first elastic wave signal detected by the elastic wave sensor, and determining the identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object contacts the display screen when the first touch object executes the first writing operation;
determining a handwriting type corresponding to the first touch article according to the identifier of the first touch article, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information;
and storing the drawing operation corresponding to the handwriting into a corresponding specific operation stack according to the identification corresponding to the handwriting, and storing the identification and the stack top address information of the specific operation stack into a global operation stack.
In a second aspect, an embodiment of the present application provides a writing trace processing apparatus, including:
the touch control system comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is configured to receive first touch track information of a first writing operation detected by a touch control sensing module, and the first writing operation is executed by a first touch object on a display screen;
a first recognition module configured to receive a first elastic wave signal detected by an elastic wave sensor, determine an identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object contacts the display screen when the first touch object performs the first writing operation;
the drawing module is configured to determine a handwriting type corresponding to the first touch object according to the identifier of the first touch object, and draw a corresponding writing in the display screen according to the handwriting type and the first touch track information;
and the stack-entering module is configured to store drawing operation corresponding to the writing script into a corresponding specific operation stack according to the identification corresponding to the writing script, and store the identification and the stack top address information of the specific operation stack into a global operation stack.
In a third aspect, an embodiment of the present application provides an interactive tablet, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the handwriting processing method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the handwriting processing method of the first aspect.
According to the handwriting processing method, the handwriting processing device, the handwriting processing equipment and the handwriting processing storage medium, the first touch track information of the first writing operation detected by the touch sensing module is received, and the first writing operation is executed on the display screen by the first touch object; receiving a first elastic wave signal detected by an elastic wave sensor, and determining an identifier of a first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and the first touch object contacts a display screen; determining a handwriting type corresponding to the first touch object according to the identifier of the first touch object, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information; and storing the drawing operation corresponding to the writing handwriting into the corresponding specific operation stack according to the identification corresponding to the writing handwriting, and storing the identification of the specific operation stack and the stack top address information into the global operation stack. By adopting the technical means, because the elastic wave signals detected by the elastic wave sensors are different when different touch objects are subjected to touch operation on the interactive flat panel, different touch objects can be distinguished through the elastic wave signals, and the corresponding handwriting types are matched according to the touch objects so as to generate the handwriting highly attached to the touch objects, thereby providing more real writing experience for a user, avoiding the user from realizing other writing effects in the writing process and repeatedly carrying out setting operation. The writing handwriting displayed on the display screen is classified through the touch article corresponding to the writing handwriting, and the operation of drawing the writing handwriting of the same type is stored in the same operation stack, so that a user can conveniently select to cancel and redo the drawing operation of the writing handwriting of a certain type or to cancel and redo the drawing operation of all the writing handwriting, more interaction modes and data processing modes are provided for the user, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of a handwriting processing method provided by an embodiment of the present application;
fig. 2 is a first schematic diagram of a first specific operation stack provided in an embodiment of the present application;
FIG. 3 is a diagram of a second particular operation stack provided by an embodiment of the present application;
FIG. 4 is a flow chart of another handwriting processing method provided by an embodiment of the present application;
FIG. 5 is a second diagram of a first specific operation stack provided by an embodiment of the present application;
fig. 6 is a first schematic diagram of a global operation stack provided in an embodiment of the present application;
fig. 7 is a second schematic diagram of a global operation stack provided in an embodiment of the present application;
FIG. 8 is a flow chart of another handwriting processing method provided by an embodiment of the present application;
FIG. 9 is a flow chart of another writing script processing method provided by one embodiment of the present application;
FIG. 10 is a flow chart of another handwriting processing method provided by an embodiment of the present application;
FIG. 11 is a first schematic diagram of a display screen provided by an embodiment of the present application;
FIG. 12 is a flow chart of another handwriting processing method provided by an embodiment of the present application;
FIG. 13 is a flow chart of another handwriting processing method provided by an embodiment of the present application;
FIG. 14 is a second schematic view of a display screen provided by an embodiment of the present application;
FIG. 15 is a third schematic view of a display screen provided by an embodiment of the present application;
FIG. 16 is a fourth schematic view of a display screen provided by an embodiment of the present application;
FIG. 17 is a fifth schematic view of a display screen provided by an embodiment of the present application;
FIG. 18 is a flow chart of another handwriting processing method provided by an embodiment of the present application;
FIG. 19 is a sixth schematic view of a display screen provided by an embodiment of the present application;
FIG. 20 is a schematic structural diagram of a handwriting processing apparatus according to an embodiment of the present application;
fig. 21 is a schematic structural diagram of an interactive tablet according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
It is noted that, in the present application, relational terms such as first and second, and the like are used solely to distinguish one entity or action or object from another entity or action or object without necessarily requiring or implying any actual such relationship or order between such entities or actions or objects. For example, the "first" and "second" of the first touch item and the second touch item are used to distinguish between touch items that touch the screen cover at two different times. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The handwriting processing method provided by the embodiment of the application can be executed by an interactive flat plate, and the interactive flat plate has a touch function. The interactive flat panel can operate contents displayed on the display screen and realize man-machine interaction operation through a touch technology, and integrates one or more functions of a projector, a white board, a curtain, a sound, a television, a video conference terminal and the like. In practical application, the hardware part of the interactive flat panel is composed of a display screen, an intelligent processing system and the like, the display screen and the intelligent processing system are combined together through an integral structural part, meanwhile, a special software system is used as a support, and the display screen has a touch function. The user can perform touch operation on the display screen through a finger or a touch pen, the intelligent processing system generates writing handwriting according to the touch operation input by the user and displays the writing handwriting in the display screen, or generates control operation according to the touch operation input by the user to process display content in the display screen.
Typically, the interactive tablet is installed with at least one type of operating system, wherein the operating system includes, but is not limited to, an android system, a Hongmon system, a Linux system, and a Windows system. And processing the touch operation received through the display screen through the operating system. Further, the interactive tablet may have at least one application installed based on the operating system, such as a whiteboard application installed in the interactive tablet. The whiteboard may be an application program carried by the operating system, or an application program downloaded from a third-party device or a server. The whiteboard application refers to an application for a user to write, display and other operations, and may be used to generate writing handwriting according to the writing operation of the user on an interface of the whiteboard application, and may also be used to insert and display multimedia elements on the interface of the whiteboard application, where the multimedia elements may include graphics, images, forms, documents, audio files and/or video files. In the interface of the whiteboard application, a user can realize writing, drawing, erasing and other operations similar to those of an entity blackboard, and further has better digital functions of moving, storing, zooming, inserting pictures, adjusting colors, setting stroke weights and the like. In practical applications, the whiteboard application may also be named as a writing application, an electronic whiteboard application, a collaborative whiteboard application, and the like, and the application for realizing the above functions is equivalent to the whiteboard application of the present application regardless of changes in the name. In the embodiment, the writing processing method is executed by a whiteboard application, the display screen displays an interface of the whiteboard application, a user can perform touch operation on the whiteboard application interface in the display screen through a finger or a touch pen, and the intelligent processing system generates writing according to the touch operation input by the user and displays the writing in the whiteboard application interface, or generates control operation according to the touch operation input by the user to process display content in the whiteboard application interface.
FIG. 1 is a flowchart of a handwriting processing method according to an embodiment of the present application. The handwriting processing method is applied to an interactive flat plate, the interactive flat plate comprises a display screen and a touch sensing module, and the interactive flat plate is further provided with an elastic wave sensor. Specifically, referring to fig. 1, the method for processing handwriting includes:
s110, receiving first touch track information of a first writing operation detected by the touch sensing module, wherein the first writing operation is executed on the display screen by the first touch object.
Illustratively, when a user uses a first touch object to input a first writing operation on a display screen, a touch sensing module mounted on the display screen detects first touch trajectory information of the first writing operation input by the user, and sends the first touch trajectory information to a processor of an interactive tablet to inform the processor of processing the first writing operation.
The first touch track information comprises a contact area, a moving speed, a moving acceleration, a contact position and/or a contact pressure when the first touch object touches the display screen. The contact area, the moving speed, the moving acceleration and the contact position are measured by optical touch sensors arranged on two sides of the surface of the display screen. For example, when the touch object touches the screen cover, the optical touch sensor scans the touch object through the optical signal to sense the operation performed by the touch object on the screen cover. Specifically, the optical touch sensor comprises an infrared transmitter and an infrared receiver, the infrared transmitter is used for transmitting infrared light, the infrared receiver is used for receiving the infrared light, and infrared light rays densely distributed in different directions are utilized to form a light beam grid to position a touch point. Illustratively, M infrared transmitters are arranged on one side of the horizontal direction of the display screen, N infrared transmitters are arranged on one side of the vertical direction of the display screen, correspondingly, M infrared receivers are arranged on the other side of the horizontal direction of the display screen, N infrared receivers are arranged on the other side of the vertical direction of the display screen, the infrared transmitters transmit infrared light at a certain frequency, and the corresponding infrared receivers receive the infrared light at a certain frequency. When the touch object touches the screen cover plate, the touch object can completely or partially block one or more vertical horizontal infrared lights, and then an infrared light intensity pixel graph of M x N is obtained. Firstly, finding a position larger than a first light intensity threshold value on an infrared light intensity pixel map, wherein the first light intensity threshold value represents real effective touch, but not the light intensity measured when noise or an object approaches but does not completely touch and semi-shields the infrared light, and the real touch position is the contact position when a touch object is in contact with a screen cover plate. Furthermore, the position, larger than the second light intensity threshold value, in the vicinity of the real touch position is found, the second light intensity threshold value is larger than the noise value, the extension of the real touch position can be represented, the position, larger than the second light intensity threshold value, in the vicinity of the real touch position is marked as an effective touch area, and the area of the touch area is the contact area of the touch object and the screen cover plate. When the touch object moves on the screen cover plate, the contact position and the contact area of the touch object on the screen cover plate are recorded by the multi-frame time continuous infrared light intensity pixel map, the moving speed of the touch object on the screen cover plate can be obtained through the contact position and the contact area recorded in the continuous frames, and the moving acceleration is further calculated according to the moving speed. And when the touch object leaves the screen cover plate, the shielding of the touch object on infrared light is reduced, if the contact position in the previous frame of infrared light intensity pixel map does not have a pixel exceeding a third light intensity threshold value in the relative position and the adjacent area in the current infrared light intensity pixel map, the relation between the touch object and the screen cover plate at the moment is determined as the touch separation, and the third light intensity threshold value represents the maximum light intensity when the touch separation is carried out.
In addition, the first touch track information further includes a touch pressure when the first touch object touches the interactive tablet. The touch pressure is the pressure of the touch object pressing on the screen cover plate, and the touch pressure is measured by the pressure sensor when the touch object touches on the screen cover plate. For example, the pressure sensors are installed below the screen cover plate or at the screen frame, due to the force superposable property, the pressure sensors can sense pressure information at different positions, and the pressure of each touch point can be derived by combining the optical touch sensors.
It should be noted that the optical touch sensor and the pressure sensor form a touch sensing module.
S120, receiving a first elastic wave signal detected by the elastic wave sensor, and determining the identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and the first touch object contacts the display screen.
Illustratively, the first elastic wave signal is measured by a piezoelectric elastic wave sensor mounted at the screen bezel or inside the screen cover. Specifically, when the first touch object touches the screen cover of the interactive tablet, an elastic wave signal with characteristics is generated, and the elastic wave signal propagates from the contact point to the periphery along the screen cover or to the inner side of the screen cover. The piezoelectric elastic wave sensor located at the screen frame or on the inner side of the cover plate converts an elastic wave signal into a voltage signal, then transmits the voltage signal to an I C chip with a temperature compensation circuit for amplification, converts the amplified voltage signal into a digital voltage signal through an analog-to-digital conversion circuit, and takes the digital voltage signal as a first elastic wave signal. Furthermore, elastic wave signals generated when different touch objects touch the screen cover plate are different, and elastic wave signals measured by the corresponding piezoelectric elastic wave sensors are also different, so that different touch objects can be distinguished through the elastic wave signals.
And further, taking the elastic wave signal as input, outputting the identifier of the touch object through a machine learning model, and determining the touch object corresponding to the elastic wave signal through the preset corresponding relation between the identifier of the touch object and the type of the touch object. Understandably, the first elastic wave signal is input into a machine learning model trained in advance, and the machine learning model outputs the identifier of the first touch object corresponding to the first elastic wave signal.
S130, determining a handwriting type corresponding to the first touch object according to the identification of the first touch object, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information.
Illustratively, after determining the identifier of the first touch object written on the screen by the user, determining the type of the first touch object according to the preset corresponding relationship between the identifier of the touch object and the type of the touch object, and further determining the handwriting type corresponding to the first touch object according to the preset corresponding relationship between the type of the touch object and the handwriting type. And determining the handwriting type of the writing handwriting according to the type of the touch article. For example, if the touch object is identified as the first material and the first material is preset to correspond to the pen handwriting, the handwriting type of the writing handwriting is determined to be the pen handwriting.
Further, generating corresponding writing according to the writing type and the first touch track information, and drawing the corresponding writing in the display screen. Accordingly, this step can be implemented in three ways:
the first method is as follows: and calculating the handwriting position and the handwriting width of the handwriting according to the contact area and the contact position.
Exemplarily, the coordinate of the touch object touching the screen cover plate is determined according to the contact position, the coordinate of the writing in the display screen is correspondingly determined according to the coordinate, and the thickness of the writing is determined according to the corresponding contact area at the contact position.
The second method comprises the following steps: and calculating the handwriting color of the handwriting according to the handwriting color and the contact pressure set by the interactive flat plate.
Illustratively, the handwriting color set by the interactive flat panel is obtained, and the corresponding trace point color is determined according to the handwriting color and the corresponding contact pressure at the contact position. Wherein, the trace point is darker in color when the contact pressure sense is larger. Understandably, when a real pen writes on paper, the writing strength is larger, and the handwriting color is darker, so that the embodiment simulates the real scene and provides a more real writing experience for a user.
The third method comprises the following steps: and calculating the connecting track between the adjacent track points of the handwriting according to the moving speed, the moving acceleration, the contact area and the contact pressure.
Illustratively, the connection track between the track points of two adjacent contact points is determined according to the moving speed difference, the moving acceleration difference, the contact pressure feeling difference and the area difference between the two contact points. The width of the connecting track is calculated by a width formula, wherein the width formula is as follows:
W=a*f1*ΔV+b*f2*ΔP+c*f3*ΔS+d*f4*ΔA+C0
the color depth of the connecting track is calculated by a depth formula, wherein the depth formula is as follows:
D=x*g1*ΔP+y*g2*ΔV+C2
where W is the width of the connecting trajectory, Δ V is the moving speed difference, Δ P is the contact pressure difference, Δ S is the area difference, Δ a is the moving acceleration difference, a, b, C, d, x, y, C0, and C2 are constants, and f1, f2, f3, f4, g1, and g2 are coefficients. The coefficients may be calculated empirically or experimentally, and the constants may be obtained from a deep learning model.
The three handwriting determining modes can be combined automatically to generate handwriting more fitting to the writing operation of the user, and more real writing experience is provided for the user. Further, the identification of the touch object is recorded in the data structure of the handwriting, so that the writing identification of the same identification is classified and processed according to the identification of the handwriting.
S140, according to the identification corresponding to the handwriting, the drawing operation corresponding to the handwriting is stored in the corresponding specific operation stack, and the identification and the stack top address information of the specific operation stack are stored in the global operation stack.
Illustratively, the drawing operation of the handwriting refers to a whole operation process of generating the handwriting according to the touch track information and the elastic wave signal and drawing the handwriting on the display screen, and the identifier of the handwriting can be regarded as an identifier of the drawing operation. The specific operation stack refers to an operation stack which only stores one kind of drawing operation with the same identifier, namely, the identifiers of the drawing operations in one specific operation stack are the same. When the drawing operation is stored in the specific operation stack, the drawing operation is stored above the stack top of the specific operation stack and becomes a new stack top, and therefore address information of the stack top of the specific operation stack changes every time when a new drawing operation is stored in the specific operation stack. The stack is a data structure with first in and last out, which only allows to operate the data stored on the top of the stack, and the structure of the stack shows that if the drawing operation in the specific operation stack is cancelled, the drawing operation is cancelled according to the sequence of the drawing operation stored in the specific operation stack, and the drawing operation stored later is cancelled first. When the drawing operation is cancelled, the handwriting corresponding to the drawing operation disappears in the display screen. In the embodiment, the operations for drawing the same type of handwriting are stored in the same operation stack, so that the user can conveniently cancel and redo the drawing operation of a certain type of handwriting.
The global operation stack is an operation stack in which all drawing operations are stored, and the drawing operations in the global operation stack are cancelled, namely the cancelling is performed according to the drawing sequence of all handwriting on the display screen. However, since the specific operation stack is introduced in this embodiment, if a storage manner of storing all drawing operations in the operation stack according to the drawing operation sequence of the conventional global operation stack is used, the specific operation stack and the global operation stack cannot coordinate when the global operation stack or the specific operation stack is removed. Therefore, in this embodiment, the storage manner of the global operation stack is improved, and the identifier and the stack top address information of the specific operation stack are stored in the global operation stack. Wherein the identification of the specific operation stack is the identification of the stored drawing operation. When a specific operation stack has a new drawing operation, the stack top address information of the specific operation stack changes, the new stack top address information points to the address information stored by the new drawing operation, and correspondingly, the stack top address information of the specific operation stack stored in the global operation stack is changed into the address information stored by the new drawing operation. And if the identifier of the specific operation stack at the current update stack top is different from the identifier stored at the stack top of the global operation stack, indicating that the new drawing operation is different from the touch object corresponding to the last drawing operation, storing the stack top address information and the identifier of the specific operation stack at the current update stack top above the stack top of the global operation stack to form a new stack top.
Based on this, when the specific operation stack in this embodiment is revoked, the stack top address information stored in the global operation stack changes following the specific operation stack, and when the global operation stack is revoked, the specific operation stack is revoked, and the global operation stack and the specific operation stack coordinate with each other. And the global operation stack can also completely record the drawing operation of the handwriting on the display screen.
The technical solutions provided by the embodiments are exemplarily described below:
the method comprises the steps that a user creates a whiteboard file newly, the user uses a first writing pen to draw three writing traces on a display screen continuously, the three writing traces correspond to three drawing operations respectively, according to the drawing sequence of the writing traces, the first drawing writing trace corresponds to the first drawing operation, the second drawing writing trace corresponds to the second drawing operation, and the third drawing writing trace corresponds to the third drawing operation. And according to the identification of the first writing pen, sequentially storing the first drawing operation, the second drawing operation and the third drawing operation into a first specific operation stack according to the generated sequence, wherein the identifications of the first specific operation stack and the first writing pen are the same and are the first identification. Fig. 2 is a first schematic diagram of a first specific operation stack provided in an embodiment of the present application. Referring to fig. 2, a first drawing operation is stored at the bottom of the first specific operation stack 11, a second drawing operation stack is stored at a position adjacent to the bottom of the first specific operation stack 11, a third drawing operation is stored at the top of the first specific operation stack 11, and a first pointer points to a memory space address at the top of the first specific operation stack 11. Further, referring to FIG. 2, a first object is stored at the bottom of the global operations stack 12 stack, the first object including a first identifier and a first pointer. It is understood that after the first drawing operation is stored in the first specific operation stack 11, the top of the first specific operation stack 11 is the first drawing operation, the first pointer and the first identifier of the first specific operation stack 11 are stored in the global operation stack 12, and since the first drawing operation is the first operation in the current whiteboard file, the global operation stack is empty before that, and therefore the first object is stored at the bottom of the global operation stack 12. Further, after the second drawing operation and the third drawing operation are stored in the first specific operation stack 11, the third drawing operation is stored at the top of the first specific operation stack 11, the first pointer points to the memory space address of the third drawing operation, and correspondingly, the first pointer stored at the bottom of the global operation stack 12 points to the memory space address of the third drawing operation.
After a user uses a first writing pen to continuously draw three writing traces on a display screen, a second writing pen is used to continuously draw the three writing traces on the display screen, the three writing traces correspond to three drawing operations respectively, according to the drawing sequence of the three writing traces, the first drawing writing trace corresponds to a fourth drawing operation, the second drawing writing trace corresponds to a fifth drawing operation, and the third drawing writing trace corresponds to a sixth drawing operation. And according to the identification of the second writing pen, sequentially storing the fourth drawing operation, the fifth drawing operation and the sixth drawing operation into a second specific operation stack according to the generated sequence, wherein the identifications of the second specific operation stack and the second writing pen are the same and are the second identification. Fig. 3 is a schematic diagram of a second specific operation stack provided in an embodiment of the present application. Referring to fig. 3, a fourth drawing operation is stored at the bottom of the second specific operation stack 13, a fifth drawing operation stack is stored at a position adjacent to the bottom of the second specific operation stack 13, a sixth drawing operation is stored at the top of the second specific operation stack 13, and the second pointer points to a memory space address at the top of the second specific operation stack 13. Further, when the top of the specific operation stack is changed, the global operation stack also needs to be adjusted accordingly. Referring to FIG. 3, a second object is stored at the bottom of the global operations stack 12, the second object including a second identifier and a second pointer. It can be understood that after the fourth drawing operation is stored in the second specific operation stack 13, the top of the second specific operation stack 13 is the fourth drawing operation, and the second pointer and the second identifier of the second specific operation stack 13 are stored in the global operation stack 13, because the fourth drawing operation is different from the specific operation stack stored corresponding to the third drawing operation, in order to ensure that the global operation stack 12 can completely record all drawing operations, the second object is stored in a storage location adjacent to the first object, and the second object becomes the top of the global operation stack 12. Further, after the fifth drawing operation and the sixth drawing operation are stored in the second specific operation stack 13, the sixth drawing operation is stored at the top of the second specific operation stack 13, the second pointer points to the memory space address of the sixth drawing operation, and correspondingly, the second pointer stored at the top of the global operation stack 12 also points to the memory space address of the sixth drawing operation.
It is understood that the first and second writing pens are different touch objects, and the first and second marks are also different marks.
According to the handwriting processing method, the first touch track information of the first writing operation detected by the touch sensing module is received, and the first writing operation is executed on the display screen by the first touch object; receiving a first elastic wave signal detected by an elastic wave sensor, and determining an identifier of a first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and the first touch object contacts a display screen; determining a handwriting type corresponding to the first touch object according to the identifier of the first touch object, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information; and storing the drawing operation corresponding to the handwriting into the corresponding specific operation stack according to the identification corresponding to the handwriting, and storing the identification and the stack top address information of the specific operation stack into the global operation stack. By adopting the technical means, because the elastic wave signals detected by the elastic wave sensors are different when different touch objects are subjected to touch operation on the interactive flat panel, different touch objects can be distinguished through the elastic wave signals, and the corresponding handwriting types are matched according to the touch objects so as to generate the handwriting highly attached to the touch objects, thereby providing more real writing experience for a user, avoiding the user from realizing other writing effects in the writing process and repeatedly carrying out setting operation. The writing scripts displayed in the display screen are classified through the touch articles corresponding to the writing scripts, and the operation of drawing the writing scripts of the same type is stored in the same operation stack, so that a user can conveniently select to cancel and redo the drawing operation of a certain type of writing scripts or to cancel and redo the drawing operation of all the writing scripts, more interaction modes and data processing modes are provided for the user, and the user experience is improved.
FIG. 4 is a flow chart of another handwriting processing method provided by an embodiment of the application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 4, the method for processing handwriting provided by this embodiment includes:
s210, receiving first touch track information of a first writing operation detected by the touch sensing module, wherein the first writing operation is executed on the display screen by the first touch object.
S220, receiving a first elastic wave signal detected by the elastic wave sensor, and determining the identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and the first touch object contacts the display screen.
S230, determining a handwriting type corresponding to the first touch object according to the identification of the first touch object, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information.
S240, according to the identification corresponding to the handwriting, storing the drawing operation corresponding to the handwriting into the corresponding specific operation stack, and storing the identification and the stack top address information of the specific operation stack into the global operation stack.
For example, the steps S210 to S240 can be realized by referring to the steps S110 to S140.
And S250, receiving first touch position information and a second elastic wave signal corresponding to the control operation, wherein the control operation is executed on the display screen by a second touch object.
Illustratively, the second touch item is a touch item currently used by the user to trigger the control operation. After the writing note is drawn in the display screen, the drawing operation of the writing trace can be stored to the corresponding specific operation stack, and the identification and stack top address information of the specific operation stack can be stored to the global operation stack. And the user selects to cancel or redo the handwriting corresponding to the second touch article in the display screen through the second touch article, and can also select to cancel or redo the handwriting in the display screen. It can be understood that, when a user uses the second touch object to input a control operation on the display screen, the touch sensing module and the elastic wave sensor mounted on the display screen detect first touch position information and a second elastic wave signal corresponding to the control operation input by the user, and send the first touch position information and the second elastic wave signal to the processor to inform the processor to process the control operation.
And S260, determining the identifier of the second touch object according to the elastic wave signal, confirming that the control operation is a specific control operation or a global control operation according to the first touch position information, executing the step S270 if the control operation is the specific control operation, and executing the step S280 if the control operation is the global control operation, wherein the control operation comprises a cancel operation or a redo operation.
For example, when the second touch object touches the screen cover of the interactive tablet, the piezoelectric elastic wave sensor measures a second elastic wave signal. And inputting the second elastic wave signal into a pre-trained machine learning model, and outputting the identifier of the second touch object corresponding to the second elastic wave signal by the machine learning model.
Furthermore, the first touch position information is measured by the optical touch sensor, and represents the control operation selected by the user, so that it can be understood that when the user uses the second touch object to click the cancel or redo control in the display screen, the control operation is correspondingly triggered, and a selection window pops out from the display screen, so that the user can select the global control operation or the specific control operation. Further, it may be determined whether the user selects a global control operation or a specific control operation according to the touch position of the second touch object.
And if the user selects to cancel the writing handwriting corresponding to the currently used touch article, the display screen generates a specific control operation according to the user input operation, and sends the specific control operation to the processor so as to inform the processor to cancel or redo the specific operation stack corresponding to the identifier of the currently used touch article. And if the user selects to cancel the handwriting in the display screen, the display screen generates a global control operation according to the user input operation, and sends the global control operation to the processor so as to inform the processor to cancel or redo the global operation stack.
And S270, determining a corresponding specific operation stack according to the identifier of the second touch item, and cancelling or redoing the operation on the top of the specific operation stack.
For example, after the identifier of the second touch item is determined, the specific operation stack stored in the drawing operation corresponding to the second touch item is determined according to the identifier. If the specific operation stack is cancelled, deleting the drawing operation positioned at the stack top of the specific operation stack, and enabling the adjacent drawing operation to become a new stack top. And if the specific operation stack is redone, deleting the drawing operation stack positioned at the top of the specific operation stack, acquiring the drawing operation input again by the user currently, and storing the drawing operation into the specific operation stack to form a new stack top. Correspondingly, when the stack top address information of the specific operation stack changes, the stack top address information stored at the stack top of the global operation stack also changes.
For example, fig. 5 is a second diagram of a first specific operation stack provided in the embodiment of the present application. Referring to fig. 5, the first specific operation stack 11 corresponding to the first writing pen stores a first drawing operation, a second drawing operation, and a third drawing operation, where the third drawing operation is the top of the first specific operation stack 11, and the first pointer points to the memory space address at the top of the first specific operation stack 11. Assuming that the current second touch object is the first writing pen, the first specific operation stack 11 is cancelled, the third drawing operation is moved out of the first specific operation stack 11, the second drawing operation becomes the top of the first specific operation stack 11, and the first pointer points to the memory space address of the second drawing operation. Accordingly, after the second draw operation becomes the new top of the first specific operation stack, the first pointer stored at the bottom of the global operation stack 12 points to the content space address of the second draw operation.
S280, determining a specific operation stack at the top of the global operation stack, and cancelling or redoing the operation at the top of the specific operation stack.
Illustratively, when the user uses the second touch item selection to trigger the global control operation, indicating that the user does not care what touch item generated the latest drawn writing, he only wants to undo this writing, and therefore the global operation stack is undone. The global operation stack is also a stack structure, and only allows data stored at the top of the stack to be operated, so that the top of the global operation stack is searched, and the top of the global operation stack is removed or redone. Accordingly, the step may specifically include S281 to S282:
and S281, determining a corresponding specific operation stack according to the identifier stored at the top of the global operation stack.
Illustratively, as can be seen from the above, the global operation stack top stores the identifier and the stack top address information of the specific operation stack stored in the latest drawing operation. Therefore, the specific operation stack stored by the latest drawing operation is determined according to the identification stored at the top of the global operation stack.
S282, according to the stack top address information stored at the stack top of the global operation stack, determining the operation at the specific stack top of the operation stack, and canceling or redoing the operation.
For example, after determining the specific operation stack stored in the latest drawing operation, the stack top address stored in the latest drawing operation is determined according to the stack top address information stored in the stack top of the global operation stack. If the global operation stack is cancelled, the drawing operation is deleted from the stack top, the drawing operation adjacent to the stack top becomes a new stack top, and correspondingly, the address information of the stack top in the global operation stack is modified into the address information of the new stack top. And if the global operation stack is redone, replacing the drawing operation in the stack top with the drawing operation of the redrawn handwriting, wherein the address information of the stack top in the global operation stack is not changed.
For example, fig. 6 is a first schematic diagram of a global operation stack provided in the embodiment of the present application. Referring to fig. 6, the global operation stack 12 stores a second object, that is, stores a second pointer and a second identifier, where the second pointer points to a memory space address of a sixth drawing operation located at the top of the second specific operation stack 13. And removing the global operation stack 12, determining a second specific operation stack 13 according to a second identifier stored at the stack top of the global operation stack 12, determining a memory space address of a sixth drawing operation according to a second pointer, and moving the sixth drawing operation out of the second specific operation stack 13, wherein at this moment, the fifth drawing operation becomes a new stack top of the second specific operation stack 13, and the second pointer in the stack top of the global operation stack 12 points to the memory space address of the fifth drawing operation. Further, fig. 7 is a second schematic diagram of a global operation stack provided in the embodiment of the present application. Referring to fig. 7, after three drawing operations are consecutively undone, the second specific operation stack is an empty stack, the first object becomes a new top of the global operation stack 12, and if the drawing operations are continued to be undone, the drawing operations in the first specific operation stack 11 are undone.
According to the handwriting processing method, the first touch position information and the second elastic wave signal corresponding to the control operation are received, and the control operation is executed on the display screen by the second touch object; determining the identifier of the second touch object according to the second elastic wave signal, and confirming that the control operation is a specific control operation or a global control operation according to the first touch position information, wherein the control operation comprises a cancel operation or a redo operation; if the control operation is a specific control operation, determining a corresponding specific operation stack according to the identifier of the second touch object, and canceling or redoing the operation on the top of the specific operation stack; if the control operation is a global control operation, determining a specific operation stack positioned at the top of the global operation stack, and canceling or redoing the operation positioned at the top of the specific operation stack. By adopting the technical means, because the elastic wave signals detected by the elastic wave sensor are different when different touch objects are subjected to touch operation on the interactive flat panel, different touch objects can be distinguished through the elastic wave signals, and the corresponding handwriting types are matched according to the touch objects. The writing handwriting displayed in the display screen is classified through the touch article corresponding to the writing handwriting, and the operation of drawing the writing handwriting of the same type is stored in the same operation stack, so that a user can conveniently select to cancel and redo the drawing operation of the writing handwriting of a certain type or select to cancel and redo the drawing operation of all the writing handwriting, more interaction modes and data processing modes are provided for the user, and the user use experience is improved.
FIG. 8 is a flow chart of another handwriting processing method provided by an embodiment of the application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 8, the method for processing handwriting provided by the embodiment includes:
s310, receiving first touch track information of first writing operation detected by the touch sensing module, wherein the first writing operation is executed on the display screen by the first touch object.
S320, receiving a first elastic wave signal detected by the elastic wave sensor, and determining the identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and the first touch object contacts the display screen.
S330, determining a handwriting type corresponding to the first touch article according to the identification of the first touch article, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information.
S340, storing drawing operation corresponding to the writing handwriting into a corresponding specific operation stack according to the identification corresponding to the writing handwriting, and storing the identification of the specific operation stack and the stack top address information into a global operation stack.
For example, the steps S110 to S140 may be referred to for specific implementation of the steps S310 to S340.
And S350, receiving a storage operation input on the display screen, acquiring the selected handwriting type from the storage operation, and determining the identifier corresponding to the handwriting type.
Illustratively, if a user does not want to save the writing handwriting of a certain handwriting type in the current display screen, the user can input the identifier corresponding to the handwriting type during saving, and the display screen generates a saving operation according to the user input operation so as to inform the processor to filter the writing handwriting corresponding to the identifier and save the rest writing handwriting during saving the writing handwriting in the display screen.
And S360, traversing all the handwriting in the display screen, determining the handwriting corresponding to the identifier, and storing the rest handwriting except the handwriting in the display screen.
Illustratively, when the handwriting is generated, the identification corresponding to the handwriting is recorded in the data structure of the handwriting, the identification selected by the user is obtained from the storage operation, the identification selected by the user is compared with the identifications in the data structures of all the handwriting in the display screen, if the identification selected by the user is consistent with the identifications in the data structures of all the handwriting in the display screen, the corresponding handwriting is used as the handwriting which the user does not want to store, and if the two identifications are inconsistent, the corresponding handwriting is used as the handwriting which the user wants to store. Further, the storage information of the rest writing handwriting stored in the memory is stored in a magnetic disk, so that the storage information is stored persistently to generate a whiteboard file. The filtered handwriting is not persistently stored in the whiteboard file.
According to the handwriting processing method, the selected handwriting type is obtained from the storage operation by receiving the storage operation input on the display screen of the interactive panel, and the identification corresponding to the handwriting type is determined; and determining all handwriting in the display screen, determining the handwriting corresponding to the identifier, and storing the rest handwriting except the handwriting in the display screen. By adopting the technical means, when the writing handwriting displayed in the display screen is stored, the writing handwriting can be selectively stored according to the identification of the writing handwriting, the operability of an interactive tablet is improved, and richer application scenes are provided for users.
FIG. 9 is a flow chart of another writing script processing method according to an embodiment of the application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 9, the method for processing handwriting provided by the embodiment includes:
and S410, receiving a writing pen mode starting operation input on the display screen, starting the writing pen mode, and forbidding the writing operation responding to the input of the touch object except the writing pen.
Illustratively, the interactive tablet is correspondingly provided with a writing pen, a pen point and a pen tail of the writing pen are respectively made of different materials, the writing pen corresponds to a unique identifier, and no matter whether the touch object corresponding to the writing operation is detected to be the pen point or the pen tail of the writing pen, the track corresponding to the writing operation is associated with the identifier of the writing pen.
Furthermore, when the stylus mode of the interactive tablet is opened, the writing operation can only be input by the stylus, namely the stylus input writing operation is supported and other touch objects such as fingers are supported to input touch selection operation.
And S420, receiving second touch track information and a third elastic wave signal corresponding to a second writing operation, wherein the second writing operation is executed on the display screen by the writing pen.
And S430, confirming that the part of the writing pen inputting the second writing operation is the pen point or the pen tail of the writing pen according to the third elastic wave signal.
And S440, correspondingly generating writing handwriting or erasing tracks according to the writing pen part for inputting the second writing operation and the second touch track information, wherein the writing pen head correspondingly generates the writing handwriting, and the writing pen tail correspondingly generates the erasing tracks.
Illustratively, when a user writes on the display screen using the stylus tip of the interactive tablet configuration or erases on the display screen using the stylus tail, the touch sensing module detects second touch track information and the elastic wave sensor detects a third elastic wave signal, the processor analyzes the third elastic wave signal to determine the material type of a touch object input with a second writing operation, if the touch object is identified as a finger, the second writing operation is not responded, if the touch object is identified as a pen point of the stylus pen, drawing corresponding writing on the display screen according to the second touch track information and the handwriting attributes configured by the interactive tablet, and if the touch object is recognized as the pen tail of the handwriting pen, generating a corresponding erasing track according to the second touch track information and the erasing attribute configured by the interactive flat plate, and erasing the handwriting at the corresponding position according to the erasing track.
S450, according to the identification of the writing pen, the drawing operation of the corresponding writing handwriting or erasing track is stored into the corresponding specific operation stack, and the identification and the stack top address information of the specific operation stack are stored into the global operation stack.
Illustratively, in order to ensure that specific revocation can be realized in a writing pen mode, drawing operation of writing or erasing tracks corresponding to the writing pen is stored into a specific operation stack corresponding to the writing pen identifier, and the identifier and stack top address information of the specific operation stack are stored into a global operation stack.
FIG. 10 is a flow chart of another handwriting processing method provided by an embodiment of the application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 10, the method for processing handwriting provided by the embodiment includes:
and S510, receiving a writing pen mode starting operation input on the display screen, starting the writing pen mode, and forbidding the writing operation responding to the input of the touch articles except the writing pen.
For example, in the stylus mode, writing operations can only be triggered by the stylus, but the remaining touch operations can be triggered by the stylus and other touch objects.
S520, receiving second touch position information and a fourth elastic wave signal corresponding to handwriting attribute operation, wherein the handwriting attribute operation is executed on the display screen by a third touch object.
Exemplarily, the user wants to change the handwriting attribute of the writing input by the writing pen after changing, namely, changes the color and/or thickness of the writing, the third touch object is used to open the handwriting attribute setting window, and a proper handwriting color and handwriting width are selected, correspondingly, when the user uses the third touch object to input the handwriting attribute operation on the display screen, the touch sensing module detects the second touch position information and the elastic wave sensor detects the fourth elastic wave signal. And the interactive flat plate sends the second touch position information and the fourth elastic wave signal to the processor so as to inform the processor of responding to the corresponding handwriting attribute operation.
S530, determining the selected handwriting attribute according to the second touch position information, wherein the handwriting attribute comprises at least one of color and thickness.
Illustratively, the processor determines coordinates of clicking of the third touch object on the display screen according to the second touch position information, and determines a handwriting color and a handwriting width selected by the user according to the coordinates.
And S540, confirming that the third touch object is a writing pen or a finger according to the fourth elastic wave signal, if the third touch object is the writing pen, taking the selected handwriting attribute as the handwriting attribute of the corresponding writing pen, and otherwise, taking the selected handwriting attribute as the handwriting attribute of the writing pen identified by the last response.
Illustratively, the processor determines a material type of the third touch object based on the fourth elastic wave signal. And if the third touch object is a writing pen, modifying the handwriting attribute of the writing pen set in the current interactive flat plate into the selected handwriting attribute, namely drawing the corresponding writing pen according to the handwriting attribute of the writing pen set by the interactive flat plate when the user inputs the second writing operation by using the writing pen. And if the third touch object is a finger, determining the writing pen identified by the last response, and modifying the handwriting attribute of the writing pen set in the current interactive flat plate into the selected handwriting attribute. It can be understood that, in this embodiment, the interactive tablet is configured with different types of writing pens, the interactive tablet records the handwriting attribute of each writing pen, and when the handwriting attribute is input, the handwriting attribute of a certain writing pen set in the interactive tablet is correspondingly modified.
For example, fig. 11 is a first schematic view of a display screen provided in the embodiment of the present application. Referring to fig. 11, a handwriting property setting window 23 is displayed on the display screen 21, and a user selects a handwriting color and a handwriting width of a pen 22 in the handwriting property setting window 23 using the pen 22 of the interactive tablet configuration. The user clicks the handwriting width selection window 24 using the pen 22 to select an appropriate handwriting width, and clicks the color control 25 using the pen 22 to select an appropriate handwriting color. If the color control 25 displayed in the handwriting attribute setting window does not meet the requirements of the user, the user can open the color self-defining sub-window through the color self-defining control to select a proper handwriting color. Assuming that the handwriting width selected by the user is 1mm and the handwriting color is black, the handwriting width of the first writing pen 22 set in the display screen 21 is set to 1mm and the handwriting color is set to black. After the user selects the 1mm handwriting and the black handwriting using the first writing pen 22, the user inputs a second writing operation using the first writing pen 22 on the display screen 21, on which the writing handwriting having the handwriting width of 1mm and the black handwriting are displayed. Then, the user selects the handwriting color and the handwriting width in the handwriting attribute setting window 23 by using the second writing pen, so that the handwriting attribute of the second writing pen set in the interactive tablet is changed, but the handwriting attribute of the first writing pen 22 is not affected.
FIG. 12 is a flow chart of another method for processing writing script according to an embodiment of the application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 12, the handwriting processing method provided by the present embodiment includes:
s610, receiving a writing pen mode starting operation input on the display screen, starting the writing pen mode, and forbidding the writing operation responding to the input of the touch articles except the writing pen.
For example, in the stylus mode, the user may input a touch selection operation through a finger.
And S620, receiving third touch track information or third touch position information corresponding to element selection operation, wherein the element selection operation is executed on the display screen by a finger.
For example, if a user wants to modify the handwriting property or the display position of the existing handwriting in the current display screen, the handwriting to be modified can be selected in the display screen by a finger. Correspondingly, when a user inputs element selection operation in the display screen, the touch sensing module detects third touch track information or third touch position information, and the interactive panel sends the third touch track information or the third touch position information to the processor so as to inform the processor of responding to the corresponding element selection operation.
And S630, determining the selected handwriting in the display screen according to the third touch track information or the third touch position information.
Illustratively, the user can select the handwriting to be modified through two input modes, namely, selecting the handwriting through a single point, and drawing a check box through which the handwriting is selected. If the user inputs the single-point selection operation, the touch sensing module detects third touch position information, correspondingly, the processor can determine corresponding handwriting according to touch coordinates in the third touch position information, if the user inputs the selection operation of drawing the selected frame, the touch sensing module detects the third touch track information, correspondingly, the processor can generate the selected frame according to the third touch track information, and determine the corresponding handwriting according to the selected frame.
Further, if the corresponding operations of the current multiple touch objects are input on the display screen, filtering the currently input operations according to the preset priority sequence of the touch objects, and confirming the operation of the effective touch object input. For example, assuming that the current finger and the stylus pen both input corresponding operations on the display screen, only the operation input by the touch item with the highest priority is responded according to the preset priority of the touch item. For example, the stylus enters a second writing operation, the finger enters a touch selection operation, and the priority of setting the stylus in the interactive tablet is higher than that of the finger, then the processor responds to only the second stylus operation entered by the stylus.
FIG. 13 is a flow chart of another handwriting processing method provided by an embodiment of the application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 13, the method for processing handwriting provided by the embodiment includes:
and S710, receiving a writing pen mode starting operation input on the display screen, starting the writing pen mode, and forbidding the writing operation responding to the input of the touch object except the writing pen.
For example, in the stylus mode, the stylus may not only input a writing operation, but also a touch selection operation.
S720, receiving fourth touch position information corresponding to the moving operation of the handwriting attribute setting window, wherein the moving operation is executed on the display screen by the writing pen.
Illustratively, after the handwriting attribute setting window is expanded, the handwriting attribute setting window is generally displayed on the lower edge of the display screen, and if a user draws important handwriting at the display position of the user, the handwriting attribute setting window can shield the corresponding handwriting after being expanded, so that the viewing experience of the user is influenced. Then the user can use the writing pen to adjust the display position of the handwriting attribute setting window at this time so as to avoid the user from blocking the writing in the display screen. Correspondingly, when the user inputs to move the handwriting attribute setting window, the touch sensing module detects fourth touch position information, and the interactive tablet sends the fourth touch position information to the processor so as to inform the processor of responding to the corresponding movement operation.
And S730, displaying the handwriting attribute setting window at the relative position of the display screen according to the position relation between the fourth touch position information and the handwriting attribute setting window.
For example, the display screen is generally square, and four corners of the display screen are edge areas, so that handwriting is not generally drawn, and therefore, the handwriting attribute setting window can be displayed at the four corners. Accordingly, the present step may specifically include S731 to S734:
s731, if the fourth touch position is located at the left top corner of the handwriting attribute setting window, displaying the handwriting attribute setting window at the left top corner of the display screen;
s732, if the fourth touch position is located at the right vertex angle of the handwriting attribute setting window, displaying the handwriting attribute setting window at the right vertex angle of the display screen;
s733, if the fourth touch position is located at the left bottom corner of the handwriting attribute setting window, displaying the handwriting attribute window at the left bottom corner of the display screen;
and S734, if the fourth touch position is located at the right base angle of the handwriting attribute setting window, displaying the handwriting attribute window at the right base angle of the display screen.
Exemplarily, the click coordinate of the writing pen on the display screen is determined according to the fourth touch position information, the display coordinate of the handwriting attribute setting window is obtained, which vertex angle of the handwriting attribute setting window the click coordinate is located at is determined according to the click coordinate and the display coordinate, and the handwriting attribute setting window is displayed at the corresponding vertex angle of the display screen.
For example, fig. 14 is a second schematic view of a display screen provided in the embodiment of the present application. Referring to fig. 14, the user sets the upper right corner of the window 23 by long-pressing the handwriting property using the one-size pen 22. Fig. 15 is a third schematic view of a display screen provided in an embodiment of the present application. Referring to fig. 15, a handwriting property setting window 23 is displayed in the upper right corner of the display screen 21.
And S740, receiving a child window opening operation of the handwriting attribute setting window by the writing pen, setting the position of the window in the display screen according to the handwriting attribute, and displaying the color self-defined child window on one side of the handwriting attribute setting window.
Illustratively, the handwriting attribute setting window is further configured with a color self-definition sub-window, and when a user clicks a color self-definition control in the handwriting attribute setting window, the corresponding color self-definition sub-window is displayed on one side of the handwriting attribute setting window. Specifically, if the distance between the right edge of the handwriting attribute setting window and the right edge of the display screen is smaller than the width of the color self-definition sub-window, the color self-definition sub-window is displayed on the left side of the handwriting attribute setting window, and otherwise, the color self-definition sub-window is displayed on the right side of the handwriting attribute setting window. It can be understood that the color self-definition sub-window is displayed on the right side of the handwriting attribute setting window in a default mode, and if the distance between the right side edge of the handwriting attribute setting window and the right side edge of the display screen is smaller than the width of the color self-definition sub-window, the color self-definition sub-window is displayed on the right side of the handwriting attribute setting window and exceeds the interface of the display screen, and therefore the color self-definition sub-window is displayed on the left side of the handwriting attribute setting window.
For example, fig. 16 is a fourth schematic view of a display screen provided in the embodiment of the present application. Referring to FIG. 16, the user clicks the color customization control 26 in the handwriting properties setting window 23 using the pen one 22. Fig. 17 is a fifth schematic view of a display screen provided in an embodiment of the present application. Referring to fig. 17, since the right edge of the handwriting property setting window 23 coincides with the right edge of the display screen 21, that is, the color-customized sub-window 27 cannot be expanded to be displayed on the right side of the handwriting property setting window 23, the color-customized sub-window 27 is displayed on the left side of the handwriting property setting window 23. The user may select the appropriate handwriting color via the palette 28.
FIG. 18 is a flow chart of another handwriting processing method provided by an embodiment of the application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 18, the method for processing writing provided by the present embodiment includes:
s810, receiving first touch track information of a first writing operation detected by the touch sensing module, wherein the first writing operation is executed on the display screen by the first touch object.
S820, receiving a first elastic wave signal detected by the elastic wave sensor, and determining the identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and the first touch object contacts the display screen.
S830, determining a handwriting type corresponding to the first touch object according to the identification of the first touch object, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information.
And S840, storing the drawing operation corresponding to the writing into the corresponding specific operation stack according to the identification corresponding to the writing, and storing the identification of the specific operation stack and the stack top address information into the global operation stack.
For example, the steps S810 to S840 may be implemented in detail with reference to the steps S110 to S140.
And S850, receiving fifth touch position information corresponding to element modification operation input on the display screen.
If the user wants to directly modify the handwriting color of the handwriting displayed in the display screen, the touch object can be used for selecting the handwriting to be modified in the display screen, correspondingly, when the input element is modified, the touch sensing module detects fifth touch position information, and the interactive flat plate sends the fifth touch track information to the processor so as to inform the processor to respond to the corresponding element modification operation.
And S860, determining the selected handwriting according to the fifth touch position information, determining the color of the selected handwriting, and modifying the corresponding color of the handwriting according to the color of the handwriting.
Illustratively, the processor determines the handwriting to be modified according to the fifth touch position, and selects the handwriting color in the handwriting color setting window according to the fifth touch position. It can be understood that after a user clicks the handwriting on the display screen by using the touch article, the target frame is automatically displayed on the display screen to surround the handwriting, the handwriting color setting window is automatically displayed below the target frame, the user clicks the color control in the handwriting color setting window by using the touch article, and the handwriting to be modified is modified into the corresponding handwriting color according to the color control.
For example, fig. 19 is a sixth schematic view of a display screen provided in the embodiment of the present application. The user selects first writing script 29 displayed on display screen 21 using pen one 22, and object box 30 encloses first writing script 29. A handwriting color setting window 31 is displayed below the object box 30, and the user can select a color control in the handwriting color setting window 31 using the one-size writing pen 22.
Furthermore, the display screen can display not only handwriting, but also elements such as forms and mind maps, and when a user selects various elements, the handwriting color setting window cannot display, namely, the color of various elements cannot be modified simultaneously.
S870, storing the color modification operation corresponding to the writing into the corresponding specific operation stack according to the identification corresponding to the writing, and storing the identification and the stack top address information of the specific operation stack into the global operation stack.
Illustratively, the color modification operation of the writing is also one of the drawing operations of the writing, and in order to ensure that the writing in the display screen can be both specifically cancelled, the drawing operation of the writing or erasing trace corresponding to the writing pen is stored in the specific operation stack corresponding to the writing pen identifier, and the identifier and stack top address information of the specific operation stack are stored in the global operation stack.
FIG. 20 is a schematic structural diagram of a writing trace processing apparatus according to an embodiment of the present application. Referring to fig. 20, the writing processing apparatus includes: a first receiving module 401, a first identifying module 402, a drawing module 403 and a stacking module 404.
The first receiving module 401 is configured to receive first touch trajectory information of a first writing operation detected by the touch sensing module, where the first writing operation is performed by a first touch object on the display screen;
a first recognition module 402 configured to receive a first elastic wave signal detected by the elastic wave sensor, determine an identifier of a first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object performs a first writing operation and the first touch object contacts the display screen;
the drawing module 403 is configured to determine a handwriting type corresponding to the first touch object according to the identifier of the first touch object, and draw a corresponding writing in the display screen according to the handwriting type and the first touch trajectory information;
and the stack entering module 404 is configured to store the drawing operation corresponding to the writing into the corresponding specific operation stack according to the identifier corresponding to the writing, and store the identifier and the stack top address information of the specific operation stack into the global operation stack.
On the basis of the above embodiments, the touch trajectory information includes touch trajectory information including a contact area, a moving speed, a moving acceleration, a contact position, and/or a contact pressure when the first touch object touches the interactive tablet.
On the basis of the above embodiment, the writing trace processing apparatus further includes: the second receiving module is configured to receive first touch position information and a second elastic wave signal corresponding to a control operation, and the control operation is executed by a second touch object on the display screen; the control determination module is configured to determine the identifier of the second touch object according to the second elastic wave signal, and confirm that the control operation is a specific control operation or a global control operation according to the first touch position information, wherein the control operation comprises an undo operation or a redo operation; the specific control module is configured to determine a corresponding specific operation stack according to the identifier of the second touch object and cancel or redo the operation on the top of the specific operation stack if the control operation is the specific control operation; and the global control module is configured to determine a specific operation stack positioned at the top of the global operation stack and undo or redo the operation positioned at the top of the specific operation stack if the control operation is the global control operation.
On the basis of the above embodiment, the global control module includes: the specific operation stack determining unit is configured to determine a corresponding specific operation stack according to the identifier stored at the top of the global operation stack; and the undo or redo unit is configured to determine the operation positioned at the top of the specific operation stack according to the stack top address information stored at the top of the global operation stack, and undo or redo the operation.
On the basis of the above embodiment, the writing trace processing apparatus further includes: the third receiving module is configured to receive a storage operation input on the display screen, acquire the selected handwriting type from the storage operation, and determine an identifier corresponding to the handwriting type; and the storage module is configured to traverse all the handwriting in the display screen, determine the handwriting corresponding to the identifier and store the rest handwriting except the handwriting in the display screen.
On the basis of the above embodiment, the saving module includes: and the storage unit is configured to store the storage information of the rest handwriting stored in the memory into a magnetic disk.
On the basis of the above embodiment, the interactive flat plate is correspondingly provided with the writing pen, and the pen head and the pen tail of the writing pen are respectively made of different materials.
On the basis of the above embodiment, the writing trace processing apparatus further includes: and the writing pen mode starting module is configured to receive writing pen mode starting operation input on the display screen, start the writing pen mode and forbid writing operation responding to touch article input except the writing pen.
On the basis of the above embodiment, the writing trace processing apparatus further includes: the first receiving module in the writing pen mode is configured to receive second touch track information and a third elastic wave signal corresponding to a second writing operation, and the second writing operation is executed on the display screen by a writing pen; a writing pen component determining module configured to confirm that the writing pen component inputting the second writing operation is a writing pen head or a writing pen tail according to the third elastic wave signal; the writing pen mode drawing module is configured to correspondingly generate writing handwriting or an erasing track according to the writing pen part for inputting the second writing operation and the second touch track information, the writing pen head correspondingly generates the writing handwriting, and the writing pen tail correspondingly generates the erasing track; and the writing pen mode stacking module is configured to store drawing operation of corresponding writing or erasing tracks into a corresponding specific operation stack according to the identification of the writing pen, and store the identification and the stack top address information of the specific operation stack into the global operation stack.
On the basis of the above embodiment, the writing trace processing apparatus further includes: the writing pen mode second receiving module is configured to receive second touch position information and a fourth elastic wave signal corresponding to handwriting attribute operation, and the handwriting attribute operation is executed on the display screen by a third touch object; the handwriting attribute determining module is configured to determine the selected handwriting attribute according to the second touch position information, wherein the handwriting attribute comprises at least one of color and thickness; and the writing pen attribute setting module is configured to confirm that the third touch object is a writing pen or a finger according to the fourth elastic wave signal, if the third touch object is the writing pen, use the selected handwriting attribute as the handwriting attribute of the corresponding writing pen, and otherwise, use the selected handwriting attribute as the handwriting attribute of the writing pen identified by the last response.
On the basis of the above embodiment, the writing trace processing apparatus further includes: the stylus mode third receiving module is configured to receive third touch track information or third touch position information corresponding to element selection operation, and the element selection operation is executed on the display screen by a finger; and the writing pen mode element selection module is configured to determine the selected writing handwriting in the display screen according to the third touch track information or the third touch position information.
On the basis of the above embodiment, the writing trace processing apparatus further includes: and the writing pen mode priority module is configured to filter the currently input operation according to the preset priority sequence of the touch articles and confirm the operation of effective touch article input if the corresponding operation of the current multiple touch articles is input on the display screen.
On the basis of the above embodiment, the writing trace processing apparatus further includes: the handwriting attribute setting window is configured to be moved in a handwriting mode, and the handwriting attribute setting window is configured to be moved in a handwriting mode; and the handwriting attribute setting window display module is configured to display the handwriting attribute setting window at the relative position of the display screen according to the position relation between the fourth touch position information and the handwriting attribute setting window.
On the basis of the above embodiment, the handwriting property setting window display module includes: the first display unit is configured to display the handwriting attribute setting window at the left vertex angle of the display screen if the fourth touch position is located at the left vertex angle of the handwriting attribute setting window; the second display unit is configured to display the handwriting attribute setting window at the right vertex angle of the display screen if the fourth touch position is located at the right vertex angle of the handwriting attribute setting window; the third display unit is configured to display the handwriting attribute window at the left bottom corner of the display screen if the fourth touch position is located at the left bottom corner of the handwriting attribute setting window; and the fourth display unit is configured to display the handwriting attribute window at the right bottom corner of the display screen if the fourth touch position is located at the right bottom corner of the handwriting attribute setting window.
On the basis of the above embodiment, the writing trace processing apparatus further includes: and the child window display module is configured to receive child window opening operation of the handwriting pen on the handwriting attribute setting window, set the position of the window in the display screen according to the handwriting attribute, and display the color self-defined child window on one side of the handwriting attribute setting window.
On the basis of the above embodiment, the sub-window display module includes: and the sub-window display unit is configured to display the color self-definition sub-window on the left side of the handwriting attribute setting window if the distance between the right edge of the handwriting attribute setting window and the right edge of the display screen is less than the width of the color self-definition sub-window, and otherwise, display the color self-definition sub-window on the right side of the handwriting attribute setting window.
On the basis of the above embodiment, the writing trace processing apparatus further includes: the fourth receiving module is configured to receive fifth touch position information corresponding to the element modification operation input on the display screen; the handwriting color modification module is configured to determine the selected handwriting according to the fifth touch position information, determine the color of the selected handwriting and modify the corresponding color of the handwriting according to the color of the handwriting; and the modifying operation stacking module is configured to store the color modifying operation corresponding to the writing into the corresponding specific operation stack according to the identification corresponding to the writing, and store the identification and the stack top address information of the specific operation stack into the global operation stack.
It should be noted that, in the embodiment of the device for processing handwriting based on writing, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
The handwriting processing device provided by the embodiment of the application is contained in the interactive flat plate, can be used for executing the handwriting processing method provided by any embodiment, and has corresponding functions and beneficial effects.
Fig. 21 is a schematic structural diagram of an interactive tablet according to an embodiment of the present application. As shown in fig. 21, the interactive tablet includes a processor 50, a memory 51, an input device 52, an output device 53, and a display 54; the number of processors 50 in the interactive tablet may be one or more, and one processor 50 is taken as an example in fig. 21; the number of the display screens 54 in the interactive tablet can be one or more, and one display screen 54 is taken as an example in fig. 21; the processor 50, memory 51, input device 52, output device 53, and display 54 in the interactive tablet may be connected via a bus or other means, as exemplified by the bus connection in fig. 21.
The memory 51 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the handwriting processing method in the embodiment of the present application (for example, the first receiving module 401, the first recognition module 402, the drawing module 403, and the stacking module 404 in the handwriting processing apparatus). The processor 50 executes various functional applications and data processing of the interactive tablet by running software programs, instructions and modules stored in the memory 51, that is, implements the handwriting processing method described above.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the interactive tablet, and the like. Further, the memory 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 51 may further include memory located remotely from processor 50, which may be connected to the interactive tablet via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 52 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the interactive tablet. The output device 53 may include an audio output device such as a speaker. The display screen 54 is a touch-enabled display screen, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. The display screen 54 in this embodiment is an infrared screen, which includes optical touch sensors, and the optical touch sensors are disposed around the display screen 54, and may also be configured to receive an infrared signal and send the infrared signal to the processor 50 or other devices. The display 54 further includes piezoelectric elastic wave sensors for measuring elastic wave signals of the touch object and pressure sensors for measuring contact pressure of the touch object. The display screen 54 may display handwriting according to instructions from the processor.
The interactive flat plate comprises a handwriting processing device, can be used for executing any handwriting processing method, and has corresponding functions and beneficial effects.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which is used to execute the handwriting processing method provided by the above embodiments when the program is executed by a processor.
Of course, the computer-readable storage medium provided in the embodiments of the present application has computer-executable instructions that are not limited to the method operations described above, and may also perform related operations in the handwriting processing method provided in any embodiments of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the embodiments of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (20)

1. The utility model provides a writing handwriting processing method, is applied to mutual dull and stereotyped, mutual dull and stereotyped display screen and touch-control sensing module group that includes, its characterized in that, mutual dull and stereotyped still is provided with elastic wave sensor, the method includes:
receiving first touch track information of a first writing operation detected by the touch sensing module, wherein the first writing operation is executed on the display screen by a first touch object;
receiving a first elastic wave signal detected by the elastic wave sensor, and determining the identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object contacts the display screen when the first touch object executes the first writing operation;
determining a handwriting type corresponding to the first touch article according to the identifier of the first touch article, and drawing a corresponding writing in the display screen according to the handwriting type and the first touch track information;
and storing the drawing operation corresponding to the handwriting into a corresponding specific operation stack according to the identification corresponding to the handwriting, and storing the identification and the stack top address information of the specific operation stack into a global operation stack.
2. The method of claim 1, wherein the first touch trajectory information comprises a contact area, a moving speed, a moving acceleration, a contact position and/or a contact pressure when the first touch object touches the display screen.
3. The method of claim 1, wherein the handwriting processing method further comprises:
receiving first touch position information and a second elastic wave signal corresponding to control operation, wherein the control operation is executed on the display screen by a second touch object;
determining the identifier of the second touch object according to the second elastic wave signal, and confirming that the control operation is a specific control operation or a global control operation according to the first touch position information, wherein the control operation comprises a cancel operation or a redo operation;
if the control operation is a specific control operation, determining a corresponding specific operation stack according to the identifier of the second touch object, and cancelling or redoing the operation on the top of the specific operation stack;
if the control operation is a global control operation, determining a specific operation stack positioned at the top of the global operation stack, and canceling or redoing the operation positioned at the top of the specific operation stack.
4. The method of claim 3, wherein determining a particular operation stack at the top of the global operation stack, and wherein undoing or redoing the operation at the top of the particular operation stack comprises:
determining a corresponding specific operation stack according to the identifier stored at the top of the global operation stack;
and determining the operation positioned at the specific operation stack top according to the stack top address information stored at the global operation stack top, and canceling or redoing the operation.
5. The method of claim 1, wherein the handwriting processing method further comprises:
receiving a storage operation input on the display screen, acquiring the selected handwriting type from the storage operation, and determining an identifier corresponding to the handwriting type;
and after all the handwriting in the display screen is gone through, determining the handwriting corresponding to the identifier, and storing the other handwriting except the handwriting in the display screen.
6. The method according to claim 5, wherein the saving the remaining handwriting in the display screen except the handwriting comprises:
and storing the storage information of the other handwriting stored in the memory into a magnetic disk.
7. The method according to claim 1, wherein the interactive tablet is correspondingly configured with a writing pen, and a pen head and a pen tail of the writing pen are respectively made of different materials.
8. The method of claim 7, wherein after storing the identification of the particular operation stack and the top-of-stack address information in a global operation stack, further comprising:
receiving a writing pen mode starting operation input on the display screen, starting the writing pen mode, and forbidding writing operation responding to touch article input except the writing pen.
9. The method of claim 8, after said disabling a writing operation responsive to a touch item input other than said stylus, further comprising:
receiving second touch track information and a third elastic wave signal corresponding to a second writing operation, wherein the second writing operation is executed on the display screen by the writing pen;
confirming that the writing pen part for inputting the second writing operation is a writing pen head or a writing pen tail according to the third elastic wave signal;
correspondingly generating writing handwriting or erasing tracks according to the writing pen part for inputting the second writing operation and the second touch track information, wherein the writing pen head correspondingly generates the writing handwriting, and the writing pen tail correspondingly generates the erasing tracks;
and storing the drawing operation of the corresponding handwriting or the erasing track into the corresponding specific operation stack according to the identification of the writing pen, and storing the identification and the stack top address information of the specific operation stack into the global operation stack.
10. The method of claim 8, after said disabling a writing operation responsive to a touch item input other than said stylus, further comprising:
receiving second touch position information and a fourth elastic wave signal corresponding to handwriting attribute operation, wherein the handwriting attribute operation is executed on the display screen by a third touch object;
determining the selected handwriting attribute according to the second touch position information, wherein the handwriting attribute comprises at least one of color and thickness;
and confirming that the third touch object is the writing pen or the finger according to the fourth elastic wave signal, if the third touch object is the writing pen, taking the selected handwriting attribute as the handwriting attribute of the corresponding writing pen, and otherwise, taking the selected handwriting attribute as the handwriting attribute of the writing pen identified by the last response.
11. The method of claim 8, after said disabling a writing operation responsive to a touch item input other than said stylus, further comprising:
receiving third touch track information or third touch position information corresponding to element selection operation, wherein the element selection operation is executed on the display screen by a finger;
and determining the selected handwriting in the display screen according to the third touch track information or the third touch position information.
12. The method of claim 8, after said disabling a writing operation responsive to a touch item input other than said stylus, further comprising:
and if the corresponding operations of the current various touch objects are input on the display screen, filtering the currently input operations according to the preset priority sequence of the touch objects, and confirming the operation input by the effective touch objects.
13. The method of claim 8, after said disabling a writing operation responsive to a touch item input other than said stylus, further comprising:
receiving fourth touch position information corresponding to the moving operation of the handwriting attribute setting window, wherein the moving operation is executed on the display screen by the writing pen;
and displaying the handwriting attribute setting window at the relative position of the display screen according to the position relation between the fourth touch position information and the handwriting attribute setting window.
14. The method according to claim 13, wherein the displaying the handwriting attribute setting window at a relative position of the display screen according to a positional relationship between the fourth touch position information and the handwriting attribute setting window comprises:
if the fourth touch position is located at the left vertex angle of the handwriting attribute setting window, the handwriting attribute setting window is displayed at the left vertex angle of the display screen;
if the fourth touch position is located at the right vertex angle of the handwriting attribute setting window, the handwriting attribute setting window is displayed at the right vertex angle of the display screen;
if the fourth touch position is located at the left bottom corner of the handwriting attribute setting window, the handwriting attribute window is displayed at the left bottom corner of the display screen;
and if the fourth touch position is located at the right bottom corner of the handwriting attribute setting window, displaying the handwriting attribute window at the right bottom corner of the display screen.
15. The method of claim 13, after the moving the handwriting property settings window to a respective location, further comprising:
and receiving the opening operation of the writing pen on the sub-window of the handwriting attribute setting window, setting the position of the window in the display screen according to the handwriting attribute, and displaying the color self-defined sub-window on one side of the handwriting attribute setting window.
16. A method as claimed in claim 15, wherein said displaying a color-self-defining sub-window on one side of the handwriting properties setting window according to the position of the handwriting properties setting window in the display screen comprises:
and if the distance between the right edge of the handwriting attribute setting window and the right edge of the display screen is smaller than the width of the color self-definition sub-window, displaying the color self-definition sub-window on the left side of the handwriting attribute setting window, otherwise, displaying the color self-definition sub-window on the right side of the handwriting attribute setting window.
17. The method according to claim 1, further comprising, after said storing the identification and top-of-stack address information of the specific operation stack in a global operation stack:
receiving fifth touch position information corresponding to element modification operation input on the display screen;
determining the selected handwriting according to the fifth touch position information, determining the color of the selected handwriting, and modifying the corresponding color of the handwriting according to the color of the handwriting;
and storing the color modification operation corresponding to the handwriting into a corresponding specific operation stack according to the identification corresponding to the handwriting, and storing the identification and the stack top address information of the specific operation stack into a global operation stack.
18. A writing script processing apparatus, comprising:
the touch control system comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is configured to receive first touch track information of a first writing operation detected by a touch control sensing module, and the first writing operation is executed by a first touch object on a display screen;
a first recognition module configured to receive a first elastic wave signal detected by an elastic wave sensor, determine an identifier of the first touch object according to the first elastic wave signal, wherein the first elastic wave signal is generated when the first touch object contacts the display screen when the first touch object performs the first writing operation;
the drawing module is configured to determine a handwriting type corresponding to the first touch object according to the identifier of the first touch object, and draw a corresponding writing in the display screen according to the handwriting type and the first touch track information;
and the stack-entering module is configured to store the drawing operation corresponding to the writing into the corresponding specific operation stack according to the identification corresponding to the writing, and store the identification and the stack top address information of the specific operation stack into the global operation stack.
19. An interactive tablet, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a handwriting processing method according to any of claims 1-17.
20. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method for handwriting processing according to any one of claims 1-17.
CN202110435260.1A 2021-04-22 2021-04-22 Handwriting processing method and device, interactive panel and storage medium Pending CN114690930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110435260.1A CN114690930A (en) 2021-04-22 2021-04-22 Handwriting processing method and device, interactive panel and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110435260.1A CN114690930A (en) 2021-04-22 2021-04-22 Handwriting processing method and device, interactive panel and storage medium

Publications (1)

Publication Number Publication Date
CN114690930A true CN114690930A (en) 2022-07-01

Family

ID=82136260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110435260.1A Pending CN114690930A (en) 2021-04-22 2021-04-22 Handwriting processing method and device, interactive panel and storage medium

Country Status (1)

Country Link
CN (1) CN114690930A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115938244A (en) * 2023-02-20 2023-04-07 深圳市英唐数码科技有限公司 Display method, system and storage medium of electronic paper book adapting to multiple pen shapes
WO2024022068A1 (en) * 2022-07-29 2024-02-01 京东方科技集团股份有限公司 Interaction method based on figure recognition, and display device
CN117555443A (en) * 2024-01-12 2024-02-13 江苏纳帝电子科技有限公司 Touch screen writing detection analysis method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024022068A1 (en) * 2022-07-29 2024-02-01 京东方科技集团股份有限公司 Interaction method based on figure recognition, and display device
CN115938244A (en) * 2023-02-20 2023-04-07 深圳市英唐数码科技有限公司 Display method, system and storage medium of electronic paper book adapting to multiple pen shapes
CN117555443A (en) * 2024-01-12 2024-02-13 江苏纳帝电子科技有限公司 Touch screen writing detection analysis method
CN117555443B (en) * 2024-01-12 2024-04-02 江苏纳帝电子科技有限公司 Touch screen writing detection analysis method

Similar Documents

Publication Publication Date Title
CN114690930A (en) Handwriting processing method and device, interactive panel and storage medium
US9946345B2 (en) Portable terminal and method for providing haptic effect to input unit
CN108829327B (en) Writing method and device of interactive intelligent equipment
CN109407954B (en) Writing track erasing method and system
US20150077345A1 (en) Simultaneous Hover and Touch Interface
CN110045840B (en) Writing track association method, device, terminal equipment and storage medium
US20150199030A1 (en) Hover-Sensitive Control Of Secondary Display
CN103543944A (en) Method of executing functions of a terminal including pen recognition panel and terminal supporting the method
JP2008541210A (en) Large touch system and method of interacting with the system
CN110045909B (en) Ellipse processing method, device and equipment based on writing track and storage medium
CN108733296B (en) Method, device and equipment for erasing handwriting
CN114690853B (en) Interaction method and interaction panel
US20190138178A1 (en) Detecting primary hover point for multi-hover point device
KR20160033547A (en) Apparatus and method for styling a content
CN108762657B (en) Operation method and device of intelligent interaction panel and intelligent interaction panel
KR20210023434A (en) Display apparatus and control method thereof
CN114690967A (en) Touch operation processing method and device, interactive panel and storage medium
CN114690931A (en) False touch prevention method and device based on contact tracking, interactive flat plate and storage medium
CN116490845A (en) Thinking guide adjustment method, storage medium and device
CN114578956A (en) Equipment control method and device, virtual wearable equipment and storage medium
CN113608662A (en) Touch response method and device, terminal equipment and storage medium
JP6821998B2 (en) Electronic blackboard, program, method
CN114690977B (en) Interactive calling method and device based on elastic waves
CN113377220B (en) Information storage method and device
JP7480608B2 (en) Display device, display method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination