WO2022242011A1 - 书写笔迹的呈现方法、装置、交互平板及存储介质 - Google Patents

书写笔迹的呈现方法、装置、交互平板及存储介质 Download PDF

Info

Publication number
WO2022242011A1
WO2022242011A1 PCT/CN2021/121986 CN2021121986W WO2022242011A1 WO 2022242011 A1 WO2022242011 A1 WO 2022242011A1 CN 2021121986 W CN2021121986 W CN 2021121986W WO 2022242011 A1 WO2022242011 A1 WO 2022242011A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
touch point
information
point
handwriting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/121986
Other languages
English (en)
French (fr)
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 Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Publication of WO2022242011A1 publication Critical patent/WO2022242011A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present application relates to the technical field of touch writing of electronic equipment, and in particular to a method and device for presenting handwriting, an interactive tablet and a storage medium.
  • the touch frame is an important hardware component of the interactive tablet, and is mainly used to collect touch information of touch signals generated by the user after a touch operation on the interactive tablet.
  • Most of the touch frames used in the interactive panels on the market are not high enough in touch accuracy, such as non-high-precision touch frames below a certain accuracy range.
  • the defects of such non-high-precision touch frames are mainly manifested in: it is difficult to write It is difficult to ensure that the touch area generated by the same writing pen is the same during writing; it is difficult to determine whether the touch medium is a writing pen or a finger or an eraser; it is also difficult to determine the touch rotation angle.
  • the software level of the interactive tablet cannot maximize the use of the touch information fed back by the touch frame, resulting in performance effects related to touch on the interactive tablet (such as the presentation of handwriting when writing) effect) did not increase significantly.
  • the embodiment of the present application provides a handwriting display method, device, interactive tablet and storage medium, which improves the display effect of handwriting on the interactive tablet.
  • the embodiment of the present application provides a method for presenting handwriting, which is applied to an interactive tablet, and the touch accuracy of the touch frame equipped on the interactive tablet reaches a set accuracy range, and the method includes:
  • the touch object touches the surface of the display screen and moves, the touch point information fed back through the touch frame is obtained, and the touch object is manipulated by the user;
  • the handwriting matching the movement state of the touch object is presented on the writing interface.
  • the moving state is reflected by the magnitude of the pressure sensitivity of the touch object acting on the display screen and the moving direction.
  • the obtaining the touch point information fed back through the touch frame includes:
  • one touch point information corresponds to one touch point
  • the touch point information includes: touch point coordinates and touch point pressure sensitivity.
  • Each touch point information is processed so that each touch point information has a unified unit format and data structure.
  • processing of each touch point information includes:
  • the unit of each data information in the touch point information is converted into a unified set unit format
  • the data structure corresponding to the set unit format is used to record the touch point information.
  • the handwriting matching the movement state of the touch object is presented on the writing interface, including:
  • the outline of the handwriting is filled and presented on the writing interface.
  • the determination of the movement status information of the touch point generated by the touch object during the movement process by analyzing the information of each touch point includes:
  • the determination of the movement status information of the touch point generated by the touch object during the movement process by analyzing the information of each touch point includes:
  • the reference of the touch point in the four directions of up, down, left and right correcting the margin value to obtain corrected second margin values
  • Each of the second margin values is recorded as the moving state information of the touch point.
  • the touch point information also includes: the generation time of the touch point and the moving direction of the touch point;
  • determining the second thickness scaling factor corresponding to each of the touch points in the four directions of up, down, left, and right includes:
  • For each touch point obtain the generation time of the touch point from the corresponding touch point information, and search for each target touch point included in the set time period before the generation time;
  • the touch point and the touch point coordinates and moving directions of each of the target touch points determine the touch offset information corresponding to the touch point, and the touch point in the four directions of up, down, left and right target distance value;
  • each of the target distance values and the touch pressure sensitivity of the touch point determine the second coarse and fine scaling coefficients of the touch point in the four directions of up, down, left and right respectively.
  • the touch point coordinates and moving direction of the touch point and each of the target touch points determine the touch offset value corresponding to the touch point, and the touch point is up, down, left and right Target distance values in four directions, including:
  • the positive and negative values of the coordinate difference are determined based on the set horizontal and vertical positive directions.
  • each of the target distance values and the touch pressure sensitivity of the touch point respectively determine the second position of the touch point in the four directions of up, down, left and right.
  • Thin and thick scaling factors including:
  • the product of the scaling factor to be corrected and the touch pressure sensitivity is used as the second thickness scaling factor in the direction.
  • forming a handwriting outline matching the moving state of the touch object includes:
  • each of the current margin values combined with the touch point coordinates of the touch point determine the stroke point corresponding to the touch point in the four directions of up, down, left and right;
  • the first setting rule is that the area of the formed closed area is the largest.
  • forming a handwriting outline matching the moving state of the touch object includes:
  • each of the current margin values combined with the touch point coordinates of the touch point, determine the asymmetric elliptical area corresponding to the touch point, and determine the tangent point of the asymmetric elliptical area;
  • the asymmetrical ellipse regions are connected along the tangent direction through corresponding tangent points to form a second handwriting outline with closed regions.
  • the determining the asymmetric elliptical area corresponding to the touch point according to each of the margin values combined with the touch point coordinates of the touch point includes:
  • the extracting the effective area from the ellipse includes:
  • An area within the quadrant interval in the ellipse is determined as an effective area.
  • a handwriting outline matching the moving state of the touch object is formed, including:
  • a third handwriting outline is formed based on the first stroke points and the second stroke points corresponding to the touch points.
  • constituting a third handwriting outline based on the first stroke point and the second stroke point corresponding to each of the touch points includes:
  • Each of the circumscribed octagons forms an approximate tangent line through the corresponding approximate tangent point, and connects them along the approximate tangent direction respectively to form a third handwriting outline with a closed area.
  • the embodiment of the present application provides a device for presenting handwriting, which is configured on an interactive tablet, and the touch accuracy of the touch frame equipped on the interactive tablet reaches the set accuracy range, and the device includes:
  • a display module configured to display a writing interface through a display screen
  • An acquisition module configured to acquire touch point information fed back through the touch frame when a touch object touches the surface of the display screen and moves, and the touch object is manipulated by the user;
  • the presentation module is configured to present, on the writing interface, handwriting matching the movement state of the touch object by analyzing the information of each touch point.
  • an interactive tablet including:
  • the touch frame which has a touch accuracy up to the set accuracy range, is used to collect touch point information generated when the touch object is touched;
  • the display screen is combined with the touch frame to form a touch screen for displaying interactive content
  • processors one or more processors; memory means for storing one or more programs;
  • the one or more processors are made to implement the method provided in the first aspect of the present application.
  • the embodiment of the present application further provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute the method as described in the first aspect when executed by a computer processor.
  • the handwriting presentation method, device, interactive tablet and storage medium provided above.
  • the proposed method can be executed by an interactive flat panel, and the touch accuracy of the touch box equipped on the interactive flat panel reaches the set accuracy range; wherein the method can first display the writing interface through the display screen; and then touch the surface of the display screen with the touch object and When moving, the touch point information fed back by the touch frame can be obtained; finally, by analyzing the information of each touch point, the handwriting matching the moving state of the touch object can be presented on the writing interface.
  • the configured high-precision touch frame can be optimized by the method provided in this embodiment at the software application level.
  • the method provided in this embodiment ensures that the handwriting presented on the writing interface can better match the movement state of the user's moving touch object during the writing process, thereby more Good presentation of the handwriting with the user's writing style, thereby realizing the improvement of the handwriting rendering effect on the interactive tablet.
  • FIG. 1 shows a schematic flow chart of a method for presenting handwriting provided in Embodiment 1 of the present application
  • Fig. 1a is a diagram showing the effect of a touch frame responding to a touch object in a method for presenting handwriting provided in Embodiment 1 of the present application;
  • Fig. 1b shows an effect display diagram of a conventional rendering in the handwriting rendering method in the related art
  • Figure 1c shows the effect display diagram of the handwriting rendering method provided by the first embodiment of the present application
  • FIG. 2 shows a schematic flowchart of a method for presenting handwriting provided in Embodiment 2 of the present application
  • Fig. 2a shows one implementation flow chart of determining the moving state information in the handwriting presentation method provided in Embodiment 2 of the present application
  • Figure 2b shows an effect display diagram of the mobile state information determined in Embodiment 2 of the present application
  • Fig. 2c shows one implementation flow chart of handwriting contour determination in the handwriting rendering method provided in Embodiment 2 of the present application;
  • Figure 2d shows the effect of handwriting outline determination in the handwriting rendering method provided by the second embodiment of the present application
  • Fig. 2e shows another implementation flow chart of determining the moving state information in the handwriting presentation method provided in the second embodiment of the present application
  • Fig. 2f shows another implementation flow chart of handwriting outline determination in the handwriting rendering method provided in the second embodiment of the present application
  • Figure 2g shows the effect display diagram of the asymmetric ellipse area determined in the second embodiment of the present application
  • Fig. 2h shows the effect display diagram of the second handwriting outline determined in the second embodiment of the present application
  • Fig. 2i shows another implementation flowchart of handwriting contour determination in the handwriting rendering method provided in Embodiment 2 of the present application;
  • Fig. 2j shows the effect diagram of the third handwriting outline determined in the second embodiment of the present application
  • Figure 2k shows a handwriting display diagram with special effects of the user's writing style presented by the method provided in Embodiment 2 of the present application;
  • FIG. 3 is a structural block diagram of a handwriting display device provided in Embodiment 3 of the present application.
  • FIG. 4 is a schematic structural diagram of an interactive panel provided in Embodiment 4 of the present application.
  • the hardware part of the interactive panel is composed of display screens, intelligent processing systems and other parts, which are combined by integral structural parts and supported by dedicated software systems.
  • the display screen may specifically include a Light Emitting Diode (Light Emitting Diode, LED) display screen, an Organic Light-Emitting Diode (OLED) display screen, a Liquid Crystal Display (Liquid Crystal Display, LCD) display screen, and the like.
  • a touch frame can be formed to form a touch screen.
  • the optical touch sensor constituting the touch frame can scan the touch object, such as a user's finger, a stylus, etc., on the surface of the display screen using light signals.
  • a cover glass is provided on the surface of the display screen. Therefore, in the embodiments of this specification, the surface of the display screen refers to the cover glass of the display screen. surface.
  • the touch frame can respond to the above touch operations and pass the corresponding touch operation information to the intelligent processing system at the application level, so that through intelligent processing
  • the system implements various interactive applications.
  • the optical touch sensor may include an infrared emitter and an infrared receiver.
  • the infrared emitter is used to emit infrared signals
  • the infrared receiver is used to receive infrared signals.
  • the densely distributed infrared signals in different directions are used to form a beam grid to locate the touch point.
  • the display screen is equipped with a frame with a circuit board, which is used to arrange infrared emitters and infrared receivers around the display screen to form a horizontal and vertical beam grid touch frame.
  • the display screen has the above-mentioned touch frame
  • the touch object blocks the infrared signal
  • the light measurement value will be weakened at the corresponding infrared receiver, so the position of the touch point on the screen can be determined.
  • the infrared transmitter is installed on the first side of the frame of the display screen
  • the infrared receiver is installed on the second side of the frame of the display screen
  • the first side is opposite to the second side, that is, the infrared receiver is on the side of the infrared transmitter.
  • the infrared signal emitted by the infrared transmitter is received by the infrared receiver.
  • the shape of the display screen is different, such as rectangle, hexagon, circle, etc.
  • the shape of the frame also varies with the shape of the display screen, such as rectangle, hexagon, circle, etc.
  • the settings of infrared emitters and infrared receivers in each infrared module are also different.
  • a conventional touch frame configured on an interactive panel responds to a touch signal of a touching object
  • the touch precision usually falls within a conventional range, and such a conventional touch frame can be recorded as a non-high-precision touch frame.
  • a non-high-precision touch frame with a touch accuracy in the conventional range, it may be difficult to recognize the size of the touch area of the touch object on the display screen. Therefore, in the touch writing mode, it is difficult to judge what type of touch screen the user uses. Touch the object to write, or it is difficult to judge what touch medium (finger, writing pen) the user uses to touch.
  • it is difficult for a non-high-precision touch frame to ensure that the same type of touch object presents the same touch area during the touch process.
  • the touch frame adopted by it can optionally adopt a high-precision touch frame with high touch accuracy, the so-called High touch accuracy can be understood as the touch accuracy has reached the set accuracy range, wherein the accuracy limit of the set accuracy range is higher than the conventional accuracy range.
  • the touch frame adopted in this embodiment it can provide more detailed touch information to the upper application level, such as the touch area of the touch object, more accurate coordinates of the touch point, and the touch object’s touch during the touch process. rotation angle etc.
  • the intelligent processing system in the interactive whiteboard can include a host processor, which belongs to the processor of the interactive panel. Lively audio-visual effects.
  • the host processor is a computing module with higher performance.
  • the host processor can be an Android (Android) module, the Android (Android) system can be installed, and the CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processing unit), RAM (random access memory, random access memory) and ROM (Read-Only Memory, read-only memory) and other components, for example, for Android7.0 version, CPU is dual-core A72 and quad-core A53, GPU is Mali T860, RAM is 4GB, ROM is 32GB, etc.
  • Android Android
  • CPU Central Processing Unit, central processing unit
  • GPU Graphics Processing Unit, graphics processing unit
  • RAM random access memory
  • ROM Read-Only Memory, read-only memory
  • other components for example, for Android7.0 version, CPU is dual-core A72 and quad-core A53, GPU is Mali T860, RAM is 4GB, ROM is 32GB, etc.
  • the host processor can be a PC (personal computer, personal computer) module configured with components such as CPU, GPU, memory, and hard disk.
  • the CPU is an Intel Core i5 /i7
  • the GPU is Intel HD Graphics
  • the memory is DDR4 8G/16G
  • the hard disk is 128G/256G.
  • FIG. 1 shows a schematic flowchart of a method for presenting handwriting provided in Embodiment 1 of the present application.
  • This embodiment is applicable to the situation of presenting handwriting on a writing interface.
  • the method can be executed by a handwriting presentation device, which can be implemented by software and/or hardware, and can be configured in an interactive panel, especially in a processor of an interactive panel, which can be intelligent processing
  • the host processor in the system the touch frame equipped in the interactive flat panel has a touch accuracy up to the set accuracy range; in addition, the touch frame is also electrically connected to the display screen.
  • a method for presenting handwriting provided in Embodiment 1 of the present application specifically includes the following steps:
  • the execution subject of the method provided in this embodiment is also provided with a graphics processor (Graphics Processing Unit, GPU), which can provide video processing functions.
  • the information of the device is placed into the frame memory, and the serial display data and scan control timing required by the display are generated for the video signal according to the partition driving method.
  • the display screen set on the interactive panel can play frame data information according to the serial display data and scan control timing, thereby displaying various pictures on the display screen.
  • the display interface can be regarded as the interface displayed on the display screen after the user enters the writing mode through a trigger.
  • an interface can be displayed on the display screen, and the user can select handwriting attribute parameters, such as handwriting color and handwriting thickness, and can present handwriting on the interface according to the configuration parameters.
  • the writing interface can be an independent interface.
  • the interactive tablet provides an electronic whiteboard, and the user triggers a control operation to display the electronic whiteboard in the interactive tablet.
  • the interactive tablet receives the control operation and displays the electronic whiteboard as a writing interface.
  • the user can trigger a touch operation on the electronic whiteboard, and the touch operation is expressed in the form of a trajectory. Therefore, through the analysis of the generated trajectory by the upper layer application of the interactive panel, the trajectory can be displayed on the screen of the interactive panel.
  • the control operations on the electronic whiteboard include but not limited to touch operations, keyboard operations, mouse operations, and physical button operations.
  • the writing interface can also be an interface with a background.
  • the interactive flat panel displays local courseware, displays information transmitted by a screen transfer device (USB Dongle, USB dongle), and belongs to a source device (such as a notebook computer, etc.). Data such as screen images.
  • the user triggers an annotation operation on the interactive tablet, and the interactive tablet receives the annotation operation, freezes data such as courseware and screen images, and makes them become the background, that is, maintains the current frame of data displaying courseware, screen images, etc., and displays them in the courseware, screen images, etc.
  • a mask is generated on top of the data to act as a writing interface.
  • the user can trigger a touch operation on the screen of the interactive tablet, and the touch operation is represented in the form of a track, and the interactive tablet can display handwriting corresponding to the touch track on the mask.
  • the so-called courseware can refer to the course documents made according to the requirements of teaching, after the determination of teaching objectives, the analysis of teaching content and tasks, the structure of teaching activities and the design of interface, etc.
  • the courseware can be Word documents, PPT Files in public formats such as PowerPoint, presentations, courseware presentation whiteboard documents, etc., may also be custom pages composed of text, tables, pictures and other elements, which is not limited in this embodiment.
  • the touch object may specifically be a user's finger, an active stylus or a passive stylus, etc., and the user may manipulate the touch object to move on the display surface of the interactive panel, wherein, when the touch object moves, the The rendered movement state can be used for the rendering of handwriting.
  • the interactive panel is further configured with a touch frame combined with the display screen, wherein the touch frame may specifically be a frame formed by an optical touch sensor nested at the edge of the display screen.
  • the touch frame can generate a touch signal based on the included optical touch sensor when the touch object moves on the display screen, and identify corresponding touch point information through a response to the touch signal.
  • FIG. 1a is a diagram showing the effect of a touch frame responding to a touch object in a method for presenting handwriting provided in Embodiment 1 of the present application.
  • one or more optical touch sensors 120 are installed on both sides of the edge of the display screen 110 of the interactive panel, forming a touch frame.
  • the movement state of the touch object (such as a finger) manipulated by the user on the display screen 110 can be presented by using finger states 131 to 135 .
  • the processor can activate the optical touch sensor 120, and the optical touch sensor 120 scans the light signal on the display surface of the interactive tablet, and detects whether the display surface appears or not according to the transmission of the light signal.
  • the touch object when the touch object is detected, generates a corresponding touch signal in real time during the movement of the touch object.
  • the touch frame can respond to the generated touch signal, so as to feed back the touch point data identified after the response to the upper layer of the interactive panel (such as the main processor in the intelligent processing system).
  • the touch point data is recorded is the touch point information.
  • the touch frame used in this embodiment is a high-precision touch frame.
  • the touch point information fed back by the touch frame is superior to the touch point information fed back by the conventional touch frame in terms of accuracy and information detail.
  • the touch point information includes at least coordinate information of the touch point, pressure sensitivity information of the touch point, and the like.
  • the user touches to enter the writing mode, and it can be known that the user's writing intention is to write text, or to mark and identify important content through the presented handwriting.
  • the user writes text
  • a better writing experience is that the handwriting can be presented according to the user's writing style when writing on paper, such as presenting the user's unique strokes, or the user also prefers to present a smoother and coherent Write handwriting as a marker.
  • this embodiment wants to realize the personalized presentation of the user's handwriting, it needs to be able to obtain the data information representing the user's personalized characteristics, and then the data information can be processed to present the effect that meets the user's needs.
  • the user's writing process is equivalent to the process of the user controlling the movement of the touch object on the surface of the display screen, and the user's personalized style is mainly reflected in the movement control of the touch object.
  • the touch objects controlled by different users have different moving states on the display screen .
  • the different moving states of the touch object can be reflected in the feedback touch point information, and further, the moving state acts on the display screen through the touch object.
  • the size of the pressure sensitivity value and the direction of movement can be reflected by the pressure sensitivity value and the direction of movement, both of which can be extracted from the touch point information.
  • the handwriting matching the moving state of the touch object can be presented in the writing interface.
  • the text can show the user's writing style;
  • the presented handwriting is a marker such as a marking line, the marking line can more smoothly and accurately mark the content that the user wants to mark.
  • the position of each touch point required for determining the handwriting can also be determined first through the touch point information in the moving process , and then analyze the points to be connected, the lines to be connected and the required connection methods between them that diverge from each touch point when the handwriting outline is presented based on each touch point, and finally based on the above-mentioned information analyzed, the user can present a Manipulate touch objects to move matching handwriting.
  • FIG. 1 b shows a display diagram of a conventional rendering effect in the handwriting rendering method in the related art
  • FIG. 1 c shows an effect display diagram of the handwriting rendering method provided in Embodiment 1 of the present application.
  • the handwriting shown in Fig. 1b and Fig. 1c is mainly written by the user.
  • the conventional handwriting presentation method is adopted, and the displayed text is only conventional handwriting presentation, which does not reflect the user's writing characteristics.
  • the presented text can be displayed in a personalized manner, such as rough or neat, round or sharp when the user writes.
  • the handwriting presentation method provided in Embodiment 1 of the present application can be executed by an interactive tablet, and the touch accuracy of the touch box equipped on the interactive tablet reaches the set precision range; the method can firstly display the writing interface through the display screen; and then When the touch object touches the surface of the display screen and moves, the touch point information fed back through the touch frame can be obtained; finally, by analyzing the information of each touch point, it can be displayed on the writing interface to match the moving state of the touch object handwriting.
  • the execution subject of the method, the interactive tablet is equipped with a high-precision touch frame on the hardware structure, and can realize the function optimization at the software application level of the configured high-precision touch frame through the method provided in this embodiment.
  • the method provided in Embodiment 1 ensures that the handwriting presented on the writing interface can better match the movement state of the user’s moving touch object during the writing process, thereby better presenting Handwriting with the user's writing style, which in turn improves the rendering effect of handwriting on the interactive tablet.
  • this optional embodiment may further include: processing each of the touch point information, so that each of the touch Point information has a unified unit format and data structure.
  • the display operation of handwriting is mainly performed by the intelligent processing system on the upper layer of the interactive tablet, specifically, it can be executed by the host processor, and the touch point information required for the display of handwriting mainly comes from the hardware level of the interactive tablet. Touch the frame to provide feedback.
  • the touch point information fed back by the touch frame can be regarded as the input information required by the upper layer.
  • the execution parameters of the touch boxes are also different, which may lead to differences in the representation of the touch information fed back by the touch boxes, which will affect the handwriting presentation method normal execution.
  • the information processing operation proposed in this optional embodiment is added on the basis of the first embodiment above.
  • this optional embodiment can analyze the production information and batch information of the touch frame, determine the original information format of the touch point information fed back by the touch frame, and then process the unit format and data structure of the touch point information, Ensure that the data input to the upper layer of the interactive panel has a unified information format.
  • the processed touch point information removes the unit format related to the touch frame manufacturer or batch.
  • the touch area unit fed back in the touch point information in the original information format is basically based on the blocked optical trigger on the touch frame.
  • the number of sensors is used as a touch width unit and a touch height unit, which can be converted into an abstract unit in unified software, such as a pixel unit, in this optional embodiment.
  • each touch point information can be embodied as:
  • the unit of each data information in the touch point information is converted into a unified set unit format
  • the data structure corresponding to the set unit format is used to record the touch point information.
  • this optional embodiment can uniformly convert data information such as the coordinates of the touch point, the height and width of the touch point, or the vertices of the geometric figure formed when the touch frame is identified in the original information format into More abstract unit values at the software level, such as coordinate points represented by pixels, width or height values, etc.
  • the high-precision touch frame can also capture the rotation operation of the touch object during the touch process, and can determine the rotation angle of the touch rotation. At this time, through the processing method of this optional embodiment , and the initially obtained rotation angle can also be processed in a unified radian unit.
  • the above optional embodiment of the first embodiment of the present application specifically optimizes and adds the processing operation of the touch point information fed back by the touch frame. Through this processing operation, the unified input of the touch point information can be realized, avoiding the problem caused by the touch frame itself.
  • the incompatibility of the touch point information in the subsequent execution process caused by the different attribute parameter information of different attributes effectively improves the execution efficiency of handwriting presentation.
  • FIG. 2 shows a schematic flow chart of a method for presenting handwriting provided in Embodiment 2 of the present application.
  • This embodiment is optimized on the basis of the above-mentioned embodiment.
  • the feedback obtained through the touch frame can be
  • the specific optimization of the touch point information is as follows: identify each touch signal through the hardware circuit in the touch frame, and the touch signal is generated when the touch object moves on the display screen; obtain the touch frame through the man-machine
  • the interactive (Human Interface Device, HID) standard protocol is for the touch point information fed back by each touch signal, wherein one touch point information corresponds to one touch point, and the touch point information includes: touch point coordinates and touch point pressure sensitivity.
  • HID Human Interface Device
  • the writing interface by analyzing the information of each of the touch points, presenting on the writing interface the written handwriting that matches the movement state of the touch object as follows: by analyzing the information of each of the touch points The analysis of the information determines the movement state information of the touch point generated by the touch object during the movement process; through the analysis of each of the movement state information, a handwriting outline matching the movement state of the touch object is formed; filling the The outline of the handwriting is presented on the writing interface.
  • a method for presenting handwriting provided in Embodiment 2 of the present application specifically includes the following operations:
  • the writing button can be triggered by the user to enter the writing interface, or the editing function can be triggered to enter the writing interface in editing mode in some associated scenarios (such as the courseware display scenario).
  • the optical touch sensor can be regarded as a core component constituting the touch frame.
  • the optical touch sensor (such as an infrared emitter set on one side and an infrared receiver set on the other side) can be set on the edge of the display screen in real time. Whether there is a touch object on the surface of the display screen is detected by using whether the beam grid formed by the densely distributed infrared signals in different directions is blocked or not.
  • a corresponding touch signal can be generated at the corresponding position when the touch object blocks the normally emitted infrared signal; after that, the hardware circuit set in the touch frame can identify the touch signal, such as through Identify the high and low levels of the touch signal to determine the coordinate information of the position of the touch signal represented by the data at the hardware level, the corresponding width information and height information when the touch object blocks the infusion grid, and even the touch object Touch area information and rotation information, etc.
  • a group of touch signals can be generated correspondingly, and the hardware circuit on the touch frame can effectively identify the relevant touch information of each touch signal in the group, and at the same time,
  • the pressure sensitivity information of the touch object at each touch point can be determined through the pressure of the touch object acting on the hardware circuit of the touch frame.
  • the touch frame is a hardware structure on an interactive panel
  • the touch point information identified by the hardware circuit on the touch frame relative to each touch point is difficult to directly input to the upper-layer software processing module. Therefore, this step can be adopted.
  • the special human-computer interaction HID standard protocol obtains the converted touch point information readable at the software level, and the object of the conversion process is the touch point information recognized at the hardware level.
  • each touch point information fed back by the touch frame specifically represents each touch point triggered by the touch object, and the required touch point information must at least include the coordinates of the touch point and the touch Feel the pressure.
  • the touch point coordinates are the basic information of touch, and the touch point pressure sensitivity can be used to represent the touch pressure of the user when operating the touch object to move, and this information can be used to indirectly reflect the user's writing style.
  • the touch point information fed back by the touch frame can be obtained in real time during the movement of the touch object. Therefore, this embodiment can realize the presentation of handwriting on the writing interface through the following S204 to S206.
  • this step can be used to first determine the information related to the moving state of the touch object during the moving process.
  • the touch object can be The determination of the movement state of the conversion is determined by the movement state information of each touch point generated during the movement process.
  • the generation of a touch point is related to the touch frame's sensing of the touch object, and in the touch frame's sensing of the touch object, the touch signal can be generated by the touch object blocking the light-speed grid.
  • the hardware circuit of the touch frame Responding to the touch signal the corresponding blocked position on the touch frame of the touch signal can be determined, and the corresponding blocked position can be regarded as the generation position of the touch point, and the coordinates of the blocked position can be obtained After that, it is equivalent to obtaining the coordinate information of the touch point.
  • each touch point generated is discrete.
  • associated information can be simply connected to adjacent touch points, and the line generated after the connection is used as one of the traces in the handwriting.
  • the displayed handwriting is preset with attribute information such as the thickness or color of the displayed handwriting. Therefore, simply connecting touch points to form line handwriting cannot obtain handwriting that matches the user.
  • the Bezier curve algorithm is often used, that is, by treating the touch point as a control point and adding a virtual point between the two touch points to make a smooth curve, but it is difficult to use this algorithm for the handwriting of different users Personalized presentation, and the thickness of the handwriting is also uniform and unchanged.
  • each touch point can be considered as the center to determine its extension distance in the four directions of up, down, left, and right, and the extension distance of the touch point in each direction can be the pressure applied by the user relative to the touch point.
  • the embodiment of the sense of touch and the direction of movement can also be specifically determined based on the direction of movement of the touch point and the touch pressure sensitivity.
  • the moving state of the touch object is related to the pressure sense and the direction of movement when the user controls the movement of the touch object, thus, if you want to obtain the handwriting that matches the user's writing style, you can first extend the touch point in all directions
  • the distance is used as the moving state information representing the moving state of the touch object.
  • the extension distance of the touch point in each direction can be recorded as the margin value of the touch point in each direction, and uniformly regarded as the moving state information corresponding to the touch point .
  • the margin values of the touch point in each direction may be the same data value or different data values.
  • this embodiment records the margin value under the same data value as the first
  • the margin value the margin value in the case of different values is recorded as the second margin value.
  • the first margin value and the second margin value of the touch point in each direction may be determined in different ways, and the different ways of determining the margin values directly reflect the different ways of determining the moving state information.
  • the margin value can be the calculated value of the preset handwriting thickness value and a coefficient to be determined.
  • the specific values of the coefficients to be determined in each direction can be the same;
  • the specific values of the undetermined coefficients in each direction can be different.
  • FIG. 2a shows an implementation flowchart of determining the moving state information in the handwriting presentation method provided in the second embodiment of the present application. As shown in Figure 2a, this optional embodiment further determines the movement state information of the touch point generated by the touch object during the movement process by analyzing the information of each touch point, which is embodied in the following steps:
  • the handwriting thickness value can be considered as an attribute parameter value preset when the user configures the handwriting attribute information after entering the writing mode triggered by the user.
  • the thickness basis of handwriting can be considered as an attribute parameter value preset when the user configures the handwriting attribute information after entering the writing mode triggered by the user.
  • S2042 to S2044 are implemented relative to the determination of the movement state information of a single touch point, and the movement state information of each touch point can be determined through the following steps.
  • this step can directly extract the touch point pressure included in the touch point information.
  • the relationship between the touch pressure sensitivity and the thickness scaling coefficient can be established in advance.
  • the value range of the thickness scaling coefficient is (0,1), and the touch pressure sensitivity values of different sizes can be in (0 , 1) Determine a corresponding thickness scaling coefficient value within the range to form a pressure sensitivity coefficient association table.
  • a matching thickness scaling factor can be found from the pressure sensitivity coefficient association table.
  • this embodiment marks the thickness scaling factor as the first thickness scaling factor.
  • the combination of the thickness scaling factor and the handwriting thickness value can be used to determine the actual thickness of the touch point on the writing interface.
  • the product value of the handwriting thickness value and the first thickness scaling factor may be regarded as the reference value on which the actual thickness is displayed on the writing interface.
  • the above-mentioned determined product value can be regarded as the extension distance of the handwriting to be presented that takes the touch point as the intersection point and extends to the surroundings.
  • the extension distance of the point in the four directions of up, down, left, and right can be regarded as the margin value of the touch point in the four directions of up, down, left, and right.
  • This embodiment is recorded as the first margin value, and the summarized four margin values can be recorded as The movement state information of the touch point.
  • FIG. 2b shows an effect display diagram of the mobile state information determined in Embodiment 2 of the present application.
  • points A, B, C, and D can be used as touch points generated during the movement of the touch object, and each touch point can form two intersecting lines in the horizontal and vertical directions with each touch point as the intersection point.
  • the extension in four directions of up, down, left, and right relative to the touch point is realized, and the above-mentioned determined margin values in each direction can be obtained and marked with endpoints.
  • the 16 endpoints A1 ⁇ A4, B1 ⁇ B4, C1-C4, D1-D4 are respectively shown in FIG. 2b, showing the margin values of touch points A, B, C, and D in the four directions of up, down, left, and right respectively.
  • the characteristics of the presented handwriting are mainly matched with the moving state of the touch object, and the user's writing style can be displayed through the presented handwriting.
  • the moving state of the touch object is determined by the touch pressure and movement direction when the user operates the touch object, in order to present user-style handwriting on the writing interface, it is necessary to first determine the movement of the touch object through the above steps Mobile state information for the state.
  • the thickness of the handwriting that each touch point can present on the writing interface can be determined.
  • this implementation For example, it is necessary to ensure that the touch points generated during the movement are connected to each other, and after the connection, a smooth and user-style handwriting outline can be presented.
  • the margins in the four directions of up, down, left, and right included in the movement status information can be considered Value
  • the end point of the margin value is used as the stroke point corresponding to the touch point
  • the connection between two adjacent touch points can be established through the determined stroke points
  • the closed curve obtained after the connection is used as the The moving state of the touch object matches the handwriting outline.
  • the margins in the four directions of up, down, left, and right included in the movement status information can be considered value, combine the two margin values in adjacent directions to build an ellipse, and finally stitch the ellipse area from the four ellipses formed to form an asymmetrical ellipse area around the touch point.
  • the margins in the four directions of up, down, left, and right included in the movement status information can be considered value, combine the two margin values in adjacent directions to build an ellipse, and finally stitch the ellipse area from the four ellipses formed to form an asymmetrical ellipse area around the touch point.
  • the margins in the four directions of up, down, left, and right included in the movement status information Value to determine the margin values of the touch point in the four directions of upper left, upper right, lower left and lower right, and connect the endpoints of each margin value sequentially to form an octagon corresponding to a touch point.
  • there is an octagon corresponding to each formed touch point and two adjacent touch points can be connected through the corresponding octagon and the approximate tangent point on the octagon.
  • all The line outline formed after the touch points are connected is used as the handwriting outline.
  • the handwriting in this embodiment is generated in real time relative to the movement of the touch object, and the latest touch point information fed back during the movement of the touch object can be regarded as the last touch point in the touch point sequence.
  • FIG. 2c shows a flow chart of one implementation of handwriting outline determination in the method for presenting handwriting provided in the second embodiment of the present application.
  • this optional embodiment by analyzing the moving state information, forming a handwriting outline matching the moving state of the touch object is embodied in the following steps:
  • the touch point can obtain the first margin value with the same data value as the margin value in the four directions; Second margin values with different data values for the margin values in the four directions may be obtained.
  • the current margin value used in this step is specifically related to the method used to determine the margin value, and may be the value recorded as the first margin value or the value recorded as the second margin value.
  • this step and the following S2052 are operations relative to each touch point.
  • the coordinate values of the end points of the margin values corresponding to each current margin value can be determined in the same coordinate system, and The determined coordinate values are used as the coordinate values of the pen gallery point of the touch point in the four directions of up, down, left, and right.
  • this embodiment can receive the information of each touch point generated within a cycle fed back by the touch frame at a certain moment. Touch point information, and at this moment, handwriting presentation can be performed on each received touch point according to the method provided in this embodiment.
  • the pen outline points of each touch point fed back in a cycle can be obtained, and by connecting the pen outline points, adjacent touch points can be connected through the connection of the pen outline points, and finally the first setting can be obtained.
  • the regular handwriting outline is recorded as the first handwriting outline in this embodiment, wherein the first setting rule is that the area of the formed closed area is the largest.
  • Fig. 2d is a diagram showing the effect of handwriting contour determination in the method for presenting handwriting provided in Embodiment 2 of the present application.
  • the stroke points corresponding to the touch points A, B, C, and D can be determined.
  • the above-mentioned determined outline of the handwriting is a closed area, and the closed area can be filled with the previously set handwriting color to form the handwriting presented on the writing interface.
  • the method provided in this embodiment can be performed in real time with the touch point information fed back by the touch frame, because the touch point information is fed back periodically, that is, this embodiment can be based on a certain number of points fed back in a cycle Touch the point to reveal a piece of writing corresponding to that period.
  • This embodiment simultaneously considers the connection between the last touch point in the previous cycle and the first touch point in the next cycle.
  • the connection method between two adjacent touch points under the same cycle given in this embodiment can be used to realize the connection, such as directly connecting through the outline points, or through the non-contact formed by two adjacent touch points.
  • connection realized by the symmetrical ellipse and the corresponding tangent or the connection realized by the octagon formed by two adjacent touch points and the corresponding approximate tangent point.
  • the method provided by this embodiment can ensure a smooth connection between touch points fed back by the touch frame.
  • the second embodiment of the present application provides a method for presenting handwriting, which embodies the feedback form of touch point information, and also embodies the presentation manner of handwriting.
  • the implementation of the method is based on the premise that the touch frame equipped on the interactive panel has a touch precision within a set precision range.
  • the high-precision touch frame can feed back more accurate information containing more effective information to the application layer. Touch Point Information.
  • the above S204 is given, that is, by analyzing the information of each of the touch points, determine the movement state information of the touch points generated during the movement of the touch object Another implementation.
  • This third optional embodiment provides another kind of mobile state information Definite implementation. By implementing this implementation method, it can be ensured that the margin values determined by the touch point in the four directions of up, down, left, and right are different data values.
  • FIG. 2e shows another implementation flow chart of determining the moving state information in the method for presenting handwriting provided in Embodiment 2 of the present application.
  • the determination of the mobile state information specifically includes the following steps:
  • This step is equivalent to a preprocessing step, and a reference margin value can be given for each touch point in the four directions of up, down, left, and right.
  • the key in order to realize the difference in the margin values of the touch point in the four directions of up, down, left, and right, the key is to determine the thickness scaling factor that the touch point should have in the four directions of up, down, left, and right. Considering that when the touch object moves The movement directions sensed by the touch point are different, and it can be known that the pressure sensitivity adopted by the user in the four directions of up, down, left, and right when controlling the movement of the touch object is also different.
  • this step specifically considers what happens to each touch point in the horizontal and vertical directions relative to a certain number of touch points generated before it. Offset, finally taking into account the effect of this offset on the coarse and fine scaling factors.
  • the further optimization of the touch point information in this third optional embodiment further includes: the generation time of the touch point and the moving direction of the touch point; and further analyzing each of the touch point information, Determining the second thickness scaling factor corresponding to each touch point in the four directions of up, down, left and right, embodied as:
  • For each touch point obtain the generation time of the touch point from the corresponding touch point information, and search for each target touch point included in a set time period before the generation time.
  • the touch point information fed back by the touch frame also includes the generation time of the touch point during the touch movement.
  • this step can be used to determine how many target touch points are included in a set time period.
  • the touch point and the touch point coordinates and moving direction of each of the target touch points determine the touch offset information corresponding to the touch point, and the four touch points: up, down, left, and right Target distance value in direction.
  • each touch point can be used as the current touch point to be calculated for the margin value, and the target touch point selected relative to it can be used as a reference point for margin value calculation.
  • the offset of the current touch point relative to the target touch point in the horizontal and vertical directions can be determined, so that the current touch point can be further determined.
  • the steps of determining the touch offset information and the target distance value can be described as:
  • touch point A the current touch point to be calculated for the margin value is touch point A
  • touch point A includes 4 target touch points before touch point A, which are respectively recorded as touch points B, C, D, and E in order of generation time.
  • the time difference between the generation times of touch point B and touch point A is the largest, so touch point B is recorded as the core touch point.
  • the moving direction of touch point A can be selected as the positive direction in the horizontal and vertical directions, and then the horizontal and vertical coordinates of touch point A are used to subtract the touch
  • the obtained coordinate difference can be recorded as the horizontal offset distance X1 and the vertical offset distance Y1 respectively.
  • the difference between the horizontal offset distance X1 and the horizontal distance value x1 is used as the corrected horizontal offset distance value, and the difference between the vertical offset distance Y1 and the vertical distance value y1 is used as the corrected vertical offset distance value.
  • this step is equivalent to an optional step, and when there are no touch points with different moving directions, this step can be skipped and step b13 can be directly executed.
  • the positive and negative values of the coordinate difference are determined based on the set horizontal and vertical positive directions.
  • each of the target distance values and the touch pressure sensitivity of the touch point respectively determine the second thickness scaling factor of the touch point in the four directions of up, down, left and right .
  • step c1 the following sub-steps can be used to specifically describe the process of determining the second coarse and fine scaling coefficient in step c1:
  • the directions in this step specifically include four directions: up, down, left, and right.
  • the target offset distance corresponding to the up and down direction should be the vertical offset distance Y1
  • the target offset distance in the left and right direction should be the horizontal offset distance X1.
  • c12. Determine the difference between the target distance in the direction and the target offset distance, and record the quotient of the difference and the set touch constant as the scaling factor to be corrected.
  • the target distance values of touch point A relative to touch points B ⁇ E are 4 in the up and right directions, and 0 in the down and left directions respectively.
  • the scaling factor to be corrected can be Y1-k1, and the right direction can be X1-k1; the scaling factor to be corrected in the downward direction can be Y1/k; the scaling factor to be corrected in the left direction can be X1/k .
  • k1 is 4/k
  • 4 is the above-mentioned determined target distance value
  • k is a set touch constant.
  • the touch pressure sensitivity of it can also be obtained, and this step can be directly used to multiply the scaling factor to be corrected in each direction of the touch point in the up, down, left, and right directions by the touch pressure sensitivity calculation, the calculated product value can be regarded as the second thickness scaling factor in the corresponding direction.
  • the reference margin in the corresponding direction can be directly based on the second thickness zoom factor of the touch point in the up, down, left, and right directions. value is corrected.
  • the correction process can be understood as the product of the reference margin value in this direction and the corresponding second thickness scaling factor, and the finally determined product value is used as the margin value of the touch point in this direction, which is recorded as the second side in this embodiment distance value.
  • the second margin values in each direction can be collectively referred to as the moving state of the touch point information.
  • this optional embodiment provides the above S205, that is, by analyzing each of the moving state information, a handwriting outline matching the moving state of the touch object is formed. Another implementation.
  • This fourth optional embodiment provides another way to determine the moving state information way of realization.
  • the method of forming the outline of the handwriting provided by this alternative embodiment can improve the smoothness of the outline of the handwriting.
  • FIG. 2f shows another implementation flowchart of handwriting outline determination in the handwriting presentation method provided in Embodiment 2 of the present application.
  • the determination of the handwriting outline specifically includes the following steps:
  • the touch point can obtain the first value of the same data value of the margin value in the four directions.
  • Margin value you can also get the second margin value with different data values for the margin values in the four directions.
  • the current margin value used in this step can also be the value recorded as the first margin value, or the value recorded as the second margin value.
  • S2502. Determine an asymmetric ellipse area corresponding to the touch point according to each current margin value combined with the touch point coordinates of the touch point, and determine a tangent point of the asymmetric ellipse area.
  • This optional embodiment introduces the concept of determining the outline of handwriting based on ellipses. Considering the difference in margin values in each direction, this optional embodiment considers constructing the handwriting outline through an asymmetrical ellipse area. Wherein, the asymmetrical ellipse area may evolve from a conventional ellipse, which is specifically related to the current margin value of the touch point in each direction.
  • the situation that the touch point has the same margin value in all directions can be regarded as a special case where the second margin value is used in each direction.
  • this fourth optional embodiment further optimizes the determination of the asymmetric elliptical area corresponding to the touch point according to each of the current margin values combined with the touch point coordinates of the touch point as the following steps :
  • the obtained four groups can be respectively (q, e) , (q,r), (w,e) and (w,r).
  • the specific realization of extracting the valid area from the ellipse can be described as: determining the quadrant interval corresponding to the two fixed values associated with the construction of the ellipse in the virtual coordinate system; An area in the quadrant interval of the ellipse is determined as an effective area.
  • FIG. 2g shows an effect display diagram of the asymmetric ellipse area determined in Embodiment 2 of the present application.
  • the asymmetric elliptical area includes four effective areas, which are the first effective area 01, the second effective area 02, the third effective area 03 and the fourth effective area 04.
  • the four effective areas are respectively From four different ellipses, each ellipse can be determined by the method of step b2 above, and each effective area can also be determined by the method of determining the effective area.
  • Figure 2h shows the effect display diagram of the second handwriting outline determined in the second embodiment of the present application.
  • the first closed area 22 is formed after the two are connected, and the first closed area 22 can be used as the second handwriting outline of the touch point.
  • Fig. 2h is only a schematic diagram, and the tangents given to each asymmetrical ellipse in the figure are not strict, but in practical applications, the connection method adopted can be connected strictly according to the tangents of the tangent points.
  • the above-mentioned steps of S2501 and S2502 can be used to determine the corresponding asymmetric ellipse area for each touch point, and then two asymmetric ellipse areas can be determined from each asymmetric ellipse according to the tangent point determination method of the ellipse.
  • the tangent point (the distance between the tangent lines corresponding to the two tangent points is the largest), and then each asymmetric ellipse can be connected through the determined tangent point, according to the adjacency relationship of the touch points, and connected along the direction of the tangent line in turn, and finally the connection
  • the formed enclosed area serves as the second handwriting outline. It can be known that each touch point is included in the second handwriting outline.
  • this optional embodiment provides the above S205, that is, by analyzing each of the moving state information, a handwriting outline matching the moving state of the touch object is formed. Yet another implementation.
  • This fifth optional embodiment is different from the above fourth optional embodiment, and optimizes the calculation performance of the fourth optional embodiment, because the calculation process of the ellipse tangent point in the fourth optional embodiment is relatively complicated, and the process Can consume computing resources of the process. Therefore, the implementation manner provided by this fifth alternative embodiment may be used to optimize computing performance.
  • FIG. 2i shows another implementation flowchart of handwriting outline determination in the handwriting presentation method provided in Embodiment 2 of the present application.
  • the determination of the handwriting outline specifically includes the following steps:
  • the method of determining the effective margin value in this embodiment can be described as:
  • the way of determining the asymmetric elliptical area can refer to the method of the fourth optional embodiment above;
  • the effective margin values in the four directions of left, lower right, upper right and lower left respectively have margin value endpoints, that is, the intersection points of the above-described ray and the asymmetric ellipse.
  • the end point of each margin value can be used as the stroke point in the corresponding direction, which is recorded as the first stroke point in this embodiment.
  • each touch point can determine the corresponding movement state information through the method given above in this embodiment, and the movement state information specifically includes the margin values ( It may be the first margin value or the second margin value), and the margin endpoints corresponding to the margin values in each direction may also be used as the corresponding stroke point, which is recorded as the second stroke point in this embodiment.
  • each touch point there are 8 stroke points correspondingly, and the 8 stroke points can be connected to form an octagon. Therefore, each touch point corresponds to an octagon.
  • the octagons of each touch point can be connected to obtain the final handwriting outline, which is recorded as the third handwriting outline in this embodiment.
  • this fifth optional embodiment further concretizes the formation of the third handwriting outline based on the first and second stroke points corresponding to the touch points as follows:
  • the condition for being an approximate tangent point is that two points on a circumscribed octagon are respectively connected with the touch point to form a corresponding line segment, respectively pass through these two points and connect with the corresponding touch point. Lines that form segments perpendicular to them are used as corresponding approximate tangents. Assuming that the distance between the two approximate tangents is the largest, the two points can be considered as the approximate tangent points of the circumscribed octagon.
  • FIG. 2j shows an effect display diagram of the third handwriting outline determined in Embodiment 2 of the present application. As shown in Figure 2j, it includes the second closed area 23 formed by connecting the circumscribed octagon of each touch point with the corresponding approximate tangent point and the formed approximate tangent line. The second closed area 23 can be used as a touch point Handwriting outline of third. It should also be noted that Fig. 2j is only a schematic diagram, and the approximate tangents given to the circumscribed octagons in the figure are not rigorous, or it is difficult to clearly identify the positions of the approximate tangents, but in practical applications, the adopted The connection method can be strictly connected according to the tangent line of the approximate tangent point.
  • FIG. 2k shows a handwriting display diagram with special effects of the user's writing style presented by using the method provided in Embodiment 2 of the present application. As shown in FIG. 2k , it specifically shows a brush stroke profile 24 formed when a user writes in a brush style.
  • the effect diagram also better illustrates that the method provided by this embodiment can ensure that the handwriting presented on the writing interface can better match the movement state of the user's moving touch object during the writing process, which is beneficial to the improvement of user experience.
  • Fig. 3 is a structural block diagram of a handwriting display device provided in Embodiment 3 of the present application.
  • the handwriting display device can be integrated in an interactive tablet, wherein the touch accuracy of the touch frame equipped in the interactive tablet is within a set accuracy range.
  • the device may specifically include the following modules:
  • a display module 31, configured to display a writing interface through a display screen
  • An obtaining module 32 configured to obtain touch point information fed back through the touch frame when a touch object touches the surface of the display screen and moves, the touch object is controlled by the user;
  • the presentation module 33 is configured to present, on the writing interface, handwriting matching the movement state of the touch object by analyzing the information of each touch point.
  • Embodiment 3 of the present application provides a device for presenting handwriting.
  • the executive body of the device, the interactive tablet is equipped with a high-precision touch frame on the hardware structure, and the configured high-precision touch frame can be realized by the method provided in this embodiment.
  • Functional optimization at the software application level Compared with the interactive tablet that is not optimized at the software level in the related art, the third embodiment integrates a handwriting display device on the interactive tablet, which can ensure that the handwriting presented on the writing interface The handwriting can better match the moving state of the user's moving touch object during the writing process, so as to better present the handwriting with the user's writing style, and then realize the improvement of the handwriting rendering effect on the interactive tablet.
  • the moving state is reflected by the pressure sensitivity value and moving direction of the touch object acting on the display screen.
  • the acquisition module 32 can specifically be used for:
  • each touch signal is identified through the hardware circuit in the touch frame, and the touch signal is generated when the touch object moves on the display screen;
  • one touch point information corresponds to one touch point
  • the touch point information includes: touch point coordinates and touch point pressure sensitivity.
  • the device also includes an input processing module,
  • the input processing module may be configured to process each touch point information after obtaining the touch point information fed back by the touch frame, so that each touch point information has a unified unit format and data structure.
  • the specific implementation of the input processing module processing the touch point information may include:
  • the unit of each data information in the touch point information is converted into a unified set unit format
  • the data structure corresponding to the set unit format is used to record the touch point information.
  • presentation module 33 may specifically include:
  • the first determination unit is configured to determine the movement state information of the touch point generated by the touch object during the movement process by analyzing the information of each touch point;
  • the second determining unit is configured to form a handwriting outline matching the moving state of the touch object by analyzing the moving state information
  • the handwriting presenting unit is configured to fill the outline of the handwriting and present it on the writing interface.
  • the first determining unit can be specifically used for:
  • the first determining unit can also be used for:
  • the preprocessing subunit is used to obtain a preset handwriting thickness value, and use half of the handwriting thickness value as the reference margin value of each touch point in the four directions of up, down, left and right;
  • the coefficient determining subunit is configured to determine the second thickness scaling coefficient corresponding to each of the touch points in the four directions of up, down, left and right by analyzing the information of each of the touch points;
  • the margin determination subunit is configured to, for each touch point, adjust the upper, lower, left and the reference margin values in the four right directions are corrected to obtain the corrected second margin values;
  • the information recording subunit is configured to record each of the second margin values as the moving state information of the touch point.
  • the touch point information also includes: the generation time of the touch point and the moving direction of the touch point;
  • coefficient determination subunit can specifically be used for:
  • For each touch point obtain the generation time of the touch point from the corresponding touch point information, and search for each target touch point included in the set time period before the generation time;
  • the touch point and the touch point coordinates and moving directions of each of the target touch points determine the touch offset information corresponding to the touch point, and the touch point in the four directions of up, down, left and right the target distance value;
  • each of the target distance values and the touch pressure sensitivity of the touch point determine the second coarse and fine scaling coefficients of the touch point in the four directions of up, down, left and right respectively.
  • the touch point and the touch point coordinates and moving direction of each of the target touch points determine the touch offset information corresponding to the touch point, and determine whether the touch point is on the top, bottom, left, and Target distance values in the four right directions, including:
  • the positive and negative values of the coordinate difference are determined based on the set horizontal and vertical positive directions.
  • each of the target distance values and the touch pressure sensitivity of the touch point respectively determine the second position of the touch point in the four directions of up, down, left and right.
  • Coarse and fine scaling factors which can specifically include:
  • the product of the scaling factor to be corrected and the touch pressure sensitivity is used as the second thickness scaling factor in the direction.
  • the second determining unit may specifically be used for:
  • each of the current margin values combined with the touch point coordinates of the touch point determine the stroke point corresponding to the touch point in the four directions of up, down, left and right;
  • the first setting rule is that the area of the formed closed area is the largest.
  • the second determining unit may specifically include:
  • the first determination subunit is configured to, for each touch point, extract the current margin value of the touch point in the four directions of up, down, left and right from the moving state information, the current margin value is the first margin value or the second margin value;
  • the second determining subunit is configured to determine the asymmetric elliptical area corresponding to the touch point according to each of the current margin values combined with the touch point coordinates of the touch point, and determine the tangent point of the asymmetric elliptical area;
  • the third determining subunit is configured to connect the asymmetrical elliptical regions through corresponding tangent points along a tangential direction to form a second handwriting outline with closed regions.
  • the second determining subunit may specifically be used for:
  • An area within the quadrant interval in the ellipse is determined as an effective area.
  • the second determining unit may specifically include:
  • the fourth determination subunit is configured to determine, for each touch point, the four directions of the touch point in the upper left, lower right, upper right, and lower left directions of the touch point using a preset margin value determination strategy. effective margin value;
  • the fifth determining subunit is used to determine the first stroke point corresponding to the touch point in the four directions of upper left, lower right, upper right and lower left according to each effective margin value;
  • the sixth determination subunit is used to determine the second stroke point corresponding to the touch point in the four directions of up, down, left and right according to the corresponding movement state information;
  • the seventh determining subunit is configured to form a third handwriting outline based on the first stroke points and the second stroke points corresponding to the touch points.
  • the seventh determination subunit can be specifically used for:
  • Each of the circumscribed octagons forms an approximate tangent line through the corresponding approximate tangent point, and connects them along the approximate tangent direction respectively to form a third handwriting outline with a closed area.
  • FIG. 4 is a schematic structural diagram of an interactive panel provided in Embodiment 4 of the present application.
  • the interactive panel includes: a processor 40 , a memory 41 , a display screen 42 , an input device 43 , an output device 44 , and a touch frame 45 .
  • the number of processors 40 in the interactive panel may be one or more, and one processor 40 is taken as an example in FIG. 4 .
  • the number of memory 41 in the interactive panel can be one or more, and one memory 41 is taken as an example in FIG. 4 .
  • the processor 40 , memory 41 , display screen 42 , input device 43 , output device 44 and touch frame 45 of the interactive panel can be connected through a bus or in other ways. In FIG. 4 , connection through a bus is taken as an example.
  • the memory 41 can be used to store software programs, computer-executable programs and modules, such as the program instructions/modules corresponding to the interactive panel described in any embodiment of the present application (for example, in the handwriting display device)
  • the memory 41 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required by a function; the data storage area can store data created according to the use of the device, etc.
  • the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 41 may further include memory located remotely relative to the processor 40, and these remote memories may be connected to the device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the display screen 42 covers the touch frame 45 and is used for displaying interactive content. Generally speaking, the display screen 42 is used to display data according to the instructions of the processor 40, and is also used to receive touch operations acting on the display screen 42 , and send corresponding signals to the processor 40 or other devices.
  • the input device 43 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the display device, and can also be a camera for capturing images and a sound pickup device for capturing audio data.
  • the output device 44 may include an audio device such as a speaker. It should be noted that the specific composition of the input device 43 and the output device 44 can be set according to actual conditions.
  • the touch frame 45 has a touch precision that reaches a set precision range, and is used to collect touch point information generated when a touch object performs a touch operation.
  • the processor 40 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 41 , that is, realizes the above-mentioned handwriting presentation method.
  • the interactive panel provided above can be used to implement the method for presenting handwriting provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • Embodiment 5 of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a handwriting presentation method when executed by a computer processor, including:
  • the handwriting matching the movement state of the touch object is presented on the writing interface.
  • the storage medium containing computer-executable instructions provided by the embodiments of the present application the computer-executable instructions are not limited to the operation of the method for presenting handwriting as described above, and can also execute the writing method provided by any embodiment of the present application. Relevant operations in the handwriting presentation method, and have corresponding functions and beneficial effects.
  • each part of the present application may be realized by hardware, software, firmware or a combination thereof.
  • various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinatorial logic gates, Programmable Gate Array (PGA), Field-Programmable Gate Array (FPGA), etc.

Landscapes

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

Abstract

一种书写笔迹的呈现方法、装置、交互平板及存储介质。交互平板所配备触摸框的触摸精度达到设定精度范围,方法包括:通过显示屏显示书写界面;在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。利用该方法,保证了呈现在书写界面上的书写笔迹能够与用户在书写过程中移动触摸物的移动状态更加匹配,从而更好的呈现出带有用户书写风格的笔迹,进而实现了交互平板上书写笔迹呈现效果的提升。

Description

书写笔迹的呈现方法、装置、交互平板及存储介质
本申请要求在2021年5月20日提交中国专利局、申请号为202110553073.3的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备的触摸书写技术领域,尤其涉及书写笔迹的呈现方法、装置、交互平板及存储介质。
背景技术
触摸框是交互平板的一个重要硬件组成,主要用来收集用户在交互平板上进行触摸操作后所产生触摸信号的触摸信息。市面上流通的交互平板内采用的触摸框多为触摸精度不够高,如低于一定精度范围的非高精度触摸框,该类非高精度触摸框存在的缺陷主要表现在:难以进行书写笔类型的判断;难以保证同一书写笔在书写中生成的触摸面积相同;难以判定触摸介质为书写笔还是手指或者橡皮檫;也难以给出触摸旋转角度的判定。
在实现本申请的过程中,发明人发现当前存在如下缺陷:交互平板的软件层面无法最大化利用触摸框反馈的触摸信息,从而导致交互平板上与触摸有关的性能效果(如书写时笔迹的呈现效果)并没有明显提升。
发明内容
本申请实施例提供了一种书写笔迹的呈现方法、装置、交互平板及存储介质,实现了交互平板上书写笔迹呈现效果的提升。
第一方面,本申请实施例提供了一种书写笔迹的呈现方法,应用于交互平板,所述交互平板所配备触摸框的触摸精度达到设定精度范围,所述方法包括:
通过显示屏显示书写界面;
在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触 摸点信息,所述触摸物由用户操控;
通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。
进一步地,所述移动状态通过所述触摸物作用在显示屏上的压感值大小以及移动方向来体现。
进一步地,所述获得通过所述触摸框反馈的触摸点信息,包括:
通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;
获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息,
其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标以及触摸点压感。
进一步地,在获得通过所述触摸框反馈的触摸点信息之后,还包括:
处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
进一步地,所述处理各所述触摸点信息,包括:
根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信息中各项数据信息的单位转换为统一的设定单位格式;
采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
进一步地,通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹,包括:
通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息;
通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓;
填充所述笔迹轮廓并呈现在所述书写界面上。
进一步地,所述通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息,包括:
获取预先设定的笔迹粗细值;
针对每个触摸点,提取所对应触摸点信息中的触摸点压感;
查找预设的压感系数关联表,确定所述触摸点压感对应的第一粗细缩放系数,并确定所述笔迹粗细值与所述第一粗细缩放系数的乘积值;
将所述乘积值分别作为所述触摸点在上、下、左以及右四个方向上的第一边距值,并将各所述第一边距值记为所述触摸点的移动状态信息。
进一步地,所述通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息,包括:
获取预先设定的笔迹粗细值,将所述笔迹粗细值的一半作为各所述触摸点在上、下、左以及右四个方向上的基准边距值;
通过对各所述触摸点信息的分析,确定各所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数;
针对每个触摸点,根据所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数,对所述触摸点在上、下、左以及右四个方向上的基准边距值进行校正,获得校正后的各第二边距值;
将各所述第二边距值记为所述触摸点的移动状态信息。
进一步地,所述触摸点信息还包括:触摸点的生成时间和触摸点的移动方向;
所述通过对各所述触摸点信息的分析,确定各所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数,包括:
针对每个触摸点,从相应的触摸点信息获取所述触摸点的生成时间,并查找所述生成时间之前设定时间段内包括的各目标触摸点;
根据所述触摸点、以及各所述目标触摸点的触摸点坐标及移动方向,确定所述触摸点对应的触摸偏移信息,以及所述触摸点在上、下、左以及右四个方 向上的目标距离值;
根据所述触摸偏移信息、各所述目标距离值以及所述触摸点的触摸压感,分别确定所述触摸点在上、下、左以及右四个方向上的第二粗细缩放系数。
进一步地,所述根据所述触摸点及各所述目标触摸点的触摸点坐标及移动方向,确定所述触摸点对应的触摸偏移值,以及所述触摸点在上、下、左以及右四个方向上的目标距离值,包括:
从各所述目标触摸点中选定核心触摸点,确定所述核心触摸点与所述触摸点的横向偏移距离和纵向偏移距离,其中,所述核心触摸点的生成时间与所述触摸点的生成时间的时间差值最大;
从所述目标触摸点中筛选移动方向与所述触摸点的移动方向不同的滤除触摸点,并基于所述滤除触摸点的触摸点坐标修正所述横向偏移距离和纵向偏移距离;
基于修正后的横向偏移距离和纵向偏移距离构成所述触摸点的触摸偏移信息;
确定所述触摸点在上、下、左以及右四个方向上相对各所述目标触摸点的坐标差值,并将最大坐标差值确定为所述触摸点在上、下、左以及右四个方向上的目标距离值;
其中,所述坐标差值基于设定的横纵正方向确定正负。
进一步地,所述根据所述触摸偏移信息、各所述目标距离值以及所述触摸点的触摸压感,分别确定所述触摸点在上、下、左以及右四个方向上的第二粗细缩放系数,包括:
针对每个方向,提取所述触摸偏移信息中相应方向的偏移距离,并记为目标偏移距离;
确定所述方向上的目标距离值与所述目标偏移距离的差值,并将所述差值与设定触摸常数的商记为待修正缩放系数;
将所述待修正缩放系数与所述触摸压感的乘积作为所述方向上的第二粗细 缩放系数。
进一步地,所述通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓,包括:
针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值;
根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点在上、下、左以及右四个方向上对应的笔廓点;
汇总各所述触摸点对应的笔廓点,形成笔廓点集合,对所述笔廓点集合中各笔廓点按照第一设定规则进行连接,构成存在封闭区域的第一笔迹轮廓;
其中,所述第一设定规则为所形成封闭区域的区域面积最大。
进一步地,所述通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓,包括:
针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值;
根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点对应的非对称椭圆区域,并确定所述非对称椭圆区域的切点;
将各所述非对称椭圆区域通过相应的切点沿切线方向进行连接,构成存在封闭区域的第二笔迹轮廓。
进一步地,所述根据各所述边距值结合所述触摸点的触摸点坐标,确定所述触摸点对应的非对称椭圆区域,包括:
沿所述触摸点构建虚拟坐标系,分别对上、下、左和右四个方向对应的边距值进行两两分组,获得四个分组;
针对每个分组,基于所述分组中包括的两个边距值以及所述触摸点坐标,结合椭圆构建公式,确定相应的椭圆,并从所述椭圆中提取有效区域;
汇总提取出的四个有效区域,拼接构成所述非对称椭圆区域。
进一步地,所述从所述椭圆中提取有效区域,包括:
确定所述椭圆构建时所关联两个定值在所述虚拟坐标系中对应的象限区间;
将所述椭圆中处于所述象限区间的区域确定为有效区域。
进一步地,通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓,包括:
针对每个触摸点,采用预设的边距值确定策略分别确定所述触摸点在所述触摸点在上左、下右、上右以及下左四个方向上的有效边距值;
根据各所述有效边距值确定所述触摸点在上左、下右、上右以及下左四个方向上对应的第一笔廓点;
根据相应的移动状态信息确定所述触摸点在上、下、左以及右四个方向上对应的第二笔廓点;
基于所述各所述触摸点对应的第一笔廓点以及第二笔廓点,构成第三笔迹轮廓。
进一步地,所述基于所述各所述触摸点对应的第一笔廓点以及第二笔廓点,构成第三笔迹轮廓,包括:
针对每个触摸点,根据所述触摸点对应的各所述第一笔廓点以及第二笔廓点,构成所述触摸点的外接八边形;
确定所述外接八边形的近似切点;
将各所述外接八边形通过相应的近似切点形成近似切线,并分别沿近似切线方向进行连接,构成存在封闭区域的第三笔迹轮廓。
第二方面,本申请实施例提供了一种书写笔迹的呈现装置,配置于交互平板,所述交互平板所配备触摸框的触摸精度达到设定精度范围,所述装置包括:
显示模块,用于通过显示屏显示书写界面;
获取模块,用于在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
呈现模块,用于通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。
第三方面,本申请实施例还提供一种交互平板,包括:
触摸框,所具备的触摸精度达到设定精度范围,用于收集触摸物进行触摸操作时产生的触摸点信息;
显示屏,与所述触摸框相结合,构成触摸屏,用于进行交互内容的显示;
一个或多个处理器;存储装置,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本申请第一方面提供的方法。
第四方面,本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的方法。
上述提供的书写笔迹的呈现方法、装置、交互平板及存储介质。所提出的方法可以由交互平板执行,该交互平板上所配备触摸框的触摸精度达到设定精度范围;其中该方法首先可以通过显示屏显示书写界面;之后在触摸物触碰显示屏的表面并移动时,就能够获得通过触摸框反馈的触摸点信息;最终通过对各触摸点信息的分析,就可以在书写界面上呈现与触摸物的移动状态相匹配的书写笔迹。本实施例上述技术方案,对于在硬件结构上配置了高精度触摸框的交互平板,能够将所配置的高精度触摸框通过本实施例所提供的方法实现软件应用层面上的功能优化,相比于相关技术中的未在软件层面进行优化的交互平板,本实施例所提供的方法保证了呈现在书写界面上的书写笔迹更能够与用户在书写过程中移动触摸物的移动状态相匹配,从而更好的呈现出带有用户书写风格的笔迹,进而实现了交互平板上书写笔迹呈现效果的提升。
附图说明
图1给出了本申请实施一提供的一种书写笔迹的呈现方法的流程示意图;
图1a为本申请实施例一所提供一种书写笔迹的呈现方法中触摸框响应触摸物的效果展示图;
图1b给出了相关技术中的笔迹呈现方法中的一种常规呈现的效果展示图;
图1c给出了本申请实施例一所提供书写笔迹呈现方法的效果展示图;
图2给出了本申请实施例二提供的一种书写笔迹的呈现方法的流程示意图;
图2a给出了本申请实施例二所提供书写笔迹呈现方法中移动状态信息确定的其中一种实现流程图;
图2b给出了本申请实施例二中所确定移动状态信息的效果展示图;
图2c给出了本申请实施例二所提供书写笔迹呈现方法中笔迹轮廓确定的其中一种实现流程图;
图2d给出了本申请实施例二所提供书写笔迹的呈现方法中笔迹轮廓确定的效果展示图;
图2e给出了本申请实施例二所提供书写笔迹呈现方法中移动状态信息确定的另一种实现流程图;
图2f给出了本申请实施例二所提供书写笔迹呈现方法中笔迹轮廓确定的另一种实现流程图;
图2g给出了本申请实施例二中所确定非对称椭圆区域的效果展示图;
图2h给出了本申请实施例二中所确定第二笔迹轮廓的效果展示图;
图2i给出了本申请实施例二所提供书写笔迹呈现方法中笔迹轮廓确定的又一种实现流程图;
图2j给出了本申请实施例二中所确定第三笔迹轮廓的效果展示图;
图2k给出了采用本申请实施例二所提供方法呈现的具备用户书写风格特效的笔迹展示图;
图3为本申请实施例三提供的一种书写笔迹呈现装置的结构框图;
图4为本申请实施例四提供的一种交互平板的结构示意图。
具体实施方式
下面将结合附图对本申请实施例方式作详细描述。
下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
在本申请的描述中,需要理解的是,术语“第一”、“第二”、“第三”等仅用于用于区别类似的对象,而不必用于描述特定的顺序或先后次序,也不能理解为指示或暗示相对重要性。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
在实际应用中,交互平板的硬件部分由显示屏、智能处理系统等部分所构成,由整体结构件结合到一起,同时也由专用的软件系统作为支撑。
其中,显示屏具体可以包括发光二极管(Light Emitting Diode,LED)显示屏、有机电激光显示(Organic Light-Emitting Diode,OLED)显示屏以及液晶显示屏(Liquid Crystal Display,LCD)显示屏等。通过在显示屏表面的两侧设置光学触控传感器,可以构成触摸框,形成触控显示屏。其中,构成触摸框的光学触控传感器可在显示屏的表面使用光信号扫描触摸物,如用户的手指、触控笔等。可以理解的是,为了保护显示屏不被触摸物划伤,在显示屏的表面会设置盖板玻璃,因此,本说明书的实施例中,显示屏的表面,指的是显示屏的盖板玻璃表面。
当触摸物触摸显示屏、触发了显示屏上某个界面时,执行定位等操作,触摸框可以响应上述触摸操作,并将相应的触摸操作信息传递给应用层面的智能处理系统,从而通过智能处理系统实现各种交互应用。
以其中一种构成触摸框的光学触控传感器为例,站在技术原理角度对触摸框进行说明:
具体的,光学触控传感器可以包括红外发射器与红外接收器,红外发射器用于发射红外信号,红外接收器用于接收红外信号,利用不同方向上密布的红外线信号形成光束栅格来定位触摸点。显示屏安装带电路板的边框,作用是在显示屏的周围排布红外发射器和红外接收器,形成横竖交叉的光束栅格触摸框。
在显示屏具备上述触摸框时,当触控物体遮断了红外信号,就会在相应红外接收器处引起光测量值的减弱,因而,可以判断出触摸点在屏幕的位置。
具体而言,红外发射器安装在显示屏的边框的第一侧,红外接收器安装在显示屏的边框的第二侧,第一侧与第二侧位置相对,即红外接收器在红外发射器的扫描范围内,使得红外发射器所发射的红外信号由红外接收器所接收。
针对不同的业务需求,显示屏的形状有所不同,如矩形、六边形、圆形等,边框的形状也随显示屏的形状而有所不同,如矩形、六边形、圆形等,针对不同形状的边框,各个红外模组中红外发射器、红外接收器的设置也有所不同。
一般的,交互平板上配置的常规触摸框,在响应触摸物体的触控信号时,所具备的触摸精度往往处于常规范围内,且可将这类常规触摸框记为非高精度触摸框。而对于触摸精度处于常规范围的非高精度触摸框而言,可能难以识别出触摸物在显示屏上的触摸面积大小,由此在触摸书写模式下,难以很好的判断用户采用了什么类型的触摸物进行书写,或者,也难以判断用户采用什么触摸介质(手指、书写笔)进行触摸。同时,非高精度触摸框也难以很好保证同一类型触摸物在触摸过程中呈现展现相同的触摸面积。
本实施例中的交互平板,在其硬件配置上,其所采用的触摸框与触摸精度处于常规范围内的常规触摸框相比,可选的采用了具备高触摸精度的高精度触摸框,所谓高触摸精度,可理解为触摸精度已经达到设定精度范围,其中,设定精度范围的精度限定高于常规精度范围。通过本实施例所采用的该种触摸框,其可以向上层应用层面提供更精细的触摸信息,如,可以提供触摸物的触摸面积、更准确的触摸点坐标,触摸物在触控过程中的旋转角度等。
同时,对于交互白板中的智能处理系统,其可以包括主机处理器,主机处 理器属于交互平板的处理器,主机处理器内置的软件可实现不同的功能应用,并借由显示屏显示画面、制造出生动的影音效果。
其中,主机处理器属于性能较高的运算模块。
例如,该主机处理器可以为Android(安卓)模块,即可安装Android(安卓)系统,配置CPU(Central Processing Unit,中央处理器)、GPU(Graphics Processing Unit,图形处理器)、RAM(random access memory,随机存取存储器)和ROM(Read-Only Memory,只读存储器)等组件,例如,针对Android7.0版本,CPU为双核A72与四核A53,GPU为Mali T860,RAM为4GB、ROM为32GB,等等。
又例如,该主机处理器可以为PC(personal computer,个人电脑)模块,配置有CPU、GPU、内存、硬盘等组件,例如,针对为插拔式Intel Core系列模块化电脑,CPU为Intel Core i5/i7,GPU为核显Intel HD Graphics,内存为DDR4 8G/16G,硬盘为128G/256G。
实施例一
图1给出了本申请实施一提供的一种书写笔迹的呈现方法的流程示意图。本实施例可适用于在书写界面进行书写笔迹呈现的情况。该方法可以由书写笔迹的呈现装置执行,该书写笔迹的呈现装置可以由软件和/或硬件实现,可配置在交互平板中,尤其配置在交互平板的处理器中,该处理器可以为智能处理系统中的主机处理器。同时,在交互平板中配备的触摸框,所具备的触摸精度达到设定精度范围;此外,触摸框也与显示屏电连接。
如图1所示,本申请实施例一提供的一种书写笔迹的呈现方法,具体包括如下步骤:
S101、通过显示屏显示书写界面。
可以知道的是,本实施例所提供方法的执行主体,即交互平板中还设置有图形处理器(Graphics Processing Unit,GPU),可提供视频处理功能,具体而言,通过GPU可以接收来自主机处理器的信息,并置入帧存储器,以及按分区驱动 方式针对视频信号生成显示屏所需的串行显示数据和扫描控制时序。在上述操作的基础上,交互平板上设置的显示屏就可以按照串行显示数据和扫描控制时序进行帧数据信息播放,从而在显示屏上显示各种画面。
在本实施例中,所述显示界面可认为是用户通过触发进入书写模式后在显示屏上所显示的界面。具体的,在书写模式中,可在显示屏上显示一界面,用户可以选择笔迹的属性参数,如笔迹颜色以及笔迹粗细值等,并可以按照该配置参数在该界面上呈现书写笔迹。
一般的,该书写界面可以为独立的界面,示例性地,交互平板提供电子白板,用户在交互平板中触发显示该电子白板的控制操作,交互平板接收该控制操作,显示电子白板,作为书写界面。此时,用户可在电子白板上触发触控操作,该触控操作以轨迹的形式表示,因此,通过交互平板上层应用对所产生轨迹的分析,可在该交互平板的屏幕上显示与该轨迹相对应的笔迹,其中,对该电子白板的控制操作包括但不限于触控操作、键盘操作、鼠标操作、物理按键操作。
此外,该书写界面也可以为具有背景的界面,示例性地,交互平板显示本地的课件、显示传屏设备(USB Dongle,USB软件保护器)传输的、属于源设备(如笔记本电脑等)的屏幕画面等数据。用户在交互平板中触发批注操作,交互平板接收该批注操作,冻结课件、屏幕画面等数据,使之成为背景,即维持显示课件、屏幕画面等数据的当前帧画面,并在课件、屏幕画面等数据之上生成蒙层,从而作为书写界面。此时,用户可在交互平板的屏幕上触发触控操作,该触控操作以轨迹的形式表示,交互平板可在该蒙层上显示与该触控轨迹相应的笔迹。
其中,所谓课件,可以指是根据教学的要求,经过教学目标确定,教学内容和任务分析,教学活动结构及界面设计等环节,而加以制作的课程文档,例如,该课件可以为Word文档、PPT(PowerPoint,演示文稿)、课件演示白板文档等公用格式的文件,也可以为文字、表格、图片等元素组合而成的自定义页 面,本实施例对此不加以限制。
S102、在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控。
在本实施例中,所述触摸物具体可以是用户的手指、主动触控笔或者被动触控笔等,用户可以操控触摸物在交互平板的显示屏表面上移动,其中,触摸物移动时所呈现的移动状态可用于书写笔迹的呈现。
通过本申请实施例中的上述描述,可以知道交互平板还配置了与显示屏相结合的触摸框,其中,触摸框具体可以是光学触摸传感器构成的嵌套在显示屏边缘的边框。本步骤中,触摸框可以基于所包含的光学触控传感器在触摸物在显示屏上移动时产生触控信号,并通过对触控信号的响应识别出相应的触摸点信息。
具体的,图1a为本申请实施例一所提供一种书写笔迹的呈现方法中触摸框响应触摸物的效果展示图。如图1a所示,交互平板的显示屏110的边缘两侧安装有一个或者多个光学触控传感器120,构成了触摸框。用户所操控的触摸物(如手指)在显示屏110上的移动状态可以采用手指状态131至135来呈现。
接上述描述,在交互平板启动、运行期间,处理器可启动光学触控传感器120,光学触控传感器120在交互平板的显示屏表面扫描光信号,根据光信号的传输情况检测显示屏表面是否出现触摸物,在检测到触摸物时,在该触摸物的移动过程中实时产生相应的触控信号。同时,触摸框可以对所产生的触控信号进行响应,从而向交互平板的上层(如智能处理系统中的主处理器)反馈响应后识别出的触摸点数据,本实施例将触摸点数据记为触摸点信息。
S103、通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。
在本实施例中,考虑到交互平板上所配置触摸框相对触摸物的触摸精度达到了设定精度范围,可认为本实施例所采用的触摸框为高精度触摸框。上述步骤中通过该触摸框反馈的触摸点信息在精度上以及信息详细程度上都优于常规 触摸框反馈的触摸点信息。示例性的,所述触摸点信息中至少包括了触摸点的坐标信息以及触摸点的压感信息等。
在本实施例中,站在用户角度来分析,用户触摸进入书写模式,可知用户的书写意愿为进行文字书写,或者通过呈现的笔迹进行重要内容的标记和标识。当用户进行文字书写时,较好的书写体验就是书写笔迹能够按照用户在纸质上书写时的书写风格进行呈现,如呈现用户特有的笔锋等,或者,用户也更希望能够呈现更平滑连贯的书写笔迹来作为标记物。
在交互平板上,本实施例如果想实现用户书写笔迹的个性化呈现,就需要能够获取到表征用户个性化特点的数据信息,之后便可通过对数据信息的处理,呈现满足用户需求的效果。可以知道的是,用户的书写过程就相当于用户控制触摸物在显示屏的表面进行移动的过程,而用户的个性化风格也主要在对触摸物的移动控制中体现。
因此,不同的用户控制触摸物移动时,触摸物反映到显示屏上的压感以及移动方向均存在个体差异,即,不同的用户所控制的触摸物,在显示屏上的移动状态并不相同。而通过本实施例交互平板中配置的高精度触摸框,可以在其所反馈的触摸点信息中反映出触摸物的不同移动状态,进一步地,所述移动状态通过所述触摸物作用在显示屏上的压感值大小以及移动方向来体现,其压感值大小以及移动方向均可从触摸点信息中提取获的。
通过本步骤对触摸点信息的分析,就可以在书写界面中呈现出与触摸物的移动状态相匹配的书写笔迹来。如,所呈现的书写笔迹为文字时,该文字能够展现用户的书写风格;所呈现的书写笔迹为标记线等标识时,该标记线能够更平滑精准的对用户想要标记的内容进行标记。
在本实施例中,对于通过触摸点信息的分析呈现用户个性化的书写笔迹的过程,本步骤首先也可以通过移动过程中的触摸点信息先确定出书写笔迹确定所需的各触摸点的位置,之后可以分析基于各触摸点进行笔迹轮廓呈现时相对各触摸点发散出的待连接点、待连接线以及它们之间所需的连接方式,最终可 以基于分析出的上述信息,呈现出与用户操控触摸物移动相匹配的书写笔迹。
示例性的,图1b给出了相关技术中的笔迹呈现方法中的一种常规呈现的效果展示图;图1c给出了本申请实施例一所提供书写笔迹呈现方法的效果展示图。可以发现,图1b以及图1c所呈现的书写笔迹主要是用户书写的文字。如图1b所示,采用常规的笔迹呈现方式,所呈现的文字仅是常规的笔迹呈现,体现不出用户的书写特点。如图1c所示,采用本申请实施例的笔迹呈现方式,所呈现的文字可以将用户书写时的潦草或工整,圆润或笔锋均个性化展示出来。
本申请实施例一提供的一种书写笔迹呈现方法,可以由交互平板执行,该交互平板上所配备触摸框的触摸精度达到设定精度范围;其中该方法首先可以通过显示屏显示书写界面;之后在触摸物触碰显示屏的表面并移动时,就能够获得通过触摸框反馈的触摸点信息;最终通过对各触摸点信息的分析,就可以在书写界面上呈现与触摸物的移动状态相匹配的书写笔迹。该方法的执行主体交互平板在硬件结构上配置了高精度触摸框,能够将所配置的高精度触摸框通过本实施例所提供的方法实现软件应用层面上的功能优化,相比于相关技术中的未在软件层面进行优化的交互平板,本实施例一提供的方法保证了呈现在书写界面上的书写笔迹更能够与用户在书写过程中移动触摸物的移动状态相匹配,从而更好的呈现出带有用户书写风格的笔迹,进而实现了交互平板上书写笔迹呈现效果的提升。
作为本申请实施例一的一个可选实施例,本可选实施例可以在获得通过所述触摸框反馈的触摸点信息之后还优化包括:处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
需要说明的是,本实施例对于书写笔迹的呈现操作主要由交互平板上层的智能处理系统,具体可以由主机处理器来执行,而书写笔迹呈现所需的触摸点信息主要有交互平板硬件层面的触摸框来反馈,本实施例可以将触摸框反馈的触摸点信息看作上层所需的输入信息。
对于交互平板上配置的触摸框,若来自不同的生产商,其触摸框具备的执 行参数也存在不同,由此很可能导致触摸框反馈的触摸信息在表示形式上存在差异,影响书写笔迹呈现方法的正常执行。为保证书写笔迹呈现的执行流程中数据信息的统一化,在上述实施例一的基础上增设了本可选实施例提出的信息处理操作。
示例性的,本可选实施例可以分析触摸框的生产信息以及批次信息,确定触摸框所反馈触摸点信息具备的原始信息格式,之后可以对触摸点信息的单位格式以及数据结构进行处理,保证输入给交互平板上层的数据具备统一的信息格式。进行处理后的触摸点信息,除去了与触摸框生产商或批次相关的单位格式,如,原始信息格式的触摸点信息中所反馈的触摸面积单位基本是按照触摸框上被遮挡的光学触发传感器的数量作为触摸宽度单位和触摸高度单位,本可选实施例可以将其转换为统一的软件内的抽象单位,如像素单位。
在上述优化的基础上,本实施例可以将处理各所述触摸点信息具体化为:
根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信息中各项数据信息的单位转换为统一的设定单位格式;
采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
本可选实施例的具体实现中,为了获得从触摸框内部获得比较精准的数据信息,就需要了解交互平板当前所配备触摸框的尺寸大小以及显示屏的屏幕分辨信息等,而这些信息可以分别通过和触摸框硬件通讯或者从智能处理系统中读取的方式来获取。
对于触摸点信息的具体处理项,本可选实施例可以将触摸框以原信息格式标识的触摸点坐标、触摸点的高度和宽度,或者触摸时所形成几何图形的顶点等数据信息统一转换为软件层面较抽象的单位值,如像素表示的坐标点,宽度或高度值等。
同样的,高精度触摸框的另一个优势在于其还可以捕获到触摸物在触摸过程中发生的旋转操作,并可确定出触摸旋转的旋转角度,此时,通过本可选实施例的处理方式,还可以将最初获得的旋转角度按照统一的弧度单位进行处理。
本申请实施例一的上述可选实施例,具体优化增加了触摸框所反馈触摸点信息的处理操作,通过该处理操作,可以实现触摸点信息的统一化输入,避免了因触摸框自身所具备的不同属性参数信息而造成的触摸点信息在后续执行过程中不兼容的情况,有效提高了书写笔迹呈现的执行效率。
实施例二
图2给出了本申请实施例二提供的一种书写笔迹的呈现方法的流程示意图,本实施例以上述实施例为基础进行优化,在本实施例中,可以将获得通过所述触摸框反馈的触摸点信息具体优化为:通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;获得所述触摸框通过人机交互(Human Interface Device,HID)标准协议针对各所述触控信号反馈的触摸点信息,其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标以及触摸点压感。
同时,本实施例还可以将通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹具体化为:通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息;通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓;填充所述笔迹轮廓并呈现在所述书写界面上。
如图2所示,本申请实施例二提供的一种书写笔迹的呈现方法,具体包括如下操作:
S201、通过显示屏显示书写界面。
示例性的,可以由用户触发书写按钮进入书写界面,也可以是在一些关联场景(如课件展示场景)下触发编辑功能触发进入编辑模式下的书写界面。
S202、在触摸物触碰所述显示屏的表面并移动时,通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生。
具体的,可将光学触控传感器看作构成触摸框的核心组件。在交互平板启 动、运行以及控制光学触控传感器上电后,通过设置在显示屏边缘光学触控传感器(如设置于一侧的红外发射器,以及设置于另一侧的红外接收器)可以实时利用不同方向上密布的红外线信号所形成光束栅格遮挡与否,来检测显示屏表面是否存在触摸物。如果存在触摸物,则可在触摸物遮断了正常发射的红外信号时,在相应位置处产生对应的触控信号;之后,触摸框中设置的硬件电路可以通过对触控信号进行识别,如通过对触摸信号所具备高低电平的识别,来确定以硬件层面的数据表征的该触控信号所处位置的坐标信息,触摸物遮挡灌输栅格时对应的宽度信息、高度信息,甚至触摸物的触摸面积信息以及旋转信息等。
可以理解的是,随着触摸物在显示屏的移动,可以相应生成一组触摸信号,而触摸框上的硬件电路可以有效识别出该组中的每个触摸信号的相关触摸信息,同时,还可以通过触摸物作用在触摸框硬件电路上的压力确定出触摸物在各触摸点的压感信息。
S203、获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息。
可以知道的是,考虑到触摸框为交互平板上的硬件结构,触摸框上硬件电路相对各触摸点识别出的触摸点信息难以直接输入给上层的软件处理模块,由此,可以通过本步骤采用专门的人机交互HID标准协议获得到转换处理后的在软件层面可读的触摸点信息,其转换处理的对象为在硬件层面识别的触摸点信息。
在基于本实施例实现的书写笔迹呈现中,触摸框所反馈的每个触摸点信息具体表征了触摸物所触发的每个触摸点,而所需的触摸点信息至少要包括触摸点坐标以及触摸点压感。具体的,触摸点坐标为触控的基础信息,触摸点压感则可以用来表征用户在操作触摸物移动时的触摸压力,可以通过此信息来间接体现用户的书写风格。
通过本实施例的上述步骤,可以在触摸物的移动过程中实时获得到触摸框 反馈的触摸点信息,由此,本实施例可以通过下述S204至S206实现书写界面上书写笔迹呈现。
S204、通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息。
在本实施例中,为了在书写界面上呈现与触摸物的移动状态相匹配的书写笔迹,可以先通过本步骤确定触摸物在移动过程中与其移动状态相关的信息,本实施例可以将触摸物的移动状态确定转化移动过程中所产生各触摸点的移动状态信息确定。
可以理解的是,触摸点的产生与触摸框对触摸物的感应有关,而触摸框对触摸物的感应中,可以通过触摸物对光速栅格的遮挡来生成触控信号,触摸框的硬件电路对触控信号进行响应,就可确定出该触控信号的在触摸框上对应的被遮挡位置,而所对应的被遮挡位置就可认为是触摸点的产生位置,在获得被遮挡位置的坐标后,相当于获得了触摸点的坐标信息。
而在触摸物的移动过程中,所产生的每个触摸点是离散的,为了基于离散的触摸点形成可呈现的书写笔迹,需要先确定触摸点之前能够建立关联的信息。一般的,这种关联信息可以是简单的进行相邻触摸点的连接,将连接后产生的线条作为书写笔迹中的其中一条轨迹。
然而,所呈现的书写笔迹预先设定有所显示笔迹的粗细或者颜色等属性信息,因此,仅简单连接触摸点来形成线条笔迹,并不能获得与用户相匹配的书写笔迹。对于笔迹的绘制,多采用贝塞尔曲线算法,即,通过将触摸点视为控制点,在两个触摸点中间加上虚拟点的方式作出平滑曲线,但是通过该算法难以对不同用户的笔迹进行个性化呈现,且笔迹的粗细也是均匀没有变化的。
在本实施例中,可以考虑以每个触摸点为中心来确定其在上下左右四个方向上的延伸距离,且触摸点在每个方向上的延伸距离可以是用户相对该触摸点所施加压感和移动方向的体现,具体也可以基于触摸点的移动方向及触摸压感来确定。
考虑到触摸物的移动状态与用户控制触摸物移动时的压感以及移动方向有关,由此,想要获得与用户书写风格相匹配的书写笔迹,可以先通过将触摸点在各个方向上的延伸距离作为表征触摸物移动状态的移动状态信息,可选的,本步骤可以将触摸点各方向的延伸距离记为触摸点在各方向的边距值,并统一看作触摸点对应的移动状态信息。
其中,触摸点在各方向所具备的边距值,可能是相同的数据值,也可能是不同的数据值,为便于区分,本实施例将数据值相同情况下的边距值记为第一边距值,将数值不同情况的边距值记为第二边距值。触摸点在各方向上的第一边距值以及第二边距值可以通过不同的确定方式来确定,且边距值的不同确定方式也直接体现了移动状态信息的不同确定方式。
示例性的,边距值可以是预先所设定笔迹粗细值与一个待确定系数的计算值,第一边距值的计算中,各方向所具备待确定系数的具体值可以相同;第二边距值的计算中,各方向所具备待确定系数的具体值可以不同。
对于移动状态信息的具体确定,作为本实施例二的第一可选实施例,图2a给出了本申请实施例二所提供书写笔迹呈现方法中移动状态信息确定的其中一种实现流程图。如图2a所示,本可选实施例进一步将通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息,具体化为下述步骤:
S2041、获取预先设定的笔迹粗细值。
在本实施例中,所述笔迹粗细值具体可认为是通过用户的触发进入书写模式后用户进行笔迹属性信息配置时预先设定的一个属性参数值,该笔迹粗细值相当于给定了所呈现书写笔迹的粗细基准。
下述S2042至S2044是相对单个触摸点的移动状态信息确定实现,每个触摸点的移动状态信息均可通过下述步骤来确定。
S2042、针对每个触摸点,提取所对应触摸点信息中的触摸点压感。
其中,本步骤可以直接提取出触摸点信息中包含的触摸点压感。
S2043、查找预设的压感系数关联表,确定所述触摸点压感对应的第一粗细缩放系数,并确定所述笔迹粗细值与所述第一粗细缩放系数的乘积值。
在本实施例中,可预先建立触摸压感与粗细缩放系数的关联,可选的,所述粗细缩放系数的取值范围为(0,1),不同大小的触摸压感值可以在(0,1)范围内确定一个相对应的粗细缩放系数值,形成压感系数关联表。
由此,本步骤中,在获取到触摸点信息中的触摸点压感后,可以从压感系数关联表中查找到相匹配的粗细缩放系数。为便于区分,本实施例将该粗细缩放系数记为第一粗细缩放系数。此外,粗细缩放系数与笔迹粗细值的结合,可用来实现触摸点在书写界面上所呈现实际粗细的确定。本步骤可选将笔迹粗细值与第一粗细缩放系数的乘积值,看作在书写界面上呈现实际粗细所依赖的基准值。
S2044、将所述乘积值分别作为所述触摸点在上、下、左以及右四个方向上的第一边距值,并将各所述第一边距值记为所述触摸点的移动状态信息。
在本实施例中,上述确定的乘积值,可看作待呈现的笔迹以该触摸点为交点向四周延伸的延伸距离,向四周的延伸可选为上下左右四个方向上的延伸,且触摸点上下左右四个方向上的延伸距离可看作触摸点在上下左右四个方向的边距值,本实施例记为第一边距值,而汇总后的四个边距值又可记为触摸点的移动状态信息。
示例性的,图2b给出了本申请实施例二中所确定移动状态信息的效果展示图。如图2b所示,点A、B、C以及D可作为触摸物移动过程中产生的触摸点,每个触摸点,以每个触摸点为交点在横向和纵向可分别形成两条相交线,由此实现了相对于触摸点向上下左右四个方向的延伸,并可获取上述确定出各方向的边距值并进行端点标记,由此所形成的16个端点A1~A4、B1~B4、C1~C4、D1~D4分别呈现在图2b中,展现出了触摸点A、B、C以及D分别上下左右四个方向上的边距值大小。
S205、通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态 相匹配笔迹轮廓。
在本实施例中,所呈现书写笔迹的特点主要是与触摸物的移动状态相匹配,能够通过所呈现的书写笔迹,来展现用户的书写风格。考虑到触摸物的移动状态由用户操作触摸物时的触摸压感以及移动方向来决定,因此,为了在书写界面上呈现具备用户风格的书写笔迹,需要先通过上述步骤确定出表征触摸物的移动状态的移动状态信息。
本步骤基于上述针对每个触摸点确定出的移动状态信息,可以确定每个触摸点在书写界面上所能呈现的笔迹粗细,考虑到书写笔迹的连贯性,随着触摸物的移动,本实施例需要保证移动过程中所产生的触摸点,相邻触摸点之间是相互连接的,连接后能够呈现顺滑并具备用户风格的笔迹轮廓。
在确定出触摸点的移动状态信息后,对于触摸点之间的连接,本实施例其中的一种实现方式可描述为:可以考虑通过移动状态信息中所包括上下左右四个方向上的边距值,将边距值的端点作为触摸点所对应的笔廓点,并可以通过确定出的各笔廓点,建立相邻两触摸点之间的连接,最终将连接后得到的封闭曲线作为与所述触摸物的移动状态相匹配的笔迹轮廓。
在确定出触摸点的移动状态信息后,对于触摸点之间的连接,本实施例的另一种实现方式可描述为:可以考虑通过移动状态信息中所包括上下左右四个方向上的边距值,将相邻方向上两边距值相结合构建椭圆,最终从构建形成的4个椭圆中进行椭圆区域的拼接,围绕触摸点形成一个非对称椭圆区域。由此,对于所形成的每个触摸点,均对应存在一个非对称椭圆,相邻两个触摸点可以通过所对应的非对称椭圆以及非对称椭圆的切线建立连接,最终也可将所有触摸点连接后形成的线条轮廓作为笔迹轮廓。
在确定出触摸点的移动状态信息后,对于触摸点之间的连接,本实施例的又一种实现方式可描述为:可以考虑通过移动状态信息中所包括上下左右四个方向上的边距值,确定触摸点在上左、上右、下左以及下右四个方向的边距值,并可顺序连接各边距值的端点,构成一个触摸点对应的八边形。由此,对于所 形成的每个触摸点均对应存在一个八边形,相邻两触摸点可以通过所对应的八边形以及八边形上的近似切点建立连接,最终,同样可以将所有触摸点连接后形成的线条轮廓作为笔迹轮廓。
需要说明的是,本实施例中书写笔迹是相对于触摸物的移动而实时产生的,触摸物移动过程中最新反馈的触摸点信息可以看作触摸点序列中的最后一个触摸点。
作为本实施例二的第二可选实施例,图2c给出了本申请实施例二所提供书写笔迹呈现方法中笔迹轮廓确定的其中一种实现流程图。如图2c所示,本可选实施例进一步将通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓具体化为下述步骤:
S2051、针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值。
在本实施例中,基于上述描述可知,对于每个触摸点而言,根据移动状态信息确定方式不同,触摸点可以获得四个方向的边距值为同一数据值的第一边距值;也可以获得四个方向的边距值为不同数据值的第二边距值。本步骤中所采用的当前边距值具体与前面进行边距值确定时所采用的方法有关,可以是记为第一边距值的数值,也可以是记为第二边距值的数值。
同样可以知道的是,本步骤以及下述S2052均为相对于每个触摸点的操作。
S2052、根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点在上、下、左以及右四个方向上对应的笔廓点。
在本实施例中,在已知触摸点的触摸点坐标以及在各个方向的当前边距值之后,可以在相同的坐标系下确定各当前边距值所对应边距值端点的坐标值,并将确定出的坐标值作为触摸点在上下左右四个方向上的笔廊点坐标值。
S2053、汇总各所述触摸点对应的笔廓点,形成笔廓点集合,对所述笔廓点集合中各笔廓点按照第一设定规则进行连接,构成存在封闭区域的第一笔迹轮 廓。
可以知道的是,交互平板上的触摸框是按照一定的周期进行触摸点信息的反馈的,因此,本实施例在某一时刻可以接收到触摸框所反馈的一个周期内所生成各触摸点的触摸点信息,并且可以在该时刻对所接收的各触摸点按照本实施例所提供方法进行书写笔迹呈现。
通过本步骤可以获取到一个周期内所反馈各触摸点具备的笔廓点,并可以通过连接各笔廓点,使得相邻触摸点通过笔廓点的连接建立连接,最终获得满足第一设定规则的笔迹轮廓,本实施例记为第一笔迹轮廓,其中,所述第一设定规则为所形成封闭区域的区域面积最大。
可以理解的是,笔廓点之间的连接,首先考虑相邻两触摸点能够通过一个或者笔廓点进行连接,之后在满足第一设定规则的基础上形成包含各触摸点的封闭区域,构成触摸物在该周期下移动时所形成的笔迹轮廓。
图2d给出了本申请实施例二所提供书写笔迹的呈现方法中笔迹轮廓确定的效果展示图。如图2d所示,可以确定出触摸点A、B、C以及D所对应的各笔廓点,在基于各触摸点的笔廓点进行连接时,要考虑连接后所形成封闭区域的面积最大,由此可能会有一个笔廓点不参与连接,而是包含在封闭区域内,例如图2d中的B3这个笔廓点,最终,图2d中形成了构成第一封闭区域21的第一笔迹轮廓。
S206、填充所述笔迹轮廓并呈现在所述书写界面上。
可以理解的是,上述确定的笔迹轮廓为一个封闭区域,可以对该封闭区域按照与先设定的笔迹颜色进行填充形成呈现在书写界面上的书写笔迹。
需要说明的是,本实施例所提供方法可以是随着触摸框所反馈的触摸点信息实时进行的,因为触摸点信息按周期反馈,即本实施例则可基于周期内所反馈的一定数量的触摸点来呈现与该周期相对应的一段书写笔迹。本实施例同时考虑了前一周期内的最后一个触摸点以及后一周期内的第一个触摸点之间的连接。对于两触摸点之间可以采用本实施例给定的同一周期下相邻两触摸点之间 的连接方式来实现连接,比如直接通过笔廓点进行连接,或者通过相邻两触摸点所形成非对称椭圆及相应切线实现的连接,或者通过相邻两触摸点所形成八边形及相应近似切点实现的连接。总之,本实施例所提供的方法可以保证触摸框所反馈各触摸点之间的顺滑连接。
本申请实施例二提供的一种书写笔迹的呈现方法,具体化了触摸点信息的反馈形式,同时还具体化了书写笔迹的呈现方式。该方法的执行以交互平板上配备的触摸精度在设定精度范围内的触摸框为实现前提。相比于相关技术中的配置常规触摸框的交互平板,本实施例中交互平板在硬件层面配置了高精度触摸框之后,高精度触摸框可以向应用层反馈包含更多有效信息的更精准的触摸点信息。由此结合本实施例提供的方法,能够保证呈现在书写界面上的书写笔迹更能够与用户在书写过程中移动触摸物的移动状态相匹配,从而更好的呈现出带有用户书写风格的笔迹,进而实现了交互平板上书写笔迹呈现效果的提升。
作为本实施例二的第三可选实施例,给出了上述S204,即,通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息的另一种实现方式。
通过上述描述可知,对于移动状态信息的确定,除了上述第一可选实施例给定的一种实现方式,还存在其他实现方式,本第三可选实施例给出了另外一种移动状态信息确定的实现方式。通过执行该种实现方式,可以保证触摸点在上下左右四个方向上确定出的边距值为不同数据值。
具体的,图2e给出了本申请实施例二所提供书写笔迹呈现方法中移动状态信息确定的另一种实现流程图。如图2e所示,移动状态信息的确定具体包括下述步骤:
S2401、获取预先设定的笔迹粗细值,将所述笔迹粗细值的一半作为各所述触摸点在上、下、左以及右四个方向上的基准边距值。
本步骤相当于一个预处理步骤,可以先为各触摸点在上下左右四个方向上给定一个基准边距值。
S2402、通过对各所述触摸点信息的分析,确定各所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数。
在本实施例中,为实现触摸点在上下左右四个方向上所具备边距值的不同,关键在于确定触摸点在上下左右四个方向上应该具备的粗细缩放系数,考虑到触摸物移动时触摸点所感应到的移动方向不同,可以知道用户控制触摸物移动时在上下左右四个方向上所采用的压感也有所不同。本步骤可以通过对触摸点信息中触摸点的移动方向进行分析,来确定触摸点在上下左右四个方向上可能发生的偏移量,最后结合确定出的偏移量来确定触摸点在各个方向上对应的粗细缩放系数,本将该粗细缩放系数记为第二粗细缩放系数。
区别于上述进行第一粗细缩放系数计算时相对触摸压感的对应查找,本步骤具体考虑每个触摸点相对其之前所产生的一定数量的触摸点,其在横向及纵向上发生了什么样的偏移,最终考虑该偏移对粗细缩放系数的影响。
在上述优化的基础上,本第三可选实施例进一步优化所述触摸点信息还包括:触摸点的生成时间和触摸点的移动方向;并进一步将通过对各所述触摸点信息的分析,确定各所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数,具体化为:
a1、针对每个触摸点,从相应的触摸点信息获取所述触摸点的生成时间,并查找所述生成时间之前设定时间段内包括的各目标触摸点。
在本实施例中,触摸框反馈的触摸点信息中还包括了触摸移动过程中触摸点的生成时间。本第三可选实施例提供的移动状态信息的确定实现中,首先可以通过本步骤来确定一个设定时间段包括了多少的目标触摸点。
可以理解的是,对于每个触摸点来说,均需要通过本步骤来基于该触摸点的生成时间,以其为基准时间点,在向前的设定时间段内选择生成时间处于该设定时间段内的触摸点并记为目标触摸点。
b1、根据所述触摸点、以及各所述目标触摸点的触摸点坐标及移动方向,确定所述触摸点对应的触摸偏移信息,以及所述触摸点在上、下、左以及右四 个方向上的目标距离值。
本步骤可以将每个触摸点作为当前待进行边距值计算的当前触摸点,相对其选定的目标触摸点则可作为边距值计算的参考点。在已知当前触摸点以及各目标触摸点的触摸点坐标以及移动方向后,可以确定该当前触摸点在横向以及纵向上相对目标触摸点的偏移量,由此进一步可确定出当前触摸点的触摸偏移信息,以及所述触摸点在上、下、左以及右四个方向上的目标距离值,其中,触摸偏移信息包括了触摸点在横向和纵向上的偏移数据。
其中,本第三可选实施例可以将触摸偏移信息以及目标距离值的确定步骤及描述为:
b11、从各所述目标触摸点中选定核心触摸点,确定所述核心触摸点与所述触摸点的横向偏移距离和纵向偏移距离,其中,所述核心触摸点的生成时间与所述触摸点的生成时间的时间差值最大。
示例性的,假设当前待进行边距值计算的触摸点为触摸点A,触摸点A之前包括了4个目标触摸点,按照生成时间顺序分别记为触摸点B、C、D和E。基于本步骤的描述,触摸点B与触摸点A的生成时间的时间差值为最大,由此将触摸点B记为核心触摸点。
基于触摸点A及触摸点B的触摸点坐标,可以选定触摸点A的移动方向作为横纵方向上的正方向,之后在横纵方向分别上用触摸点A的横、纵坐标减去触摸点B的横、纵坐标,获得的坐标差值可分别记为横向偏移距离X1以及纵向偏移距离Y1。
b12、从所述目标触摸点中筛选移动方向与所述触摸点的移动方向不同的滤除触摸点,并基于所述滤除触摸点的触摸点坐标修正所述横向偏移距离和纵向偏移距离。
接上述描述,可以获取触摸点A以及触摸点B~E的移动方向,并检查触摸点B~E中是否存在与触摸点A的移动方向不同的触摸点,若存在,可将该触摸点记为滤除触摸点,并可获取到该滤除触摸点的触摸点坐标。
假设触摸点C为滤除触摸点,则对横向偏移距离X1以及纵向偏移距离Y1进行修正的过程描述为:
找到触摸点C的下一个触摸点,即触摸点D,计算触摸点C以及触摸点D在横向距离值x1和纵向距离值y1,其中,同样将触摸点A的移动方向在横纵方向上的投影作为横纵正方向。
将横向偏移距离X1与横向距离值x1的差值作为修正后的横向偏移距离值,将纵向偏移距离Y1与纵向距离值y1的差值作为修正后的纵向偏移距离值。
可以知道的是,本步骤相当于一个可选步骤,在不存在移动方向不同的触摸点时,可以跳过本步骤,直接执行步骤b13。
b13、基于修正后的横向偏移距离和纵向偏移距离构成所述触摸点的触摸偏移信息。
b14、确定所述触摸点在上、下、左以及右四个方向上相对各所述目标触摸点的坐标差值,并将最大坐标差值确定为所述触摸点在上、下、左以及右四个方向上的目标距离值。
接上述示例,在已知触摸点A~E的触摸点坐标以及移动方向后,确定触摸点A的移动方向在横纵方向的投影为正方向后,可以选择触摸点A的横、纵坐标分别与触摸点B~E的横、纵坐标在上下左右四个方向上进行差值计算,之后可以在上下左右四个方向上分别挑选出最大的坐标差值,并将最大坐标差值看作触摸点A在相应方向上的目标距离值。
对于触摸点A与触摸点B~E在四个方向上的坐标差值计算,具体实现描述如下:
假设触摸点A~E的坐标分别为(5,5),(4,4),(3,3),(2,2)和(1,1),移动方向分别为右上,则可将向右和向上作为正方向,在上和右这两个方向上,所确定的差值依次为4,3,2,1,0,可以看出4为这两个方向上的目标距离值。
相对于上和右,下和左这两个方向看作负方向,在下和左这两个方向上,所确定的差值依次为-4,-3,-2,-1,0,可以看出0为这两个方向上的目标距离值。
其中,所述坐标差值基于设定的横纵正方向确定正负。
c1、根据所述触摸偏移信息、各所述目标距离值以及所述触摸点的触摸压感,分别确定所述触摸点在上、下、左以及右四个方向上的第二粗细缩放系数。
其中,本第三可选实施例可以通过下述各子步骤来具体描述步骤c1中第二粗细缩放系数确定过程:
c11、针对每个方向,提取所述触摸偏移信息中相应方向的偏移距离,并记为目标偏移距离。
接上述示例,本步骤中的方向具体包括了上下左右四个方向,上下方向对应的目标偏移距离应该为纵向偏移距离Y1,左右方向的目标偏移距离应该为横向偏移距离X1。
c12、确定所述方向上的目标距离值与所述目标偏移距离的差值,并将所述差值与设定触摸常数的商记为待修正缩放系数。
接上述示例,针对触摸点A~E,触摸点A相对触摸点B~E的目标距离值在上和右方向上分别为4,在下和左方向上分别为0。
由此,对于上方向,待修正缩放系数可以为Y1-k1,右方向则为X1-k1;下方向的待修正缩放系数可以为Y1/k;左方向的待修正缩放系数可以为X1/k。其中,k1为4/k,4为上述确定额目标距离值,k为设定触摸常数。
c13、将所述待修正缩放系数与所述触摸压感的乘积作为所述方向上的第二粗细缩放系数。
接上述示例,相对于触摸点A,同样可以获取到其具备的触摸压感,可以直接通过本步骤将触摸点在在上下左右每个方向上的待修正缩放系数与所述触摸压感进行乘积计算,计算后的乘积值可以看作在相应方向上的第二粗细缩放系数。
S2403、针对每个触摸点,根据所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数,对所述触摸点在上、下、左以及右四个方向上的基准边距值进行校正,获得校正后的各第二边距值。
在本第三可选实施例中,通过上述示例性的描述确定出第二粗细缩放系数后,可以直接基于触摸点在上下左右各方向的第二粗细缩放系数,对相应方向上的基准边距值进行校正。校正过程可理解为该方向上的基准边距值与相应第二粗细缩放系数的乘积,最终确定的乘积值作为触摸点在该方向上的边距值,在本实施例中记为第二边距值。
S2404、将各所述第二边距值记为所述触摸点的移动状态信息。
在本实施例中,相对于每个触摸点,通过上述步骤确定出其在上下左右四个方向的第二边距值后,可以将各方向的第二边距值统称为触摸点的移动状态信息。
作为本实施例二的第四可选实施例,本可选实施例给出了上述S205,即通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓的另一种实现方式。
通过上述描述可知,对于笔迹轮廓的确定,除了上述第二可选实施例给定的一种实现方式,还存在其他实现方式,本第四可选实施例给出了另外一种移动状态信息确定的实现方式。通过执行该种实现方式,相对于上述第一可选实施例所提供方式形成的笔迹轮廓,本可选实施例所提供触摸点形成笔迹轮廓的方式更能提高笔迹轮廓的顺滑程度。
具体的,图2f给出了本申请实施例二所提供书写笔迹呈现方法中笔迹轮廓确定的另一种实现流程图。如图2f所示,笔迹轮廓的确定具体包括下述步骤:
S2501、针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值。
同样的,在本可选实施例中,基于上述描述可知,对于每个触摸点而言,根据移动状态信息确定方式不同,触摸点可以获得四个方向的边距值为同一数据值的第一边距值;也可以获得四个方向的边距值为不同数据值的第二边距值。本步骤中所采用的当前边距值同样可以是记为第一边距值的数值,也可以是记 为第二边距值的数值。
S2502、根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点对应的非对称椭圆区域,并确定所述非对称椭圆区域的切点。
本可选实施例引入了基于椭圆确定笔迹轮廓的构思。考虑到各方向上边距值的不同,本可选实施例考虑通过非对称椭圆区域进行笔迹轮廓的构建。其中,非对称椭圆区域可以从常规椭圆演化而来,其具体与触摸点在各方向的当前边距值有关。
需要说明的是,本实施例可以将触摸点在各方向上具备相同边距值的情况看作各方向采用第二边距值的一种特殊情况。
在上述优化的基础上,本第四可选实施例进一步将根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点对应的非对称椭圆区域优化为下述步骤:
a2、沿所述触摸点构建虚拟坐标系,分别对上、下、左和右四个方向对应的边距值进行两两分组,获得四个分组。
示例性的,假设触摸点A在上下左右四个方向的边距值为别用q,w,e,r来表示,则两两分组后,获得的四个分组可分别为(q,e)、(q,r)、(w,e)以及(w,r)。
b2、针对每个分组,基于所述分组中包括的两个边距值以及所述触摸点坐标,结合椭圆构建公式,确定相应的椭圆,并从所述椭圆中提取有效区域。
接上述示例,以(q,e)这个分组为例,q和e这两个边距值可分别作为为椭圆构建的两个边距,在已知触摸点A的触摸点坐标后,结合椭圆构建公式,可以获取(q,e)这个分组对应的第一椭圆。
其中,本第四可选实施例可以将从所述椭圆中提取有效区域的具体实现描述为:确定所述椭圆构建时所关联两个定值在所述虚拟坐标系中对应的象限区间;将所述椭圆中处于所述象限区间的区域确定为有效区域。
接上述示例,分析q和e分别为上方向和左方向的边距值,由此可以在第一椭圆与坐标系构成的区域中,将q和e这两个所对应方向所属的象限区域作 为有效区域。
c2、汇总提取出的四个有效区域,拼接构成所述非对称椭圆区域。
示例性的,图2g给出了本申请实施例二中所确定非对称椭圆区域的效果展示图。如图2g所示,非对称椭圆区域中包含了4个有效区域,分别为第一有效区域01,第二有效区域02,第三有效区域03以及第四有效区域04,该四个有效区域分别来自于四个不同的椭圆,每个椭圆均可采用上述步骤b2的方式确定,每个有效区域也可采用有效区域的确定方式确定。
S2503、将各所述非对称椭圆区域通过相应的切点沿切线方向进行连接,构成存在封闭区域的第二笔迹轮廓。
图2h给出了本申请实施例二中所确定第二笔迹轮廓的效果展示图,如图2h所示,包含了通过各触摸点的非对称椭圆区域结合相应的切点以所对应切线进行两两连接后构成的第一封闭区域22,第一封闭区域22可以作为触摸点的第二笔迹轮廓。需要说明的是,图2h仅为一个示意图,图中相对各非对称椭圆给出的切线并不严谨,但是在实际应用中,所采用的连接方式可以严格依照切点的切线来进行连接。
本第四可选实施例可以采用上述S2501以及S2502的步骤为每个触摸点确定出相应的非对称椭圆区域,之后可以根据椭圆的切点确定方法,从每个非对称椭圆上确定出两个切点(两个切点所对应切线之间的距离最大),然后,可以将每个非对称椭圆通过确定出的切点,按照触摸点的邻接关系,依次延切线方向进行连接,最终将连接形成的封闭区域作为第二笔迹轮廓。可以知道的是,各触摸点均包含在该第二笔迹轮廓中。
作为本实施例二的第五可选实施例,本可选实施例给出了上述S205,即通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓的又一种实现方式。
此外,同上述第四可选实施例一样,提出了笔迹轮廓确定的又一种实现方式。本第五可选实施例,区别于上述第四可选实施例,对第四可选实施例的计 算性能进行了优化,因为第四可选实施例椭圆切点的计算过程相对复杂,该过程会占用过程的计算资源。由此,可以采用本第五可选实施例提供的实现方式,来进行计算性能优化。
具体的,图2i给出了本申请实施例二所提供书写笔迹呈现方法中笔迹轮廓确定的又一种实现流程图。如图2i所示,笔迹轮廓的确定具体包括下述步骤:
S251、针对每个触摸点,采用预设的边距值确定策略分别确定所述触摸点在所述触摸点在上左、下右、上右以及下左四个方向上的有效边距值。
具体的,本实施例确定有效边距值的方式可以描述为:
依旧先确定该触摸点的非对称椭圆区域,该非对称椭圆区域的确定方式可以借鉴上述第四可选实施例的方式;
以触摸点构造虚拟坐标系,并在各象限内确定过该触摸点,角度值为45度的射线,其中,每个射线分别表征了触摸点的上左方向、下左方向、上右方向以及下右方向。
确定每条射线与非对称椭圆区域的交点,交点坐标与触摸点坐标的距离值可记为触摸点分别在上左方向、下左方向、上右方向以及下右方向上的有效边距值。
S252、根据各所述有效边距值确定所述触摸点在上左、下右、上右以及下左四个方向上对应的第一笔廓点。
可以知道的是,左、下右、上右以及下左四个方向上的有效边距值分别存在边距值端点,也即上述描述的射线与非对称椭圆的交点。本步骤可以将每个边距值端点作为相应方向的笔廓点,本实施例记为第一笔廓点。
S253、根据相应的移动状态信息确定所述触摸点在上、下、左以及右四个方向上对应的第二笔廓点。
同样可以理解的是,每个触摸点通过本实施例上述给出的方式可以确定出相应的移动状态信息,而移动状态信息中具体包括了触摸点在上下左右四个方向上的边距值(可能是第一边距值,也可能是第二边距值),同样可以将各方向 的边距值对应的边距端点作为相应的笔廓点,本实施例记为第二笔廓点。
S254、基于所述各所述触摸点对应的第一笔廓点以及第二笔廓点,构成第三笔迹轮廓。
针对每个触摸点而言,分别对应存在8个笔廓点,8个笔廓点进行连接,可以构成一个八边形。由此每个触摸点均对应存在一个八边形,本步骤可以通过各触摸点的八边形进行连接,获得最终的笔迹轮廓,本实施例记为第三笔迹轮廓。
在上述优化的基础上,本第五可选实施例进一步将基于所述各所述触摸点对应的第一笔廓点以及第二笔廓点,构成第三笔迹轮廓具体化为:
a3、针对每个触摸点,根据所述触摸点对应的各所述第一笔廓点以及第二笔廓点,构成所述触摸点的外接八边形。
b3、确定所述外接八边形的近似切点。
在本实施例中,满足作为近似切点的条件是,一个处于外接八边形上的两点,两个点分别与触摸点连接,分别形成相应的线段,分别过这两点且与相应所形成线段垂直的线作为相应的近似切线。假设两近似切线的距离最大,则可认为这两个点可作为外接八边形的近似切点。
c3、将各所述外接八边形通过相应的近似切点形成近似切线,并分别沿近似切线方向进行连接,构成存在封闭区域的第三笔迹轮廓。
示例性的,图2j给出了本申请实施例二中所确定第三笔迹轮廓的效果展示图。如图2j所示,包含了通过各触摸点的外接八边形结合相应的近似切点以所形成近似切线进行两两连接后构成的第二封闭区域23,第二封闭区域23可以作为触摸点的第三笔迹轮廓。同样需要说明的是,图2j仅为一个示意图,图中相对各外接八边形给出的近似切线并不严谨,或者并难以清晰辨认近似切线的位置所在,但是在实际应用中,所采用的连接方式可以严格依照近似切点的切线来进行连接。
为了便于更好的理解本实施例所提供书写笔迹的呈现方法相对用户书写风 格的有效呈现。本实施例给出了一个对用户书写过程中以毛笔风格呈现毛笔笔锋效果的示例。具体的,图2k给出了采用本申请实施例二所提供方法呈现的具备用户书写风格特效的笔迹展示图。如图2k所示,具体展示了一个用户采用毛笔的风格进行书写时所形成的一个毛笔笔锋轮廓24。该效果图也更好说明了通过本实施例提供的方法,能够保证呈现在书写界面上的书写笔迹更能够与用户在书写过程中移动触摸物的移动状态相匹配,有利于用户体验的提升。
实施例三
图3为本申请实施例三提供的一种书写笔迹呈现装置的结构框图,书写笔迹呈现装置可以集成在交互平板中,其中,交互平板中所配备触摸框的触摸精度到设定精度范围。所述装置具体可以包括如下模块:
显示模块31,用于通过显示屏显示书写界面;
获取模块32,用于在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
呈现模块33,用于通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。
本申请实施例三提供的一种书写笔迹呈现装置,该装置的执行主体交互平板在硬件结构上配置了高精度触摸框,能够将所配置的高精度触摸框通过本实施例所提供的方法实现软件应用层面上的功能优化,相比于相关技术中的未在软件层面进行优化的交互平板,本实施例三在交互平板上集成了书写笔迹呈现装置,该装置能够保证呈现在书写界面上的书写笔迹更能够与用户在书写过程中移动触摸物的移动状态相匹配,从而更好的呈现出带有用户书写风格的笔迹,进而实现了交互平板上书写笔迹呈现效果的提升。
进一步地,移动状态通过所述触摸物作用在显示屏上的压感值大小以及移动方向来体现。
进一步地,获取模块32具体可以用于:
在触摸物触碰所述显示屏的表面并移动时,通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;
获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息,
其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标以及触摸点压感。
进一步地,该装置还包括了输入处理模块,
所述输入处理模块,可以用于获得通过所述触摸框反馈的触摸点信息之后,处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
在上述优化的基础上,所述输入处理模块处理各所述触摸点信息的具体实现可以包括:
根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信息中各项数据信息的单位转换为统一的设定单位格式;
采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
进一步地,呈现模块33具体可以包括:
第一确定单元,用于通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息;
第二确定单元,用于通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓;
笔迹呈现单元,用于填充所述笔迹轮廓并呈现在所述书写界面上。
在上述优化的基础上,第一确定单元具体可以用于:
获取预先设定的笔迹粗细值;
针对每个触摸点,提取所对应触摸点信息中的触摸点压感;
查找预设的压感系数关联表,确定所述触摸点压感对应的第一粗细缩放系数,并确定所述笔迹粗细值与所述第一粗细缩放系数的乘积值;
将所述乘积值分别作为所述触摸点在上、下、左以及右四个方向上的第一边距值,并将各所述第一边距值记为所述触摸点的移动状态信息。
在上述优化的基础上,第一确定单元还可以用于:
预处理子单元,用于获取预先设定的笔迹粗细值,将所述笔迹粗细值的一半作为各所述触摸点在上、下、左以及右四个方向上的基准边距值;
系数确定子单元,用于通过对各所述触摸点信息的分析,确定各所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数;
边距确定子单元,用于针对每个触摸点,根据所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数,对所述触摸点在上、下、左以及右四个方向上的基准边距值进行校正,获得校正后的各第二边距值;
信息记录子单元,用于将各所述第二边距值记为所述触摸点的移动状态信息。
进一步地,所述触摸点信息还包括:触摸点的生成时间和触摸点的移动方向;
相应的,所述系数确定子单元,具体可以用于:
针对每个触摸点,从相应的触摸点信息获取所述触摸点的生成时间,并查找所述生成时间之前设定时间段内包括的各目标触摸点;
根据所述触摸点、以及各所述目标触摸点的触摸点坐标及移动方向,确定所述触摸点对应的触摸偏移信息,以及所述触摸点在上、下、左以及右四个方向上的目标距离值;
根据所述触摸偏移信息、各所述目标距离值以及所述触摸点的触摸压感,分别确定所述触摸点在上、下、左以及右四个方向上的第二粗细缩放系数。
进一步地,所述根据所述触摸点、以及各所述目标触摸点的触摸点坐标及移动方向,确定所述触摸点对应的触摸偏移信息,以及所述触摸点在上、下、左以及右四个方向上的目标距离值,具体包括:
从各所述目标触摸点中选定核心触摸点,确定所述核心触摸点与所述触摸 点的横向偏移距离和纵向偏移距离,其中,所述核心触摸点的生成时间与所述触摸点的生成时间的时间差值最大;
从所述目标触摸点中筛选移动方向与所述触摸点的移动方向不同的滤除触摸点,并基于所述滤除触摸点的触摸点坐标修正所述横向偏移距离和纵向偏移距离;
基于修正后的横向偏移距离和纵向偏移距离构成所述触摸点的触摸偏移信息;
确定所述触摸点在上、下、左以及右四个方向上相对各所述目标触摸点的坐标差值,并将最大坐标差值确定为所述触摸点在上、下、左以及右四个方向上的目标距离值;
其中,所述坐标差值基于设定的横纵正方向确定正负。
进一步地,所述根据所述触摸偏移信息、各所述目标距离值以及所述触摸点的触摸压感,分别确定所述触摸点在上、下、左以及右四个方向上的第二粗细缩放系数,具体可以包括:
针对每个方向,提取所述触摸偏移信息中相应方向的偏移距离,并记为目标偏移距离;
确定所述方向上的目标距离值与所述目标偏移距离的差值,并将所述差值与设定触摸常数的商记为待修正缩放系数;
将所述待修正缩放系数与所述触摸压感的乘积作为所述方向上的第二粗细缩放系数。
进一步地,所述第二确定单元具体可以用于:
针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值;
根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点在上、下、左以及右四个方向上对应的笔廓点;
汇总各所述触摸点对应的笔廓点,形成笔廓点集合,对所述笔廓点集合中 各笔廓点按照第一设定规则进行连接,构成存在封闭区域的第一笔迹轮廓;
其中,所述第一设定规则为所形成封闭区域的区域面积最大。
进一步地,所述第二确定单元具体还可以包括:
第一确定子单元,用于针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值;
第二确定子单元,用于根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点对应的非对称椭圆区域,并确定所述非对称椭圆区域的切点;
第三确定子单元,用于将各所述非对称椭圆区域通过相应的切点沿切线方向进行连接,构成存在封闭区域的第二笔迹轮廓。
在上述实施例的基础上,所述第二确定子单元具体可以用于:
沿所述触摸点构建虚拟坐标系,分别对上、下、左和右四个方向对应的边距值进行两两分组,获得四个分组;
针对每个分组,基于所述分组中包括的两个边距值以及所述触摸点坐标,结合椭圆构建公式,确定相应的椭圆,并从所述椭圆中提取有效区域;
汇总提取出的四个有效区域,拼接构成所述非对称椭圆区域。
进一步地,所述第三确定子单元中从所述椭圆中提取有效区域的具体执行步骤包括:
确定所述椭圆构建时所关联两个定值在所述虚拟坐标系中对应的象限区间;
将所述椭圆中处于所述象限区间的区域确定为有效区域。
进一步地,所述第二确定单元具体还可以包括:
第四确定子单元,用于针对每个触摸点,采用预设的边距值确定策略分别确定所述触摸点在所述触摸点在上左、下右、上右以及下左四个方向上的有效边距值;
第五确定子单元,用于根据各所述有效边距值确定所述触摸点在上左、下 右、上右以及下左四个方向上对应的第一笔廓点;
第六确定子单元,用于根据相应的移动状态信息确定所述触摸点在上、下、左以及右四个方向上对应的第二笔廓点;
第七确定子单元,用于基于所述各所述触摸点对应的第一笔廓点以及第二笔廓点,构成第三笔迹轮廓。
在上述优化的基础上,第七确定子单元,具体可以用于:
针对每个触摸点,根据所述触摸点对应的各所述第一笔廓点以及第二笔廓点,构成所述触摸点的外接八边形;
确定所述外接八边形的近似切点;
将各所述外接八边形通过相应的近似切点形成近似切线,并分别沿近似切线方向进行连接,构成存在封闭区域的第三笔迹轮廓。
实施例四
图4为本申请实施例四提供的一种交互平板的结构示意图。该交互平板包括:处理器40、存储器41、显示屏42、输入装置43、输出装置44、触摸框45。该交互平板中处理器40的数量可以是一个或者多个,图4中以一个处理器40为例。该交互平板中存储器41的数量可以是一个或者多个,图4中以一个存储器41为例。该交互平板的处理器40、存储器41、显示屏42、输入装置43、输出装置44以及触摸框45可以通过总线或者其他方式连接,图4中以通过总线连接为例。
存储器41作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的交互平板对应的程序指令/模块(例如,书写笔迹的呈现装置中的显示模块31、获取模块32以及呈现模块33)。存储器41可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器41可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存 储器件。在一些实例中,存储器41可进一步包括相对于处理器40远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
显示屏42覆盖于触摸框45之上,,用于进行交互内容的显示,一般而言,显示屏42用于根据处理器40的指示显示数据,还用于接收作用于显示屏42的触摸操作,并将相应的信号发送至处理器40或其他装置。
输入装置43可用于接收输入的数字或者字符信息,以及产生与展示设备的用户设置以及功能控制有关的键信号输入,还可以是用于获取图像的摄像头以及获取音频数据的拾音设备。输出装置44可以包括扬声器等音频设备。需要说明的是,输入装置43和输出装置44的具体组成可以根据实际情况设定。
触摸框45,所具备的触摸精度,达到设定精度范围,用于收集触摸物进行触摸操作时产生的触摸点信息。
处理器40通过运行存储在存储器41中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的书写笔迹的呈现方法。
上述提供的交互平板可用于执行上述任意实施例提供的书写笔迹的呈现方法,具备相应的功能和有益效果。
实施例五
本申请实施例五还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种书写笔迹的呈现方法,包括:
通过显示屏显示书写界面;
在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的书写笔迹的呈现方法操作,还可以执行本申请任意实施例所提供的书写笔迹的呈现方法中的相关操作,且具备相应的功能和有益效果。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台交互平板(可以是机器人,个人计算机,服务器,或者网络设备等)执行本申请任意实施例所述的书写笔迹的呈现方法。
值得注意的是,上述课程推荐装置中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(Programmable Gate Array,PGA),现场可编程门阵列(Field-Programmable Gate Array,FPGA)等。

Claims (20)

  1. 一种书写笔迹的呈现方法,应用于交互平板,所述交互平板所配备触摸框的触摸精度达到设定精度范围,所述方法包括:
    通过显示屏显示书写界面;
    在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
    通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。
  2. 根据权利要求1所述的方法,其中,所述移动状态通过所述触摸物作用在显示屏上的压感值大小以及移动方向来体现。
  3. 根据权利要求1所述的方法,其中,所述获得通过所述触摸框反馈的触摸点信息,包括:
    通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;
    获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息,
    其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标以及触摸点压感。
  4. 根据权利要求1所述的方法,在获得通过所述触摸框反馈的触摸点信息之后,还包括:
    处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
  5. 根据权利要求4所述的方法,其中,所述处理各所述触摸点信息,包括:
    根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信息中各项数据信息的单位转换为统一的设定单位格式;
    采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
  6. 根据权利要求1所述的方法,其中,通过对各所述触摸点信息的分析, 在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹,包括:
    通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息;
    通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓;
    填充所述笔迹轮廓并呈现在所述书写界面上。
  7. 根据权利要求6所述的方法,其中,所述通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息,包括:
    获取预先设定的笔迹粗细值;
    针对每个触摸点,提取所对应触摸点信息中的触摸点压感;
    查找预设的压感系数关联表,确定所述触摸点压感对应的第一粗细缩放系数,并确定所述笔迹粗细值与所述第一粗细缩放系数的乘积值;
    将所述乘积值分别作为所述触摸点在上、下、左以及右四个方向上的第一边距值,并将各所述第一边距值记为所述触摸点的移动状态信息。
  8. 根据权利要求6所述的方法,其中,所述通过对各所述触摸点信息的分析,确定所述触摸物在移动过程中所产生触摸点的移动状态信息,包括:
    获取预先设定的笔迹粗细值,将所述笔迹粗细值的一半作为各所述触摸点在上、下、左以及右四个方向上的基准边距值;
    通过对各所述触摸点信息的分析,确定各所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数;
    针对每个触摸点,根据所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数,对所述触摸点在上、下、左以及右四个方向上的基准边距值进行校正,获得校正后的各第二边距值;
    将各所述第二边距值记为所述触摸点的移动状态信息。
  9. 根据权利要求8所述的方法,其中,所述触摸点信息还包括:触摸点的生成时间和触摸点的移动方向;
    所述通过对各所述触摸点信息的分析,确定各所述触摸点在上、下、左以及右四个方向上对应的第二粗细缩放系数,包括:
    针对每个触摸点,从相应的触摸点信息获取所述触摸点的生成时间,并查找所述生成时间之前设定时间段内包括的各目标触摸点;
    根据所述触摸点、以及各所述目标触摸点的触摸点坐标及移动方向,确定所述触摸点对应的触摸偏移信息,以及所述触摸点在上、下、左以及右四个方向上的目标距离值;
    根据所述触摸偏移信息、各所述目标距离值以及所述触摸点的触摸压感,分别确定所述触摸点在上、下、左以及右四个方向上的第二粗细缩放系数。
  10. 根据权利要求9所述的方法,其中,所述根据所述触摸点及各所述目标触摸点的触摸点坐标及移动方向,确定所述触摸点对应的触摸偏移值,以及所述触摸点在上、下、左以及右四个方向上的目标距离值,包括:
    从各所述目标触摸点中选定核心触摸点,确定所述核心触摸点与所述触摸点的横向偏移距离和纵向偏移距离,其中,所述核心触摸点的生成时间与所述触摸点的生成时间的时间差值最大;
    从所述目标触摸点中筛选移动方向与所述触摸点的移动方向不同的滤除触摸点,并基于所述滤除触摸点的触摸点坐标修正所述横向偏移距离和纵向偏移距离;
    基于修正后的横向偏移距离和纵向偏移距离构成所述触摸点的触摸偏移信息;
    确定所述触摸点在上、下、左以及右四个方向上相对各所述目标触摸点的坐标差值,并将最大坐标差值确定为所述触摸点在上、下、左以及右四个方向上的目标距离值;
    其中,所述坐标差值基于设定的横纵正方向确定正负。
  11. 根据权利要求9所述的方法,其中,所述根据所述触摸偏移信息、各所述目标距离值以及所述触摸点的触摸压感,分别确定所述触摸点在上、下、 左以及右四个方向上的第二粗细缩放系数,包括:
    针对每个方向,提取所述触摸偏移信息中相应方向的偏移距离,并记为目标偏移距离;
    确定所述方向上的目标距离值与所述目标偏移距离的差值,并将所述差值与设定触摸常数的商记为待修正缩放系数;
    将所述待修正缩放系数与所述触摸压感的乘积作为所述方向上的第二粗细缩放系数。
  12. 根据权利要求6所述的方法,其中,所述通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓,包括:
    针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值;
    根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点在上、下、左以及右四个方向上对应的笔廓点;
    汇总各所述触摸点对应的笔廓点,形成笔廓点集合,对所述笔廓点集合中各笔廓点按照第一设定规则进行连接,构成存在封闭区域的第一笔迹轮廓;
    其中,所述第一设定规则为所形成封闭区域的区域面积最大。
  13. 根据权利要求6所述的方法,其中,所述通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓,包括:
    针对每个触摸点,从所述移动状态信息中提取所述触摸点在上、下、左以及右四个方向上的当前边距值,所述当前边距值为第一边距值或第二边距值;
    根据各所述当前边距值结合所述触摸点的触摸点坐标,确定所述触摸点对应的非对称椭圆区域,并确定所述非对称椭圆区域的切点;
    将各所述非对称椭圆区域通过相应的切点沿切线方向进行连接,构成存在封闭区域的第二笔迹轮廓。
  14. 根据权利要求13所述的方法,其中,所述根据各所述边距值结合所述触摸点的触摸点坐标,确定所述触摸点对应的非对称椭圆区域,包括:
    沿所述触摸点构建虚拟坐标系,分别对上、下、左和右四个方向对应的边距值进行两两分组,获得四个分组;
    针对每个分组,基于所述分组中包括的两个边距值以及所述触摸点坐标,结合椭圆构建公式,确定相应的椭圆,并从所述椭圆中提取有效区域;
    汇总提取出的四个有效区域,拼接构成所述非对称椭圆区域。
  15. 根据权利要求14所述的方法,其中,所述从所述椭圆中提取有效区域,包括:
    确定所述椭圆构建时所关联两个定值在所述虚拟坐标系中对应的象限区间;
    将所述椭圆中处于所述象限区间的区域确定为有效区域。
  16. 根据权利要求6所述的方法,其中,通过对各所述移动状态信息的分析,构成与所述触摸物的移动状态相匹配笔迹轮廓,包括:
    针对每个触摸点,采用预设的边距值确定策略分别确定所述触摸点在所述触摸点在上左、下右、上右以及下左四个方向上的有效边距值;
    根据各所述有效边距值确定所述触摸点在上左、下右、上右以及下左四个方向上对应的第一笔廓点;
    根据相应的移动状态信息确定所述触摸点在上、下、左以及右四个方向上对应的第二笔廓点;
    基于所述各所述触摸点对应的第一笔廓点以及第二笔廓点,构成第三笔迹轮廓。
  17. 根据权利要求16所述的方法,其中,所述基于所述各所述触摸点对应的第一笔廓点以及第二笔廓点,构成第三笔迹轮廓,包括:
    针对每个触摸点,根据所述触摸点对应的各所述第一笔廓点以及第二笔廓点,构成所述触摸点的外接八边形;
    确定所述外接八边形的近似切点;
    将各所述外接八边形通过相应的近似切点形成近似切线,并分别沿近似切线方向进行连接,构成存在封闭区域的第三笔迹轮廓。
  18. 一种书写笔迹的呈现装置,配置于交互平板,所述交互平板所配备触摸框的触摸精度达到设定精度范围,所述装置包括:
    显示模块,用于通过显示屏显示书写界面;
    获取模块,用于在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
    呈现模块,用于通过对各所述触摸点信息的分析,在所述书写界面上呈现与所述触摸物的移动状态相匹配的书写笔迹。
  19. 一种交互平板,包括:
    触摸框,所具备的触摸精度,达到设定精度范围,用于收集触摸物进行触摸操作时产生的触摸点信息;
    显示屏,与所述触摸框相结合,构成触摸屏,用于进行交互内容的显示;
    一个或多个处理器;
    存储装置,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-17任一所述的方法。
  20. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-17任一项所述的方法。
PCT/CN2021/121986 2021-05-20 2021-09-30 书写笔迹的呈现方法、装置、交互平板及存储介质 Ceased WO2022242011A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110553073.3A CN115373534B (zh) 2021-05-20 2021-05-20 书写笔迹的呈现方法、装置、交互平板及存储介质
CN202110553073.3 2021-05-20

Publications (1)

Publication Number Publication Date
WO2022242011A1 true WO2022242011A1 (zh) 2022-11-24

Family

ID=84058925

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121986 Ceased WO2022242011A1 (zh) 2021-05-20 2021-09-30 书写笔迹的呈现方法、装置、交互平板及存储介质

Country Status (2)

Country Link
CN (1) CN115373534B (zh)
WO (1) WO2022242011A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117058688A (zh) * 2023-08-14 2023-11-14 北京东舟技术股份有限公司 一种书写轨迹相似度评估方法及处理设备
CN118522020A (zh) * 2024-05-11 2024-08-20 深圳蜜蜂科技有限公司 一种书写数据处理方法、电子设备及可读存储介质
CN118819325A (zh) * 2024-09-18 2024-10-22 紫光摩度教育科技有限公司 电子白板书写方法、系统、可读存储介质及计算机
CN119065529A (zh) * 2024-11-07 2024-12-03 北京数科网维技术有限责任公司 一种无压感手写设备字体笔迹生成方法、装置及设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974400B (zh) * 2023-09-14 2024-01-16 深圳市磐鼎科技有限公司 屏幕触显识别方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155540A (zh) * 2015-04-03 2016-11-23 北大方正集团有限公司 电子毛笔笔形处理方法和装置
CN106293276A (zh) * 2016-10-18 2017-01-04 青岛海信电器股份有限公司 基于红外触控的笔锋确定方法、装置和触摸屏系统
CN110275646A (zh) * 2019-06-27 2019-09-24 深圳市康冠商用科技有限公司 一种应用于红外触摸屏的书写方法和相关装置
CN111142770A (zh) * 2019-12-23 2020-05-12 江苏欧帝电子科技有限公司 一种生成笔锋的方法及处理装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699516B (zh) * 2009-10-30 2012-09-05 华南理工大学 一种手写汉字美化的笔画渲染方法
CN103164086B (zh) * 2013-03-15 2016-05-25 创维光电科技(深圳)有限公司 一种基于红外触摸屏的触摸显示方法、装置及红外触摸屏

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155540A (zh) * 2015-04-03 2016-11-23 北大方正集团有限公司 电子毛笔笔形处理方法和装置
CN106293276A (zh) * 2016-10-18 2017-01-04 青岛海信电器股份有限公司 基于红外触控的笔锋确定方法、装置和触摸屏系统
CN110275646A (zh) * 2019-06-27 2019-09-24 深圳市康冠商用科技有限公司 一种应用于红外触摸屏的书写方法和相关装置
CN111142770A (zh) * 2019-12-23 2020-05-12 江苏欧帝电子科技有限公司 一种生成笔锋的方法及处理装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117058688A (zh) * 2023-08-14 2023-11-14 北京东舟技术股份有限公司 一种书写轨迹相似度评估方法及处理设备
CN117058688B (zh) * 2023-08-14 2024-04-05 北京东舟技术股份有限公司 一种书写轨迹相似度评估方法及处理设备
CN118522020A (zh) * 2024-05-11 2024-08-20 深圳蜜蜂科技有限公司 一种书写数据处理方法、电子设备及可读存储介质
CN118819325A (zh) * 2024-09-18 2024-10-22 紫光摩度教育科技有限公司 电子白板书写方法、系统、可读存储介质及计算机
CN119065529A (zh) * 2024-11-07 2024-12-03 北京数科网维技术有限责任公司 一种无压感手写设备字体笔迹生成方法、装置及设备
CN119065529B (zh) * 2024-11-07 2025-03-18 北京数科网维技术有限责任公司 一种无压感手写设备字体笔迹生成方法、装置及设备

Also Published As

Publication number Publication date
CN115373534A (zh) 2022-11-22
CN115373534B (zh) 2025-12-16

Similar Documents

Publication Publication Date Title
WO2022242011A1 (zh) 书写笔迹的呈现方法、装置、交互平板及存储介质
CN111758122B (zh) 用于混合现实系统的浏览器
US9471192B2 (en) Region dynamics for digital whiteboard
US8860675B2 (en) Drawing aid system for multi-touch devices
CN110045840B (zh) 一种书写轨迹关联的方法、装置、终端设备和存储介质
WO2019140987A1 (zh) 表格控制方法、装置、设备及存储介质
CN107273032A (zh) 信息排版方法、装置、设备及计算机存储介质
WO2019041653A1 (zh) 展示思维导图的方法、装置、设备及存储介质
US11669204B2 (en) Data processing method and apparatus, and smart interaction device
WO2021077539A1 (zh) 图形调整方法、装置、设备及存储介质
US12517638B2 (en) Method and device for erasing handwriting, interactive board and storage medium
CN108564639A (zh) 笔迹保存方法、装置、智能交互设备及可读存储介质
CN108492349B (zh) 书写笔画的处理方法、装置、设备和存储介质
CN114690930A (zh) 一种书写笔迹处理方法、装置、交互平板及存储介质
CN111652204B (zh) 目标文本区域选择的方法、装置、电子设备和存储介质
WO2023065939A1 (zh) 一种触控响应方法、装置、交互平板及存储介质
TW201500968A (zh) 三維互動系統及其互動感測方法
CN117422057A (zh) 一种显示设备及便签显示方法
CN107679219A (zh) 匹配方法及装置、交互智能平板及存储介质
CN115509380A (zh) 一种人机交互方法、装置、交互平板和存储介质
WO2022206171A1 (zh) 远程书写显示的方法、装置和存储介质
CN105786314A (zh) 窗口调整方法及使用该方法的电子装置
CN114691009A (zh) 将手写笔迹数据始终正向显示的方法、系统、装置及介质
WO2024113271A1 (zh) 智能手写显示设备、智能手写显示方法、电子设备
US20240168575A1 (en) Input support apparatus, method, computer-readable medium, and input system

Legal Events

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

Ref document number: 21940457

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21940457

Country of ref document: EP

Kind code of ref document: A1