CN111966933A - Color data recommendation method and device - Google Patents

Color data recommendation method and device Download PDF

Info

Publication number
CN111966933A
CN111966933A CN202010662339.3A CN202010662339A CN111966933A CN 111966933 A CN111966933 A CN 111966933A CN 202010662339 A CN202010662339 A CN 202010662339A CN 111966933 A CN111966933 A CN 111966933A
Authority
CN
China
Prior art keywords
color
data
value
saturation
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010662339.3A
Other languages
Chinese (zh)
Inventor
隋婧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information 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 Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN202010662339.3A priority Critical patent/CN111966933A/en
Publication of CN111966933A publication Critical patent/CN111966933A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The application discloses a color data recommendation method, which comprises the following steps: acquiring a color value sent by a terminal corresponding to an entity object, and converting the color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data; if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal. By adopting the method, the problem of low configuration efficiency of the colors for on-line interface display is solved.

Description

Color data recommendation method and device
Technical Field
The application relates to the technical field of data processing, in particular to a color data recommendation method, device and equipment. The application also relates to another color data recommendation method, device and equipment. The application also relates to a color data recommendation system.
Background
More and more applications for on-line operation are emerging. An applet is a light application that can be used without download and installation, and a user can open the application by scanning or searching one scan, making the application available at any time and without installation and uninstallation. The service platform provides a small program ecological environment for the merchant, the merchant realizes the small program of the private domain of the merchant by relying on the service platform, and the flow is introduced from the ecological environment of the service platform for operation. The theme colors of the private domain applet interface are an important visual expression that gives the user an intuitive brand impression. The brand color of the merchant may be used as the theme color. A plurality of merchants have various brand colors, so the service platform needs to meet the customized requirement of displaying the brand colors of the merchants in the small program interface, so that the brand colors displayed on the online interfaces of different merchants can be ensured to highlight the characteristics of the cards, and good experience can be provided for users.
In the prior art, a service platform receives a color value of a brand color uploaded and configured by a merchant, and the color value is used as the brand color customized by the merchant. If the color corresponding to the color value uploaded by the merchant is not suitable for the online interface display, for example, the color with lighter color may be close to the color of the amount information or the control text information displayed on the online interface, so that the amount information or the control text information cannot be clearly displayed. In this case, manual review is required to reset the color values of the brand colors. The workload of the merchant and the auditing workload are increased.
Therefore, how to improve the efficiency of the configuration of the brand color for the online display object is a problem to be solved.
Disclosure of Invention
The color data recommendation method provided by the embodiment of the application solves the problem that the configuration efficiency of colors displayed on an online interface is low.
The embodiment of the application provides a color data recommendation method, which comprises the following steps: acquiring a color value sent by a terminal corresponding to an entity object, and converting the color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data; if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal.
Optionally, if the saturation data is not within a first preset range and the brightness data is not within a second preset range, adjusting the saturation data and the brightness data to obtain recommended second color data, including: taking the hue data as a hue value of second color data; determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value; determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value; setting at least one saturation recommendation value according to the saturation basic value and the first step length; and obtaining at least one recommended second color data according to the hue value, the at least one saturation recommended value and the brightness basic value.
Optionally, if the saturation data is not within the first preset range but the brightness data is within the second preset range, adjusting the saturation data to obtain recommended second color data, including: taking the hue data as a hue value of second color data; taking the brightness data as a brightness value of second color data; determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value; setting at least one saturation recommendation value in the first preset range according to the saturation basic value and the first step length; and obtaining at least one recommended second color data according to the hue value, the brightness value and the at least one saturation recommended value.
Optionally, if the saturation data is within a first preset range, but the brightness data is not within a second preset range, adjusting the brightness data to obtain recommended second color data: taking the hue data as a hue value of second color data; taking the saturation data as a saturation value of second color data; determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value; setting at least one brightness recommendation value within the second preset range according to the brightness basic value and the second step length; and obtaining at least one recommended second color data according to the hue value, the saturation value and the at least one brightness recommended value.
Optionally, the sending of the recommended second color data to the terminal includes: mapping the second color data to a recommended color value; and sending the recommended color value to the terminal.
Optionally, the method further includes: receiving selection information aiming at a target color value in the recommended color values sent by a terminal; and generating a display color instruction according to the color value corresponding to the selection information, and sending the display color instruction to the applet used for the entity object operation.
Optionally, the method further includes: and if the saturation data is determined not to be in the first preset range and/or the brightness data is determined not to be in the second preset range, sending prompt information that the color setting is unqualified to the terminal.
Optionally, the method further includes: if the saturation data is lower than a first threshold value of a first preset range or higher than a second threshold value of the first preset range, determining that the saturation data is not in the first preset range; the first threshold is less than the second threshold.
Optionally, the method further includes: if the brightness data is lower than a third threshold value of a second preset range or higher than a fourth threshold value of the second preset range, determining that the brightness data is not in the second preset range; the third threshold is less than the fourth threshold.
Optionally, the method further includes: receiving selection information aiming at target color data in the second color data, which is sent by a terminal; generating a display color instruction according to the target color data, and sending the display color instruction to an applet used for the operation of the entity object; and the electronic equipment used by the user acquires the applet and displays the color corresponding to the target color data on the interface of the electronic equipment.
Optionally, the obtaining a color value sent by a terminal corresponding to the entity object includes: acquiring an image sent by the terminal, and extracting a color value of at least one color from the image; the method further comprises the following steps: determining color data recommended for each of a plurality of regions of a display interface according to the color value of the at least one color; and sending the color data to the terminal.
Optionally, the sending the color data to the terminal includes: determining a color combination of a plurality of regions for displaying the display interface according to the recommended color data for each region; and sending the color combination to the terminal.
Optionally, the method further includes: generating a preview picture of a display interface according to the color combination; and sending the preview picture to the terminal.
The embodiment of the present application further provides a color data recommendation method, including: acquiring an input color value in response to detecting the input operation of a user corresponding to the entity object for the color value; sending the color value to a server; and obtaining second color data recommended for the color values and sent by the server, wherein hue data included in the second color data is the same as hue data included in first color data, the first color data is color data obtained by performing HSB color mode conversion on the color values, saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range.
Optionally, the method further includes: obtaining at least one recommended second color data sent by the server; displaying a color corresponding to the at least one recommended second color data; detecting a selection trigger for a target one of the colors; and sending the selection information corresponding to the detected selection trigger to the server.
Optionally, the method further includes: and acquiring prompt information which is sent by the server and has unqualified color setting, wherein the prompt information with unqualified color setting prompts that the visual difference between the color corresponding to the input color value and the color for displaying the content does not meet the information of the difference threshold.
Optionally, the method further includes: acquiring a color interval within a preset range provided by the server; displaying the color interval on an interface in a color disc form; detecting a selection trigger for a color on the color wheel; and sending the selection information corresponding to the detected selection trigger to the server.
An embodiment of the present application further provides a color data recommendation system, including: a terminal and a server; the terminal is used for responding to the input operation of a user corresponding to the detected entity object aiming at the color value, and acquiring an input first color value; sending the first color value to a server; obtaining at least one recommended second color value aiming at the first color value and sent by the server; displaying a color corresponding to the at least one recommended second color value; responding to the detected selection trigger aiming at the target color in the colors, and sending the selection information corresponding to the selection trigger to the server; the server is used for acquiring a first color value sent by a terminal corresponding to an entity object and converting the first color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data; if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; converting the second color data to a recommended second color value; sending the second color value to the terminal; receiving selection information aiming at a target color value in the second color values, which is sent by the terminal; and generating a display color instruction according to the target color value, and sending the display color instruction to an applet used for the operation of the entity object.
An embodiment of the present application further provides a color data recommendation device, including: the color value input unit is used for acquiring a color value sent by a terminal corresponding to an entity object and converting the color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data; the adjusting unit is used for adjusting the saturation data and/or the brightness data to obtain recommended second color data if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and the recommending unit is used for sending the recommended second color data to the terminal.
An embodiment of the present application further provides a color data recommendation device, including: the color value input unit is used for responding to the input operation of a user corresponding to the detected entity object aiming at the color value, and acquiring the input color value; the sending unit is used for sending the color value to the server; a receiving unit, configured to obtain second color data recommended for the color value and sent by the server, where hue data included in the second color data is the same as hue data included in first color data, the first color data is color data obtained by performing HSB color mode conversion on the color value, saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range.
An embodiment of the present application further provides an interface display method, including: the method comprises the steps that a server side obtains color values sent by a terminal corresponding to an entity object, and converts the color values into first color data in an HSB color mode, wherein the first color data at least comprise hue data, saturation data and brightness data; recommending second color data to the terminal if the saturation data is not within a first preset range and/or the brightness data is not within a second preset range; the terminal sends selection information aiming at target color data in the second color data to the server side; the server generates a display color instruction according to the target color data, and sends the display color instruction to an applet used for the entity object operation; and the electronic equipment used by the user acquires the applet and displays the color corresponding to the target color data on the interface of the electronic equipment.
An embodiment of the present application further provides an electronic device, including: a memory, and a processor; the memory is used for storing a computer program, and the computer program is executed by the processor to execute the method provided by the embodiment of the application.
The embodiment of the present application further provides a storage device, in which a computer program is stored, and the computer program is executed by the processor to perform the method provided in the embodiment of the present application.
Compared with the prior art, the method has the following advantages:
according to the color data recommendation method, the color data recommendation device and the color data recommendation equipment, the color value sent by the terminal corresponding to the entity object is obtained, and the color value is converted into first color data in an HSB color mode; if the saturation data in the first color data is not in a first preset range and/or the brightness data in the first color data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal. And if the color data to be set do not accord with the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
According to the color data recommendation method, the color data recommendation device and the color data recommendation equipment provided by the embodiment of the application, the color data which are in accordance with the preset range are obtained by obtaining the second color data which are recommended according to the color values and sent by the server. The hue data included in the second color data is the same as the hue data included in the first color data, the first color data is color data obtained by performing HSB color mode conversion on the color values, the saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or the brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range. The color data in the qualified range which is automatically recommended when the server detects that the color data input by configuration does not conform to the preset range is obtained, manual review is avoided, and the problem of low configuration efficiency of the color data is solved.
The color data recommendation system provided by the embodiment of the application acquires the input first color value through the terminal and sends the first color value to the server; if the server side determines that the saturation data corresponding to the first color value is not in a first preset range and/or the brightness data corresponding to the first color value is not in a second preset range, the server side adjusts the saturation data and/or the brightness data to obtain recommended second color data and converts the second color data into the recommended second color value; sending the second color value to the terminal; and receiving selection information aiming at the target color value in the second color value sent by the terminal, and determining the target color value. And if the server detects that the color data to be set does not conform to the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
Drawings
FIG. 1 is a system environment diagram of a color data recommendation method provided by an embodiment of the present application;
FIG. 2 is a process flow diagram of a color data recommendation method provided in a first embodiment of the present application;
FIG. 3 is a flow chart of a color data recommendation provided in a first embodiment of the present application;
FIG. 4 is a process flow diagram of a color data recommendation method provided in a second embodiment of the present application;
FIG. 5 is a schematic diagram of a color data recommendation device according to a third embodiment of the present application;
FIG. 6 is a schematic diagram of a color data recommendation device according to a fourth embodiment of the present application;
FIG. 7 is a schematic diagram of a color data recommendation system provided in a fifth embodiment of the present application;
fig. 8 is a process flow diagram of an interface display method according to a sixth embodiment of the present application;
fig. 9 is a schematic diagram of an electronic device provided in the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The embodiment of the application provides a color data recommendation method and device, electronic equipment and storage equipment. The embodiment of the application also provides another color data recommendation method and device, electronic equipment and storage equipment. The embodiment of the application also provides a color data recommendation system. Are illustrated in the following examples.
For ease of understanding, the system environment provided by the embodiments of the present application is first presented. Referring to fig. 1, the drawings include: electronic equipment 101 used by the B terminal, electronic equipment 103 used by the service terminal 102 and the C terminal. The B-end user is a merchant, and provides objects such as goods or services for the C-end user through the service end operation applet. The electronic equipment used by the B terminal can be a computer terminal or a mobile phone. The user at the C end transacts with the B end through the applet to obtain the required object. The electronic equipment used by the C end can be a mobile phone or other electronic equipment. The applet is a lightweight application which is available at any time without installation and uninstallation, namely a private domain applet, and can be used for providing an operation environment for a merchant. The merchant can set the color of the interface display of the applet by using the configuration page displayed by the B-side electronic device, that is, configure the theme color of the applet. As shown in the figure, a screen of the electronic device 101 used by the B-side displays a color value input control, receives a color value input by a merchant, and sends the color value to the service-side 102 after the merchant clicks and confirms the color value. The merchant will typically provide its own brand color to the server, which applies it to the applet interface. When the visual difference between the brand color provided by the merchant and the color of the commodity information displayed on the small program interface is small, the display effect of the interface is affected, and the commodity information to be displayed cannot be highlighted. And the server side judges that if the brand color provided by the merchant does not meet the visual difference requirement, the color is recommended to the electronic equipment used by the B side. The recommended colors are shown on the screen of the electronic device at the B side of the figure, and the color blocks of different gray levels in the figure represent different colors. The server judges whether the saturation and the brightness of the color input by the user at the B end are in a preset range or not, so as to determine whether the visual difference requirement is met or not. If the saturation and the brightness are both within the preset range, the requirement of visual difference is met; and if not, recommending at least one qualified color data to the electronic equipment used by the B terminal by the service terminal, and selectively setting by a merchant to ensure the visual effect of interface display. The color data recommended by the server to the electronic equipment used by the B end keeps the hue corresponding to the color value input by the B end user unchanged, and the saturation and/or the brightness are/is adjusted, so that the color corresponding to the recommended color data is the same color as the color corresponding to the color value input by the B end user, and the brand color of the merchant can still be reflected. And the server generates a display instruction for foreground display according to the color data of which the saturation and brightness are in a preset range and which are finally selected and set by the user at the B end, and applies the color data to the applet according to the display instruction. And when the electronic equipment used by the C terminal acquires the applet and opens the applet, the theme color of the applet interface displayed on the screen is the color which is finally selected and set by the B terminal user and is the same as the brand color, and meanwhile, the color does not influence the commodity information display.
The following describes a color data recommendation method provided in the first embodiment of the present application with reference to fig. 2 and 3. The color data recommendation method shown in fig. 2 includes: step S201 to step S203.
Step S201, obtaining a color value sent by a terminal corresponding to an entity object, and converting the color value into first color data in an HSB color mode, where the first color data at least includes hue data, saturation data, and brightness data.
The entity object is a B-end merchant. The terminal corresponding to the entity object is a terminal used by the entity object, and one example is a terminal used by a merchant. And the merchant enters a configuration page by using the terminal and sends color configuration information to the server. The merchant enters the color values of the color to be configured. The merchant will typically provide color values corresponding to the brand colors, so that the configured colors are expected to reflect the merchant's brand after being used in the applet interface. The color value is a numerical value of an RGB color pattern corresponding to a color, that is, a value of three channels of red, green, and blue. For example, color #839DFF is an RGB value corresponding to blue. The HSB color mode is a mode in which color data is expressed by hue, saturation, and brightness. In the HSB mode, H (hues) represents hue, S (saturation) represents saturation, and B (brightness) represents brightness. The hue is measured on a standard color wheel of 0-360 degrees according to positions. In common use, the hue is identified by a color name, such as red, green, or orange. Black and white leuco phases. The saturation degree indicates the purity of the color, and is gray when it is 0. None of the white, black and other gray colors is saturated. At maximum saturation, each hue has the purest shade. The value range is 0-100%. Luminance is the brightness of a color. When 0, it is black. The maximum brightness is the state of the brightest color. The value range is 0-100%. The higher the values of S and B are, the higher the saturation brightness is, the strong and gorgeous page color is, and the visual stimulation to human eyes is quick and striking effect.
In practical application, the configuration page of the terminal at the B terminal comprises a color value input control and receives a color value input by a user. The terminal detects the input operation of a user corresponding to the entity object aiming at the color value, acquires the input color value and sends the color value to the server. In this step, the server acquires the color value sent by the terminal, and converts the color value into first color data in the HSB color mode, where the first color data at least includes hue data, saturation data, and brightness data. So as to further judge whether the input color value meets the visual requirement of interface display according to the saturation data and the brightness data.
Step S202, if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data includes hue data that is the same as the hue data included in the first color data.
In practical application, when the visual difference between the brand color provided by the merchant and the color of the commodity information displayed on the small program interface is small, the display effect of the interface is affected, and the commodity information to be displayed cannot be highlighted. Therefore, the server side judges that if the color corresponding to the color value does not meet the visual difference requirement, the color is recommended to the electronic equipment used by the B side. In this embodiment, it is specifically determined whether the color value obtained in step S201 meets the visual requirement of interface display according to the saturation data and/or the luminance data. If the saturation and the brightness are both within the preset range, the requirement of visual difference is met; otherwise, the server side recommends at least one qualified color data to the terminal used by the B side, and the merchant selects and sets the color data to ensure the visual effect of the interface display. Specifically, if the saturation data is lower than a first threshold value of a first preset range or higher than a second threshold value of the first preset range, it is determined that the saturation data is not within the first preset range; the first threshold is less than the second threshold. If the brightness data is lower than a third threshold value of a second preset range or higher than a fourth threshold value of the second preset range, determining that the brightness data is not in the second preset range; the third threshold is less than the fourth threshold. Further, if the saturation data is determined not to be in a first preset range and/or the brightness data is determined not to be in a second preset range, prompt information that the color setting is unqualified is sent to the terminal. And the unqualified color setting prompt information prompts that the visual difference between the color corresponding to the input color value and the color for displaying the content does not meet the information of the difference threshold value. For example, when the saturation and brightness corresponding to the color value make the color lighter, the prompt information sent to the terminal includes the following information: the color is lighter, which can affect the interface operation experience and recommend the same color.
In this embodiment, the recommended color data keeps the hue corresponding to the color value input by the B-end user unchanged, and the saturation and/or the brightness are/is adjusted, so that the color corresponding to the recommended color data is the same as the color corresponding to the color value input by the B-end user, and the brand color of the merchant can still be reflected. And the server generates a display instruction for foreground display according to the color data of which the saturation and brightness are in a preset range and which are finally selected and set by the user at the B end, and applies the color data to the applet according to the display instruction. And when the electronic equipment used by the C terminal acquires the applet and opens the applet, the theme color of the applet interface displayed on the screen is the same as the brand color finally selected and set by the B terminal user, and the visual effect of commodity information is not influenced. In practical implementation, if the saturation data is not within a first preset range and the brightness data is not within a second preset range, then: taking the hue data as a hue value of second color data; determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value; determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value; setting at least one saturation recommendation value according to the saturation basic value and the first step length; and obtaining at least one recommended second color data according to the hue value, the at least one saturation recommended value and the brightness basic value. If the saturation data is not within a first preset range, but the brightness data is within a second preset range, then: taking the hue data as a hue value of second color data; taking the brightness data as a brightness value of second color data; determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value; setting at least one saturation recommendation value in the first preset range according to the saturation basic value and the first step length; and obtaining at least one recommended second color data according to the hue value, the brightness value and the at least one saturation recommended value. If the saturation data is within a first preset range, but the brightness data is not within a second preset range, then: taking the hue data as a hue value of second color data; taking the saturation data as a saturation value of second color data; determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value; setting at least one brightness recommendation value within the second preset range according to the brightness basic value and the second step length; and obtaining at least one recommended second color data according to the hue value, the saturation value and the at least one brightness recommended value. For example, the server identifies a corresponding HSB value based on the color values, with a preset range of S saturation of 70 to 90 and a preset range of B brightness of 60 to 90. If the range is exceeded, the color is recommended, and the color recommendation logic is as follows: keeping the hue H unchanged, and recommending corresponding same colors in the preset range to ensure that the brand color of the merchant (namely the color input by the merchant) has a better display effect on an online interface. And if any one of the S and B is low, aligning the low-value single-item value with the qualified value included in the preset range, and recommending 3 gradient values for the item by taking 10 as a unit, wherein the 3 gradient values, the other qualified item value and the H item value generate 3 recommended color data. If the numerical values of the S and the B are both low, aligning the numerical values of the two items to qualified values included in a preset range, recommending 3 gradient numerical values by taking 10 as a unit for the S value, and forming 3 pieces of recommended color data by the B value after being adjusted to the qualified values and the H value which is kept unchanged. Taking the #839DFF input by the B-end user as an example, the converted HSB value is: H227S 49B 90, S is low, S is adjusted to a qualified value of 70 in a preset range, and S values of 80 and 90 are recommended by taking 10 as a step (gradient). The three recommended colors (H227S 70B 90), (H227S 80B 90) and (H227S 90B 90) are blue at the same time, but the colors are deepened according to gradient. As another example, the HSB values after conversion are: (H227S 50B 50), when S and B are both outside the preset range, S and B are adjusted to qualified values S70 and B60 within the preset range. And continuing recommending the numerical value according to the step length by using the adjusted unchanged B S, so as to obtain the following recommended 3 color data: (H227S 70B 60), (H227S 80B 60), and (H227S 90B 60). Of course, the second color data recommended in practice is one set of data or a plurality of sets of data.
Step S203, sending the recommended second color data to the terminal.
In this embodiment, the following processing is specifically included: mapping the second color data to a recommended color value; and sending the recommended color value to the terminal. The terminal obtains at least one recommended second color data sent by the server or a color value obtained by mapping the second color data; displaying the at least one recommended second color data or the color corresponding to the color value; detecting a selection trigger for a target one of the colors; and sending the selection information corresponding to the detected selection trigger to the server. Specifically, the terminal further comprises a color interval within a preset range provided by the server; displaying the color interval on an interface in a color disc form; detecting a selection trigger for a color on the color wheel; and sending the selection information corresponding to the detected selection trigger to the server. The server receives selection information aiming at a target color value in the recommended color values, which is sent by the terminal; and generating a display color instruction according to the color value corresponding to the selection information, and sending the display color instruction to the applet used for the entity object operation. The method provided by the embodiment can meet the customized requirement of displaying colors of online interfaces (such as private domain applet interfaces) of different merchants through the same configuration interface. The server side automatically judges the color value to control the color, and the manual examination cost is reduced. The server side recommends color data based on HSB specifically, and therefore the online interface can have a good experience effect under the condition that no manual audit exists, and meanwhile colors expected to be displayed by merchants can be displayed well. In one embodiment, the B-side configuration page displays a color range color disc in a preset range on the interface, and receives a color clicked by a merchant manually so as to select a color desired to be displayed in a qualified range of colors.
Referring to fig. 3, the color data recommendation process shown in the figure includes: s301, the B-end user enters a B-end configuration page by using the B-end electronic equipment. And S302, inputting a color value by the B-end user in a color value input control of the B-end configuration page, and clicking for confirmation. And the input color value is sent to the server. The input color value is typically the RGB value of the brand color of the B-end user. And S303, converting the color value into an HSB numerical value by the server. S304, the server determines whether S (Saturation) and B (brightness) are within a preset range? S305, if yes, the server side issues a color display instruction to the foreground. The selected color is applied to the applet interface by the show color command. The configuration is completed. If not, then: and aligning the S and B single numerical values with a preset standard, adjusting the S and/or B numerical values by a specific step length, and issuing numerical values in a preset range of a plurality of gradients. Specifically, if both S and B are not within the preset range, S and B are adjusted to align to specific values within the preset range, then B is kept unchanged, and a plurality of S values are given by a specific step length, for example, by 10, thereby obtaining a plurality of recommended color data. If any one of S and B is not in the preset range and the other item is in the preset range, keeping the value of one item in the preset range unchanged, adjusting the value of one item not in the preset range to a specific value in the preset range, and giving a plurality of values in the preset range by a specific step length such as 10 units, thereby obtaining a plurality of recommended color data. The recommended color data is the value of the HSB color mode. And S306, converting the recommended HSB numerical value into a color value by the server. And S307, the B-end user reselects and confirms from the recommended color values. S308, the server side issues a color display instruction to the foreground. The selected color is applied to the applet interface by the show color command. And S308, completing configuration.
In this embodiment, after receiving the recommended second color data, the terminal corresponding to the entity object detects a selection trigger for the target color data in the second color data, sends information of the target color data selected by the merchant to the server, and generates a display color instruction according to the selected target color data by the server, and provides the display color instruction to the applet. And the ordinary user uses the electronic equipment to operate the small program, and the target color data is displayed on the display interface. The method specifically comprises the following steps: receiving selection information aiming at target color data in the second color data, which is sent by a terminal; generating a display color instruction according to the target color data, and sending the display color instruction to an applet used for the operation of the entity object; and the electronic equipment used by the user acquires the applet and displays the color corresponding to the target color data on the interface of the electronic equipment. In practical implementation, the initial color value input by the merchant through the terminal configuration may be extracted from the picture uploaded by the terminal, for example, the theme color of the uploaded picture is extracted, and the color value of the theme color is used as the initial color value of the color setting. The server side recommends color data which can be used for displaying an interface according to the initial color value, can recommend the same color of the initial color value, and can also recommend the adjacent color of the initial color value. For highlighting the visual effect, a contrasting color of the initial color value may of course also be recommended. The initial color value may be one color value or a set of color values. The recommended color data available for displaying the interface may be color data for a plurality of regions of the display interface, one or more color data being recommended for each region. For example, the theme color extracted according to the uploaded picture is yellow, the background color extracted is blue, the color recommended for the shopping cart area of the display interface can be a series of blue with different brightness and/or saturation, and the recommended navigation bar can be a series of yellow with different brightness and/or saturation. The specific way of providing the recommended data to the terminal is not limited, and the series of color data recommended for each region of the display interface may be provided to the terminal, or the color data of each region of the display interface may be collocated, and the combination of the collocated color data may be provided to the terminal, or the collocated color data may be used to generate a preview interface and then provided to the terminal for selection of an entity object. Specifically, the obtaining of the color value sent by the terminal corresponding to the entity object includes: acquiring an image sent by the terminal, and extracting a color value of at least one color from the image; further, the method further comprises: determining color data recommended for each of a plurality of regions of a display interface according to the color value of the at least one color; and sending the color data to the terminal. Wherein the sending the color data to the terminal includes: determining a color combination of a plurality of regions for displaying the display interface according to the recommended color data for each region; and sending the color combination to the terminal. Further, generating a preview picture of a display interface according to the color combination; and sending the preview picture to the terminal.
It should be noted that the methods provided in this embodiment and other embodiments of the present application are not limited to the scenario of the applet, and are also applicable to the display scenario of other pages. Features given in this and other embodiments of the present application may be combined with each other without conflict, and steps S201 and S202 or similar terms do not limit the steps to be performed sequentially.
To this end, a description is given of a method provided in a first embodiment, where the method obtains a color value sent by a terminal corresponding to an entity object, and converts the color value into first color data in an HSB color mode; if the saturation data in the first color data is not in a first preset range and/or the brightness data in the first color data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal. And if the color data to be set do not accord with the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
Based on the above embodiments, a second embodiment of the present application provides another color data recommendation method, which is described below with reference to fig. 4. The color data recommendation method shown in fig. 4 includes: step S401 to step S403.
Step S401, in response to detecting that the user corresponding to the entity object performs an input operation on a color value, acquiring an input color value.
In this embodiment, the configuration page of the terminal at the B-side includes a color value input control for receiving a user input color value. The terminal detects the input operation of a user corresponding to the entity object aiming at the color value, acquires the input color value and sends the color value to the server. The color values are numerical values of an RGB color pattern. The merchant will typically input color values corresponding to the brand colors for the on-line interface, particularly for the interface presentation of the applet interface.
And step S402, sending the color value to a server.
In practical application, a B-end user enters a B-end configuration page by using B-end electronic equipment, inputs a color value through a color value input control of the B-end configuration page, clicks for confirmation, and sends the input color value to a server.
Step S403, obtaining second color data recommended for the color value and sent by the server, where hue data included in the second color data is the same as hue data included in first color data, the first color data is color data obtained by performing HSB color mode conversion on the color value, saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range.
In this embodiment, the server acquires a color value sent by the terminal, and converts the color value into first color data in an HSB color mode, where the first color data at least includes hue data, saturation data, and brightness data. And further judging whether the input color value meets the visual requirement of interface display according to the saturation data and the brightness data. In practical application, when the visual difference between the brand color input by the merchant and the color of the commodity information displayed on the small program interface is small, the display effect of the interface is affected, and the commodity information to be displayed cannot be highlighted. Therefore, the server side judges that if the color corresponding to the color value does not meet the visual difference requirement, the color is recommended to the electronic equipment used by the B side. In this embodiment, it is specifically determined whether the color value input by the B-end user meets the visual requirement of interface display according to the saturation data and/or the brightness data. If the saturation and the brightness are both within the preset range, the requirement of visual difference is met; otherwise, the server side recommends at least one qualified color data to the terminal used by the B side, and the merchant selects and sets the color data to ensure the visual effect of the interface display. When the color value input by the terminal is unqualified, the terminal acquires color setting unqualified prompt information sent by the server, and the color setting unqualified prompt information prompts that the visual difference between the color corresponding to the input color value and the color for displaying the content does not meet the information of the difference threshold.
In this embodiment, the color data recommended by the server keeps the hue corresponding to the color value input by the B-end user unchanged, and the saturation and/or the brightness are/is adjusted, so that the color corresponding to the recommended color data is the same as the color corresponding to the color value input by the B-end user, and the brand color of the merchant can still be reflected. And the server generates a display instruction for foreground display according to the color data of which the saturation and brightness are in a preset range and which are finally selected and set by the user at the B end, and applies the color data to the applet according to the display instruction. And when the electronic equipment used by the C terminal acquires the applet and opens the applet, the theme color of the applet interface displayed on the screen is the same as the brand color finally selected and set by the B terminal user, and the visual effect of commodity information is not influenced. Specifically, the terminal obtains at least one recommended second color data sent by the server; displaying a color corresponding to the at least one recommended second color data; detecting a selection trigger for a target one of the colors; and sending the selection information corresponding to the detected selection trigger to the server. Specifically, the terminal further comprises a color interval within a preset range provided by the server; displaying the color interval on an interface in a color disc form; detecting a selection trigger for a color on the color wheel; and sending the selection information corresponding to the detected selection trigger to the server. The server receives selection information aiming at a target color value in the recommended color values, which is sent by the terminal; and generating a display color instruction according to the color value corresponding to the selection information, and sending the display color instruction to the applet used for the entity object operation. The method provided by the embodiment can meet the customized requirement of displaying colors of online interfaces (such as private domain applet interfaces) of different merchants through the same configuration interface. The server side automatically judges the color value to control the color, and the manual examination cost is reduced. The server side recommends color data based on HSB specifically, and therefore the online interface can have a good experience effect under the condition that no manual audit exists, and meanwhile colors expected to be displayed by merchants can be displayed well. In one embodiment, the B-side configuration page displays a color range color disc in a preset range on the interface, and receives a color clicked by a merchant manually so as to select a color desired to be displayed in a qualified range of colors.
Thus far, the method provided by the second embodiment is explained. According to the method, the color data which accord with a preset range are obtained by obtaining the second color data which are sent by the server and are recommended aiming at the color values. The hue data included in the second color data is the same as the hue data included in the first color data, the first color data is color data obtained by performing HSB color mode conversion on the color values, the saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or the brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range. And if the server detects that the color data to be set does not conform to the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
A third embodiment of the present application provides a color data recommendation device corresponding to the first embodiment. The device is described below with reference to fig. 5. The color data recommendation apparatus shown in fig. 5 includes:
a color value input unit 501, configured to obtain a color value sent by a terminal corresponding to an entity object, and convert the color value into first color data in an HSB color mode, where the first color data at least includes hue data, saturation data, and luminance data;
an adjusting unit 502, configured to adjust the saturation data and/or the brightness data to obtain recommended second color data if the saturation data is not within a first preset range and/or the brightness data is not within a second preset range; the second color data comprises hue data which is the same as the hue data comprised by the first color data;
a recommending unit 503, configured to send the recommended second color data to the terminal.
Optionally, the adjusting unit 502 is specifically configured to: if the saturation data is not within a first preset range and the brightness data is not within a second preset range, taking the hue data as a hue value of second color data; determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value; determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value; setting at least one saturation recommendation value according to the saturation basic value and the first step length; and obtaining at least one recommended second color data according to the hue value, the at least one saturation recommended value and the brightness basic value.
Optionally, the adjusting unit 502 is specifically configured to: if the saturation data is not in a first preset range but the brightness data is in a second preset range, taking the hue data as a hue value of second color data; taking the brightness data as a brightness value of second color data; determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value; setting at least one saturation recommendation value in the first preset range according to the saturation basic value and the first step length; and obtaining at least one recommended second color data according to the hue value, the brightness value and the at least one saturation recommended value.
Optionally, the adjusting unit 502 is specifically configured to: if the saturation data is within a first preset range but the brightness data is not within a second preset range, taking the hue data as a hue value of second color data; taking the saturation data as a saturation value of second color data; determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value; setting at least one brightness recommendation value within the second preset range according to the brightness basic value and the second step length; and obtaining at least one recommended second color data according to the hue value, the saturation value and the at least one brightness recommended value.
Optionally, the recommending unit 503 is specifically configured to: mapping the second color data to a recommended color value; and sending the recommended color value to the terminal.
Optionally, the recommending unit 503 is specifically configured to: receiving selection information aiming at a target color value in the recommended color values sent by a terminal; and generating a display color instruction according to the color value corresponding to the selection information, and sending the display color instruction to the applet used for the entity object operation.
Optionally, the recommending unit 503 is specifically configured to: and if the saturation data is determined not to be in the first preset range and/or the brightness data is determined not to be in the second preset range, sending prompt information that the color setting is unqualified to the terminal.
Optionally, the adjusting unit 502 is specifically configured to: if the saturation data is lower than a first threshold value of a first preset range or higher than a second threshold value of the first preset range, determining that the saturation data is not in the first preset range; the first threshold is less than the second threshold.
Optionally, the adjusting unit 502 is specifically configured to: if the brightness data is lower than a third threshold value of a second preset range or higher than a fourth threshold value of the second preset range, determining that the brightness data is not in the second preset range; the third threshold is less than the fourth threshold.
Optionally, the adjusting unit 502 is further configured to: receiving selection information aiming at target color data in the second color data, which is sent by a terminal; generating a display color instruction according to the target color data, and sending the display color instruction to an applet used for the operation of the entity object; further, the device further comprises a display unit, wherein the display unit can be applied to electronic equipment used by a user, and is used for acquiring the applet and displaying the color corresponding to the target color data on an interface of the electronic equipment.
Optionally, the color value input unit 501 is specifically configured to: acquiring an image sent by the terminal, and extracting a color value of at least one color from the image; the recommending unit 503 is specifically configured to: determining color data recommended for each of a plurality of regions of a display interface according to the color value of the at least one color; and sending the color data to the terminal.
Optionally, the recommending unit 503 is specifically configured to: determining a color combination of a plurality of regions for displaying the display interface according to the recommended color data for each region; and sending the color combination to the terminal.
Optionally, the recommending unit 503 is specifically configured to: generating a preview picture of a display interface according to the color combination; and sending the preview picture to the terminal.
To this end, a device provided in a third embodiment is described, where the device converts a color value into first color data in an HSB color mode by obtaining the color value sent by a terminal corresponding to an entity object; if the saturation data in the first color data is not in a first preset range and/or the brightness data in the first color data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal. And if the color data to be set do not accord with the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
A fourth embodiment of the present application provides another color data recommendation device corresponding to the second embodiment. The device is described below with reference to fig. 6. The color data recommendation apparatus shown in fig. 6 includes:
a color value input unit 601, configured to acquire an input color value in response to detecting an input operation for the color value by a user corresponding to the entity object;
a sending unit 602, configured to send the color value to a server;
a receiving unit 603, configured to obtain second color data recommended for the color value and sent by the server, where hue data included in the second color data is the same as hue data included in first color data, the first color data is color data obtained by performing HSB color mode conversion on the color value, saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range.
Optionally, the receiving unit 603 is specifically configured to: obtaining at least one recommended second color data sent by the server; displaying a color corresponding to the at least one recommended second color data; detecting a selection trigger for a target one of the colors; and sending the selection information corresponding to the detected selection trigger to the server.
Optionally, the receiving unit 603 is specifically configured to: and acquiring prompt information which is sent by the server and has unqualified color setting, wherein the prompt information with unqualified color setting prompts that the visual difference between the color corresponding to the input color value and the color for displaying the content does not meet the information of the difference threshold.
Optionally, the receiving unit 603 is specifically configured to: acquiring a color interval within a preset range provided by the server; displaying the color interval on an interface in a color disc form; detecting a selection trigger for a color on the color wheel; and sending the selection information corresponding to the detected selection trigger to the server.
Up to this point, a description is given of a device provided in a fourth embodiment, which obtains color data that conforms to a preset range by obtaining second color data that is recommended for the color values and sent by the server. The hue data included in the second color data is the same as the hue data included in the first color data, the first color data is color data obtained by performing HSB color mode conversion on the color values, the saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or the brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range. And if the server detects that the color data to be set does not conform to the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
Based on the above embodiments, a fifth embodiment of the present application provides a color data recommendation system. The system is described below in conjunction with fig. 7. The color data recommendation system shown in fig. 7 includes: a terminal 701 and a server 702;
the terminal is used for responding to the input operation of a user corresponding to the detected entity object aiming at the color value, and acquiring an input first color value; sending the first color value to a server; obtaining at least one recommended second color value aiming at the first color value and sent by the server; displaying a color corresponding to the at least one recommended second color value; and responding to the detected selection trigger aiming at the target color in the colors, and sending the selection information corresponding to the selection trigger to the server. The terminal is an electronic device used by a physical object such as a merchant.
The server is used for acquiring a first color value sent by a terminal corresponding to an entity object and converting the first color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data; if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; converting the second color data to a recommended second color value; sending the second color value to the terminal; receiving selection information aiming at a target color value in the second color values, which is sent by the terminal; and generating a display color instruction according to the target color value, and sending the display color instruction to an applet used for the operation of the entity object.
Thus far, the system provided in the fifth embodiment is explained. The system acquires an input first color value through a terminal and sends the input first color value to a server; if the server side determines that the saturation data corresponding to the first color value is not in a first preset range and/or the brightness data corresponding to the first color value is not in a second preset range, the server side adjusts the saturation data and/or the brightness data to obtain recommended second color data and converts the second color data into the recommended second color value; sending the second color value to the terminal; and receiving selection information aiming at the target color value in the second color value sent by the terminal, and determining the target color value. And if the server detects that the color data to be set does not conform to the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
Based on the above embodiments, a sixth embodiment of the present application provides an interface display method, which is described below with reference to fig. 8. The interface display method shown in fig. 8 includes: step S801 to step S804.
Step S801, a server side obtains a color value sent by a terminal corresponding to an entity object, and converts the color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data; and recommending second color data to the terminal if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range.
The entity object is a B-end merchant. And the merchant enters a configuration page by using the terminal and sends color configuration information to the server. The merchant enters the color values of the color to be configured. The merchant may also upload images from which color values are extracted as color values for the color to be configured. The theme color of the image can be extracted, and the background color can also be extracted to obtain the input color value. And if the first color data corresponding to the color values do not meet the preset conditions, recommending second color data to the terminal. For example, if the saturation data is not within a first preset range and/or the brightness data is not within a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal. In practical implementation, the server may also use the input color value as an initial color value, recommend color data that can be used for a display interface, recommend a same color of the initial color value, and recommend a color adjacent to the initial color value. For highlighting the visual effect, a contrasting color of the initial color value may of course also be recommended. The initial color value may be one color value or a set of color values. The recommended second color data is color data usable for displaying the interface, and may be color data for a plurality of regions of the display interface, and one or more color data may be recommended for each region. The specific way of providing the recommended second color data to the terminal by the server is not limited, and the series of color data recommended for each region of the display interface may be provided to the terminal, or the color data of each region of the display interface may be collocated, and the combination of the collocated color data may be provided to the terminal, or the collocated color data may be used to generate a preview interface and then provided to the terminal for selection of an entity object. The method specifically comprises the following steps: acquiring an image sent by the terminal, and extracting a color value of at least one color from the image; determining color data recommended for each of a plurality of regions of a display interface according to the color value of the at least one color; and sending the color data to the terminal. Wherein the sending the color data to the terminal includes: determining a color combination of a plurality of regions for displaying the display interface according to the recommended color data for each region; and sending the color combination to the terminal. Further, generating a preview picture of a display interface according to the color combination; and sending the preview picture to the terminal.
Step S802, the terminal sends selection information for target color data in the second color data to the server.
In this embodiment, the terminal obtains at least one recommended second color data sent by the server or a color value obtained by mapping the second color data; displaying the at least one recommended second color data or the color corresponding to the color value; detecting a selection trigger for a target one of the colors; and sending the selection information corresponding to the detected selection trigger to the server. Specifically, the terminal further comprises a color interval within a preset range provided by the server; displaying the color interval on an interface in a color disc form; detecting a selection trigger for a color on the color wheel; and sending the selection information corresponding to the detected selection trigger to the server.
Step S803, the server generates a display color instruction according to the target color data, and sends the display color instruction to an applet used for the entity object operation.
In this embodiment, the server generates a display instruction for foreground display according to target color data finally selected by a merchant, and applies the color data to an applet according to the display instruction. The customized requirement of displaying colors of online interfaces (such as private domain applet interfaces) of different merchants can be met through the same configuration interface. The server side automatically judges the color value to control the color, and the manual examination cost is reduced.
Step S804, the electronic device used by the user acquires the applet, and displays a color corresponding to the target color data on an interface of the electronic device.
In this embodiment, the C-end user uses the electronic device to run the applet and display the target color data on the display interface. For example, when the electronic device used by the C-end user acquires the applet and opens the applet, the theme color of the applet interface displayed on the screen is the same as the brand color finally selected and set by the B-end user, and the visual effect of the commodity information is not affected.
Thus far, the method provided by the sixth embodiment is explained. The method comprises the steps that an input first color value is obtained through a terminal and sent to a server side; if the server side determines that the saturation data corresponding to the first color value is not in a first preset range and/or the brightness data corresponding to the first color value is not in a second preset range, the server side adjusts the saturation data and/or the brightness data to obtain recommended second color data, and recommends the second color data to the terminal; receiving selection information aiming at target color data in the second color data, which is sent by the terminal, generating a display color instruction according to the target color data, and sending the display color instruction to an applet; and the electronic equipment used by the user acquires the applet and displays the color corresponding to the target color data on the interface of the electronic equipment. And if the server detects that the color data to be set does not conform to the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data displayed on the small program interface.
Based on the above embodiments, a seventh embodiment of the present application provides an electronic device. Fig. 9 is a schematic diagram of the electronic device, which includes: a memory 901, and a processor 902; the memory is used for storing a computer program, and the computer program is executed by the processor to execute the method provided by the embodiment of the application.
To this end, description is made on the electronic device provided in this embodiment, where the electronic device converts a color value into first color data in an HSB color mode by obtaining the color value sent by a terminal corresponding to an entity object; if the saturation data in the first color data is not in a first preset range and/or the brightness data in the first color data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal. And if the color data to be set do not accord with the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
Based on the above embodiments, an eighth embodiment of the present application provides a storage device, and please refer to the corresponding description of the above embodiments for related parts. The schematic diagram of the storage device is similar to fig. 9. The storage device stores a computer program, and the computer program is executed by the processor to execute the method provided by the embodiment of the application.
To this end, the storage device provided in this embodiment is described, where the storage device stores an instruction, and the instruction converts a color value into first color data in an HSB color mode by obtaining the color value sent by a terminal corresponding to an entity object; if the saturation data in the first color data is not in a first preset range and/or the brightness data in the first color data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; and sending the recommended second color data to the terminal. And if the color data to be set do not accord with the preset range, automatically recommending the color data in the qualified range, avoiding manual review and solving the problem of low configuration efficiency of the color data.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.

Claims (10)

1. A color data recommendation method, comprising:
acquiring a color value sent by a terminal corresponding to an entity object, and converting the color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data;
if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data;
and sending the recommended second color data to the terminal.
2. The method of claim 1, wherein if the saturation data is not within a first predetermined range and the brightness data is not within a second predetermined range, adjusting the saturation data and the brightness data to obtain recommended second color data comprises:
taking the hue data as a hue value of second color data;
determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value;
determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value;
setting at least one saturation recommendation value according to the saturation basic value and the first step length;
and obtaining at least one recommended second color data according to the hue value, the at least one saturation recommended value and the brightness basic value.
3. The method of claim 1, wherein if the saturation data is not within a first predetermined range but the brightness data is within a second predetermined range, adjusting the saturation data to obtain recommended second color data comprises:
taking the hue data as a hue value of second color data;
taking the brightness data as a brightness value of second color data;
determining a saturation base value which is within a preset saturation adjustment range and meets the first preset range with the saturation data difference value;
setting at least one saturation recommendation value in the first preset range according to the saturation basic value and the first step length;
and obtaining at least one recommended second color data according to the hue value, the brightness value and the at least one saturation recommended value.
4. The method of claim 1, wherein if the saturation data is within a first predetermined range, but the luminance data is not within a second predetermined range, adjusting the luminance data to obtain recommended second color data:
taking the hue data as a hue value of second color data;
taking the saturation data as a saturation value of second color data;
determining a brightness base value which is within a preset brightness adjustment range and meets the second preset range with the brightness data difference value;
setting at least one brightness recommendation value within the second preset range according to the brightness basic value and the second step length;
and obtaining at least one recommended second color data according to the hue value, the saturation value and the at least one brightness recommended value.
5. The method of claim 1, wherein sending the recommended second color data to the terminal comprises:
mapping the second color data to a recommended color value;
and sending the recommended color value to the terminal.
6. The method of claim 5, further comprising:
receiving selection information aiming at a target color value in the recommended color values sent by a terminal;
and generating a display color instruction according to the color value corresponding to the selection information, and sending the display color instruction to the applet used for the entity object operation.
7. The method of claim 1, further comprising:
and if the saturation data is determined not to be in the first preset range and/or the brightness data is determined not to be in the second preset range, sending prompt information that the color setting is unqualified to the terminal.
8. A color data recommendation method, comprising:
acquiring an input color value in response to detecting the input operation of a user corresponding to the entity object for the color value;
sending the color value to a server;
and obtaining second color data recommended for the color values and sent by the server, wherein hue data included in the second color data is the same as hue data included in first color data, the first color data is color data obtained by performing HSB color mode conversion on the color values, saturation data included in the second color data is saturation data obtained by adjusting the saturation data included in the first color data when the saturation data included in the first color data is not within a first preset range, and/or brightness data included in the second color data is brightness data obtained by adjusting the brightness data included in the first color data when the brightness data included in the first color data is not within a second preset range.
9. A color data recommendation system, comprising: a terminal and a server;
the terminal is used for responding to the input operation of a user corresponding to the detected entity object aiming at the color value, and acquiring an input first color value; sending the first color value to a server; obtaining at least one recommended second color value aiming at the first color value and sent by the server; displaying a color corresponding to the at least one recommended second color value; responding to the detected selection trigger aiming at the target color in the colors, and sending the selection information corresponding to the selection trigger to the server;
the server is used for acquiring a first color value sent by a terminal corresponding to an entity object and converting the first color value into first color data in an HSB color mode, wherein the first color data at least comprises hue data, saturation data and brightness data; if the saturation data is not in a first preset range and/or the brightness data is not in a second preset range, adjusting the saturation data and/or the brightness data to obtain recommended second color data; the second color data comprises hue data which is the same as the hue data comprised by the first color data; converting the second color data to a recommended second color value; sending the second color value to the terminal; receiving selection information aiming at a target color value in the second color values, which is sent by the terminal; and generating a display color instruction according to the target color value, and sending the display color instruction to an applet used for the operation of the entity object.
10. An interface display method, comprising:
the method comprises the steps that a server side obtains color values sent by a terminal corresponding to an entity object, and converts the color values into first color data in an HSB color mode, wherein the first color data at least comprise hue data, saturation data and brightness data; recommending second color data to the terminal if the saturation data is not within a first preset range and/or the brightness data is not within a second preset range;
the terminal sends selection information aiming at target color data in the second color data to the server side;
the server generates a display color instruction according to the target color data, and sends the display color instruction to an applet used for the entity object operation;
and the electronic equipment used by the user acquires the applet and displays the color corresponding to the target color data on the interface of the electronic equipment.
CN202010662339.3A 2020-07-10 2020-07-10 Color data recommendation method and device Pending CN111966933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010662339.3A CN111966933A (en) 2020-07-10 2020-07-10 Color data recommendation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010662339.3A CN111966933A (en) 2020-07-10 2020-07-10 Color data recommendation method and device

