Brief introduction of calligraphy robot system

For the calligraphy robot system, the establishment of calligraphy font is a very critical software work, which directly affects the quality of robot writing. There are nearly 65,438+00,000 commonly used Chinese characters in China. It is impossible to program each character and font separately when establishing a font library, otherwise it will waste time and manpower, which is also extremely unrealistic.

For this reason, researchers first analyze and classify the structure of Chinese characters, and divide commonly used Chinese characters into basic strokes and basic radicals. Then for each specific stroke, according to different font styles, they write a standard-sized robot stroke writing program and store it as a stroke module or subroutine. Stroke module or subroutine has parameters or member functions to adjust font size, so as to automatically scale according to different size requirements.

Secondly, for the common radicals of a font, an independent radical module or subroutine is constructed according to the corresponding stroke program that has been written, which is convenient for the subsequent programming of the whole word. Similarly, radical modules or subroutines also have member functions or parameters to adjust the font size.

Finally, for a specific Chinese character in a font, the word can be constructed by calling the corresponding stroke and radical module or the compiled subroutine, and the size of the word is still adjusted by member functions or parameters.

Through such programming, it can not only greatly reduce the workload of programming, but also have the flexibility of word formation. If you want to add new words, you only need to combine the known strokes and radicals properly.