Personalized card display and production method and equipment

By converting color space and synthesising pictures in the online card customization system, the problem of color difference and operation difficulties for users when customizing cards is solved, and efficient and low-cost personalized card production is achieved.

CN112215920BActive Publication Date: 2025-02-11WUHAN TIANYU JULIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011020655.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2025-02-11
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

In the prior art, when users customize cards online, due to the difference in RGB and CMYK color spaces, the picture and the card surface are inconsistent, and there is a color difference. At the same time, the traditional card making method requires manual processing of color interference, which consumes a lot of manpower, and it is difficult for users to use it. Personalized pictures are aligned with the card template.

Method used

By receiving personalized pictures and card templates, perform color space conversion, combine pictures and card templates in canvas groups, generate preview pictures, and adjust picture parameters according to the preview pictures to ensure that the picture is aligned with the edges of the card template.

Benefits of technology

While maintaining the consistency of the card surface, the color difference is eliminated, the operation difficulty is simplified, the batch processing of pictures is realized, and the production cost of personalized cards is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112215920B_ABST
    Figure CN112215920B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for displaying and making personalized cards. The method includes: receiving a personalized picture and a card template, performing a color space conversion on the personalized picture to obtain a first personalized picture, synthesizing the first personalized picture and the card template in a canvas group to obtain a preview picture, adjusting the parameters of the personalized picture according to the preview picture to obtain a second personalized picture; determining that the layout of the second personalized picture and the card template is a horizontal version, then performing a color space conversion on the second personalized picture and the card template to obtain a third personalized picture and the first card template, synthesizing the third personalized picture and the first card template to obtain a personalized card. The personalized card display and production method and device provided by the embodiment of the present invention can eliminate color difference while maintaining the consistency of the card surface, greatly simplifying the operation difficulty, and effectively reducing the production cost of personalized cards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of card production technology, and in particular to a method and device for displaying and producing personalized cards. Background Art

[0002] As users' demand for personalization increases, many card manufacturers provide 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 seen by the user in the system is inconsistent with the physical card surface, 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. The integrity of the card surface image needs to be maintained within a fixed size. When users use the mouse or gestures to operate personalized pictures, they often cannot align the personalized pictures with the edge of the card surface template, resulting in difficulty in operation; finally, due to the interference of printing colors, the traditional card making method needs to manually process the elements with color interference in the printing for individual pictures according to the difference of each card surface. Due to the diversity of personalized card surfaces, manual processing of individual pictures will consume a lot of manpower. Therefore, the development of a personalized card display and production method and equipment that can effectively overcome the defects in the above-mentioned related technologies has become a technical problem that needs to be solved in the industry. Summary of the invention

[0003] In view of the above problems existing in the prior art, an embodiment of the present invention provides a method and device for displaying and making personalized cards.

[0004] In a first aspect, an embodiment of the present invention provides a personalized card display and production method, including: receiving a personalized picture and a card template, performing color space conversion on the personalized picture to obtain a first personalized picture, synthesizing the first personalized picture and the card template in a canvas group to obtain a preview picture, adjusting parameters of the personalized picture according to the preview picture to obtain a second personalized picture; determining that the layout of the second personalized picture and the card template is a horizontal version, then performing color space conversion on the second personalized picture and the card template to obtain a third personalized picture and a first card template, and synthesizing the third personalized picture and the first card template to obtain a personalized card.

[0005] Based on the contents of the above method embodiments, in the personalized card display and production method provided in the embodiments of the present invention, the canvas group is divided into four layers, including: a template layer, located at the top layer of the canvas group, for displaying the template layer image; an area selection layer, adjacent to the template layer, for drawing a highlight selection box for the card surface partition; a foreground layer, adjacent to the area selection layer, for displaying the foreground image of the card surface; and a background layer, adjacent to the foreground layer, for placing a personalized image.

[0006] On the basis of the contents of the above method embodiment, the personalized card display and production method provided in the embodiment of the present invention, the card template includes: the template layer map and the template PDF map, both of which are used to provide the basic pattern of the personalized card.

[0007] On the basis of the content of the above method embodiment, in the personalized card display and production method provided in the embodiment of the present invention, the color space conversion includes: converting from RGB color space to CMYK color space.

[0008] On the basis of the contents of the above method embodiment, the personalized card display and production method provided in the embodiment of the present invention, wherein the parameter adjustment of the personalized picture according to the preview picture comprises: adjusting the clarity and brightness of the personalized picture.

