Automatic layout method of cutting image, printing method, layout device and electronic equipment

By using an automated pattern cutting image layout method, pattern cuttings are categorized and laid out on a canvas according to their type information. This solves the problems of low efficiency and confusion in manual layout in existing technologies, and achieves efficient and orderly layout for pattern cutting production.

CN117944360BActive Publication Date: 2026-04-17SHENZHEN HOSONSOFT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN HOSONSOFT CO LTD
Filing Date
2022-10-21
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing pattern layout methods rely on manual operation, resulting in low production efficiency and easy confusion between pattern pieces of different garments, affecting order production.

Method used

The automated method of arranging cut pieces images classifies and arranges them on the canvas according to the category information of the cut pieces (such as color, type, size and logo), ensuring that cut pieces of the same category do not overlap, and generates the final layout combination using preset methods.

Benefits of technology

It improves the efficiency of pattern layout, reduces the probability of production staff confusing pattern pieces, ensures the orderliness and efficiency of pattern piece production, and is suitable for automated production in smart printing factories.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117944360B_ABST
    Figure CN117944360B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of image layout technology, solving the problem of low production efficiency of cut pieces in existing technologies. It provides an automatic cut piece image layout method, printing method, and related equipment. The method includes: obtaining multiple cut piece image files according to file paths; generating cut piece images corresponding to the cut piece image files on a canvas; obtaining the category information of the cut piece image files; and automatically placing cut piece images of the same category in the same area of ​​the canvas according to the category information and a preset method, ensuring that the cut piece images do not overlap. The category information includes one or more of the following: cut piece color information, cut piece type information, cut piece size information, and cut piece identification information. This solution can classify cut pieces according to the needs of production personnel, automatically layout different categories of cut pieces, improving layout efficiency. Furthermore, the regular layout according to the needs of production personnel reduces the probability of confusion and further improves the production efficiency of cut pieces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image layout, and in particular to an automatic layout method, printing method, layout device and electronic device for cut images. Background Technology

[0002] A garment piece is a component of a garment. For example, a T-shirt consists of a front piece, a back piece, a left sleeve, and a right sleeve. The front piece, back piece, left sleeve, and right sleeve are the garment pieces. The current process for garment pieces involves printing the outline and pattern of the garment piece onto heat transfer paper, and then transferring the outline and pattern onto the fabric using heat transfer. Finally, the fabric is cut into individual garment pieces.

[0003] Before heat transfer printing, the outlines of the cut pieces need to be laid out on a computer. Currently, this layout is mainly done manually, with the cut pieces arranged on the computer to determine their placement. This method relies heavily on the experience of the layout personnel and is time-consuming. Furthermore, since cut pieces from different garments and different orders may appear in the same layout process, when there are many cut pieces, garment production staff can easily confuse cut pieces for different garments, making it impossible to obtain the correct pieces, and thus halting order production. In summary, the existing cut piece layout method has low production efficiency. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide an automatic layout method, printing method, layout device and electronic device for cut pieces images, in order to solve the problem of low production efficiency of existing cut piece layout methods.

[0005] In a first aspect, embodiments of the present invention provide a method for automatic layout of cropped images, the method comprising:

[0006] Obtain multiple cut-piece image files based on the file path, and generate the cut-piece image corresponding to the cut-piece image files on the canvas;

[0007] Obtain the category information of the cut piece image file. Based on the category information, automatically place cut piece images of the same category in the same area of ​​the canvas according to a preset method, and ensure that the cut piece images do not overlap. The category information includes one or any combination of cut piece color information, cut piece type information, cut piece size information, and cut piece identification information.

[0008] Preferably, the step of obtaining multiple cut-out image files according to file paths and generating cut-out images corresponding to the cut-out image files on the canvas includes:

[0009] Based on the first file path of the first folder, obtain the category information of each of the cropped image files;

[0010] Based on the category information, at least one second folder is generated for each category, and the cropped image files of the same category are placed in the same folder, wherein the first folder and the second folder are not the same folder;

[0011] Obtain the second file paths of different second folders, and display the cut images in different areas on the canvas in sequence, wherein the cut images originating from the same second folder are located in the same area.

[0012] Preferably, the step of obtaining the category information of the cut image file, and automatically placing cut images of the same category in the same area of ​​the canvas according to the category information and a preset method, and setting the cut images without overlap, includes:

[0013] The outline of the cut piece image is identified, and cut piece images with the same or similar outlines are placed in the same area of ​​the canvas to achieve automatic layout of the cut piece images according to the cut piece type information.

[0014] Preferably, the category information includes the piece identification information. The step of obtaining the category information of the piece image file, and automatically placing pieces of the same category in the same area of ​​the canvas according to the category information and a preset method, with no overlap among the pieces, includes:

[0015] Obtain the name information of the cut image file, classify the cut images according to the name information, and place the cut images of the same category in the same area of ​​the canvas;

[0016] or,

[0017] Obtain the tag information pre-stored in the cut image file, classify the cut images according to the tag information, and place cut images of the same category in the same area of ​​the canvas. The tag information includes field information and pattern information pre-stored in the cut image file for image classification.

[0018] Preferably, the step of obtaining the category information of the cut image files, and automatically placing cut images of the same category in the same area of ​​the canvas according to the category information and a preset method, and setting the cut images without overlap, includes:

[0019] The cut image is filled to the width of the canvas;

[0020] The cut images are rotated and / or their positions are swapped to generate multiple layout combinations. The cut images are not set to overlap. The height information of each layout combination is obtained within a specified time period. The layout with the lowest height value in the height direction of the canvas is selected as the final layout.

[0021] Secondly, embodiments of the present invention provide a printing method, including:

[0022] The automatic layout method for cut piece images according to any one of claims 1 to 5 is used to automatically layout a plurality of cut piece images;

[0023] After the automatic layout of the cut image is completed, a file is exported from the canvas, including a print file and an image file.

[0024] or,

[0025] After the cut image is automatically laid out, the print file is exported from the canvas while the printing process is started.

[0026] Thirdly, embodiments of the present invention provide an automatic layout device for cut images, the device comprising:

[0027] The acquisition module is used to acquire multiple cut-piece image files according to the file path, and generate the cut-piece image corresponding to the cut-piece image file on the canvas;

[0028] The layout module is used to obtain the category information of the cut piece image file, and according to the category information, automatically place cut piece images of the same category in the same area of ​​the canvas in a preset manner, and the cut piece images are not overlapped. The category information includes one or any combination of cut piece color information, cut piece type information, cut piece size information and cut piece identification information.

[0029] Fourthly, embodiments of the present invention provide an electronic device, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the methods of the first and second aspects described above.

[0030] Fourthly, embodiments of the present invention provide a storage medium storing computer program instructions thereon, which, when executed by a processor, implement the methods of the first and second aspects described above.

[0031] Fifthly, embodiments of the present invention provide a printing system, comprising:

[0032] An electronic device is used to execute the aforementioned automatic layout method for cut images to automatically layout several cut images and generate a print file;

[0033] A printer is used to receive the print file and perform the printing method described above.

[0034] In summary, the beneficial effects of the present invention are as follows:

[0035] The automatic pattern layout method, printing method, layout device, and electronic device provided in this invention allow designers to classify pattern pieces according to the needs of production personnel. These classifications include, but are not limited to, pattern piece color, pattern piece type, pattern piece size, and pattern piece identification. The automatic layout of different types of pattern pieces improves layout efficiency and, by arranging them systematically according to the needs of production personnel, reduces the probability of production personnel confusing pattern pieces, ultimately improving the production efficiency of pattern pieces. Attached Figure Description

[0036] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.

[0037] Figure 1 This is a flowchart illustrating a first embodiment of an automatic layout method for cut images according to the present invention;

[0038] Figure 2 This is a schematic diagram of a canvas display of a cut piece image in an embodiment of the present invention;

[0039] Figure 3 This is a schematic diagram of the first embodiment of the identification information in this invention;

[0040] Figure 4 This is a schematic diagram of the image before layout in a second embodiment of the automatic layout method for cut images according to the present invention;

[0041] Figure 5 This is a schematic diagram of the image layout after the second embodiment of the automatic layout method for cut images of the present invention;

[0042] Figure 6 This is a flowchart illustrating a first embodiment of a printing method according to the present invention;

[0043] Figure 7 This is a schematic diagram of the structure of a first embodiment of an automatic layout device for cut images according to the present invention;

[0044] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention;

[0045] Figure 9 This is a schematic diagram of the printing system according to an embodiment of the present invention. Detailed Implementation

[0046] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.

[0047] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0048] Please see Figure 1 This invention provides an automatic layout method for cropped images, the method comprising:

[0049] S1: Obtain multiple cut-piece image files according to the file path, and generate the cut-piece image corresponding to the cut-piece image file on the canvas;

[0050] S2: Obtain the category information of the cut piece image file. According to the category information, automatically place cut piece images of the same category in the same area of ​​the canvas in a preset manner, and set the cut piece images without overlap. The category information includes one or any combination of cut piece color information, cut piece type information, cut piece size information and cut piece identification information.

[0051] In this embodiment of the invention, for example, there are 100 pattern image files in the first folder. These pattern image files include, but are not limited to, left sleeve files, right sleeve files, front piece files, and back piece files. The software obtains the file path of the first folder, for example, "D:\Users\Pictures\", and generates the pattern images corresponding to the pattern image files on the canvas, such as... Figure 2 As shown ( Figure 2 (Only partial cut pieces are displayed). The software obtains the category information of the cut piece image files and classifies the cut piece image files in the first folder according to the category information. The canvas is divided into multiple areas, with cut piece images of the same category placed in the same area and cut piece images of different categories placed in different areas.

[0052] There are various classification methods. For example, the software can classify cut pieces based on their color, placing blue pieces in the first area of ​​the canvas and red pieces in the second area. Color recognition methods include, but are not limited to, reading the RGB values ​​of the cut piece image file and determining the color of the cut piece image based on these values. Another example is categorizing cut pieces by type, including but not limited to left sleeve, right sleeve, front piece, and back piece. Image recognition can be used to place pieces of the same type in the same area and pieces of different types in different areas; for example, all left sleeve pieces would be placed in the first area of ​​the canvas, and all right sleeve pieces in the second area. Yet another example is classifying by size, placing pieces of the same size in the same area and pieces of different sizes in different areas; for example, size S pieces would be placed in the first area of ​​the canvas, and size M pieces in the second area. Finally, the software can classify cut pieces based on their identification information, placing pieces with the same identification information in the same area and pieces with different identification information in different areas. For example, a piece of fabric with label information A is placed in the first area of ​​the canvas, and a piece of fabric with label information B is placed in the second area of ​​the canvas.

[0053] In summary, designers can categorize cut pieces according to the needs of production personnel. These categorizations include, but are not limited to, cut piece color, cut piece type, cut piece size, and cut piece identification. The system automatically arranges different categories of cut pieces, improving layout efficiency. Furthermore, the systematic layout according to production personnel's needs reduces the probability of confusion, ultimately increasing production efficiency. In a preferred embodiment, the following layout steps can reduce image confusion and improve cutting efficiency, creating a smart printing factory: The layout is performed in the following manner:

[0054] Obtain the color, type, size, and identification information of the cut image;

[0055] The images are categorized according to their type. Prioritizing the categorization of images here ensures that when printing on heat transfer paper, images of the same type, such as left or right sleeve, are placed on the same heat transfer paper. This facilitates subsequent heat transfer operations on the same location when using robotic arms or manual methods to transfer the pattern from the heat transfer paper to flexible media (such as fabric). This avoids the tedious process of repeatedly positioning different patterns in the same location during heat transfer.

[0056] After classification, the cut pieces are further classified according to their colors. This is because when transferring to a flexible medium, cut pieces of the same color are usually close together. From the perspective of pattern aesthetics, placing cut pieces of the same color together reduces visual clutter and lowers the difficulty of data processing for machine vision or manual processing.

[0057] After color classification is completed, identify the different cut images of the same color and classify them according to the identification.

[0058] After the labels and categories are completed, arrange the images according to their size. You can arrange the images from largest to smallest or smallest to largest, or have the largest size in the middle and the sizes on both sides decrease sequentially.

[0059] The above methods can not only reduce disorder and clutter in typesetting, but also improve the efficiency of machine vision or human eye detection, making automatic typesetting easier.

[0060] Further, step S1, which involves obtaining multiple cut-piece image files based on file paths and generating cut-piece images corresponding to the cut-piece image files on the canvas, includes:

[0061] S11: Obtain the category information of each of the cropped image files according to the first file path of the first folder;

[0062] S12: Based on the category information, at least one second folder is generated for each category, and the cropped image files of the same category are placed in the same folder, wherein the first folder and the second folder are not the same folder;

[0063] S13: Obtain the second file paths of different second folders, and display the cut images in different areas on the canvas in sequence, wherein the cut images originating from the same second folder are located in the same area.

[0064] In this embodiment of the invention, for example, a first folder contains 100 fabricated image files, with the first file path of the first folder, for example, "D:\Users\Pictures\". The category information of these 100 fabricated image files, such as fabric color information and fabric size information, is obtained. Based on the category information, at least one second folder is generated for each category. For example, the fabricated images are categorized according to fabric color, generating red folders, blue folders, yellow folders, etc., with the file paths of the second folders being "D:\Users\Pictures\Red", "D:\Users\Pictures\Blue", and "D:\Users\Pictures\Yellow", respectively. Fabricated image files of the same category are placed in the same folder; red fabricated images are placed in the red folder, blue fabricated images are placed in the blue folder, and so on. The second file paths of the different second folders are obtained, and the fabricated images are displayed sequentially in different areas of the canvas. For example, the first area of ​​the canvas displays red fabricated images, and the second area of ​​the canvas displays blue fabricated images. Using the above method, the software automatically classifies the cut piece images and saves the cut piece image files according to the classification results. Designers and production personnel can extract or save the cut piece image files of the corresponding categories as needed.

[0065] Further, step S2, which involves obtaining the category information of the cut image files and, based on the category information, automatically placing cut images of the same category in the same area of ​​the canvas according to a preset method, and ensuring that the cut images do not overlap, includes:

[0066] S21: Identify the outline of the cut piece image, and place cut piece images with the same or similar outlines in the same area of ​​the canvas to achieve automatic layout of the cut piece images according to the cut piece type information.

[0067] In this embodiment of the invention, the software identifies the outlines of the cut piece images in each folder, placing cut piece images with the same or similar outlines in the same area. For example, cut piece image file 1 is for the left sleeve, cut piece image file 2 is for the right sleeve, and cut piece image file 3 is for the left sleeve. The software automatically identifies the outlines of the cut piece image files, classifying cut piece image file 1 and cut piece image file 3 into the "left sleeve" category and placing them in the first area, while classifying cut piece image file 2 into the "front piece" category and placing it in the second area. Through this setting, designers can quickly arrange layouts according to the type of cut piece; only one type of cut piece will exist in the same area, reducing confusion and improving cut piece production efficiency.

[0068] Further, the category information includes the piece identification information. Step S2, which involves obtaining the category information of the piece image file and automatically placing pieces of the same category in the same area of ​​the canvas according to the category information and a preset method, and ensuring that the pieces do not overlap, includes:

[0069] S22: Obtain the name information of the cut image file, classify the cut images according to the name information, and place the cut images of the same category in the same area of ​​the canvas;

[0070] or,

[0071] S23: Obtain the tag information pre-stored in the cut image file, classify the cut images according to the tag information, and place the cut images of the same category in the same area of ​​the canvas, wherein the tag information includes field information and pattern information pre-stored in the cut image file for image classification.

[0072] In this embodiment of the invention, the pattern sheet identification information includes the name information and tag information of the pattern image files. For example, the pattern image files in the first folder are named according to a standard format, such as pattern pieces 1 to 4 being named "1-Left Sleeve", "2-Left Sleeve", "1-Right Sleeve", and "2-Right Sleeve", respectively. The software can, according to user needs, place "1-Left Sleeve" and "1-Right Sleeve", pattern pieces belonging to order 1, in the first area of ​​the canvas, and place "2-Left Sleeve" and "2-Right Sleeve", pattern pieces belonging to order 2, in the second area of ​​the canvas. Based on the order identifier in the name information, pattern pieces from the same order are placed in the same area. Alternatively, the software can, according to user needs, place "1-Left Sleeve" and "2-Left Sleeve", pattern pieces belonging to the same pattern type, in the first area of ​​the canvas, and place "1-Right Sleeve" and "2-Right Sleeve", pattern pieces belonging to the same pattern type, in the second area of ​​the canvas, automatically placing pattern pieces of the same type in the same area based on the type identifier in the name information. By using the above method, the cut piece images are automatically arranged according to the name information of the cut piece image files, thereby improving the production efficiency of cut pieces.

[0073] In another embodiment of the present invention, the software obtains tag information pre-stored in the cut piece image file, classifies the cut piece images according to the tag information, and places cut piece images of the same category in the same area of ​​the canvas. The tag information includes field information and pattern information. For example, refer to... Figure 3The software embeds category tags into the file information of the cut piece image files. These tags can be custom strings. The software recognizes these strings and categorizes the cut piece images into different areas of the canvas based on the different strings. These strings do not change with changes to the file name. Alternatively, the tags can also be embedded pattern information from the cut piece images. Pattern information includes, but is not limited to, triangles and squares. The software recognizes these patterns, grouping pieces with triangular patterns into one category and placing them in the first area of ​​the canvas, and pieces with square patterns into another category and placing them in the second area. This pattern information also does not change with changes to the file name. By embedding these unchanging tags into the cut piece image files, the stability of the cut piece image files is improved. Even if the designer changes the image file name, the software can still automatically arrange the cut pieces based on the tags.

[0074] Reference Figure 4 and Figure 5 Step S2, which involves obtaining the category information of the cut-out image file and, based on the category information, automatically placing cut-out images of the same category in the same area of ​​the canvas according to a preset method, with no overlap among the cut-out images, includes:

[0075] S2A: The cut image is filled in the width direction of the canvas;

[0076] S2B: Rotate and / or swap the positions of each of the cut pieces to generate multiple layout combinations, with no overlap among the cut pieces. Obtain the height information of each layout combination within a specified time period, and select the layout with the lowest height value in the height direction of the canvas as the final layout.

[0077] In this embodiment of the invention, the canvas has a first area, a second area, etc., and different types of cut images are placed in different areas. (Refer to...) Figure 4 The canvas is filled with cut piece images, labeled A, B, C, D, E, etc., along its width. Each cut piece image is rotated and / or its position is swapped. After this process, the cut piece images are set to have no overlap. If a transformed cut piece image overlaps with another fixed cut piece image, the spacing between the overlapping cut pieces is increased until the transformed cut piece image no longer overlaps with other fixed cut piece images. Since the edges of each cut piece image can be matched, similar to a jigsaw puzzle, the height value of the cut piece layout in the vertical direction can be reduced. Each transformation of the cut piece images generates a new layout combination. (Refer to...) Figure 5 The method acquires the height information of each layout within a specified time period and selects the layout with the lowest height value along the height direction of the canvas as the final layout. This method can effectively compress the height of the cut pieces and maximize the use of raw materials such as heat transfer paper and fabric.

[0078] Reference Figure 6 The present invention also provides a printing method, comprising:

[0079] S30: Execute the automatic layout method for cut piece images described above to automatically layout several cut piece images; for the specific implementation process of the automatic layout method for cut piece images, please refer to the previous description, which will not be repeated here.

[0080] S31: After the automatic layout of the cut image is completed, export the file on the canvas, the file including the print file and the image file;

[0081] or,

[0082] S32: After the automatic layout of the cut image is completed, start printing while exporting the print file on the canvas.

[0083] In this embodiment of the invention, after the designer completes the automatic layout of the cut piece images, they export a print file or image file from the canvas. The print file includes a PRN file, and the image file includes a TIFF file. When the production staff starts production, they first obtain the print file (i.e., the PRN file) with the completed cut piece layout. After starting printing, the production staff prints the pattern on the heat transfer paper. The pattern contains the cut pieces after the layout is completed, resulting in heat transfer paper with the layout cut pieces. The production staff transfers the layout cut pieces on the heat transfer paper to a flexible medium (such as fabric) using a heat-pressing method. The fabric then has the pattern of the cut pieces printed on it. Finally, the final cut pieces are obtained by cutting. Of course, the designer can also export the layout cut pieces as TIFF images. Other designers can open the TIFF images using other software to obtain the layout cut piece images. In another embodiment of the invention, when there are many cut pieces on the canvas, the final exported print file is large and the export time is long, affecting efficiency. Therefore, the software can perform RIP processing on the edges of the cut piece image on the canvas. The printer, after receiving the RIP-processed print data, immediately prints the RIP-processed file (i.e., the PRN file). RIP (Raster Image Processor) converts image files such as JPG, BMB, and TIF into PRN format files. The printer receives the PRN file and prints the image onto the material. The PRN file output by the RIP software determines the printer's precision, color, and print size; RIP software is an important component of digital inkjet printing. With the above settings, there's no need to wait for the entire file on the canvas to be RIP-processed and exported before starting printing, thus improving the efficiency of production personnel in producing cut pieces. Of course, to ensure smooth printing, when this invention is used in actual printing tasks, to avoid printing stoppages, the RIP-processed print data is output to the printer for printing when the RIP processing progress of the cut piece image reaches 15% or more. In addition, the layout of the cut pieces on the canvas must also take into account the layout error when transferring them to the flexible medium during heat transfer. Therefore, the layout spacing between the cut pieces on the canvas should not be too small. Usually, this layout spacing should be greater than the maximum error value during heat transfer.

[0084] Please see Figure 8 This invention provides an automatic layout device for cut images, the device comprising:

[0085] The acquisition module is used to acquire multiple cut-piece image files according to the file path, and generate the cut-piece image corresponding to the cut-piece image file on the canvas;

[0086] The layout module is used to obtain the category information of the cut piece image file, and according to the category information, automatically place cut piece images of the same category in the same area of ​​the canvas in a preset manner, and the cut piece images are not overlapped. The category information includes one or any combination of cut piece color information, cut piece type information, cut piece size information and cut piece identification information.

[0087] In this embodiment of the invention, for example, there are 100 pattern image files in the first folder. These pattern image files include, but are not limited to, left sleeve files, right sleeve files, front piece files, and back piece files. The software obtains the file path of the first folder, for example, "D:\Users\Pictures\", and generates the pattern images corresponding to the pattern image files on the canvas, such as... Figure 2 As shown ( Figure 2 (Only partial cut pieces are displayed). The software obtains the category information of the cut piece image files and classifies the cut piece image files in the first folder according to the category information. The canvas is divided into multiple areas, with cut piece images of the same category placed in the same area and cut piece images of different categories placed in different areas.

[0088] There are various classification methods. For example, the software can classify cut pieces based on their color, placing blue pieces in the first area of ​​the canvas and red pieces in the second area. Color recognition methods include, but are not limited to, reading the RGB values ​​of the cut piece image file and determining the color of the cut piece image based on these values. Another example is categorizing cut pieces by type, including but not limited to left sleeve, right sleeve, front piece, and back piece. Image recognition can be used to place pieces of the same type in the same area and pieces of different types in different areas; for example, all left sleeve pieces would be placed in the first area of ​​the canvas, and all right sleeve pieces in the second area. Yet another example is classifying by size, placing pieces of the same size in the same area and pieces of different sizes in different areas; for example, size S pieces would be placed in the first area of ​​the canvas, and size M pieces in the second area. Finally, the software can classify cut pieces based on their identification information, placing pieces with the same identification information in the same area and pieces with different identification information in different areas. For example, a piece of fabric with label information A is placed in the first area of ​​the canvas, and a piece of fabric with label information B is placed in the second area of ​​the canvas.

