CN115510516A - Image data processing method, system and storage medium - Google Patents

Image data processing method, system and storage medium Download PDF

Info

Publication number
CN115510516A
CN115510516A CN202211231266.8A CN202211231266A CN115510516A CN 115510516 A CN115510516 A CN 115510516A CN 202211231266 A CN202211231266 A CN 202211231266A CN 115510516 A CN115510516 A CN 115510516A
Authority
CN
China
Prior art keywords
design
diagram
image data
data processing
offset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211231266.8A
Other languages
Chinese (zh)
Inventor
朱洁
林海龙
林茂
张锦宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Zhiwen Technology Co ltd
Original Assignee
Xiamen Zhiwen Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Zhiwen Technology Co ltd filed Critical Xiamen Zhiwen Technology Co ltd
Priority to CN202211231266.8A priority Critical patent/CN115510516A/en
Publication of CN115510516A publication Critical patent/CN115510516A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/16Customisation or personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/20Packaging, e.g. boxes or containers

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A first aspect of the present invention provides an image data processing method, which includes the following steps: s1, setting a printing path diagram according to a design surface of a commodity, and defining an irregular shape to generate the printing path diagram through an SVG path; and S2, filling design elements on the basis of the printing path diagram to generate a production diagram. According to the invention, the printing path diagram is set in the design area according to the design surface of the commodity, and the printing path diagram is filled with design elements, so that the generation of a production diagram is realized, and the integrity and continuity of the pictures of the full-width customized commodity are ensured; the pre-typesetting of the full-width customized commodity picture can be realized according to the printed path diagram, various shape diagrams after the target is cut are generated by the system, the manual cutting and the material waste are reduced, and the risk of element errors in the picture is reduced. Furthermore, an effect graph is generated and displayed according to the design surface of the commodity, the use area of effect rendering is accurately positioned, and the consistency of the effect graph and the real object production is ensured.

Description

Image data processing method, system and storage medium
Technical Field
The application belongs to the technical field of digital printing, and particularly relates to an image data processing method, system and storage medium for generating a production drawing.
Background
The customized commodity is a physical commodity which is finally generated to contain information materials (such as patterns, characters, marks, accessories, sizes and the like) of personalized requirements specified by a user through modes of production, processing, cutting, making and the like and is different from standardized and large-scale production. The design area of the traditional customized commodity is mostly in a regular square shape, such as clothes, a mouse pad, a mug and the like, and when a production drawing required in printing is generated, the design area and an actual production area are mapped one to obtain the production drawing. However, as the demand of users for designing customized commodities increases, the design area of the rules cannot meet the demand, and the whole-width customization of commodities becomes a trend of current user demands. The full-width commodity refers to a design area of the whole commodity without distinguishing faces, the design elements can completely cover the whole commodity, and the patterns can be continuous. The whole commodity does not limit the customized area of the user any more, so that the commodity is more personalized.
However, when the design drawing of the whole commodity is converted into the production drawing, the irregular area cutting pieces are needed to be spliced manually by experience, so that whether the cutting area is needed by a user or not cannot be guaranteed, and the problems of missing of design elements, dislocation and the like can occur; during production, manual matching is needed, labor is consumed, and a production object often has large deviation with an effect graph.
Disclosure of Invention
Aiming at the problems of poor expansibility of full-width customized commodities, complex process from design to production, high labor cost, poor finished product effect and the like in the prior art, the invention provides an image data processing method in a first aspect, which comprises the following steps:
s1, setting a printing path diagram according to a design surface of a commodity, and defining an irregular shape to generate the printing path diagram through an SVG path;
and S2, filling design elements on the basis of the printing path diagram to generate a production diagram.
The scheme realizes the mapping of the design elements or the design drawing and the production drawing by self-defining the printing path drawing, directly generates the picture blocks required by target production and reduces the risk of manual cutting.
Further, the S2 design element is obtained by the coordinate conversion of the design surface and the printing path, and the conversion formula comprises:
zoom=x1/(x/max(cx,cy)×cx1)
offset_x=(x1/cx1×offset_cx-offset_x)/x
offset_y=(y1/cy1×offset_cy-offset_y)/x
where zoom is a scaling ratio, offset _ x represents an x-axis direction offset amount, and offset _ y represents a y-axis direction offset amount. Using the coordinate transformation described above, it is ensured that the design elements are positioned consistently within the design surface and the print path.
Preferably, the items are grouped based on size, and items in a larger group reuse the printed path maps of items in a smaller group to avoid duplicate generation of the printed path maps.
Preferably, the production drawing conversion DPI is arranged for production drawing amplification to ensure the quality of the production drawing.
And further, generating an effect diagram by combining the design elements and the design drawing, and presenting the effect diagram formed by combining the design drawing and the commodity to a user.
Preferably, the effect map comprises a 2D effect map, the 2D effect map being formed by placing the design element on the design surface.
Preferably, the effect map comprises a pseudo 3D effect map, the pseudo 3D effect map being formed by placing the design elements on the design surface and matching the edge design points.
Preferably, the effect map comprises a 3D effect map, the 3D effect map being formed by placing the design element on a model, the model being generated by matching the print path map with a UV map associated with the model.
A second aspect of the present invention provides a production drawing generation system, which includes:
the printing path diagram generating module is configured for setting a printing path diagram according to the design surface of the commodity;
and the production diagram generating module is used for filling the design diagram on the basis of the printing path diagram to generate the production diagram.
A third aspect of the invention proposes a computer-readable storage medium for production map generation, on which one or more computer programs are stored, which when executed by a computer processor implement the method of any of the above
According to the invention, the printing path diagram is set in the design area according to the design surface of the commodity, and the printing path diagram is filled with design elements, so that the generation of a production diagram is realized, and the integrity and continuity of the pictures of the full-width customized commodity are ensured; the pre-typesetting of the full-width customized commodity picture can be realized according to the printed path diagram, various shape diagrams after the target is cut are generated by the system, the manual cutting and the material waste are reduced, and the risk of element errors in the picture is reduced. Furthermore, an effect graph is generated and displayed according to the design surface of the commodity, the use area of effect rendering is accurately positioned, and the consistency of the effect graph and the production of a real object is guaranteed.
Drawings
The accompanying drawings assist in a further understanding of the present application. The elements of the drawings are not necessarily to scale relative to each other. For convenience of description, only parts related to the present invention are shown in the drawings.
FIG. 1 is a flow chart of a method for processing image data according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an image data processing method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a design surface-print path coordinate transformation process for a design element according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a pseudo-3D effect according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a 3D effect in another embodiment of the present invention;
FIG. 6 is a flowchart illustrating an image data processing method according to another embodiment of the present invention;
FIG. 7 is a schematic diagram of a production diagram generation system according to another embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention.
FIG. 1 is a flowchart of an image data processing method according to an embodiment of the present invention, which includes the steps of:
s1, setting a printing path diagram according to a design surface of a commodity, and defining an irregular shape to generate the printing path diagram through an SVG path;
and S2, filling design elements on the basis of printing the path diagram to generate a production diagram.
FIG. 2 is a schematic flowchart of an image data processing method according to another embodiment of the present invention, which includes the steps of:
s1, setting a printing path diagram according to a design surface of a commodity, and defining an irregular shape to generate the printing path diagram through an SVG path;
in a specific embodiment, the design surface is generated in a design area, and the design area is defined as an area which is arranged in the dimension of the surface and can be filled with elements.
In a specific embodiment, dpi attributes are given to the commodities, the commodities are grouped based on size, and at the moment, the printing path diagram is further combined with the commodity dpi attributes when the printing path diagram is set, and commodities in a group with a larger size are multiplexed with the printing path diagram of the commodities in a group with a smaller size, so that repeated generation of the printing path diagram is avoided, and the workload of setting the printing path diagram is reduced.
S2, filling design elements on the basis of printing the path diagram to generate a production diagram;
in an embodiment, a design surface and a print path are set based on a container, a design element is obtained by converting a design surface-print path coordinate, fig. 3 is a schematic diagram of a process of converting the design surface-print path coordinate of the design element, and a conversion formula includes:
zoom=x1/(x/max(cx,cy)×cx1)
offset_x=(x1/cx1×offset_cx-offset_x)/x
offset_y=(y1/cy1×offset_cy-offset_y)/x
where zoom is a scaling ratio, offset _ x denotes an x-axis direction offset amount based on the container, offset _ y denotes a y-axis direction offset amount based on the container, prefix c denotes a parameter of an element corresponding to a design surface, and suffix 1 denotes a parameter of the design element. The coordinate transformation is used for transforming the design elements in the design surface into the printing path diagram, and the positioning of the design elements in the design surface and the printing path is ensured to be consistent.
In a specific embodiment, the method further comprises the step of setting the production diagram conversion DPI for production diagram amplification so as to ensure the quality of the production diagram.
In a specific embodiment, referring to fig. 2, the method further comprises generating an effect graph, and presenting the effect graph of the design drawing and the commodity combination to the user.
Further, the effect map includes a 2D effect map, the 2D effect map being formed by placing the design element on the design surface.
Further, the effect map includes a pseudo 3D effect map, and fig. 4 is a pseudo 3D effect map illustration, the pseudo 3D effect map being formed by placing design elements on the design surface and matching the edge design points.
Further, the effect map includes a 3D effect map, and fig. 5 is a 3D effect map illustration, the 3D effect map being formed by placing the design element on a model, the model being generated by matching the print path map with a UV map associated with the model.
In a specific embodiment, referring to fig. 2, the method further includes generating an operation diagram by transferring the set printing path diagram to png through svg, and setting a composite diagram. The method comprises the steps of setting a composite graph, adding a printing path graph in a canvas mode, adding a placeholder and a universal text description for replacing an order mark, typesetting in the canvas through actions of dragging, moving, zooming and the like, and finally saving the layout into a template configuration for subsequent synthesis. The composite picture can make the multi-cut picture typeset in advance aiming at a single commodity, thereby saving the used raw materials.
Fig. 6 is a schematic flow chart of an image data processing method in another embodiment, referring to fig. 6, which specifically includes:
a. a user adds design elements in a designer, places the design elements in a design area, stores a customized product, pays by placing a order and pushes an order number to a message List (List) of redis for storage;
b. d, realizing a load distribution server through the hash, detecting whether the order is processed or not, and if the order is not processed, executing the step d;
c. after being processed, directly returning a processing result;
d. acquiring configuration information of a customized product, and generating a complete design area diagram according to the configuration information; then, the set printing path diagram is placed outside the layer of the design area as a path reference to construct a final complete svg file; svg was converted to png using invscape, leaving the clear channel;
e. and converting the DPI according to the set production diagram, re-rendering the DPI composite picture suitable for machine production designation, storing to fastdfs and recording a path.
In a specific embodiment, the method further comprises the steps of forwarding the message to a specific server through an nginx specific export route, obtaining a redis message list needing to be processed by the server, combining the order mark with the production diagram, and storing the order mark and the production diagram as local static resources, so that the production fluency is ensured.
FIG. 7 is a schematic diagram of a production map generation system 700 in another embodiment, according to a second aspect of the present invention, including:
a print path diagram generation module 701 configured to set a print path diagram according to a design surface of a commodity;
and a production diagram generating module 702 configured to fill the design diagram based on the printing path diagram to generate a production diagram.
According to the scheme shown in the embodiment, in the process of generating the production drawing of the full-width customized commodity, the printing path drawing is generated by defining the irregular shape through the SVG path, the position where the picture is intercepted is accurately positioned, the cutting drawing is automatically generated, the manual cutting error is reduced, the manual checking cost is reduced, the problem that the real object effect is inconsistent with the preview effect is solved, the integrity of the production drawing is ensured under the irregular design, and the possibility of putting the full-width commodity on shelf in batches is provided.
While this application has been particularly shown and described with references to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application as defined by the appended claims.

Claims (10)

1. An image data processing method, characterized by comprising the steps of:
s1, setting a printing path diagram according to a design surface of a commodity, wherein the printing path diagram is generated in an irregular shape through SVG path definition;
and S2, filling design elements on the basis of the printing path diagram to generate a production diagram.
2. The image data processing method according to claim 1, wherein the design element S2 is obtained through a design surface-print path coordinate conversion, and the conversion formula includes:
zoom=x1/(x/max(cx,cy)×cx1)
offset_x=(x1/cx1×offset_cx-offset_x)/x
offset_y=(y1/cy1×offset_cy-offset_y)/x
where zoom is a scaling ratio, offset _ x represents an x-axis direction offset amount, and offset _ y represents a y-axis direction offset amount.
3. The image data processing method according to claim 1, wherein the commodities are grouped based on size, and commodities in a group having a larger size are multiplexed with a print path map of commodities in a group having a smaller size.
4. The image data processing method according to claim 1, wherein a production drawing conversion DPI is provided for production drawing enlargement.
5. The image data processing method of claim 1, further comprising generating an effect map in combination with the design elements and the design drawing.
6. The image data processing method according to claim 5, wherein the effect map includes a 2D effect map, the 2D effect map being formed by placing design elements on a design surface.
7. The image data processing method according to claim 5, wherein the effect map comprises a pseudo 3D effect map, the pseudo 3D effect map being formed by placing design elements on a design surface and matching edge design points.
8. The image data processing method according to claim 5, wherein the effect map includes a 3D effect map, the 3D effect map being formed by placing the design element on a model generated by matching the print path map with a UV map associated with the model.
9. An image data processing system, comprising:
the printing path diagram generating module is configured for setting a printing path diagram according to the design surface of the commodity;
and the production diagram generating module is used for filling the design diagram on the basis of the printing path diagram to generate the production diagram.
10. A computer-readable storage medium for image data processing, having one or more computer programs stored thereon, which when executed by a computer processor implement the method of any one of claims 1 to 8.
CN202211231266.8A 2022-10-08 2022-10-08 Image data processing method, system and storage medium Pending CN115510516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211231266.8A CN115510516A (en) 2022-10-08 2022-10-08 Image data processing method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211231266.8A CN115510516A (en) 2022-10-08 2022-10-08 Image data processing method, system and storage medium

Publications (1)

Publication Number Publication Date
CN115510516A true CN115510516A (en) 2022-12-23

Family

ID=84508342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211231266.8A Pending CN115510516A (en) 2022-10-08 2022-10-08 Image data processing method, system and storage medium

Country Status (1)

Country Link
CN (1) CN115510516A (en)

Similar Documents

Publication Publication Date Title
CN101171585B (en) System and method for generating three-dimensional figures
EP2526529B1 (en) Method and system for calculating weight of variable shape product manufactured from product blank
JP2011242977A (en) Image edition device, image editing method and program
JPS6323157A (en) Apparatus for forming printing artwork
CN102541481A (en) Printer and picture printing method
CN115510516A (en) Image data processing method, system and storage medium
JPH10222499A (en) Print planning device and recording medium which can be read by computer recording print planning program
CN116776850A (en) Document processing method, device, computer equipment and storage medium
CN115629723A (en) Engineering drawing batch printing method based on CATIA V6
US10785381B2 (en) Method of providing coding instructions to a printer
CN106651763B (en) Method for converting 3D image into 2D picture for packaging box aided design
JP2008242356A (en) Method and apparatus for creating drawing data
JP2016126618A (en) Printing data generation system
JP2014023006A (en) Information processing device, information processing method, and information processing program
US20230305523A1 (en) Dynamic element compositing
JP2000090281A (en) Method and device for layout of printed matter and record medium
JPH10293780A (en) Block copy board drawing creating device
JP2006085323A (en) Method for creating formatted report and system for creating formatted report
JP2000099503A (en) Data conversion system
TW202311124A (en) Can manufacturing method and can manufacturing system
CN117648914A (en) File generation method and device and terminal equipment
CN118034618A (en) Print processing method, apparatus, computer device, storage medium, and product
CN103226003A (en) Image evaluating apparatus, image evaluating method, and non-transitory storage medium
CN117688921A (en) Method for unifying format and personalized data setting of automatically generated ppt
CN114153404A (en) Mobile internet intelligent printing method and mobile internet intelligent printing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination