Cutting process full-connection word plate production vector diagram generation method and device, equipment and medium

By using vector graphics generation method in the production of fully connected characters, the art operation process is simplified, the problems of complex operation and low production efficiency in the existing technology are solved, and efficient and low-cost production efficiency and product quality are achieved.

CN120070629APending Publication Date: 2025-05-30ZIXUN TECHNOLOGY (FUJIAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510108345.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The prior art is complicated when producing fully connected characters and requires a lot of manual processing, resulting in insufficient staff and low production efficiency. It is easy to cut lines incorrectly during mechanical cutting, resulting in the characters being cut off.

Method used

It provides a method for generating a fully connected word card production vector diagram by setting connection lines, rope holes and other operations, converting text into fully connected vector diagrams, and extracting outline points to generate production vector diagrams, simplifying the art operation process.

Benefits of technology

It greatly reduces the workload of artists, improves the efficiency of production vector graphics, reduces enterprise costs, and improves production efficiency and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120070629A_ABST
    Figure CN120070629A_ABST
Patent Text Reader

Abstract

The invention provides a cutting process full-connection word plate production vector diagram generation method and device, equipment and a medium. The method comprises the steps that a first word vector diagram, a second word vector diagram and a third word vector diagram are stored in a vector font file; obtaining a vector font file according to a specified font, obtaining a corresponding fourth font vector diagram from the vector font file according to the character content, selecting a corresponding fifth font vector diagram from second character vector diagrams in the vector font file for the leftmost character, and obtaining a fifth font vector diagram from the fifth font vector diagram; selecting a corresponding sixth font vector diagram from third character vector diagrams in the vector font file for the rightmost character; carrying out combination, and generating a corresponding full-font vector diagram; converting into a full-font bitmap, and performing contour point extraction on the full-font bitmap to obtain a contour point set; the corresponding production vector diagram is generated through the contour point set, so that the workload of art designers is greatly reduced, the production vector diagram generation efficiency is improved, and the enterprise cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method, device, equipment and medium for generating a vector graph of a fully connected word sign in a cutting process. Background Art

[0002] Currently, the steps for a factory to produce a fully connected word sign in a cutting process are as follows:

[0003] 1. Use CoreDraw software for production, select a font, and input text;

[0004] 2. Convert the text into curves (vector graphics);

[0005] 3. Add connecting strokes to the text curves with disconnection situations. For example, for a character like 'i', a connecting line or a rectangle, etc. needs to be added between the dot above and the vertical line below;

[0006] 4. Add threading holes to the vector graphics of the left and right end characters;

[0007] 5. Move each character so that there is an overlapping part between every two text vector graphics to obtain a vector graph of the character string;

[0008] 6. Add vector graphics of attachment materials and move the material vector graphics to overlap with the string vector graphics;

[0009] 7. Uncombine the string vector graphics;

[0010] 8. Uncombine the material vector graphics;

[0011] 9. Recombine the string vector graphics and the material vector graphics so that each text vector graphic and the material vector graphic form a whole vector graphic;

[0012] 10. Take the contour of the entire vector graphic;

[0013] 11. Save to obtain the final production vector graphic.

[0014] The existing technology has complex operations and requires a large amount of manual processing. There are a large number of repetitive operations for each order. When the factory has a large number of orders, the factory often faces the situation of insufficient art designers; and during the operation of the art designers, it is also necessary to pay attention to whether there are lines inside the final production vector graphic, which cannot be observed by the naked eye, but when used for mechanical cutting, the machine will cut according to this line, resulting in the cut-off of the produced word sign, not meeting the production requirements. Summary of the Invention

[0015] The technical problem to be solved by the present invention is to provide a method, device, equipment and medium for generating production vector graphics of fully connected character signs in a cutting process, which greatly reduces the workload of graphic designers, improves the efficiency of generating production vector graphics, and reduces the costs of enterprises.

[0016] In a first aspect, the present invention provides a method for generating production vector graphics of fully connected character signs in a cutting process, including the following steps:

[0017] Step 1: Set connection lines to connect the breakpoints of the text with breakpoints to form a first text vector graphic; set left rope holes on each text to form a second text vector graphic, and set right rope holes on each text to form a third text vector graphic; save the first text vector graphic, the second text vector graphic, and the third text vector graphic to a vector font file; record the positional relationship between every two text vector graphics in the corresponding vector font file;

[0018] Step 2: Obtain the vector font file according to the specified font, and according to the text content, obtain the corresponding fourth font vector graphic from the vector font file. Select the corresponding fifth font vector graphic for the leftmost text from the second text vector graphic in the vector font file, and select the corresponding sixth font vector graphic for the rightmost text from the third text vector graphic in the vector font file;

[0019] Step 3: Combine the selected vector graphics according to the corresponding positional relationship and generate the corresponding full-font vector graphic;

[0020] Step 4: Convert the full-font vector graphic into a full-font bitmap, and perform contour point extraction on the full-font bitmap to obtain a contour point set;

[0021] Step 5: Generate the corresponding production vector graphic through the contour point set.

[0022] In a second aspect, the present invention provides a device for generating production vector graphics of fully connected character signs in a cutting process, including:

[0023] A vector graphic setting module that sets connection lines to connect the breakpoints of the text with breakpoints to form a first text vector graphic; sets left rope holes on each text to form a second text vector graphic, and sets right rope holes on each text to form a third text vector graphic; saves the first text vector graphic, the second text vector graphic, and the third text vector graphic to a vector font file; records the positional relationship between every two text vector graphics in the corresponding vector font file;

[0024] An obtaining and setting vector module obtains a vector font file according to a specified font, and according to the text content, obtains a corresponding fourth font vector map from the vector font file. The leftmost text selects a corresponding fifth font vector map from the second text vector map in the vector font file, and the rightmost text selects a corresponding sixth font vector map from the third text vector map in the vector font file;

[0025] A merging and generating module combines the selected vector maps according to the corresponding positional relationship and generates a corresponding full-font vector map;

[0026] A converting to bitmap module converts the full-font vector map to a full-font bitmap, extracts contour points from the full-font bitmap, and obtains a contour point set;

[0027] A generating for production module generates a corresponding production vector map through the contour point set.

[0028] In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method described in the first aspect is implemented.

[0029] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.

[0030] One or more technical solutions provided by the present invention have at least the following technical effects or advantages:

[0031] The technical solution of the present invention enables graphic designers to only produce fonts according to requirements when there are new font requirements, without having to produce each production manuscript from scratch every time, greatly reducing the workload of graphic designers. When there is an order, employees can input the requirements given by the customer into the system, directly generate the required vector manuscript diagram for production, and then transfer the appropriate manuscript diagram to the production machine operator or manuscript reviewer for processing, and then production can be carried out, greatly simplifying the workload of graphic designers, improving the production efficiency of the enterprise, reducing the cost of the enterprise, and enhancing the competitiveness of the enterprise.

[0032] The above description is only an overview of the technical solution of the present invention. In order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable, the following specifically describes the embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The present invention will be further described below with reference to the accompanying drawings in conjunction with embodiments.

[0034] Figure 1It is the flowchart in the method of Embodiment 1 of the present invention;

[0035] Figure 2 It is the structural schematic diagram of the device in Embodiment 2 of the present invention.

[0036] Figure 3 It is the product schematic of the present invention Figure 1 。

[0037] Figure 4 It is the product schematic of the present invention Figure 2 。 Detailed implementation manners

[0038] Embodiment 1

[0039] As Figure 1 shown, this embodiment provides a method for generating a production vector map of a fully connected character board for a cutting process, including the following steps:

[0040] Step 1: Set connection lines for the characters with breakpoints to connect the breakpoints, forming a first character vector map (for the letter 'i', the dot above and the vertical line below are separated, so the dot and the vertical line need to be connected by setting a square); set left threading holes on each character to form a second character vector map, and set right threading holes on each character to form a third character vector map; save the first character vector map, the second character vector map, and the third character vector map to a vector font file; record the positional relationship between every two character vector graphics in the corresponding vector font file; through the positional relationship, two characters can be connected, that is, by reducing the character spacing, the two characters are connected together;

[0041] Step 2: Obtain the vector font file according to the specified font, and according to the text content, obtain the corresponding fourth font vector map from the vector font file, select the corresponding fifth font vector map for the leftmost character from the second character vector map in the vector font file, and select the corresponding sixth font vector map for the rightmost character from the third character vector map in the vector font file;

[0042] Step 3: Combine the selected vector maps according to the corresponding positional relationship and generate the corresponding full-font vector map;

[0043] Step 4: Convert the full-font vector map into a full-font bitmap, and extract the contour points from the full-font bitmap to obtain a contour point set;

[0044] Step 5: Generate the corresponding production vector map through the contour point set.

[0045] In this embodiment, preferably, step 1 is specifically as follows: Set connection lines for the text with breakpoints to connect the breakpoints to form a first text vector graph; Set left threading holes on each piece of text to form a second text vector graph, and set right threading holes on each piece of text to form a third text vector graph; Set left threading holes on the left side of each material to form a first material vector graph, and set right threading holes on the right side of each material to form a second material vector graph; Save the first text vector graph, the second text vector graph, the third text vector graph, the first material vector graph, and the second material vector graph to a vector font file; Record the positional relationships between every two text vector graphs and the positional relationships between each material vector graph and each text vector graph in the corresponding vector font file;

[0046] Step 2 is specifically as follows: Obtain a vector font file according to the specified font, and obtain the corresponding fourth font vector graph from the vector font file according to the text content;

[0047] If there is a selected material and the material position is on the left, select the corresponding third material vector graph from the first material vector graph, and select the corresponding fifth font vector graph for the rightmost text from the third text vector graph in the vector font file;

[0048] If there is a selected material and the material position is on the right, select the corresponding fourth material vector graph from the second material vector graph, and select the corresponding sixth font vector graph for the rightmost text from the third text vector graph in the vector font file;

[0049] If there is no selected material, select the corresponding fifth font vector graph for the leftmost text from the second text vector graph in the vector font file, and select the corresponding sixth font vector graph for the rightmost text from the third text vector graph in the vector font file.

[0050] In this embodiment, preferably, step 4 is specifically as follows: Convert the full font vector graph into a full font bitmap, perform contour point extraction on the full font bitmap, traverse each pixel point of the full font bitmap, if the pixel points above, below, left, right, upper left, lower left, upper right, and lower right of the pixel point include white and black pixel points, then use this pixel point as a contour point until a contour point set is obtained.

[0051] In this embodiment, preferably, step 5 is specifically as follows: Generate a corresponding production vector graph through the contour point set and in combination with the required size.

[0052] As Figure 3 and Figure 4 shown, through the above method, an English string can be directly used to generate a corresponding production vector graph, and then the factory can perform the generation to obtain the corresponding word sign.

[0053] Based on the same inventive concept, this application also provides an apparatus corresponding to the method in Embodiment 1. For details, see Embodiment 2.

[0054] Embodiment 2

[0055] As Figure 2 shown, in this embodiment, a device for generating a production vector map of a cutting process full-connected character board is provided, including:

[0056] A vector map setting module that sets connection lines to connect breakpoints for the text with breakpoints to form a first text vector map; sets left threading holes on each text to form a second text vector map, and sets right threading holes on each text to form a third text vector map; saves the first text vector map, the second text vector map, and the third text vector map to a vector font file; records the positional relationship between every two text vector graphics into the corresponding vector font file;

[0057] A set vector obtaining module that obtains a vector font file according to a specified font, and obtains a corresponding fourth font vector map from the vector font file according to the text content, selects a corresponding fifth font vector map for the leftmost text from the second text vector map in the vector font file, and selects a corresponding sixth font vector map for the rightmost text from the third text vector map in the vector font file;

[0058] A merging and generating module that combines the selected vector maps according to the corresponding positional relationships and generates a corresponding full-font vector map;

[0059] A bitmap conversion module that converts the full-font vector map into a full-font bitmap, and extracts contour points from the full-font bitmap to obtain a contour point set;

[0060] A production generating module that generates a corresponding production vector map through the contour point set.

[0061] In this embodiment, preferably, the vector map setting module is specifically: setting connection lines to connect breakpoints for the text with breakpoints to form a first text vector map; setting left threading holes on each text to form a second text vector map, setting right threading holes on each text to form a third text vector map; setting left threading holes on the left side of each material to form a first material vector map, setting right threading holes on the right side of each material to form a second material vector map; saving the first text vector map, the second text vector map, the third text vector map, the first material vector map, and the second material vector map to a vector font file; recording the positional relationship between every two text vector graphics and the positional relationship between each material vector graphic and each text vector graphic into the corresponding vector font file;

[0062] The specific module for obtaining the set vector is as follows: obtain the vector font file according to the specified font, and obtain the corresponding fourth font vector diagram from the vector font file according to the text content;

[0063] If there is a selected material and the position of the material is on the left, select the corresponding third material vector diagram from the first material vector diagram, and select the corresponding fifth font vector diagram for the rightmost text from the third text vector diagram in the vector font file;

[0064] If there is a selected material and the position of the material is on the right, select the corresponding fourth material vector diagram from the second material vector diagram, and select the corresponding sixth font vector diagram for the rightmost text from the third text vector diagram in the vector font file;

[0065] If there is no selected material, select the corresponding fifth font vector diagram for the leftmost text from the second text vector diagram in the vector font file, and select the corresponding sixth font vector diagram for the rightmost text from the third text vector diagram in the vector font file.

[0066] In this embodiment, preferably, the specific module for converting the bitmap is as follows: convert the full font vector diagram into a full font bitmap, extract the contour points of the full font bitmap, traverse each pixel point of the full font bitmap, and if the pixel points above, below, left, right, upper left, lower left, upper right, and lower right of the pixel point include white and black pixel points, then regard the pixel point as a contour point until a contour point set is obtained.

[0067] In this embodiment, preferably, the specific module for generating the production is as follows: generate the corresponding production vector diagram through the contour point set and in combination with the required size.

[0068] Since the device introduced in the second embodiment of the present invention is the device adopted for implementing the method in the first embodiment of the present invention, based on the method introduced in the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device, so it will not be elaborated here. Any device adopted for the method in the first embodiment of the present invention belongs to the scope of protection of the present invention.

[0069] Based on the same inventive concept, this application provides an electronic device embodiment corresponding to Embodiment 1, as shown in Embodiment 3 for details.

[0070] Embodiment 3

[0071] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be realized.

[0072] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method introduced in Embodiment 1 of this application, those skilled in the art can understand the specific implementation manners of the electronic device in this embodiment and their various variations. Therefore, the specific implementation of how this electronic device implements the method in the embodiments of this application will not be introduced in detail here. As long as the device used by those skilled in the art to implement the method in the embodiments of this application belongs to the scope protected by this application.

[0073] Based on the same inventive concept, this application provides a storage medium corresponding to Embodiment 1, as detailed in Embodiment 4.

[0074] Embodiment 4

[0075] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any implementation manner in Embodiment 1 can be realized.

[0076] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0077] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be realized by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the specified functions in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0078] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device realizes the specified functions in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are executed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions for implementing the steps of the function specified in one process or multiple processes and / or blocks Figure 1 one process or multiple processes and / or blocks Figure 1 in one block or multiple blocks.

