Image data processing, color card recommendation method, device, equipment and storage medium

By extracting the original theme color and color difference information of the image and updating the image color in combination with the target theme color, the problem of not being able to quickly change the image color in the prior art is solved, and rapid color transformation is achieved while retaining the image structure.

CN111798525BActive Publication Date: 2025-06-06ALIBABA GROUP HOLDING LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910276906.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-08
Publication Date
2025-06-06
Estimated Expiration
2039-04-08

AI Technical Summary

Technical Problem

In the prior art, computer devices cannot quickly change image colors while retaining the original pattern and texture of the image.

Method used

By extracting the original subject color on the image to be processed, the chromatic aberration information of the image is determined, and the image color is updated according to the chromatic aberration information and the target subject color, so as to achieve rapid color change.

Benefits of technology

While retaining the pattern, texture and graphic structure of the image, it realizes rapid change of image colors, avoiding the problem of image distortion during color transformation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111798525B_ABST
    Figure CN111798525B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an image data processing, color card recommendation method, device, equipment and storage medium. In the image data processing method provided by the embodiment of the present application, at least one original theme color is obtained from the image to be processed, and the color difference information on the image to be processed is determined based on the at least one original theme color; then, based on the color difference information and at least one target theme color, the color of the image to be processed is updated. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the pattern, texture and / or pattern and other graphic structures on the image to be processed while performing color transformation on the image to be processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image data processing, color card recommendation method, device, equipment and storage medium. Background Art

[0002] With the development of computer technology, people can now use computer equipment to automatically design various types of pictures, such as posters, product display pictures, magazine covers, etc.

[0003] However, in the prior art, computer devices usually rely on user-specified colors to design the color of a picture, and it is not possible to quickly change the color of a picture while retaining the original pattern and texture of the image. Therefore, a new solution is needed. Summary of the invention

[0004] Multiple aspects of the present application provide an image data processing, color card recommendation method, device, equipment and storage medium for quickly changing the color of an image while retaining the image texture.

[0005] An embodiment of the present application provides an image data processing method, comprising: extracting at least one original theme color on an image to be processed; determining color difference information on the image to be processed based on the at least one original theme color; and updating the color of the image to be processed based on the color difference information and at least one specified target theme color.

[0006] An embodiment of the present application also provides a color card recommendation method, including: obtaining an HSV color vector corresponding to a theme color on an original color card; adjusting a color component H in the HSV color vector according to a set adjustment amount of the color component H; generating a new theme color based on the HSV color vector after the color component H is adjusted; and outputting a new color card containing the new theme color.

[0007] The embodiment of the present application also provides an image data processing device, including: a theme color extraction module, used to extract at least one original theme color on the image to be processed; a color difference determination module, used to determine the color difference information on the image to be processed based on the at least one original theme color; a color transformation module, used to update the color of the image to be processed based on the color difference information and at least one specified target theme color.

[0008] An embodiment of the present application also provides an image data processing device, comprising: a memory and a processor; wherein the memory is used to store one or more computer instructions; the processor is used to execute the one or more computer instructions to: extract at least one original theme color on the image to be processed; determine color difference information on the image to be processed based on the at least one original theme color; and update the color of the image to be processed based on the color difference information and at least one specified target theme color.

[0009] The embodiment of the present application also provides a computer-readable storage medium storing a computer program, which, when executed, can implement the image data processing method performed by the image data processing device provided in the embodiment of the present application.

[0010] The embodiment of the present application also provides a color card recommendation device, including: an input module, used to obtain the HSV color vector corresponding to the theme color on the original color card; a color transformation module, used to adjust the color component H in the HSV color vector according to the set adjustment amount of the color component H; generate a new theme color according to the HSV color vector after the color component H is adjusted; an output module, used to output a new color card containing the new theme color.

[0011] An embodiment of the present application also provides a color card recommendation device, comprising: a memory and a processor; wherein the memory is used to store one or more computer instructions; the processor is used to execute the one or more computer instructions to: obtain an HSV color vector corresponding to a theme color on an original color card; adjust the color component H in the HSV color vector according to a set adjustment amount of the color component H; generate a new theme color according to the HSV color vector after the color component H is adjusted; and output a new color card containing the new theme color.

[0012] The embodiment of the present application also provides a computer-readable storage medium storing a computer program, which, when executed, can implement the color card recommendation method performed by the color card recommendation device provided in the embodiment of the present application.

[0013] An embodiment of the present application also provides an image data processing method, including: obtaining an image to be processed; determining color difference information of the image to be processed based on a first theme color on the image to be processed; wherein the first theme color includes a color whose appearance frequency on the image to be processed meets a preset condition; obtaining a second theme color; and updating the color of the image to be processed based on the color difference information and the second theme color.

[0014] In the image data processing method provided by the embodiment of the present application, at least one original theme color is obtained from the image to be processed, and the color difference information on the image to be processed is determined based on the at least one original theme color; then, the color of the image to be processed is updated based on the color difference information and at least one target theme color. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the pattern, texture and / or pattern and other graphic structures on the image to be processed while performing color transformation on the image to be processed. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1 A flowchart of an image data processing method provided by an exemplary embodiment of the present application;

[0017] Figure 2a A flowchart of an image data processing method provided by another exemplary embodiment of the present application;

[0018] Figure 2b It is a schematic representation of the original theme color extracted from the image to be processed;

[0019] Figure 2c An illustration of transforming the original theme color to obtain multiple sets of target theme colors;

[0020] Figure 2d An illustration of obtaining a new image by color migration of pixels on the image to be processed according to the target theme color;

