CN116258779A - Poster making method, readable medium, electronic device and computer program product - Google Patents

Poster making method, readable medium, electronic device and computer program product Download PDF

Info

Publication number
CN116258779A
CN116258779A CN202111484875.XA CN202111484875A CN116258779A CN 116258779 A CN116258779 A CN 116258779A CN 202111484875 A CN202111484875 A CN 202111484875A CN 116258779 A CN116258779 A CN 116258779A
Authority
CN
China
Prior art keywords
color
picture
poster
colors
manufactured
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111484875.XA
Other languages
Chinese (zh)
Inventor
杜径舟
李端
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111484875.XA priority Critical patent/CN116258779A/en
Publication of CN116258779A publication Critical patent/CN116258779A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The application relates to the field of image processing, and discloses a poster manufacturing method, a readable medium, electronic equipment and a computer program product. The poster manufacturing method is used for electronic equipment and comprises the following steps: and obtaining a picture to be made. And determining color characteristic information of the picture to be manufactured, wherein the color characteristic information comprises color types and/or the duty ratio of each color type included in the picture to be manufactured. And selecting a color card meeting preset conditions according to the color characteristic information of the picture to be manufactured, wherein the preset conditions comprise a first preset number of color types in a plurality of color types contained in the color card, and the first preset number of color types are the same as the first preset number of color types contained in the picture to be manufactured. And selecting the color of at least one poster element required for generating the poster from the color types included in the selected color card, thereby ensuring that the color matching of the picture to be manufactured in the automatically generated poster is coordinated with the color matching of the background area of the poster, and improving the user experience.

Description

Poster making method, readable medium, electronic device and computer program product
Technical Field
The present application relates to the field of image processing, and in particular, to a poster making method, a readable medium, an electronic device, and a computer program product.
Background
The advertisement poster is an information display form combining images and characters. The product display device is a graphic design and can be used for demonstrating the function of the product to convey expected benefits to target audiences, so that the purpose of promoting the product is achieved. Advertising posters typically include an image and textual description of a given product, and users often need to explore various design elements (e.g., background images, decorations, text patterns) in designing the poster to find matches to the advertised product and arrange the design elements to meet aesthetic goals. This makes the design of a poster generally more time consuming.
For example, in one intelligent color scheme, a user may manually select a background color in a poster to be made, except for a picture to be made (i.e., a commodity picture), at an intelligent color interface, and select between different color results to obtain the color result of the poster. However, the color matching result obtained by manual color matching may cause that the background color matching is not coordinated with the color of the commodity image, and the user experience is poor.
For example, fig. 1A is a picture to be made, i.e., a commodity image. Fig. 1B is a poster manufactured based on the picture to be manufactured in fig. 1A, and as shown in fig. 1B, an area 01 shown by a diagonally filled portion in the poster is a background area of the poster, and a position where a commodity drawing in the poster is located is an area 02. The color option on the palette 101 may allow the user to selectively adjust the background color of the poster, but the color of the subjectively selected background portion of the user may not be coordinated with the color of the merchandise map. For example, as shown in fig. 1B, the color combination of the commodity image (i.e., the region 02) is a color combination of warmer hues such as dark red, brown, and light brown. The color matching of the background area (namely area 01) selected by the user is a color combination formed by the cool color tones of green, indigo, cyan and the like, and the color tone difference between the color matching of the background part selected by the user and the color tone of commodity color is large, so that the color of the prepared poster is uncoordinated, and the user experience is poor.
Disclosure of Invention
Embodiments of the present application provide a poster making method, a readable medium, an electronic device, and a computer program product.
In a first aspect, an embodiment of the present application provides a method for manufacturing a poster, which is used for an electronic device, and is characterized in that the method includes: and obtaining a picture to be made. And determining color characteristic information of the picture to be manufactured, wherein the color characteristic information comprises color types and/or the duty ratio of each color type included in the picture to be manufactured. And selecting a color card meeting preset conditions according to the color characteristic information of the picture to be manufactured, wherein the preset conditions comprise a first preset number of color types in a plurality of color types contained in the color card, and the first preset number of color types are the same as the first preset number of color types contained in the picture to be manufactured. And selecting the color of at least one poster element required for generating the poster from the color types included in the selected color cards.
For example, when the electronic device is used for manufacturing a poster, color cards matched with the color characteristic information of the picture to be manufactured are screened from a large number of pre-stored color cards according to the color characteristic information of the picture to be manufactured, and color combination information of a poster background area is determined based on the matched color cards. And determining the background color, decorative materials, characters and other poster elements of the poster background area according to the color combination information of the poster background area, and then combining the picture to be manufactured and the poster elements to automatically generate the poster.
For example, the picture to be made is a focus picture required to make poster propaganda, such as lipstick picture shown in fig. 1A below. It is understood that the picture to be made may be an article picture, a human body picture, a building picture, or the like. The color types of the pictures to be made in fig. 1A below may be light brown, dark red, and white, respectively. The duty cycle of each color type may be: light brown 60%, brown 27%, dark red 7%, white 6%. The color type is hereinafter referred to as color.
For example, the color chart may be: the electronic device is pre-determined based on the color composition of some reference posters, and is used for the user to make examples of some color groups for reference when the posters are manufactured. The color card carries specific color combination information and the duty ratio information of each color in the color combination. In some embodiments, the reference poster may be a past poster with a more excellent color matching. For example, as shown in fig. 2B below, the color combinations and the duty ratios in the color chart 2 may be respectively: light brown 18%, brown 14%, dark red 8%, white 29%, dark gold 27%.
It can be understood that the color cards screened by the electronic device according to the color characteristic information of the picture to be made have the same color types as the color types contained in the picture to be made, and the color combination and the proportion (i.e. the color collocation) of the color cards experience popular aesthetic tests, so that the color of the background area of the poster, which is different from the color of the picture to be made, does not have the problem of color incompatibility.
In a possible implementation of the first aspect, the method further includes: the preset conditions further include: the duty ratio of the first preset number of color types in the color card is larger than the duty ratio of the corresponding color types in the first preset number of color types in the picture to be manufactured.
For example, the first preset number may be set to 4, as shown in fig. 2B below, assuming that the light brown, dark red, and white are included in the picture 1 to be made, the ratio of the sizes of the picture 1 to be made and the poster 3 to be generated is 1:10, and since the light brown, dark red, and white in the picture 1 to be made are respectively 60%, 27%, 7%, and 6%, the light brown, dark red, and white in the picture 1 to be made are respectively 6%, 2.7%, 0.7%, and 0.6% in the poster 3 after the picture 1 to be made is placed in the poster 3. After determining the proportion of each color type of the picture 1 to be made in the poster 3, the electronic device 10-1 may screen out the pre-stored color cards including light brown, dark red and white in the picture 1 to be made according to the proportion of each color type of the picture 1 to be made in the poster 3, and the proportion of the light brown, dark red and white in the color cards is greater than the proportion of each color type of the picture 1 to be made in the poster 3. For example, as shown in fig. 2B below, the color combinations and the duty ratios in the color chart 2 may be respectively: light brown 18%, brown 14%, dark red 8%, white 29%, dark gold 27%.
In a possible implementation of the first aspect, the method further includes: the poster elements include at least one of: background color of background area, decorative material of poster and character of poster.
In a possible implementation of the first aspect, the method further includes: the first preset number of color types of the picture to be made includes a prominent color of the picture to be made, wherein the prominent color of the image to be made satisfies any one of the following conditions: the ratio of the significant color of the picture to be made is higher than the first preset color ratio. The obvious color of the picture to be manufactured comprises color types corresponding to the area where the thermodynamic value is higher than the preset value in the visual thermodynamic diagram corresponding to the picture to be manufactured, and the obvious color of the picture to be manufactured comprises a second preset number of color types included in the main body in the picture to be manufactured.
In some embodiments, the color characteristic information of the picture to be made includes a color type and/or a duty cycle of each color type included in the picture to be made. Among the plurality of color types contained in the color card, a first preset number of color types are the same as the first preset number of color types contained in the picture to be manufactured. The first preset number of color types of the picture to be made includes a prominent color of the picture to be made.
The electronic device 10-1 may screen at least one color card matching the salient color of the picture to be made according to the salient color of the picture to be made, where the salient color of the picture to be made includes at least one color. For example, the significant colors of the picture to be made are light brown and dark red, and the electronic device 10-1 may screen at least one color chart including light brown and dark red from among the pre-stored color charts.
It can be understood that the color combination of the color card is the color combination of the final poster, the electronic device 10-1 screens the color card to contain the salient color of the picture to be manufactured according to the salient color of the picture to be manufactured, and other colors in the color card are coordinated with the salient color of the picture to be manufactured, so that the color matching of the background area of the finally generated poster is more coordinated with the color matching of the picture to be manufactured, and the aesthetic requirement is met.
In a possible implementation of the first aspect, the method further includes: the color types in the picture to be made include a first color type and a second color type, wherein,
in the case that the color difference between the first color type and the second color type is smaller than the first preset color difference, the first preset number of color types includes one of the first color type or the second color type.
In case the color difference between the first color type and the second color type is larger than the second preset color difference, the first preset number of color types comprises the first color type and the second color type.
For example, the first preset color difference may be set to 30, and the color difference between the first color type and the second color type is the difference between the hue value of the first color type and the hue value of the second color type. If the difference between the hue value of the first color type and the hue value of the second color type is less than 30, the first color type and the second color type may be adjacent colors. The first preset number of color types includes one of the first color type or the second color type.
For example, the second preset color difference may be set to 30, where the color difference between the first color type and the second color type is the difference between the hue value of the first color type and the hue value of the second color type. If the difference between the hue value of the first color type and the hue value of the second color type is greater than 30, the first color type and the second color type may be different colors. The first preset number of color types includes a first color type and a second color type.
In a possible implementation of the first aspect, the method further includes: the color difference of the first color type and the second color type includes:
And determining the color difference between the first color type and the second color type according to the difference between the hue value of the first color type and the hue value of the second color type.
In a possible implementation of the first aspect, the method further includes: the proportion value of each color type in the first preset number of color types included in the picture to be manufactured is higher than the second preset color proportion value.
For example, the second preset duty ratio may be 0.5, and according to the second preset color duty ratio, 5 color types with a duty ratio greater than 0.2 in the to-be-manufactured picture may be screened out, i.e. the first preset number is 5.
In a second aspect, embodiments of the present application provide a readable medium having stored thereon instructions that, when executed on an electronic device, cause the electronic device to perform the above-described first aspect and any of the various possible implementations of the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing instructions for execution by one or more processors of the electronic device, and the processor being one of the processors of the electronic device for performing the poster making method of the first aspect and any of the various possible implementations of the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer program product comprising a computer program/instruction which, when executed by a processor, implements the above-described first aspect and any of the various possible implementations of the first aspect.
Drawings
FIG. 1A illustrates a schematic diagram of an original picture, according to some embodiments of the present application;
FIG. 1B illustrates a poster based on the picture to be made of FIG. 1A, according to some embodiments of the present application;
FIG. 2A illustrates a poster making scene graph according to some embodiments of the present application;
FIG. 2B illustrates a schematic diagram of a poster making system making a poster, according to some embodiments of the present application;
FIG. 3 illustrates a flow chart of a poster making method, according to some embodiments of the present application;
FIG. 4 illustrates a schematic diagram of the component architecture of a poster making system, according to some embodiments of the present application;
FIG. 5 illustrates a flow chart of another poster making method, according to some embodiments of the present application;
FIG. 6 illustrates a schematic diagram of filtering posters according to color specific information and/or poster style of a picture to be made, according to some embodiments of the present application;
FIG. 7 illustrates a ratio of each color of a color chart selected according to a ratio of each color in a preset number of colors with a highest ratio in a picture to be made, according to some embodiments of the present application;
FIG. 8 illustrates two decorative materials that match according to the colors remaining in the background area of the poster and the percentage of each color, according to some embodiments of the present application;
FIG. 9 is a diagram illustrating two posters generated based on a picture to be made and a poster element, according to some embodiments of the present application;
FIG. 10 is a schematic diagram illustrating a color analysis unit determining color characteristic information of a picture to be made according to some embodiments of the present application;
FIG. 11 is a schematic diagram illustrating a 24-color phase ring, according to some embodiments of the present application;
FIG. 12 illustrates a final, prominent color determined from a picture to be made, a body map contained in the picture to be made, a visual thermal profile corresponding to the picture to be made, in accordance with some embodiments of the present application;
FIG. 13 illustrates a block diagram of an electronic device, according to some embodiments of the present application;
fig. 14 illustrates a software architecture block diagram of an electronic device, according to some embodiments of the present application.
Detailed Description
Illustrative embodiments of the present application include, but are not limited to, poster making methods, readable media, and electronic devices.
Before the details of particular embodiments of the present application are disclosed in detail, terms referred to in the examples of the present application are explained herein for ease of understanding:
client side: also known as a Workstation, refers to a computer connected to a network that receives control and management of a network server and is capable of sharing various resources on the network.
Hue information: the color type color comprises a colored phase and an achromatic phase, wherein the black and white gray is the achromatic phase, and other color types are the colored phases.
The chroma saturation luminance (Hue Saturation Value, HSV) Model is a color space created from visual properties of colors, also known as the hexagonal pyramid Model (Hexcone Model). The parameters of the color in this model are respectively: hue (H), saturation (S), brightness (V). Wherein, tone H: the value range is 0-360 degrees by using angle measurement, and red, green and blue are respectively separated by 120 degrees. The complementary colors are 180 degrees apart. Saturation S: the color purity is shown, the value range is 0.0-1.0, and when s=0, only the gray scale is used. Brightness V: the brightness of the color is shown, and the value range is 0.0 (black) to 1.0 (white). The Red Green Blue (RGB) and cyan magenta yellow (Cyan Magenta Yellow, CMY) color models are both hardware-oriented, while the HSV (Hue Saturation Value, HSV) color model is user-oriented.
Red Green Blue (RGB) model: is a common color information expression which uses the brightness of the three primary colors of red, green and blue to quantitatively express the color. The model is also called additive color mixing model, and is a method for realizing color mixing by mutually overlapping RGB three-color light, so that the model is suitable for displaying luminous bodies such as a display.
Luminance a channel b channel (luminance a b, lab) color model: the Lab color model consists of three elements, one element being luminance (L), and a and b being two color channels. a includes colors ranging from dark green (low luminance value) to gray (medium luminance value) to bright pink (high luminance value). b is from bright blue (low luminance value) to gray (medium luminance value) to yellow (high luminance value). Thus, such colors, when mixed, will produce a color with a bright effect.
The cyan magenta yellow-black (cyan magenta yellow black, CMYK) color model is a color system that applies the subtractive principle. Its color derives from the reflected light. Black is produced when all colors are superimposed together and white when no color is added.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application are described in detail below with reference to fig. 1 to 14.
Fig. 2A is a diagram illustrating a poster making scene according to an embodiment of the present application. The scenario of fig. 2A includes: server 20, electronic devices 10-1 to 10-n, and user 30, wherein electronic devices 10-1 to 10-n automatically generate a poster by running a poster making system. For ease of explanation, the electronic device 10-1 is described below as an example.
As described in the background art, in some cases, when a user makes a poster on the electronic device 10-1, the user manually selects the background color in the poster, which may cause the color of the background of the poster to be made to be inconsistent with the color of a commodity picture of the poster to be made (hereinafter referred to as a picture to be made), resulting in poor quality of the poster.
For this reason, the electronic device 10-1, by executing the technical scheme of the present application, screens out a large number of color cards that match the color feature information of the picture to be made from among a pre-stored large number of color cards according to the color feature information of the picture to be made when making the poster, and determines color combination information (i.e., a combination of a plurality of color types) of the background area of the poster based on the matched color cards. And determining the background color, decorative materials, characters and other poster elements of the poster background area according to the color combination information of the poster background area, and then combining the picture to be manufactured and the poster elements to automatically generate the poster.
Wherein, the color card can be: the electronic device 10-1 composes examples of color sets that are determined in advance based on the color types of the reference posters for reference when the user makes the posters. The color card carries specific color combination information and the duty ratio information of each color in the color combination. In some embodiments, the reference poster may be a past poster with a more excellent color matching.
It can be appreciated that the poster automatically generated by the electronic device 10-1 through the technical scheme provided by the application is generated by referring to the color matching of some excellent posters, so that the color matching of the background area of the poster automatically generated by the electronic device 10-1 is coordinated with the color of the picture to be made.
In order to better understand the technical solution of the present application, taking the automatic generation of the poster 3 of the picture 1 (lipstick) to be made according to the color chart 2 shown in fig. 2B as an example, the method for making the poster provided in the embodiment of the present application is briefly described below.
In some embodiments, the electronic device 10-1 first extracts the color feature information of the picture to be made 1, and then determines the proportion of each color type in the picture to be made 1 in the poster to be generated 3 according to the proportion between the size of the picture to be made 1 and the size of the poster to be generated 3. And screening color cards 2 which contain all the color types in the picture 1 to be manufactured from the pre-stored color cards according to the determined proportion of the various color types in the picture 1 to be manufactured in the poster 3 to be generated, wherein the proportion of all the color types in the picture 1 to be manufactured in the color cards is larger than the proportion of the corresponding color types of the picture 1 to be manufactured in the poster 3. And then determining the color ratio information (namely the ratio of the color types) of the background areas except the commodity picture (picture 1 to be manufactured) in the poster 3 to be generated according to the color card 2. And then determining the background color, decorative materials, characters and other poster elements of the background area according to the color duty ratio information of the background area, thereby automatically generating the poster 3.
Specifically, for example, assuming that light brown, dark red, white are included in the picture to be made 1, the ratio of the sizes of the picture to be made 1 and the poster 3 to be generated is 1:10, since the light brown, dark red, white in the picture to be made 1 are respectively 60%, 27%, 7%, 6%, the light brown, dark red, white in the picture to be made 1 are respectively 6%, 2.7%, 0.7%, 0.6% in the poster 3 after the picture to be made 1 is placed in the poster 3. After determining the proportion of each color type of the picture 1 to be made in the poster 3, the electronic device 10-1 may screen out the pre-stored color cards including light brown, dark red and white in the picture 1 to be made according to the proportion of each color type of the picture 1 to be made in the poster 3, and the proportion of the light brown, dark red and white in the color cards is greater than the proportion of each color type of the picture 1 to be made in the poster 3. For example, as shown in fig. 2B, the color combinations and the duty ratios in the color chart 2 may be respectively: light brown 18%, brown 14%, dark red 8%, white 29%, dark gold 27%.
Then, the electronic device 10-1 determines the color combination and the color ratio (i.e., the ratio of the color types) of the background area of the poster 3 according to the color ratio in the picture 1 to be made and the color ratio in the color card 2. In some embodiments, the duty cycle of the respective colors of the background area of the poster 3 is determined by the difference between the duty cycle of the respective colors in the color card 2 and the duty cycle of the corresponding colors in the picture 1 to be made. For example, the background area of poster 3 may have a color ratio of 28.4% white, 27% deep gold, 12% light brown, 11.3% brown, 7.3% dark red. The electronic device 10-1 determines a poster element based on the color combination and the color duty cycle of the background area, the poster element including at least one of: background color, decorative material and characters. The electronic device 10-1 automatically generates the poster 3 from the picture 1 to be made and the poster elements. For example, the electronic device 10-1 may use the white having the highest color ratio among the color ratios of the background area of the poster 3 as the background color, and the remaining color ratios are used to generate the decorative material and the filler letter.
It can be seen that, the color card 2 screened by the electronic device 10-1 according to the color feature information of the picture 1 to be made, the multiple color types contained in the color card 2 are partially or completely the same as the multiple color types contained in the picture 1 to be made, and the color combination and the proportion (i.e. the color matching) of the color card 2 undergo the aesthetic examination of the public, so that the color card 2 contains the color different from the picture 1 to be made as the color of the background area of the poster 3, and the problem of color matching incompatibility does not occur.
In addition, as shown in fig. 2A, when the electronic device 10-1 runs the poster making system to make a poster, decorative materials, color cards can be obtained from the server 20. In other embodiments, the decoration materials and color cards required for the electronic device 10-1 to produce the poster may be decoration materials and color cards of the poster production system, and the decoration materials and color cards required for the electronic device 10-1 to produce the poster may be decoration materials and color cards loaded from the server 20 by the electronic device 10-1. It will be appreciated that, according to practical applications, the sources of the decoration materials, color cards, etc. required for producing the poster provided by the poster production system are not particularly limited.
In some embodiments, the poster making system running on the electronic device 10-1 may be client software installed on the electronic device 10-1 or may be a web page of the poster making system provided by the electronic device 10-1 based on a network address. When the electronic device 10-1 operates the poster making system of the web page to make a poster, the electronic device 10-1 is connected with the server 20 through a network, and obtains decoration materials, color cards and the like required for making the poster from the server 20.
In some embodiments, the electronic device 10-1 and the server 20 may be communicatively coupled via one or more networks. The network may be a wired network, or may be a Wireless network, for example, a Wireless-Fidelity (WIFI) network, bluetooth, or the like, and may be any other possible network, which is not limited in this embodiment of the present application.
In some embodiments, the electronic device 10-1 may be an electronic device having certain image processing capabilities and network communication capabilities, for example, the electronic device 10-1 may be a personal computer (personal computer, PC), a notebook computer, a laptop computer, a desktop computer, a tablet computer, a smart phone, an in-vehicle device, a smart television (otherwise known as a smart large screen, a smart screen, a large screen television, or the like), or the like. According to practical applications, the embodiment of the application does not specifically limit the electronic device.
In some embodiments, the server 20 may be an independent physical server, or may be a server cluster formed by a plurality of physical servers, or may be a server that provides basic cloud computing services such as a cloud database, cloud storage, CDN, and the like, where the scale of the server may be planned according to the number of images that need to be processed, which is not limited in the embodiments of the present application.
It can be appreciated that the poster making scene shown in fig. 2A is merely an example of a scene for implementing the embodiments of the present application, and the embodiments of the present application are not limited to the scene shown in fig. 2A. In other embodiments, the scenario illustrated in FIG. 2A may include more or fewer devices or components than the illustrated embodiment, or certain components may be combined, certain components may be split, or different component arrangements.
In the following, in conjunction with the flowchart shown in fig. 3, a detailed description will be given of a process of automatically generating a poster by the electronic device 10-1 through executing the technical scheme provided in the present application in the application scenario shown in fig. 2A.
Fig. 3 illustrates a flow chart of a poster making method, according to some embodiments of the present application. The method for producing the poster provided in the present application will be described in detail with reference to fig. 1 to 3. The main execution body of each step in the flowchart shown in fig. 3 is the electronic device 10-1, as shown in fig. 3, specifically, the method includes:
s301: and obtaining a picture to be made.
In some embodiments, the picture to be made is a focus picture required to make a poster, such as a lipstick picture as shown in fig. 1A. It is understood that the picture to be made may be an article picture, a human body picture, a building picture, or the like.
S302: determining color characteristic information of a picture to be manufactured, wherein the color characteristic information of the picture to be manufactured comprises at least one of the following: color collocation type, dominant color, color duty cycle information.
In some embodiments, the electronic device 10-1 may determine the color of each pixel of the picture to be made according to the color model, and further determine the color feature information of the picture to be made. Wherein the color model may be at least one of the following models: HSV model, RGB model, lab color model, CMYK color model. Hereinafter, the poster manufacturing process of the present application will be described using an HSV model as an example.
In some embodiments, the electronic device 10-1 performs color quantization analysis on the picture to be manufactured through the HSV model, and obtains the H value, the S value, and the V value of the color corresponding to each pixel point on the picture to be manufactured. The color analysis unit 420 may determine hue information and color duty ratio information included in the picture to be made according to the corresponding relationship between the H value, the S value, the V value and the color of each pixel, where the hue information includes hues and hues, for example, hues information of black, gray and white are hues. The hue information of red, orange, etc. is a chromatic hue. The color ratio information of the picture to be manufactured comprises the proportion of each color contained in the picture to be manufactured.
In some embodiments, the electronic device 10-1 may further determine a color matching type of the picture to be made according to the H value of each color in the picture to be made, where the color matching type of the picture to be made may be a relationship between each of the colored colors included in the picture to be made, and the relationship between each of the colored colors includes at least one of: monochromatic, homogenous, adjacent, contrasting, complementary, wherein contrasting and complementary colors may also be referred to as different colors. For example, the color matching type of the picture to be made may be a relationship between a preset number of colored colors with the highest duty ratio included in the picture to be made. Since the black and white gray is a colorless phase color, the plurality of colors mentioned in the color matching type do not include a colorless phase color.
In some embodiments, the electronic device 10-1 may further determine a salient color of the to-be-fabricated picture according to the color ratio information of the to-be-fabricated picture, where the salient color of the to-be-fabricated picture includes at least one colored color, where the salient color is a color having saliency in the to-be-fabricated picture, and when viewing the to-be-fabricated picture, a person subconsciously focuses the color of the image area.
The specific process of determining the color feature information of the picture to be made will be described in detail below, and will not be described in detail herein.
S303: and screening a color card matched with the color characteristic information of the picture to be manufactured based on the color characteristic information of the picture to be manufactured.
In some embodiments, the electronic device 10-1 may screen at least one color chart matching the color characteristic information of the picture to be made from among a plurality of color charts stored in advance. The color ratio information of the color card comprises a plurality of combinations of colors and the ratio of each color. Each color card can be used for manufacturing a poster, the combination of multiple colors of the color cards can be the color combination of the finally manufactured poster, and the proportion of each color of the color cards can also be the proportion of each color of the finally manufactured poster. It can be understood that the types of the colors of the color cards and the proportion of each color need to meet the types of the colors and the proportion of each color needed by the picture to be made and the poster elements.
In some embodiments, the pre-stored plurality of color cards may be color cards pre-stored by the electronic device 10-1 or color cards acquired by the electronic device 10-1 from the server 20. According to practical applications, the source of the color cards stored in advance is not particularly limited.
The color cards stored in advance may be color cards extracted from a large number of past excellent posters. It can be understood that the color cards extracted from a great number of past excellent posters, the color combination of each color card and the matching of the proportion of the colors are coordinated, and the aesthetic requirements of the masses are met.
In some embodiments, the color feature information of the picture to be made includes a dominant color, and the electronic device 10-1 may screen out at least one color card matching the dominant color of the picture to be made according to the dominant color of the picture to be made, where the dominant color of the picture to be made includes at least one color. For example, the significant colors of the picture to be made are light brown and dark red, and the electronic device 10-1 may screen at least one color chart including light brown and dark red from among the pre-stored color charts.
It can be understood that the color combination of the color card is the color combination of the final poster, the electronic device 10-1 screens the color card to contain the salient color of the picture to be manufactured according to the salient color of the picture to be manufactured, and other colors in the color card are coordinated with the salient color of the picture to be manufactured, so that the color matching of the background area of the finally generated poster is more coordinated with the color matching of the picture to be manufactured, and the aesthetic requirement is met.
In some embodiments, the color feature information of the picture to be made includes a color matching type, and the electronic device 10-1 may screen at least one color card matching the color matching type of the picture to be made according to the color matching type of the picture to be made. The color matching type of the picture to be manufactured comprises: and (3) the relation between any at least two colors in the color combination of the picture to be made. The color collocation types of the pictures to be made comprise single color, same color, adjacent color, contrasting color, complementary color and different colors.
Taking the preset number of colors with the highest proportion in the picture to be manufactured as an example, the color matching type of the picture to be manufactured is that the relationship between any at least two colors is adjacent colors in the preset number of colors with the highest proportion in the picture to be manufactured, and the electronic device 10-1 screens the color card containing at least one color of the at least two colors with the matching type of the picture to be manufactured as the adjacent colors according to the color matching type of the picture to be manufactured.
For example, the matching type of the picture to be manufactured is that the relationship between at least two colors is different among the preset number of colors with the highest proportion in the picture to be manufactured, and the electronic device 10-1 screens color cards containing two colors with different matching types in the picture to be manufactured according to the matching type of the picture to be manufactured.
It can be appreciated that the color combination of the color card is the color combination of the final poster, and the electronic device 10-1 screens the color card to include each of a plurality of colors with different matching types in the picture to be manufactured and/or to include at least one of a plurality of colors with adjacent matching types in the picture to be manufactured according to the matching type of the picture to be manufactured, so that the color matching of the finally generated poster is more coordinated with the color matching of the picture to be manufactured, and the aesthetic requirement is met.
In some embodiments, the color feature information of the picture to be made includes color ratio information, and at least one color card matching with the color ratio information can be screened out through the color ratio information of the picture to be made, where the color ratio information of the picture to be made includes a ratio of each color in the picture to be made in the poster. Specifically, for example, the electronic device 10-1 may screen out a color card that satisfies the proportion of each color included in the picture to be made in the poster according to the proportion of each color in the picture to be made in the poster.
It can be understood that the color combination of the color card is the color combination of the final poster, the color card screened by the electronic device 10-1 meets the duty ratio requirement of the color of the picture to be manufactured in the poster, and other colors in the color card are coordinated with each color of the picture to be manufactured, so that the color matching of the background area of the finally generated poster is more coordinated with the color matching of the picture to be manufactured.
It can be understood that the proportion of each color in the color card is the proportion of each color in the final poster, and the proportion of the colors in the color card screened by the electronic device 10-1 is greater than or equal to the proportion of the corresponding colors in the picture to be made in the poster, that is, the colors in the color card satisfy the rendering use of the picture to be made in the poster.
In other embodiments, the electronic device 10-1 may also screen out at least one color card matching the poster style according to the poster style. The electronic device 10-1 may use the style of the picture to be made as the style of the poster to be made (i.e., the poster style). For example, if the style of the picture to be made is "chinese wind", the poster style is also "chinese wind". In other embodiments, a "poster style option" may also be provided on the user interface of the electronic device 10-1, where the user may manually select the style of the poster to be produced (i.e., the poster style), e.g., a "chinese wind" option, a "national tidal wind" option, a "technological wind" option, etc., may be provided on the user interface of the electronic device 10-1, where the user may manually select "national tidal wind" as the style of the poster to be produced.
It can be understood that the color characteristic information of the picture to be made is mainly used for describing the color combination contained in the picture to be made and the proportion of each color in the picture to be made. The electronic device 10-1 screens out color cards according to the color characteristic information of the picture to be made, the colors contained in the color cards are partially or completely the same as the colors contained in the picture to be made, and because the color cards are the color cards extracted from a great number of past excellent posters, other colors in the color cards are coordinated with the colors of the picture to be made, so that the color matching of the finally generated poster background area is more coordinated with the color matching of the picture to be made, and the aesthetic requirement is met.
S304: the electronic device 10-1 determines the color ratio information of the background area of the poster according to the color ratio information of the picture to be made and the color cards selected.
In some embodiments, the color ratio information of the background area of the poster includes a ratio of each color included in the background area of the poster, and the ratio of any color included in the background area of the poster to the poster may be a difference between the ratio of the color included in the color card to the ratio of the color included in the poster to be made.
For example, the color chart S contains a color a, and the ratio of the color a to the color chart S is 0.5. The proportion of the color A in the picture to be manufactured in the poster is 0.1. The poster generated based on the color card S, the background area of the poster includes the color a, and the proportion of the color a is 0.4.
S305: determining a poster element based on color duty cycle information of a background area of the poster, the poster element including at least one of: background color, decorative material and characters.
In some embodiments, the electronic device 10-1 may determine a background color of the poster based on the color duty cycle information of the background area of the poster, and the electronic device 10-1 may select a background type (e.g., mono-color, bi-color, gradient) according to the determined background color, automatically generate the background image.
In some embodiments, each decorative material used to make the poster corresponds to a usage specification that describes the color combination for which the decorative material is applicable and the duty cycle of each color. The electronic device 10-1 may also screen the pre-stored decorative materials for the color combination of the background area and the proportion of each color in the pre-stored decorative materials according to the color ratio information of the background area.
In some embodiments, the electronic device 10-1 may also determine the color of text in the poster based on the color duty cycle information of the background area. For example, the text in the poster may be a title or the like in the poster.
For example, if the poster elements include background colors, decorative materials, the electronic device 10-1 may first determine the background color of one poster, determine the remaining color combinations and the proportion of each color based on at least one color of the color chart used by the determined background color of the poster. The electronic device 10-1 may determine a color corresponding to the decorative material of the poster according to the remaining color combinations and the proportion of each color, and match the corresponding decorative material in the decorative material library according to the color corresponding to the decorative material of the poster.
S306: and generating the poster based on the picture to be manufactured and the poster element.
As can be seen from the above poster manufacturing process, one picture to be manufactured can be matched with one or more color cards, and the electronic device 10-1 can generate a plurality of posters according to a plurality of different color cards. Moreover, the electronic device 10-1 generates different posters based on different matched poster elements based on one color chart and pictures to be made. Thus, the electronic device 10-1 may ultimately generate one or more posters. Different posters may not differ much or may differ much, for example, not only the color combinations but also the decorative materials selected for the posters may differ from one poster to another.
It will be appreciated that the electronic device 10-1 generates a poster based on the color characteristic information of the picture to be made, and the color matching of the background area in the poster is coordinated with the color matching of the picture to be made, so that the color matching of the poster is coordinated.
To describe the technical solution of the present application in more detail, the following is a logical division of the poster making system 400 installed in the electronic device 10-1 in the application scenario shown in fig. 2A with reference to fig. 4.
Fig. 4 illustrates a schematic diagram of the component architecture of a poster making system 400, according to some embodiments of the present application. The poster making system 400 includes an input unit 410, a color analysis unit 420, a color matching selection unit 430, an auxiliary element design unit 440, a poster output unit 450, a color matching library unit 460, and a material library unit 470.
The following specifically describes the components of the constituent architecture of the poster making system 400.
An input unit 410: the method is used for providing a user interface and acquiring pictures to be manufactured, poster styles, poster pictures and the like. For example, the user 30 may upload a picture to be made of the commodity on the user interface, or may select a poster style or a poster frame on the user interface.
Color analysis unit 420: the method is used for analyzing the picture to be manufactured and obtaining color characteristic information of the picture to be manufactured, wherein the color characteristic information of the picture to be manufactured comprises at least one of the following: color collocation type, dominant color, and color duty cycle information.
Color matching selection unit 430: at least one color card matched with the color characteristic information of the picture to be manufactured is selected from the color matching library unit 460 based on the color characteristic information of the picture to be manufactured.
Color matching library unit 460: the color chart storing unit 460 is configured to store a plurality of color charts, wherein the plurality of color charts stored in the color matching library unit 460 may be color charts extracted from a plurality of past excellent posters, or may be color charts preset according to user preference.
Auxiliary element design section 440: the color ratio information of the background area of the poster is calculated according to the color ratio information in the color card and the color ratio information in the commodity diagram. The auxiliary element design unit 440 is further configured to determine a poster element using color duty information of a background area of the poster, the poster element including at least one of: background color, decorative material words.
The material library unit 470: for storing a large number of decorative materials for adding to the poster, each decorative material is configured with a corresponding usage specification, and the usage specification records a color combination applicable to the decorative material and a duty ratio of each color.
The poster output unit 450: and the method is used for generating and rendering the poster based on the picture to be manufactured and the poster element, and finally outputting at least one poster.
In conjunction with the composition architecture of the poster making system 400 of fig. 4, the following describes in detail the execution process of the poster making method of the present application in the poster making system 400 through the interaction process among the input unit 410, the color analysis unit 420, the color matching selection unit 430, the auxiliary element design unit 440, the poster output unit 450, the color matching library unit 460 and the material library unit 470 of the poster making system 400.
Fig. 5 illustrates a flow chart of another poster making method, according to some embodiments of the present application. Specifically, fig. 5 shows a schematic diagram of an interaction flow between units in the poster making system 400 when the electronic device 10-1 executes the poster making method according to the embodiment of the present application. The specific process comprises the following steps:
s501: the input unit 410 acquires a picture to be made.
In some embodiments, the picture to be made is a focus picture for which poster promotion needs to be made. Specifically, the picture to be made may be an article picture, a human body picture, a building picture, or the like. The electronic device 10-1 detects an operation of uploading a picture to be produced by a user on a user interface of the poster production system 400, and in response to the operation, the input unit 410 acquires the picture to be produced. The poster operating system 400 detects relevant parameters of the picture to be manufactured based on the picture to be manufactured, and automatically generates a poster corresponding to the picture to be manufactured.
In some embodiments, the poster manufactured by the poster manufacturing system 400 of the present application may be applied to the commodity propaganda in network sales, and then the picture to be manufactured may be a commodity picture to be sold, for example, a lipstick picture in fig. 1A.
S502 the input unit 410 sends the picture to be made to the color analysis unit 420.
S503, analyzing the picture to be manufactured by the color analysis unit 420, and determining color characteristic information of the picture to be manufactured, wherein the color characteristic information of the picture to be manufactured comprises at least one of the following: color collocation type, dominant color, and color duty cycle information.
In some embodiments, the color analysis unit 420 determines color feature information of the picture to be made according to Hue (Hue, H) Value, saturation (S) Value, brightness (Value, V) Value of each pixel of the picture to be made, where the color feature information of the picture to be made includes at least one of the following: color collocation type, dominant color, color duty cycle information.
Specifically, the color analysis unit 420 performs color quantization analysis on the picture to be manufactured through the HSV model, and obtains an H value, an S value, and a V value of a color corresponding to each pixel point on the picture to be manufactured. The color analysis unit 420 may determine hue information and color duty ratio information included in the picture to be made according to the corresponding relationship between the H value, the S value, the V value and the color of each pixel, where the hue information includes a hue and a non-hue. The color ratio information includes the ratio of each color contained in the picture to be made. The color analysis unit 420 may determine a color matching type of the picture to be made according to the H value of each color of the picture to be made. The color analysis unit 420 may further determine a significant color of the picture to be made according to a ratio of each color in the picture to be made, wherein the significant color of the picture to be made includes at least one colored phase color. The specific process of determining the color feature information of the picture to be made by the color analysis unit 420 is described in detail below, and will not be described herein.
S504: the color analysis unit 420 transmits color characteristic information of a picture to be made to the color matching selection unit 430.
S505: the input unit 410 acquires a poster style.
In some embodiments, the user may operate a "poster style options" control on the user interface (e.g., select the poster style to be produced as chinese wind) via a mouse, keyboard, touch, etc., based on the poster style options provided by the user interface of the poster production system 400. The user may also input a poster style (e.g., chinese wind) on an "input" control on the user interface through a mouse, a keyboard, a touch, etc., and the electronic device 10-1 detects a selection or an input operation of the user, and in response to the operation, the input unit 410 acquires the poster style provided by the user.
In other embodiments, the poster style may be a user-provided poster style transmitted by the input unit 410. In the case where the input unit 410 cannot acquire the poster style provided by the user, the color matching selection unit 430 may also use the style of the picture to be made as the poster style.
In some embodiments, the poster style may be "chinese wind", or "national tidal wind", or "technological wind", or "stereo wind", or "paper cut wind", or the like. It will be appreciated that the specific type of poster style is not particularly limited in this application, depending on the actual application.
S506: the input unit 410 transmits the poster style to the color selection unit 430.
S507: the color matching selection unit 430 screens at least one color card matching the color characteristic information of the poster style and/or the picture to be made from the color matching library unit 460 based on the color characteristic information of the picture to be made and/or the poster style.
In some embodiments, the color matching selection unit 430 screens at least one color card from the color matching library unit 460 that matches the poster style and/or color characteristic information of the picture to be made. Wherein the color ratio information of each color card in the color matching library unit 460 includes a combination of a plurality of colors and a ratio of each color. Each color card can be used for manufacturing a poster, the combination of colors in the color cards can be the color combination of the finally manufactured poster, and the proportion of each color in the color cards can also be the proportion of each color in the finally manufactured poster. It can be understood that the color types and the duty ratio of each color of the color card need to satisfy at least the color types and the duty ratio of each color required by the pictures to be made, the poster materials and the like.
In some embodiments, a large number of color cards may be stored in the color matching library unit 460 in advance, wherein the large number of color cards stored in the color matching library unit 460 may be color cards extracted from a large number of past excellent posters.
In some embodiments, as shown in fig. 6, the color matching selection unit 430 selects at least one color card matching the color feature information of the poster style and/or the picture to be made from the color matching library unit 460 according to the color feature information of the poster style and/or the picture to be made, where the color feature information includes at least one of the following: significant color, color duty cycle information, and color collocation type. It may be appreciated that the style of the color card selected by the color selection unit 430 from the color matching library unit 460 needs to be matched with the poster style, and/or the color combination and the proportion of each color contained in the color card selected by the color selection unit 430 from the color matching library unit 460 need to be matched with the color feature information of the picture to be made.
In some embodiments, the color matching selection unit 430 may screen at least one color card matching the poster style from the color matching library unit 460 according to the poster style. For example, the poster style is "chinese wind", and the color matching selection unit 430 may screen the color chart applicable to the color chart from the color matching library unit 460.
In some embodiments, the color matching selection unit 430 may also screen at least one color card matching the color feature information of the picture to be made from the color matching library unit 460 according to the color feature information of the picture to be made sent by the color analysis unit 420. The color characteristic information of the picture to be manufactured comprises at least one of the following: significant color, color duty cycle information, and color collocation type.
Specifically, in some embodiments, the color feature information of the picture to be made includes a significant color, and the color matching selection unit 430 may screen at least one color card matching the significant color from the color matching library unit 460 according to the significant color of the picture to be made, where the significant color of the picture to be made includes at least one color. For example, the significant colors of the pictures to be made are light brown and dark red, and the color analysis unit 420 may screen out the color cards containing light brown and dark red from the color matching library unit 460.
Specifically, in some embodiments, the color feature information of the picture to be made includes a color matching type, and the color matching selection unit 430 may screen at least one color card matching the color matching type from the color matching library unit 460 according to the color matching type of the picture to be made. The color matching type of the picture to be manufactured comprises: and (3) the relation between any at least two colors in the color combination of the picture to be made. The color collocation types of the pictures to be made comprise single color, same color, adjacent color, contrasting color, complementary color and different colors.
In some embodiments, taking a preset number of colors with the highest proportion in the picture to be made as an example, the color matching types of the picture to be made include: the relationship between any at least two colors in the preset number of colors with the highest ratio in the picture to be manufactured is adjacent colors, and the color matching selection unit 430 screens out a color card containing at least one color of the at least two colors with the matching type of the adjacent colors in the picture to be manufactured according to the color matching type of the picture to be manufactured. Assuming that the preset number is 5, the color matching types of the pictures to be made include: the 5 colors with the highest proportion in the picture to be manufactured are A, B, C, D, E and A, B, C colors which are adjacent to each other, and the color matching selection unit 430 selects color cards containing at least one color of the A, B, C colors from the color matching library unit 460 according to the color matching type of the picture to be manufactured.
In other embodiments, taking a preset number of colors with the highest duty ratio in the picture to be made as an example, the color matching types of the picture to be made include: the relationship between any at least two colors in the preset number of colors with the highest ratio in the picture to be manufactured is different colors, and the color matching selection unit 430 screens color cards containing at least two colors with different matching types in the picture to be manufactured according to the color matching type of the picture to be manufactured. Assuming that the preset number is 5, the color matching types of the pictures to be made include: the 5 colors with the highest proportion in the picture to be made are A, B, C, D, E and A, B respectively, and the color matching selection unit 430 selects color cards simultaneously containing A, B two colors from the color matching library unit 460 according to the color matching type of the picture to be made.
Specifically, the color characteristic information of the picture to be manufactured comprises color ratio information, wherein the color ratio information of the picture to be manufactured comprises the ratio of each color in the picture to be manufactured in the poster. For example, the color matching selection unit 430 may screen at least one color card matching the preset number of colors with the highest duty ratio from the color matching library unit 460 according to the preset number of colors with the highest duty ratio in the color duty ratio information of the picture to be made. In the case that the color matching library unit 460 does not include the color cards of the preset number of colors with the highest proportion in the picture to be made, the color analysis unit 420 may also screen the color cards of the preset number of colors with the highest proportion in the picture to be made from the color matching library unit 460.
For example, the preset number is 5, the 5 colors with the largest proportion in the picture to be made are A, B, C, D, E, and the color matching selection unit 430 may screen the color cards simultaneously containing A, B, C, D, E five colors from the color matching library unit 460. In the case where five colors A, B, C, D, E are not simultaneously included in the color matching library unit 460, the color analysis unit 420 may also screen out color cards including any four or less than four colors in A, B, C, D, E, where the color matching selection unit 430 may preferentially screen out color cards including colors of hues. For example, A, B, C is colored and D, E is non-colored, and when color cards are selected, if no color card is simultaneously included in A, B, C, D, E, the color matching selection unit 430 may select a color card including A, B, C from the color matching library unit 460.
In other embodiments, the color selection unit 430 may further screen the proportion of each color in the preset number of colors with the highest proportion in the picture to be made from the color matching library unit 460 according to the proportion of each color in the preset number of colors with the highest proportion in the picture to be made. Specifically, the color matching selection unit 430 screens out a color card that satisfies the ratio of each color of the picture to be manufactured according to the preset ratio of the area occupied by the picture to be manufactured in the poster to the total area of the poster and the percentage occupied by each color in the picture to be manufactured.
For example, the ratio of the area occupied by the preset picture to be made in the poster to the total area of the poster is 0.1, and the preset number is set to be 4. Fig. 7 is a diagram showing the ratio of each color of the color cards selected according to the ratio of each color in the preset number of colors with the highest ratio in the picture to be made. Fig. 7 (a) shows the 4 colors with the highest ratio in the picture to be made in fig. 1A, and the percentages of the colors in the picture to be made respectively. Fig. 7 (b) shows the 4 colors with the highest proportion in the picture to be made and the percentages of the colors in the poster. Fig. 7 (c) shows the color composition of the color cards in the color matching library unit 460, and the percentage of each color in the poster.
Specifically, for example, as shown in fig. 7 (a), the 4 colors with the highest ratio in the picture to be made are respectively: light brown, dark red and white, wherein the percentages of each color in the picture to be manufactured are respectively as follows: 0.6, 0.27, 0.07, 0.06. The color selection unit 430 may determine the 4 colors with the highest ratio in the picture to be manufactured and the percentages of the 4 colors in the picture to be manufactured according to the percentage of each color in the preset number of colors with the highest ratio in the picture to be manufactured and the ratio of the preset area of the picture to be manufactured in the poster to the total area of the poster. As shown in fig. 7 (b), the light brown, dark red and white in the picture to be made respectively account for 0.06, 0.027, 0.007 and 0.006 of the poster. Therefore, the color selection unit 430 may screen out color cards including light brown, dark red, and white, and the color ratios are not less than 0.06, 0.027, 0.007, and 0.006, respectively. For example, the color matching selection unit 430 may screen out color cards as shown in fig. 7 (c) in the color matching library unit 460, where the color cards include the colors respectively: white, deep gold, light brown, brown and dark red, and the proportion of the poster is respectively as follows: 0.29, 0.27, 0.18, 0.14, 0.08. It may be understood that the color selection unit 430 filters out the color chart shown in fig. 7 (c) with a much larger duty ratio than the poster of each color in the picture to be made, for example, the color selection unit 430 filters out the color chart shown in fig. 7 (c) with a white duty ratio of 0.29 much larger than the white duty ratio of 0.006 in the picture to be made, the color selection unit 430 filters out the color chart shown in fig. 7 (c) with a light brown duty ratio of 0.18 much larger than the light brown duty ratio of 0.06 in the picture to be made, and the color selection unit 430 filters out the color chart shown in fig. 7 (c) with a light brown duty ratio of 0.14 much larger than the light brown duty ratio of 0.027 in the picture to be made.
In some embodiments, the ratio of the area occupied by the picture to be made to the total area of the poster may be determined according to a large number of past excellent posters, where the ratio of the area occupied by the picture to be made to the total area of the poster may be a value or an interval value. If the ratio of the area occupied by the preset picture to be manufactured in the poster to the total area of the poster is a section value, a group of color cards matched with the color occupancy rate information of the picture to be manufactured can be screened out according to a certain value in the section. It can be understood that, according to practical application, the ratio of the area occupied by the preset picture to be made in the poster to the total area of the poster is not particularly limited.
S508, the color matching selection unit 430 sends the selected at least one color chart to the auxiliary element design unit 440.
S509: the auxiliary element design unit 440 determines the color ratio information of the background area of the poster according to the color ratio information of the picture to be made and each color card selected, wherein the color ratio information of the background area of the poster contains a combination of a plurality of colors and the ratio occupied by each color.
In some embodiments, the color ratio information of the background area of the poster includes a combination of a plurality of colors and a ratio of each color, and the ratio of any color included in the background area of the poster to the poster may be a difference between the ratio of the color included in the color card to the ratio of the color included in the poster to be made.
For example, as shown in fig. 7 (b), the pictures to be made include light brown, dark red, and white colors, respectively, and the percentages in the poster are 0.06, 0.027, 0.007, and 0.006, respectively. As shown in fig. 7 (c), the color cards selected are white, dark gold, light brown, and dark red, and the proportions of the color cards in the poster are as follows: 0.29, 0.27, 0.18, 0.14, 0.08, the background area of the poster comprises a combination of colors including white, deep gold, light brown, dark red. The proportion of the white contained in the background area of the poster is the difference between the proportion of the white contained in the color card and the proportion of the white contained in the picture to be manufactured, namely 0.29-0.006=0.284; the proportion of the dark gold contained in the background area of the poster is the difference between the proportion of the dark gold contained in the color card and the proportion of the dark gold contained in the picture to be manufactured, namely 0.27; the light brown contained in the background area of the poster is the difference between the light brown contained in the color card and the light brown contained in the picture to be made, namely 0.18-0.06=0.12. The proportion of brown contained in the background area of the poster is the difference between the proportion of brown contained in the color card and the proportion of brown contained in the picture to be made, namely 0.14-0.027= 0.1373. The proportion of the dark red contained in the background area of the poster is the difference between the proportion of the dark red contained in the color card and the proportion of the dark red contained in the picture to be made, namely 0.08-0.007=0.073.
S510: the auxiliary element design unit 440 determines a poster element based on the color duty information of the background area, the poster element including at least one of: background color, decorative material and characters.
In some embodiments, the color duty ratio information of the background area includes a combination of a plurality of colors and a ratio of each color, and the auxiliary element design unit 440 may use one or two colors having the highest duty ratio as the background color of the background area.
For example, the combination of colors included in the background area of the poster includes white, dark gold, light brown, and dark red, and the ratios thereof are 0.284, 0.27, 0.12, 0.1373, and 0.073, respectively, and the auxiliary element design unit 440 may determine white as the background color of the background area, or may use the white and dark gold together as the background color of the background area. For example, after the auxiliary element design unit 440 determines the background color of the background area of the poster with white as the background color of the background area, the remaining colors of the background area of the poster are combined to be dark gold, light brown, and dark red except for the background color, and the ratio of each corresponding color is 0.27, 0.12, 0.1373, and 0.073, respectively.
In some embodiments, in the material library unit 470, each decorative material is configured with a corresponding usage specification, and the usage specification describes a color combination applicable to the decorative material and a duty ratio of each color. The auxiliary element design unit 440 may generate the poster by matching the decorative material in the material library unit 470 according to the remaining color combinations of the background area of the poster and the ratio of each color, wherein the remaining color combinations of the background area of the poster and the ratio of each color may be the color combinations of the background color excluding the background area and the ratio of the colors thereof and the ratio of each color thereof.
For example, after the auxiliary element design unit 440 determines the background color of the background area, the remaining colors of the background area of the poster are combined to be dark gold, light brown, and dark red, and the corresponding proportion of each color is 0.27, 0.12, 0.1373, and 0.073, respectively. The auxiliary element design unit 440 matches the decorative material in the material library unit 470 according to the combination of the colors remaining in the background area of the poster and the proportion of each color.
Illustratively, fig. 8 shows two decorative materials that match according to the remaining colors of the background area of the poster and the percentage of each color, according to some embodiments of the present application. Fig. 8 (a) shows the remaining colors of the background area of the poster and the percentage of each color. Fig. 8 (b) is a color combination of the decorative material and the percentage of each color matched according to the remaining colors and the percentage of each color of the background area of the poster. Fig. 8 (c) shows two decorative materials corresponding to the matched color combinations and the percentages of each color. As shown in fig. 8 (a), the remaining colors of the background area of the poster are combined to be dark gold, light brown, brown and dark red, and the corresponding proportion of each color is 0.27, 0.12, 0.1373 and 0.073 respectively, wherein the percentages of the dark gold, light brown and brown colors are respectively. According to the color combinations and the duty ratio of each color of fig. 8 (a), the color combinations and the duty ratios of each color of fig. 8 (b) are matched in the material library, and as shown in fig. 8 (b), the color combinations of the matched decorative materials are respectively dark gold, light brown and brown, and the corresponding proportion of each color is respectively 0.18, 0.1 and 0.08. The two kinds of decorative materials corresponding to the color combinations of fig. 8 (b) and the duty ratio of each color are shown in fig. 8 (c). It will be appreciated that the two decorative materials of fig. 8 (c) may be used as the decorative material of fig. 1 (a) to be imaged to generate a poster.
It can be appreciated that the same color percentage combination can meet the use specifications of a plurality of decorative materials, so that one decorative material can be selected and a plurality of decorative materials can be used. On the basis of the enough residual color, different decorative materials can be freely combined, each combination corresponds to one poster, so that the posters with rich designs can be obtained, and the different posters have enough difference.
In some embodiments, the differences between different posters obtained by different color cards are not limited to differences in color, but also differences in content elements of the posters, including but not limited to: decoration materials and characters. The differences in content elements include changes in element types and changes in element positions. For example, different decorative materials are selected, or the same decorative material is placed at different positions due to different use proportions.
In some embodiments, the poster generation system 400 may set rules when using decorative materials in combination, for example, the decorative materials of a general poster should not be too much, otherwise would be easily appear cluttered, and the number of materials used may be defined to be at least 1 and at most 4.
Further, the auxiliary element design unit 440 determines the remaining color combinations and the percentages of the colors according to the selected background color and the decorative material. For example, the auxiliary element design unit 440 matches the color combination of the decorative material of fig. 8 (b) and the percentage of each color, and matches the two materials of fig. 8 (c) in the material library unit 470 according to the color combination of the matched decorative material and the percentage of each color. The auxiliary element design unit 440 determines two materials of fig. 8 (c) as the decorative materials of the background area of the poster, and the remaining color combinations and the percentages of the colors of the background area are the used color combinations and the percentages of each color excluding the background color and the decorative materials. For example, the remaining color combinations and percentages of the colors of the background area include: dark gold, light brown, dark red, and the corresponding ratios of each color are 0.09, 0.02, 0.0573, 0.073, respectively, i.e., the color ratio in fig. 8 (a) minus the color ratio in fig. 8 (b).
Further, the color combination and the percentage of the color remaining by the auxiliary element design unit 440 determine the color of the text in the poster. For example, there may be text in the poster, such as a title. Before determining the color of the text, the poster making system 400 first determines the size of the area occupied by the text in the poster, then determines the type of the text (mono-color, bi-color, gradient), and calculates the color of the text according to the size of the area occupied by the text in the poster and the remaining percentage of each color.
S511: the auxiliary element design unit 440 transmits the poster element to the poster output unit 450, generating a poster.
S512: the poster output unit 450 acquires a picture to be made from the input unit 410.
S513: the poster output unit 450 generates a poster based on the picture to be made and the poster elements.
In some embodiments, the poster output unit 450 generates a poster based on the picture to be made and the poster elements. Fig. 9 is a diagram showing two posters generated based on a picture to be made and a poster element according to an embodiment of the present application, wherein fig. 9 (a) and fig. 9 (b) are each a poster generated based on two decorative materials in fig. 8 (c). As shown in fig. 9, the auxiliary element design unit 440 generates two different posters by changing the colors and positions of the characters according to the selected decorative materials.
It will be appreciated that a picture to be made may match one or more color cards. Based on one color card and pictures to be made, the generated posters are different due to the different decorative materials in the matched poster elements. Thus, the poster making system 400 may ultimately generate one or more posters. And the difference between different posters is larger, so that not only can the color combination be different, but also the decorative materials selected for the posters can be different.
Next, the color analysis unit 420 in step S503 in fig. 5 analyzes the picture to be produced, and determines the content of the color feature information of the picture to be produced in detail with reference to fig. 10.
Fig. 10 is a flowchart illustrating a process of determining color feature information of a picture to be made by the color analysis unit 420 according to an embodiment of the present application, where the specific process includes:
s1001: the color analysis unit 420 performs color quantization analysis on the picture to be manufactured through the HSV model, and obtains an H value, an S value and a V value of the color corresponding to each pixel point on the picture to be manufactured.
In some embodiments, the color analysis unit 420 may extract the picture to be made into HSV space to obtain the H value, S value, and V value of each pixel. The color analysis unit 420 may further obtain a red (R) value, a green (G) value, a blue (B) value of each pixel of the picture to be made, and determine an H value, an S value, and a V value of each pixel of the picture to be made based on an algorithm for converting the RGB model into the HSV model.
In the HSV model, the value of H is measured by an angle, the value range is 0-360 degrees, the H value is used for expressing the purity degree of the color, and the value range is 0.0-1.0. The V value is used for representing the brightness of the color, and the range of the V value is 0.0-1.0. To facilitate other units of the poster making system 400 to run the OPENCV function library to automatically design the poster, the color analysis unit 420 may convert the H value, the S value, and the V value to be within 255, specifically, the conversion formula of the H value refers to formula (1), the conversion formula of the S value refers to formula (2), and the conversion formula of the V value refers to formula (3).
H=h*360/180 (1)
S=s*1/255 (2)
V=v*1/255 (3)
Wherein H, S, V is the value of HSV model, h, s, v are the digitized values identified by computer in OPENCV. The following examples of the H value, S value, and V value are digitized values recognized by a computer in the pecv.
S1002: the color analysis unit 420 determines hue information and color duty ratio information included in the picture to be made according to the corresponding relationship between the H value, the S value, the V value and the hue of each pixel point, wherein the hue information includes a hued phase and a non-hued phase. The color ratio information includes the ratio of each color in the picture to be made.
In some embodiments, the hue information includes a hued, non-hued, wherein black, white, gray is non-hued and the other colors are hued, e.g., red, orange, etc. When the color analysis unit 420 identifies the color, the hue information of each pixel point of the picture to be made is determined according to the correspondence relationship between the hue value, the saturation value, the brightness value and the hue of each pixel point in the initial image.
In some embodiments, after the hue information of all the pixels of the picture to be made is determined, it may be determined that several colors (i.e., the number of color types) and the duty ratio information of the colors (the percentage is calculated according to the ratio of the number of pixels of each color to the total pixels) are included in the picture to be made. For example, based on the picture to be made shown in fig. 1 (a), the 4 colors with the highest duty ratio are respectively: the light brown, dark red and white, and the corresponding percentages of each color in the picture to be manufactured are respectively as follows: 0.6, 0.27, 0.07, 0.06.
In some embodiments, the colored colors may include 7 colors, red, orange, yellow, green, cyan, blue, and violet, respectively, depending on the significant differences in colors. The correspondence between hue value, saturation value, brightness value and hue is referred to in tables 1-1 and 1-2.
TABLE 1-1
Figure BDA0003397153400000181
TABLE 1-2
Figure BDA0003397153400000182
For example, as is clear from the second column in Table 1-1, the range of H values for black is 0 to 180 degrees, and the range of S values for black is 0 to 255, and the range of S values for black is 0 to 46. As is clear from the third column in table 1-1, the range of H values corresponding to gray is 0 ° to 180 °, the range of S values corresponding to gray is 0 to 43, and the range of S values corresponding to gray is 46 to 220. As is clear from the fourth column in table 1-1, the range of H values for white is 0 ° to 180 °, and the range of S values for white is 0 to 30, and the range of S values for white is 221 to 255. As is clear from the fifth column in table 1-1, the range of H values corresponding to red is 0 ° to 10 ° or 156 ° to 180 °, and the range of S values corresponding to red is 43 to 255, and the range of S values corresponding to red is 46 to 255. Similarly, the ranges of H, S, and V values corresponding to orange, yellow, green, cyan, blue, and violet are not described in detail.
For example, the color analysis unit 420 detects that the H value, S value, and V value of a certain pixel in the initial image shown in fig. 1A are 5 °, 244, and 185, respectively, and as can be seen from tables 1-1 and 1-2, the hue information of the pixel is colored, and the specific color is red.
As is clear from tables 1-1 and 1-2, the ranges of H values in red, orange, yellow, green, cyan, blue and purple are different, and the ranges of S values and V values are the same. It will be appreciated that from the H value of a pixel point, it is possible to determine which color of the colored phase the pixel specifically corresponds to.
The above tables 1-1 and 1-2 provide correspondence between 7 colors (i.e., common colors) that are relatively easy to distinguish and H, S, and V values, mainly based on the significant differences in colors. However, in practical applications, the color of 7 hues is far from satisfying the color design required for poster design, and the hue information in the picture to be made is far finer than the 7 colors. Thus, the color classes may be further subdivided into more hues (e.g., green may be decomposed into three hues of light green, medium green, dark green in more detail), in which case, tables 1-1 and 1-2 above will be further subdivided, e.g., the hues may be divided into 24 colors, and a specific hue division may determine the colors according to the distribution of the H value of each pixel point over the hue circle.
Fig. 11 is a schematic diagram showing 24 color phase rings according to an embodiment of the present application, and as shown in fig. 11, the primary hues of the ostwald color system are yellow, orange, red, violet, blue-green, and yellow-green, and 8 main hues, and each primary hue is divided into 3 parts, so that 24 divided color phase rings are formed, and the color rings are arranged from No. 1 to No. 24. Two hues separated from each other by twelve color numbers or 90 degrees in a 24-hue circle are both complementary color relationships. The color set with the complementary color combination is the color set with the strongest contrast. So that human vision is irritative and unstable. The adjacent color numbers or two hues separated by 15 degrees are the same color contrast, and the hue sense is simple, soft, uniform and tends to be consistent. As can be seen from fig. 11, each color in the 24-color circle corresponds to a range of H values. For example, the positive red color has an H value in the range of 0 ° to 5 ° or 176 ° to 180 °.
For example, taking the picture to be produced shown in fig. 1 (a) as an example, the hue information and the color ratio information of the picture to be produced are specifically shown in the following table 2 according to the colors divided by the range of the H value of the 24-hue ring.
TABLE 2
Figure BDA0003397153400000191
As can be seen from table 2, the hue information of the picture to be produced shown in fig. 1 (a) includes a colored hue and a non-colored hue. The color duty ratio information of the picture to be made shown in fig. 1 (a) includes: the proportion of light brown in the picture to be made is 0.27, the proportion of dark red in the picture to be made is 0.07, and the proportion of white in the picture to be made is 0.06.
S1003: the color analysis unit 420 determines a color matching type of the picture to be manufactured according to the H value of each color in the picture to be manufactured, where the color matching type of the picture to be manufactured includes: the collocation type of a first preset number of colors in the picture to be manufactured.
In some embodiments, the color analysis unit 420 may determine a color matching type of the picture to be made according to the H value of each color in the picture to be made, where the color matching type of the picture to be made includes: the collocation type of a first preset number of colors in the picture to be manufactured. The collocation types of the preset number of colors in the picture to be manufactured are as follows: and (3) the relation between the colors with hue in the preset number of colors in the picture to be manufactured. The collocation types of the preset number of colors in the picture to be made can comprise at least one of the following: single color, homogeneous color, adjacent color, contrasting color, and complementary color contrasting color. Wherein the complementary colors are also referred to as different colors. Since the black and white gray is a color having no hue, it is not among colors for determining the color matching type.
In some embodiments, the color analysis unit 420 determines the preset number of colors with the highest duty ratio in the picture to be fabricated according to the color duty ratio information of the picture to be fabricated determined in step S1002, and the color analysis unit 420 determines the color matching type of the picture to be fabricated according to the relationship between the colored colors (except for black, white and gray) in the preset number of colors with the highest duty ratio in the picture to be fabricated. Specifically, monochrome refers to the same color of H value (S, V value may be different). The same color means a color having different H values from 0 to 7.5. Adjacent colors refer to colors having H values differing by 7.5 to 30. The contrasting color means that the H values differ by 60 to 75, the complementary color means that the H values differ by 90, and the different colors means that the H values of the two colors differ by more than 30. Wherein, the H values used for determining the relationship between different colors refer to the values identified by a computer, and in the HSV model, the H values are 2, that is, in the HSV model, the H values of the same kind of colors are within 15 ° and the H values of adjacent colors are between 15 ° and 60 °, so that the contrasting colors and the complementary colors are the same. Hereinafter, unless specifically stated to be in the HSV model, all refer to the computer-recognized H, S, and V values in OPENCV.
In some embodiments, the color analysis unit 420 determines the color matching type of the picture to be made according to the H value of the preset number of colors with the highest ratio in the picture to be made, where the color matching type of the picture to be made includes: the collocation types of the preset number of colors in the picture to be manufactured. The collocation type of the preset number of colors in the picture to be manufactured comprises at least one of the following: single color, homogeneous color, adjacent color, contrasting color, and complementary color. Wherein the contrasting colors and the complementary colors are also called different colors. Tables 3-1 to 3-5 mainly enumerate 17 criteria for color matching types of different colors or adjacent colors, wherein the preset number with the highest duty ratio is 5. The method comprises the following steps:
TABLE 3-1
Figure BDA0003397153400000201
As shown in table 3-1, if the colors with the largest proportion in the pictures to be made are colorless (i.e. black, white and gray), the matching type of the pictures to be made is colorless. And if the color with the largest proportion in the picture to be manufactured is a colored phase and the proportion is more than 50%, and the rest colors of the picture to be manufactured are colorless phase colors, the color matching type of the picture to be manufactured is colorless phase and the color with the highest proportion is obvious color. As shown in the fourth column, if the color with the largest proportion in the picture to be made is a colored phase and the proportion is not more than 50%, the rest colors of the picture to be made are all colorless phases, the color matching type of the picture to be made is colorless phases, and the color with the highest proportion is non-obvious color.
TABLE 3-2
Figure BDA0003397153400000202
As shown in table 3-2, if the two colors with the largest proportion in the picture to be made are each colored colors, the two colors are adjacent colors, and the other colors in the picture to be made are each colorless colors, the color matching type of the picture to be made is that the 2 colors are adjacent colors. And if the two colors with the largest proportion in the picture to be manufactured are colored colors and are different colors, and the other colors in the picture to be manufactured are colorless colors, the color matching type of the picture to be manufactured is that 2 colors are adjacent colors.
TABLE 3-3
Figure BDA0003397153400000203
As shown in table 3-3, if the three colors with the largest proportion in the picture to be made are all colored colors, the three colors are different colors, and the other colors in the picture to be made are all colorless colors, the color matching type of the picture to be made is that the three colors are different colors. As shown in the third column, if the three colors with the largest proportion in the picture to be made are all colored colors, the three colors are adjacent colors, and the other colors in the picture to be made are all colorless colors, the color matching type of the picture to be made is that the three colors are adjacent colors. If the three colors with the largest proportion in the picture to be made are all colored colors, and the two colors are adjacent colors, the relationship between one color and the other two colors is different colors, and the other colors in the picture to be made are all colorless colors, the color matching type of the picture to be made is that the two colors are adjacent colors, and one color is different from the other two colors.
Tables 3 to 4
Figure BDA0003397153400000211
As shown in tables 3-4, if the four colors with the largest proportion in the picture to be made are all colored colors, the four colors are different colors, and the other colors in the picture to be made are all colorless colors, the color matching type of the picture to be made is that the four colors are different colors. As shown in the third column, if the four colors with the largest proportion in the picture to be made are all colored colors, the four colors are adjacent colors, and the other colors in the picture to be made are all colorless colors, the color matching type of the picture to be made is that the four colors are adjacent colors. As shown in the fourth column, if the four colors with the largest proportion in the picture to be made are all colored colors, and the two colors are adjacent colors, the two colors are different colors, and the other colors in the picture to be made are colorless colors, the two colors are adjacent colors, and the two colors are different colors. As shown in the fifth column, if four colors with the largest proportion in the picture to be made are all colored colors, among the four colored colors with the largest proportion in the picture to be made, three colors are adjacent colors, the relationship between one color and the other three colors is different colors, and the other colors in the picture to be made are all colorless colors, the color matching type of the picture to be made is that the three colors are adjacent colors, and one color is colorless relative to the other three colors.
Tables 3 to 5
Figure BDA0003397153400000212
As shown in tables 3-5, if the five colors with the largest proportion in the picture to be made are all colored colors and the five colors are different colors, the color matching type of the picture to be made is that the five colors are different colors. As shown in the third column, if the five colors with the largest proportion in the picture to be made are all colored colors and the five colors are adjacent colors, the color matching type of the picture to be made is that the five colors are adjacent colors. As shown in the fifth column, if the five colors with the largest proportion in the picture to be made are all colored colors, two colors are adjacent colors, and three colors are different colors, the color matching type of the picture to be made is that the two colors are adjacent colors, and the three colors are different colors. As shown in the fifth column, if the five colors with the largest proportion in the picture to be made are all colored colors, two colors of the five colored colors with the largest proportion in the picture to be made are different colors, and three colors are adjacent colors, the color matching type of the picture to be made is that 3 colors are adjacent colors, and 2 colors are different colors. As shown in the sixth column, if the five colors with the largest proportion in the picture to be made are all colored colors, and four colors are adjacent colors, wherein the relationship between one color and the other four colors is different colors, the color matching type of the picture to be made is that the 4 colors are adjacent colors, and the 1 color is different from the other 4 colors.
S1004: the color analysis unit 420 determines a significant color of the picture to be made according to the color ratio information of the picture to be made, wherein the significant color of the picture to be made includes at least one colored color.
In some embodiments, the color analysis unit 420 determines that the second preset number of colored colors with the highest duty ratio are dominant colors according to the color duty ratio information of the picture to be made. If the types of the hue colors included in the pixel points with the hue are less than the second preset number, the color analysis unit 420 determines that the hue colors included in the pixel points with the hue are all significant colors.
For example, taking the picture to be made as shown in fig. 1 (a) as an example, the two hued colors with the largest proportion in the pixel points with the hues of the picture to be made are respectively light brown and brown, and the proportion in the pixel points with the hues of the picture to be made with the two colors is respectively: 0.638 and 0.287, the light brown and brown are the obvious colors of the pictures to be made shown in fig. 1 (a). If the second preset number is set to 5, taking the picture to be made as shown in fig. 1 (a) as an example, in the pixel points with the hues of the picture to be made, the three hues with the largest proportion are light brown, brown and dark red, and the proportion of the pixel points with the hues of the picture to be made with the three colors is as follows: 0.638, 0.287, 0.075, light brown, brown and dark red are the prominent colors of the picture to be made shown in fig. 1 (a).
It will be appreciated that, according to the color ratio information of the picture to be made, the color analysis unit 420 determines that the second preset number of colored colors with the highest ratio are all significant colors, according to the significant colors determined by the method, the significant colors may appear to be the background colors of the picture to be made, and the significant colors are the prominent colors of the commodity body (such as the lipstick of fig. 1 (a)), so that the user does not expect to pay excessive attention to the background colors according to the user experience, and therefore, for the subsequent selection of the color cards, the significant colors may be selected among the colors of the commodity body.
In other embodiments, the color analysis unit 420 may further segment the picture to be fabricated to obtain at least one subject. The color analysis unit 420 determines, as a salient color candidate region, a second predetermined number of hues having the highest duty ratio among the hued pixels of the salient color candidate region, with the region where at least one subject is located as the salient color. If the types of the hues included in the hued pixels of the significant color candidate region are less than the second preset number of types, the color analysis unit 420 determines that the hued colors included in the hued pixels of the significant color candidate region are significant colors. The main body in the picture to be manufactured is an object included in the picture to be manufactured, the object can be a target object for manufacturing a poster, for example, the picture to be manufactured includes a table and a chair, and after the main body is divided, two main bodies are obtained, namely the table and the chair. In the picture to be made of fig. 1A, the main body is a lipstick and a lipstick cover.
In other embodiments, the color analysis unit 420 may further generate a visual thermal distribution diagram corresponding to the picture to be made through a pre-trained neural network model, and determine, according to the thermal index value of the visual thermal distribution diagram, the pixel points with the thermal index value greater than the preset value as the significant color candidate region, and determine, among the pixel points with the hues in the significant color candidate region, a second preset number of hues with the highest duty ratio as the significant colors. If the types of the hues included in the hued pixels of the significant color candidate region are less than the second preset number of types, the color analysis unit 420 determines that the hues included in the hued pixels of the significant color candidate region are significant colors.
In some embodiments, the neural network model used to generate the visual thermal profile corresponding to the picture to be made may be a neural network model trained based on visual thermodynamic diagram data of a large number of users when viewing images, through which the color analysis unit 420 may generate the visual thermal profile corresponding to the picture to be made.
In other embodiments, fig. 12 illustrates a final dominant color determined from a picture to be made, a body diagram included in the picture to be made, and a visual thermal profile corresponding to the picture to be made, according to an embodiment of the present application. As shown in fig. 12, the color analysis unit 420 may further determine the first significant color, the second significant color, and the third significant color according to the picture to be made, the main body diagram included in the picture to be made, and the visual thermal distribution diagram corresponding to the picture to be made, and then perform weighted calculation on the colors included in the first significant color, the second significant color, and the third significant color, to determine the second preset number of colored colors with the highest duty ratio as the final significant color. It can be appreciated that the specific content of the color analysis unit 420 for identifying the first significant color, the second significant color and the third significant color according to the picture to be made, the main body diagram included in the picture to be made, and the visual thermal distribution diagram corresponding to the picture to be made is referred to the above description, and will not be repeated herein.
Wherein, in the case where the hue categories included in the first significant color, the second significant color, and the third significant color are less than the second preset number of categories, the color analysis unit 420 determines that the final significant color is a hue included in the first significant color, the second significant color, and the third significant color.
For example, the second preset number is set to 5, the first significant color is set to weight 0.2, the second significant color is set to weight 0.4, and the third significant color is set to weight 0.4. Taking the picture to be made as shown in fig. 1 (a) as an example, the color analysis unit 420 determines a first significant color according to the picture to be made, wherein, among the pixel points with hues of the picture to be made, only three hues with the largest proportion are respectively light brown, brown and dark red, and the proportion of the pixel points with hues of the picture to be made with three colors is respectively: 0.638, 0.287, 0.075, light brown, and dark red are the first distinct colors. The color analysis unit 420 determines a second significant color according to the main image included in the to-be-made picture, wherein, in the pixel points with hues of the main image included in the to-be-made picture, only two hues with the largest proportion are respectively brown and dark red, and the proportion of the pixel points with hues of the to-be-made picture with the two colors is respectively: 0.793, 0.207. The color analysis unit 420 determines a third significant color according to the visual thermal distribution diagram corresponding to the picture to be made, wherein, among the colored pixels of the visual thermal distribution diagram corresponding to the picture to be made, only three colored colors with the largest proportion are light brown, brown and dark red respectively, and the proportion of the three colors in the colored pixels of the visual thermal distribution diagram corresponding to the picture to be made is as follows: 0.3, 0.5, 0.2. The color analysis unit 420 performs a weight calculation on the colors included in the first significant color, the second significant color, and the third significant color based on the weight of the first significant color set being 0.2, the weight of the second significant color set being 0.4, and the weight of the third significant color set being 0.4, and determines that the colored colors with the highest duty ratio are only three, i.e., light brown, and dark red, and the duty ratios of the light brown, and dark red after the weight are 0.2476, 0.5746, and 0.1778, respectively.
It will be appreciated that the sequence of the steps described in fig. 10 may be adjusted according to the actual situation, and is not limited to the sequence shown in fig. 10, for example, step S1003 and step S1004 may be performed simultaneously, for example, the color analysis unit 420 may determine the color matching type of the picture to be made and the dominant color of the picture to be made simultaneously. It will be appreciated that, according to practical applications, the execution sequence of the process of determining the color feature information of the picture to be made by the color analysis unit 420 of fig. 10 is not particularly limited.
Fig. 13 shows a block diagram of an electronic device 10-1 or an electronic device 10-n, according to an embodiment of the present application.
The electronic device 10-1 is capable of executing the poster making method provided by the embodiments of the present application. In fig. 13, similar parts have the same reference numerals. Specifically, as shown in fig. 13, the electronic device 10-1 may include a processor 201, a memory 202, a wireless communication processing module 203, a power switch 204, a wired LAN communication processing module 205, a display screen 206, and an audio module 207. Wherein:
the processor 201 may be used to read and execute computer readable instructions. In a specific implementation, the processor 201 may mainly include a controller, an operator, and a register. The controller is mainly responsible for instruction decoding and sending out control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, logic operations, and the like, and may also perform address operations and conversions. The register is mainly responsible for storing register operands, intermediate operation results and the like temporarily stored in the instruction execution process. In a specific implementation, the hardware architecture of the processor 201 may be an Application Specific Integrated Circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, an NP architecture, or the like.
In some embodiments, the processor 201 may be configured to parse signals obtained by the wireless communication processing module 203 or the wired LAN communication processing module 20, for example, to obtain color cards or decorative materials required for producing a poster from the server 20. For example, the processor 201 may screen out of the acquired color cards a color card matching the color feature information of the original picture according to the color feature information of the original picture. The processor 201 may also screen out the obtained decorative material from the decorative material according to the color duty information of the background area of the poster, the decorative material matching the color duty information of the background area.
Memory 202 is coupled to processor 201 for storing various software programs and/or sets of instructions. In particular implementations, memory 202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 202 may store an operating system, such as an embedded operating system, for example uCOS, vxWorks, RTLinux. Memory 202 may also store communication programs that may be used to communicate with electronic device 10-1, one or more servers, or additional devices.
The power switch 204 may be used to control the power supply to power the various components of the electronic device 10-1.
The wired LAN communication processing module 205 may be used to communicate with other devices in the same LAN through a wired LAN, and may also be used to connect to a WAN through a wired LAN, and may communicate with devices in the WAN.
The display 206 may be used to display images, video, etc. The display 206 may be a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED) display, an active-matrix organic light emitting diode (AMOLED) display, a flexible light-emitting diode (FLED) display, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) display, or the like. It is to be appreciated that the user interface of the poster making system 400 can be displayed on the display screen 206.
The audio module 210 is operable to output audio signals via an audio output interface, which may enable the electronic device 10-1 to support audio playback. The audio module may also be used to receive audio data through the audio input interface. Audio module 207 includes, but is not limited to: microphones, speakers, receivers, etc.
It is to be understood that the structure illustrated in fig. 13 does not constitute a specific limitation on the electronic device 10-1. In other embodiments of the present application, the electronic device 10-1 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
FIG. 14 illustrates a software architecture block diagram of an electronic device 10-1, according to an embodiment of the present application.
In some embodiments, the software architecture of the electronic device 10-1 is, from top to bottom, an application layer, a framework layer, a core library layer, and a driver layer, respectively.
As shown in fig. 14, the driver layer may include, but is not limited to, a CPU driver, a GPU driver, a display controller driver, and the like. Above the driver layer is a core library layer, which is a core part of the operating system, including but not limited to input/output services, graphics services implementing CPU, GPU graphics processing, and the like. Graphics services may include, but are not limited to, 2D engines, 3D engines, frame buffers (Frame buffers), openGL, EGL, and the like. The framework layer includes, but is not limited to, graphics services, system services, web services, user services, and the like. Graphics services may include, but are not limited to, canvas, views, and the like. The application layers include, but are not limited to, desktops, media players, poster making systems 400, and the like.
In some embodiments, the poster making system 400 may transmit the color card, the picture to be made, the decoration material, etc. to the frame layer, and apply for the canvas of the drawing layer to the system at the frame layer according to the color card, the picture to be made, the decoration material, etc., wherein the size of the canvas is determined according to the width and height parameters of the drawing layer to be drawn contained in the drawing information. The system application calls the canvas for which the layer memory allocation unit allocates a canvas for drawing the layer. And simultaneously, the drawing information is acquired and transmitted to a rendering driver of a core library layer, and the rendering driver is used for enabling the rendering driver to drive a drawing engine to call an OpenGL or an EGL drawing layer based on the color card, the picture to be manufactured and the decoration material, so that image drawing of a desktop application window of the android application is completed. Wherein the drawing engine comprises a drawing engine of a graphics processor GPU, including a 2D drawing engine, a 3D drawing engine, and the like.
For example, in some embodiments, the poster making system 400 generates primitive information, primitive coordinates, etc. for making a poster based on the size of the poster and the size of the original picture. Wherein, the graphic element is the most basic material used by graphic software for operating and organizing pictures, one picture is composed of graphic elements, and the graphic elements are the simplest and most common set of graphics or characters, such as points, line segments, triangles, polygons and the like.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the present application may be implemented as a computer program or program code that is executed on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (Digital Signal Processor, DSP), microcontroller, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Program code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy diskettes, optical disks, read-Only memories (CD-ROMs), magneto-optical disks, read Only Memories (ROMs), random access memories (Random Access Memory, RAMs), erasable programmable Read-Only memories (Erasable Programmable Read Only Memory, EPROMs), electrically erasable programmable Read-Only memories (Electrically Erasable Programmable Read-Only memories, EEPROMs), magnetic or optical cards, flash Memory, or tangible machine-readable Memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) using the internet in an electrical, optical, acoustical or other form of propagated signal. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (10)

1. A poster making method for an electronic device, comprising:
acquiring a picture to be manufactured;
determining color characteristic information of the picture to be manufactured, wherein the color characteristic information comprises color types and/or the duty ratio of each color type included in the picture to be manufactured;
selecting a color card meeting preset conditions according to the color characteristic information of the picture to be manufactured, wherein the preset conditions comprise a first preset number of color types in a plurality of color types contained in the color card, and the first preset number of color types are the same as the first preset number of color types contained in the picture to be manufactured;
and selecting the color of at least one poster element required for generating the poster from the color types included in the selected color cards.
2. The method of claim 1, wherein the preset conditions further comprise:
the duty ratio of the first preset number of color types in the color card is larger than the duty ratio of the corresponding color types in the first preset number of color types in the picture to be manufactured.
3. The method of claim 1, wherein the poster elements include at least one of: background color of background area, decorative material of poster and character of poster.
4. The method of claim 1, wherein the first preset number of color types of the picture to be made comprises a prominent color of the picture to be made, wherein the prominent color of the image to be made satisfies any one of the following conditions:
the ratio of the significant color of the picture to be manufactured is higher than the first preset color ratio;
the obvious color of the picture to be manufactured comprises a color type corresponding to an area where a thermodynamic value is higher than a preset value in the visual thermodynamic diagram corresponding to the picture to be manufactured;
the salient colors of the picture to be made comprise a second preset number of color types included in the main body in the picture to be made.
5. The method of claim 1, wherein the color types in the picture to be made include a first color type and a second color type, wherein,
in the case that the color difference between the first color type and the second color type is smaller than a first preset color difference, the first preset number of color types includes one of the first color type or the second color type;
In the case that the color difference between the first color type and the second color type is greater than a second preset color difference, the first preset number of color types includes the first color type and the second color type.
6. The method of claim 5, wherein the color difference between the first color type and the second color type comprises:
and determining the color difference between the first color type and the second color type according to the difference value between the hue value of the first color type and the hue value of the second color type.
7. The method of claim 1, wherein the first predetermined number of color types included in the picture to be made comprises a higher ratio of each color type in the picture to be made than a second predetermined color ratio.
8. A readable medium having stored thereon instructions which, when executed on an electronic device, cause the electronic device to perform the poster making method of any of claims 1-7.
9. An electronic device, comprising:
a memory for storing instructions for execution by one or more processors of the electronic device, an
A processor, which is one of the processors of an electronic device, for performing the poster making method of any of claims 1 to 7.
10. A computer program product comprising computer programs/instructions which when executed by a processor implement the poster making method of any of claims 1 to 7.
CN202111484875.XA 2021-12-07 2021-12-07 Poster making method, readable medium, electronic device and computer program product Pending CN116258779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111484875.XA CN116258779A (en) 2021-12-07 2021-12-07 Poster making method, readable medium, electronic device and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111484875.XA CN116258779A (en) 2021-12-07 2021-12-07 Poster making method, readable medium, electronic device and computer program product

Publications (1)

Publication Number Publication Date
CN116258779A true CN116258779A (en) 2023-06-13

Family

ID=86686631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111484875.XA Pending CN116258779A (en) 2021-12-07 2021-12-07 Poster making method, readable medium, electronic device and computer program product

Country Status (1)

Country Link
CN (1) CN116258779A (en)

Similar Documents

Publication Publication Date Title
CN1977542B (en) Dominant color extraction using perceptual rules to produce ambient light derived from video content
Morovič Color gamut mapping
CN101253762B (en) Multimedia color management system
CN108182672A (en) Method and apparatus for the method and apparatus encoded to HDR image and for using such coded image
CN109783182A (en) A kind of method of adjustment, device, equipment and the medium of page subject matter tone
CN102782726B (en) The method of composograph and imaging product
CN109345612B (en) Image generation method, device, equipment and storage medium
US7616216B2 (en) Digital content creation system, program product, and storage medium
CN102187657A (en) Contrast enhancement of images
CN112256366A (en) Page display method and device and electronic equipment
CN101751904B (en) Method for color enhancement
CN1977529A (en) Dominant color extraction for ambient light derived from video content mapped through unrendered color space
CN117412449A (en) Atmosphere lamp equipment, lamp effect playing control method thereof, and corresponding device and medium
CN108292319B (en) Determining an appearance for an element displayed on a user interface
CN116258779A (en) Poster making method, readable medium, electronic device and computer program product
CN111783382A (en) Recommendation method and device for visual effect of document
CN114512094B (en) Screen color adjusting method, device, terminal and computer readable storage medium
Ryu et al. New RGB primary for various multimedia systems
CN115147259A (en) Image color migration method, system and computer medium
CN114529624A (en) Image color matching method and system and image generation method and system
JP2017156506A (en) Display control device and display control method
CN117412452B (en) Atmosphere lamp equipment, color matching method thereof, corresponding device and medium
CN117412450B (en) Atmosphere lamp equipment, lamp effect color matching method thereof, corresponding device and medium
US9667709B2 (en) Picture conversion SNS system and method, apparatus, and terminal
JP7206732B2 (en) Information processing device and program

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