CN112215920A - Personalized card display and manufacturing method and equipment - Google Patents

Personalized card display and manufacturing method and equipment Download PDF

Info

Publication number
CN112215920A
CN112215920A CN202011020655.7A CN202011020655A CN112215920A CN 112215920 A CN112215920 A CN 112215920A CN 202011020655 A CN202011020655 A CN 202011020655A CN 112215920 A CN112215920 A CN 112215920A
Authority
CN
China
Prior art keywords
picture
card
personalized
template
layer
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
CN202011020655.7A
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.)
Wuhan Tianyu Julian Technology Co ltd
Original Assignee
Wuhan Tianyu Julian 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 Wuhan Tianyu Julian Technology Co ltd filed Critical Wuhan Tianyu Julian Technology Co ltd
Priority to CN202011020655.7A priority Critical patent/CN112215920A/en
Publication of CN112215920A publication Critical patent/CN112215920A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention provides a method and equipment for displaying and manufacturing a personalized card. The method comprises the following steps: receiving an individual picture and a card template, performing color space conversion on the individual picture to obtain a first individual picture, combining the first individual picture and the card template in a canvas group to obtain a preview picture, and performing parameter adjustment on the individual picture according to the preview picture to obtain a second individual picture; and determining that the format of the second sexual picture and the card template is a horizontal format, performing color space conversion on the second sexual picture and the card template to obtain a third sexual picture and a first card template, and synthesizing the third sexual picture and the first card template to obtain the personalized card. The method and the equipment for displaying and manufacturing the personalized card can eliminate the color difference on the premise of keeping the consistency of the card surface, greatly simplify the operation difficulty and effectively reduce the manufacturing cost of the personalized card.

Description

Personalized card display and manufacturing method and equipment
Technical Field
The embodiment of the invention relates to the technical field of card manufacturing, in particular to a personalized card display and manufacturing method and device.
Background
With the increasing demand for personalization by users, many card manufacturers offer online card customization services. First, due to the difference between the RGB color space and the CMYK color space used by the printer, the picture viewed by the user in the system and the card surface of the physical card are not consistent, and there is a color difference. Secondly, due to the international standard of the card, the card needs to be cut according to a certain size standard. There is a need to maintain the integrity of the picture of the card face within a fixed size. When a user operates the personalized picture by using a mouse or a gesture, the personalized picture cannot be aligned with the edge of the card surface template, so that the operation is difficult; finally, in the traditional card making method, due to the interference of printing colors, the elements with color interference in printing need to be manually processed by a single picture according to the difference of each card surface. Due to the diversity of the card surfaces of the personalized cards, a large amount of manpower can be consumed for manual processing of a single picture. Therefore, it is an urgent technical problem in the art to develop a method and apparatus for displaying and manufacturing a personalized card, which can effectively overcome the above-mentioned defects in the related art.
Disclosure of Invention
In view of the above problems in the prior art, embodiments of the present invention provide a method and an apparatus for displaying and manufacturing a personalized card.
In a first aspect, an embodiment of the present invention provides a personalized card display and manufacturing method, including: receiving an individual picture and a card template, performing color space conversion on the individual picture to obtain a first individual picture, combining the first individual picture and the card template in a canvas group to obtain a preview picture, and performing parameter adjustment on the individual picture according to the preview picture to obtain a second individual picture; and determining that the format of the second sexual picture and the card template is a horizontal format, performing color space conversion on the second sexual picture and the card template to obtain a third sexual picture and a first card template, and synthesizing the third sexual picture and the first card template to obtain the personalized card.
On the basis of the content of the embodiment of the method, the method for displaying and manufacturing the personalized card provided by the embodiment of the invention comprises the following steps: the template layer is positioned at the uppermost layer of the canvas group and is used for displaying a template layer diagram; the area selection layer is adjacent to the template layer and used for drawing a highlight selection frame of the card surface partition; the foreground layer is adjacent to the area selection layer and used for displaying the card surface foreground picture; and the background layer is adjacent to the foreground layer and used for placing the personalized picture.
On the basis of the content of the embodiment of the method, the card template of the personalized card display and manufacturing method provided by the embodiment of the invention comprises the following steps: the template layer diagram and the template PDF diagram are used for providing basic patterns of the personalized card.
On the basis of the content of the embodiment of the method, the method for displaying and manufacturing the personalized card provided by the embodiment of the invention comprises the following steps of: from the RGB color space to the CMYK color space.
On the basis of the content of the above method embodiment, the method for displaying and manufacturing a personalized card provided in the embodiment of the present invention, where the parameter adjustment of the personalized picture according to the preview picture includes: and adjusting the definition and the brightness of the personalized picture.
On the basis of the content of the embodiment of the method, the personalized card display and manufacturing method provided by the embodiment of the invention further comprises the following steps: and the hollow-out graph is used for opening out the hollow-out area.
On the basis of the content of the embodiment of the method, the method for displaying and manufacturing the personalized card provided by the embodiment of the invention further comprises the following steps: carrying out pixel matrix description on the personalized picture, wherein the corresponding pixel matrix is as follows:
Figure BDA0002700494540000021
wherein x is the abscissa of the pixel point; y is the vertical coordinate of the pixel point; x' is the abscissa of the transformed pixel point; y' is the transformed pixel point vertical coordinate; a, b, c, d, e, f are constraints.
In a second aspect, an embodiment of the present invention provides a personalized card display and production apparatus, including:
the parameter adjusting module is used for receiving the personalized picture and the card template, performing color space conversion on the personalized picture to obtain a first personalized picture, combining the first personalized picture and the card template in a canvas group to obtain a preview picture, and performing parameter adjustment on the personalized picture according to the preview picture to obtain a second personalized picture;
and the card synthesis module is used for determining that the format of the second personality picture and the card template is a horizontal format, performing color space conversion on the second personality picture and the card template to obtain a third personality picture and a first card template, and synthesizing the third personality picture and the first card template to obtain the personalized card.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the personalized card presentation and production method provided by any one of the various implementation manners of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the personalized card presentation and production method provided in any one of the various implementations of the first aspect.
According to the method and the device for displaying and manufacturing the personalized card, the canvas group is created, parameters of the canvas group are adjusted, and the drawing to be hollowed is hollowed; the hollowed-out card template is converted into a layout mode and a color mode, and the format drawing and the template format are synthesized to obtain the personalized card, so that the color difference can be eliminated on the premise of keeping the card surface consistent, the personalized picture is ensured to be aligned with the edge of the card surface template, the operation difficulty is greatly simplified, the pictures can be subjected to batch processing, and the manufacturing cost of the personalized card is effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below to the drawings required for the description of the embodiments or the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for displaying and manufacturing a personalized card according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a canvas component hierarchy provided by an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a region division effect according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a background layer area dividing effect according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of UV texture formation effects provided by an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a configuration of a hollow-out diagram and a template PDF according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a personalized card presentation and production apparatus according to an embodiment of the present invention;
fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. In addition, technical features of various embodiments or individual embodiments provided by the present invention may be arbitrarily combined with each other to form a feasible technical solution, and such combination is not limited by the sequence of steps and/or the structural composition mode, but must be realized by a person skilled in the art, and when the technical solution combination is contradictory or cannot be realized, such a technical solution combination should not be considered to exist and is not within the protection scope of the present invention.
The embodiment of the invention provides a personalized card display and manufacturing method, and referring to fig. 1, the method comprises the following steps:
101. receiving an individual picture and a card template, performing color space conversion on the individual picture to obtain a first individual picture, combining the first individual picture and the card template in a canvas group to obtain a preview picture, and performing parameter adjustment on the individual picture according to the preview picture to obtain a second individual picture;
102. and determining that the format of the second sexual picture and the card template is a horizontal format, performing color space conversion on the second sexual picture and the card template to obtain a third sexual picture and a first card template, and synthesizing the third sexual picture and the first card template to obtain the personalized card.
Based on the content of the above method embodiment, as an optional embodiment, in the method for displaying and manufacturing a personalized card provided in the embodiment of the present invention, the canvas has four layers of components, including: the template layer is positioned at the uppermost layer of the canvas group and is used for displaying a template layer diagram; the area selection layer is adjacent to the template layer and used for drawing a highlight selection frame of the card surface partition; the foreground layer is adjacent to the area selection layer and used for displaying the card surface foreground picture; and the background layer is adjacent to the foreground layer and used for placing the personalized picture.
Specifically, referring to FIG. 2, the size of the ID-1 standard card surface is 85.60mm × 53.98mm × 0.76mm as defined in the international standard ISO/IEC 7810. And selecting the resolution of the card surface picture according to the printing test result of the printer. By the formula: the actual size (in) — pixel/resolution calculation drawing area size. The method of this example is described below in terms of HTML5, but is not limited to practice with HTML 5. HTML has its particularity that the canvas of HTML has due to the presence of CSS (cascading style sheet). In the design of canvas, the aspect ratio of canvas must be ensured to be consistent with that of style to ensure the normal display of the picture. A < div > container is defined in HTML, and a canvas group, 4 canvases, is created in the container. Within the canvas group are stacked transparent canvases of the same size and absolute position. The size of the card is the size of the mapping area which is calculated in the above way and is mapped into the display screen, namely the length-width ratio of the card is mapped into the displayable area of the screen. Four layers: in order to make the usability of the user smooth, the canvas group sequentially comprises a template layer, an area selection layer, a foreground layer and a background layer from top to bottom.
The template layer S101 is located on the uppermost layer of the canvas group, the content of the template layer is optional fixed pictures, the application of the cards is displayed, and basic elements of the card surface are displayed and comprise at least one of chip icons, UnionPay icons, bank icons, card numbers, one-card pictures and joint-name card pictures.
The region selection layer S102 is located at the next layer of the template layer and is used for drawing a highlight selection frame of a card surface partition, for example, a card surface of a poster type is divided into a picture region and a character region, the picture region is selected, namely the region highlight selection frame is drawn at the layer, and a user is prompted to upload the picture; selecting a character area and prompting a user to edit characters; the card surface of the jigsaw type divides the card surface into a plurality of pictures to be synthesized, and when a region is selected, a highlight selection frame is drawn on the layer to prompt a user to edit the picture of the region.
The foreground layer S103 is located next to the region selection layer, and is used for displaying a card-surface foreground picture, such as a poster-type picture and a link picture between text regions. The layer is a selectable layer, and the layer is only available when the card surface is selected to have partitions.
The background layer S104 is located at the lowest layer of the canvas group and is used to customize pictures for users of cards, such as cartoon pictures, character pictures, and animal pictures.
Division of regions, which may be seen in fig. 3, refers to the division of the canvas into a plurality of closed polygons, one region for each polygon, by one or more division lines. Including but not limited to a region foreground map, a foreground text set, and a set of polygon vertices in a region. The canvas is divided by a dividing line S203 into two closed polygons S201 and S202. S201 and S202 are two regions of this layout. In HTML5, a closed path is cut out from the canvas by the clip method, resulting in a region. On the background layer canvas, the points in the region are connected into a plurality of closed paths according to the clockwise direction, and the region is cut out. The background picture of the user is drawn in the area, and the regional foreground picture and the foreground character set are drawn on the foreground layer canvas. The text set includes but is not limited to font, text content, font size, text color, and font weight.
Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and manufacturing method provided in the embodiment of the present invention, the card template includes: the template layer diagram and the template PDF diagram are used for providing basic patterns of the personalized card.
Specifically, in order to realize the operability of the layer, a mouse or a touch event is registered in the canvas of the template layer S101, and the user may operate the picture of the background layer through the mouse or a gesture. And (4) configuring parameters of the template layer S101, drawing a card surface template on the template layer S101 by the system according to the card template and the card surface style selected by the user, and drawing a card surface foreground picture and a card surface foreground character set in the card surface style on the foreground layer. The card template comprises but is not limited to a template unique identifier, a card face template, a card back face, a card base and a manufacturing process. The card surface pattern comprises a card surface region segmentation structure, a card surface foreground image and a card surface foreground character set. When a mouse pressing or gesture touch starting event is received, the foreground character set is searched first, and then the area set is searched. And if the corresponding area is searched, carrying out the next processing, otherwise, not processing.
Based on the content of the above method embodiment, as an optional embodiment, the method for displaying and manufacturing a personalized card provided in the embodiment of the present invention, performing color space conversion, includes: from the RGB color space to the CMYK color space.
Specifically, the rectangular area occupied by the characters can be calculated through the parameters of the character set, and whether the point touched by the mouse or the gesture is in the rectangular area or not is judged. If the point is in the rectangular area, the selected character is edited. And drawing the rectangle at the region selection layer, and highlighting the rectangle, such as gaussian blurring at the edge of the rectangle.
Based on the content of the above method embodiment, as an optional embodiment, the method for displaying and manufacturing a personalized card provided in the embodiment of the present invention, where the parameter adjustment of the personalized picture according to the preview picture includes: and adjusting the definition and the brightness of the personalized picture.
And sequentially checking the definition and the brightness of the picture, and performing individual picture color adjustment to make up for the color deviation of converting RGB into CMYK color space. Specifically, the following method can be used to adjust the sharpness of the picture. Denoising the image through low-pass filtering, smoothing the image, performing convolution on the gray-scale image by using a Laplacian operator, and calculating a standard deviation. When the standard deviation is small, reducing noise by restricting least square filtering; when the standard deviation is large, the processing is not performed. Specifically, the following method can be used to adjust the brightness of the picture. And judging whether the picture is under-exposed or over-exposed by using the mean value and the variance of the picture on the gray-scale image. If the exposure is insufficient or normal, converting RGB into an HSL color space, adjusting the saturation and brightness of the picture, converting the HSL into the RGB color space, and enhancing the local contrast of the picture through a Laplacian operator; and (5) not processing overexposure.
Specifically, the selected text is edited in the foreground layer, including but not limited to changing text parameters and deleting text objects. And if the click point is not in the rectangular area where the character set is located, searching the area set.
Based on the content of the above method embodiment, as an optional embodiment, the method for displaying and manufacturing a personalized card provided in the embodiment of the present invention, where the parameter adjustment is performed on the canvas group, further includes: carrying out pixel matrix description on the personalized picture, wherein the corresponding pixel matrix is as follows:
Figure BDA0002700494540000071
wherein x is the abscissa of the pixel point; y is the vertical coordinate of the pixel point; x' is the abscissa of the transformed pixel point; y' is the transformed pixel point vertical coordinate; a, b, c, d, e, f are constraints.
Specifically, the region set is composed of closed polygons, and whether a point touched by a mouse or a gesture is within the polygons is determined. If the point is within the polygon of the region, the selected region is edited. And drawing the polygon on the area selection layer, highlighting the polygon, and editing the custom picture on the background layer. And if the area has no picture, prompting to upload the picture. In order to solve the problem that operation is unsmooth due to the fact that pixels of pictures uploaded by a user are large, the pictures are scaled in an equal ratio according to the selected card surface and the aspect ratio of the pictures by checking parameters of the uploaded pictures. If the uploaded pictures shot by the camera need to be zoomed according to the display direction of the pictures, the pictures are adjusted according to the Exif (exchangeable image file format). If there is a picture, the picture of the region is edited, including but not limited to moving, zooming, rotating, mirroring, deleting the picture, and replacing the region. With further reference to fig. 4, each area of the background layer is divided into 5 portions, the middle portion S301 can perform operations of moving, scaling, rotating and mirroring, and the area edges S302, S303, S304 and S304 are a left stretching area, a top stretching area, a right stretching area and a lower stretching area, respectively. The stretching area at the edge of the area can automatically align the edge of the picture in the area, and the problem that the edge is difficult to align when the screen is small is solved.
The area replacement means to exchange the pictures in the two areas, and the pictures are moved in the selected area through a mouse or a touch point to exchange the pictures in the two areas. When the mouse or the touch point moves out of the selection area, the picture in the selection area is cleared in the background layer, and other areas are not changed. And clearing the canvas of the area selection layer, drawing a reduced and semitransparent picture of the selected area along with the mouse or the touch point, drawing a polygon of the area where the mouse or the touch point is positioned, and highlighting the polygon. When the mouse is bounced or touched, if the selected area is different from the area where the mouse or the touch point is located, exchanging the pictures of the two areas, and carrying out zooming processing according to the length-width ratio; otherwise, it is not processed. Background picture information can be described through a pixel matrix, so that picture operation is smoother. The definition of pixel points in the picture is as formula (1), and the constraints of a, b, c, d, e and f of different basic transformations are different.
The constraints when unchanged are:
Figure BDA0002700494540000081
the constraints of horizontal mirroring are:
Figure BDA0002700494540000091
the constraints of the vertical mirror are:
Figure BDA0002700494540000092
the constraints in translation are:
Figure BDA0002700494540000093
wherein, X is the moving distance of the horizontal axis; y is the longitudinal axis movement distance.
The constraints at zoom are:
Figure BDA0002700494540000094
wherein, W is the width of the zoomed picture; h is the height of the zoomed picture.
The constraints in rotation are:
Figure BDA0002700494540000095
where θ is the angle of clockwise rotation.
Transformations may also be combined, such as a transformation matrix that rotates and translates simultaneously:
Figure BDA0002700494540000096
the picture of the canvas combination of the foreground layer and the background layer is the customized element of the personalized card. And newly building the canvas which is the same as the canvas group in size and is white in filling color, sequentially drawing the elements of the canvas of the background layer and the canvas of the foreground layer, and compressing and storing the elements into the picture in the PNG format.
Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and manufacturing method provided in the embodiment of the present invention, the card template further includes: and the hollow-out graph is used for opening out the hollow-out area.
In particular, to prevent the picture seen by the user in the system from being inconsistent with the card face of the physical card, a card face preview function of the personalized card is provided. Synthesizing the adjusted personalized picture and the card surface template into an RGB (red, green and blue) picture, importing an ICC (international Color Consortium) file of printer equipment, converting the RGB into a PNG (public key group) picture of a CMYK (CMYK) Color space, and performing chamfering and cutting according to the standard of the card surface. According to the effect of the preview image, the user can select the filtering function and adjust the color of the card surface. The filtering function is to process the PNG format graph of the RGB color space.
Referring to fig. 5, a preview of the card side, the card back side, and the card base are combined into a UV texture, preferably using a 3D card preview. The UV texture comprises: s405 is a preview of the card surface, S402, S403, S404, and S405 are card bases, and S401 is a card back surface. The UV texture is added to the 3D card model. The user can preview the 3D personalized card model omnidirectionally using gestures. And after the user previews and determines, storing the finally determined individual picture in the PNG format of the RGB color space into a database.
Further referring to fig. 6, in the process of the hollow synthesis, the card template may be divided into two parts, a hollow S501 and a template PDF file. The hollow-out pattern S501 indicates an element that cannot be directly printed on the card surface template, and in order to prevent the multi-layer production of the card and to make the printed colors interfere with each other, the area needs to be removed before printing. Such as chips, portions of special processes including, but not limited to, stamping, silk screening, embossing. The manufacturing method can select Illustrator software or Photoshop software to manufacture elements which cannot be directly printed in the card surface template into the PNG image in the RGB color space under the multi-resolution. The situation that a plurality of card templates correspond to the same hollow-out figure exists. If the card face template has no elements which can not be directly printed, the card face template does not correspond to any hollow-out pattern. The template PDF file refers to elements which can be directly printed in the card surface template except for the hollow-out pattern. In the card printing specification, elements of the card face template need to be printed clearly, distortion is not allowed, and color deviation is not allowed. Therefore, the elements in the card surface template need to have vectoriality and must be a diagram of CMYK color space. The manufacturing method can select Illustrator software to draw elements which can be directly printed in the card face template into a vector diagram under CMYK color space, and the vector diagram is manufactured into a template PDF file. The card template corresponds to the template PDF file one by one. The following may be specifically described: and searching the individual pictures and the card templates according to the card making files of the system. And further carrying out hollow-out treatment on the personalized picture and the hollow-out picture. Specifically, a hollow-out image non-transparent pixel point is obtained, and the pixel point of the card face template is subjected to transparentization processing. The hollowing is mainly used for emptying pictures of a chip or an area to be processed by a special process so as to prevent color interference. Whether the card is a vertical card is further judged. And if the card is a vertical card, rotating the hollowed-out PNG picture by 90 degrees clockwise. All the vertical cards are kept in the same direction, and the chip is convenient to install. An icc (international Color consortium) file of the printer device is further imported, the PNG image of RGB is converted into a CYMK Color space, and compression parameters and resolution are set to convert the PNG image into an image in JPEG format. If the graph is to be synthesized, the graph in the JPEG format in the last step is further synthesized with the template PDF. Specifically, a PDF file is created, the document size of the PDF is set to be the size of a personalized graph in a JEPG format, the personalized graph in the JPEG format is added into the PDF file, and then the PDF content of the template is drawn on the current page by taking the absolute coordinates as the position of (0, 0).
According to the personalized card display and manufacturing method provided by the embodiment of the invention, the canvas group is created, the parameter of the canvas group is adjusted, and the picture to be hollowed is hollowed; the hollowed-out card template is converted into a layout mode and a color mode, and the format drawing and the template format are synthesized to obtain the personalized card, so that the color difference can be eliminated on the premise of keeping the card surface consistent, the personalized picture is ensured to be aligned with the edge of the card surface template, the operation difficulty is greatly simplified, the pictures can be subjected to batch processing, and the manufacturing cost of the personalized card is effectively reduced.
The implementation basis of the various embodiments of the present invention is realized by programmed processing performed by a device having a processor function. Therefore, in engineering practice, the technical solutions and functions thereof of the embodiments of the present invention can be packaged into various modules. Based on this practical situation, on the basis of the above embodiments, embodiments of the present invention provide a personalized card displaying and manufacturing apparatus, which is used for executing the personalized card displaying and manufacturing method in the above method embodiments. Referring to fig. 7, the apparatus includes:
the parameter adjusting module 701 is used for receiving a personalized picture and a card template, performing color space conversion on the personalized picture to obtain a first personalized picture, combining the first personalized picture and the card template in a canvas group to obtain a preview picture, and performing parameter adjustment on the personalized picture according to the preview picture to obtain a second personalized picture;
and the card synthesis module 702 is configured to determine that the second personality picture and the card template are in a horizontal format, perform color space conversion on the second personality picture and the card template to obtain a third personality picture and a first card template, and synthesize the third personality picture and the first card template to obtain a personalized card.
According to the personalized card display and manufacturing device provided by the embodiment of the invention, the parameter adjustment module and the card synthesis module are adopted, the canvas group is created, the parameter adjustment is carried out on the canvas group, and the drawing to be hollowed out is hollowed out; the hollowed-out card template is converted into a layout mode and a color mode, and the format drawing and the template format are synthesized to obtain the personalized card, so that the color difference can be eliminated on the premise of keeping the card surface consistent, the personalized picture is ensured to be aligned with the edge of the card surface template, the operation difficulty is greatly simplified, the pictures can be subjected to batch processing, and the manufacturing cost of the personalized card is effectively reduced.
It should be noted that, the apparatus in the apparatus embodiment provided by the present invention may be used for implementing methods in other method embodiments provided by the present invention, except that corresponding function modules are provided, and the principle of the apparatus embodiment provided by the present invention is basically the same as that of the apparatus embodiment provided by the present invention, so long as a person skilled in the art obtains corresponding technical means by combining technical features on the basis of the apparatus embodiment described above, and obtains a technical solution formed by these technical means, on the premise of ensuring that the technical solution has practicability, the apparatus in the apparatus embodiment described above may be modified, so as to obtain a corresponding apparatus class embodiment, which is used for implementing methods in other method class embodiments. For example:
based on the content of the above device embodiment, as an optional embodiment, the personalized card displaying and manufacturing device provided in the embodiment of the present invention further includes: and the definition and brightness adjusting module is used for adjusting the definition and brightness of the individual picture.
The method of the embodiment of the invention is realized by depending on the electronic equipment, so that the related electronic equipment is necessarily introduced. To this end, an embodiment of the present invention provides an electronic apparatus, as shown in fig. 8, including: at least one processor (processor)801, a communication Interface (Communications Interface)804, at least one memory (memory)802, and a communication bus 803, wherein the at least one processor 801, the communication Interface 804, and the at least one memory 802 communicate with each other via the communication bus 803. The at least one processor 801 may invoke logic instructions in the at least one memory 802 to perform all or a portion of the steps of the methods provided by the various method embodiments described above.
Furthermore, the logic instructions in the at least one memory 802 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the method embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. Based on this recognition, each block in the flowchart or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In this patent, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A personalized card display and manufacturing method is characterized by comprising the following steps:
receiving an individual picture and a card template, performing color space conversion on the individual picture to obtain a first individual picture, combining the first individual picture and the card template in a canvas group to obtain a preview picture, and performing parameter adjustment on the individual picture according to the preview picture to obtain a second individual picture;
and determining that the format of the second sexual picture and the card template is a horizontal format, performing color space conversion on the second sexual picture and the card template to obtain a third sexual picture and a first card template, and synthesizing the third sexual picture and the first card template to obtain the personalized card.
2. The personalized card presentation and production method of claim 1, wherein the canvas component is four layers comprising:
the template layer is positioned at the uppermost layer of the canvas group and is used for displaying a template layer diagram;
the area selection layer is adjacent to the template layer and used for drawing a highlight selection frame of the card surface partition;
the foreground layer is adjacent to the area selection layer and used for displaying the card surface foreground picture;
and the background layer is adjacent to the foreground layer and used for placing the personalized picture.
3. The personalized card presentation and production method of claim 2, wherein the card template comprises: the template layer diagram and the template PDF diagram are used for providing basic patterns of the personalized card.
4. The personalized card presentation and production method of claim 1, wherein the performing color space conversion comprises: from the RGB color space to the CMYK color space.
5. The personalized card presentation and production method of claim 4, wherein the parameter adjustment of the personalized picture according to the preview picture comprises: and adjusting the definition and the brightness of the personalized picture.
6. The personalized card presentation and production method of claim 3, wherein the card template further comprises: and the hollow-out graph is used for opening out the hollow-out area.
7. The personalized card presentation and production method of claim 1, further comprising: carrying out pixel matrix description on the personalized picture, wherein the corresponding pixel matrix is as follows:
Figure FDA0002700494530000021
wherein x is the abscissa of the pixel point; y is the vertical coordinate of the pixel point; x' is the abscissa of the transformed pixel point; y' is the transformed pixel point vertical coordinate; a, b, c, d, e, f are constraints.
8. A personalized card display and production device, comprising:
the parameter adjusting module is used for receiving the personalized picture and the card template, performing color space conversion on the personalized picture to obtain a first personalized picture, combining the first personalized picture and the card template in a canvas group to obtain a preview picture, and performing parameter adjustment on the personalized picture according to the preview picture to obtain a second personalized picture;
and the card synthesis module is used for determining that the format of the second personality picture and the card template is a horizontal format, performing color space conversion on the second personality picture and the card template to obtain a third personality picture and a first card template, and synthesizing the third personality picture and the first card template to obtain the personalized card.
9. An electronic device, comprising:
at least one processor, at least one memory, and a communication interface; wherein the content of the first and second substances,
the processor, the memory and the communication interface are communicated with each other;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202011020655.7A 2020-09-25 2020-09-25 Personalized card display and manufacturing method and equipment Pending CN112215920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011020655.7A CN112215920A (en) 2020-09-25 2020-09-25 Personalized card display and manufacturing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011020655.7A CN112215920A (en) 2020-09-25 2020-09-25 Personalized card display and manufacturing method and equipment

