Handwriting Generation Algorithm for Marker Pen Transparency
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current devices for generating handwriting, such as electronic interactive whiteboards, fail to effectively replicate the presentation effect of a marker pen, as the handwritten track often obscures the underlying text and lacks realistic rendering of transparency and stroke characteristics.
Innovation Solution
A method and device for generating handwriting that acquires sampling points on a handwritten track, generates a handwritten track curve, determines equal arc lengths between interpolation points, and overlays handwriting effect parameters to create a realistic marker pen effect, including transparency, color, and thickness, using algorithms like Bezier curves and Newton-Raphson iteration.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If handwriting is generated using conventional methods, then the handwriting can be displayed, but the transparency effect of marker pen is lost and underlying text is obscured
Solution Approach 1:
The handwriting track is segmented into multiple track segments, each further divided into multiple stroke segments. This segmentation allows for granular control of transparency and rendering properties, enabling the marker pen effect to be achieved by selectively rendering segments with appropriate transparency levels, thus preserving underlying text while maintaining handwriting visibility.
Solution Approach 2:
Different transparency and rendering properties are applied to different segments of the handwriting track based on local characteristics. The system determines specific transparency values and rendering parameters for each stroke segment, allowing areas that need to preserve underlying text to have higher transparency while other areas maintain stronger handwriting presence, achieving local optimization of the marker pen effect.
2Manufacturing precision
If sampling points are acquired and track curves are generated, then handwriting presentation effect is improved, but computational complexity increases
Solution Approach 1:
The complex task of generating handwriting tracks is divided into manageable segments. By processing the track as multiple stroke segments with sampling points rather than as a single continuous curve, the computational complexity is reduced while maintaining high presentation precision. Each segment can be independently processed and rendered, simplifying the overall generation process.
Data Source
AI summary
The present disclosure provides a method for generating handwriting, belonging to the field of computer application technology. The handwriting generation method includes: acquiring sampling points on a handwritten track, and generating a handwritten track curve based on the sampling points wherein the handwritten track is a track of a stroke segment of a handwritten stroke; determining an arc length τ between interpolation points; determining positions of interpolation points on the handwritten track curve according to the arc length τ between interpolation points, where an arc length between two adjacent interpolation points on the handwritten track curve is the same as the arc length τ between interpolation points; and overlaying a handwriting effect parameter at the positions of the interpolation points to generate the track of the marker pen corresponding to the handwritten track curve.