[0021] Figure 3 A flowchart of an image data processing method provided for another exemplary embodiment of the present application;

[0022] Figure 4 A flowchart of a color card recommendation method provided by an exemplary embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of an image data processing device provided for an exemplary embodiment of the present application;

[0024] Figure 6 A schematic structural diagram of an image data processing device provided for another exemplary embodiment of the present application;

[0025] Figure 7 is a structural schematic diagram of an image data processing device provided by an exemplary embodiment of the present application;

[0026] Figure 8is a structural schematic diagram of an image data processing device provided by another exemplary embodiment of the present application;

[0027] Fig. 9 A schematic diagram of the structure of a color card recommendation device provided as an exemplary embodiment of the present application;

[0028] Fig.10 The schematic diagram of the structure of a color card recommendation device provided by an exemplary embodiment of the present application is illustrated. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0030] In view of the technical problem in the prior art that computer devices usually rely on user-specified colors to design the colors of pictures, and are unable to quickly change the colors of pictures while retaining the original patterns and textures of the images, a solution is provided in some embodiments of the present application. The technical solutions provided in each embodiment of the present application are described in detail below in conjunction with the accompanying drawings.

[0031] Figure 1 A flowchart of an image data processing method provided by an exemplary embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:

[0032] Step 101: extract at least one original theme color from the image to be processed.

[0033] Step 102: Determine color difference information on the image to be processed according to the at least one original theme color.

[0034] Step 103: Update the color of the image to be processed according to the color difference information and at least one specified target theme color.

[0035] In this embodiment, the image to be processed may be an image input by a user or an image transmitted by other devices or applications. The image to be processed exhibits a certain graphic structure, which may be embodied by a pattern, texture and / or pattern on the image to be processed. Usually, the image structure is manifested as a color difference between different image regions on the image to be processed, and the color difference may be referred to as color difference. The human eye can obtain information such as the pattern structure on the image to be processed through color difference.

[0036] The theme color, also known as the main color, refers to the color that appears on the image with a frequency greater than or equal to the set frequency threshold. For example, the theme color is used to represent the color on the image.

[0037] The frequency of a color appearing in an image can be counted by the number of pixels corresponding to the color. For example, if the number of pixels corresponding to the color represented by the color vector (255,110,180) is 150, then the frequency of the color appearing in the image is 150 times.

[0038] The frequency threshold can be determined according to actual needs. For example, after calculating the frequency distribution of each color on the image, if the user wants to select a large number of theme colors from the image, a lower frequency threshold can be set according to the frequency distribution interval of the color; conversely, a higher frequency threshold can be set according to the frequency distribution interval of the color. For another example, after calculating the frequency distribution of each color on the image, the user can select a set number of colors from high to low frequency as theme colors.

[0039] The original theme color refers to the theme color on the image to be processed. The original theme colors are superimposed in different proportions to obtain various colors on the image to be processed. For ease of understanding, the process of extracting the original theme color from the image to be processed can be vividly described as: approximately extracting a color palette from the image to be processed, and making the colors in the color palette superimposed on each other to obtain the color on the image to be processed.

[0040] The superposition ratio of the original theme colors is different, and the obtained colors are also different. Based on this, in this embodiment, the color difference of different image areas on the image to be processed can be determined according to the superposition ratio of the at least one original theme color in different image areas of the image to be processed, and the color difference information of the image to be processed can be determined accordingly.

[0041] After determining the color difference information of the image to be processed, next, the color of the image to be processed can be updated according to the color difference information and at least one specified target theme color. The color difference information hides the graphic structure of the image to be processed, such as the pattern, texture and / or pattern. By using the color difference information as the basis for color transformation of the image to be processed, the graphic structure of the image to be processed can be fully considered during the color transformation process to avoid the defect of image distortion caused by the change of the graphic structure of the image to be processed during the color transformation process. The target theme color is different from or not completely the same as the original theme color. New colors can be obtained by superimposing the target theme colors on each other in proportion. Based on the color difference information on the image to be processed and at least one specified target theme color, the color of the image to be processed can be transformed while retaining the graphic structure of the image to be processed.

[0042] In this embodiment, at least one original theme color is obtained from the image to be processed, and the color difference information of the image to be processed is determined based on the at least one original theme color; then, the color of the image to be processed is updated based on the color difference information and at least one target theme color. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the pattern, texture and / or pattern and other graphic structures on the image to be processed while performing color transformation on the image to be processed.

[0043] In the above and below embodiments of the present application, the target theme color may be a theme color specified by a user, or may be a new theme color automatically generated according to an original theme color, which will be described in detail below.

[0044] In some exemplary embodiments, the user may provide a designated color card according to visual needs or design needs, and the color card includes one or more colors. Based on this, when the color of the image to be processed is transformed, at least one target theme color may be obtained from the color card specified by the user, and the color of the image to be processed may be transformed according to the at least one target theme color and the color difference information on the image to be processed, so as to obtain an image whose color meets the user's visual needs or design needs. Optionally, the number of target theme colors and the number of original theme colors may be the same.

[0045] In some other exemplary embodiments, at least one original theme color extracted from the image to be processed may be subjected to color transformation to obtain at least one target theme color. Next, the process of generating the target theme color will be described by taking any theme color of the at least one original theme color as an example.

[0046] For any original theme color of at least one original theme color, the original theme color can be transformed into the HSV (Hue, hue; Saturation, saturation; Value, brightness) color space to obtain the original theme color in the HSV color mode. For example, when the original main color is in the RGB (Red, red; Green, green; Blue, blue) color mode, the original theme color can be transformed from the RGB color space to the HSV color space.

[0047] Next, the value of the color component H in the original theme color of the HSV color model can be adjusted according to the adjustment amount of the color component H corresponding to the original theme color. The HSV color model is a hexagonal cone model, and the color component H is measured by angle. The value of the color component H can be adjusted by rotating it clockwise or counterclockwise. Among them, the adjustment amount of the color component H corresponding to the original theme color can be expressed by the angle value and adjustment direction of the color component H to be adjusted. For example, the typical adjustment amount of the color component H can be expressed as: adjusting 5° clockwise or 3° counterclockwise, which will not be repeated.

[0048] Next, the original theme color of the adjusted HSV color mode is transformed from the HSV color space to the RGB color space. Thus, the color transformation of the original theme color is completed, and the target theme color is obtained. Optionally, in this embodiment, after the color transformation, there is a one-to-one correspondence between the original theme color and the target theme color, and one original theme color can be obtained after the color transformation.

[0049] It should be noted that, in some exemplary embodiments, when color transformation is performed on at least one original theme color, the adjustment amount of the color component H corresponding to different original theme colors can be the same. Furthermore, the color difference between at least one original theme color and the color difference between at least one target theme color can be kept consistent. Based on this, when color transformation is performed on the image to be processed according to the target theme color, the color harmony of the image to be processed can be avoided. For example, after extracting 5 original theme colors from the image to be processed, the 5 original theme colors can be transformed into the HSV color space respectively to obtain the original theme colors of 5 HSV color modes. Then, according to the same adjustment amount of the color component H, the value of the color component H in the original theme colors of the 5 HSV color modes is adjusted to achieve color transformation of the 5 original theme colors. For example, the color component H in the original theme colors of the 5 color modes is rotated 8.5° clockwise or 9° counterclockwise respectively, which will not be repeated.

[0050] In the above and below embodiments of the present application, optionally, a method of updating the color of the image to be processed according to the color difference information on the image to be processed and at least one specified target theme color includes: performing color transfer on the image to be processed according to the at least one target theme color; wherein the color difference of the image to be processed after the color transfer matches the color difference information extracted from the image to be processed before the color transfer. That is, the image to be processed before the color transfer and the image to be processed after the color transfer have the same color difference.

[0051] Among them, color migration refers to the process of changing the color matching of the image to be processed by making the image to be processed learn the color of the target theme color without changing the graphic information expressed by the image to be processed itself. In other words, the image to be processed before color migration and the image to be processed after color migration have different color matching but the same graphic structure.

[0052] An optional implementation of performing color migration on the image to be processed according to the at least one target theme color will be further described below with reference to the accompanying drawings.

[0053] Figure 2a A flowchart of an image data processing method provided by another exemplary embodiment of the present application is shown in FIG. Figure 2a As shown, the method includes:

[0054] Step 201: extract at least one original theme color from the image to be processed.

[0055] Step 202: for any pixel point on the image to be processed, calculate the weight of the at least one original theme color in the color of the pixel point to obtain a theme color weight coefficient corresponding to the pixel point.

[0056] Step 203: Perform color transformation on the at least one original theme color to obtain the at least one target theme color.

[0057] Step 204 : performing a weighted summation of the theme color weight coefficients corresponding to different pixel points on the image to be processed and the at least one target theme color.

[0058] Step 205: Determine new color vectors corresponding to different pixel points on the image to be processed according to the result of the weighted summation.

[0059] In step 201, optionally, in some exemplary embodiments, a k-means clustering algorithm may be used to identify and extract the original theme color on the image to be processed. In this method, the pixels on the image to be processed may be divided into k (k is a positive integer) categories, so that the color difference between the color of the pixels in each category and the color of the central pixel of the category is minimized, and the color corresponding to the central pixel of the category is used as the theme color corresponding to the category.

[0060] Optionally, in some other exemplary embodiments, a color histogram corresponding to the image to be processed may be obtained; wherein the color histogram shows the frequency of occurrence of each color on the image to be processed. Then, the colors in the color histogram may be divided into several color areas according to the color values ​​represented by the horizontal axis in the color histogram, the frequency peaks in each color area may be selected, and the selected frequency peaks may be used as representative colors in the color area. Furthermore, based on the representative colors in the multiple color areas, the theme color corresponding to the image to be processed may be obtained.

[0061] Of course, in addition to the k-means clustering algorithm and the algorithm for extracting the local peak of the color histogram, the median cut method or the octree algorithm can also be used to extract the original theme color from the image to be processed, which will not be described here.

[0062] Figure 2b A schematic diagram of the image to be processed and the original theme color extracted from the image to be processed is given, such as Figure 2b As shown, 11 original theme colors can be extracted from a product promotion poster.

[0063] In step 202, optionally, for any pixel on the image to be processed, a method of calculating the weight of the at least one original theme color in the color of the pixel may include: respectively calculating the distance between the color vector of the pixel and the color vector of each of the at least one original theme colors, and using the normalized value of the distance as the weight of each of the at least one original theme colors in the color of the pixel. This will be described below with reference to a specific example.

[0064] For example, at least one original theme color extracted from the image to be processed includes a first original theme color, a second original theme color, and a third original theme color. For any pixel on the image to be processed, the distance between the color vector of the pixel and the color vector of the first original theme color can be calculated to obtain a first distance S1; the distance between the color vector of the pixel and the color vector of the second original theme color can be calculated to obtain a second distance S2; the distance between the color vector of the pixel and the color vector of the third original theme color can be calculated to obtain a third distance S3. Then, S1, S2, and S3 are normalized to obtain a1=S1 / (S1+S2+S3), a2=S2 / (S1+S2+S3), and a3=S3 / (S1+S2+S3). Among them, a1, a2, and a3 are the weights of the first original theme color, the second original theme color, and the third original theme color in the color of the pixel, respectively, and the theme color weight coefficients corresponding to the pixel can be marked as a1, a2, and a3.

[0065] Optionally, for the convenience of description, the color vector of any pixel on the image to be processed can be marked as C0; the color vectors of at least one original theme color extracted in the previous step are marked as C1, C2, C3...Cn, respectively, and the theme color weight coefficient corresponding to the pixel is marked as a1, a2, a3...an, where n is a positive integer greater than or equal to 1, and the following can be obtained:

[0066] C0=a1*C1+a2*C2+a3*C3...+an*Cn Formula 1

[0067] In step 203, for the convenience of description, at least one target theme color obtained after color transformation of at least one original theme color C1, C1, C3, ... Cn is marked as: C1', C2', C3', ... Cn'.

[0068] Figure 2c Given the Figure 2b The extracted original theme colors are transformed to obtain several groups of target theme colors, wherein the adjustment amount of the color component H corresponding to each group of target theme colors is different.

[0069] In step 204 and step 205, taking any pixel on the image to be processed as an example, optionally, after determining at least one target theme color, a weighted sum can be performed according to the theme color weight coefficient corresponding to the pixel and the at least one target theme color to obtain a new color vector C0' of the pixel, specifically referring to the following formula:

[0070] C0'=a1*C1'+a2*C2'+a3*C3'...+an*Cn' Formula 2

[0071] The target theme color Cn' is obtained by color transformation of the original theme color Cn, and there is a one-to-one correspondence between the two. Therefore, the target theme color Cn' and the original theme color Cn have the same weight an. Based on the above formula 2, the color of each pixel on the processed image can be transferred, thereby achieving the overall color transformation of the processed image.

[0072] In the above implementation of color migration by weighted summation, when the theme color weight coefficients are marked as a sequence {a1, a2, a3 . . . an}, the target theme color may be marked as a sequence {C1', C2', C3' . . . Cn'}.

[0073] In some other embodiments, when weighted summation is performed based on the theme color weight coefficient corresponding to the pixel point and at least one target theme color, the sequence of the target theme colors may be different from {C1', C2', C3'...Cn'}, in other words, the weight an of the target theme color Cn' and its corresponding original theme color Cn may be different. For example, the sequence of the target theme colors may be {Cn', Cn-1', Cn-1'...C1'}, or may also be {Cn', C1', C3'...C2'}, which are not listed here.

[0074] It is worth noting that for different pixels on the image to be processed, the corresponding target theme color sequence should be the same to avoid distortion of the graphic structure of the image to be processed due to color transformation. For example, when the color of the first pixel on the image to be processed is transferred, the theme color weight coefficient corresponding to the first pixel and the target theme color sequence {Cn', Cn-1', Cn-1'...C1'} are weighted and summed. Then, when the color of the second pixel on the image to be processed is transferred, the theme color weight coefficient corresponding to the second pixel and the target theme color sequence {Cn', Cn-1', Cn-1'...C1'} should be weighted and summed. The same is true for other pixels on the image to be processed, which will not be repeated here.

[0075] Figure 2d The new image obtained by color migration of the pixels on the image to be processed according to the target theme color is shown in FIG. Figure 2dAs shown, the color distribution of the new images corresponding to each group of target theme colors is different, but the pattern and graphic structure are consistent.

[0076] In this embodiment, at least one original theme color is obtained from the image to be processed, and the weight of the at least one original theme color in the color of the image to be processed is determined; then, the at least one original theme color is subjected to color transformation to obtain at least one target theme color, and based on the weight and at least one target theme color, the color of the image to be processed is migrated. In this color update method, the weights of the target theme color and the original theme color in the color of the image to be processed remain unchanged, and then, the color difference between different pixels remains consistent before and after the color transformation of the image to be processed, which is conducive to retaining the pattern, texture and / or pattern and other graphic structures on the image to be processed while performing color transformation on the image to be processed.

[0077] The image data processing methods described in the above embodiments are applicable to a variety of application scenarios.

[0078] In a typical application scenario, a user can input a product promotion poster as an image to be processed. When performing a color transformation on a product promotion poster, the original theme color can be extracted from the product promotion poster, and the color difference information on the product promotion poster can be calculated based on the original theme color. Next, the original theme color is transformed to obtain a target theme color, and the color on the product promotion poster is changed based on the color difference information and the target theme color on the product promotion poster to obtain a product promotion poster with different color styles. According to this method, the original theme color can be transformed multiple times to obtain multiple groups of target theme colors, and multiple product promotion posters with different color styles can be generated based on the color difference information on the product promotion poster and each group of target theme colors for the user to choose. Of course, in addition to product promotion posters, color transformation can also be performed on other types of images, which will not be repeated.

[0079] In another typical application scenario, the color conversion method provided in the embodiment of the present application can be used to convert the color of a video. In this application scenario, the user can input the video to be processed. When the color of the video is converted, the video can be framed in advance to obtain each frame of the video, and then the image data processing method provided in the above embodiment is executed for each frame of the video to finally realize the color conversion of the video, which will not be repeated.

[0080] Figure 3 A flowchart of an image data processing method provided by another exemplary embodiment of the present application is shown as follows: Figure 3 As shown, the method includes:

[0081] Step 301: Acquire an image to be processed, wherein the image to be processed includes a first theme color; wherein the first theme color includes a color whose appearance frequency on the image to be processed meets a preset condition.

[0082] Step 302: Determine the color difference information of the image to be processed according to the first theme color.

[0083] Step 303: Get the second theme color.

[0084] Step 304: Update the color of the image to be processed according to the color difference information and the second theme color.

[0085] In some exemplary embodiments, the image to be processed may be an image input by a user. For example, when a user uses the image data processing method provided in this embodiment to change the color of a product poster, the user may input the product poster as the image to be processed.

[0086] In other exemplary embodiments, the image to be processed may be an image transmitted from other devices or applications. For example, after application A completes the poster design, it may send the poster to application B; then, application B may perform color transformation on the poster according to the method provided in this embodiment.

[0087] Among them, the image to be processed includes colors whose occurrence frequency meets the preset conditions. Based on the records of the aforementioned embodiments, the colors whose occurrence frequency meets the preset conditions on the image to be processed can be called the theme colors on the image to be processed. For the convenience of description, this embodiment describes it as the first theme color. It should be understood that the use of "first" to limit the theme color included in the image to be processed is only used to distinguish the theme color on the image to be processed from the second theme color, and the "first" and "second" here do not mean any order of the theme colors.

[0088] As described in the above embodiment, an optional way for the frequency of color occurrence to meet the preset condition can be: the frequency of color occurrence on the image to be processed is greater than or equal to the set frequency threshold. The frequency of color occurrence on the image can be counted by the number of pixels corresponding to the color; the frequency threshold can be determined according to actual needs and will not be repeated here.

[0089] The color difference information is used to describe the color difference between different image regions on the image to be processed, and the color difference between different image regions reflects the graphic structure information such as the pattern, texture and / or pattern of the image to be processed. In this embodiment, after the image to be processed is acquired, the color difference between different image regions on the image to be processed can be determined according to the distribution of the first theme color on the image to be processed on the image to be processed, and the color difference information of the image to be processed can be determined accordingly.

[0090] In some optional embodiments, the weight of the first theme color in the color of each pixel on the image to be processed can be calculated to obtain the theme color weight coefficient corresponding to each pixel on the image to be processed, and the theme color weight coefficient can be used as the color difference information of the image to be processed.

[0091] The second theme color may be a theme color specified by the user, or a new theme color obtained by color transformation based on the first theme color, which is not limited in this embodiment. For example, in some exemplary embodiments, the user may provide a specified color card based on visual needs or design needs, and the color card contains one or more colors as the second theme color. In other exemplary embodiments, the first theme color may be transformed based on the color transformation method described in the aforementioned embodiment to obtain the second theme color, which is not limited in this embodiment.

[0092] It should be understood that in some embodiments, the first theme color includes multiple colors. In this case, the number of colors included in the second theme color should be the same as the number of colors included in the first theme color. Based on this, the image to be processed can have the same or similar color levels before and after the color transformation.

[0093] After obtaining the color difference information of the second theme color and the image to be processed, the color of the image to be processed may be updated according to the color difference information and the second theme color. In some exemplary embodiments, a method of updating the color of the image to be processed according to the color difference information and the second theme color may include: performing color migration on the image to be processed according to the second theme color; wherein the color difference of the image to be processed after the color migration matches the color difference information.

[0094] In the above steps, the theme color weight coefficient corresponding to each pixel on the image to be processed can be obtained, and the theme color weight coefficient is used as the color difference information of the image to be processed. Based on this, when the color of the image to be processed is migrated according to the second theme color, an optional implementation may include: weighted summing the theme color weight coefficients corresponding to different pixels on the image to be processed and the second theme color, and using the result of the weighted summation as the new color vector corresponding to different pixels on the image to be processed. Based on this, the color update of the pixels on the image to be processed is realized.

[0095] In this embodiment, after the image to be processed is obtained, the color difference information of the image to be processed is determined according to the first theme color of the image to be processed; then, based on the color difference information and the obtained second theme color, the color of the image to be processed is updated. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the graphic structure such as the pattern, texture and / or pattern on the image to be processed while performing color transformation on the image to be processed.

[0096] In addition to the image data processing method provided in the above embodiment, the present application also provides a color card recommendation method, such as Figure 4 As shown, the color card recommended method includes:

[0097] Step 401: Obtain the HSV color vector corresponding to the theme color on the primary color card.

[0098] Step 402: Adjust the color component H in the HSV color vector according to the set adjustment amount of the color component H.

[0099] Step 403: Generate a new theme color according to the HSV color vector after the color component H is adjusted.

[0100] Step 404: output a new color card including the new theme color.

[0101] In this embodiment, the theme color on the primary color card may be provided by the user or extracted from the original image, which is not limited in this embodiment.

[0102] When the primary color card includes multiple theme colors, the HSV color vector corresponding to each theme color can be obtained respectively, and the color component H in the HSV color vector corresponding to each theme color can be adjusted according to the set adjustment amount of the color component H. Then, a new theme color is generated according to each HSV color vector after the color component H is adjusted. Based on the new theme color, a new color card can be output. At this point, an intelligent color card recommendation service that automatically recommends a new color card to the user based on the primary color card is realized.

[0103] Optionally, for HSV color vectors corresponding to different theme colors, the adjustment amount of their color component H can be the same. For example, for the HSV color vector corresponding to each theme color, the color component H in the HSV color vector corresponding to each theme color can be rotated clockwise by an angle of α, or counterclockwise by an angle of β, which will not be described in detail. Based on this implementation, the color difference between the theme colors on the original color card and the color difference between the theme colors on the new color card can be kept consistent, which is conducive to recommending a new color card with a color harmony similar to that of the original color card to the user.

[0104] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 201 to 204 can be device A; for another example, the execution subject of steps 201 and 202 can be device A, and the execution subject of step 203 can be device B; and so on.

[0105] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0106] Figure 5 A schematic diagram of the structure of an image data processing device provided for an exemplary embodiment of the present application is shown in FIG. Figure 5 As shown, the device includes: a theme color extraction module 501, a color difference determination module 502 and a color conversion module 503.

[0107] Among them, the theme color extraction module 501 is used to extract at least one original theme color on the image to be processed; the color difference determination module 502 is used to determine the color difference information on the image to be processed based on the at least one original theme color; the color transformation module 503 is used to update the color of the image to be processed based on the color difference information and at least one specified target theme color.

[0108] Further optionally, the device further includes: a target theme color acquisition module 504, which is used to: acquire the at least one target theme color from a color card specified by a user; or perform color transformation on the at least one original theme color to acquire the at least one target theme color.

[0109] Further optionally, when the target theme color acquisition module 504 performs color transformation on the at least one original theme color, it is specifically used to: transform any original theme color of the at least one original theme color into the HSV color space to obtain the original theme color in the HSV color mode; adjust the value of the color component H in the original theme color in the HSV color mode according to the adjustment amount of the color component H corresponding to the original theme color; and transform the adjusted original theme color in the HSV color mode from the HSV color space to the RGB color space.

[0110] Further optionally, in the at least one original theme color, the adjustment amounts of the color components H corresponding to different original theme colors are the same.

[0111] Further optionally, when the color difference determination module 502 determines the color difference information on the image to be processed based on the at least one original theme color, it is specifically used to: for any pixel point on the image to be processed, calculate the weight of the at least one original theme color in the color of the pixel point, and obtain the theme color weight coefficient corresponding to the pixel point; determine the color difference information on the image to be processed based on the theme color weight coefficients corresponding to different pixels on the image to be processed.

[0112] Further optionally, for any pixel point on the image to be processed, when the color difference determination module 502 calculates the weight of the at least one original theme color in the color of the pixel point and obtains the theme color weight coefficient corresponding to the pixel point, it is specifically used to: calculate the distance between the color vector of the pixel point and the color vector of each of the at least one original theme color; and use the normalized value of the distance as the weight of each of the at least one original theme color in the color of the pixel point.

[0113] Further optionally, when the color transformation module 503 updates the color of the image to be processed according to the color difference information and at least one specified target theme color, it is specifically used to: perform color migration on the image to be processed according to the at least one target theme color; wherein the color difference of the image to be processed after color migration matches the color difference information.

[0114] Further optionally, the color transformation module 503 performs color migration on the image to be processed according to the at least one target theme color; wherein, when the color difference of the image to be processed after the color migration matches the color difference information, it is specifically used to: perform weighted summation of the theme color weight coefficients corresponding to different pixel points on the image to be processed and the at least one specified target theme color; and determine new color vectors corresponding to different pixel points on the image to be processed according to the result of the weighted summation.

[0115] In this embodiment, the image data processing device can obtain at least one original theme color from the image to be processed, and determine the color difference information on the image to be processed based on the at least one original theme color; then, based on the color difference information and at least one target theme color, the color of the image to be processed is updated. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the pattern, texture and / or pattern and other graphic structures on the image to be processed while performing color transformation on the image to be processed.

[0116] Figure 6 A structural diagram of an image data processing device provided for another exemplary embodiment of the present application is shown in FIG. Figure 6As shown, the device includes: an image acquisition module 601, a color difference determination module 602, a theme color acquisition module 603 and a color conversion module 604.

[0117] Among them, the image acquisition module 601 is used to acquire the image to be processed, wherein the image to be processed includes a first theme color, wherein the first theme color includes a color whose appearance frequency on the image to be processed meets a preset condition; the color difference determination module 602 is used to determine the color difference information of the image to be processed based on the first theme color; the theme color acquisition module 603 is used to acquire the second theme color; the color transformation module 604 is used to update the color of the image to be processed based on the color difference information and the second theme color.

[0118] Further optionally, when the color transformation module 604 updates the color of the image to be processed according to the color difference information and the second theme color, it is specifically used to: perform color migration on the image to be processed according to the second theme color; wherein the color difference of the image to be processed after color migration matches the color difference information.

[0119] In this embodiment, after the image to be processed is obtained, the color difference information of the image to be processed is determined according to the first theme color of the image to be processed; then, based on the color difference information and the obtained second theme color, the color of the image to be processed is updated. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the graphic structure such as the pattern, texture and / or pattern on the image to be processed while performing color transformation on the image to be processed.

[0120] Figure 7 is a schematic diagram of the structure of an image data processing device provided by an exemplary embodiment of the present application. Figure 7 As shown, the image data processing device includes: a memory 701 and a processor 702 .

[0121] The memory 701 is used to store computer programs and can be configured to store various other data to support operations on the image data processing device. Examples of such data include instructions for any application or method operating on the image data processing device, contact data, phone book data, messages, pictures, videos, etc.

[0122] The processor 702 is coupled to the memory 701 and is used to execute a computer program in the memory 701 to: extract at least one original theme color on the image to be processed; determine color difference information on the image to be processed according to the at least one original theme color; and update the color of the image to be processed according to the color difference information and at least one specified target theme color.

[0123] Further optionally, the processor 702 is further configured to: obtain the at least one target theme color from a color card specified by a user; or perform color transformation on the at least one original theme color to obtain the at least one target theme color.

[0124] Further optionally, when the processor 702 performs color transformation on the at least one original theme color, it is specifically used to: transform any original theme color of the at least one original theme color into the HSV color space to obtain the original theme color in the HSV color mode; adjust the value of the color component H in the original theme color in the HSV color mode according to the adjustment amount of the color component H corresponding to the original theme color; and transform the adjusted original theme color in the HSV color mode from the HSV color space to the RGB color space.

[0125] Further optionally, in the at least one original theme color, the adjustment amounts of the color components H corresponding to different original theme colors are the same.

[0126] Further optionally, when the processor 702 determines the color difference information on the image to be processed based on the at least one original theme color, it is specifically used to: calculate, for any pixel point on the image to be processed, the weight of the at least one original theme color in the color of the pixel point, and obtain the theme color weight coefficient corresponding to the pixel point; determine the color difference information on the image to be processed based on the theme color weight coefficients corresponding to different pixels on the image to be processed.

[0127] Further optionally, for any pixel point on the image to be processed, when the processor 702 calculates the weight of the at least one original theme color in the color of the pixel point and obtains the theme color weight coefficient corresponding to the pixel point, it is specifically used to: calculate the distance between the color vector of the pixel point and the color vector of each of the at least one original theme color; and use the normalized value of the distance as the weight of each of the at least one original theme color in the color of the pixel point.

[0128] Further optionally, when the processor 702 updates the color of the image to be processed according to the color difference information and at least one specified target theme color, it is specifically used to: perform color migration on the image to be processed according to the at least one target theme color; wherein the color difference of the image to be processed after color migration matches the color difference information.

[0129] Further optionally, the processor 702 performs color migration on the image to be processed according to the at least one target theme color; wherein, when the color difference of the image to be processed after color migration matches the color difference information, it is specifically used to: perform weighted summation of the theme color weight coefficients corresponding to different pixel points on the image to be processed and the at least one specified target theme color; and determine, based on the result of the weighted summation, new color vectors corresponding to different pixel points on the image to be processed.

[0130] Further, if Figure 7 As shown, the image data processing device also includes: a communication component 703, a display 704, a power supply component 705 and other components. Figure 7 Only some components are shown schematically, which does not mean that the image data processing device only includes Figure 7 Components shown.

[0131] In this embodiment, the image data processing device can obtain at least one original theme color from the image to be processed, and determine the color difference information on the image to be processed based on the at least one original theme color; then, based on the color difference information and at least one target theme color, the color of the image to be processed is updated. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the pattern, texture and / or pattern and other graphic structures on the image to be processed while performing color transformation on the image to be processed.

[0132] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement each step that can be performed by the image data processing device in the above method embodiment.

[0133] Figure 8 is a structural diagram of an image data processing device provided by another exemplary embodiment of the present application. Figure 8 As shown, the image data processing device includes: a memory 801 and a processor 802 .

[0134] The memory 801 is used to store computer programs and can be configured to store various other data to support operations on the image data processing device. Examples of such data include instructions for any application or method operating on the image data processing device, contact data, phone book data, messages, pictures, videos, etc.

[0135] The processor 802 is coupled to the memory 801 and is used to execute the computer program in the memory 801, so as to: obtain an image to be processed, wherein the image to be processed includes a first theme color, wherein the first theme color includes a color whose appearance frequency on the image to be processed meets a preset condition; determine the color difference information of the image to be processed according to the first theme color; obtain a second theme color; and update the color of the image to be processed according to the color difference information and the second theme color.

[0136] Further optionally, when the processor 802 updates the color of the image to be processed according to the color difference information and the second theme color, it is specifically used to: perform color migration on the image to be processed according to the second theme color; wherein the color difference of the image to be processed after color migration matches the color difference information.

[0137] Further, if Figure 8 As shown, the image data processing device also includes: a communication component 803, a display 804, a power supply component 805 and other components. Figure 8 Only some components are shown schematically, which does not mean that the image data processing device only includes Figure 8 Components shown.

[0138] In this embodiment, after the image to be processed is obtained, the color difference information of the image to be processed is determined according to the first theme color of the image to be processed; then, based on the color difference information and the obtained second theme color, the color of the image to be processed is updated. In this color update method, the color difference information of the image to be processed is fully considered, which is conducive to retaining the graphic structure such as the pattern, texture and / or pattern on the image to be processed while performing color transformation on the image to be processed.

[0139] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement each step that can be performed by the image data processing device in the above method embodiment.

[0140] Fig. 9 A schematic diagram of a color card recommendation device is provided as an exemplary embodiment of the present application. Fig. 9 As shown, the device includes: an input module 901, a color conversion module 902, and an output module 903.

[0141] Among them, the input module 901 is used to obtain the HSV color vector corresponding to the theme color on the original color card; the color transformation module 902 is used to adjust the color component H in the HSV color vector according to the set adjustment amount of the color component H; based on the HSV color vector after the color component H is adjusted, a new theme color is generated; the output module 903 is used to output a new color card containing the new theme color.

[0142] In this embodiment, the color card recommendation device can obtain the HSV color vector corresponding to the theme color on the original color card, and adjust the color component H in the HSV color vector corresponding to the theme color according to the set adjustment amount of the color component H. Then, a new theme color is generated according to the HSV color vector after the color component H is adjusted. Based on the new theme color, a new color card can be output, so that the intelligent color card recommendation service of automatically recommending a new color card to the user according to the original color card is realized.

[0143] Fig.10 The structure diagram of the color card recommendation device provided by an exemplary embodiment of the present application is shown as follows: Fig.10 As shown, the color card recommendation device includes: a memory 1001 and a processor 1002 .

[0144] The memory 1001 is used to store computer programs and can be configured to store various other data to support operations on the color card recommendation device. Examples of such data include instructions for any application or method used to operate on the color card recommendation device, contact data, phone book data, messages, pictures, videos, etc.

[0145] The processor 1002 is coupled to the memory 1001 and is used to execute the computer program in the memory 1001, so as to: obtain the HSV color vector corresponding to the theme color on the original color card; adjust the color component H in the HSV color vector according to the set adjustment amount of the color component H; generate a new theme color according to the HSV color vector after the color component H is adjusted, and output a new color card containing the new theme color.

[0146] Further, if Fig.10 As shown, the color card recommendation device also includes: a communication component 1003, a power component 1004, a display 1005, an audio component 1006 and other components. Fig.10 Only some components are shown schematically, which does not mean that the color card recommended equipment only includes Fig.10 Components shown.

[0147] In this embodiment, the color card recommendation device can obtain the HSV color vector corresponding to the theme color on the original color card, and adjust the color component H in the HSV color vector corresponding to the theme color according to the set adjustment amount of the color component H. Then, a new theme color is generated according to the HSV color vector after the color component H is adjusted. Based on the new theme color, a new color card can be output. At this point, an intelligent color card recommendation service that automatically recommends a new color card to a user based on the original color card is realized.

[0148] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement the steps that can be performed by the color card recommendation device in the above method embodiment.

[0149] Above Figure 7 , Figure 8 as well as Fig.10 The memory in can be implemented by any type of volatile or non-volatile storage device or a combination of them, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0150] Above Figure 7 , Figure 8 as well as Fig.10 The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component can be implemented based on near field communication (NFC) technology, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0151] Above Figure 7 , Figure 8 as well as Fig.10 The display in the embodiment includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0152] Above Figure 7 , Figure 8 as well as Fig.10 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.

[0153] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0154] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0155] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0157] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0158] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0159] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0160] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0161] The above is only the embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for processing image data, It is characterized in that include: Extracting at least one original theme color on the image to be processed; Determining color difference information on the image to be processed according to the at least one original theme color; Updating the color of the image to be processed according to the color difference information and at least one specified target theme color, including: performing color migration on the image to be processed according to the at least one target theme color; wherein the color difference of the image to be processed after color migration matches the color difference information.

2. The method according to claim 1, It is characterized in that Also includes: Acquire the at least one target theme color from a color card specified by a user; or, Performing a color transformation on the at least one original theme color to obtain the at least one target theme color.

3. The method according to claim 1, It is characterized in that Performing a color change on the at least one original theme color includes: For any original theme color of the at least one original theme color, transform the original theme color into an HSV color space to obtain the original theme color in an HSV color mode; Adjust the value of the color component H in the original theme color in the HSV color mode according to the adjustment amount of the color component H corresponding to the original theme color; The original theme color of the adjusted HSV color mode is transformed from the HSV color space to the RGB color space.

4. The method according to claim 3, It is characterized in that In the at least one original theme color, the adjustment amounts of the color components H corresponding to different original theme colors are the same.

5. The method according to claim 1, It is characterized in that Determining color difference information on the image to be processed according to the at least one original theme color includes: For any pixel point on the image to be processed, calculate the weight of the at least one original theme color in the color of the pixel point to obtain a theme color weight coefficient corresponding to the pixel point; The color difference information on the image to be processed is determined according to the theme color weight coefficients corresponding to different pixel points on the image to be processed.

6. The method according to claim 5, It is characterized in that For any pixel point on the image to be processed, calculating the weight of the at least one original theme color in the color of the pixel point to obtain a theme color weight coefficient corresponding to the pixel point, including: respectively calculating the distance between the color vector of the pixel point and the color vector of each of the at least one original theme color; The normalized value of the distance is used as the weight of each of the at least one original theme color in the color of the pixel point.

7. The method according to claim 5 or 6, It is characterized in that According to the at least one target theme color, color migration is performed on the image to be processed; wherein the color difference of the image to be processed after the color migration matches the color difference information, including: Performing a weighted summation of the theme color weight coefficients corresponding to different pixel points on the image to be processed and the at least one specified target theme color; According to the result of the weighted summation, new color vectors corresponding to different pixel points on the image to be processed are determined.

8. An image data processing device, It is characterized in that include: A theme color extraction module, used to extract at least one original theme color on the image to be processed; A color difference determination module, used to determine the color difference information on the image to be processed according to the at least one original theme color; A color transformation module is used to update the color of the image to be processed according to the color difference information and at least one specified target theme color, including: performing color migration on the image to be processed according to the at least one target theme color; wherein the color difference of the image to be processed after color migration matches the color difference information.

9. An image data processing device, It is characterized in that include: Memory and processor; Wherein, the memory is used to store one or more computer instructions; The processor is used to execute the one or more computer instructions to: extract at least one original theme color on the image to be processed; determine the color difference information on the image to be processed according to the at least one original theme color; update the color of the image to be processed according to the color difference information and at least one specified target theme color, including: performing color migration on the image to be processed according to the at least one target theme color; wherein the color difference of the image to be processed after the color migration matches the color difference information.

10. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed, the image data processing method according to any one of claims 1 to 7 can be implemented.

11. A method for processing image data, It is characterized in that include: Acquire an image to be processed, wherein the image to be processed includes a first theme color, wherein the first theme color includes a color whose appearance frequency on the image to be processed meets a preset condition; Determining color difference information of the image to be processed according to the first theme color; Get the second theme color; Updating the color of the image to be processed according to the color difference information and the second theme color includes: performing color migration on the image to be processed according to the second theme color; wherein the color difference of the image to be processed after color migration matches the color difference information.

Citation Information

Patent Citations

  • Method and apparatus for image processing, storage medium, and electronic device

    CN108206917A

  • Color transfer method and computing device

    CN108921810A