This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2017-154995 filed Aug. 10, 2017.
The present invention relates to an information processing apparatus.
According to an aspect of the invention, there is provided an information processing apparatus including an acquisition unit that acquires an image, an extraction unit that extracts a representative color which is a color representative of the image acquired by the acquisition unit; a receiving unit that receives a designated word indicating emotion, and a specifying unit that specifies a color scheme to be applied to an image which is generated by a user, by using the word and the representative color.
Exemplary embodiment(s) of the present invention will be described in detail based on the following figures, wherein:
1-1. Overall Configuration of Information Processing Apparatus
For example, in order to promote sales of goods and services, printed matters such as posters, stickers, and pamphlets are produced using images such as photographs and illustrations related to the sale object. Further, in addition to printed matters, display matters such as net advertisements and television advertisements are sometimes produced using images expressing the above-mentioned goods.
Further, even in a case where it is not intended to promote sales, when there is, for example, information to convey, such as public advertisements, opinion advertisements, and government information, printed matters and display matters are produced using images such as photographs and illustrations. The printed matters and displayed matters are called promotional objects or the like. The information processing apparatus 1 is adapted to specify the color scheme to be applied to the image used for the above-mentioned promotional objects or the like.
A color scheme is to match two or more colors. Two or more types of colors constituting the color scheme are called constituent colors.
The controller 11 includes a central processing unit (CPU), a read only memory (ROM), and a random access memory (RAM), and the CPU reads out and executes the computer program (hereinafter referred to simply as “program”) stored in the ROM and the memory 12 to control each part of the information processing apparatus 1.
The communication unit 13 is a communication circuit which is connected to a communication line such as the Internet by wireless or wired. The information processing apparatus 1 exchanges information with various devices connected to the communication line by the communication unit 13. Note that the information processing apparatus 1 may not have the communication unit 13.
The operation unit 15 is equipped with operators such as operation buttons for giving various instructions and a keyboard, receives an operation by a user, and supplies a signal corresponding to the operation contents to the controller 11. The operation unit 15 may include a touch panel for detecting an operator such as a user's finger or a stylus pen. The operation unit 15 may have a microphone that records the user's voice and converting the voice into a voice signal and a voice operation mechanism that generates a control signal by recognizing the content of the voice from the voice signal. For example, in a case where the controller 11 receives various instructions from the user from an external terminal through the communication unit 13, the information processing apparatus 1 may not have the operation unit 15.
The display 14 includes a display screen such as a liquid crystal display, and displays an image under the control of the controller 11. A transparent touch panel of the operation unit 15 may be disposed so as to be superimposed on the display screen. In a case where it is possible to allow the user to generate an image by applying the color scheme specified by the controller 11 without using the display 14, the information processing apparatus 1 may not include the display 14.
The memory 12 is a large-capacity storage unit such as a solid state drive and a hard disk drive, and stores various programs which are read into the CPU of the controller 11. Further, the memory 12 stores an emotion DB 121, a color DB 122, a photograph DB 123, and a determination RB 124.
The emotion DB 121 is a database that stores a color scheme and emotion to be associated with the color scheme in correspondence with each other. The color DB 122 is a database storing the gradation value of a color and the hue and tone to which the color belongs in correspondence with each other. The photograph DB 123 is a database storing image data representing photographs. The determination RB 124 is a rule base defining rules such as a commonality and a readability for a color.
For example, in the example illustrated in
The base color is, for example, a color having an area of 50% or more of the entire color in the color scheme. The secondary color is a color having a large area after the base color. The accent color is a color having an area of less than 10% of the entire color. The color scheme may be configured with two constituent colors or four or more constituent colors. Further, the area ratio of the constituent colors constituting the color scheme to the whole is not limited to the above-mentioned one.
In the emotion DB 121 illustrated in
For example, with respect to the ranking indicating the ease of association, each combination of a color scheme and an emotional word is shown to statistically reliable number of subjects, the subjects are asked whether they can associate the emotion indicated by the emotional word with the color scheme, and the answers are aggregated. The more the positive answers, the higher ranking the combination has. It should be noted that the ranking is not limited to those based on the above-mentioned aggregation as long as a combination of each color scheme and an emotional word is specified. This ranking may be determined by, for example, an editor of the emotion DB 121. In addition, in the emotion DB 121, rather than the ranking itself, but information corresponding to the ranking, such as the number of positive answers of the subject described above, may be associated with a combination of a color scheme and an emotional word.
Further, all the color schemes stored in the emotion DB 121 are configured with the constituent colors selected based on a predetermined method. These color schemes are configured with constituent colors selected based on various harmonic color scheme methods of similar harmony, contrast harmony, Camaieu harmony, Faux Camaieu harmony, and the like. Therefore, the color scheme stored in the emotion DB 121 is configured with the constituent colors satisfying the predetermined condition in the harmonic color scheme method described above.
The color DB 122 illustrated in
In the color DB 122 illustrated in
The determination RB 124 illustrated in
For example, in the determination RB 124 illustrated in
The numerals described in the hue circle illustrated in
Then, in a case where the above-mentioned number is “4” or more and “7” or less, the relationship between the two hues is “ambiguous”, and in a case where the above-mentioned number is “8” or more and “10” or less, the relationship between the two hues is “contrast”. Further, in a case where the above-mentioned number is “12”, the relationship between the two hues is “complementary”, and in a case where the above-mentioned number is “11”, the relationship between the two hues is “split complementary”.
A tone map illustrated in
In
The five types of tones of achromatic colors are white (W), light gray (ltGy), medium gray (mGy), dark gray (dkGy), and black (Bk), and the tones connected by the lines illustrated in
With respect to the 12 types of tones of chromatic colors, the tones connected by the lines illustrated in
It is to be noted that, among the five types of achromatic colors and the twelve types of chromatic colors, the relationship between two different types of tones which are not connected by the above-described line is not the identical or similar, so it is “dissimilar”. Identification information in PCCS are used for color ID in following samples.
1-2. Functional Configuration of Information Processing Apparatus
The acquisition unit 111 acquires an image. For example, as illustrated in
The extraction unit 112 extracts a representative color of the image from the image acquired by the acquisition unit 111. The representative color is a color representative of an image, and for example, a color determined from the mode calculated by aggregating the gradation values of pixels constituting the image.
The receiving unit 113 receives the designated “emotional word” which is a word expressing emotion, by the user operating the operation unit 15. In a case where the user designates an emotional word by, for example, filling in an emotional word with a keyboard, a touch panel or the like included in the operation unit 15 or by speaking an emotional word towards a microphone, the operation unit 15 transmits a control signal corresponding to the emotional word to the controller 11. The receiving unit 113 realized by the controller 11 receives the designated emotional word by receiving the control signal sent from the operation unit 15.
The determination unit 115 determines whether or not the color scheme of interest corresponds to the emotion indicated by the emotional word and whether or not the color scheme of interest is common to the representative color extracted by the extraction unit 112. For example, the determination unit 115 illustrated in
Then, the determination unit 115 extracts a candidate for the color scheme that satisfies the determined condition, such as the color scheme having the ranking of the emotional word received by the receiving unit 113 from the emotion DB 121 of, for example, the third place or more, as a color scheme candidate corresponding to the emotional word, hereinafter, referred to as “color scheme candidate”). The determination unit 115 specifies the hue and tone of each of the constituent colors (one of the base color, the secondary color, and the accent color in the above-described example) constituting the extracted color scheme candidate by referring to the color DB 122. Then, the determination unit 115 refers to the determination RB 124 and determines whether or not the hue and tone of one of the constituent colors constituting the color scheme candidate corresponding to the emotional word and the hue and tone of the representative color are common.
The specifying unit 114 exchanges with the determination unit 115, and specifies a color scheme to be applied to an image which is generated by a user, by using the emotional word and the representative color. In the display including the image acquired by the acquisition unit 111, in a case where there is a color scheme having a constituent color corresponding to the emotion indicated by the emotional word and common to the representative color, the specifying unit 114 illustrated in
Note that the receiving unit 113 illustrated in
Further, in a case where the designated region is included in the image acquired by the acquisition unit 111, the extraction unit 112 illustrated in
The above-described specifying unit 114 specifies the color scheme to be applied to the image generated by the user by exchanging with the determination unit 115. However, for example, the determination unit 115 may specify the color scheme candidate as “color scheme applied to the image generated by the user”, in a case where it is determined that the hue and tone of the color scheme candidate corresponding to the emotional word and the hue and tone of the representative color are common. In this case, “the hue and tone of the color scheme candidate corresponding to the emotional word are common to the hue and tone of the representative color” means that an example of a condition regarding a commonality with a representative color (hereinafter, referred to as “second condition”).
That is, in a case where there is a color scheme (hereinafter, referred to as a first color scheme) corresponding to the emotion indicated by the emotional word and satisfying a second condition regarding commonality with the representative color extracted by the extraction unit 112 in the display including the image acquired by the acquisition unit 111, the specifying unit 114 specifies the first color scheme.
The display controller 116 controls the display 14 to notify the user of the color scheme specified by the specifying unit 114. The display controller 116 may control the display 14 to display an image to which the color scheme specified by the specifying unit 114 is applied.
1-3. Operation of Information Processing Apparatus
According to the flowchart illustrated in
Then, the controller 11 specifies the hues and tones corresponding to the base color “p6”, the secondary color “p2” and the accent color “lt2” of the color scheme ID “CS1”, and the hues and tones corresponding to the base color “p12”, the secondary color “p10” and the accent color “lt8” of the color scheme ID “CS2”, respectively, with reference to the color DB 122 illustrated in
On the other hand, in a case where it is determined that both the representative color and the color scheme candidate have already been extracted (step S301; YES), the controller 11 determines whether or not there are remaining color scheme candidates (step S302), and in a case where it is determined that there are no remaining color scheme candidates (step S302; NO), an exception process is executed (step S306), and the process is terminated.
Various exception processes can be adopted, and for example, the exception process may be a process of notifying the user that there is no color scheme which corresponds to the designated emotional word and is common to the representative color extracted from the acquired image.
In a case where it is determined that there are remaining color scheme candidates (step S302; YES), the controller 11 selects a color scheme candidate having the highest ranking among the remaining color scheme candidates (step S303). The controller 11 determines whether or not the extracted representative color and the selected color scheme candidate are common (step S304). In a case where it is determined that they are not common (step S304; NO), the controller 11 discards the color scheme candidate (step S305), and returns the process to step S302.
On the other hand, in a case where it is determined that the extracted representative color and the selected color scheme candidate are common (step S304; YES), the controller 11 specifies the color scheme of the color scheme candidate (step S307), performs a text color specifying process which is a process of specifying the text color (step S308), and ends the process.
Since the tone “p” of the base color and the secondary color at the color scheme ID “CS1” and the tone “sf” of the representative color of the photograph are in a similar relationship, the commonality determination result is “common”. In addition, since the tone “lt” of the accent color at the color scheme ID “CS1” and the tone “sf” of the representative color of the photograph are in a similar relationship, the commonality determination result is “common”. Therefore, the result of determination on a commonality of the tones of each color of the color scheme candidate identified by the color scheme ID “CS1” and the representative color of the photograph is “O” indicating that they are common.
On the other hand, since the hue “yO” of the base color at the color scheme ID “CS1” and the hue “yG” of the representative color of the photograph are in a medium difference relationship, they are not common. Since the hue “R” of the secondary color and the accent color at the color scheme ID “CS1” and the hue “yG” of the representative color of the photograph are in a contrast relationship, they are not common. Therefore, the result of determination on a commonality of the hues of each color of the color scheme candidate identified by the color scheme ID “CS1” and the representative color of the photograph is “X” indicating that they are not common.
As illustrated in
Then, the commonality condition between the representative color and the constituent color is “that the hues and tones of the representative color and the constituent color are common”. That is, with respect to the representative color of a photograph and one constituent color, unless both the hues and tones are common, they are not determined to be common.
With respect to the above-described color scheme ID “CS1”, the tone of the base color, the secondary color, or the accent color is common to that of the representative color of the photograph, but the hue is not common to that of the representative color of the photograph. Therefore, since the representative color of the photograph is not common to the color scheme identified by the color scheme ID “CS1”, the controller 11 discards the color scheme candidate and determines the commonality for the next color scheme candidate.
The determination illustrated in
Since the tone “p” of the base color and the secondary color at the color scheme ID “CS2” and the tone “sf” of the representative color of the photograph are in a similar relationship, the commonality determination result is “common”. In addition, since the tone “lt” of the accent color at the color scheme ID “CS2” and the tone “sf” of the representative color of the photograph are in a similar relationship, the commonality determination result is “common”. Therefore, the result of determination on a commonality of the tones of each color of the color scheme candidate identified by the color scheme ID “CS2” and the representative color of the photograph is “O” indicating that they are common.
Since the hue “G” of the base color at the color scheme ID “CS2” and the hue “yG” of the representative color of the photograph are in a similar relationship, they are common. Since the hue “yG” of the secondary color at the color scheme ID “CS2” and the hue “yG” of the representative color of the photograph are in the same relationship, they are common. Since the hue “Y” of the accent color at the color scheme ID “CS2” and the hue “yG” of the representative color of the photograph are in a similar relationship, they are common. Therefore, the result of determination on a commonality of the hues of each color of the color scheme candidate identified by the color scheme ID “CS2” and the representative color of the photograph is “O” indicating that they are common.
With respect to the above-described color scheme ID “CS2”, one of the base color, the secondary color, and the accent color is common to the representative color of the photograph in both hues and tones, so that the representative color of the photograph and the color scheme ID identified the color scheme “CS2” are common. Thus, the controller 11 specifies the color scheme of the color scheme candidate.
On the other hand, in a case of determining that there is a text in the image generated by the user (step S401; YES), the controller 11 determines whether or not the text is disposed on the image such as the acquired photograph (step S402).
In the case where it is determined that the text is disposed on the image such as a photograph (step S402; YES), the controller 11 extracts the region color which is the color of the region where the text is disposed in the image such as a photograph (step S403).
In the case where it is determined that the text is not disposed on the image such as a photograph (step S402; NO), the controller 11 specifies, for example, the base color as the background color in the specified color scheme (step S404).
The controller 11 specifies a text color having a readability, for the region color specified in step S403 or the background color specified in step S404 (step S405).
As illustrated in
In the example illustrated in
On the other hand, the hue “gB” of the secondary color and the hue “B” of the accent color are in an adjacent or similar relationship with the hue “BG” of the region color and are common. Therefore, the result of the readability determination as to the hues of the secondary color and the accent color is “X” indicating that the colors do not have readability.
Further, since the tones “g” of the secondary color and the accent color are in a dissimilar relationship with the tone “p” of the region color, the result of the readability determination as to the tones of the secondary color and the accent color is “O” indicating that the colors have readability.
Since the black tone “bk” is also in a dissimilar relationship with the tone “p” of the region color, the result of the readability determination as to the black tone is also “O” indicating that the black tone has readability.
On the other hand, since the tone “ltg” of the base color and the tone “p” of the region color are in a similar relationship and are common, the result of the readability determination as to the tone of the base color is “X” indicating that it does not have readability.
Since the while tone “w” and the tone “p” of the region color are in a similar relationship and are common, the result of the readability determination as to the white tone is “X” indicating that it does not have readability.
As illustrated in
On the other hand, since white is common to region colors in tones rather than hues, white has no readability as a text color. Therefore, white is not adopted as text color. Black has readability since it is not common to region colors in tone and can be adopted as a text color.
By the above operation, in a case where the user generates images such as promotional objects that match the emotion designated using the acquired images, the color scheme to be applied is specified.
The above is an explanation of an exemplary embodiment, but the contents of the exemplary embodiment can be modified as follows. In addition, the following modification examples may be combined.
In the exemplary embodiment described above, the receiving unit 113 receives a designated region where text is disposed, but it may not be designated. In this case, in a case where the color scheme is specified, the information processing apparatus 1 may not specify the text color.
In the exemplary embodiment described above, in a case where the designated region is included in the acquired image, the extraction unit 112 extracts the region representative color which is a color representative of the region, but may not extract the region representative color. For example, the information processing apparatus 1 may receive a designated region and a designated representative color of the region. Further, the user may check the designated region and select the color of the text to be disposed on the region.
In the exemplary embodiment described above, in a case where there is a first color scheme corresponding to the emotion indicated by the emotional word and satisfying the second condition regarding the commonality with a representative color extracted by the extraction unit 112 in the display including the image acquired by the acquisition unit 111, the specifying unit 114 specifies the first color scheme, but the invention is not limited thereto, and a color scheme to be applied to the image generated by the user may be specified by using the designated emotional word and the extracted representative color.
In the exemplary embodiment described above, in a case where it is determined that there is no remaining color scheme candidate in the determination of step S302, that is, in a case where there is no above-described first color scheme, the controller 11 of the information processing apparatus 1 performs an exception process of step S306.
Here, the exception process of the exemplary embodiment described above is a process of notifying the user that there is no color scheme which corresponds to the designated emotional word and is common to the representative color extracted from the acquired image, but the exception process may be a process of specifying another color scheme. For example, in a case where there is no above-described first color scheme, the specifying unit 114 may specify a second color scheme that satisfies the second condition with respect to a representative color extracted by the extraction unit 112, and an emotional word indicating the emotion corresponding to the second color scheme.
The user may be notified of the newly extracted color scheme candidate and the specified emotional word. By this notification, in a case of using the image acquired by the information processing apparatus 1, the user knows that there is no color scheme for generating an image corresponding to the emotion indicated by the designated emotional word.
Then, in a case where it is determined that an image corresponding to the emotion indicated by the emotional word notified by the information processing apparatus 1, which is an emotional word different from the emotional word designated by the user, may be generated, the user may issue an instruction to adopt a notified new color scheme candidate.
Further, in a case where there is no above-described first color scheme, the specifying unit 114 may specify a third color scheme corresponding to the emotion indicated by the designated emotional word, and an image which is different from the image acquired by the acquisition unit 111 and of which representative color satisfies the second condition.
The user may be notified of the newly extracted color scheme candidate and the specified photograph. By this notification, in a case of using the image acquired by the information processing apparatus 1, the user knows that there is no color scheme for generating an image corresponding to the emotion indicated by the designated emotional word.
Then, in a case where it is determined that a photograph which is notified by the information processing apparatus 1 and is different from the photograph that the user has acquired by the information processing apparatus 1 may be adopted, the user may give instructions of adopting a notified new color scheme candidate and a photograph.
In the exemplary embodiment described above, the information processing apparatus 1 specifies the color scheme to be applied to the image generated by the user. However, in addition to the color scheme, the information processing apparatus 1 may specify layout information to be applied to an image such as a promotional object generated by applying the color scheme. The layout information is the information indicating the conditions of the constituent elements constituting the image, such as the position or frame of the photograph or illustration in the image, and in a case where a text is included, the type (font), size (font size), arrangement, reference line and the like of the text, or the conditions of arrangement (layout) of the constituent elements.
For example, the layout information may be stored in correspondence with each color scheme ID in the emotion DB 121. Further, the layout information may be stored in a database associated with the emotional word.
For example, a relatively large font size of 36 points or more may be described as layout information for the emotional word “energetic” representing strength, and a font such as “Round Gothic body” having a rounded font may be described as layout information for the emotional word “pretty”. Further, in the emotional word “energetic”, a layout in which text to be displayed are disposed so as to protrude from the end portion of the paper may be described as layout information.
With this configuration, in a case where the information processing apparatus 1 specifies a color scheme or an emotional word, it also specifies the layout information associated with the color scheme or the emotional word.
The program executed by the controller 11 of the information processing apparatus 1 can be provided by being stored in a computer readable recording medium such as a magnetic recording medium such as a magnetic tape and a magnetic disk, an optical recording medium such as an optical disk, a magneto-optical recording medium, and a semiconductor memory. It is also possible to download the program through a communication line such as the Internet. As a control unit exemplified by the above-described controller 11, various devices other than the CPU may be applied, for example, a dedicated processor or the like is used.
The readability determination as to the combination of the text color and the background color (or region color) may be performed using data (referred to as “readability determination data”) obtained by aggregating human evaluations. In this case, for example, in the readability determination, the readability is classified into six stages of “1=very difficult to read, 2=rather difficult to read, 3=somewhat difficult to read, 4=read normally, 5=easy to read, and 6=very easy to read”, and plural persons visually evaluates the readability for each combination of text color and background color or region color. Then, the results of the evaluation are aggregated and the arithmetic mean value is stored in the memory 12 as readability determination data. The controller 11 reads out the readability determination data from the memory 12, determines that the combination whose numerical value indicated by the readability determination data is, for example, three or more is readable, and determines that the combination whose numerical value is less than 3 is difficult to read. In this example, a rule such as “Refer to readability determination data, and in a case where it is three or more, it is readable” may be described in the determination RB 124 illustrated in
The information processing apparatus 1 may include a measuring unit that measures the area of the image acquired by the acquisition unit 111 and the area of the entire image. In this case, the controller 11 of the information processing apparatus 1 calculates the ratio of the area of the acquired image to the area of the whole image, and when the calculated ratio satisfies the determined condition, the specification of the color scheme corresponding to the acquired image may be executed or prohibited.
For example, the controller 11 calculates the ratio of the area of the acquired image to the area of the whole image, and in the case where it is determined that the calculated ratio is equal to or smaller than the predetermined ratio, the controller 11 may not specify a color scheme depending on the acquired image. In addition, in a case where the number of pixels of the representative color of the image acquired by the acquisition unit 111 is equal to or smaller than a predetermined number or is equal to or smaller than the ratio determined for the total number of pixels, the controller 11 may not specify the color scheme depending on the acquired image.
The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2017-154995 | Aug 2017 | JP | national |