CN115291789A - Handwriting fitting method and device, terminal equipment and medium - Google Patents

Handwriting fitting method and device, terminal equipment and medium Download PDF

Info

Publication number
CN115291789A
CN115291789A CN202210930312.7A CN202210930312A CN115291789A CN 115291789 A CN115291789 A CN 115291789A CN 202210930312 A CN202210930312 A CN 202210930312A CN 115291789 A CN115291789 A CN 115291789A
Authority
CN
China
Prior art keywords
touch point
point
contour
determining
touch
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.)
Granted
Application number
CN202210930312.7A
Other languages
Chinese (zh)
Other versions
CN115291789B (en
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202210930312.7A priority Critical patent/CN115291789B/en
Publication of CN115291789A publication Critical patent/CN115291789A/en
Application granted granted Critical
Publication of CN115291789B publication Critical patent/CN115291789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Landscapes

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

Abstract

The application provides a handwriting fitting method, a handwriting fitting device, terminal equipment and a medium, wherein when a touch point is identified, a first contour point of the touch point is determined according to a coordinate of the touch point and a coordinate of a previous touch point of the touch point, a boundary contour line of the touch point is determined by adopting a Bezier curve according to the first contour point, a second contour point of the previous touch point and a middle contour point of the first contour point and the second contour point, and the boundary contour line of the touch point can be determined and displayed in real time without acquiring the coordinate of a next touch point after the currently identified touch point, so that a handwriting formed according to the touch point is obtained, and the handwriting fitting real-time performance is improved.

Description

Handwriting fitting method and device, terminal equipment and medium
Technical Field
The application relates to the technical field of handwriting fitting, in particular to a handwriting fitting method, a handwriting fitting device, terminal equipment and a handwriting fitting medium.
Background
With the rapid development of electronic display technology and touch screen technology, touch screens have been widely used in terminal devices, such as: various interactive electronic board devices, various smart phones and handheld devices are used in classroom teaching.
In the terminal equipment, a handwriting input function is provided, handwriting input by the existing touch screen is essentially a single-point track sequence, so that the terminal equipment mostly directly links track points by straight lines, displays lines conforming to input tracks, and finally displays symbols to be input, voice elements of different countries and the like.
In the prior art, when handwriting fitting is performed, fitting can be performed only by acquiring coordinates of two adjacent touch points after sampling time of the touch points by sampling time, so that the real-time performance of handwriting fitting is poor.
Disclosure of Invention
The application provides a handwriting fitting method, a handwriting fitting device, terminal equipment and a medium, which are used for solving the problem that in the prior art, the real-time performance of handwriting fitting is poor.
In a first aspect, the present application provides a method for handwriting fitting, the method including:
if a touch point is identified, acquiring the coordinate of the touch point and the coordinate of the last touch point of the touch point, and determining a coordinate difference value; determining a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point, and determining a middle contour point of the first contour point and the second contour point according to a second contour point of the previous touch point and the first contour point;
and determining and displaying a boundary contour line of the touch point by adopting a Bezier curve according to the first contour point, the second contour point and the middle contour point.
Further, the determining the first contour point of the touch point according to the coordinate difference and the coordinate of the touch point includes:
determining a target function corresponding to the target included angle according to the target included angle between the connecting line from the last touch point to the touch point and the abscissa axis and a pre-stored determination function corresponding to each angle range;
and determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point and the target function.
Further, before determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point, and the objective function, the method further includes:
determining a target updating function corresponding to the target size relationship according to the target size relationship between the horizontal coordinate difference value and the vertical coordinate difference value in the coordinate difference values and the updating functions corresponding to each pre-stored size relationship;
and updating the coordinate difference value according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function.
Further, after the touch point is identified and before the coordinates of the touch point and the coordinates of the last touch point of the touch point are obtained, the method further includes:
acquiring a touch pressure value and sampling time of the touch point and sampling time of a last touch point of the touch point;
determining a speed value of the touch point according to a time difference value of the sampling time of the touch point and the sampling time of the previous touch point and the coordinate difference value;
determining a function according to the speed value, the touch pressure value and a prestored width value, and determining a target width value of the touch point;
the updating the coordinate difference value according to the abscissa difference value, the ordinate difference value, and the target update function includes:
and determining an output adjustment value according to the transverse coordinate difference value, the longitudinal coordinate difference value and the target updating function, and obtaining an updated coordinate difference value according to the product of the adjustment value and the target width value.
Further, the method further comprises:
determining the handwriting width according to the two first contour points of the touch point;
determining coordinates of control points of the touch points according to the handwriting width, the coordinate difference value, the coordinates of the touch points and a pre-stored control point coordinate determination function;
and determining and displaying the stroke contour line of the contour points by adopting the Bezier curve according to the two first contour points of the touch points and the control points.
Further, the determining the coordinates of the control points of the touch points according to the handwriting width, the coordinate difference, the coordinates of the touch points, and a pre-stored coordinate determination function of the control points includes:
according to
Figure BDA0003780740480000021
Determining the abscissa of the control point of the touch point;
according to
Figure BDA0003780740480000022
Determining the vertical coordinate of a control point of the touch point;
wherein finalCenterX represents the abscissa of the control point, finalCenterY represents the ordinate of the control point, P i x represents the abscissa of the touch point, P i y represents the ordinate of the touch point, (P) i x-P i-1 x) a horizontal coordinate difference value representing the coordinate difference value, (P) i y-P i-1 y) a vertical coordinate difference value representing the coordinate difference value, realWidth representing the handwriting width,
Figure BDA0003780740480000023
Figure BDA0003780740480000024
further, after the obtaining of the coordinate of the touch point and the coordinate of the last touch point of the touch point, and before the determining of the coordinate difference, the method further includes:
acquiring the coordinate of the previous touch point;
determining a function according to the coordinates of the touch points, the coordinates of the previous touch point of the touch points, the coordinates of the next previous touch point of the previous touch point and a prestored angle value
Figure BDA0003780740480000031
Determining an angle value of the last touch point, wherein P i-2 x represents the abscissa of the last touch point, P i-2 y represents the ordinate of the last touch point, P i-1 x represents the abscissa of the last touch point, P i-1 y represents the ordinate of the last touch point, P i x represents the abscissa of the touch point, P i y represents a vertical coordinate of the touch point;
and if the angle value is smaller than a pre-stored angle threshold value, determining the previous touch point as an inflection point, and updating functions according to the angle value, the coordinate of the previous touch point, the coordinate of the next previous touch point, the handwriting width of the second contour point of the previous touch point, the distance between the previous touch point and the next previous touch point and the pre-stored coordinate value of the second contour point of the previous touch point, so as to determine the updated coordinates of the two second contour points of the previous touch point.
In a second aspect, the present application provides a handwriting fitting apparatus, the apparatus comprising:
the determining module is used for acquiring the coordinates of the touch point and the coordinates of the last touch point of the touch point if the touch point is identified, and determining a coordinate difference value; determining a first contour point of the touch point according to the coordinate difference value and the coordinate of the touch point, and determining a middle contour point of the first contour point and the second contour point according to a second contour point of the previous touch point and the first contour point;
and the fitting module is used for determining and displaying the boundary contour line of the touch point by adopting a Bezier curve according to the first contour point, the second contour point and the middle contour point.
Further, the determining module is specifically configured to determine, according to a target included angle between a connection line from the previous touch point to the touch point and an abscissa axis and a pre-stored determining function corresponding to each angle range, a target function corresponding to the target included angle; and determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point and the target function.
Further, the determining module is further configured to determine, before determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point, and the target function, a target update function corresponding to the target size relationship according to a target size relationship between a horizontal coordinate difference and a vertical coordinate difference in the coordinate difference, and an update function corresponding to each size relationship that is pre-stored; and updating the coordinate difference value according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function.
Further, the determining module is further configured to, after the touch point is identified and before the coordinate of the touch point and the coordinate of the last touch point of the touch point are obtained, obtain a touch pressure value and a sampling time of the touch point and a sampling time of the last touch point of the touch point; determining the speed value of the touch point according to the time difference value of the sampling time of the touch point and the sampling time of the last touch point and the coordinate difference value; determining a function according to the speed value, the touch pressure value and a prestored width value, and determining a target width value of the touch point; and is specifically configured to determine an output adjustment value according to the abscissa difference value, the ordinate difference value, and the target update function, and obtain an updated coordinate difference value according to a product of the adjustment value and the target width value.
Further, the determining module is further configured to determine a handwriting width according to the two first contour points of the touch point; determining coordinates of control points of the touch points according to the handwriting width, the coordinate difference value, the coordinates of the touch points and a pre-stored control point coordinate determination function;
the fitting module is further configured to determine and display a pen front contour line of the contour point by using the bezier curve according to the two first contour points of the touch point and the control point.
Further, the determining means is specifically configured to determine the method according to
Figure BDA0003780740480000041
Figure BDA0003780740480000042
Determining the abscissa of the control point of the touch point; according to
Figure BDA0003780740480000043
Determining the vertical coordinate of a control point of the touch point; wherein finalCenterX represents the abscissa of the control point, finalCenterY represents the ordinate of the control point, P i x represents the abscissa of the touch point, P i y represents the ordinate of the touch point, (P) i x-P i-1 x) a horizontal coordinate difference value (P) representing the coordinate difference value i y-P i-1 y) a vertical coordinate difference value representing the coordinate difference value, realWidth representing the handwriting width,
Figure BDA0003780740480000044
Figure BDA0003780740480000045
further, the determining module is further configured to, after the obtaining of the coordinates of the touch point and the coordinates of the previous touch point of the touch point, and before the determining of the coordinate difference, obtain coordinates of another previous touch point of the previous touch point; determining a function according to the coordinates of the touch points, the coordinates of the last touch point of the touch points, the coordinates of the next last touch point of the last touch point and a pre-stored angle value
Figure BDA0003780740480000046
Determining an angle value of the last touch point, wherein P i-2 x represents the abscissa of the last touch point, P i-2 y represents the ordinate of the last touch point, P i-1 x represents the abscissa of the last touch point, P i-1 y represents the ordinate of the last touch point, P i x represents the abscissa of the touch point, P i y represents a vertical coordinate of the touch point; if the angle value is smaller than a pre-stored angle threshold value, determining that the last touch is performedAnd determining the coordinates of the two updated second contour points of the previous touch point according to the angle value, the coordinate of the previous touch point, the coordinate of the next previous touch point, the handwriting width of the second contour point of the previous touch point, the distance between the previous touch point and the next previous touch point and a pre-stored coordinate value updating function of the second contour point of the previous touch point.
In a third aspect, the present application provides a terminal device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to execute the computer program stored in the memory to implement the steps of any of the above-described handwriting fitting methods.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the above-described handwriting fitting methods.
The application provides a handwriting fitting method, a handwriting fitting device, terminal equipment and a medium, wherein in the method, if a touch point is identified, the coordinate of the touch point and the coordinate of the last touch point of the touch point are obtained, and a coordinate difference value is determined; determining a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point, and determining a middle contour point of the first contour point and the second contour point according to a second contour point of the previous touch point and the first contour point; and determining and displaying a boundary contour line of the touch point by adopting a Bezier curve according to the first contour point, the second contour point and the middle contour point. According to the method, when the touch point is identified, the first contour point of the touch point can be determined according to the coordinate of the touch point and the coordinate of the last touch point of the touch point, and the boundary contour line of the touch point is determined by adopting the Bezier curve according to the first contour point, the second contour point of the last touch point and the middle contour point of the first contour point and the second contour point.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a terminal device 100 provided in the present application;
fig. 2 is a block diagram of a software structure of a terminal device 100 provided in the present application;
FIG. 3 is a process diagram of a handwriting fitting method provided herein;
fig. 4 is a schematic diagram of a track skeleton line formed by connecting touch points according to the present disclosure;
FIG. 5 is a schematic diagram of a handwriting provided by the present application;
FIG. 6 is a schematic illustration of a method provided herein for determining coordinates of a first contour point;
FIG. 7 is a schematic illustration of another method provided herein for determining coordinates of a first contour point;
FIG. 8 is another illustrative diagram provided herein for determining coordinates of a first contour point;
FIG. 9 is a schematic illustration of another method provided herein for determining coordinates of a first contour point;
FIG. 10 is a schematic of a first fit provided herein;
FIG. 11 is a schematic illustration of a plurality of point fits provided herein;
FIG. 12 is a schematic diagram of a fitted handwriting provided by the present application;
FIG. 13 is a schematic diagram of a real handwriting outline provided by the present application;
FIG. 14 is a schematic view of an inflection point provided in the present application;
FIG. 15 is a schematic diagram of handwriting fitting at an inflection point according to the present application;
FIG. 16 is a schematic diagram of a real handwriting provided by the present application;
FIG. 17 is a schematic view of a modification provided herein;
FIG. 18 is a schematic process diagram of handwriting fitting provided herein;
fig. 19 is a schematic structural diagram of a handwriting fitting apparatus provided in the present application.
Detailed Description
In the prior art, when handwriting fitting is performed, coordinate values of a touch point and two adjacent touch points after the touch point at a sampling time are obtained, a first touch point is used as a starting point, a second touch point is used as a control point, a third touch point is used as an end point, handwriting fitting is performed by using a built-in second-order bezier curve in a static (Path) class to obtain a curve after fitting a connecting line formed by connecting the three adjacent touch points, wherein the starting point of the fitted curve is the first touch point, the end point is the third touch point, and the curve is located in a triangle formed by connecting the three adjacent touch points, so that a target curve formed by connecting each touch point and fitting a track skeleton line is obtained, a circle corresponding to each touch point is obtained by using each touch point on the target curve as a circle center and using a preset width as a diameter, and a curve formed by a line segment tangent to each circle is used as a boundary contour line of the handwriting, so that the handwriting after fitting is obtained.
In the prior art, when handwriting fitting is performed, fitting can be performed only by acquiring coordinates of two adjacent touch points after sampling time of the current touch point, so that the real-time performance of handwriting fitting is poor.
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In some embodiments, fig. 1 is a schematic structural diagram of a terminal device 100 provided herein. It should be understood that the terminal device 100 shown in fig. 1 is only an example, and the terminal device 100 may have more or less components than those shown in fig. 1, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of a terminal device 100 according to an exemplary embodiment is exemplarily shown in fig. 1. As shown in fig. 1, the terminal device 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (Wi-Fi) module 170, a processor 180, a bluetooth module 181, and a power supply 180.
The RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 120 may be used to store software programs and data. The processor 180 performs various functions of the terminal device 100 and data processing by executing software programs or data stored in the memory 120. The memory 120 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 120 stores an operating system that enables the terminal device 100 to operate. The memory 120 in the present application may store an operating system and various application programs, and may also store program codes for executing the handwriting fitting method of the present application.
The display unit 130 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the terminal device 100, and specifically, the display unit 130 may include a touch screen 131 disposed on the front surface of the terminal device 100 and capable of collecting touch operations, such as button clicking, by the user thereon or nearby.
The display unit 130 may also be used to display a Graphical User Interface (GUI) of information input by or provided to the user and various menus of the terminal apparatus 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front surface of the terminal device 100. The display screen 132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display a screen display area of the terminal in the present application.
The touch screen 131 may cover the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to implement the input and output functions of the terminal device 100, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 130 may display the application programs and the corresponding operation steps.
The camera 140 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The terminal device 100 may further comprise at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, a temperature sensor 154. The terminal device 100 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and the like.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The terminal device 100 may further be configured with a volume button for adjusting the volume of the sound signal, and may also be configured to combine other buttons to adjust the closed region. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is then output to the RF circuit 110 for transmission to, for example, another terminal or to the memory 120 for further processing.
Wi-Fi belongs to a short-distance wireless transmission technology, and the terminal device 100 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 170, and provides wireless broadband internet access for the user.
The processor 180 is a control center of the terminal device 100, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal device 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, processor 180 may include one or more processing units; the processor 180 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 180. The processor 180 may run an operating system, an application program, user interface display, and touch response, and the handwriting fitting method of the present application. Further, the processor 180 is coupled with the display unit 130.
And the bluetooth module 181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the terminal device 100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) that is also equipped with a bluetooth module through the bluetooth module 181, so as to perform data interaction.
The terminal device 100 also includes a power supply 180 (such as a battery) for powering the various components. The power supply may be logically connected to the processor 180 through a power management system to manage charging, discharging, power consumption, etc. through the power management system. The terminal device 100 may further be configured with a power button for powering on and off the terminal, and locking the screen.
Fig. 2 is a block diagram of a software structure of a terminal device 100 provided in the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer, from top to bottom, respectively.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include phone, mms, wi-Fi, wechat, information, alarm, gallery, calendar, WLAN, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, dialed and received calls, browsing history and bookmarks, phone books, short messages, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying a picture.
The phone manager is used to provide a communication function of the terminal device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, etc., to the application.
The notification manager allows the application to display notification information (e.g., the message content of a short message) in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to notify download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scrollbar text in a status bar at the top of the system, such as a notification of a running application in the background, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal vibrates, an indicator light flashes, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide a fusion of the 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
A 2D (an animation mode) graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In order to improve the real-time performance of handwriting fitting, the application provides a handwriting fitting method, a handwriting fitting device, terminal equipment and a handwriting fitting medium.
Fig. 3 is a schematic process diagram of a handwriting fitting method provided in the present application, where the process includes the following steps:
s301: if a touch point is identified, acquiring the coordinate of the touch point and the coordinate of the last touch point of the touch point, and determining a coordinate difference value; and determining a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point, and determining a middle contour point of the first contour point and the second contour point according to a second contour point of the previous touch point and the first contour point.
In order to improve the real-time performance of handwriting fitting, the handwriting fitting method provided by the application is applied to terminal equipment, wherein the terminal equipment can be an intelligent terminal with an interactive touch display screen, such as a tablet computer and a mobile terminal, and can also be other equipment with the interactive touch display screen, such as interactive electronic board equipment; in particular, the present application does not limit this.
In order to improve the real-time performance of handwriting fitting, the terminal device determines whether a touch point is identified according to a touch display screen of the terminal device, namely, when the terminal device receives a pressing operation or a clicking operation through the touch display screen, the terminal device determines that the touch point is identified.
After the touch point is identified, the terminal equipment acquires the coordinate of the touch point on a coordinate system of the touch display screen and acquires the coordinate of the last touch point of the touch point, wherein the coordinate of the last touch point is acquired and stored when the terminal equipment identifies the last touch point; and determining a coordinate difference value between the coordinate of the touch point and the coordinate of the previous touch point according to the coordinate of the touch point and the coordinate of the previous touch point, wherein the coordinate difference value comprises a horizontal coordinate difference value between the horizontal coordinate of the touch point and the horizontal coordinate of the previous touch point and a vertical coordinate difference value between the vertical coordinate of the touch point and the vertical coordinate of the previous touch point.
According to the determined coordinate difference and the coordinate of the touch point, determining a first contour point of the touch point, namely determining the coordinates of two first contour points on two sides of a connecting line of the touch point and the previous touch point, wherein the first contour point located in the range of the connecting line of the touch point and the previous touch point and the ordinate axis can be called a first inner contour point, and the first contour point located outside the range of the connecting line of the touch point and the previous touch point and the ordinate axis can be called a first outer contour point; a first contour point located within a range of a connecting line between the touch point and the previous touch point and the abscissa axis may also be referred to as a first inner contour point, and a first contour point located outside the range of the connecting line between the touch point and the previous touch point and the abscissa axis may be referred to as a first outer contour point; specifically, a coordinate determination function of a first contour point of a touch point is pre-saved, a coordinate difference value and coordinates of the touch point are input into the coordinate determination function of the first contour point, and coordinates of two first contour points on two sides of a connecting line between the touch point and a previous touch point are determined;
determining a first sum of the abscissa plus the ordinate difference and a first difference of the abscissa minus the ordinate difference according to the ordinate difference of the abscissa and the ordinate difference of the touch point, and determining a second sum of the ordinate plus the abscissa difference and a second difference of the ordinate minus the abscissa difference according to the abscissa difference of the ordinate and the ordinate difference of the touch point; if the connecting line of the touch point and the previous touch point is inclined, determining the abscissa of the two first contour points from the first sum and the first difference according to the relative positions of the two first contour points on the two sides of the connecting line compared with the touch point, and determining the ordinate of the two first contour points from the second sum and the second difference; if the connecting line of the touch point and the previous touch point is a horizontal connecting line, determining the abscissa of the two first contour points as the abscissa of the touch point, and respectively setting the ordinate of the two first contour points as a second sum value and a second difference value; if the connecting line of the touch point and the last touch point is a vertical connecting line, the vertical coordinates of the two first contour points are determined as the vertical coordinates of the touch point, and the horizontal coordinates of the two first contour points are respectively a first sum value and a first difference value.
Determining a middle contour point of the first contour point of the touch point and the second contour point of the last touch point of the touch point according to the second contour point of the last touch point of the touch point and the first contour point of the touch point; determining a first average value of the first sum value as the abscissa of the middle contour point according to the first sum value of the abscissa of the second contour point and the abscissa of the first contour point; and determining a second average value of the second sum values as the ordinate of the middle contour point according to the second sum values of the ordinate of the second contour point and the ordinate of the first contour point.
S302: and determining and displaying a boundary contour line of the touch point by adopting a Bezier curve according to the first contour point, the second contour point and the middle contour point.
After the first contour point, the second contour point and the middle contour point are determined, the terminal device determines a boundary contour line of the touch point by using the Bezier curve with the second contour point as a starting point, the middle contour point as a control point and the first contour point as an end point, and displays the generated boundary contour line on the touch display screen, wherein the two boundary contour lines of the touch point are respectively positioned at two sides of a connecting line of the touch point and the previous touch point, specifically, the first contour point, the second contour point and the middle contour point which are positioned at the same side of the connecting line of the touch point and the previous touch point are respectively used as the starting point, the middle contour point is used as the control point and the second contour point is used as the end point, and the Bezier curve is used to determine a boundary contour line at the same side of the touch point.
Fig. 4 is a schematic diagram of a track skeleton line formed by connecting touch points according to the present disclosure, where as shown in fig. 4, the track skeleton line represents a horizontal line; fig. 5 is a schematic diagram of a handwriting provided by the present application, and as shown in fig. 5, on the basis of a touch point skeleton, the inner and outer contour points are fitted to determine the handwriting according to the calculated width of the inner and outer contour points as the handwriting width.
According to the method, when the touch point is identified, the first contour point of the touch point can be determined according to the coordinate of the touch point and the coordinate of the last touch point of the touch point, the boundary contour line of the touch point is determined by adopting a Bezier curve according to the first contour point, the second contour point of the last touch point and the middle contour point of the first contour point and the second contour point, and the boundary contour line of the touch point can be determined and displayed in real time without acquiring the coordinate of the next touch point after the currently identified touch point, so that the handwriting formed according to the touch point is obtained, and the real-time performance of handwriting fitting is improved.
As a possible implementation manner, in the application, after the terminal device identifies the touch point, the terminal device further performs preprocessing, specifically, according to a coordinate difference between a coordinate of the touch point and a coordinate of a previous touch point, determines whether a horizontal coordinate difference and a vertical coordinate difference in the coordinate difference are both greater than a corresponding coordinate difference threshold, if yes, then executes subsequent processing to determine a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point; if not, the next touch point is continuously identified.
Specifically, math.abs (P) was determined i-1 x-P i x)>D. And Math.abs (P) i-1 y-P i x)>And D, executing the subsequent step of determining a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point, wherein Math i-1 x-P i x) represents the difference in the abscissa, math i-1 y-P i x) represents a vertical coordinate difference value, and D represents a preset coordinate difference value threshold value.
In the embodiment of the application, the relative distance principle is adopted when the touch points are preprocessed, and redundant touch points are removed through preprocessing, so that on one hand, the jitter caused by subjective and objective factors is eliminated, the original handwriting characteristics are kept, on the other hand, the number of the touch points is reduced, the operand is reduced, and the writing fluency of a user is improved.
In some embodiments, in order to determine the first contour point of the touch point, on the basis of the foregoing embodiments, in this application, the determining the first contour point of the touch point according to the coordinate difference and the coordinate of the touch point includes:
determining a target function corresponding to the target included angle according to the target included angle between the connecting line from the last touch point to the touch point and the abscissa axis and a pre-stored determination function corresponding to each angle range;
and determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point and the target function.
In order to determine the first contour point of the touch point, the terminal device determines a target included angle between a connecting line and an abscissa axis according to the connecting line from the last touch point to the touch point and the abscissa axis, and determines an included angle between the abscissa axis and the connecting line in the counterclockwise direction when determining the target included angle, so the included angle may be greater than 180 degrees or less than 180 degrees.
The terminal device prestores a determining function corresponding to each angle range, the determining function is used for determining coordinates of first contour points of touch points, determining a determining function corresponding to a target angle range where a target included angle is located according to a predetermined target included angle and the determining function corresponding to each angle range, and determining the determining function corresponding to the target angle range as a target function corresponding to the target included angle.
And inputting the coordinates of the touch points and the coordinate difference value into the objective function according to the objective function, the coordinates of the touch points and the coordinate difference value, and determining the coordinates of the first contour points of the touch points.
For example, fig. 6 is a schematic diagram for determining coordinates of a first contour point provided in the present application, as shown in fig. 6, an abscissa axis of a coordinate system of a touch display screen is located at an uppermost (upper in fig. 6) side, and an abscissa axis is a coordinate system of the uppermost contour pointThe positive direction is the right (right in fig. 6) direction; the ordinate axis of the coordinate system of the touch display screen is located on the leftmost (left in fig. 6) side, and the positive direction of the ordinate axis is the downward (downward in fig. 6) direction; the line from the last touch point to the touch point is in the upper left (upper left in FIG. 6) direction, and the touch point P i Has the coordinates of (P) i x,P i y); last touch point P i-1 Has a coordinate of (P) i-1 x,P i-1 y) at this time P i x<P i-1 x,P i y<P i-1 y, the target included angle between the connecting line and the abscissa is in the range of 90 degrees to 180 degrees, a first contour point in the range of the connecting line and the ordinate axis is called a first inner contour point, and a first contour point outside the range of the connecting line and the ordinate axis is called a first outer contour point; the objective function for determining the coordinates of the first outer contour point of the touch point is thus X = P i x+xDis,Y=P i y-yDis, the coordinate of the first outline point is (P) i x+xDis,P i y-yDis), the objective function of the coordinates of the first inner contour point is X = P i x—xDis,Y=P i y + yDis, so the first inner contour point has the coordinate of (P) i x-xDis,P i y + yDis), where xDis represents the horizontal coordinate difference value and yDis represents the vertical coordinate difference value.
Fig. 7 is another schematic diagram for determining coordinates of a first contour point provided in the present application, where as shown in fig. 7, a connection line from a previous touch point to a touch point is in a lower left direction (lower left direction in fig. 7), and a touch point P is located at a touch point P i Has the coordinates of (P) i x,P i y); last touch point P i-1 Has a coordinate of (P) i-1 x,P i-1 y) at this time P i x<P i-1 x,P i y>P i-1 y, the target included angle between the connecting line and the abscissa is in the range of 180-270 degrees, a first contour point in the range of the connecting line and the abscissa axis is called a first inner contour point, and a first contour point outside the range of the connecting line and the abscissa axis is called a first outer contour point; the objective function for determining the coordinates of the first outer contour point of the touch point is thus X = P i x-xDis,Y=P i y-yDis, the coordinate of the first outline point is (P) i x-xDis,P i y-yDis), the objective function of the coordinates of the first inner contour point being X = P i x+xDis,Y=P i y + yDis, so the first inner contour point has the coordinate of (P) i x+xDis,P i y + yDis), where xDis represents the horizontal coordinate difference value and yDis represents the vertical coordinate difference value.
Fig. 8 is another schematic diagram for determining coordinates of a first contour point provided by the present application, where as shown in fig. 8, a connection line from a top touch point to a touch point is in a lower-right direction (lower-right direction in fig. 8), and a touch point P is located at a touch point P i Has a coordinate of (P) i x,P i y); last touch point P i-1 Has the coordinates of (P) i-1 x,P i-1 y) at this time P i x>P i-1 x,P i y>P i-1 y, the target included angle between the connecting line and the abscissa is in the range of 270 degrees to 360 degrees, a first contour point in the range of the connecting line and the abscissa axis is called a first inner contour point, and a first contour point outside the range of the connecting line and the abscissa axis is called a first outer contour point; the objective function for determining the coordinates of the first outer contour point of the touch point is thus X = P i x+xDis,Y=P i y-yDis, the first outline point coordinate is (P) i x+xDis,P i y-yDis), the objective function of the coordinates of the first inner contour point being X = P i x-xDis,Y=P i y + yDis, so the first inner contour point has the coordinate of (P) i x-xDis,P i y + yDis), where xDis represents the horizontal coordinate difference value and yDis represents the vertical coordinate difference value.
Fig. 9 is another schematic diagram for determining coordinates of a first contour point provided in the present application, where as shown in fig. 9, a connection line from a previous touch point to a touch point is in an upper right direction (upper right in fig. 9), and a touch point P is located at a touch point P i Has the coordinates of (P) i x,P i y); last touch point P i-1 Has a coordinate of (P) i-1 x,P i-1 y) at this time P i x>P i-1 x,P i y<P i-1 y, the target included angle between the connecting line and the abscissa is in the range of 0-90 degrees, a first contour point in the range of the connecting line and the ordinate axis is called a first inner contour point, and a first contour point outside the range of the connecting line and the ordinate axis is called a first outer contour point; the objective function for determining the coordinates of the first outer contour point of the touch point is thus X = P i x+xDis,Y=P i y + yDis, the coordinate of the first outline point is (P) i x+xDis,P i y + yDis), the objective function of the coordinates of the first inner contour point being X = P i x-xDis,Y=P i y-yDis, so that the first inner contour point has the coordinate (P) i x-xDis,P i y-yDis), where xDis represents the difference in horizontal coordinates and yDis represents the difference in vertical coordinates.
In some embodiments, in order to determine the first contour point of the touch point more accurately, on the basis of the foregoing embodiments, before determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point, and the objective function, the method further includes:
determining a target updating function corresponding to the target size relationship according to the target size relationship between the horizontal coordinate difference value and the vertical coordinate difference value in the coordinate difference values and the pre-stored updating function corresponding to each size relationship;
and updating the coordinate difference value according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function.
In order to more accurately determine the coordinates of the first contour point of the touch point, the terminal device further updates the coordinate difference value, and determines a target size relationship between the abscissa difference value and the ordinate difference value according to the abscissa difference value and the ordinate difference value in the coordinate difference value, wherein the target size relationship may be that the abscissa difference value is larger than the ordinate difference value or that the abscissa difference value is smaller than the ordinate difference value.
The terminal device prestores updating functions corresponding to each size relationship, wherein each size relationship comprises a relationship that the transverse coordinate difference value is larger than the longitudinal coordinate difference value and a relationship that the transverse coordinate difference value is smaller than the longitudinal coordinate difference value, and the updating functions corresponding to the target size relationship are determined as target updating functions according to the determined target size relationship.
And respectively inputting the horizontal coordinate difference value and the vertical coordinate difference value into a target updating function according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function in the coordinate difference values, so as to obtain an updated horizontal coordinate difference value and an updated vertical coordinate difference value, and form an updated coordinate difference value.
Specifically, if the abscissa difference is larger than the ordinate difference, i.e., Δ x>At Δ y, the target update function is
Figure BDA0003780740480000131
If the abscissa difference is smaller than the ordinate difference, i.e. Δ x<At Δ y, the target update function is
Figure BDA0003780740480000132
xDis is expressed as an updated abscissa difference, yDis is expressed as an updated ordinate difference, Δ y is expressed as an ordinate difference, and Δ x is expressed as an abscissa difference, wherein,
Figure BDA0003780740480000133
in order to make the determined handwriting more beautiful and have the feature of a common writing pen shape, on the basis of the foregoing embodiments, in the present application, after the touch point is identified, before the coordinate of the touch point and the coordinate of the last touch point of the touch point are obtained, the method further includes:
acquiring a touch pressure value and sampling time of the touch point and sampling time of a last touch point of the touch point;
determining a speed value of the touch point according to a time difference value of the sampling time of the touch point and the sampling time of the previous touch point and the coordinate difference value;
determining a function according to the speed value, the touch pressure value and a prestored width value, and determining a target width value of the touch point;
the updating the coordinate difference value according to the abscissa difference value, the ordinate difference value and the target update function includes:
and determining an output adjustment value according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function, and obtaining an updated coordinate difference value according to the product of the adjustment value and the target width value.
In order to enable the determined handwriting effect to be more attractive and have the characteristic of a common writing pen shape, the terminal equipment acquires the touch pressure value and the sampling time of a touch point and the sampling time of the last touch point of the touch point, and determines the time difference value between the sampling time of the touch point and the sampling time of the last touch point; determining a speed value of the touch point according to the time difference value and the coordinate difference value; specifically, the distance between the touch point and the previous touch point is determined according to the horizontal coordinate difference value and the vertical coordinate difference value in the coordinate difference values, and the ratio of the distance between the touch point and the previous touch point to the time difference value is determined as the speed value of the touch point.
Specifically, according to the sampling time ti of the touch point and the sampling time ti-1 of the previous touch point, determining a time difference value delta t = | ti-ti-1|; according to the time difference value delta t and the coordinate difference value (delta x, delta y), determining the speed value of the touch point
Figure BDA0003780740480000141
Wherein V i The speed value of the touch point is represented, Δ x represents the horizontal coordinate difference value, and Δ y represents the vertical coordinate difference value.
And inputting the speed value and the touch pressure value into the width value determining function according to the determined speed value, the touch pressure value of the touch point and a pre-stored width value determining function, and determining a target width value of the touch point.
In particular, according to the determined velocity value V i Touch pressure value f of touch point i And determining the target width value width = W-a V of the touch point i +b*f i Wherein width represents the target width value of the touch point, a and b are pre-stored constants, and W represents a pre-stored reference width value.
As a possible implementation, in the present application, the velocity value V is determined i And touch pressure value f of touch point i Rear, counter velocity value V i And touch pressure value f of touch point i And normalizing the reference width value to obtain a normalized velocity value V i And touch pressure value f of touch point i And a reference widthAnd inputting the value into a width value determining function, and determining a target width value of the touch point.
Obtaining a corresponding adjustment value according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function, and specifically, inputting the horizontal coordinate difference value into the target updating function to obtain an output adjustment value of the horizontal coordinate; inputting the difference value of the vertical coordinates into a target updating function to obtain an output adjustment value of the vertical coordinates; determining a product value of the adjustment value of the abscissa and the target width value and a product value of the adjustment value of the ordinate and the target width value according to the adjustment value of the abscissa, the adjustment value of the ordinate and the target width value; and determining the product value of the adjustment value of the abscissa and the target width value as an updated abscissa difference value, determining the product value of the adjustment value of the ordinate and the target width value as an updated ordinate difference value, and obtaining an updated coordinate difference value according to the updated abscissa difference value and the updated ordinate difference value.
Specifically, when the abscissa difference is larger than the ordinate difference, i.e., Δ x>Δ y, the target update function is
Figure BDA0003780740480000142
Thus, at Δ x>Δ y, the updated abscissa difference value is determined as
Figure BDA0003780740480000143
The updated difference value of the vertical coordinate is
Figure BDA0003780740480000144
When the difference in the abscissa is smaller than the difference in the ordinate, i.e. Δ x<Δ y, the target update function is
Figure BDA0003780740480000145
Thus, at Δ x<Δ y, the updated abscissa difference is determined as
Figure BDA0003780740480000146
The updated difference value of the vertical coordinate is
Figure BDA0003780740480000147
In order to determine the tip contour line of the touch point, on the basis of the foregoing embodiments, in this application, the method further includes:
determining the handwriting width according to the two first contour points of the touch point;
determining coordinates of control points of the touch points according to the handwriting width, the coordinate difference value, the coordinates of the touch points and a pre-stored control point coordinate determination function;
and determining and displaying the pen front contour line of the contour point by adopting the Bezier curve according to the two first contour points of the touch point and the control point.
In order to determine the pen front contour line of the touch point, the terminal device determines the distance between the two first contour points according to the coordinates of the two first contour points of the touch point, and determines the distance between the two first contour points as the handwriting width.
Specifically, according to the touch point P i First outer contour point O of i And a first inner contour point I i Determining the width of the handwriting as
Figure BDA0003780740480000151
Wherein realWidth represents a touch point P i Handwriting width value of O i x denotes the abscissa of the first outer contour point, O i y denotes the ordinate of the first outer contour point, I i x denotes the abscissa of the first inner contour point, I i y denotes the ordinate of the first inner contour point.
And inputting the handwriting width, the coordinate difference value and the coordinates of the touch points into the control point coordinate determination function according to the handwriting width, the coordinate difference value, the coordinates of the touch points and a prestored control point coordinate determination function, and determining the coordinates of the control points of the touch points.
In order to determine the contour points of the control points, on the basis of the foregoing embodiments, in this application, the determining the coordinates of the control points of the touch points according to the handwriting width, the coordinate difference, the coordinates of the touch points, and a pre-stored control point coordinate determination function includes:
according to
Figure BDA0003780740480000152
Determining the abscissa of the control point of the touch point;
according to
Figure BDA0003780740480000153
Determining the vertical coordinate of a control point of the touch point;
wherein finalCenterX represents the abscissa of the control point, finalCenterY represents the ordinate of the control point, P i x represents the abscissa of the touch point, P i y represents the ordinate of the touch point, (P) i x-P i-1 x) a horizontal coordinate difference value representing the coordinate difference value, (P) i y-P i-1 y) an ordinate difference value representing the coordinate difference value, realWidth representing the handwriting width,
Figure BDA0003780740480000154
Figure BDA0003780740480000155
the terminal device compares the handwriting width realWidth and the horizontal coordinate difference value (P) of the coordinate difference value i x-P i-1 x), abscissa P of touch point i x and the absolute value of the ratio of the vertical coordinate difference value to the horizontal coordinate difference value of the coordinate difference value, highettWiddthRatio, are input into the horizontal coordinate determination function of the control point coordinate determination function
Figure BDA0003780740480000156
The abscissa finalcentrx of the control point is determined.
The terminal device compares the handwriting width highettwidth ratio and the vertical coordinate difference value (P) of the coordinate difference value i y-P i-1 y), ordinate P of touch point i y and the absolute value of the ratio of the horizontal coordinate difference value to the vertical coordinate difference value WidthHightRatio of the coordinate difference values are input into the vertical coordinate of the control point coordinate determination functionDetermining a function
Figure BDA0003780740480000157
The ordinate finalcentry of the control point is determined.
After the two first contour points of the touch point and the control point are determined, the terminal device determines and displays a pen front contour line of the touch point by using any one first contour point as a starting point and another first contour point as an end point and by using a Bezier curve based on the starting point, the control point and the end point.
Specifically, fig. 10 is a schematic diagram of the first fitting provided in the present application, and as shown in fig. 10, a touch point P is shown 0 As a starting point, the inner contour point and the outer contour point of the starting point are both the starting points, P i As the current touch point, the finalCenter is the calculated current touch point P i The control point of (1), imid being a starting point P 0 And the current touch point P i The middle contour point of the inner contour point of (1), omid being a starting point P 0 And the current touch point P i Is a middle contour point of the outer contour point of (1).
The first fitting procedure comprises three steps, the first step is from P 0 To Imid, although a second-order bezier curve is used, only two touch points are caused due to the coincidence of the starting point and the inner contour point of the starting point, so that the first-order bezier curve is synthesized; the second step is from Imid to Omid, taking Imid as a starting point, finalCenter as a control point and Omid as an end point, and fitting a synthetic curve according to the three points; the third step is from Omid to P 0 Because the outline point of the starting point is coincident with the starting point, only two touch points are caused, and therefore the first-order Bezier curve is also synthesized in a fitting mode.
FIG. 11 is a schematic representation of a plurality of point fits provided herein, as shown in FIG. 11, P i Is the current touch point, the finalCenter is the current touch point P i The calculated control point Imid is the current touch point P i The inner contour point and the last touch point P i-1 The middle contour point of the inner contour point, omid is the current touch point P i The outer contour point and the last touch point P i-1 And LImid is the lastThe middle contour point of the inner contour point calculated in the fitting process of the second time, LOmid is the middle contour point of the outer contour point calculated in the fitting process of the last time.
The process of fitting the plurality of points comprises three steps, wherein the first step is to use LImid as a starting point and use a current touch point P i Last touch point P i-1 The inner contour point of the first fitting is a control point, and the Imid is an end point; secondly, performing second fitting by taking Imid as a starting point, finalCenter as a control point and an Omid end point; the third step is that Omid is taken as a starting point and P is taken as i-1 The third fitting was performed with the outer contour point of (1) as the control point and LOmid as the end point.
Fig. 12 is a schematic diagram of a fitted handwriting provided by the present application, and as shown in fig. 12, a middle line in fig. 12 is a trajectory skeleton line formed by connecting touch points, and other lines are a boundary contour line and a tip contour line after fitting.
Fig. 13 is a schematic diagram of a real handwriting outline provided by the present application, and as shown in fig. 13, each touch point except for the first touch point in the handwriting outline has a corresponding boundary contour line and a corresponding stroke front contour line.
In order to make the fitted handwriting more beautiful, on the basis of the foregoing embodiments, in this application, after the obtaining of the coordinate of the touch point and the coordinate of the last touch point of the touch point, before the determining of the coordinate difference, the method further includes:
acquiring the coordinate of the previous touch point;
determining a function according to the coordinates of the touch points, the coordinates of the previous touch point of the touch points, the coordinates of the next previous touch point of the previous touch point and a prestored angle value
Figure BDA0003780740480000161
Determining an angle value of the last touch point, wherein P i-2 x represents the abscissa of the last touch point, P i-2 y represents the ordinate of the last touch point, P i-1 x represents the abscissa of the last touch point, P i-1 y represents the last oneOrdinate, P, of touch point i x represents the abscissa of the touch point, P i y represents the ordinate of the touch point;
and if the angle value is smaller than a pre-stored angle threshold value, determining the previous touch point as an inflection point, and updating functions according to the angle value, the coordinate of the previous touch point, the coordinate of the next previous touch point, the handwriting width of the second contour point of the previous touch point, the distance between the previous touch point and the next previous touch point and the pre-stored coordinate value of the second contour point of the previous touch point, so as to determine the updated coordinates of the two second contour points of the previous touch point.
When the touch point is an inflection point, if a conventional handwriting fitting method is adopted, the fitted handwriting effect is poor, so that the terminal equipment can also adjust the coordinates of the contour point at the inflection point; after the terminal equipment identifies the touch point, whether the last touch point of the touch point is an inflection point is identified.
The terminal equipment acquires the coordinates of the last touch point, and inputs the coordinates of the touch point, the coordinates of the last touch point and the coordinates of the last touch point into a pre-stored angle value determination function
Figure BDA0003780740480000171
Determining the angle value of the last touch point, wherein P i-2 x represents the abscissa of the last touch point, P i-2 y represents the ordinate of the next previous touch point, P i-1 x represents the abscissa of the last touch point, P i-1 y represents the ordinate of the last touch point, P i x represents the abscissa of the touch point, P i y represents the ordinate of the touch point.
Specifically, the terminal device obtains coordinates (P) of another previous touch point of the previous touch point i-2 x,P i-2 y) according to the abscissa P of another last touch point i-2 x, abscissa P of last touch point i-1 x, determining x 1 =P i-2 x-P i-1 x; according to the abscissa P of the last touch point i-1 X, sit across of touch-control pointMark P i x, determining x 2 =P i x-P i-1 x; according to the ordinate P of another last touch point i-2 y, ordinate P of last touch point i-1 y, determining y 1 =P i-2 y-P i-1 y; according to the ordinate P of a touch point on the touch i-1 y, ordinate P of touch point i y, determining y 2 =P i y-P i-1 y, thus determining the last touch point P i-2 And the last touch point P i-1 Is a distance of
Figure BDA0003780740480000172
Last touch point P i-1 And touch point P i A distance of
Figure BDA0003780740480000173
Thus, it is possible to provide
Figure BDA0003780740480000174
Last touch point P i-1 The angle value of (c) is Arccos (P) i-1 ))。
In order to determine whether the last touch point is an inflection point, in the present application, an angle threshold is also pre-stored in the terminal device, where the angle threshold is a preset angle value, for example, the angle threshold may be 90 degrees, or may be other preset values, which is not limited in the present application; and if the determined angle value of the last touch point is smaller than the angle threshold value which is stored in advance, determining the last touch point as an inflection point.
Fig. 14 is a schematic view of an inflection point provided in the present application, as shown in fig. 14, a touch point P in fig. 14 i Is a point of inflection, touch point P i And touch point P i-1 Two contour points on the vertical line of the connecting line are respectively inflection points P i Inner and outer contour points.
FIG. 15 is a schematic diagram of handwriting fitting at an inflection point provided by the present application, as shown in FIG. 15, the effect of handwriting at the inflection point is poor; FIG. 16 is a schematic diagram of a real handwriting provided by the present application, and as shown in FIG. 16, the handwriting width at the inflection point of the real handwriting is wide.
Therefore, in order to make the effect of the fitted handwriting more beautiful, in the present application, the terminal device inputs the above values to a pre-stored coordinate value updating function of the second contour point of the previous touch point according to the angle value, the coordinate of the previous touch point, the coordinate of the next previous touch point, the handwriting width of the second contour point of the previous touch point, and the distance between the previous touch point and the next previous touch point, and determines the coordinates of the two updated second contour points of the previous touch point output by the coordinate value updating function, including the coordinates of the updated inner contour point and the coordinates of the updated outer contour point.
Wherein the prestored abscissa value updating function of the inner contour point of the last touch point is
Figure BDA0003780740480000181
Figure BDA0003780740480000182
The pre-stored ordinate value of the inner contour point of the last touch point is updated as
Figure BDA0003780740480000183
Figure BDA0003780740480000184
Wherein, thick represents the handwriting width of the second contour point of the last touch point, lastDis represents the distance between the last touch point and the next last touch point, P i-1 x represents the abscissa of the last touch point, P i-1 y represents the ordinate of the last touch point, P i-2 x represents the abscissa of the last touch point, P i-2 y represents the longitudinal coordinate of another last touch point, and is less than P i-1 Representing the angle value of the last touch point, wherein InModifyX represents the abscissa of the updated inner contour point of the last touch point; inModifyY represents the ordinate of the updated inner contour point of the last touch point; the prestored abscissa updating function of the outer contour point of the last touch point is OutModifyX =2P i-1 x-InModifyX, wherein the pre-stored function for updating the longitudinal coordinate value of the outer contour point of the last touch point is OutModifyY =2P i-1 y-InModifY, outModifyX represents the horizontal coordinate of the updated outer contour point of the previous touch point; outModifyY represents the vertical coordinate of the updated outer contour point of the last touch point.
FIG. 17 is a schematic diagram of the present application after modification, as shown in FIG. 17, showing an inflection point P in FIG. 17 i Is deflected to the left (left in fig. 17), resulting in a corrected inner contour point, inflection point P i The outer contour point of (2) is deflected to the right (right in fig. 17), resulting in a corrected outer contour point.
The handwriting fitting method of the present application is described below by a specific embodiment, and fig. 18 is a schematic diagram of a process of handwriting fitting provided by the present application, as shown in fig. 18, the process includes the following steps:
s1801: and identifying a touch point.
S1802: acquiring a touch pressure value and sampling time of a touch point and sampling time of a last touch point of the touch point; determining a speed value of the touch point according to a time difference value of the sampling time of the touch point and the sampling time of the previous touch point and a coordinate difference value; determining a function according to the speed value, the touch pressure value and a prestored width value, and determining a target width value of the touch point; and acquiring the coordinates of the touch point and the coordinates of the last touch point of the touch point, and determining a coordinate difference value.
S1803: and determining whether the horizontal coordinate difference value and the vertical coordinate difference value in the coordinate difference value are both greater than a preset coordinate difference value threshold value, if so, performing S1804, otherwise, continuing to perform S1801.
S1804: determining a target function corresponding to the target included angle according to the target included angle between the connecting line from the last touch point to the touch point and the abscissa axis and a pre-stored determination function corresponding to each angle range; determining a target updating function corresponding to the target size relationship according to the target size relationship between the horizontal coordinate difference value and the vertical coordinate difference value in the coordinate difference values and the pre-stored updating function corresponding to each size relationship; determining an output adjustment value according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function, obtaining an updated coordinate difference value according to the product of the adjustment value and the target width value, and determining the coordinate of the first contour point of the touch point according to the coordinate difference value, the coordinate of the touch point and the target function.
S1805: and judging whether the last touch point is an inflection point, if so, performing S1806, and if not, performing S1807.
S1806: and determining the coordinates of the two updated second contour points of the previous touch point according to the angle value of the previous touch point, the coordinate of the next previous touch point, the handwriting width of the second contour point of the previous touch point, the distance between the previous touch point and the next previous touch point and a pre-stored coordinate value updating function of the second contour point of the previous touch point.
S1807: determining a middle contour point of the first contour point and the second contour point according to the second contour point and the first contour point of the last touch point; determining and displaying a boundary contour line of the touch point by adopting a Bezier curve according to the first contour point, the second contour point and the middle contour point; determining the handwriting width according to two first contour points of the touch points; determining a function according to the handwriting width, the coordinate difference value, the coordinates of the touch points and the coordinates of the control points stored in advance, and determining the coordinates of the control points of the touch points; and determining and displaying the pen front contour line of the contour point by adopting a Bezier curve according to the first contour point and the control point.
The handwriting fitting method of the embodiment can calculate the contour points and the control points of the touch points when the touch points are identified, and update the contour points of the touch points when the touch points are inflection points; the method comprises the steps of determining the boundary contour lines of touch points in real time according to the contour points of the touch points, determining the stroke contour lines of the touch points in real time according to the contour points and the control points of the touch points, and displaying the boundary contour lines and the stroke contour lines of the recognized touch points, so that the handwriting formed according to the touch points is obtained, and the instantaneity and the attractiveness of handwriting fitting are improved.
On the basis of the above embodiments, fig. 19 is a schematic structural diagram of a handwriting fitting apparatus provided by the present application, where the apparatus includes:
a determining module 1901, configured to, if a touch point is identified, obtain coordinates of the touch point and coordinates of a previous touch point of the touch point, and determine a coordinate difference; determining a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point, and determining a middle contour point of the first contour point and the second contour point according to a second contour point of the previous touch point and the first contour point;
a fitting module 1902, configured to determine and display a boundary contour line of the touch point by using a bezier curve according to the first contour point, the second contour point, and the middle contour point.
On the basis of the foregoing embodiments, the present application provides a terminal device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to execute the computer program stored in the memory to carry out the steps of any of the above-described handwriting fitting methods.
On the basis of the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program is run on the processor, the processor is caused to implement the steps of any one of the above-mentioned handwriting fitting methods when the program is executed.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of handwriting fitting, the method comprising:
if a touch point is identified, acquiring the coordinate of the touch point and the coordinate of the last touch point of the touch point, and determining a coordinate difference value; determining a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point, and determining a middle contour point of the first contour point and the second contour point according to a second contour point of the previous touch point and the first contour point;
and determining and displaying a boundary contour line of the touch point by adopting a Bezier curve according to the first contour point, the second contour point and the middle contour point.
2. The method of claim 1, wherein determining the first contour point of the touch point according to the coordinate difference and the coordinate of the touch point comprises:
determining a target function corresponding to the target included angle according to the target included angle between the connecting line from the last touch point to the touch point and the abscissa axis and a pre-stored determination function corresponding to each angle range;
and determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point and the target function.
3. The method of claim 2, wherein before determining the coordinates of the first contour point of the touch point according to the coordinate difference, the coordinates of the touch point, and the objective function, the method further comprises:
determining a target updating function corresponding to the target size relationship according to the target size relationship between the horizontal coordinate difference value and the vertical coordinate difference value in the coordinate difference values and the pre-stored updating function corresponding to each size relationship;
and updating the coordinate difference value according to the horizontal coordinate difference value, the vertical coordinate difference value and the target updating function.
4. The method of claim 3, wherein after identifying the touch point, before obtaining the coordinates of the touch point and the coordinates of the previous touch point of the touch point, the method further comprises:
acquiring a touch pressure value and sampling time of the touch point and sampling time of a last touch point of the touch point;
determining a speed value of the touch point according to a time difference value of the sampling time of the touch point and the sampling time of the previous touch point and the coordinate difference value;
determining a function according to the speed value, the touch pressure value and a prestored width value, and determining a target width value of the touch point;
the updating the coordinate difference value according to the abscissa difference value, the ordinate difference value, and the target update function includes:
and determining an output adjustment value according to the transverse coordinate difference value, the longitudinal coordinate difference value and the target updating function, and obtaining an updated coordinate difference value according to the product of the adjustment value and the target width value.
5. The method according to any one of claims 1-4, further comprising:
determining the handwriting width according to the two first contour points of the touch point;
determining coordinates of control points of the touch points according to the handwriting width, the coordinate difference, the coordinates of the touch points and a pre-stored control point coordinate determination function;
and determining and displaying the pen front contour line of the contour point by adopting the Bezier curve according to the two first contour points of the touch point and the control point.
6. The method according to claim 5, wherein the determining coordinates of the control point of the touch point according to the handwriting width, the coordinate difference, the coordinates of the touch point, and a pre-stored control point coordinate determination function comprises:
according to
Figure FDA0003780740470000021
Determining the abscissa of the control point of the touch point;
according to
Figure FDA0003780740470000022
Determining the vertical coordinate of the control point of the touch point;
wherein finalCenterX represents the abscissa of the control point, finalCenterY represents the ordinate of the control point, P i x represents the abscissa of the touch point, P i y represents the ordinate of the touch point, (P) i x-P i-1 x) a horizontal coordinate difference value representing the coordinate difference value, (P) i y-P i-1 y) an ordinate difference value representing the coordinate difference value, realWidth representing the handwriting width,
Figure FDA0003780740470000031
Figure FDA0003780740470000032
7. the method of claim 1, wherein after the obtaining the coordinates of the touch point and the coordinates of the last touch point of the touch point, and before the determining the coordinate difference value, the method further comprises:
acquiring the coordinate of the previous touch point;
determining a function according to the coordinates of the touch points, the coordinates of the previous touch point of the touch points, the coordinates of the next previous touch point of the previous touch point and a prestored angle value
Figure FDA0003780740470000033
Determining an angle value of the last touch point, wherein P i-2 x represents the abscissa of the last touch point, P i-2 y represents the ordinate of the last touch point, P i-1 x represents the abscissa of the last touch point, P i-1 y represents the ordinate of the last touch point,P i x represents the abscissa of the touch point, P i y represents a vertical coordinate of the touch point;
and if the angle value is smaller than a pre-stored angle threshold value, determining the previous touch point as an inflection point, and determining the updated coordinates of the two second contour points of the previous touch point according to the angle value, the coordinates of the previous touch point, the coordinates of the next previous touch point, the handwriting width of the second contour point of the previous touch point, the distance between the previous touch point and the next previous touch point and a pre-stored coordinate value updating function of the second contour point of the previous touch point.
8. A handwriting fitting apparatus, comprising:
the determining module is used for acquiring the coordinates of the touch point and the coordinates of the last touch point of the touch point if the touch point is identified, and determining a coordinate difference value; determining a first contour point of the touch point according to the coordinate difference and the coordinate of the touch point, and determining a middle contour point of the first contour point and the second contour point according to a second contour point of the previous touch point and the first contour point;
and the fitting module is used for determining and displaying the boundary contour line of the touch point by adopting a Bezier curve according to the first contour point, the second contour point and the middle contour point.
9. A terminal device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a computer program is stored in the memory, which program, when executed by the processor, causes the processor to execute the computer program stored in the memory to carry out the steps of the handwriting fitting method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the handwriting fitting method according to any one of claims 1-7.
CN202210930312.7A 2022-08-03 2022-08-03 Handwriting fitting method, handwriting fitting device, terminal equipment and medium Active CN115291789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210930312.7A CN115291789B (en) 2022-08-03 2022-08-03 Handwriting fitting method, handwriting fitting device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210930312.7A CN115291789B (en) 2022-08-03 2022-08-03 Handwriting fitting method, handwriting fitting device, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN115291789A true CN115291789A (en) 2022-11-04
CN115291789B CN115291789B (en) 2024-04-26

Family

ID=83826311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210930312.7A Active CN115291789B (en) 2022-08-03 2022-08-03 Handwriting fitting method, handwriting fitting device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN115291789B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012097729A1 (en) * 2011-01-20 2012-07-26 北京壹人壹本信息科技有限公司 Method and device for implementing original calligraphy of handwriting
CN103186235A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and device for processing handwriting input
KR20150071722A (en) * 2013-12-09 2015-06-29 삼성전자주식회사 Method and system for modifying contour of object in image
US9070224B1 (en) * 2012-10-11 2015-06-30 Google Inc. Accurate upper bound for bezier arc approximation error
CN106527940A (en) * 2016-11-03 2017-03-22 青岛海信电器股份有限公司 Handwriting determination method and apparatus
CN106951166A (en) * 2016-01-06 2017-07-14 北大方正集团有限公司 Person's handwriting method for drafting and device
CN109101171A (en) * 2017-06-21 2018-12-28 北京易真学思教育科技有限公司 A method of generating sliding trace in touch panel device
CN109284059A (en) * 2018-08-28 2019-01-29 广州视源电子科技股份有限公司 Person's handwriting method for drafting, device, interactive intelligent tablet computer and storage medium
CN112835504A (en) * 2021-02-05 2021-05-25 深圳市亿图软件有限公司 Thinking guide graph track processing method and device, computer equipment and storage medium
CN113963361A (en) * 2021-10-09 2022-01-21 深圳Tcl新技术有限公司 Handwriting display method and related device
CN114327234A (en) * 2022-03-08 2022-04-12 新华三智能终端有限公司 Writing track drawing method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012097729A1 (en) * 2011-01-20 2012-07-26 北京壹人壹本信息科技有限公司 Method and device for implementing original calligraphy of handwriting
CN103186235A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and device for processing handwriting input
US20130182956A1 (en) * 2011-12-31 2013-07-18 Peking University Founder Group Co., Ltd. Methods and Devices for Processing Handwriting Input
US9070224B1 (en) * 2012-10-11 2015-06-30 Google Inc. Accurate upper bound for bezier arc approximation error
KR20150071722A (en) * 2013-12-09 2015-06-29 삼성전자주식회사 Method and system for modifying contour of object in image
CN106951166A (en) * 2016-01-06 2017-07-14 北大方正集团有限公司 Person's handwriting method for drafting and device
CN106527940A (en) * 2016-11-03 2017-03-22 青岛海信电器股份有限公司 Handwriting determination method and apparatus
CN109101171A (en) * 2017-06-21 2018-12-28 北京易真学思教育科技有限公司 A method of generating sliding trace in touch panel device
CN109284059A (en) * 2018-08-28 2019-01-29 广州视源电子科技股份有限公司 Person's handwriting method for drafting, device, interactive intelligent tablet computer and storage medium
CN112835504A (en) * 2021-02-05 2021-05-25 深圳市亿图软件有限公司 Thinking guide graph track processing method and device, computer equipment and storage medium
CN113963361A (en) * 2021-10-09 2022-01-21 深圳Tcl新技术有限公司 Handwriting display method and related device
CN114327234A (en) * 2022-03-08 2022-04-12 新华三智能终端有限公司 Writing track drawing method and device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
LIU L等: "A Kai style contour beautification method for Chinese handwriting characters", IEEE *
PHAN D等: "Triangulation Based Skeletonization and Trajectory Recovery for Handwritten Character Patterns", KSII TRANSACTIONS ON INTERNET & INFORMATION SYSTEMS *
RAZALI N K B等: "Cubic Curve Fitting Method in Reconstruction of Chinese Calligraphy Outline", JOURNAL OF PHYSICS: CONFERENCE SERIES *
武媚: "触摸轨迹呈现为书写体的方法研究与系统实现", 中国优秀硕博论文全文库 信息科技辑 *
高俊: "基于速度的手写笔迹实时仿真算法研究", 中国优秀硕博论文全文库 信息科技辑 *

Also Published As

Publication number Publication date
CN115291789B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
US11538501B2 (en) Method for generating video, and electronic device and readable storage medium thereof
CN111343339B (en) Mobile terminal and image display method thereof
CN113223464A (en) Ink screen image display method and ink screen terminal
CN113409427B (en) Animation playing method and device, electronic equipment and computer readable storage medium
EP3629296A1 (en) Display apparatus control method and display apparatus using the same
CN114979785A (en) Video processing method and related device
CN110908638A (en) Operation flow creating method and electronic equipment
CN111031377B (en) Mobile terminal and video production method
CN113038141A (en) Video frame processing method and electronic equipment
CN114489429B (en) Terminal equipment, long screen capturing method and storage medium
CN112000408B (en) Mobile terminal and display method thereof
CN113253905B (en) Touch method based on multi-finger operation and intelligent terminal
CN115291789A (en) Handwriting fitting method and device, terminal equipment and medium
CN114863432A (en) Terminal device, contrast adjusting method, device and medium
CN114067758B (en) Mobile terminal and image display method thereof
CN114449171A (en) Method for controlling camera, terminal device, storage medium and program product
CN113031838B (en) Screen recording method and device and electronic equipment
CN114596633A (en) Sitting posture detection method and terminal
CN111722896B (en) Animation playing method, device, terminal and computer readable storage medium
CN113760164A (en) Display device and response method of control operation thereof
CN113538633A (en) Animation playing method and device, electronic equipment and computer readable storage medium
CN114063945A (en) Mobile terminal and image display method thereof
CN111158563A (en) Electronic terminal and picture correction method
CN111324255A (en) Application processing method based on double-screen terminal and communication terminal
CN115277940B (en) Notification message prompting method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant