CN-116787955-B - Calligraphy font carving method and carving device based on optical principle
Abstract
The invention discloses a handwriting font carving method and a carving device based on an optical principle, which comprise the steps of S1, establishing a database, inputting various styles of fonts, S2, setting a fixed light source as light source data, carrying out three-dimensional force measurement during writing, recording force rules, S3, setting a camera as shooting data, extracting shadow edge images as initial shadow data, S4, establishing a simulated writing module, inputting a stereoscopic model of a carving original, amplifying force rules to obtain simulated force data, writing and recording simulated shadow images, S5, obtaining simulated shadow data through an image edge extraction algorithm, comparing the simulated shadow data with the initial shadow data, repeatedly correcting the transformation force of the simulated shadow data, and recording corrected carving force data, S6, carving on the carving original, and carrying out arc polishing on the carving fonts. The invention avoids wasting a large amount of materials during engraving, reduces reworking times during engraving, improves the aesthetic degree of the engraved original, and improves the engraving efficiency.
Inventors
- GUAN RONG
- WANG LIANG
- HE YANTING
- GUO DI
- WANG JIAN
Assignees
- 淮阴工学院
Dates
- Publication Date
- 20260512
- Application Date
- 20230529
Claims (10)
- 1. The calligraphy font carving method based on the optical principle is characterized by comprising the following steps of: S1, establishing a database, inputting various styles of fonts, and storing the fonts as font data; s2, setting a fixed light source, storing the position, the height and the intensity of the light source as light source data, respectively carrying out three-dimensional force measurement on forces in the directions of an x axis, a y axis and a z axis by writing different styles of fonts, and recording force rule data corresponding to different fonts; s3, when writing fonts of different styles, setting a camera, storing a shooting position, a shooting height and a shooting angle as shooting data, shooting a font shadow image generated based on a light principle, extracting a shadow edge image through an image edge extraction algorithm, and storing the shadow edge image as initial shadow data; S4, establishing a simulated writing module, inputting a stereoscopic model corresponding to the carving original, obtaining simulated force data by comparing the hardness of the paper and the carving material and amplifying force rule data, performing simulated writing according to the simulated force data after inputting font data, setting light source data, and recording a simulated shadow image; S5, obtaining simulated shadow data through an image edge extraction algorithm, comparing the simulated shadow data with initial shadow data, repeatedly correcting the transformation strength of the simulated shadow data to be identical with the initial shadow data, and recording corrected carving strength data; And S6, engraving the engraving original according to the engraving force data, and performing arc polishing on the engraved fonts.
- 2. The method for engraving a calligraphy font based on optical principles according to claim 1, wherein according to step S2, performing three-dimensional force measurement on forces in x-axis, y-axis and z-axis directions respectively comprises the steps of: S21, installing a force sensor at a holding position of the pen, and ensuring that the force sensor is tightly connected with the holding position of the pen; s22, connecting the sensor with a data acquisition device, writing by using a pen, and enabling the sensor to record stress conditions of the pen in three directions to obtain force change data of the x-axis, the y-axis and the z-axis directions; S23, processing, analyzing and summarizing the dynamics data to obtain dynamics change rules of different fonts, and obtaining dynamics rule data.
- 3. The method for engraving a calligraphic font based on the optical principle of claim 1, wherein according to step S3, said image edge extraction algorithm is an integral nested edge detection algorithm.
- 4. The method for engraving a handwriting font based on the optical principle according to claim 1, wherein setting the light source data according to step S4, recording the simulated shadow image comprises the steps of: s41, inputting light source data, and synchronously setting the position, the height and the intensity of the light source in the analog writing module; S42, inputting shooting data, and synchronously setting a shooting position, a shooting height and a shooting angle in the analog writing module to shoot so as to obtain an analog shadow image.
- 5. The method for engraving a handwriting font based on the optical principle according to claim 1, wherein repeatedly correcting the simulated shadow data to be identical to the initial shadow data according to step S5 comprises the steps of: s51, numbering the number of shadows on the initial shadow data, and extracting edges of a plurality of shadows to obtain a plurality of corresponding initial shadow edge data; s52, numbering the number of shadows on the simulated shadow data, and extracting edges of a plurality of shadows to obtain a plurality of corresponding simulated shadow edge data; S53, changing the simulated shadow edge data by increasing or decreasing the engraving force, and finally enabling the simulated shadow edge data to be identical to the initial shadow edge data.
- 6. An engraving device for calligraphy fonts based on optical principle, based on the engraving method of any one of the claims 1 to 5, comprising a plurality of fixed plates, and a moving unit and an engraving unit arranged on the fixed plates, characterized in that: The mobile unit comprises a plurality of first sliding groups arranged on the fixed plate, a mobile plate connected with the first sliding groups, a second sliding group arranged on the mobile plate, a plurality of first guide rails fixedly connected with the fixed plate and a second guide rail arranged on one side of the mobile plate; the engraving unit comprises a connecting plate arranged on one side of the second sliding group and engraving pieces fixedly arranged on the connecting plate, and the engraving pieces are connected with motors.
- 7. The apparatus of claim 6, wherein the first sliding group is provided with a first guide block slidably connected to the first guide rail, and the second sliding group is provided with a second guide block slidably connected to the second guide rail.
- 8. The handwriting engraving apparatus based on the optical principle of claim 7, wherein a first limiting plate for limiting the moving direction is fixedly arranged on the first guide block, and a second limiting plate for limiting the moving direction is fixedly arranged on the second guide block.
- 9. The apparatus of claim 6, wherein the first sliding group and the second sliding group each comprise a plurality of sliding rails fixedly connected with the fixing plate and a sliding block slidingly connected with the sliding rails.
- 10. The apparatus of claim 8, wherein the first guide block and the second guide block are connected with a motor.
Description
Calligraphy font carving method and carving device based on optical principle Technical Field The invention relates to the field of font engraving, in particular to a handwriting font engraving method and device based on an optical principle. Background Handwriting is a unique artistic expression form of characters in China and surrounding countries and regions which are deeply influenced by Chinese culture. In a broad sense, handwriting refers to the writing of literal symbols. In other words, handwriting refers to writing with the writing style, structure and octomy according to the character features and meanings thereof, so that the handwriting becomes an aesthetic work of art. Chinese character handwriting is a unique expression art of Chinese families. Engraving, which refers to cutting or engraving wood, stone, or other material into a desired shape, may be referred to as engraving. Tools serving this purpose are knives, chisels, round chisels, cones, flat hatches and hammers. In the most common carving method, a chisel is held in one hand and a mallet is held in the other hand, and then the chisel is driven into wood or stone with the mallet. Although some metal working techniques such as welding and assembly have become increasingly important over the past century, engraving and molding remain two major sculpture techniques. In the prior art, a work which is usually manufactured by a convex book body carving method has a visual stereoscopic effect of female carving to produce male carving. The intaglio has a positive visual effect, which changes according to the change of the visual distance, the sense of beauty and fullness of the illusion and evagination of the positive is increased. However, the carving is directly carried out on the material, so that one-stroke molding cannot be realized, multiple times of modification are needed, and a great amount of carving material is wasted. Disclosure of Invention The invention overcomes the defects of the prior art and provides a handwriting font engraving method and an engraving device based on an optical principle. In order to achieve the purpose, the invention adopts the technical scheme that the calligraphy font engraving method based on the optical principle is characterized by comprising the following steps of: S1, establishing a database, inputting various styles of fonts, and storing the fonts as font data; s2, setting a fixed light source, storing the position, the height and the intensity of the light source as light source data, respectively carrying out three-dimensional force measurement on forces in the directions of an x axis, a y axis and a z axis by writing different styles of fonts, and recording force rule data corresponding to different fonts; s3, when writing fonts of different styles, setting a camera, storing a shooting position, a shooting height and a shooting angle as shooting data, shooting a font shadow image generated based on a light principle, extracting a shadow edge image through an image edge extraction algorithm, and storing the shadow edge image as initial shadow data; S4, establishing a simulated writing module, inputting a stereoscopic model corresponding to the carving original, obtaining simulated force data by comparing the hardness of the paper and the carving material and amplifying force rule data, performing simulated writing according to the simulated force data after inputting font data, setting light source data, and recording a simulated shadow image; S5, obtaining simulated shadow data through an image edge extraction algorithm, comparing the simulated shadow data with initial shadow data, repeatedly correcting the transformation strength of the simulated shadow data to be identical with the initial shadow data, and recording corrected carving strength data; And S6, engraving the engraving original according to the engraving force data, and performing arc polishing on the engraved fonts. In a preferred embodiment of the present invention, according to step S2, performing three-dimensional force measurement on forces in x-axis, y-axis and z-axis directions respectively includes the following steps: S21, installing a force sensor at a holding position of the pen, and ensuring that the force sensor is tightly connected with the holding position of the pen; s22, connecting the sensor with a data acquisition device, writing by using a pen, and enabling the sensor to record stress conditions of the pen in three directions to obtain force change data of the x-axis, the y-axis and the z-axis directions; S23, processing, analyzing and summarizing the dynamics data to obtain dynamics change rules of different fonts, and obtaining dynamics rule data. In a preferred embodiment of the present invention, according to step S3, the image edge extraction algorithm is an integral nested edge detection algorithm. In a preferred embodiment of the present invention, according to step S4, setting the light source data, recordi