Publications (1)

Publication Number Publication Date
CN112215920A true CN112215920A (en) 2021-01-12

Family

ID=74051055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011020655.7A Pending CN112215920A (en) 2020-09-25 2020-09-25 Personalized card display and manufacturing method and equipment

Country Status (1)

Country Link
CN (1) CN112215920A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012999A (en) * 2010-12-03 2011-04-13 成都讯业科技有限公司 Electronic file for machine-readable information cards, and implementation method and system thereof
CN109597664A (en) * 2018-09-21 2019-04-09 北京字节跳动网络技术有限公司 Background configuration method, device, equipment and the readable medium of display area
CN110018812A (en) * 2018-01-08 2019-07-16 搜游网络科技(北京)有限公司 A kind of pattern drawing method and device
CN111562010A (en) * 2020-05-14 2020-08-21 北京大学 Method and device for automatic image color calibration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012999A (en) * 2010-12-03 2011-04-13 成都讯业科技有限公司 Electronic file for machine-readable information cards, and implementation method and system thereof
CN110018812A (en) * 2018-01-08 2019-07-16 搜游网络科技(北京)有限公司 A kind of pattern drawing method and device
CN109597664A (en) * 2018-09-21 2019-04-09 北京字节跳动网络技术有限公司 Background configuration method, device, equipment and the readable medium of display area
CN111562010A (en) * 2020-05-14 2020-08-21 北京大学 Method and device for automatic image color calibration

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KE, CHIH-HORNG ET AL.: "Design and Implementation of a Portable Name Card Typesetting System", 《INTERNATIONAL JOURNAL OF COMPUTER APPLICATIONS》, vol. 79, no. 3, 31 October 2013 (2013-10-31), pages 36 - 41 *
吕静: "心意卡设计创意与表现手法研究", 《艺术百家》, no. 3, 15 May 2008 (2008-05-15), pages 124 - 128 *

Similar Documents

Publication Publication Date Title
US6912311B2 (en) Creation and use of complex image templates
US8325205B2 (en) Methods and files for delivering imagery with embedded data
JP4120724B2 (en) Image data management apparatus, image data management method, and medium on which image data management program is recorded
US11049307B2 (en) Transferring vector style properties to a vector artwork
KR101297177B1 (en) The method and system of adaptive reformatting of digital images
US9116648B1 (en) Method for automatic photo album layout and printing
JPH11328380A (en) Image processor, method for image processing and computer-readable recording medium where program allowing computer to implement same method is recorded
US9661186B1 (en) System and method for rendering gloss effect image patterns on a recording medium
US20010004258A1 (en) Method, apparatus and recording medium for generating composite image
US9001376B2 (en) Image processing apparatus, image processing method, print order receiving apparatus, and print order receiving method
JP6662592B2 (en) Image processing system and center server for image processing system
JPH07146931A (en) Picture generating method
CN113255289A (en) Method and system for composing and distributing file
US7295221B2 (en) Image processing apparatus and method, and computer-readable memory
CN112215920A (en) Personalized card display and manufacturing method and equipment
JP2005151455A (en) Image processor, information processor, these control method, and program
CN110264547A (en) A kind of translucent display methods of land data based on map overlay
CN113172986B (en) Network layout generation method, production system, image processing method and device
Chavez et al. Adobe Photoshop Classroom in a Book (2021 Release)
JP7352394B2 (en) Print order reception system, print order reception method, and print order reception program.
KR20050078100A (en) Methods for manufacturing moving cartoon and recording medium thereof
US11812003B1 (en) Systems and methods for separating an image into a white layer and a color layer for printing with a white toner enabled printer in two passes
KR101684626B1 (en) Picture recognition method of paper and video representation method using this
CN116205787A (en) Image processing method and storage medium
Mihajlović et al. Application and Difference of Raster and Vector Graphics

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