Publications (1)

Publication Number Publication Date
CN111966933A true CN111966933A (en) 2020-11-20

Family

ID=73361947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010662339.3A Pending CN111966933A (en) 2020-07-10 2020-07-10 Color data recommendation method and device

Country Status (1)

Country Link
CN (1) CN111966933A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001014456A (en) * 1999-04-28 2001-01-19 Fujitsu Ltd Image processing device and program recording medium
CN105335939A (en) * 2014-08-15 2016-02-17 腾讯科技(深圳)有限公司 Image processing method and apparatus
CN108446705A (en) * 2017-02-16 2018-08-24 华为技术有限公司 The method and apparatus of image procossing
CN109472839A (en) * 2018-10-26 2019-03-15 Oppo广东移动通信有限公司 Image generating method and device, computer equipment and computer storage medium
CN110704052A (en) * 2018-07-10 2020-01-17 腾讯科技(深圳)有限公司 Service platform color configuration method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001014456A (en) * 1999-04-28 2001-01-19 Fujitsu Ltd Image processing device and program recording medium
CN105335939A (en) * 2014-08-15 2016-02-17 腾讯科技(深圳)有限公司 Image processing method and apparatus
CN108446705A (en) * 2017-02-16 2018-08-24 华为技术有限公司 The method and apparatus of image procossing
CN110704052A (en) * 2018-07-10 2020-01-17 腾讯科技(深圳)有限公司 Service platform color configuration method and device, storage medium and electronic device
CN109472839A (en) * 2018-10-26 2019-03-15 Oppo广东移动通信有限公司 Image generating method and device, computer equipment and computer storage medium