[0089] In summary, designers can categorize cut pieces according to the needs of production staff. These categorizations include, but are not limited to, cut piece color, cut piece type, cut piece size, and cut piece identification. The system automatically lays out different categories of cut pieces, improving layout efficiency. Furthermore, by laying out the cut pieces systematically according to the needs of production staff, the system reduces the probability of production staff confusing the cut pieces, ultimately improving the production efficiency of cut pieces.

[0090] In addition, combined Figure 8 The automatic layout method for cut images described in this embodiment of the invention can be implemented by an electronic device. Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention is shown.

[0091] Electronic devices may include processors and memory storing computer program instructions.

[0092] Specifically, the processor may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement embodiments of the present invention.

[0093] The memory may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include removable or non-removable (or fixed) media. Where appropriate, the memory may be internal or external to a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0094] The processor reads and executes computer program instructions stored in the memory to implement any of the automatic layout methods for cut images in the above embodiments.

[0095] In one example, the electronic device may also include a communication interface and a bus. For example, Figure 8 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.

[0096] The communication interface is mainly used to enable communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0097] A bus, including hardware, software, or both, couples components of an electronic device together. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, a bus may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.

[0098] Furthermore, in conjunction with the automatic layout method for cut images in the above embodiments, this invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the automatic layout methods for cut images in the above embodiments.

[0099] Reference Figure 9 The present invention also provides a printing system, comprising:

[0100] An electronic device is used to execute the aforementioned automatic layout method for cut images to automatically layout several cut images and generate a print file;

[0101] A printer is used to receive the print file and perform the printing method described above.

[0102] In this embodiment of the invention, after the designer completes the automatic layout of the cut piece images, they export a print file or image file from the canvas. The print file includes a PRN file, and the image file includes a TIFF file. When the production staff starts production, they first obtain the print file (i.e., the PRN file) with the completed cut piece layout. After starting printing, the production staff prints the pattern on the heat transfer paper. The pattern contains the cut pieces after the layout is completed, resulting in heat transfer paper with the layout cut pieces. The production staff transfers the layout cut pieces on the heat transfer paper to the fabric using a heat-pressing method. The fabric then has the pattern of the cut pieces printed on it. Finally, the final cut pieces are obtained by cutting. Of course, the designer can also export the layout cut pieces as TIFF images. Other designers can open the TIFF images using other software to obtain the layout cut piece images. In another embodiment of the invention, when there are many cut pieces on the canvas, the final exported print file is large and the export time is long, affecting efficiency. Therefore, the software can perform RIP processing on the edges of the cut piece images on the canvas. The printer, after receiving the RIPed print data, immediately prints the RIP file (i.e., the PRN file). RIP (Raster Image Processor) converts image files such as JPG, BMB, and TIF into PRN format files. The printer receives the PRN file and prints the image onto the material. The PRN file output by the RIP software determines the printer's resolution, color, and print size. RIP software is an important component and technology of digital inkjet printing. With the above settings, there's no need to wait for the entire file on the canvas to be RIPed and exported before starting printing, thus improving the efficiency of production personnel in producing cut pieces.

[0103] In summary, the automatic layout method, printing method, apparatus, and electronic equipment for cut images provided in the embodiments of the present invention can effectively achieve automatic layout, reduce labor costs, and avoid the problem of errors that are prone to occur in manual layout.

[0104] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0105] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0106] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0107] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. A method for automatic layout of cut images, characterized in that, The method includes: Obtain multiple cut-piece image files based on the file path, and generate the cut-piece image corresponding to the cut-piece image files on the canvas; Obtaining the category information of the cut piece image file includes: obtaining the name information of the cut piece image file, or obtaining the tag information pre-stored in the cut piece image file, and determining the category information of the cut piece image file according to the name information or the tag information. According to the category information, the cut piece images of the same category are automatically placed in the same area of ​​the canvas in a preset manner, and the cut piece images are not overlapped. The category information includes one or any combination of cut piece color information, cut piece type information, cut piece size information, and cut piece identification information. Within the same area of ​​the canvas, the cut images are rotated and / or their positions are swapped to generate multiple layout combinations. The height information of each layout combination is obtained within a specified time period, and the layout with the lowest height value in the height direction of the canvas is selected as the final layout.

