CN111090368B - Color matching method and device for determining page characters - Google Patents

Color matching method and device for determining page characters Download PDF

Info

Publication number
CN111090368B
CN111090368B CN201911405852.8A CN201911405852A CN111090368B CN 111090368 B CN111090368 B CN 111090368B CN 201911405852 A CN201911405852 A CN 201911405852A CN 111090368 B CN111090368 B CN 111090368B
Authority
CN
China
Prior art keywords
color
value
rgb value
rgb
hsv
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911405852.8A
Other languages
Chinese (zh)
Other versions
CN111090368A (en
Inventor
王睿宇
程启健
任翔宇
李明忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911405852.8A priority Critical patent/CN111090368B/en
Publication of CN111090368A publication Critical patent/CN111090368A/en
Application granted granted Critical
Publication of CN111090368B publication Critical patent/CN111090368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Image Analysis (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The embodiment of the invention provides a color matching method and a device for determining page characters, wherein the method comprises the following steps: acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block; extracting the relative position of the text content block in the background image block from a configuration file; acquiring a dominant color RGB value of the background image block at the relative position; converting the dominant color RGB values to dominant color HSV values; determining an HSV value interval in which the main color HSV value is positioned; searching a target character RGB value corresponding to the HSV value interval in which the HSV value of the dominant color is located from the corresponding relation between a preset HSV value interval and the character RGB value; and setting the color of the text content block as the target text RGB value in the configuration file. And realizing automatic color matching of the text contents in the webpage according to the color of the background image block corresponding to the area where the text contents are located.

Description

Color matching method and device for determining page characters
Technical Field
The invention relates to the technical field of web pages, in particular to a color matching method for determining page characters and a color matching device for determining the page characters.
Background
A web page may typically include elements such as images, text, multimedia, etc., and the image elements, text elements, multimedia elements may overlap each other. For example, the text element may be positioned on an upper layer of the image element. However, in the web page, when the text element is located on the upper layer of the image element, the color of the image element may affect the user to view the text on the upper layer of the image, and especially if the color of the text is similar to or even the same as the color of the image, the user may have difficulty in reading the text content. Therefore, the webpage designer can configure colors for the text contents at different positions in the webpage, so that the user can read the text conveniently. However, the task of configuring the color for the text in each web page is cumbersome.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a color matching method for determining page characters and a corresponding color matching apparatus for determining page characters, which overcome or at least partially solve the above problems.
In order to solve the above problem, the embodiment of the present invention discloses a color matching method for determining page characters, which includes:
acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block;
extracting the relative position of the text content block in the background image block from a configuration file;
acquiring a dominant color RGB value of the background image block at the relative position;
converting the dominant color RGB values to dominant color HSV values;
determining an HSV value interval in which the main color HSV value is positioned;
searching a target character RGB value corresponding to the HSV value interval in which the HSV value of the dominant color is located from the corresponding relation between a preset HSV value interval and the character RGB value;
and setting the color of the text content block as the target text RGB value in the configuration file.
Optionally, the step of searching for the target text RGB value corresponding to the HSV value interval where the HSV value of the dominant color is located from the preset correspondence between the HSV value interval and the text RGB value includes:
searching at least two candidate character RGB values corresponding to the HSV interval of the hue (hue, saturation) value of the dominant color from the corresponding relation between the preset HSV interval and the character RGB value;
determining the occurrence frequency of the at least two candidate character RGB values;
and selecting the candidate character RGB value with the highest occurrence frequency from the at least two candidate character RGB values as the target character RGB value.
Optionally, the candidate text RGB values have color matching priorities;
the step of selecting the candidate character RGB value with the highest frequency of occurrence from the candidate character RGB values as the target character RGB value comprises the following steps:
and selecting the candidate character RGB value with the highest frequency of occurrence and the highest color matching priority from the candidate character RGB values as a target character RGB value.
Optionally, the step of obtaining the RGB values of the dominant colors of the background image block at the relative position includes:
extracting a pixel RGB value of each pixel in the relative position;
determining the proportion of pixels with the same RGB value in all the pixels;
and when the proportion is larger than a preset proportion, or the proportions are sorted from high to low, and when the sorting of the proportions is before the preset sorting, the pixel RGB value of the category corresponding to the proportion is used as the dominant color RGB value.
The embodiment of the invention also discloses a color matching device for determining the page characters, which comprises the following steps:
the acquisition module is used for acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block;
the position acquisition module is used for extracting the relative position of the text content block in the background image block from a configuration file;
the RGB value acquisition module is used for acquiring the dominant color RGB value of the background image block at the relative position;
the conversion module is used for converting the dominant color RGB value into a dominant color HSV value;
the interval determining module is used for determining an HSV value interval where the main color HSV value is located;
the RGB value determining module is used for searching a target character RGB value corresponding to the HSV value interval where the HSV value of the dominant color is located from the corresponding relation between a preset HSV value interval and the character RGB value;
and the setting module is used for setting the color of the text content block as the target text RGB value in the configuration file.
Optionally, the RGB value determining module includes:
the searching submodule is used for searching a candidate character RGB value corresponding to the HSV interval of the main color HSV value from the corresponding relation between a preset HSV value interval and the character RGB value;
the frequency determining submodule is used for determining the occurrence frequency of the candidate character RGB value;
and the RGB value determining submodule is used for selecting the candidate character RGB value with the highest occurrence frequency from the candidate character RGB values as the target character RGB value.
Optionally, the candidate text RGB values have color matching priorities;
the RGB value determination sub-module includes:
and the RGB value determining unit is used for selecting the candidate character RGB value with the highest occurrence frequency and the highest color matching priority from the candidate character RGB values as the target character RGB value.
Optionally, the RGB value obtaining module includes:
an extraction submodule for extracting a pixel RGB value of each pixel in the relative position;
the proportion determining submodule is used for determining the proportion of pixels with the same RGB value in all the pixels;
and the dominant color determining submodule is used for sequencing the proportions from high to low when the proportions are larger than a preset proportion, and taking the pixel RGB values of the classes corresponding to the proportions as the RGB values of the dominant color when the sequencing of the proportions is before the preset sequencing.
The embodiment of the invention also discloses a device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform one or more methods as described in embodiments of the invention.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods described in embodiments of the invention.
The embodiment of the invention has the following advantages:
according to the color matching method for determining the page characters, provided by the embodiment of the invention, the main color RGB value of the background image block corresponding to the region where the character content block is located is extracted from the configuration file, the main color RGB value is converted into the main color HSV value, the HSV value interval where the main color HSV value is located is determined, and the target character RGB value is determined according to the HSV value interval where the main color HSV value is located, so that the automatic color matching of the character content in the webpage is realized according to the color of the background image block corresponding to the region where the character content is located, the webpage making efficiency is improved, and the good character reading experience of a user is ensured.
Drawings
FIG. 1 is a flowchart illustrating the steps of an embodiment of a method for determining color matching for text on a page according to the present invention;
FIG. 2 is a flowchart illustrating the steps of another embodiment of a method for determining color matching for text on a page according to the present invention;
FIG. 3 is a block diagram of an embodiment of a color matching apparatus for determining page text according to the present invention;
fig. 4 is a schematic diagram of an electronic device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a color matching method for determining page text according to the present invention is shown, which may specifically include the following steps:
step 101, acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block;
in the embodiment of the present invention, the web page may include contents such as images, text, multimedia, and the like. The image, text, multimedia and other content can be laid out on the webpage in the form of blocks, such as text content blocks, background image blocks, multimedia control blocks and the like. The block has a preset size on the web page and is set at a preset position on the web page. The blocks may also have a hierarchy, e.g., top, bottom, middle, etc. The blocks may overlap or partially overlap each other, and in the case where the blocks overlap or partially overlap each other, the blocks may determine a display manner based on the hierarchy. For example, a block at the top level floats above all blocks, and a block at the bottom level is below all blocks. Wherein the background image block may be lower in hierarchy than the text block, so that the text block may be arranged above the background image block.
In the embodiment of the present invention, the webpage is configured with a configuration file, and the configuration file may include size information, position information, and hierarchy information of blocks in the webpage. The size information may include width information and height information of the block on the web page, the position information may include position coordinate information of the block on the web page, and the hierarchy information may include a hierarchy of the block on the web page.
In an embodiment of the present invention, a webpage may include a background image block and a text block disposed on the background image block. The text block above the background image block may be affected by the background image block, resulting in a text block that is harder to read. Therefore, a configuration file of a webpage page can be obtained, and the size information, the position information and the level information of the background image block and the character content block are determined from the configuration file, so that the character content block above the background image block can be searched from the configuration file, namely the character content block needing to adjust the character color matching.
102, extracting the relative position of the text content block in the background image block from a configuration file;
in the embodiment of the present invention, size information and position information of the text block may be obtained from the configuration file, so that a relative position of the text block in the background image block may be obtained. The relative position may be a position where the text block is located relative to the background image block.
103, acquiring a dominant color RGB value of the background image block at the relative position;
in the embodiment of the present invention, the background image block may be obtained based on the configuration file, and based on the size information and the position information of the text block, the dominant color RGB value of the background image block at the relative position, that is, the dominant color RGB value of the background portion of the text block in the background image block, may be obtained. The dominant color RGB value may be an RGB value corresponding to a color having a large occupied area in the relative position. For example, the dominant color RGB value may be an RGB value corresponding to a color having a proportion of an area occupied in the relative position of more than 20%.
104, converting the RGB value of the dominant color into HSV value of the dominant color;
in the embodiment of the present invention, the RGB color model may be an additive color model, whose geometry is based on a cartesian coordinate system, and color lights of three primary colors of Red (Red), Green (Green), and Blue (Blue) are added in different proportions to generate various color lights. The values of the three components can be regarded as coordinate values of a common cartesian coordinate system in euclidean space. The R, G and B grades may each be 0-100% strength. Each level is represented by a decimal number range of 0 to 255 (256 levels per color), corresponding to a binary number range from 00000000 to 11111111, or a hexadecimal number from 00 to FF. Thus, the RGB values may represent the intensities of red, green, and blue using three 8-bit unsigned integers (0 to 255).
In the embodiment of the present invention, the HSV color model may be a representation of points in the RGB color model in a cylindrical coordinate system. HSV may include Hue (Hue), Saturation (Saturation), and Value (Value). The hue can be a basic attribute of color, and is a commonly known color name, such as red, yellow, and the like. In the HSV model, hue may be divided by angle from 0 degrees to 360 degrees. The saturation may be a gray range in color space. It ranges from 0 to 100% (0-1). When the value is 0, the color is gray, and when the value is 1, the color is a primary color. A lighter color is due to lower saturation, i.e. the color contains more grey. Lightness may be the brightness of a color and varies with color saturation. It ranges from 0 to 100%, and at a value of 0, the color space will be totally black. As the numerical value increases, the color space brightness increases and various colors are displayed.
In the embodiment of the present invention, the dominant color RGB value may be converted into a dominant color HSV value. The step of converting the dominant color RGB values into dominant color HSV values may include:
and a substep S11, obtaining a dominant color RGB value, wherein the dominant color RGB value may be represented by: (R is 0 to 255, G is 0 to 255, and B is 0 to 255).
Substep S12, calculating R ', G ', and B ' values; wherein, the value of R ' is R value/255, the value of G ' is G value/255, and the value of B ' is B value/255;
substep S13, determining the maximum value C of R ', G ', B ' valuesmaxAnd a minimum value CminAnd calculating the maximum value CmaxAnd the minimum value CminThe difference between them delta.
Substep S14, calculating an H value, wherein:
Figure BDA0002348603280000071
substep S15, calculating an S value, wherein:
Figure BDA0002348603280000072
substep S16, calculating a V value, wherein:
V=Cmax
and a substep S17, using the calculated H value, S value and V value as the main color HSV value.
As an example of the present invention, the RGB value of the dominant color is (255, 128, 0), and the R' value is calculated as 255/255 ═ m1. The value of G 'is 128/255-0.50 and the value of B' is 0/255-0. Maximum value C among R ', G ', B ' valuesmaxR ═ 1, minimum value CminB' is 0 and the maximum value C ismaxAnd the minimum value CminThe difference Δ therebetween is 1.
Then
Figure BDA0002348603280000073
Value of V ═ Cmax=1=100%。
The result is a dominant color HSV value for the dominant color RGB value of (30 °, 100%, 100%).
Step 105, determining an HSV value interval where the HSV value of the dominant color is located;
in the embodiment of the invention, when the RGB model is used to represent colors, the RGB model uses the color lights of three primary colors to be added in different proportions to represent one color, so that in the RGB mode, the R value, the G value, and the B value of the similar color system can be changed in the range of 0 to 255, which makes it difficult to determine the region where the similar color system is located in the RGB mode. For example, if the RGB value of red among the three primary colors is (255,0,0), the RGB value of black is (0,0,0), and the RGB value of white is (255 ), the color of red may change to a red color having different saturation and lightness in the process of changing to black, white, or a certain gray level between black and white, but the R value, the G value, and the B value may all change in the range of 0 to 255 in the process of changing, making it difficult to determine the section where the red color exists.
In the embodiment of the invention, when the HSV model is used for representing the color, only the H value in the HSV model influences the change of the hue, and the hue of the color with the similar H value is also similar. After the H value determines the hue, the S value can influence the saturation of the hue, and the V value can influence the lightness of the hue, so that an interval with similar colors can be obtained by specifying the intervals of the H value, the S value and the V value under an HSV model. For example, in the range of H value 0-15 °, S value 0-50%, and V value 0-50%, the range where the red color exists can be obtained.
In the embodiment of the present invention, at least one HSV value interval may be preset, and each HSV value interval may include an H value, an S value, and a V value within a preset range, and is used for corresponding to an interval in which different color systems are located. The value intervals of the HSV intervals may be different from each other, or may have some differences, which is not limited in the present invention. For example, the HSV value range may have an H value of 195 to 210 °, an S value of 60 to 100%, and a V value of 60 to 100%.
106, searching a target character RGB value corresponding to the HSV value interval in which the HSV value of the dominant color is located from the corresponding relation between a preset HSV value interval and the character RGB value;
in the embodiment of the present invention, a corresponding relationship between at least one HSV value interval and a target character RGB value may be preset. Therefore, after the HSV value interval of the dominant color is determined, the target character RGB value corresponding to the HSV value interval can be determined according to the preset corresponding relation between the HSV value interval and the target character RGB value. For example, when the HSV value interval may be 195-210% H, 60-100% S, and 60-100% V, the corresponding target character RGB value may be (200,230, 0).
In the embodiment of the present invention, the HSV value interval where the primary color HSV is located may be determined, so as to determine the color system corresponding to the primary color HSV value. Therefore, according to the color system corresponding to the HSV value, the color which is matched with the color system in a good effect, convenient for a user to read and has certain aesthetic property can be selected as the RGB value of the target character. For example, the target character RGB value may be selected from a contrast color, a complementary color, a same kind of color, an approximate color, a white color, a black color, and the like of the color system, which is not limited in the present invention.
Step 107, setting the color of the text content block as the target text RGB value in the configuration file.
In the embodiment of the present invention, after the target RGB values are determined, the color of the text content block may be set as the target RGB values in the configuration file, so that when the web page is displayed, the text content block may display text by using the target RGB values.
According to the color matching method for determining the page characters, provided by the embodiment of the invention, the main color RGB value of the background image block corresponding to the region where the character content block is located is extracted from the configuration file, the main color RGB value is converted into the main color HSV value, the HSV value interval where the main color HSV value is located is determined, and the target character RGB value is determined according to the HSV value interval where the main color HSV value is located, so that the automatic color matching of the character content in the webpage is realized according to the color of the background image block corresponding to the region where the character content is located, the webpage making efficiency is improved, and the good character reading experience of a user is ensured.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of a color matching method for determining page text according to the present invention is shown, which may specifically include the following steps:
step 201, acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block;
in the embodiment of the present invention, the web page may include contents such as images, text, multimedia, and the like. The image, text, multimedia and other content can be laid out on the webpage in the form of blocks, such as text content blocks, background image blocks, multimedia control blocks and the like. The block has a preset size on the web page and is set at a preset position on the web page. The blocks may also have a hierarchy, e.g., top, bottom, middle, etc. The blocks may overlap or partially overlap each other, and in the case where the blocks overlap or partially overlap each other, the blocks may determine a display manner based on the hierarchy. For example, a block at the top level floats above all blocks, and a block at the bottom level is below all blocks. Wherein the background image block may be lower in hierarchy than the text block, so that the text block may be arranged above the background image block.
In the embodiment of the present invention, the webpage is configured with a configuration file, and the configuration file may include size information, position information, and hierarchy information of blocks in the webpage. The size information may include width information and height information of the block on the web page, the position information may include position coordinate information of the block on the web page, and the hierarchy information may include a hierarchy of the block on the web page.
In an embodiment of the present invention, a webpage may include a background image block and a text block disposed on the background image block. The text block above the background image block may be affected by the background image block, resulting in a text block that is harder to read. Therefore, a configuration file of a webpage page can be obtained, and the size information, the position information and the level information of the background image block and the character content block are determined from the configuration file, so that the character content block above the background image block can be searched from the configuration file, namely the character content block needing to adjust the character color matching.
Step 202, extracting the relative position of the text content block in the background image block from a configuration file;
in the embodiment of the present invention, size information and position information of the text block may be obtained from the configuration file, so that a relative position of the text block in the background image block may be obtained. The relative position may be a position where the text block is located relative to the background image block.
As an example of the present invention, the configuration file may store size information and position information of the text content block. For example, TextInfo [ { text _ top, text _ left, text _ width, text _ height } ], where text _ top indicates that the text content blocks are top-aligned, and text _ left indicates that the text content blocks are left-aligned; text _ width represents the text content block width; text height represents the text content block height.
Step 203, extracting the pixel RGB value of each pixel in the relative position;
in an embodiment of the present invention, the pixel RGB value of each pixel in the relative position may be extracted. Specifically, a pixel data of each pixel at the relative position may be acquired by a pixel data acquisition instruction (getImageData (x, y, width, height)) based on position coordinate information, width information, and height information of the relative position, and the pixel data may include an R value, a G value, a B value, and an a value (Alpha parameter) used as an opacity parameter, and the R value, the G value, and the B value may be extracted, so as to obtain a pixel RGB value of each pixel. Specifically, the data acquired by the pixel data acquisition instruction (getImageData (x, y, width, height)) may be iterated once according to 4 numerical values, where the 4 numerical values are an R value, a G value, a B value, and an a value, and the first three R values, the G value, and the B value are extracted and spliced to obtain a pixel RGB value.
In the embodiment of the present invention, for convenience of recording, the R value, the G value, and the B value in the pixel RGB values may be respectively converted into values represented by 16, and the R value, the G value, and the B value are concatenated to obtain a pixel RGB value represented by 16, that is, a pixel HEX value. For example, the pixel RGB value is (200,230,100), then the pixel HEX value is # c8e 664.
Step 204, determining the proportion of pixels with the same RGB value in all pixels;
in the embodiment of the present invention, the pixel RGB value of each pixel may be counted to determine the proportion of the pixel RGB value of each type of value in all the pixels. For example, the proportion of the pixel having the pixel RGB value (200,230,100) in all the pixels is 20%.
In a specific implementation, while the pixel RGB value of each pixel is obtained by using the pixel data obtaining instruction (getImageData (x, y, width, height)), the number of pixels with the same RGB value of each type of pixels may be recorded at the same time, so that the proportion of the pixels with the pixel RGB value of each type of values in all the pixels may be determined.
Step 205, when the ratio is greater than a preset ratio, or the ratios are sorted from high to low, and when the sorting of the ratios is before the preset sorting; taking the pixel RGB value of the category corresponding to the proportion as a dominant color RGB value;
in the embodiment of the present invention, when the ratio is greater than the preset ratio, it may be considered that the ratio of the pixels of the category corresponding to the ratio in all the pixels is higher, and the RGB value of the pixel of the category corresponding to the ratio may be used as the RGB value of the dominant color, so as to determine at least one RGB value of the dominant color. For example, the preset ratio is 20%. If the proportion of the pixel having the pixel RGB value (200,230,100) in all the pixels is 25% and the proportion of the pixel having the pixel RGB value (100,100,200) in all the pixels is 22%, the pixel RGB value (200,230,100) and the pixel RGB value (100,100,200) can be used as the dominant color RGB value.
In the embodiment of the present invention, the preset ratio may be 5%, 10%, 20%, 40%, and the like, which is not limited in the present invention.
In the embodiment of the present invention, the proportion of the pixels with the same RGB value of each type of pixels in all the pixels may be sorted from high to low, and when the sorting of the proportion is performed before the preset sorting, it may be considered that the proportion of the pixels of the type corresponding to the proportion in all the pixels is higher, and then the RGB value of the pixel of the type corresponding to the proportion may be used as the RGB value of the dominant color, so as to determine at least one RGB value of the dominant color. For example, the preset order is 3 rd. Among all the pixels, the proportion of the pixel with the pixel RGB value (200,230,100) in all the pixels is 25%, and the pixels are ranked as the No. 1; the proportion of pixels with the pixel RGB value (100,100,200) in all the pixels is 22 percent, and the pixels are ranked as the 2 nd name; if the ratio of the pixel having the pixel RGB value (100,150,200) to all the pixels is 18% and the pixel RGB value is ranked as the 3 rd name, the pixel RGB value (200,230,100), the pixel RGB value (100,100,200), and the pixel RGB value (100,150,200) can be used as the dominant color RGB value.
In the embodiment of the present invention, the preset sequence may be 3 rd, 5 th, 10 th, and the like, which is not limited in the present invention.
Step 206, converting the dominant color RGB value into a dominant color HSV value;
in the embodiment of the present invention, the RGB values and the HSV values may have a one-to-one correspondence relationship, so that the dominant color RGB values may be converted into dominant color HSV values.
Step 207, determining the HSV value interval where the main color HSV value is located;
in the embodiment of the present invention, at least one HSV value interval may be preset, and each HSV value interval may include an H value, an S value, and a V value within a preset range, and is used for corresponding to an interval in which different color systems are located. The value intervals of the HSV intervals may be different from each other, or may have some differences, which is not limited in the present invention. For example, the HSV value range may have an H value of 195 to 210 °, an S value of 60 to 100%, and a V value of 60 to 100%.
Step 208, searching a target character RGB value corresponding to the HSV value interval in which the HSV value of the dominant color is located from the corresponding relation between the preset HSV value interval and the character RGB value;
in the embodiment of the present invention, a corresponding relationship between at least one HSV value interval and a target character RGB value may be preset. Therefore, after the HSV value interval of the dominant color is determined, the target character RGB value corresponding to the HSV value interval can be determined according to the preset corresponding relation between the HSV value interval and the target character RGB value. For example, when the HSV value interval may be 195-210% H, 60-100% S, and 60-100% V, the corresponding target character RGB value may be (200,230, 0).
In the embodiment of the present invention, the HSV value interval where the primary color HSV is located may be determined, so as to determine the color system corresponding to the primary color HSV value. Therefore, according to the color system corresponding to the HSV value, the color which is matched with the color system in a good effect, convenient for a user to read and has certain aesthetic property can be selected as the RGB value of the target character. For example, the target character RGB value may be selected from a contrast color, a complementary color, a same kind of color, an approximate color, a white color, a black color, and the like of the color system, which is not limited in the present invention.
In a specific implementation, a storage database, such as Redis, may be used to store the correspondence between the HSV value interval and the RGB value of the text. After the HSV value of the dominant color is determined, the HSV value interval where the HSV value of the dominant color is located can be inquired in the storage database, and the target character RGB value corresponding to the HSV value interval where the HSV value of the dominant color is located is searched according to the corresponding relation between the HSV value interval and the character RGB value.
In a preferred embodiment of the present invention, the step of searching for the target text RGB value corresponding to the HSV value interval of the dominant color from the preset correspondence between the HSV value interval and the text RGB value includes:
substep S21, searching at least two candidate text RGB values corresponding to the HSV interval of the dominant color HSV value from the corresponding relationship between the preset HSV value interval and the text RGB values;
in the embodiment of the present invention, a correspondence between at least one HSV value interval and a candidate character RGB value may be preset. The HSV value interval can correspond to at least one candidate character RGB value. The candidate character RGB value can be a color which is matched with the color corresponding to the main color HSV value with good effect, is convenient for a user to read and has certain aesthetic property. For example, the candidate character RGB values may be selected from a contrast color, a complementary color, a same kind of color, an approximate color, a white color, a black color, and the like of the color system, which is not limited in the present invention.
A substep S22 of determining the frequency of occurrence of the at least two candidate text RGB values;
in the embodiment of the present invention, the relative position may have at least one dominant color RGB value, and then the relative position may have at least one dominant color HSV value. And each HSV value interval of the dominant color corresponds to at least one candidate character RGB value. Thus, the same candidate text RGB value may occur at least once, so that the frequency of occurrence of the candidate text RGB value may be confirmed.
And a substep S23, selecting the candidate character RGB value with the highest frequency of occurrence from the at least two candidate character RGB values as the target character RGB value.
In the embodiment of the present invention, when the frequency of the candidate text RGB values is high, the candidate text RGB values may be considered as candidate text RGB values for which most color backgrounds in the relative position can be applied. Therefore, the candidate character RGB value with the highest occurrence frequency in the candidate character RGB values can be selected as the target character RGB value.
In a preferred embodiment of the present invention, the candidate text RGB values have color matching priorities;
in the embodiment of the present invention, a correspondence between at least one HSV value interval and a candidate character RGB value may be preset. The HSV value interval can correspond to at least one candidate character RGB value. The at least one candidate character RGB value may have a color matching priority, and a candidate character RGB value with a higher color matching priority may have better reading effect and aesthetic property, and may be preferentially selected as the target character RGB value.
The step of selecting the candidate character RGB value with the highest frequency of occurrence from the candidate character RGB values as the target character RGB value comprises the following steps:
and selecting the candidate character RGB value with the highest frequency of occurrence and the highest color matching priority from the candidate character RGB values as a target character RGB value.
In the embodiment of the present invention, the relative position may have at least one dominant color RGB value, and then the relative position may have at least one dominant color HSV value. And each HSV value interval of the dominant color corresponds to at least one candidate character RGB value. Thus, the same candidate text RGB value may occur at least once, so that the frequency of occurrence of the candidate text RGB value may be confirmed.
In the embodiment of the present invention, when the frequency of occurrence of the candidate text RGB values is the same, the color matching priority of the candidate text RGB values may be further determined, and the candidate text RGB value with the highest frequency and the highest color matching priority is selected as the target text RGB value. Therefore, the target character RGB value which can be suitable for most color backgrounds in the relative position is obtained, and the target character RGB value has better reading effect and aesthetic property.
As an example of the present invention, the following codes may be used to represent HSV value intervals and candidate text RGB values:
Figure BDA0002348603280000151
in the above code, the condition is an attribute of the HSV value interval, for example, "H >40& & H <195& & V >60& & V < ═ 100" may mean that the HSV value interval is H >40 and H <195 and V >60 and V < ═ 100. And the colorCandi refers to the attribute of the candidate character RGB value corresponding to the HSV value interval. The arrangement order of the candidate character RGB values in colorCandi is the color matching priority of the candidate character RGB values, and the color matching priority of the candidate character RGB value ranked at the first is the highest.
Step 209, setting the color of the text content block as the target text RGB value in the configuration file.
In the embodiment of the present invention, after the target RGB values are determined, the color of the text content block may be set as the target RGB values in the configuration file, so that when the web page is displayed, the text content block may display text by using the target RGB values.
As an example of the present invention, in the configuration file, the following codes may be used to represent the target text RGB values:
Figure BDA0002348603280000152
Figure BDA0002348603280000161
wherein, field 'description' is an article abstract label, description is an abstract attribute, color is a color attribute, avatar is an avatar attribute, and name is a name attribute.
Therefore, the method and the device can configure the character color in the character content block as the target character RGB value in the configuration file.
According to the color matching method for determining the page characters, provided by the embodiment of the invention, the main color RGB value of the background image block corresponding to the region where the character content block is located is extracted from the configuration file, the main color RGB value is converted into the main color HSV value, the HSV value interval where the main color HSV value is located is determined, the target character RGB value corresponding to the HSV value interval where the main color HSV value is located is searched from the corresponding relation between the preset HSV value interval and the character RGB value, the automatic color matching of the character content in the webpage is realized according to the color of the background image block corresponding to the region where the character content is located, the webpage manufacturing efficiency is improved, and the user is ensured to have good character reading experience.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram illustrating a structure of an embodiment of a color matching apparatus for determining page text according to the present invention may specifically include the following modules:
an obtaining module 301, configured to obtain a configuration file of a web page; the webpage comprises a background image block and a text content block configured on the background image block;
a position obtaining module 302, configured to extract, from a configuration file, a relative position of the text block in the background image block;
an RGB value obtaining module 303, configured to obtain a dominant color RGB value of the background image block at the relative position;
a conversion module 304, configured to convert the dominant color RGB value into a dominant color HSV value;
an interval determining module 305, configured to determine an HSV value interval in which the dominant color HSV value is located;
an RGB value determining module 306, configured to search, from a preset correspondence between HSV value intervals and text RGB values, a target text RGB value corresponding to an HSV value interval where the primary color HSV value is located;
a setting module 307, configured to set the color of the text content block as the target text RGB value in the configuration file.
In one embodiment of the present invention, the RGB value determining module 306 includes:
the searching submodule is used for searching a candidate character RGB value corresponding to the HSV interval of the main color HSV value from the corresponding relation between a preset HSV value interval and the character RGB value;
the frequency determining submodule is used for determining the occurrence frequency of the candidate character RGB value;
and the RGB value determining submodule is used for selecting the candidate character RGB value with the highest occurrence frequency from the candidate character RGB values as the target character RGB value.
In one embodiment of the invention, the candidate text RGB values have color matching priorities;
the RGB value determination sub-module includes:
and the RGB value determining unit is used for selecting the candidate character RGB value with the highest occurrence frequency and the highest color matching priority from the candidate character RGB values as the target character RGB value.
In an embodiment of the present invention, the RGB value obtaining module 303 includes:
an extraction submodule for extracting a pixel RGB value of each pixel in the relative position;
the proportion determining submodule is used for determining the proportion of pixels with the same RGB value in all the pixels;
and the dominant color determining submodule is used for sequencing the proportions from high to low when the proportions are larger than a preset proportion, and taking the pixel RGB values of the classes corresponding to the proportions as the RGB values of the dominant color when the sequencing of the proportions is before the preset sequencing.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the following steps:
acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block;
extracting the relative position of the text content block in the background image block from a configuration file;
acquiring a dominant color RGB value of the background image block at the relative position;
converting the dominant color RGB values to dominant color HSV values;
determining an HSV value interval in which the main color HSV value is positioned;
searching a target character RGB value corresponding to the HSV value interval in which the HSV value of the dominant color is located from the corresponding relation between a preset HSV value interval and the character RGB value;
and setting the color of the text content block as the target text RGB value in the configuration file.
In an embodiment of the present invention, the step of searching for the target text RGB value corresponding to the HSV value interval of the dominant color from the correspondence between the preset HSV value interval and the text RGB value includes:
searching at least two candidate character RGB values corresponding to the HSV interval of the hue (hue, saturation) value of the dominant color from the corresponding relation between the preset HSV interval and the character RGB value;
determining the occurrence frequency of the at least two candidate character RGB values;
and selecting the candidate character RGB value with the highest occurrence frequency from the at least two candidate character RGB values as the target character RGB value.
In one embodiment of the invention, the candidate text RGB values have color matching priorities;
the step of selecting the candidate character RGB value with the highest frequency of occurrence from the candidate character RGB values as the target character RGB value comprises the following steps:
and selecting the candidate character RGB value with the highest frequency of occurrence and the highest color matching priority from the candidate character RGB values as a target character RGB value.
In an embodiment of the present invention, the step of obtaining the RGB values of the dominant colors of the background image block at the relative positions includes:
extracting a pixel RGB value of each pixel in the relative position;
determining the proportion of pixels with the same RGB value in all the pixels;
and when the proportion is larger than a preset proportion, or the proportions are sorted from high to low, and when the sorting of the proportions is before the preset sorting, the pixel RGB value of the category corresponding to the proportion is used as the dominant color RGB value.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
An embodiment of the present invention further provides an apparatus, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform methods as described in embodiments of the invention.
Embodiments of the invention also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods described in embodiments of the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is provided for a color matching method for determining page characters and a color matching device for determining page characters, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A color matching method for determining text on a page, comprising:
acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block;
extracting the relative position of the text content block in the background image block from a configuration file;
acquiring a dominant color RGB value of the background image block at the relative position;
converting the dominant color RGB values to dominant color HSV values;
determining an HSV value interval where the HSV value of the dominant color is located so as to determine a color system corresponding to the HSV value of the dominant color;
searching a target character RGB value corresponding to the HSV value interval in which the main color HSV value is located from the corresponding relation of color matching effects between a color system of a preset HSV value interval and the character RGB value on the basis of color matching priority; the corresponding relation comprises: the color system corresponds to any one of contrast color, complementary color, same color, similar color, white color and black color of the color system;
and setting the color of the text content block as the target text RGB value in the configuration file so that the text content block displays texts by adopting the target text RGB value when the webpage is displayed.
2. The method as claimed in claim 1, wherein the step of searching for the target text RGB value corresponding to the HSV value interval of the dominant color from the preset HSV value interval and text RGB value correspondence relationship comprises:
searching at least two candidate character RGB values corresponding to the HSV value interval in which the HSV value of the dominant color is located from the corresponding relation between the preset HSV value interval and the character RGB value;
determining the occurrence frequency of the at least two candidate character RGB values;
and selecting the candidate character RGB value with the highest occurrence frequency from the at least two candidate character RGB values as the target character RGB value.
3. The method of claim 2, wherein the candidate text RGB values have color matching priorities;
the step of selecting the candidate character RGB value with the highest frequency of occurrence from the candidate character RGB values as the target character RGB value comprises the following steps:
and selecting the candidate character RGB value with the highest frequency of occurrence and the highest color matching priority from the candidate character RGB values as a target character RGB value.
4. The method as claimed in claim 1, wherein the step of obtaining RGB values of dominant colors of the background image block at the relative position comprises:
extracting a pixel RGB value of each pixel in the relative position;
determining the proportion of pixels with the same RGB value in all the pixels;
and when the proportion is larger than a preset proportion, or the proportions are sorted from high to low, and when the sorting of the proportions is before the preset sorting, the pixel RGB value of the category corresponding to the proportion is used as the dominant color RGB value.
5. A color matching apparatus for determining text on a page, comprising:
the acquisition module is used for acquiring a configuration file of a webpage; the webpage comprises a background image block and a text content block configured on the background image block;
the position acquisition module is used for extracting the relative position of the text content block in the background image block from a configuration file;
the RGB value acquisition module is used for acquiring the dominant color RGB value of the background image block at the relative position;
the conversion module is used for converting the dominant color RGB value into a dominant color HSV value;
the interval determining module is used for determining an HSV value interval where the HSV value of the dominant color is located so as to determine a color system corresponding to the HSV value of the dominant color;
the RGB value determining module is used for searching a target character RGB value corresponding to the HSV value interval in which the main color HSV value is located from the corresponding relation of color matching effects between a color system of a preset HSV value interval and the character RGB value on the basis of color matching priority; the corresponding relation comprises: the color system corresponds to any one of contrast color, complementary color, same color, similar color, white color and black color of the color system;
and the setting module is used for setting the color of the text content block as the target text RGB value in the configuration file so that the text content block displays texts by adopting the target text RGB value when the webpage is displayed.
6. The apparatus of claim 5, wherein the RGB value determination module comprises:
the searching submodule is used for searching candidate character RGB values corresponding to the HSV value interval where the HSV value of the dominant color is located from the corresponding relation between the preset HSV value interval and the character RGB values;
the frequency determining submodule is used for determining the occurrence frequency of the candidate character RGB value;
and the RGB value determining submodule is used for selecting the candidate character RGB value with the highest occurrence frequency from the candidate character RGB values as the target character RGB value.
7. The apparatus of claim 6, wherein the candidate text RGB values have color matching priorities;
the RGB value determination sub-module includes:
and the RGB value determining unit is used for selecting the candidate character RGB value with the highest occurrence frequency and the highest color matching priority from the candidate character RGB values as the target character RGB value.
8. The apparatus of claim 5, wherein the RGB value obtaining module comprises:
an extraction submodule for extracting a pixel RGB value of each pixel in the relative position;
the proportion determining submodule is used for determining the proportion of pixels with the same RGB value in all the pixels;
and the dominant color determining submodule is used for sequencing the proportions from high to low when the proportions are larger than a preset proportion, and taking the pixel RGB values of the classes corresponding to the proportions as the RGB values of the dominant color when the sequencing of the proportions is before the preset sequencing.
9. An apparatus, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of one or more of claims 1-4.
10. One or more machine readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method of one or more of claims 1-4.
CN201911405852.8A 2019-12-30 2019-12-30 Color matching method and device for determining page characters Active CN111090368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911405852.8A CN111090368B (en) 2019-12-30 2019-12-30 Color matching method and device for determining page characters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911405852.8A CN111090368B (en) 2019-12-30 2019-12-30 Color matching method and device for determining page characters

Publications (2)

Publication Number Publication Date
CN111090368A CN111090368A (en) 2020-05-01
CN111090368B true CN111090368B (en) 2021-09-14

Family

ID=70396986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911405852.8A Active CN111090368B (en) 2019-12-30 2019-12-30 Color matching method and device for determining page characters

Country Status (1)

Country Link
CN (1) CN111090368B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722898B (en) * 2020-05-26 2023-11-07 口碑(上海)信息技术有限公司 Method, device and equipment for configuring Chinese color in status bar
CN112541334A (en) * 2020-12-21 2021-03-23 山东师范大学 VBA-based automatic PowerPoint page color matching generation method and system
CN112698901A (en) * 2020-12-30 2021-04-23 北京搜狗科技发展有限公司 Application program setting method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040057255A (en) * 2002-12-26 2004-07-02 (주) 엘지텔레콤 Device for inputing color-text of mobilephone and the method
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN105451094A (en) * 2014-08-20 2016-03-30 深圳Tcl新技术有限公司 Subtitle color adjusting method and device
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN106569678A (en) * 2016-11-16 2017-04-19 努比亚技术有限公司 Display adjusting method and device of suspending operation board and terminal
CN108959542A (en) * 2018-07-01 2018-12-07 安徽合软信息技术有限公司 A kind of novel self-defining webpage generating method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040057255A (en) * 2002-12-26 2004-07-02 (주) 엘지텔레콤 Device for inputing color-text of mobilephone and the method
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN105451094A (en) * 2014-08-20 2016-03-30 深圳Tcl新技术有限公司 Subtitle color adjusting method and device
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN106569678A (en) * 2016-11-16 2017-04-19 努比亚技术有限公司 Display adjusting method and device of suspending operation board and terminal
CN108959542A (en) * 2018-07-01 2018-12-07 安徽合软信息技术有限公司 A kind of novel self-defining webpage generating method and device

Also Published As

Publication number Publication date
CN111090368A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN111090368B (en) Color matching method and device for determining page characters
CN110189349B (en) Image processing method and device
US10304408B2 (en) Method and apparatus for changing background color of toolbar with dominant color of picture
CN105957125B (en) A kind of processing method and mobile terminal of icon text
CN104778047A (en) Content display method and terminal
CN109472832B (en) Color scheme generation method and device and intelligent robot
JP2012532377A (en) Non-product image identification
CN111738133A (en) Model training method, target detection method, device, electronic equipment and readable storage medium
CN111626967A (en) Image enhancement method, image enhancement device, computer device and readable storage medium
CN105808645A (en) Picture processing method and device and electronic equipment
CN111311500A (en) Method and device for carrying out color restoration on image
CN113808235A (en) Color filling method, device, equipment and storage medium
CN111368767A (en) Method and device for identifying home material color tone and electronic equipment
CN108921869B (en) Image binarization method and device
CN110942488B (en) Image processing device, image processing system, image processing method, and recording medium
CN104424486A (en) Systems and methods for color recognition in computer vision systems
CN111242836B (en) Target image generation method, device and equipment for generating advertisement image
US20220004857A1 (en) Neural network processing apparatus, neural network processing method, and neural network processing program
CN116204940A (en) Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium
CN105868768A (en) Method and system for recognizing whether picture carries specific marker
CN109712216B (en) Chart rendering method and device, readable storage medium and electronic equipment
CN108805190B (en) Image processing method and device
CN113240765A (en) Color matching method and device, computer equipment and storage medium
CN110674720A (en) Picture identification method and device, electronic equipment and storage medium
CN111833256A (en) Image enhancement method, image enhancement device, computer device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant