Unlock instant, AI-driven research and patent intelligence for your innovation.
Paintbrush width control method and device based on Android
What is Al technical title?
Al technical title is built by PatSnap Al team. It summarizes the technical point description of the patent document.
A brush and width technology, applied in the field of Android drawing, can solve the problems of inability to reflect changes in handwriting thickness, large time requirements, and lack of bluntness and smoothness, so as to increase code readability, reduce computational complexity and code volume.
Active Publication Date: 2019-06-07
GUANGDONG UNIV OF EDUCATION
View PDF11 Cites 4 Cited by
Summary
Abstract
Description
Claims
Application Information
AI Technical Summary
This helps you quickly interpret patents by identifying the three key elements:
Problems solved by technology
Method used
Benefits of technology
Problems solved by technology
However, in practical applications, the handwriting written by most writing software is often not obvious in thickness and is not smooth enough. This limitation is to use the method of calculating the width of the drawing brush in real time based on the interpolation mathematical model and the moving speed of the user's finger
However, there are two traditional algorithms for changing the brush size: 1. The brush generation algorithm based on physical simulation. The principle is to simulate the parameters of the brush to write the font. Although the effect of calligraphy can be better simulated, there is a large amount of calculation. The real-time performance is poor, and complex parameters need to be manually set and adjusted; 2. Sample collection and generation algorithms based on machine learning, the basic idea of this type of algorithm is to use machine learning to search for sample fonts similar to the user's handwriting in a large number of data samples, and then draw on the drawing board , but there is also a large amount of calculation and the operation of constructing the neural network and the training sample set is relatively complicated, and the time requirement is large
Method used
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more
Image
Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
Click on the blue label to locate the original text in one second.
Reading with bidirectional positioning of images and text.
Smart Image
Examples
Experimental program
Comparison scheme
Effect test
Embodiment 1
[0056] A kind of brush width control method based on Android provided in this embodiment, such as figure 1 , including the following steps:
[0057] S1: Capture and record the moving distance and interval time of the user's finger or touch pen in real time;
[0058] S2: Calculate the moving speed of the user's finger or touch pen;
[0059] S3: Convert to brush width according to moving speed;
[0061] Capture and record the moving distance and interval time of the user's finger or touch pen in real time in step S1, such as figure 2 , including the following steps:
[0062] S1.1: Initialize the coordinates of the current drawing point (x 0 ,y 0 ), the coordinates (x, y) of the previous drawing point are initialized to the origin (0,0), and it is judged whether the current drawing point is the initial value (0,0);
[0063] S1.2: Judging whether the current drawing point is the initial value (0,0), that is,...
Embodiment 2
[0086] A kind of brush width calculation device based on Android provided in this embodiment, such as Figure 5 ,include:
[0087] The recording module is used to capture and record the moving distance and interval time of the user's finger or touch pen in real time;
[0088] Calculation module, used to calculate the moving speed of the user's finger or touch pen;
[0089] Conversion module, convert to brush width according to moving speed;
[0090] Transition module, use transition function to smooth the handwriting.
[0091] The same or similar reference numerals correspond to the same or similar components;
[0092] The terms describing the positional relationship in the drawings are only for illustrative purposes and cannot be interpreted as limitations on this patent;
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More
PUM
Login to View More
Abstract
The invention discloses a paintbrush width real-time control method based on Android. The paintbrush width real-time control method comprises the following steps of S1, capturing and recording the moving distance and interval time of a finger or a touch pen of a user in real time; S2, calculating the moving speed of the finger or the touch pen of the user; S3, converting the moving speed into thewidth of a painting brush; and S4, smoothing the handwriting by using a transition function. A speed and brush width conversion model is established through linear interpolation, and the change of thebrush tip of the writing brush is realized. Required functions can be quickly realized by using a drawing API of Android, mobile terminal equipment can be better adapted, the code readability is increased, and a mathematical model is established through linear interpolation; on basis of a speed-time model, the algorithm for converting speed and brush width is optimized,, and the change of handwriting with different thicknesses of writing brushes can be better simulated on the premise of not increasing the code complexity and the calculated amount.
Description
technical field [0001] The present invention relates to the field of Android drawing, and more specifically, to a method and device for controlling the width of a brush on Android. Background technique [0002] Controlling the thickness of the pen on the Android platform and making the strokes smoother has been applied to many commercial products, such as various input methods, various copybook software, etc. At the same time, the drawing API that comes with Android can also quickly realize the drawing function. However, in practical applications, the handwriting written by most writing software is often not obvious in thickness and is not smooth enough to be smooth and round. The drawing function implemented by canvas can't even reflect the change of handwriting thickness, and a relatively simple and cheap method can be used to solve the problem. This limitation is to use the method of calculating the width of the drawing brush in real time based on the interpolation mathem...
Claims
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More
Application Information
Patent Timeline
Application Date:The date an application was filed.
Publication Date:The date a patent or application was officially published.
First Publication Date:The earliest publication date of a patent with the same application number.
Issue Date:Publication date of the patent grant document.
PCT Entry Date:The Entry date of PCT National Phase.
Estimated Expiry Date:The statutory expiry date of a patent right according to the Patent Law, and it is the longest term of protection that the patent right can achieve without the termination of the patent right due to other reasons(Term extension factor has been taken into account ).
Invalid Date:Actual expiry date is based on effective date or publication date of legal transaction data of invalid patent.