CN112788192B - Jewelry customization-based image processing method and device - Google Patents

Jewelry customization-based image processing method and device Download PDF

Info

Publication number
CN112788192B
CN112788192B CN202011519755.4A CN202011519755A CN112788192B CN 112788192 B CN112788192 B CN 112788192B CN 202011519755 A CN202011519755 A CN 202011519755A CN 112788192 B CN112788192 B CN 112788192B
Authority
CN
China
Prior art keywords
picture
user
image
preprocessing
jewelry
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.)
Active
Application number
CN202011519755.4A
Other languages
Chinese (zh)
Other versions
CN112788192A (en
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.)
Apm Monaco LLC
Beride Jewelry Guangzhou Co ltd
Original Assignee
Apm Monaco LLC
Beride Jewelry Guangzhou 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 Apm Monaco LLC, Beride Jewelry Guangzhou Co ltd filed Critical Apm Monaco LLC
Priority to CN202011519755.4A priority Critical patent/CN112788192B/en
Publication of CN112788192A publication Critical patent/CN112788192A/en
Application granted granted Critical
Publication of CN112788192B publication Critical patent/CN112788192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00204Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server
    • H04N1/00236Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server using an image reading or reproducing device, e.g. a facsimile reader or printer, as a local input to or local output from a computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/0035User-machine interface; Control console
    • H04N1/00405Output means
    • H04N1/00408Display of information to the user, e.g. menus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an image processing method and device based on jewelry customization, comprising the following steps: receiving original image parameters input by a user; preprocessing the original image parameters, wherein the preprocessing comprises the steps of processing the original image to obtain a preprocessing image, returning the preprocessing image to a user, converting a pattern input by the user into a preset format, adjusting characters input by the user according to preset rules, and generating a preset document; receiving a picture updating request of a user, calling the original picture, generating a preview picture according to the picture updating request, and displaying the preview picture; the picture updating request comprises changing the contrast of the preprocessing diagram and changing the position. In the embodiment of the invention, the pictures uploaded by the user are filtered through a series of processing on the pictures uploaded in the online customization of the user, so that the pictures which are more convenient to produce and use are conveniently provided in the subsequent customization seal cutting of jewelry.

Description

Jewelry customization-based image processing method and device
Technical Field
The invention relates to the technical field of jewelry customization, in particular to an image processing method and device based on jewelry customization.
Background
Jewelry has a broad and narrow definition, with a jewelry item in the narrow definition referring to jade production, and the broad definition of jewelry generally includes gold, silver, and materials made of natural materials (e.g., mineral stone, biology, etc.). Jewellery, artwork or other items of value are commonly referred to as jewelry in life.
Most jewelry on the market at present is manufactured into corresponding jewelry products according to designs designed by designers by merchants, and then circulated to the market for sale. Some jewelry is customized by simply selecting the style and color from the customer to the site, then requiring a small number of letters or numbers to be inscribed on the selected jewelry, the inscribed characters being of a simple style, the manner of customization being inscribed, or even not truly known. While some other prior art describes on-line jewelry customization techniques, for example, chinese patent publication No. CN108830690a discloses an on-line jewelry customization technique that performs jewelry selection by a user logging into a transaction platform, submits a purchase request to generate an order to complete customization. This patent, while disclosing a way of customizing now, is limited to the selection of jewelry material and does not address how to process and filter pictures uploaded by users based on in-line customization, and the lack of intelligence in the picture processing.
Disclosure of Invention
The invention aims to solve the technical problem of providing an image processing method and device based on jewelry customization, which can process and filter on-line pictures uploaded by users on a customization center line, so that the customization process is more intelligent, printing and generating are facilitated, and the finally customized finished product is more fit with requirements.
To solve the above technical problem, a first aspect of an embodiment of the present invention discloses an image processing method based on jewelry customization, the image processing method including:
receiving original image parameters input by a user, wherein the original image parameters comprise original pictures uploaded by the user, patterns input by the user and characters input by the user;
preprocessing the original image parameters, wherein the preprocessing comprises the steps of processing the original image to obtain a preprocessing image, returning the preprocessing image to a user, converting a pattern input by the user into a preset format, adjusting characters input by the user according to preset rules, and generating a preset document;
receiving a picture updating request of a user, calling the original picture, generating a preview picture according to the picture updating request, and displaying the preview picture;
the picture updating request comprises changing the contrast of the preprocessing diagram and changing the position.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, processing the original image to obtain a preprocessing chart includes:
carrying out gray-scale treatment on the original image to obtain a gray-scale image;
carrying out black-and-white processing on each pixel point of the gray-scale picture according to the values of the red, green and blue colors of each pixel point in the gray-scale picture to obtain a black-and-white picture;
and adjusting the size proportion of the black-white picture according to a preset specification to obtain a pretreatment picture.
In a first aspect of the present invention, according to the first aspect of the present invention, black and white processing is performed on each pixel point of a grayscale image according to the values of the three colors of red, green and blue of each pixel point and the corresponding grayscale value, so as to obtain a black and white image, which specifically includes:
acquiring the numerical values of red, green and blue of each pixel point in the gray-scale picture;
calculating a gray scale value corresponding to each pixel point according to a formula I, judging whether the gray scale value is larger than 0x7F, if so, processing the pixel point to display white, otherwise, processing the pixel point to display black;
wherein, the formula one is: h= (r+g+b)/3, R is a red value, G is a green value, and B is a blue value.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the preset specification is that a longest side of the pretreatment chart is 1000px.
In a first aspect of the embodiment of the present invention, receiving a picture update request from a user, invoking the original picture, generating a preview according to the picture update request, and displaying the preview, including:
receiving a picture updating request of a user;
calling the original image, and obtaining a preprocessing image of the original image according to a preprocessing mode;
according to the contrast ratio, adjusting a black pixel value corresponding to each pixel point in the preprocessing chart;
and generating a preview image, and displaying the preview image in an area corresponding to the change position.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the image processing method further includes:
receiving a picture adjustment request of a user, and processing a preview picture into a predetermined picture based on the picture adjustment request;
the picture adjustment request comprises preview picture angle adjustment and preview picture size adjustment.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the image processing method further includes:
synthesizing the predetermined graph into a jewelry file, and cutting and adjusting the color of the predetermined graph according to the preset jewelry file specification of the jewelry file;
and generating a printed document with a first preset printing specification according to the preset diagram, selecting at least two areas on the printed document as positioning areas, and forming a solid black image on the positioning areas.
A second aspect of an embodiment of the present invention discloses an image processing apparatus based on jewelry customization, the image processing apparatus comprising:
and a picture receiving module: the method comprises the steps of receiving original image parameters input by a user, wherein the original image parameters comprise original pictures uploaded by the user, patterns input by the user and characters input by the user;
an image processing module: the preprocessing is used for preprocessing the original image parameters, and comprises the steps of processing the original image to obtain a preprocessing diagram, returning the preprocessing diagram to a user, converting a pattern input by the user into a preset format, adjusting characters input by the user according to preset rules and generating a preset document;
a change request module: the method comprises the steps of receiving a picture update request of a user, calling the original picture, generating a preview picture according to the picture update request, and displaying the preview picture;
the picture updating request comprises changing the contrast of the preprocessing diagram and changing the position.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, processing the original image to obtain a preprocessing chart includes:
carrying out gray-scale treatment on the original image to obtain a gray-scale image;
carrying out black-and-white processing on each pixel point of the gray-scale picture according to the values of the red, green and blue colors of each pixel point in the gray-scale picture to obtain a black-and-white picture;
and adjusting the size proportion of the black-white picture according to a preset specification to obtain a pretreatment picture.
In a second aspect of the present invention, according to the values of the three colors of red, green and blue of each pixel point in the grayscale image and the corresponding grayscale values, black and white processing is performed on each pixel point of the grayscale image to obtain a black and white image, which specifically includes:
acquiring the numerical values of red, green and blue of each pixel point in the gray-scale picture;
calculating a gray scale value corresponding to each pixel point according to a formula I, judging whether the gray scale value is larger than 0x7F, if so, processing the pixel point to display white, otherwise, processing the pixel point to display black;
wherein, the formula one is: h= (r+g+b)/3, R is a red value, G is a green value, and B is a blue value.
In a second aspect of the embodiment of the present invention, the preset specification is 1000px on the longest side of the pretreatment chart.
In a second aspect of the embodiment of the present invention, receiving a picture update request from a user, calling the original picture, generating a preview according to the picture update request, and displaying the preview, where the generating includes:
receiving a picture updating request of a user;
calling the original image, and obtaining a preprocessing image of the original image according to a preprocessing mode;
according to the contrast ratio, adjusting a black pixel value corresponding to each pixel point in the preprocessing chart;
and generating a preview image, and displaying the preview image in an area corresponding to the change position.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the image processing apparatus further includes:
and a receiving module: the method comprises the steps of receiving a picture adjustment request of a user, and processing a preview picture into a predetermined picture based on the picture adjustment request;
the picture adjustment request comprises preview picture angle adjustment and preview picture size adjustment.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the image processing apparatus further includes:
and a product synthesis module: the method comprises the steps of synthesizing the predetermined graph into a jewelry file, and cutting and color-adjusting the predetermined graph according to the preset jewelry file specification of the jewelry file;
a print document generation module: and the printing file with the first preset printing specification is generated according to the preset diagram, at least two areas are selected from the printing file to serve as positioning areas, and a solid black image is formed on the positioning areas.
A third aspect of an embodiment of the present invention discloses a computer device, including:
a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the jewelry customization-based image processing method according to any of the first aspect of the present invention.
A fourth aspect of an embodiment of the invention discloses a storage medium containing computer executable instructions which, when executed by a computer processor, are adapted to carry out the jewelry customization based image processing method according to any of the first aspect of the invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the pictures uploaded by the user are filtered through a series of processing on the pictures uploaded in the online customization of the user, so that the pictures which are more convenient to produce and use are conveniently provided in the subsequent customization seal cutting of jewelry.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram of a jewelry customization-based image processing method disclosed in an embodiment of the present invention;
fig. 2 is a schematic diagram of the structure of an image processing apparatus based on jewelry customization disclosed in the embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses an image processing method and device based on jewelry customization, which are used for filtering pictures uploaded by a user through a series of processing of pictures uploaded by the user in online customization, so that clearer and more convenient pictures can be provided in subsequent jewelry customization seal cutting. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of an image processing method based on jewelry customization according to an embodiment of the present invention. The method described in fig. 1 can be applied to an image processing apparatus customized based on jewelry. As shown in fig. 1, the jewelry customization-based image processing method may include the following operations:
101. and receiving original image parameters input by a user, wherein the original image parameters comprise original images uploaded by the user, patterns input by the user and characters input by the user.
102. Preprocessing the original image parameters, wherein the preprocessing comprises the steps of processing the original image to obtain a preprocessing diagram, returning the preprocessing diagram to a user, converting patterns input by the user into a preset format, adjusting characters input by the user according to preset rules, and generating a preset document.
In the embodiment of the invention, the operation of the user takes the client as a carrier. Specifically, the user may make an order request in the form of a web page, or may initiate an order request on the app. On the web page or app, there is a corresponding custom platform on which the user designs the appropriate jewelry. Before that, it can be understood that the user can initiate an order request through the app to customize jewelry, and the user firstly logs in the app through account verification, and directly enters the order platform after successful login. There are various ways in which a user may perform account verification, including, for example, account name, key, face recognition, fingerprint matching, and the like. After the user enters the order platform through account verification, the jewelry is designed. The design includes entering jewelry customization parameters. The jewelry customization parameters may include, among other things, the selection of jewelry types, the selection of jewelry styles corresponding to each jewelry type, in this implementation. Inputs to other customization schemes, and so forth. Among the jewelry types generally include necklaces, bracelets, pendants, rings, bracelets, etc., which are common in the marketplace. The jewelry styles may be color differences corresponding to the type of jewelry, e.g., necklaces of different colors may bring about different overall styles, so that the user selects the necklace color after selecting the necklace. The parameters are then entered for further personalized customization on the necklace. In other embodiments, multiple parameter selections may be provided to the user, with the user selecting one or more parameters indicating the selection of the customization mode. In the embodiment of the invention, the user performs personalized customization on jewelry through uploading the picture.
Specifically, in the embodiment of the present invention, preprocessing the original image sheet to obtain a preprocessed image includes:
and carrying out gray-scale treatment on the original image to obtain a gray-scale image. Conventionally, an image may be defined as a two-dimensional function f (x, y), where x and y are spatial plane coordinates, and the corresponding f size at any pair of coordinate axes (x, y) becomes the intensity or gray level of the image at that point. That is, the gray scale refers to the level of the shade of the electromagnetic wave radiation of the ground object Du Biaoxian on the black-white image, and is the scale for dividing the spectrum characteristics of the ground object.
In the embodiment of the invention, PHP program codes are used for carrying out gray-scale processing on the original picture uploaded by a user, and then picture lattice operation is carried out. That is, each pixel point of the gray-scale picture is subjected to black-and-white processing according to the values of the red, green and blue colors of each pixel point in the gray-scale picture, so as to obtain a black-and-white picture. And adjusting the size proportion of the black-white picture according to a preset specification to obtain a pretreatment picture.
In the embodiment of the invention, the black-and-white picture can be automatically scaled according to the proportion, but preset specifications are set, and preferably, the longest side of the pretreatment picture is limited to 1000px. That is, the picture is enlarged or reduced to 1000px.
Further, according to the values of the three colors of red, green and blue of each pixel point in the gray-scale picture and the corresponding gray-scale value, carrying out black-and-white treatment on each pixel point of the gray-scale picture to obtain a black-and-white picture, wherein the black-and-white picture is specifically as follows: acquiring the numerical values of red, green and blue of each pixel point in the gray-scale picture; calculating a gray scale value corresponding to each pixel point according to a formula I, judging whether the gray scale value is larger than 0x7F, if so, processing the pixel point to display white, otherwise, processing the pixel point to display black; wherein, the formula one is: h= (r+g+b)/3. In the formula, H is a gray scale value, R is a red value, G is a green value, and B is a blue value.
In step 102 of the present application, the user may upload the picture to the server through each platform via the API GET, and when the preprocessed picture is obtained through preprocessing, the server returns the preprocessor to each platform through the API, that is, provides the user with the view.
In step 102 of the present application, the pattern input by the user is, for example, drawn by the user using a preset website, for example, using a program library, and the program code is stored in JSON format using Javascript and HTML5 for the path of the user to record the movement of the user on the screen with a mouse or a mobile phone. The character entered by the user is, for example, a user-written word. The characters input by the user are regulated according to preset rules, a preset document is generated, specifically, for example, the characters of each line are selected by the user on a page, the characters and patterns written and printed are input, the characters and patterns are uploaded to a server, the server uses PHP programs, a preset font is called according to the setting of each line of the user to be synthesized to a designated area (such as the back) of the jewelry file according to the position of each line, black and white PNG files are generated, and meanwhile, the characters corresponding to each line are arranged in a centered mode, and the font size is px.
The user performs step 103 based on the preprocessing chart returned by the server: and receiving a picture updating request of a user, calling the original picture, generating a preview picture according to the picture updating request, and displaying the preview picture. The picture updating request comprises changing the contrast of the preprocessing diagram and changing the position.
The pre-processing map generated by the server is fed back to the user, but the user may have partial or complete dissatisfaction based on the generated pre-processing map, and thus be provided with a flow for modification.
Specifically, receiving a picture update request of a user, calling the original picture, generating a preview picture according to the picture update request, and displaying the preview picture, including: receiving a picture updating request of a user; calling the original image, and obtaining a preprocessing image of the original image according to a preprocessing mode; according to the contrast ratio, adjusting a black pixel value corresponding to each pixel point in the preprocessing chart; and generating a preview image, and displaying the preview image in an area corresponding to the change position.
Contrast is also the depth of the picture, and the user can update for multiple times, and each time the user needs to update, the user can resend the update request. And the original image uploaded by the user can be recalled each time the server receives the request of the platform. According to each updating request of the user, the black pixels are calculated by adopting a preprocessing mode again, and the contrast ratio is increased and reduced.
In the embodiment of the invention, the size of the preview is preferably 1000px long and 1000px high. Because each pixel point in a graph has a corresponding x value and y value, the graph file can be shifted to the position requested by the user according to the x value and the y value. The units of positions are px pixels. The movement position may be calculated starting from the upper left corner.
As a preferred embodiment, the image processing method further includes: receiving a picture adjustment request of a user, and processing a preview picture into a predetermined picture based on the picture adjustment request; the picture adjustment request comprises preview picture angle adjustment and preview picture size adjustment. For example, the angle of adjustment is 0-270 degrees,
in the present invention, the image processing method further includes: synthesizing the predetermined graph into a jewelry file, and cutting and adjusting the color of the predetermined graph according to the preset jewelry file specification of the jewelry file; and generating a printed document with a first preset printing specification according to the preset diagram, selecting at least two areas on the printed document as positioning areas, and forming a solid black image on the positioning areas. A jewelry file is formed in advance in the database for recall to be synthesized with the predetermined map, the jewelry file corresponding to the user selected jewelry type, the jewelry file corresponding to its size. When the predetermined image is synthesized into the jewelry file, the predetermined image is appropriately cut according to the printable range of the jewelry file, the part exceeding the printable range is deleted, the black color of the predetermined image is eased to the color of the corresponding object of the jewelry file after printing according to the color of the jewelry file, for example, the jewelry file is replaced with gray color, and the gold color is replaced with brown color. Further, after order confirmation, the server generates a print document according to the user's design and the setting of the predetermined drawing, and at least two areas of the print document, typically four corners of the print document, are selected as positioning areas, each positioning area is typically set to a square, and the size of the square is preferably set to be 100px long and 100px high. On the printed document, only the user's design and black and white color. The positioning area is black. The print document is preferably a PNG document in the embodiment of the present invention. In practice, the printed document is transferred to another server and converted into another format, such as PLT format document, which can be converted by format conversion software and uploaded to an archive for production by the production library.
Example two
As shown in fig. 2, an embodiment of the present invention further provides an image processing apparatus customized based on jewelry, which includes a picture receiving module 201, an image processing module 202, and a modification request module 201. The picture receiving module 201 is configured to receive original image parameters input by a user, where the original image parameters include an original picture uploaded by the user, a pattern input by the user, and a character input by the user. . The image processing module 202 is configured to perform preprocessing on the original image parameters, where the preprocessing includes processing the original image to obtain a preprocessing chart, returning the preprocessing chart to a user, converting a pattern input by the user into a preset format, and adjusting characters input by the user according to a preset rule to generate a preset document. The change request module 203 is configured to receive a picture update request from a user, call the original picture, generate a preview according to the picture update request, and display the preview. The picture updating request comprises changing the contrast of the preprocessing diagram and changing the position.
In this embodiment, preprocessing the original image to obtain a preprocessed image includes:
carrying out gray-scale treatment on the original image to obtain a gray-scale image; carrying out black-and-white processing on each pixel point of the gray-scale picture according to the values of the red, green and blue colors of each pixel point in the gray-scale picture to obtain a black-and-white picture; and adjusting the size proportion of the black-white picture according to a preset specification to obtain a pretreatment picture.
In a second aspect of the present invention, according to the values of the three colors of red, green and blue of each pixel point in the grayscale image and the corresponding grayscale values, black and white processing is performed on each pixel point of the grayscale image to obtain a black and white image, which specifically includes: acquiring the numerical values of red, green and blue of each pixel point in the gray-scale picture; calculating a gray scale value corresponding to each pixel point according to a formula I, judging whether the gray scale value is larger than 0x7F, if so, processing the pixel point to display white, otherwise, processing the pixel point to display black; wherein, the formula one is: h= (r+g+b)/3.
In a second aspect of the embodiment of the present invention, the preset specification is 1000px on the longest side of the pretreatment chart. Receiving a picture update request of a user, calling the original picture, generating a preview picture according to the picture update request, and displaying the preview picture, wherein the method comprises the following steps: receiving a picture updating request of a user; calling the original image, and obtaining a preprocessing image of the original image according to a preprocessing mode; according to the contrast ratio, adjusting a black pixel value corresponding to each pixel point in the preprocessing chart; and generating a preview image, and displaying the preview image in an area corresponding to the change position.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the image processing apparatus further includes: and a receiving module: the method comprises the steps of receiving a picture adjustment request of a user, and processing a preview picture into a predetermined picture based on the picture adjustment request; the picture adjustment request comprises preview picture angle adjustment and preview picture size adjustment.
Further, the image processing apparatus further includes a product composition module 204 and a print document generation module 205. The product synthesis module 204 is used for synthesizing the predetermined image into a jewelry file, and cutting and color adjusting the predetermined image according to the preset jewelry file specification of the jewelry file, the print document generation module 205 is used for generating a print document with a first preset print specification according to the predetermined image, and selecting at least two areas on the print document as positioning areas, and forming a pure black image on the positioning areas.
Example III
An embodiment of the present invention discloses an electronic device including a memory, a processor, and a computer readable program stored in the memory and executable by the processor, the computer readable program when executed by the processor implementing the jewelry customization based image processing method according to any one of the present invention, the image processing method comprising: receiving an original picture uploaded by a user, preprocessing the original picture to obtain a preprocessed picture, and returning the preprocessed picture to the user; and receiving a picture updating request of a user, calling the original picture, generating a preview picture according to the picture updating request, and displaying the preview picture.
Example IV
The embodiment of the invention discloses a computer storage medium, which stores computer instructions, and the computer instructions are used for executing the steps of the jewelry customization-based image processing method disclosed by the embodiment of the invention when being called, and the image processing method comprises the following steps: receiving an original picture uploaded by a user, preprocessing the original picture to obtain a preprocessed picture, and returning the preprocessed picture to the user; and receiving a picture updating request of a user, calling the original picture, generating a preview picture according to the picture updating request, and displaying the preview picture.
The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses an image processing method and device based on jewelry customization, which are disclosed by the embodiment of the invention only for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (8)

1. An image processing method based on jewelry customization, characterized in that the image processing method comprises:
receiving original image parameters input by a user, wherein the original image parameters comprise original pictures uploaded by the user, patterns input by the user and characters input by the user;
preprocessing the original image parameters, wherein the preprocessing comprises the steps of processing the original image to obtain a preprocessing image and returning the preprocessing image to a user, converting a pattern input by the user into a preset format, adjusting characters input by the user according to preset rules and generating a preset document, wherein the original image is uploaded to a server by the user through each platform in an API interface mode, and when the preprocessing image is obtained through preprocessing, the server returns the preprocessing image to each platform through an API interface;
receiving a picture updating request of a user, calling the original picture, generating a preview picture according to the picture updating request, and displaying the preview picture;
the picture updating request comprises changing the contrast and the position of the preprocessing picture;
processing the original image to obtain a preprocessing image, including:
carrying out gray-scale treatment on the original image to obtain a gray-scale image;
carrying out black-and-white processing on each pixel point of the gray-scale picture according to the values of the red, green and blue colors of each pixel point in the gray-scale picture to obtain a black-and-white picture;
the size proportion of the black-white picture is adjusted according to a preset specification, and a pretreatment picture is obtained;
receiving a picture update request of a user, calling the original picture, generating a preview picture according to the picture update request, and displaying the preview picture, wherein the method comprises the following steps:
receiving a picture updating request of a user;
calling the original image, and obtaining a preprocessing image of the original image according to a preprocessing mode;
according to the contrast ratio, adjusting a black pixel value corresponding to each pixel point in the preprocessing chart;
generating a preview, and displaying the preview in a region corresponding to the change position;
the image processing method further includes:
receiving a picture adjustment request of a user, and processing a preview picture into a predetermined picture based on the picture adjustment request;
and synthesizing the predetermined graph into a jewelry file, cutting and adjusting the color of the predetermined graph according to the preset jewelry file specification of the jewelry file, wherein the jewelry file is formed in a database in advance and is used for being called to be synthesized with the predetermined graph, and the black color of the predetermined graph is eased into the color of a real object corresponding to the jewelry file after printing according to the color of the jewelry file.
2. The image processing method according to claim 1, wherein the black-and-white processing is performed on each pixel point of the grayscale image according to the values of the three colors of red, green and blue of each pixel point in the grayscale image and the corresponding grayscale value, so as to obtain a black-and-white image, specifically:
acquiring the numerical values of red, green and blue of each pixel point in the gray-scale picture;
calculating a gray scale value corresponding to each pixel point according to a formula I, judging whether the gray scale value is larger than 0x7F, if so, processing the pixel point to display white, otherwise, processing the pixel point to display black;
wherein, the formula one is: h= (r+g+b)/3, H is a gray scale value, R is a red value, G is a green value, and B is a blue value.
3. The image processing method according to claim 1, wherein the preset specification is 1000px on the longest side of the preprocessing chart.
4. The image processing method according to claim 1, characterized in that the image processing method further comprises:
the picture adjustment request comprises preview picture angle adjustment and preview picture size adjustment.
5. The image processing method according to claim 4, characterized in that the image processing method further comprises:
and generating a printed document with a first preset printing specification according to the preset diagram, selecting at least two areas on the printed document as positioning areas, and forming a solid black image on the positioning areas.
6. An image processing apparatus for jewelry-based customization, the image processing apparatus comprising:
and a picture receiving module: the method comprises the steps of receiving original image parameters input by a user, wherein the original image parameters comprise original pictures uploaded by the user, patterns input by the user and characters input by the user;
an image processing module: the preprocessing method comprises the steps of processing original image parameters, obtaining a preprocessing image by the original image, returning the preprocessing image to a user, converting patterns input by the user into a preset format, adjusting characters input by the user according to preset rules, and generating a preset document, wherein the original image is uploaded to a server by the user through each platform in an API interface mode, and when the preprocessing image is obtained by preprocessing, returning the preprocessing image to each platform by the server through an API interface;
a change request module: the method comprises the steps of receiving a picture update request of a user, calling the original picture, generating a preview picture according to the picture update request, and displaying the preview picture;
the picture updating request comprises changing the contrast and the position of the preprocessing picture;
receiving a picture update request of a user, calling the original picture, generating a preview picture according to the picture update request, and displaying the preview picture, wherein the method comprises the following steps:
receiving a picture updating request of a user;
calling the original image, and obtaining a preprocessing image of the original image according to a preprocessing mode;
according to the contrast ratio, adjusting a black pixel value corresponding to each pixel point in the preprocessing chart;
generating a preview, and displaying the preview in a region corresponding to the change position;
the image processing apparatus is further configured to:
receiving a picture adjustment request of a user, and processing a preview picture into a predetermined picture based on the picture adjustment request;
and synthesizing the predetermined graph into a jewelry file, cutting and adjusting the color of the predetermined graph according to the preset jewelry file specification of the jewelry file, wherein the jewelry file is formed in a database in advance and is used for being called to be synthesized with the predetermined graph, and the black color of the predetermined graph is eased into the color of a real object corresponding to the jewelry file after printing according to the color of the jewelry file.
7. A computer device, comprising: a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the jewelry customization based image processing method of any of claims 1 to 5.
8. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the jewelry-based customized image processing method in accordance with any one of claims 1 to 5.
CN202011519755.4A 2020-12-21 2020-12-21 Jewelry customization-based image processing method and device Active CN112788192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011519755.4A CN112788192B (en) 2020-12-21 2020-12-21 Jewelry customization-based image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011519755.4A CN112788192B (en) 2020-12-21 2020-12-21 Jewelry customization-based image processing method and device

Publications (2)

Publication Number Publication Date
CN112788192A CN112788192A (en) 2021-05-11
CN112788192B true CN112788192B (en) 2023-05-09

Family

ID=75751819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011519755.4A Active CN112788192B (en) 2020-12-21 2020-12-21 Jewelry customization-based image processing method and device

Country Status (1)

Country Link
CN (1) CN112788192B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123718A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Image processing method and system
CN105637512A (en) * 2013-08-22 2016-06-01 贝斯普客公司 Method and system to create custom products
CN108154426A (en) * 2018-03-15 2018-06-12 郑植 A kind of jewelry custom-built system and method
CN111639717A (en) * 2020-06-04 2020-09-08 网易(杭州)网络有限公司 Image character recognition method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123718A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Image processing method and system
CN105637512A (en) * 2013-08-22 2016-06-01 贝斯普客公司 Method and system to create custom products
CN108154426A (en) * 2018-03-15 2018-06-12 郑植 A kind of jewelry custom-built system and method
CN111639717A (en) * 2020-06-04 2020-09-08 网易(杭州)网络有限公司 Image character recognition method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112788192A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US7946490B2 (en) Computerized card production equipment
US20200226724A1 (en) Transferring Image Style to Content of a Digital Image
US9459782B2 (en) Online logo tool
CN110096627B (en) Jewelry information query method and device, computer equipment and storage medium
US20160275585A1 (en) Automated System and Method for the Customization of Fashion Items
KR20210093196A (en) system customized jewelry using a user terminal
US20040068417A1 (en) Method for digital color grading of gems and communication thereof
CN110781890A (en) Identification card identification method and device, electronic equipment and readable storage medium
CN112788192B (en) Jewelry customization-based image processing method and device
CN109492735B (en) Two-dimensional code generation method and computer-readable storage medium
CN104184791B (en) Image effect extracts
US10304107B2 (en) Method and computer program product for creating personalized artwork
US20190231012A1 (en) Systems and methods for preparing custom clothing patterns
US11861771B2 (en) Virtual hair extension system
JP2008171248A (en) Two dimensional code preparation system
CN114170624A (en) Koi evaluation system, and device, method, program, and storage medium for implementing koi evaluation system
US9667709B2 (en) Picture conversion SNS system and method, apparatus, and terminal
US11335053B2 (en) Technologies for digitally rendering items having digital designs
JP3749977B2 (en) Jewelry remodeling simulation system, jewelry remodeling simulation program, computer-readable recording medium recording jewelry remodeling simulation program, and jewelry remodeling simulation method
US20230141916A1 (en) Systems and methods for creation of personalized artwork including words clouds
US20160328770A1 (en) Personalization of products for 3d printing
Li et al. Structure and aesthetics in non-photorealistic images.
TWI578236B (en) Method for creating a triggerable barcode icon for electronic document and transformation system thereof
Brooks Concise texture editing
CN117408899A (en) Image generation method, device and computer storage medium

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
GR01 Patent grant
GR01 Patent grant