Similar Documents

Publication Publication Date Title
US9674425B2 (en) Image acquisition method and apparatus
CN104778047A (en) Content display method and terminal
CN101010937A (en) Image correction system and image correction method
US9542703B2 (en) Virtual custom framing expert system
Ruppertsberg et al. Rendering complex scenes for psychophysics using RADIANCE: How accurate can you get?
EP2284736B1 (en) System and method for automated color scheme transformation
CN110865862A (en) Page background setting method and device and electronic equipment
KR20090092035A (en) Method for generating mosaic image and apparatus for the same
KR102360271B1 (en) Methods and devices for determining the color of a text
CN114286172B (en) Data processing method and device
CN111124404A (en) Custom color display method and system
US9536273B2 (en) Simulation method for improving picture quality of image display device and a simulation device therefor
US20130069977A1 (en) Image display method, server and image display system
Park et al. Refined CIECAM02 for bright surround conditions
US8731289B2 (en) Recoloring images of a web page according to a representative color
CN111966933A (en) Color data recommendation method and device
Gong et al. Investigation of perceptual attributes for mobile display image quality
CN109559707B (en) Gamma value processing method and device of display panel and display equipment
CN108845779B (en) Electronic device for adjusting brightness based on image gray scale and brightness adjusting method thereof
WO2009039209A1 (en) Wide luminance range colorimetrically accurate profile generation method
Blankenbach et al. Optimizing and evaluating new automotive HMI image enhancement algorithms under bright light conditions using display reflectance characteristics
Qin et al. Ambient‐light‐adaptive image quality enhancement for full‐color e‐paper displays using a saturation‐based tone‐mapping method
CN111798525A (en) Image data processing method, device, equipment and storage medium, and color chart recommendation method, device and equipment
CN112614195B (en) Thermal image generation method and device and thermal imaging equipment
Ruminski et al. Computerized color processing for dichromats

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