[0009] On the basis of the contents of the above method embodiment, in the personalized card display and production method provided in the embodiment of the present invention, the card template further includes: a hollow pattern for opening a hollow area.

[0010] On the basis of the content of the above method embodiment, the personalized card display and production method provided in the embodiment of the present invention further includes: performing a pixel matrix description on the personalized picture, and the corresponding pixel matrix is:

[0011]

[0012] Among them, x is the horizontal coordinate of the pixel point; y is the vertical coordinate of the pixel point; x' is the horizontal coordinate of the pixel point after transformation; y' is the vertical coordinate of the pixel point after transformation; a, b, c, d, e, f are constraints.

[0013] In a second aspect, an embodiment of the present invention provides a personalized card display and production device, comprising:

[0014] A parameter adjustment module is used to receive a personality picture and a card template, perform color space conversion on the personality picture to obtain a first personality picture, synthesize the first personality picture and the card template in a canvas group to obtain a preview picture, and perform parameter adjustment on the personality picture according to the preview picture to obtain a second personality picture;

[0015] The card synthesis module is used to determine that the layout of the second personalized picture and the card template is horizontal, then the second personalized picture and the card template are converted into a color space to obtain a third personalized picture and a first card template, and the third personalized picture and the first card template are synthesized to obtain a personalized card.

[0016] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0017] at least one processor; and

[0018] at least one memory in communication with the processor, wherein:

[0019] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the personalized card display and production method provided by any one of the various implementations of the first aspect.

[0020] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable a computer to execute the personalized card display and production method provided by any one of the various implementation methods of the first aspect.

[0021] The personalized card display and production method and device provided by the embodiment of the present invention create a canvas group, adjust the parameters of the canvas group, and hollow out the hollowed-out surface; convert the layout mode and color mode of the hollowed-out card template, and synthesize the format surface and the template format to obtain a personalized card. The color difference can be eliminated while maintaining the consistency of the card surface, and the personalized picture is ensured to be aligned with the edge of the card surface template, which greatly simplifies the operation difficulty, can process pictures in batches, and effectively reduces the production cost of personalized cards. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 A flow chart of a personalized card display and production method provided by an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of the layered structure of canvas groups provided in an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the regional division effect provided by an embodiment of the present invention;

[0026] Figure 4 A schematic diagram of the background layer area division effect provided by an embodiment of the present invention;

[0027] Figure 5 A schematic diagram of the UV texture composition effect provided by an embodiment of the present invention;

[0028] Figure 6A schematic diagram of the hollowed-out image and template PDF structure provided in an embodiment of the present invention;

[0029] Figure 7 A schematic diagram of the structure of a personalized card display and production device provided in an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0032] The embodiment of the present invention provides a personalized card display and production method, see Figure 1 , the method comprising:

[0033] 101. Receive a personality picture and a card template, perform color space conversion on the personality picture to obtain a first personality picture, synthesize the first personality picture and the card template in a canvas group to obtain a preview picture, and adjust parameters of the personality picture according to the preview picture to obtain a second personality picture;

[0034] 102. Determine that the layout of the second personalized picture and the card template is horizontal, then perform color space conversion on the second personalized picture and the card template to obtain a third personalized picture and the first card template, and synthesize the third personalized picture and the first card template to obtain a personalized card.

[0035] Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and production method provided in the embodiment of the present invention, the canvas group is divided into four layers, including: a template layer, located at the top layer of the canvas group, used to display the template layer image; an area selection layer, adjacent to the template layer, used to draw a highlight selection box for the card surface partition; a foreground layer, adjacent to the area selection layer, used to display the foreground image of the card surface; a background layer, adjacent to the foreground layer, used to place a personalized image.

[0036] For details, please refer to Figure 2 According to the definition in the international standard ISO / IEC 7810, the size of the ID-1 standard card face is 85.60mm×53.98mm×0.76mm. According to the printer printing test results, select the resolution of the card face image. The drawing area size is calculated by the formula: actual size (inches) = pixels / resolution. The following uses HTML5 to introduce the method of this example, but it is not limited to HTML5 implementation. HTML has its own particularity because of the existence of CSS (Cascading Style Sheets). In the design of the canvas, the aspect ratio of the canvas must be consistent with the aspect ratio of the style to ensure the normal display of the image. Defined in HTML Container, create a canvas group in the container, 4 canvases. The canvas group contains stacked transparent canvases of the same size and absolute position. Its size is the size of the drawing area calculated above mapped to the size of the display screen, that is, the aspect ratio of the card is mapped to the area that can be displayed on the screen. Four layers: In order to make the user usability smooth, the canvas group is composed of template layer, area selection layer, foreground layer, and background layer from top to bottom.

