A calligraphy font engraving method and engraving device based on optical principles
The optical principle-based font engraving method and device solves the problems of inaccurate engraving and material waste in existing technologies, and achieves efficient and beautiful calligraphy font engraving effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAIYIN INSTITUTE OF TECHNOLOGY
- Filing Date
- 2023-05-29
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, calligraphy font carving methods cannot be completed in one go, resulting in material waste and low carving efficiency, and failing to achieve precise and aesthetically pleasing effects.
An optical engraving method is adopted, which records the force pattern data by establishing a database and optical measurement, and combines it with image edge extraction algorithm to repeatedly correct the engraving force, and then uses an optical engraving device for engraving.
It improves the precision and efficiency of carving, reduces material waste, ensures the aesthetics and smoothness of carving, and increases carving speed.
Smart Images

Figure CN116787955B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of font engraving, and more particularly to a method and device for engraving calligraphic fonts based on optical principles. Background Technology
[0002] Calligraphy is a unique art form of written expression in China and surrounding countries and regions deeply influenced by Chinese culture. Broadly speaking, calligraphy refers to the rules of writing written symbols. In other words, calligraphy is the art of writing characters according to their characteristics and meanings, using specific brushstrokes, structures, and compositions to create aesthetically pleasing works of art. Chinese calligraphy is an art form unique to the Han Chinese people.
[0003] Sculpture refers to the cutting or carving of wood, stone, or other materials into a desired shape. Tools used for this purpose include knives, chisels, round chisels, cones, axes, and hammers. In the most common carving method, one hand holds the chisel and the other holds a mallet, which is then used to hammer the chisel into the wood or stone. Although some metalworking techniques, such as welding and assembly, have become increasingly important over the past century, carving and mold-making remain two of the main sculptural techniques.
[0004] In existing technologies, works typically produced using embossed calligraphic carving techniques achieve a three-dimensional visual effect, similar to how intaglio carving creates relief carving. Intaglio carving possesses the visual effect of relief carving, changing with viewing distance and enhancing the ethereal, convex beauty and fullness of relief carving. However, carving directly onto the material cannot be completed in one stroke; multiple modifications are required, resulting in significant waste of carving materials. Summary of the Invention
[0005] This invention overcomes the shortcomings of the prior art and provides a method and device for engraving calligraphy fonts based on optical principles.
[0006] To achieve the above objectives, the technical solution adopted by this invention is: a method for carving calligraphic fonts based on optical principles, characterized in that it includes:
[0007] S1. Create a database, input various font styles, and save them as font data;
[0008] S2. Set up a fixed light source and store the light source position, height, and intensity as light source data; by writing different styles of fonts, perform three-dimensional force measurement on the force in the x, y, and z axes respectively, and record the force pattern data corresponding to different fonts;
[0009] S3. When writing different styles of fonts, set up a camera, store the shooting position, shooting height and shooting angle as video data, shoot the font shadow image based on the light principle, extract the shadow edge image through the image edge extraction algorithm, and store it as the initial shadow data.
[0010] S4. Establish a simulated writing module. Input the corresponding 3D model of the original carving. By comparing the hardness of paper and carving material, amplify the force law data to obtain simulated force data. After inputting font data, simulate writing according to the simulated force data. Set the light source data and record the simulated shadow image.
[0011] S5. Simulated shadow data is obtained through image edge extraction algorithm. The simulated shadow data is compared with the initial shadow data. The transformation intensity of the simulated shadow data is repeatedly corrected until it is exactly the same as the initial shadow data. At the same time, the corrected carving intensity data is recorded.
[0012] S6. Carve on the original piece according to the carving force data, and polish the carved characters with an arc.
[0013] In a preferred embodiment of the present invention, step S2, which involves performing three-dimensional force measurement on the forces along the x-axis, y-axis, and z-axis, includes the following steps:
[0014] S21. Install the force sensor on the pen grip and ensure that the sensor is tightly connected to the pen grip.
[0015] S22. Connect the sensor to the data acquisition unit, write with a pen, and let the sensor record the force on the pen in three directions to obtain the force change data in the x-axis, y-axis and z-axis directions.
[0016] S23. Process, analyze and summarize the intensity data to obtain the intensity variation pattern of different fonts and obtain intensity pattern data.
[0017] In a preferred embodiment of the present invention, according to step S3, the image edge extraction algorithm is a whole-nested edge detection algorithm.
[0018] In a preferred embodiment of the present invention, step S4, setting light source data and recording the simulated shadow image, includes the following steps:
[0019] S41. Input the light source data and simultaneously set the light source position, light source height, and light source intensity in the simulated writing module;
[0020] S42. Input camera data, and simultaneously set the shooting position, shooting height and shooting angle in the simulated writing module to take a picture and obtain a simulated shadow image.
[0021] In a preferred embodiment of the present invention, step S5, repeatedly correcting the simulated shadow data until it is exactly the same as the initial shadow data, includes the following steps:
[0022] S51. Number the number of shadows on the initial shadow data, extract the edges of several shadows, and obtain the corresponding initial shadow edge data.
[0023] S52. Number the number of shadows on the simulated shadow data, extract the edges of several shadows, and obtain the corresponding simulated shadow edge data.
[0024] S53. By increasing or decreasing the engraving intensity, the simulated shadow edge data is changed, so that the simulated shadow edge data is exactly the same as the initial shadow edge data.
[0025] The present invention also provides a calligraphy font engraving device based on optical principles, comprising: a plurality of fixed plates, and a moving unit and an engraving unit disposed on the fixed plates;
[0026] The moving unit includes: a plurality of first sliding groups disposed on the fixed plate, a moving plate connected to the first sliding groups, a second sliding group disposed on the moving plate, and a plurality of first guide rails fixedly connected to the fixed plate and a second guide rail disposed on one side of the moving plate;
[0027] The engraving unit includes: a connecting plate disposed on one side of the second sliding group, and engraving components fixedly disposed on the connecting plate; each engraving component is connected to a motor.
[0028] In a preferred embodiment of the present invention, the first sliding group is provided with a first guide block that is slidably connected to the first guide rail, and the second sliding group is provided with a second guide block that is slidably connected to the second guide rail.
[0029] In a preferred embodiment of the present invention, a first limiting piece for restricting the direction of movement is fixedly disposed on the first guide block, and a second limiting piece for restricting the direction of movement is fixedly disposed on the second guide block.
[0030] In a preferred embodiment of the present invention, both the first sliding group and the second sliding group include: a plurality of slide rails fixedly connected to the fixed plate, and a slider slidably connected to the slide rails.
[0031] In a preferred embodiment of the present invention, both the first guide block and the second guide block are connected to a motor.
[0032] This invention addresses the shortcomings of the prior art and has the following beneficial effects:
[0033] (1) This invention provides a method for carving calligraphy fonts based on optical principles. By setting a fixed light source to obtain shadow data, the shadow data is used to reflect the corresponding force during carving. A simulated writing module is set up to make repeated corrections, which also avoids wasting a lot of materials during carving, reduces the number of reworks during carving, improves the aesthetics of the carved original, and improves carving efficiency.
[0034] (2) By setting a fixed light source, the present invention obtains the projection of the font formation with different forces based on optical principles, obtains writing force data, and obtains the precise force required for carving by comparing the difference between the simulated shadow data and the initial shadow data, thereby improving the accuracy of carving and ensuring the aesthetics of carving.
[0035] (3) This invention uses sensors and data acquisition devices to perform three-dimensional force measurement on the x-axis, y-axis and z-axis directions respectively, records the force data corresponding to different fonts, and summarizes the force pattern data; when carving fonts, the depth will change with different forces, making the fonts more beautiful, and also improving the regularity of carving.
[0036] (4) The present invention establishes a simulated writing module. After inputting the three-dimensional model of the original carving, the simulated force data can be obtained by converting the hardness of the paper and the carving material. The simulated force data can be obtained by inputting the font data and simulating writing. The carving data can be obtained conveniently by converting the force, which saves the preparation time required for carving and also saves the carving time.
[0037] (5) This invention improves the accuracy of carving by changing the simulated shadow edge data by increasing or decreasing the carving force, and repeatedly corrects it until it is exactly the same as the initial shadow data. At the same time, it records the corrected carving force data, laying the foundation for font carving.
[0038] (6) After the carving is completed, the inside of the carved font is polished in an arc, which can remove the burrs generated during carving and ensure the smoothness of the font edge, while also making the overall structure of the font more beautiful.
[0039] (7) The present invention provides a calligraphy font engraving device based on optical principles. The position of the second sliding group is changed by the first sliding group, and the engraving unit is moved by the second sliding group. It can move in any direction to engrave, which improves the engraving speed and ensures the efficiency of engraving. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a flowchart of a preferred embodiment of the present invention;
[0042] Figure 2 This is an overall three-dimensional structural diagram of a preferred embodiment of the present invention;
[0043] Figure 3 yes Figure 2 A three-dimensional structural diagram of the carving unit at point A in the middle;
[0044] Figure 4 This is a side view of the engraving unit according to a preferred embodiment of the present invention;
[0045] In the diagram: 1. Fixed plate; 2. Moving unit; 21. First sliding group; 22. Moving plate; 23. Second sliding group; 24. First guide rail; 25. Second guide rail; 26. First guide block; 261. First limiting piece; 27. Second guide block; 271. Second limiting piece; 28. Slide rail; 29. Slider; 3. Engraving unit; 31. Engraving knife; 4. Motor. Detailed Implementation
[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein. Therefore, the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0048] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as limiting the scope of protection of this application. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0049] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art will understand the specific meaning of the above terms in this application based on the specific circumstances.
[0050] Figure 1 This is a flowchart of a preferred embodiment of the present invention, a method for carving calligraphic fonts based on optical principles, characterized by comprising:
[0051] S1. Create a database, input various font styles, and save them as font data;
[0052] S2. Set up a fixed light source and store the light source position, height, and intensity as light source data; by writing different styles of fonts, perform three-dimensional force measurement on the force in the x, y, and z axes respectively, and record the force pattern data corresponding to different fonts;
[0053] S3. When writing different styles of fonts, set up a camera, store the shooting position, shooting height and shooting angle as video data, shoot the font shadow image based on the light principle, extract the shadow edge image through the image edge extraction algorithm, and store it as the initial shadow data.
[0054] S4. Establish a simulated writing module. Input the corresponding 3D model of the original carving. By comparing the hardness of paper and carving material, amplify the force law data to obtain simulated force data. After inputting font data, simulate writing according to the simulated force data. Set the light source data and record the simulated shadow image.
[0055] S5. Simulated shadow data is obtained through image edge extraction algorithm. The simulated shadow data is compared with the initial shadow data. The transformation intensity of the simulated shadow data is repeatedly corrected until it is exactly the same as the initial shadow data. At the same time, the corrected carving intensity data is recorded.
[0056] S6. Carve on the original piece according to the carving force data, and polish the carved characters with an arc.
[0057] This invention performs arc polishing on the inside of the engraved font after the engraving is completed, which can remove the burrs generated during the engraving process, ensure the smoothness of the font edges, and make the overall structure of the font more beautiful.
[0058] This invention obtains shadow data by setting a fixed light source, then uses the shadow data to represent the corresponding force during carving, and sets up a simulated writing module for repeated correction. This avoids wasting a lot of material during carving, reduces the number of reworks, improves the aesthetics of the carved original, and increases carving efficiency.
[0059] According to step S2, the three-dimensional force measurement of the force in the x-axis, y-axis and z-axis directions includes the following steps:
[0060] S21. Install the force sensor on the pen grip and ensure that the sensor is tightly connected to the pen grip.
[0061] S22. Connect the sensor to the data acquisition unit, write with a pen, and let the sensor record the force on the pen in three directions to obtain the force change data in the x-axis, y-axis and z-axis directions.
[0062] S23. Process, analyze and summarize the intensity data to obtain the intensity variation pattern of different fonts and obtain intensity pattern data.
[0063] This invention uses sensors and data acquisition devices to perform three-dimensional force measurement in the x, y, and z axes, respectively, and records the force data corresponding to different fonts, summarizing the force pattern data. When carving fonts, the depth will change with different forces, making the fonts more beautiful and improving the regularity of carving.
[0064] According to step S3, the image edge extraction algorithm is a whole-nested edge detection algorithm.
[0065] According to step S4, setting the light source data and recording the simulated shadow image includes the following steps:
[0066] S41. Input the light source data and simultaneously set the light source position, light source height, and light source intensity in the simulated writing module;
[0067] S42. Input camera data, and simultaneously set the shooting position, shooting height and shooting angle in the simulated writing module to take a picture and obtain a simulated shadow image.
[0068] This invention uses a fixed light source to obtain the projection of the font shape that changes with different pressures based on optical principles, thus obtaining writing pressure data. By comparing the simulated shadow data with the initial shadow data, the precise pressure required for carving is obtained, improving the accuracy of carving while also ensuring the aesthetics of the carving.
[0069] It should be noted that, according to step S4, by comparing the hardness of the paper and the engraving material, and amplifying the force pattern data to obtain simulated force data, the following steps are included:
[0070] S41. Determine the Vickers hardness HV of the paper and the Mohs hardness HM of the engraving material;
[0071] S42, via HV = 3.25HM 3 The Vickers hardness of paper is converted to the Mohs hardness of the engraving material.
[0072] S43. Set up a measurement module to measure the thickness of the paper and the depth of the indentation when writing, as well as the thickness of the engraving material, so as to obtain the required engraving depth.
[0073] S44. By analyzing the force pattern, given the known hardness relationship between the paper hardness and the carving material hardness, and with the carving indentation depth as a fixed value, the simulated force data can be determined.
[0074] This invention establishes a simulated writing module. After inputting the three-dimensional model of the original carving, the simulated force data can be obtained by converting the hardness of the paper and carving material. The simulated force data can be obtained by inputting font data and simulating writing. The carving data can be easily obtained by converting the force, which saves the preparation time required for carving and also saves the carving time.
[0075] According to step S5, repeatedly correcting the simulated shadow data until it is exactly the same as the initial shadow data includes the following steps:
[0076] S51. Number the number of shadows on the initial shadow data, extract the edges of several shadows, and obtain the corresponding initial shadow edge data.
[0077] S52. Number the number of shadows on the simulated shadow data, extract the edges of several shadows, and obtain the corresponding simulated shadow edge data.
[0078] S53. By increasing or decreasing the engraving intensity, the simulated shadow edge data is changed, so that the simulated shadow edge data is exactly the same as the initial shadow edge data.
[0079] It should be noted that a larger shadow indicates a shallower engraving depth, representing a smaller engraving force; conversely, a smaller shadow indicates a deeper engraving depth, representing a larger engraving force.
[0080] This invention improves the accuracy of carving by altering the simulated shadow edge data through increasing or decreasing the carving force, repeatedly correcting it until it is completely identical to the initial shadow data. At the same time, it records the corrected carving force data, laying the foundation for font carving.
[0081] Figure 2 This is a three-dimensional structural diagram of a preferred embodiment of the present invention; the present invention also provides a calligraphy font engraving device based on optical principles, comprising: a plurality of fixed plates 1, and a moving unit 2 and an engraving unit 3 disposed on the fixed plates 1;
[0082] The moving unit 2 includes: a plurality of first sliding groups 21 disposed on the fixed plate 1, a moving plate 22 connected to the first sliding groups 21, a second sliding group 23 disposed on the moving plate 22, and a plurality of first guide rails 24 fixedly connected to the fixed plate 1 and a second guide rail 25 disposed on one side of the moving plate 22.
[0083] Figure 3 yes Figure 2 The overall three-dimensional structure of the engraving unit 3 at point A is shown; the first sliding group 21 is provided with a first guide block 26 that is slidably connected to the first guide rail 24, and the second sliding group 23 is provided with a second guide block 27 that is slidably connected to the second guide rail 25; both the first sliding group 21 and the second sliding group 23 include: a plurality of slide rails 28 that are fixedly connected to the fixed plate 1, and a slider 29 that is slidably connected to the slide rails 28.
[0084] A first limiting piece 261 for restricting the direction of movement is fixedly provided on the first guide block 26, and a second limiting piece 271 for restricting the direction of movement is fixedly provided on the second guide block 27; both the first guide block 26 and the second guide block 27 are connected to a motor 4.
[0085] Figure 4 This is a side view of the engraving unit 3 according to a preferred embodiment of the present invention; the engraving unit 3 includes: a connecting plate disposed on one side of the second sliding group 23, and engraving parts fixedly disposed on the connecting plate; each engraving part is connected to a motor 4.
[0086] This invention provides a calligraphy font engraving device based on optical principles. By changing the position of the second sliding group 23 through the first sliding group 21, and then moving the engraving unit 3 through the second sliding group 23, the device can move in any direction to engrave, thereby improving the engraving speed and ensuring the engraving efficiency.
[0087] When using this invention, the following steps are provided: S1, establish a database, input various styles of fonts, and store them as font data; S2, set a fixed light source, and store the light source position, light source height, and light source intensity as light source data; by writing different styles of fonts, perform three-dimensional force measurement on the force in the x-axis, y-axis, and z-axis directions respectively, and record the force pattern data corresponding to different fonts;
[0088] S3. When writing different styles of fonts, set up a camera, store the shooting position, shooting height and shooting angle as video data, shoot the font shadow image based on the light principle, extract the shadow edge image through the image edge extraction algorithm, and store it as the initial shadow data.
[0089] S4. Establish a simulated writing module. Input the corresponding 3D model of the original carving. By comparing the hardness of paper and carving material, amplify the force law data to obtain simulated force data. After inputting font data, simulate writing according to the simulated force data. Set the light source data and record the simulated shadow image.
[0090] S5. Obtain simulated shadow data through image edge extraction algorithm, compare simulated shadow data with initial shadow data, repeatedly correct the transformation intensity of simulated shadow data until it is exactly the same as the initial shadow data, and record the corrected carving intensity data; S6. Carve on the original piece according to the carving intensity data, and polish the carved characters with arc.
[0091] Based on the preferred embodiments of the present invention described above, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.
Claims
1. A method for carving calligraphic fonts based on optical principles, characterized in that, include: S1. Create a database, input various font styles, and save them as font data; S2. Set up a fixed light source and store the light source position, height, and intensity as light source data; by writing different styles of fonts, perform three-dimensional force measurement on the force in the x, y, and z axes respectively, and record the force pattern data corresponding to different fonts; S3. When writing different styles of fonts, set up a camera, store the shooting position, shooting height and shooting angle as video data, shoot the font shadow image based on the light principle, extract the shadow edge image through the image edge extraction algorithm, and store it as the initial shadow data. S4. Establish a simulated writing module. Input the corresponding 3D model of the original carving. By comparing the hardness of paper and carving material, amplify the force law data to obtain simulated force data. After inputting font data, simulate writing according to the simulated force data. Set the light source data and record the simulated shadow image. S5. Simulated shadow data is obtained through image edge extraction algorithm. The simulated shadow data is compared with the initial shadow data. The transformation intensity of the simulated shadow data is repeatedly corrected until it is exactly the same as the initial shadow data. At the same time, the corrected carving intensity data is recorded. S6. Carve on the original piece according to the carving force data, and polish the carved characters with an arc.
2. The method for engraving calligraphic fonts based on optical principles according to claim 1, characterized in that: According to step S2, the three-dimensional force measurement of the force in the x-axis, y-axis and z-axis directions includes the following steps: S21. Install the force sensor on the pen grip and ensure that the sensor is tightly connected to the pen grip. S22. Connect the sensor to the data acquisition unit, write with a pen, and let the sensor record the force on the pen in three directions to obtain the force change data in the x-axis, y-axis and z-axis directions. S23. Process, analyze and summarize the intensity data to obtain the intensity variation pattern of different fonts and obtain intensity pattern data.
3. The method for carving calligraphic fonts based on optical principles according to claim 1, characterized in that: According to step S3, the image edge extraction algorithm is a whole-nested edge detection algorithm.
4. The method for engraving calligraphic fonts based on optical principles according to claim 1, characterized in that: According to step S4, setting the light source data and recording the simulated shadow image includes the following steps: S41. Input the light source data and simultaneously set the light source position, light source height, and light source intensity in the simulated writing module; S42. Input camera data, and simultaneously set the shooting position, shooting height and shooting angle in the simulated writing module to take a picture and obtain a simulated shadow image.
5. The method for engraving calligraphic fonts based on optical principles according to claim 1, characterized in that: According to step S5, repeatedly correcting the simulated shadow data until it is exactly the same as the initial shadow data includes the following steps: S51. Number the number of shadows on the initial shadow data, extract the edges of several shadows, and obtain the corresponding initial shadow edge data. S52. Number the number of shadows on the simulated shadow data, extract the edges of several shadows, and obtain the corresponding simulated shadow edge data. S53. By increasing or decreasing the engraving intensity, the simulated shadow edge data is changed, so that the simulated shadow edge data is exactly the same as the initial shadow edge data.
6. A calligraphy font engraving device based on optical principles, comprising the engraving method according to any one of claims 1 to 5, including: A plurality of fixed plates, and a movable unit and an engraving unit disposed on the fixed plates; characterized in that: The moving unit includes: a plurality of first sliding groups disposed on the fixed plate, a moving plate connected to the first sliding groups, a second sliding group disposed on the moving plate, and a plurality of first guide rails fixedly connected to the fixed plate and a second guide rail disposed on one side of the moving plate; The engraving unit includes: a connecting plate disposed on one side of the second sliding group, and engraving components fixedly disposed on the connecting plate; each engraving component is connected to a motor.
7. The calligraphy font engraving device based on optical principles according to claim 6, characterized in that: The first sliding group is provided with a first guide block that is slidably connected to the first guide rail, and the second sliding group is provided with a second guide block that is slidably connected to the second guide rail.
8. The calligraphy font engraving device based on optical principles according to claim 7, characterized in that: The first guide block is fixedly provided with a first limiting piece for restricting the direction of movement, and the second guide block is fixedly provided with a second limiting piece for restricting the direction of movement.
9. The calligraphy font engraving device based on optical principles according to claim 6, characterized in that: Both the first sliding group and the second sliding group include: a plurality of slide rails fixedly connected to the fixed plate, and a slider slidably connected to the slide rails.
10. The calligraphy font engraving device based on optical principles according to claim 8, characterized in that: Both the first guide block and the second guide block are connected to motors.