CN114022581A - Data processing method and device, electronic equipment and computer readable storage medium - Google Patents

Data processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114022581A
CN114022581A CN202111012616.7A CN202111012616A CN114022581A CN 114022581 A CN114022581 A CN 114022581A CN 202111012616 A CN202111012616 A CN 202111012616A CN 114022581 A CN114022581 A CN 114022581A
Authority
CN
China
Prior art keywords
image
color
scoring
preset
scored
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
CN202111012616.7A
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.)
Du Xiaoman Technology Beijing Co Ltd
Original Assignee
Du Xiaoman Technology Beijing 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 Du Xiaoman Technology Beijing Co Ltd filed Critical Du Xiaoman Technology Beijing Co Ltd
Priority to CN202111012616.7A priority Critical patent/CN114022581A/en
Publication of CN114022581A publication Critical patent/CN114022581A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The application discloses a data processing method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring an image to be evaluated and first dimension information; determining a first color proportion of the image to be evaluated by utilizing the first dimension information; grading the image to be graded according to the first color proportion and a first preset grading rule to obtain a first grading result; and determining a first target color scheme of the image to be scored based on the first scoring result so as to improve the determination efficiency of determining the color scheme of the image.

Description

Data processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application belongs to the field of image design, and in particular, to a data processing method, apparatus, electronic device, and computer-readable storage medium.
Background
At present, when a user designs colors of an image or a webpage, the user generally relies on the operation of the colors in a color ring to realize color matching and determination, and the user needs to perform multiple color matching adjustments and modifications to determine a color matching scheme meeting aesthetic requirements, which wastes user time and has low efficiency in determining color matching results.
Disclosure of Invention
The embodiment of the application provides an implementation scheme different from that of the prior art so as to solve the technical problem of low efficiency of determining a color collocation result.
In a first aspect, the present application provides a data processing method, including: acquiring an image to be evaluated and first dimension information; determining a first color proportion of the image to be evaluated by utilizing the first dimension information; grading the image to be graded according to the first color proportion and a first preset grading rule to obtain a first grading result; and determining a first target color scheme of the image to be scored based on the first scoring result.
In a second aspect, the present application provides a data processing apparatus comprising: the acquisition module is used for acquiring the image to be evaluated and the first dimension information; the first determining module is used for determining a first color proportion of the image to be scored by utilizing the first dimension information; the scoring module is used for scoring the image to be scored according to the first color proportion and a first preset scoring rule to obtain a first scoring result; and the second determination module is used for determining a first target color scheme of the image to be scored based on the first scoring result.
In a third aspect, the present application provides an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the data processing method of the first aspect or any of the possible implementations of the first aspect via execution of the executable instructions.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data processing method described in the first aspect or any of the possible implementation manners of the first aspect.
In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the data processing method described in the first aspect or any of the possible implementation manners of the first aspect.
The method comprises the steps of obtaining an image to be scored and first dimension information; determining a first color proportion of the image to be evaluated by utilizing the first dimension information; grading the image to be graded according to the first color proportion and a first preset grading rule to obtain a first grading result; and determining the scheme of the first target color scheme of the image to be scored based on the first scoring result, automatically scoring the image input by the user according to a preset rule and determining the target color scheme, thereby improving the determination efficiency of the color scheme.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts. In the drawings:
FIG. 1 is a schematic diagram of a prior art color wheel;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method according to another embodiment of the present application;
FIG. 4 is a block diagram of a data processing system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The terms "first" and "second," and the like in the description, the claims, and the drawings of the embodiments of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At present, a common color matching mode generally depends on a user to operate and determine a color ring according to visual perception, and specifically, the common color matching mode is generally collocated according to the following color matching modes:
1) and (3) contrast color matching: combinations of hues at 180 ° relative positions on the hue circle (including its neighboring colors);
2) matching with the same color: one of the colors is designated, and then the corresponding saturation is adjusted to lighten or deepen the color of the color to generate a new color.
3) Adjacent color matching: and adopting adjacent matching according to the adjacent colors on the color ring.
4) And (3) matching warm colors: the color matching is carried out by using colors such as red, yellow, orange and the like.
5) And (3) cold color matching: green, blue and purple colors are used for matching.
The color matching ring can be seen in fig. 1, when the color matching principle based on the color matching ring is provided for a user to assist the user in color matching, the standard property of final color matching is not available, the conclusion of color matching is obtained only from a basic level, and the user can feel visual fatigue from color matching because of the universality of color use; in addition, the user is required to adjust and modify for multiple times to determine the final required color, which wastes user time and has low efficiency of determining the color matching result.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of a data processing method according to an exemplary embodiment of the present application, where the method includes:
s201, acquiring an image to be evaluated and first dimension information;
s202, determining a first color proportion of the image to be evaluated by utilizing the first dimension information;
s203, scoring the image to be scored according to the first color proportion and a first preset scoring rule to obtain a first scoring result;
and S204, determining a first target color scheme of the image to be scored based on the first scoring result.
Optionally, the image to be scored may be an image for which a user has preliminarily determined a color scheme, and the first dimension information may be any one or more of values corresponding to color (RGB), hue, brightness, purity, and temperature;
the first color ratio in S202 may be a ratio value of the primary color, the secondary color, and the secondary color in the image to be evaluated, corresponding to the first dimension information; specifically, the ranges of the first dimension information corresponding to the primary color, the secondary color, and the secondary color may be determined according to user setting information.
Further, in the aforementioned S203, scoring the image to be scored according to the first color ratio and the first preset scoring rule may include the following steps:
s2031, determining a target proportion range of the first color proportion in a preset proportion range library;
s2032, scoring is carried out on the image to be scored based on the target proportion range and the first preset scoring rule.
Wherein, the preset proportion range library comprises a plurality of proportion ranges, and the first preset scoring rule can be limited with: the grading levels corresponding to different proportion ranges can be divided into a plurality of levels, such as: excellent, good, passing, and bad; the method can also be divided into a level a, a level B, a level C, and a level D, which is not limited in this application. After the target proportion range to which the first color proportion belongs is determined in the preset proportion range library, the target grade corresponding to the target proportion range can be determined according to the grade corresponding relation corresponding to the target proportion range in the first preset grading rule, the target grade is the first grading result of the image to be graded, and the higher the target grade is, the more excellent the color matching of the image to be graded is represented, and the more ideal the color matching scheme is.
Optionally, for the ratio ranges in the preset ratio range library, the grade corresponding to the ratio range closer to a preset golden ratio is higher, where the golden ratio is: dominant color: secondary color: auxiliary color is 60: 30: 10.
further, in order to further refine the scoring result, the first scoring result may further include a specific evaluation score value in addition to the aforementioned ranking result;
that is, the first preset scoring rule may further specify a score correspondence between the first color ratio and the evaluation score, and accordingly, scoring the image to be scored according to the first color ratio and the first preset scoring rule to obtain the first scoring result further includes:
s2033, determining a target score corresponding to the first color proportion according to the corresponding relation between the first color proportion and the score in the first preset scoring rule;
s2034, determining a first scoring result by using the target grade and the target score.
The first scoring result may include the aforementioned target grade and target score, and further, the present application further includes labeling and displaying the first scoring result, so that the user visually observes the quality of the current color scheme of the image input by the user.
Further, the aforementioned different target levels may correspond to different score ranges, such as: grade a corresponds to more than 90 points, grade B corresponds to 80 to 90 points, grade C corresponds to 70 to 80 points, and grade D corresponds to 60 to 70 points.
This application is scored through the rule of grading of predetermineeing to the image of user's input, can be so that the user is after accomplishing the design, whether the colour collocation score of observing the image directly perceived is up to standard to whether the quality of the color collocation of more swift differentiation image accords with the standard, thereby be convenient for further promote on the quality and on the color comfort level, also avoided the user under the already suitable condition of color collocation, owing to judge that the wrong color collocation that transfers makes the quality reduce conversely.
Further, after determining the first scoring result, the method further includes:
taking the image to be evaluated as a reference of a preset optimization model, and executing the optimization model to obtain optimization suggestion information;
and displaying optimization suggestion information.
The optimization model can be a machine learning model determined based on multiple sample image training.
The aforementioned optimization suggestion information may include: the matching suggestion of the primary color, the secondary color and the auxiliary color, the missing hue or hue, the proportion adjustment suggestion of the primary color, the secondary color and the auxiliary color, and the like.
The aforementioned multiple sample images may be determined according to input information of a manager, or images with high reputation may be automatically obtained as sample images, which is not limited in this application.
In particular, the aforementioned collocation suggestions may already specifically include: the matching of complementary colors and similar colors, the two colors are complementary colors and the similar colors are similar colors, and black is suggested as a basic color, a proper amount of bottom layer adjustment can be made, the big data mode is integrated, and the corresponding proportion can be extracted from the bright colors.
Further, with respect to the foregoing S204, determining the first target color scheme of the image to be scored based on the first scoring result includes:
if the first grading result meets the preset regulation, the color scheme corresponding to the first color proportion is used as a first target color scheme;
if the first scoring result does not meet the preset regulation, the first scoring result is judged to be inconsistent with the preset regulation
Acquiring a plurality of preset recommended color schemes;
generating a plurality of color matching result images corresponding to the plurality of recommended color matching schemes by depending on the plurality of recommended color matching schemes and the image to be scored;
a first target color scheme is determined based on a user selection instruction for a plurality of color result images.
When the first scoring result reaches a preset level, the first scoring result is considered to be in accordance with a preset regulation, and when the first scoring result does not reach the preset level, the first scoring result is considered to be not in accordance with the preset regulation, wherein the preset level can be grade A or excellent, and at the moment, the first color proportion belongs to a preset proportion range (the proportion range corresponds to the preset level).
The color scheme corresponding to the first color proportion is the current color scheme of the image to be scored, namely, the color scheme corresponding to the first scoring result, namely, if the first scoring result of the image to be scored is excellent, the color scheme of the image to be scored, which obtains the first scoring result, is used as the first target color scheme, and the first target color scheme is the final scheme of the image to be scored. Wherein the first target color scheme may include: the primary color, the secondary color and the auxiliary color correspond to the proportional value of the first dimension information, and can also comprise complementary color information, color class information, the proportion of black in the image to be evaluated and the like.
The plurality of recommended color schemes may be a plurality of recommended schemes corresponding to the image type of the image to be scored, and in some optional embodiments of the present application, the present application further includes:
acquiring the image type of an image to be evaluated;
and determining a plurality of recommended color schemes corresponding to the image types from a preset scheme library by using the image types.
Wherein, the image type can be the following types: furniture, landscapes, sunsets, posters, spring festival, etc. The correspondence of the different recommended color schemes to the image types may be set by the associated person.
Further, generating a plurality of color match result images corresponding to the plurality of recommended color match schemes in dependence on the plurality of recommended color match schemes and the image to be scored comprises:
obtaining a plurality of third color proportions corresponding to the plurality of recommended color schemes;
and adjusting the colors of the image to be scored according to each third color proportion in the plurality of third color proportions, so that the color proportion of the image to be scored is adjusted from the first color proportion to the corresponding third color proportion, and obtaining the plurality of color matching result images. And recommending a color matching scheme, a third color proportion and a color matching result image in one-to-one correspondence.
Further, the foregoing process of generating a plurality of color matching result images corresponding to a plurality of recommended color schemes may be performed automatically, or may be performed when a trigger instruction of the user is obtained.
The plurality of recommended color schemes in the application can be marked as 'recommended' color schemes for users, and also can be marked as color schemes with corresponding scoring results meeting preset grades, or the scoring results meeting the preset grades and the preset scores, and the recommended color schemes corresponding to the recommended color schemes can meet the requirements of the users more pertinently and efficiently by combining the types of the images.
Further, in order to further improve the determination efficiency of the color scheme, the scheme may further pre-process the image to be scored, and based on this, the method further includes the following steps:
s01, analyzing the image to be scored based on preset parameter information to obtain an analysis result;
and S02, if the analysis result indicates that the image to be scored meets the first scoring requirement, triggering a step of determining the first color proportion of the image to be scored by using the first dimension information.
Specifically, the parameter information may be color depth degree information of the image to be scored, and optionally, the analysis result may be a ratio of the number of pixels in a dark color region to the number of pixels in a light color region in the image to be scored, when the ratio is within a preset range, the image to be scored is considered to meet the first scoring requirement, and when the ratio is not within the preset range, the image to be scored is considered to not meet the first scoring requirement. Wherein, the color value interval that dark color corresponds to and the color value interval that the light color corresponds can be set by the user.
In other alternative embodiments of the present application, the method further comprises:
s21, if the analysis result indicates that the image to be scored does not meet the first scoring requirement, splitting the image to be scored to obtain a plurality of sub-images;
s22, determining whether a target sub-image meeting a second grading requirement exists in the plurality of sub-images, and if yes, grading the target sub-image according to a second preset grading rule to obtain a second grading result;
and S23, determining a second target color scheme of the image to be scored based on the second scoring result.
Specifically, when the image to be scored is split, the image to be scored may be split according to a variety of ways, which is not limited in this application, for example: the images to be scored can be split into the same size according to a preset number of parts, or the images to be scored can be split according to a preset splitting ratio.
Further, the second scoring requirement may be the same as the first scoring requirement, or may be a scoring requirement only for the sub-image, and accordingly, when the second scoring requirement is the same as the first scoring requirement, the second preset scoring rule may be the same as the first preset scoring rule. The principle of scoring the target sub-image according to the second preset scoring rule is the same as the aforementioned principle of scoring the image to be scored according to the first preset scoring rule, and reference may be made to the aforementioned contents specifically, and details are not described here.
And after the second scoring result is obtained, if the second scoring result indicates that the score of the target sub-image meets the preset grade, for example, the score of the target sub-image is excellent, taking the current color scheme of the target sub-image as the second target color scheme of the image to be scored.
Specifically, a fourth color proportion of the target sub-image may be obtained, and the color of the image to be scored is adjusted according to the fourth color proportion, so that the color proportion of the image to be scored is adjusted from the first color proportion to the fourth color proportion.
It should be noted that, when a plurality of target sub-images are obtained, the obtained second target color schemes are multiple, and at this time, the final color scheme of the image to be scored may be further determined according to the selection instruction of the user.
In some optional embodiments of the present application, the method further comprises:
acquiring a grading instruction of a user;
if the grading instruction is a first preset instruction, the step of grading the image to be graded according to the first color proportion and a first preset grading rule is triggered;
if the grading instruction is a second preset instruction, acquiring a third preset grading rule;
and scoring the image to be scored based on a third preset scoring rule to obtain a third scoring result.
Specifically, the first preset instruction may be an instruction corresponding to a first operation button for starting detailed scoring, the second preset instruction may be an instruction corresponding to a second operation button for starting rough scoring, and similar to the first preset scoring rule, the third preset scoring rule may be defined as: the third preset scoring rule and the first preset scoring rule have the same grade, and the proportion range corresponding to the third preset scoring rule is larger than the proportion range of the first preset scoring rule.
It should be noted that the third preset scoring rule is mostly used for rough estimation, and the first preset scoring rule focuses on precise scoring, so that different requirements of users can be met.
Further, in some optional embodiments of the present application, if the first scoring result meets a preset rule, the method further includes:
acquiring an adding instruction of a user;
and adding the images to be scored into the recommended image sets corresponding to the plurality of recommended color schemes according to the adding instruction. And the recommended color schemes correspond to the recommended images in the recommended image set one by one.
The application provides a visual color matching scoring and labeling scheme, and the problem of UI design color matching selection matching is reduced by utilizing the speciality of color matching and different color labeling characteristics; the comfort of the user and the product is improved, and the determination efficiency of the color scheme is also improved.
Fig. 3 is a schematic flow chart of a data processing method according to another embodiment of the present application, where the data processing method includes:
s31, starting;
specifically, after the user inputs the image to be scored, a program is started;
s32, judging whether the image to be scored meets the first scoring requirement, if so, executing the following step S33, and if not, executing the following step S321;
s33, acquiring a scoring instruction of a user, and judging whether the scoring instruction is a first preset instruction, if so, executing a step S34, and if not, executing a step S331;
s321, splitting the image to be scored to obtain a plurality of sub-images;
s322, determining whether a target sub-image meeting a second grading requirement exists in the plurality of sub-images, and if so, grading the target sub-image according to a second preset grading rule to obtain a second grading result;
s34, determining a first color proportion of the image to be scored by using the first dimension information;
s35, scoring the image to be scored according to the first color proportion and a first preset scoring rule to obtain a first scoring result;
and S36, marking a target scoring result.
S331, acquiring a third preset scoring rule;
s332, scoring the image to be scored based on a third preset scoring rule to obtain a third scoring result.
Specifically, the corresponding execution flow of fig. 3 may be as shown in fig. 3, and the target scoring result in S36 may be any one of a first scoring result, a second scoring result, and a third scoring result. Further, the number of the images to be scored may be multiple, and accordingly, the target scoring result may be any one or more of the first scoring result, the second scoring result, and the third scoring result, that is, the scoring result corresponding to each image to be scored may be labeled, so as to further improve the determination efficiency of the color scheme of the multiple images.
For details of the present embodiment, reference may be made to the foregoing description, and details are not described herein.
FIG. 4 is a block diagram of a data processing system according to an exemplary embodiment of the present application;
wherein, this system includes: a design color matching module 41, a submission module 42, a division module 43, a settlement module 44 and a labeling module 45; wherein:
the design color matching module 41 is configured to perform the aforementioned step S203;
the reporting module 42 is configured to perform the steps S201 and S202;
the dividing module 43 may be configured to perform the aforementioned steps: s21 and S22;
the settlement module 44 is operable to perform the aforementioned step S204;
the annotation module 45 can be used for displaying the first scoring result, or the second scoring result.
For details of the present embodiment, reference may be made to the foregoing description, and details are not described herein.
Fig. 5 is a schematic structural diagram of a data processing apparatus according to an exemplary embodiment of the present application;
wherein, the device includes: an acquisition module 51, a first determination module 52, a scoring module 53, and a second determination module 54; wherein:
an obtaining module 51, configured to obtain an image to be evaluated and first dimension information;
the first determining module 52 is configured to determine a first color ratio of the image to be scored by using the first dimension information;
the scoring module 53 is configured to score the image to be scored according to the first color proportion and a first preset scoring rule, so as to obtain a first scoring result;
and a second determining module 54, configured to determine a first target color scheme of the image to be scored based on the first scoring result.
Optionally, the apparatus is further configured to:
analyzing the image to be scored based on preset parameter information to obtain an analysis result;
and if the analysis result indicates that the image to be scored meets the first scoring requirement, triggering a step of determining the first color proportion of the image to be scored by using the first dimension information.
Optionally, the apparatus is further configured to:
if the analysis result indicates that the image to be scored does not meet the first scoring requirement, splitting the image to be scored to obtain a plurality of sub-images;
determining whether a target sub-image meeting a second grading requirement exists in the plurality of sub-images, if so, grading the target sub-image according to a second preset grading rule to obtain a second grading result;
and determining a second target color scheme of the image to be scored based on the second scoring result.
Optionally, the apparatus is further configured to:
acquiring a grading instruction of a user;
if the grading instruction is a first preset instruction, the step of grading the image to be graded according to the first color proportion and a first preset grading rule is triggered;
if the grading instruction is a second preset instruction, acquiring a third preset grading rule;
and scoring the image to be scored based on a third preset scoring rule to obtain a third scoring result.
Optionally, when the foregoing second determining module 52 is configured to determine the first target color scheme of the image to be scored based on the first scoring result, specifically to:
if the first grading result meets the preset regulation, the color scheme corresponding to the first color proportion is used as a first target color scheme;
if the first scoring result does not meet the preset regulation, the first scoring result is judged to be inconsistent with the preset regulation
Acquiring a plurality of preset recommended color schemes;
generating a plurality of color matching result images corresponding to the plurality of recommended color matching schemes by depending on the plurality of recommended color matching schemes and the image to be scored;
a first target color scheme is determined based on a user selection instruction for a plurality of color result images.
Optionally, when the scoring module 53 is configured to score the image to be scored according to the first color ratio and the first preset scoring rule, the scoring module is specifically configured to:
determining a target proportion range to which the first color proportion belongs in a preset proportion range library;
and scoring the image to be scored based on the target proportion range and a first preset scoring rule.
Optionally, if the first scoring result meets a preset rule, the apparatus is further configured to:
acquiring an adding instruction of a user;
and adding the images to be scored into the image sets corresponding to the plurality of recommended color schemes according to the adding instruction.
It is to be understood that apparatus embodiments and method embodiments may correspond to one another and that similar descriptions may refer to method embodiments. To avoid repetition, further description is omitted here. Specifically, the apparatus may perform the method embodiment, and the foregoing and other operations and/or functions of each module in the apparatus are respectively corresponding flows in each method in the method embodiment, and for brevity, are not described again here.
The apparatus of the embodiments of the present application is described above in connection with the drawings from the perspective of functional modules. It should be understood that the functional modules may be implemented by hardware, by instructions in software, or by a combination of hardware and software modules. Specifically, the steps of the method embodiments in the present application may be implemented by integrated logic circuits of hardware in a processor and/or instructions in the form of software, and the steps of the method disclosed in conjunction with the embodiments in the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. Alternatively, the software modules may be located in random access memory, flash memory, read only memory, programmable read only memory, electrically erasable programmable memory, registers, and the like, as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps in the above method embodiments in combination with hardware thereof.
Fig. 6 is a schematic block diagram of an electronic device provided in an embodiment of the present application, where the electronic device may include:
a memory 601 and a processor 602, the memory 601 being adapted to store computer programs and to transfer the program codes to the processor 602. In other words, the processor 602 may call and run a computer program from the memory 601 to implement the method in the embodiment of the present application.
For example, the processor 602 may be configured to perform the above-described method embodiments according to instructions in the computer program.
In some embodiments of the present application, the processor 602 may include, but is not limited to:
general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like.
In some embodiments of the present application, the memory 601 includes, but is not limited to:
volatile memory and/or non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (DDR SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
In some embodiments of the present application, the computer program may be partitioned into one or more modules, which are stored in the memory 601 and executed by the processor 602 to perform the methods provided herein. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, the instruction segments describing the execution of the computer program in the electronic device.
As shown in fig. 6, the electronic device may further include:
a transceiver 603, the transceiver 603 being connectable to the processor 602 or the memory 601.
The processor 602 may control the transceiver 603 to communicate with other devices, and specifically, may transmit information or data to the other devices or receive information or data transmitted by the other devices. The transceiver 503 may include a transmitter and a receiver. The transceiver 603 may further include antennas, and the number of antennas may be one or more.
It should be understood that the various components in the electronic device are connected by a bus system that includes a power bus, a control bus, and a status signal bus in addition to a data bus.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, may implement the method of the above-described method embodiments. In other words, the present application also provides a computer program product containing instructions, which when executed by a computer, cause the computer to execute the method of the above method embodiments.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application occur, in whole or in part, when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Video Disk (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the module is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. For example, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method, comprising:
acquiring an image to be evaluated and first dimension information;
determining a first color proportion of the image to be evaluated by utilizing the first dimension information;
grading the image to be graded according to the first color proportion and a first preset grading rule to obtain a first grading result;
and determining a first target color scheme of the image to be scored based on the first scoring result.
2. The method of claim 1, further comprising:
analyzing the image to be evaluated based on preset parameter information to obtain an analysis result;
and if the analysis result indicates that the image to be scored meets a first scoring requirement, triggering a step of determining a first color proportion of the image to be scored by using the first dimension information.
3. The method of claim 2, further comprising:
if the analysis result indicates that the image to be scored does not meet the first scoring requirement, splitting the image to be scored to obtain a plurality of sub-images;
determining whether a target sub-image meeting a second grading requirement exists in the plurality of sub-images, if so, grading the target sub-image according to a second preset grading rule to obtain a second grading result;
and determining a second target color scheme of the image to be scored based on the second scoring result.
4. The method of claim 2, further comprising:
acquiring a grading instruction of a user;
if the grading instruction is a first preset instruction, a step of grading the image to be graded according to the first color proportion and the first preset grading rule is triggered;
if the scoring instruction is a second preset instruction, acquiring a third preset scoring rule;
and scoring the image to be scored based on the third preset scoring rule to obtain a third scoring result.
5. The method of claim 2, wherein determining a first target color scheme for the image to be scored based on the first scoring result comprises:
if the first grading result meets the preset regulation, taking the color scheme corresponding to the first color proportion as the first target color scheme;
if the first grading result does not accord with the preset regulation, the first grading result is judged to be qualified
Acquiring a plurality of preset recommended color schemes;
generating a plurality of color matching result images corresponding to the plurality of recommended color matching schemes by depending on the plurality of recommended color matching schemes and the image to be scored;
determining the first target color scheme based on a user selection instruction for the plurality of color matching result images.
6. The method according to claim 1, wherein scoring the image to be scored according to the first color ratio and the first preset scoring rule comprises:
determining a target proportion range to which the first color proportion belongs in a preset proportion range library;
and scoring the image to be scored based on the target proportion range and the first preset scoring rule.
7. The method of claim 5, wherein if the first scoring result meets a predetermined criterion, the method further comprises:
acquiring an adding instruction of a user;
and adding the images to be scored into the image sets corresponding to the plurality of recommended color schemes according to the adding instruction.
8. A data processing apparatus, comprising:
the acquisition module is used for acquiring the image to be evaluated and the first dimension information;
the first determining module is used for determining a first color proportion of the image to be scored by utilizing the first dimension information;
the scoring module is used for scoring the image to be scored according to the first color proportion and a first preset scoring rule to obtain a first scoring result;
and the second determination module is used for determining a first target color scheme of the image to be scored based on the first scoring result.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202111012616.7A 2021-08-31 2021-08-31 Data processing method and device, electronic equipment and computer readable storage medium Pending CN114022581A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111012616.7A CN114022581A (en) 2021-08-31 2021-08-31 Data processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111012616.7A CN114022581A (en) 2021-08-31 2021-08-31 Data processing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114022581A true CN114022581A (en) 2022-02-08

Family

ID=80054343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111012616.7A Pending CN114022581A (en) 2021-08-31 2021-08-31 Data processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114022581A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883519A (en) * 2023-06-21 2023-10-13 海通证券股份有限公司 Method, device, equipment and medium for matching trend chart

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883519A (en) * 2023-06-21 2023-10-13 海通证券股份有限公司 Method, device, equipment and medium for matching trend chart

Similar Documents

Publication Publication Date Title
US10779724B2 (en) Systems and methods for dynamically modifying visual content to account for user visual impairment
CN104778047B (en) A kind of content display method and terminal
US10467776B2 (en) Information processing method and apparatus, terminal, and storage medium
US9041724B2 (en) Methods and apparatus for color rendering
CN105957125B (en) A kind of processing method and mobile terminal of icon text
US11462002B2 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
CN104636726A (en) Method and device for identifying image colors and terminal
WO2023124722A1 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
CN105912321A (en) Word color setting method and device
JP2020518086A5 (en)
CN106155483A (en) Display packing and terminal
CN104157261A (en) Display mode adjusting method of display device and display mode adjusting module thereof
CN109756718A (en) Color antidote and device
CN114022581A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN114611030A (en) Page color adjusting method and device, storage medium and electronic equipment
Yanagida et al. Color scheme adjustment by fuzzy constraint satisfaction for color vision deficiencies
CN107239250A (en) One kind regulation screen display method, device and its mobile terminal
CN103731649A (en) Image color temperature adjusting device and method and smart television
CN112541955A (en) Image processing method, device and equipment
JP4470745B2 (en) Color processing method, color matching characteristic acquisition device, color processing device, and program
CN113360820B (en) Page display method, system, equipment and storage medium
Kim et al. Crowdcolor: Crowdsourcing color perceptions using mobile devices
US11232596B2 (en) Search quality improvement using color synonyms
Panchaud et al. Smart cartographic background symbolization for map mashups in geoportals: A proof of concept by example of landuse representation
US20230401749A1 (en) Skin color assessment and color pigment mixing recommendation for cosmetic applications

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