[0080] Although the specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments we described are illustrative rather than limiting the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered by the scope of the claims of the present invention.

Claims

1. A method for generating a vector diagram of a fully connected cutting process signboard, characterized in that: The steps include: Step 1: Set connecting lines for the characters with breakpoints to connect the breakpoints to form a first character vector diagram; set a left rope hole on each character to form a second character vector diagram, and set a right rope hole on each character to form a third character vector diagram; save the first character vector diagram, the second character vector diagram, and the third character vector diagram to a vector font file; Record the positional relationship between every two text vector graphics into the corresponding vector font file; Step 2: obtaining a vector font file according to the specified font, and obtaining a corresponding fourth font vector map from the vector font file according to the text content, selecting a corresponding fifth font vector map from the second text vector map in the vector font file for the leftmost text, and selecting a corresponding sixth font vector map from the third text vector map in the vector font file for the rightmost text; Step 3: Combine the selected vector graphics according to the corresponding positional relationship and generate a corresponding full font vector graphics; Step 4: convert the full font vector image into a full font bitmap, extract contour points from the full font bitmap, and obtain a contour point set; Step 5: Generate a corresponding production vector map using the contour point set.

2. The method for generating a vector diagram of a cutting process fully connected signboard according to claim 1, characterized in that: The step 1 is specifically as follows: setting connecting lines for the characters with breakpoints to connect the breakpoints to form a first character vector diagram; setting a left rope hole on each character to form a second character vector diagram, and setting a right rope hole on each character to form a third character vector diagram; setting a left rope hole on the left side of each material to form a first material vector diagram, and setting a right rope hole on the right side of each material to form a second material vector diagram; saving the first character vector diagram, the second character vector diagram, the third character vector diagram, the first material vector diagram, and the second material vector diagram to a vector font file; recording the positional relationship between each two character vector graphics, and the positional relationship between each material vector graphics and each character vector graphics to a corresponding vector font file; The step 2 specifically includes: obtaining a vector font file according to the specified font, and obtaining a corresponding fourth font vector image from the vector font file according to the text content; If the selected material exists and the material position is on the left, then the corresponding third material vector image is selected from the first material vector image, and the corresponding fifth font vector image is selected from the third text vector image in the vector font file for the rightmost text; If the selected material exists and the material position is on the right, then the corresponding fourth material vector image is selected from the second material vector image, and the corresponding sixth font vector image is selected from the third font vector image in the vector font file for the rightmost text; If the selected material does not exist, the fifth font vector diagram corresponding to the leftmost text is selected from the second text vector diagram in the vector font file, and the sixth font vector diagram corresponding to the rightmost text is selected from the third text vector diagram in the vector font file.

3. The method for generating a vector diagram of a cutting process fully connected signboard production according to claim 1, characterized in that: The step 4 is specifically as follows: converting the full font vector map into a full font bitmap, extracting contour points from the full font bitmap, traversing each pixel point of the full font bitmap, and if the pixels above, below, left, right, upper left, lower left, upper right and lower right of the pixel point include white and black pixels, then the pixel point is used as a contour point until a contour point set is obtained.

4. The method for generating a vector diagram of a cutting process fully connected signboard production according to claim 1, characterized in that: The step 5 specifically includes: generating a corresponding production vector map by combining the contour point set with the required size.

5. A device for generating vector diagrams for producing fully connected signboards using cutting technology, characterized in that: include: Set a vector graphics module, set connecting lines for the characters with breakpoints to connect the breakpoints to form a first character vector graphics; set a left rope threading hole on each character to form a second character vector graphics, and set a right rope threading hole on each character to form a third character vector graphics; save the first character vector graphics, the second character vector graphics and the third character vector graphics to a vector font file; Record the positional relationship between every two text vector graphics into the corresponding vector font file; The vector setting module is obtained, a vector font file is obtained according to the specified font, and a corresponding fourth font vector diagram is obtained from the vector font file according to the text content, a fifth font vector diagram is selected from the second text vector diagram in the vector font file for the leftmost text, and a sixth font vector diagram is selected from the third text vector diagram in the vector font file for the rightmost text; A merging and generating module combines the selected vector images according to corresponding positional relationships and generates a corresponding full font vector image; A bitmap conversion module converts the full font vector map into a full font bitmap, extracts contour points from the full font bitmap, and obtains a contour point set; A production module is generated to generate a corresponding production vector map through the contour point set.

6. The device for generating a vector diagram for producing a fully connected cutting board according to claim 5, characterized in that: The module for setting vector graphics is specifically as follows: setting connecting lines for the characters with breakpoints to connect the breakpoints to form a first character vector graphics; setting a left rope hole on each character to form a second character vector graphics, and setting a right rope hole on each character to form a third character vector graphics; setting a left rope hole on the left side of each material to form a first material vector graphics, and setting a right rope hole on the right side of each material to form a second material vector graphics; saving the first character vector graphics, the second character vector graphics, the third character vector graphics, the first material vector graphics, and the second material vector graphics to a vector font file; recording the positional relationship between each two character vector graphics, and the positional relationship between each material vector graphics and each character vector graphics to a corresponding vector font file; The module for obtaining and setting vectors specifically comprises: obtaining a vector font file according to a specified font, and obtaining a corresponding fourth font vector image from the vector font file according to text content; If the selected material exists and the material position is on the left, then the corresponding third material vector image is selected from the first material vector image, and the corresponding fifth font vector image is selected from the third text vector image in the vector font file for the rightmost text; If the selected material exists and the material position is on the right, then the corresponding fourth material vector image is selected from the second material vector image, and the corresponding sixth font vector image is selected from the third font vector image in the vector font file for the rightmost text; If the selected material does not exist, the fifth font vector diagram corresponding to the leftmost text is selected from the second text vector diagram in the vector font file, and the sixth font vector diagram corresponding to the rightmost text is selected from the third text vector diagram in the vector font file.

7. The device for generating a vector diagram for producing a fully connected cutting board according to claim 5, characterized in that: The conversion bitmap module specifically converts the full font vector image into a full font bitmap, extracts contour points from the full font bitmap, and traverses each pixel point of the full font bitmap. If the pixels above, below, left, right, upper left, lower left, upper right, and lower right of the pixel point include white and black pixels, then the pixel point is used as a contour point until a contour point set is obtained.

8. The device for generating a vector diagram for producing a fully connected cutting board according to claim 5, characterized in that: The production generation module specifically generates a corresponding production vector map through the contour point set and in combination with the required size.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.