2. The automatic layout method for cut images according to claim 1, characterized in that, The step of obtaining multiple cut-out image files according to file paths and generating cut-out images corresponding to the cut-out image files on the canvas includes: Based on the first file path of the first folder, obtain the category information of each of the cropped image files; Based on the category information, at least one second folder is generated for each category, and the cropped image files of the same category are placed in the same folder, wherein the first folder and the second folder are not the same folder; Obtain the second file paths of different second folders, and display the cut images in different areas on the canvas in sequence, wherein the cut images originating from the same second folder are located in the same area.

3. The automatic layout method for cut images according to claim 1 or 2, characterized in that, The step of obtaining the category information of the cut image file, and automatically placing cut images of the same category in the same area of ​​the canvas according to the category information and a preset method, and setting the cut images without overlap, includes: The outline of the cut piece image is identified, and cut piece images with the same or similar outlines are placed in the same area of ​​the canvas to achieve automatic layout of the cut piece images according to the cut piece type information.

4. The automatic layout method for cut images according to claim 1 or 2, characterized in that, The category information includes the piece identification information. The step of obtaining the category information of the piece image file, and automatically placing pieces of the same category in the same area of ​​the canvas according to the category information and a preset method, with no overlap among the pieces, includes: Obtain the name information of the cut image file, classify the cut images according to the name information, and place the cut images of the same category in the same area of ​​the canvas; or, Obtain the tag information pre-stored in the cut image file, classify the cut images according to the tag information, and place cut images of the same category in the same area of ​​the canvas. The tag information includes field information and pattern information pre-stored in the cut image file for image classification.

5. The automatic layout method for cut images according to claim 1, characterized in that, The steps of obtaining the category information of the cut image file, and automatically placing cut images of the same category in the same area of ​​the canvas according to the category information and a preset method, with no overlap among the cut images, include: The cut image is filled to the width of the canvas; The cut images are rotated and / or their positions are swapped to generate multiple layout combinations. The cut images are not set to overlap. The height information of each layout combination is obtained within a specified time period. The layout with the lowest height value in the height direction of the canvas is selected as the final layout.

6. A printing method, characterized in that, include: The automatic layout method for cut piece images according to any one of claims 1 to 5 is used to automatically layout a plurality of cut piece images; After the automatic layout of the cut image is completed, a file is exported from the canvas, including a print file and an image file. or, After the cut image is automatically laid out, the print file is exported from the canvas while the printing process is started.

7. An automatic layout device for cut image, characterized in that, The device includes: The acquisition module is used to acquire multiple cut-piece image files according to the file path, and generate the cut-piece image corresponding to the cut-piece image file on the canvas; The layout module is used to obtain the category information of the cut piece image file, including: obtaining the name information of the cut piece image file, or obtaining the tag information pre-stored in the cut piece image file, and determining the category information of the cut piece image file according to the name information or the tag information, and automatically placing cut piece images of the same category in the same area of ​​the canvas according to the category information in a preset manner, and setting the cut piece images without overlap. The category information includes one or any combination of cut piece color information, cut piece type information, cut piece size information and cut piece identification information. Within the same area of ​​the canvas, the cut images are rotated and / or their positions are swapped to generate multiple layout combinations. The height information of each layout combination is obtained within a specified time period, and the layout with the lowest height value in the height direction of the canvas is selected as the final layout.

8. An electronic device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-6.

9. A storage medium storing computer program instructions thereon, characterized in that, The method as described in any one of claims 1-6 is implemented when the computer program instructions are executed by the processor.

10. A printing system, characterized in that, include: An electronic device is used to execute the automatic layout method for cut piece images according to any one of claims 1 to 5 to automatically layout a plurality of cut piece images and generate a print file; A printer is used to receive the print file and perform the printing method as described in claim 6.

Citation Information

Patent Citations

  • Vision-based garment cutting-piece identification method

    CN108764062A

  • Method for automatically judging similar and heterogeneous products based on deep learning

    CN110837867A

  • Cloth use result determination method and device for virtual ready-made clothes and computer equipment

    CN111523704A