[0037] The template layer S101 is located at the top of the canvas group. Its content is an optional fixed picture used to show the purpose of the card and the basic elements of the card surface, including at least one of the chip icon, UnionPay icon, bank icon, card number, card image, and co-branded card image.

[0038] The area selection layer S102 is located in the next layer of the template layer, and is used to draw highlight selection boxes for card surface partitions. For example, a poster-type card surface is divided into picture and text areas. Selecting the picture area will draw a highlight selection box on this layer to prompt the user to upload the picture; selecting the text area will prompt the user to edit the text; a puzzle-type card surface divides the card surface into multiple pictures. When a certain area is selected, a highlight selection box will be drawn on this layer to prompt the user to edit the picture in that area.

[0039] The foreground layer S103 is located below the area selection layer and is used to display the foreground image of the card surface, such as a poster-type image and a connecting image between text areas. This layer is an optional layer and will only appear when the card surface is selected to have partitions.

[0040] The background layer S104 is located at the bottom layer of the canvas group and is used for user-defined pictures of the card, such as cartoon pictures, character pictures, and animal pictures.

[0041] The division of regions can be found in Figure 3 , region refers to dividing the canvas into multiple closed polygons through one or more dividing lines, and each polygon is a region. Including but not limited to the regional foreground image, foreground text set, and the set of polygon vertices in the region. The dividing line S203 divides the canvas into two closed polygons S201 and S202. S201 and S202 are the two regions of this layout. In HTML5, a closed path is cut out in the canvas through the clip method to obtain a region. On the background layer canvas, the points in the region are connected into multiple closed paths in a clockwise direction, and the region is cut out. The user's background image is drawn in the above-mentioned region, and the regional foreground image and foreground text 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 thickness.

[0042] Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and production method provided in the embodiment of the present invention, the card template includes: the template layer map and the template PDF map, both of which are used to provide basic patterns of personalized cards.

[0043] Specifically, in order to realize the operability of the layer, the mouse and touch events are registered in the canvas of the template layer S101, and the user can operate the picture of the background layer through the mouse or gestures. The template layer S101 parameter configuration, the system draws the card template in the template layer S101 according to the card template and card style selected by the user, and draws the card foreground image and card foreground text set in the foreground layer in the card style. The card template includes but is not limited to the template unique identifier, card template, card back, card base, and manufacturing process. The card style includes the area segmentation structure of the card surface, the foreground image of the card surface, and the foreground text set of the card surface. When the mouse is pressed or the gesture touch start event is received, the foreground text set is searched first, and then the area set is searched. If the corresponding area is searched, the next step is processed, otherwise it is not processed.

[0044] Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and production method provided in the embodiment of the present invention, the color space conversion includes: converting from RGB color space to CMYK color space.

[0045] Specifically, the rectangular area occupied by the text can be calculated through the parameters of the text set, and it is determined whether the point touched by the mouse or gesture is within the above rectangular area. If the point is within the rectangular area, the selected text is edited. The above rectangle is drawn in the area selection layer, and the rectangle is highlighted, such as Gaussian blurring the edge of the rectangle.

[0046] Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and production method provided in the embodiment of the present invention, the parameter adjustment of the personalized picture according to the preview picture includes: adjusting the clarity and brightness of the personalized picture.

[0047] Check the clarity and brightness of the image in turn, and make personalized image color adjustments to compensate for the color deviation of the RGB to CMYK color space conversion. Specifically, you can use the following method to adjust the clarity of the image. De-noise the image through low-pass filtering, then smooth the image, use the Laplace operator to do convolution on the grayscale image, and calculate the standard deviation. When the standard deviation is small, reduce the noise through constrained least squares filtering; when the standard deviation is large, do not process it. Specifically, you can use the following method to adjust the brightness of the image. Use the mean and variance of the image on the grayscale image to determine whether the image is underexposed or overexposed. If it is underexposed or exposed normally, convert RGB to HSL color space, adjust the saturation and brightness of the image, and then convert HSL to RGB color space, and enhance the local contrast of the image through the Laplace operator; do not process overexposure.

[0048] Specifically, the selected text is edited in the foreground layer, including but not limited to changing text parameters and deleting text objects. If the clicked position is not within the rectangular area where the text set is located, the area set is searched.

[0049] Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and production method provided in the embodiment of the present invention, the parameter adjustment of the canvas group also includes: describing the personalized picture in a pixel matrix, and the corresponding pixel matrix is:

[0050]

[0051] Among them, x is the horizontal coordinate of the pixel point; y is the vertical coordinate of the pixel point; x' is the horizontal coordinate of the pixel point after transformation; y' is the vertical coordinate of the pixel point after transformation; a, b, c, d, e, f are constraints.

[0052] Specifically, the area set is composed of closed polygons, and it is determined by judging whether the point touched by the mouse or gesture is within the above polygon. If the point is within the polygon of the area, the selected area is edited. The above polygon is drawn in the area selection layer, and the polygon is highlighted, and the custom picture is edited in the background layer. If there is no picture in the area, it will prompt to upload the picture. In order to solve the problem of operation jams caused by large pixels of pictures uploaded by users, the parameters of the uploaded pictures are checked, and the pictures are scaled proportionally according to the selected card surface and the aspect ratio of the picture. If the uploaded photos are taken by a camera, it is necessary to adjust the display direction of the photo according to Exif (Exchangeable image file format) and then scale it. If there is a picture, the picture in the area is edited, including but not limited to moving, scaling, rotating, mirroring, deleting pictures, and replacing areas. See further Figure 4 , each area of ​​the background layer is divided into 5 parts, the middle part S301 can be moved, scaled, rotated, and mirrored, and the area edges S302, S303, S304, and S305 are the left stretching area, the top stretching area, the right stretching area, and the bottom stretching area respectively. The stretching area at the edge of the area can automatically align the edges of the pictures in the area to solve the problem of difficult edge alignment when the screen is small.

[0053] Area replacement refers to exchanging the images in two areas. The images are moved in the selected area by the mouse or touch point to exchange the images in the two areas. When the mouse or touch point moves outside the selected area, the image in the selected area is cleared in the background layer, and other areas remain unchanged. The canvas of the area selection layer is cleared, and the image of the selected area is drawn in a reduced and translucent manner following the mouse or touch point. The polygon of the area where the mouse or touch point is located is drawn and highlighted. When the mouse is lifted or the touch ends, if the selected area is different from the area where the mouse or touch point is located, the images of the two areas are exchanged and scaled according to the aspect ratio; otherwise, no processing is performed. The background image information can be described by a pixel matrix to make image operations smoother. The pixel points in the image are defined as in formula (1), and the a, b, c, d, e, and f constraints of different basic transformations are different.

[0054] The unchanged constraints are:

[0055]

[0056] The constraints for horizontal mirroring are:

[0057]

[0058] The constraints for vertical mirroring are:

[0059]

[0060] The constraints for translation are:

[0061]

[0062] Among them, X is the horizontal axis movement distance; Y is the vertical axis movement distance.

[0063] The constraints when scaling are:

[0064]

[0065] Where W is the width of the image after scaling; H is the height of the image after scaling.

[0066] The constraints for rotation are:

[0067]

[0068] Here, θ is the angle of clockwise rotation.

[0069] You can also combine transformations. For example, the transformation matrix for simultaneous rotation and translation is:

[0070]

[0071] The image of the foreground layer and background layer canvas combination is the customized element of the personalized card. Create a new canvas with the same size as the canvas group and white fill color, draw the elements of the background layer and foreground layer canvas in turn, compress and save as a PNG format image.

[0072] Based on the content of the above method embodiment, as an optional embodiment, the personalized card display and production method provided in the embodiment of the present invention, the card template also includes: a hollow pattern for opening a hollow area.

[0073] Specifically, in order to prevent the picture that the user sees in the system from being inconsistent with the card face of the physical card, a personalized card face preview function is provided. That is, the adjusted personalized picture and the card face template are synthesized into an RGB image, imported into the ICC (International Color Consortium) file of the printer device, the RGB is converted into a PNG image in the CMYK color space, and chamfered according to the standard of the card face. According to the effect of the preview image, the user can select a filtering function to adjust the color of the card face. The filtering functions are all for processing PNG format images in the RGB color space.

[0074] See also Figure 5 , and better use 3D card preview, the preview image of the card surface, the back of the card, and the card base form a UV texture. The UV texture includes: S405 is a preview image of the card surface, S402, S403, S404, S405 are the card base, and S401 is the back of the card. Add this UV texture to the 3D card model. The user can use gestures to preview this 3D personalized card model in all directions. After the user confirms the preview, the finalized personalized picture in PNG format of RGB color space is stored in the database.

[0075] See also Figure 6 During the hollowing synthesis process, the card template can be divided into two parts, the hollowing diagram S501 and the template PDF file. The hollowing diagram S501 refers to the elements that cannot be directly printed on the card template. In order to prevent the multi-layer production of the card and the interference of the printed colors, this area needs to be removed before printing. For example, chips and some special processes, the said special processes include but are not limited to hot stamping, silk screen printing, and embossing. The production method can choose to use Illustrator software or Photoshop software to make the elements that cannot be directly printed in the card template into PNG images in RGB color space under multiple resolutions. There are multiple card templates corresponding to the same hollowing diagram. If the card template does not have elements that cannot be directly printed, the card template will not correspond to any hollowing diagram. The template PDF file refers to the elements that can be directly printed in the card template except the hollowing diagram. In the card printing specification, the elements of the card template need to be printed clearly, distortion is not allowed, and color deviation is not allowed. Therefore, the elements in the card template need to be vector and must be images in the CMYK color space. The production method can choose to use Illustrator software to draw the elements that can be directly printed in the card template into vector graphics in the CMYK color space and make it into a template PDF file. The card template and the template PDF file correspond one to one. Specifically, it can be described as follows: According to the card making file of the system, search for personalized pictures and card templates. Further hollow out the personalized pictures and hollowed-out pictures. Specifically, obtain the non-transparent pixels of the hollowed-out picture and make the pixels of the card template transparent. Hollowing out is mainly to clear the picture of the area that will be processed by the chip or special process to prevent color interference. Further determine whether the card is a vertical card. If it is a vertical card, rotate the hollowed-out PNG picture 90 degrees clockwise. Keep all vertical cards in the same direction to facilitate chip installation. Further import the ICC (International Color Consortium) file of the printer device, convert the RGB PNG picture to the CYMK color space, set the compression parameters and resolution to convert it into a JPEG format picture. Whether there is a picture to be synthesized, further synthesize the JPEG format picture in the previous step with the template PDF. Specifically, a PDF file is created, the document size of the PDF is set to the size of the personalized JPEG format image, the personalized JPEG format image is added to the PDF file, and then the template PDF content is drawn on the current page at the position with the absolute coordinates (0, 0).

[0076] The personalized card display and production method provided by the embodiment of the present invention creates a canvas group, adjusts the parameters of the canvas group, and hollows out the hollowed-out surface; converts the layout mode and color mode of the hollowed-out card template, and synthesizes the format surface and the template format to obtain a personalized card. The color difference can be eliminated while maintaining the consistency of the card surface, and the personalized picture is aligned with the edge of the card surface template, which greatly simplifies the operation difficulty, can process pictures in batches, and effectively reduces the production cost of personalized cards.

[0077] The implementation basis of each embodiment of the present invention is to implement programmed processing through a device with a processor function. Therefore, in engineering practice, the technical solutions and functions of each embodiment of the present invention can be encapsulated into various modules. Based on this reality, on the basis of the above embodiments, the embodiment of the present invention provides a personalized card display and production device, which is used to execute the personalized card display and production method in the above method embodiment. Figure 7 , the device comprises:

[0078] The parameter adjustment module 701 is used to receive a personality picture and a card template, perform color space conversion on the personality picture to obtain a first personality picture, synthesize the first personality picture and the card template in a canvas group to obtain a preview picture, and perform parameter adjustment on the personality picture according to the preview picture to obtain a second personality picture;

[0079] The card synthesis module 702 is used to determine that the layout of the second personalized picture and the card template is horizontal, then the second personalized picture and the card template are converted into a color space to obtain a third personalized picture and a first card template, and the third personalized picture and the first card template are synthesized to obtain a personalized card.

[0080] The personalized card display and production device provided in the embodiment of the present invention adopts a parameter adjustment module and a card synthesis module. By creating a canvas group, the parameters of the canvas group are adjusted, and the hollowed-out surface is hollowed out; the layout mode and color mode of the hollowed-out card template are converted, and the format surface and the template format are synthesized to obtain a personalized card. The color difference can be eliminated while maintaining the consistency of the card surface, and the personalized picture is aligned with the edge of the card surface template, which greatly simplifies the operation difficulty, can perform batch processing of pictures, and effectively reduces the production cost of personalized cards.

[0081] It should be noted that the device in the device embodiment provided by the present invention can be used to implement the method in the above method embodiment as well as the method in other method embodiments provided by the present invention. The only difference is that the corresponding functional modules are set, and the principle is basically the same as the principle of the above device embodiment provided by the present invention. As long as the technical personnel in the field refer to the specific technical solutions in other method embodiments on the basis of the above device embodiment, obtain the corresponding technical means and the technical solutions composed of these technical means by combining technical features, the device in the above device embodiment can be improved on the premise of ensuring the practicality of the technical solution, thereby obtaining the corresponding device class embodiment, which is used to implement the methods in other method class embodiments. For example:

[0082] Based on the content of the above device embodiment, as an optional embodiment, the personalized card display and production device provided in the embodiment of the present invention further includes: a clarity and brightness adjustment module for adjusting the clarity and brightness of the personalized picture.

[0083] The method of the embodiment of the present invention is implemented by relying on electronic devices, so it is necessary to introduce the relevant electronic devices. Based on this purpose, the embodiment of the present invention provides an electronic device, such as Figure 8 As shown, the electronic device includes: at least one processor 801, a communication interface 804, at least one memory 802 and a communication bus 803, wherein at least one processor 801, the communication interface 804, and at least one memory 802 communicate with each other through the communication bus 803. At least one processor 801 can call the logic instructions in at least one memory 802 to execute all or part of the steps of the methods provided in the aforementioned various method embodiments.

[0084] In addition, the logic instructions in the at least one memory 802 mentioned above can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each method embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0085] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0087] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. Based on this understanding, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and sometimes in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0088] In this patent, the terms "include", "comprises" or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "includes..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for displaying and making personalized cards, characterized in that: include: Receiving a personality picture and a card template, performing color space conversion on the personality picture to obtain a first personality picture, synthesizing the first personality picture and the card template in a canvas group to obtain a preview picture, and adjusting parameters of the personality picture according to the preview picture to obtain a second personality picture; Determining that the layout of the second personalized picture and the card template is horizontal, performing color space conversion on the second personalized picture and the card template to obtain a third personalized picture and the first card template, and synthesizing the third personalized picture and the first card template to obtain a personalized card; Among them, the canvas group is divided into four layers, including: a template layer, located at the top layer of the canvas group, used to display the template layer image; an area selection layer, adjacent to the template layer, used to draw a highlight selection box for the card surface partition; a foreground layer, adjacent to the area selection layer, used to display the card surface foreground image; a background layer, adjacent to the foreground layer, used to place personalized images.

2. The personalized card display and production method according to claim 1, characterized in that: The card template includes: the template layer image and the template PDF image, both of which are used to provide basic patterns for personalized cards.

3. The personalized card display and production method according to claim 1, characterized in that: The color space conversion includes: converting from RGB color space to CMYK color space.

4. The personalized card display and production method according to claim 3, characterized in that: The adjusting parameters of the personality picture according to the preview picture includes: adjusting the clarity and brightness of the personality picture.

5. The personalized card display and production method according to claim 2, characterized in that: The card template also includes: a hollow pattern for opening a hollow area.

6. The personalized card display and production method according to claim 1, characterized in that: It also includes: describing the individual picture in pixel matrix, and the corresponding pixel matrix is: Among them, x is the horizontal coordinate of the pixel point; y is the vertical coordinate of the pixel point; x' is the horizontal coordinate of the pixel point after transformation; y' is the vertical coordinate of the pixel point after transformation; a, b, c, d, e, f are constraints.

7. A personalized card display and production device, characterized in that: include: A parameter adjustment module is used to receive a personality picture and a card template, perform color space conversion on the personality picture to obtain a first personality picture, synthesize the first personality picture and the card template in a canvas group to obtain a preview picture, and perform parameter adjustment on the personality picture according to the preview picture to obtain a second personality picture; A card synthesis module, used for determining that the second personalized picture and the card template are in a horizontal format, performing color space conversion on the second personalized picture and the card template to obtain a third personalized picture and the first card template, and synthesizing the third personalized picture and the first card template to obtain a personalized card; Among them, the canvas group is divided into four layers, including: a template layer, located at the top layer of the canvas group, used to display the template layer image; an area selection layer, adjacent to the template layer, used to draw a highlight selection box for the card surface partition; a foreground layer, adjacent to the area selection layer, used to display the card surface foreground image; a background layer, adjacent to the foreground layer, used to place personalized images.

8. An electronic device, characterized in that: include: At least one processor, at least one memory and a communication interface; wherein, The processor, memory and communication interface communicate with each other; The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Electronic file for machine-readable information cards, and implementation method and system thereof

    CN102012999A

  • Background configuration method and device for display area, equipment and readable medium

    CN109597664A