CN110288663B - Image processing method, image processing device, mobile terminal and storage medium - Google Patents

Image processing method, image processing device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110288663B
CN110288663B CN201910576496.XA CN201910576496A CN110288663B CN 110288663 B CN110288663 B CN 110288663B CN 201910576496 A CN201910576496 A CN 201910576496A CN 110288663 B CN110288663 B CN 110288663B
Authority
CN
China
Prior art keywords
image
user
color
gray
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910576496.XA
Other languages
Chinese (zh)
Other versions
CN110288663A (en
Inventor
魏鼎洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jupiter Technology Co ltd
Original Assignee
Beijing Lemi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lemi Technology Co ltd filed Critical Beijing Lemi Technology Co ltd
Priority to CN201910576496.XA priority Critical patent/CN110288663B/en
Publication of CN110288663A publication Critical patent/CN110288663A/en
Application granted granted Critical
Publication of CN110288663B publication Critical patent/CN110288663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Abstract

The invention discloses an image processing method, an image processing device, a mobile terminal and a computer readable storage medium. Wherein, the method comprises the following steps: acquiring an image to be processed selected by a user; generating a gray-scale image according to the image to be processed; and generating a single color map based on a preset single color bitmap generation algorithm, and generating an effect map according to the gray-scale image and the single color map. The method generates the effect picture according to the gray-scale image and the single color picture, thereby providing the effect picture for the user, greatly reducing the manufacturing threshold of the user on the effect picture, being simple for the user to manufacture, generating the effect picture without professional knowledge, meeting the user requirements and improving the user experience.

Description

Image processing method, image processing device, mobile terminal and storage medium
Technical Field
The present invention relates to the field of image processing, and in particular, to an image processing method and apparatus, a mobile terminal, and a computer-readable storage medium.
Background
With the continuous development of the information age, images serve as visual bases for human perception of the world and are important means for human to acquire information, express information and transmit information, image processing is conducted, namely the images are processed through a computer, the image processing technology can help people to know the world more objectively and accurately, and a human visual system can help people to acquire information above 3/4 from the outside.
In the related technology, more and more image special effects appear, and people feel particularly eye-catching and have a jump to the unique and interesting image special effects. However, the post-production of these image special effects is complicated, and the production threshold is high. Therefore, how to reduce the threshold of creating an effect image to facilitate the user to create the effect image is a problem to be solved.
Disclosure of Invention
The present invention has been made to solve at least one of the technical problems of the related art to some extent.
Therefore, an object of the present invention is to provide an image processing method, which can reduce the threshold for making a desired image, is simple for a user, and can generate an effect map without professional knowledge, thereby satisfying the user requirements and improving the user experience.
A second object of the present invention is to provide an image processing apparatus.
A third object of the present invention is to provide a mobile terminal.
A fourth object of the invention is to propose a computer-readable storage medium.
In order to achieve the above object, an embodiment of the first aspect of the present invention provides an image processing method, including:
acquiring an image to be processed selected by a user;
generating a gray-scale image according to the image to be processed;
generating a single color chart based on a preset monochromatic bitmap generation algorithm, and generating an effect chart according to the gray-scale image and the single color chart
According to the image processing method provided by the embodiment of the invention, the to-be-processed image selected by the user can be obtained, then the gray-scale image is generated according to the to-be-processed image, then the single color map is generated based on the preset single color bitmap generation algorithm, and the effect map is generated according to the gray-scale image and the single color map. According to the method, the to-be-processed image selected by the user is generated into the gray-scale image, the effect graph is generated according to the gray-scale image and the single color graph, and the effect graph of the image can be automatically manufactured only by selecting the to-be-processed image for the user, so that the manufacturing threshold of the effect graph by the user is greatly reduced, the effect graph can be generated simply for the user without professional knowledge, the user requirement is met, and the user experience is improved.
According to an embodiment of the present invention, the generating a grayscale image according to the image to be processed includes: and reducing the saturation of each primary color in the image to be processed to a preset value to obtain a corresponding gray-scale image.
According to an embodiment of the present invention, before generating a grayscale image from the image to be processed, the method further includes: providing a first configuration interface to the user; the first configuration interface comprises a configuration control for gray scale degree, and is used for receiving configuration information when the user configures the gray scale degree through the configuration control.
According to an embodiment of the present invention, the generating a grayscale image according to the image to be processed includes: acquiring configuration information of the user for the gray scale degree; determining a corresponding saturation target value according to the configuration information; and reducing the saturation of each primary color in the image at the proxy position to the corresponding saturation target value to obtain the gray-scale image.
According to an embodiment of the present invention, the generating an effect map according to the grayscale image and the single color map includes: acquiring color system tendency information of the user; adjusting the hue of the single color chart according to the color system tendency information of the user to obtain a target single color chart; and mixing the gray scale image and the target single color image to obtain the effect image.
According to an embodiment of the invention, the acquiring of the color family tendency information of the user comprises acquiring historical data of the user, wherein the historical data of the user comprises historical color information used by the user in image processing; and determining color system tendency information of the user according to the historical data.
According to an embodiment of the present invention, the acquiring color family tendency information of the user includes: providing a second configuration interface; wherein the second configuration interface is configured to receive color family propensity information configured by the user; and acquiring the color system tendency information of the user through the second configuration interface.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides an image processing apparatus, including:
the image acquisition module is used for acquiring the image to be processed selected by the user;
the gray scale image generation module is used for generating a gray scale image according to the image to be processed;
the single color map generation module is used for generating a single color map based on a preset single color bitmap generation algorithm;
and the effect image generation module is used for generating an effect image according to the gray-scale image and the single color image.
According to the image processing device provided by the embodiment of the invention, the to-be-processed image selected by the user can be obtained, then the gray-scale image is generated according to the to-be-processed image, then the single color map is generated based on the preset single color bitmap generation algorithm, and the effect map is generated according to the gray-scale image and the single color map. Therefore, the to-be-processed image selected by the user is generated into the gray-scale image, the effect image is generated according to the gray-scale image and the single color chart, and the effect image of the image can be automatically manufactured only by selecting the to-be-processed image for the user.
According to an embodiment of the present invention, the grayscale image generation module is specifically configured to: and reducing the saturation of each primary color in the image to be processed to a preset value to obtain a corresponding gray-scale image.
According to an embodiment of the present invention, the image processing apparatus further includes: the configuration interface providing module is used for providing a first configuration interface for the user; the first configuration interface comprises a configuration control for gray scale degree, and is used for receiving configuration information when the user configures the gray scale degree through the configuration control.
According to an embodiment of the present invention, the grayscale image generation module is specifically configured to: acquiring configuration information of the user for the gray scale degree; determining a corresponding saturation target value according to the configuration information; and reducing the saturation of each primary color in the image at the proxy position to the corresponding saturation target value to obtain the gray-scale image.
According to one embodiment of the present invention, the effect map generation module includes: a color system tendency information acquisition unit for acquiring color system tendency information of the user; the hue adjusting unit is used for adjusting the hue of the single color chart according to the color system tendency information of the user to obtain a target single color chart; and the effect image generating unit is used for mixing the gray-scale image and the target single color image to obtain the effect image.
According to an embodiment of the present invention, the color family tendency information obtaining unit is specifically configured to: acquiring historical data of the user, wherein the historical data of the user comprises historical color information used by the user in image processing; and determining color system tendency information of the user according to the historical data.
According to an embodiment of the present invention, the color family tendency information obtaining unit is specifically configured to: providing a second configuration interface; wherein the second configuration interface is configured to receive color family propensity information configured by the user; and acquiring the color system tendency information of the user through the second configuration interface.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides a mobile terminal, including: the image processing method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the image processing method is realized.
To achieve the above object, a computer-readable storage medium according to a fourth embodiment of the present invention has a computer program stored thereon, where the computer program is used to implement an image processing method according to the first embodiment of the present invention when the computer program is executed by a processor.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention.
Fig. 2 is a flow chart of an image processing method according to an embodiment of the invention.
Fig. 3 is a schematic configuration diagram of an image processing apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic configuration diagram of an image processing apparatus according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
An image processing method, an apparatus, a mobile terminal, and a computer-readable storage medium according to embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention. It should be noted that the image processing method according to the embodiment of the present invention can be applied to an image processing apparatus, and the apparatus can be configured on a mobile terminal.
As shown in fig. 1, the image processing method includes:
and S110, acquiring the to-be-processed image selected by the user.
In the embodiment of the invention, the user can upload the selected to-be-processed image through the mobile terminal, so that the mobile terminal acquires the to-be-processed image selected by the user. For example, any image can be extracted from a locally pre-stored image set as an image to be processed.
In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, and other hardware devices having various operating systems.
It should be noted that the operation of acquiring the to-be-processed image selected by the user may be to pre-select an image to be processed before processing the image, or may be to prompt the user to provide or upload an image to be processed after detecting that the user triggers the image processing operation.
And S120, generating a gray-scale image according to the image to be processed.
That is to say, after the mobile terminal acquires the to-be-processed image selected by the user, the gray scale adjustment can be performed on the to-be-processed image, so that a gray scale image is generated.
In the embodiment of the present invention, the grayscale image can be generated in the following two ways, which are specifically implemented as follows:
as a possible implementation manner, the saturation of each primary color in the image to be processed may be reduced to a preset value, so as to obtain a corresponding grayscale image. Wherein saturation may be used to describe the degree of similarity between a color and a standard color. As an example, the preset value may be 0.
For example, take "image to be processed 1" as an example, wherein the principle of displaying the image of "image to be processed 1" is: each pixel point is composed of three sub-pixels of R (red), G (green) and B (blue), and because human eyes have different sensitivities to R, G, B three primary colors, human eyes can recognize the colors of the three primary colors, the saturation of the three primary colors of the image to be processed 1 is reduced to a parameter with a preset value of zero, and a gray-scale image corresponding to the image to be processed 1 can be obtained.
As another possible implementation manner, configuration information of a user for a gray scale degree may be acquired, and then a corresponding saturation target value is determined according to the configuration information, and the saturation of each primary color in the image to be processed is reduced to the corresponding saturation target value, so as to obtain a gray scale image.
The configuration information can be understood as gradation of gray scale level.
For example, before generating a grayscale image according to an image to be processed, a first configuration interface may be provided to a user, where the first configuration interface includes a configuration control for a grayscale level, and the first configuration interface is configured to receive configuration information when the user configures the grayscale level through the configuration control.
That is to say, when a user adjusts the gray scale degree of an image to be processed through a configuration control provided by the mobile terminal, the mobile terminal may obtain the level information for the gray scale degree, then determine the corresponding saturation target value according to the level information for the gray scale degree, and reduce the saturation of each primary color in the image to be processed to the corresponding saturation target value, thereby obtaining a gray scale image.
For example, a user performs gray scale degree adjustment on the image to be processed 1 through a configuration control provided by the mobile terminal, for example, the gray scale degree adjustment may be divided into three levels, when it is determined that the user adjusts the gray scale degree of the image to be processed 1 to a first-level gray scale through the configuration control, the corresponding saturation target value may be determined to be-90 degrees according to the first-level gray scale, and then the saturation of each primary color in the image to be processed is reduced to-90 degrees, so as to obtain a gray scale image.
It should be noted that the configuration control of the gray scale degree can be understood as a progress bar for adjusting the gray scale degree, wherein the progress bar for adjusting the gray scale degree has a scale; the configuration information may be understood as gradation of gray scale level.
That is, after acquiring the to-be-processed image selected by the user, the mobile terminal may provide the user with a progress bar for gray scale degree adjustment, where the progress bar for gray scale degree adjustment has gradation scales therein.
In the embodiment of the invention, a user can select the grade scale through the progress bar or slide the length of the progress bar to realize the selection of the gray scale degree, so that the first configuration interface receives the information that the user selects the grade of the gray scale degree through the progress bar.
In an embodiment of the present invention, at any time after the mobile terminal acquires the to-be-processed image selected by the user, the mobile terminal may provide a configuration interface for the grayscale level to the user, and then may perform grayscale adjustment on the to-be-processed image to generate the grayscale image.
S130, generating a single color map based on a preset single color bitmap generation algorithm, and generating an effect map according to the gray-scale image and the single color map.
In the embodiment of the present invention, the monochrome bitmap generation algorithm may be a function for generating a monochrome bitmap, wherein a nWidth parameter, a nhight parameter, a CPlanes parameter, a CBitsPeral parameter, and an LpvBits parameter are defined in the function, wherein the nWidth parameter specifies a bitmap width and a unit is a pixel; the nHeight parameter specifies the height of a bitmap and the unit of the bitmap is a pixel; the CPlanes parameter specifies the number of color bit planes used by the device; the CBitsPerPel parameter specifies the number of bits (number of bits) used to distinguish the colors of a single pixel; the LpvBits parameter points to a color data array pointer, and a monochrome map is generated based on a function for generating the monochrome map.
In the embodiment of the present invention, the mobile terminal may also randomly generate a single color map in advance, wherein the single color map is a pure color image.
Optionally, the color system tendency information of the user may be acquired, then the hue of the single color chart is adjusted according to the color system tendency information of the user to obtain a target single color chart, and then the gray-scale image and the target single color chart are mixed to obtain the effect chart. Wherein the blending process may refer to a blending mode in the picture processing.
In the embodiment of the invention, the color system tendency information of the user can be determined according to the historical data by acquiring the historical data of the user, and then the mobile terminal acquires the color system tendency information of the user. Wherein the historical data of the user may include historical color information used by the user in image processing.
For example, the mobile terminal may provide an image processing application program for the user, and when the user uses the application program, the mobile terminal may obtain historical color information that is frequently used by the user during image processing before, and determine color system tendency information of the user according to the historical data, so that the mobile terminal obtains the color system tendency information of the user.
For another example, the mobile terminal may provide an image processing application program for the user, and the user may perform registration when using the application program, wherein a color system frame may be provided to the user during the registration process, wherein the color system frame has a plurality of color systems, the user may select a preferred color system through the color system frame, and the registration information includes color system tendency information of the user, so that the mobile terminal may obtain the color system tendency information of the user from the registration information.
For another example, the mobile terminal may provide an image processing application program for the user, and when the user uses the application program, the mobile terminal may obtain the skin color system of the application program, determine the color system tendency information of the user according to the skin color of the application program, and further obtain the color system tendency information of the user.
According to the image processing method provided by the embodiment of the invention, the to-be-processed image selected by the user can be obtained, then the gray-scale image is generated according to the to-be-processed image, then the single color map is generated based on the preset single color bitmap generation algorithm, and the effect map is generated according to the gray-scale image and the single color map. According to the method, the to-be-processed image selected by the user is generated into the gray-scale image, the effect image is generated according to the gray-scale image and the single color chart, and for the user, the effect image of the image can be automatically manufactured only by selecting the to-be-processed image, so that the manufacturing threshold of the effect image by the user is greatly reduced, the manufacturing threshold of the effect image is low, the effect image can be generated simply for the user without professional knowledge, the user requirement is met, and the user experience is improved.
Fig. 2 is a flow chart of an image processing method according to an embodiment of the invention. Specifically, as shown in fig. 2, the image processing method may include:
and S210, acquiring the to-be-processed image selected by the user.
In the embodiment of the invention, the user can upload the selected to-be-processed image through the mobile terminal, so that the mobile terminal acquires the to-be-processed image selected by the user. For example, any image can be extracted from a locally pre-stored image set as an image to be processed.
In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, and other hardware devices having various operating systems.
It should be noted that the operation of acquiring the to-be-processed image selected by the user may be to pre-select an image to be processed before processing the image, or may be to prompt the user to provide or upload an image to be processed after detecting that the user triggers the image processing operation.
And S220, providing a first configuration interface for the user, wherein the first configuration interface comprises a configuration control for the gray scale degree, and the first configuration interface is used for receiving configuration information when the user configures the gray scale degree through the configuration control.
It should be noted that the configuration control of the gray scale degree can be understood as a progress bar for gray scale adjustment, wherein the progress bar for gray scale degree adjustment has a scale; the configuration information may be understood as gradation of gray scale level.
That is, after acquiring the to-be-processed image selected by the user, the mobile terminal may provide the user with a progress bar for gray scale degree adjustment, where the progress bar for gray scale degree adjustment has gradation scales therein.
In the embodiment of the invention, a user can select the grade scale through the progress bar or slide the length of the progress bar to realize the selection of the gray scale degree, so that the first configuration interface receives the information that the user selects the grade of the gray scale degree through the progress bar.
S230, acquiring configuration information of the user aiming at the gray scale degree.
The configuration information can be understood as gradation of gray scale level.
In the embodiment of the invention, after the first configuration interface is provided for the user, the mobile terminal can acquire the grade information aiming at the gray scale degree when the user realizes the selection of the gray scale degree through the first configuration interface.
That is to say, when the user adjusts the gray scale degree of the image to be processed through the configuration control provided by the mobile terminal, the mobile terminal can acquire the level information for the gray scale degree.
For example, a user adjusts the gray scale degree of the "image to be processed 1" through a configuration control provided by the mobile terminal, for example, the gray scale degree adjustment may be divided into three levels, and when it is monitored that the user adjusts the gray scale degree of the "image to be processed 1" to a first-level gray scale through the configuration control, the mobile terminal may obtain the gray scale degree of the "image to be processed 1" adjusted to a first-level gray scale degree.
And S240, determining a corresponding saturation target value according to the configuration information.
For example, when the user adjusts the gray scale degree of the image to be processed 1 to the first-level gray scale through the configuration control, the corresponding saturation target value can be determined to be-90 degrees according to the first-level gray scale; when the user adjusts the gray scale degree of the image to be processed 1 to the secondary level gray scale through the configuration control, the corresponding saturation target value can be determined to be-180 degrees according to the secondary level gray scale.
And S250, reducing the saturation of each primary color in the image to be processed to a corresponding saturation target value to obtain a gray-scale image.
For example, the saturation of each primary color in the "image to be processed" can be reduced to-90 degrees by the mobile terminal, so that a grayscale image can be obtained.
S260, providing a second configuration interface; the second configuration interface is used for receiving color system tendency information configured by a user.
That is, the mobile terminal may provide the user with a second configuration interface for providing the user color family propensity information to the mobile terminal, such that the mobile terminal receives the user configured color family propensity information.
And S270, acquiring color system tendency information of the user through a second configuration interface.
For example, the mobile terminal may provide a color system frame to the user, where the color system frame has a plurality of color systems, and the user may select a preferred color system through the mobile terminal, so that the mobile terminal obtains the color system tendency information of the user.
S280, generating a single color map based on a preset single color bitmap generation algorithm.
In the embodiment of the present invention, the monochrome bitmap generation algorithm may be a function for generating a monochrome bitmap, wherein a nWidth parameter, a nhight parameter, a CPlanes parameter, a CBitsPeral parameter, and an LpvBits parameter are defined in the function, wherein the nWidth parameter specifies a bitmap width and a unit is a pixel; the nHeight parameter specifies the height of a bitmap and the unit of the bitmap is a pixel; the CPlanes parameter specifies the number of color bit planes used by the device; the CBitsPerPel parameter specifies the number of bits (number of bits) used to distinguish the colors of a single pixel; the LpvBits parameter points to a color data array pointer, and a monochrome map is generated based on a function for generating the monochrome map.
And S290, adjusting the hue of the single color chart according to the color system tendency information of the user to obtain the target single color chart.
In the embodiment of the invention, the mobile terminal can randomly generate a single color chart in advance, wherein the single color chart is a pure color image, and the hue of the single color chart is adjusted according to the color system tendency information of the user to obtain the target single color chart. For example, the color system tendency information of the user is red, and the hue of the "monochrome map 1" is adjusted to red to obtain the target monochrome map.
And S2010, mixing the gray-scale image and the target single color image to obtain an effect image.
Wherein the blending process may refer to a blending mode in the picture processing.
For example, the "gray-scale image 1" and the "target single color map 2" are mixed to obtain an "image 3", which is an effect map.
And S2020, providing the effect picture to the user.
That is, the mobile terminal provides the resulting effect map to the user so that the user views the effect map.
It should be noted that, in an embodiment of the present invention, the first configuration interface and the second configuration interface may be provided to the user at the same time, that is, the first configuration interface and the second configuration interface are on the same interface, so that the user can operate the interface conveniently, and the space is saved.
According to the image processing method of the embodiment of the invention, the image to be processed selected by the user can be obtained through the mobile terminal, then the first configuration interface is provided for the user, wherein the first configuration interface comprises the configuration control aiming at the gray scale degree, the first configuration interface is used for receiving the configuration information of the user when the user configures the gray scale degree through the configuration control, then the configuration information aiming at the gray scale degree is obtained, then the corresponding saturation target value is determined according to the configuration information, then the saturation of each primary color in the image to be processed is reduced to the corresponding saturation target value to obtain the gray scale image, the second configuration interface is provided, the second configuration interface is used for receiving the color system tendency information configured by the user, the color system tendency information of the user is obtained through the second configuration interface, the hue of the single color map is adjusted according to the color system tendency information of the user, and obtaining a target single color chart, mixing the gray-scale image and the target single color chart to obtain an effect chart, and finally providing the effect chart for a user. According to the method, the user participates in gray scale degree adjustment aiming at the image to be processed and hue adjustment aiming at the single color chart, simple operation is carried out according to own preference, the effect chart can be obtained, the manufacturing threshold is low, the manufacturing is simple, professional knowledge is not needed, the user requirement is met, and the user experience is improved.
In accordance with the image processing methods provided in the foregoing embodiments, an embodiment of the present invention further provides an image processing apparatus, and since the image processing apparatus provided in the embodiment of the present invention corresponds to the image processing methods provided in the foregoing embodiments, the embodiments of the image processing method described above are also applicable to the image processing apparatus provided in this embodiment, and are not described in detail in this embodiment.
Fig. 3 is a schematic configuration diagram of an image processing apparatus according to an embodiment of the present invention. As shown in fig. 3, the image processing apparatus 300 includes: the image acquisition module 310, the grayscale image generation module 320, the single color map generation module 330, and the effect map generation module 340.
Specifically, the image obtaining module 310 is configured to obtain the to-be-processed image selected by the user.
The grayscale image generation module 320 is configured to generate a grayscale image according to the image to be processed. As an example, the grayscale image generation module is specifically configured to: and reducing the saturation of each primary color in the image to be processed to a preset value to obtain a corresponding gray-scale image.
The single color map generating module 330 is configured to generate a single color map based on a preset single color bitmap generating algorithm.
The effect map generating module 340 is configured to generate an effect map according to the grayscale image and the single color map. As an example, the effect map generation module 340 includes: a color system tendency information acquisition unit for acquiring color system tendency information of the user; the hue adjusting unit is used for adjusting the hue of the single color chart according to the color system tendency information of the user to obtain a target single color chart; and the effect image generating unit is used for mixing the gray-scale image and the target single color image to obtain the effect image. Wherein, the color system tendency information acquiring unit is specifically configured to: acquiring historical data of the user, wherein the historical data of the user comprises historical color information used by the user in image processing; and determining color system tendency information of the user according to the historical data.
In an embodiment of the present invention, the color system tendency information acquiring unit is specifically configured to: providing a second configuration interface; wherein the second configuration interface is configured to receive color family propensity information configured by the user; and acquiring the color system tendency information of the user through the second configuration interface.
In an embodiment of the present invention, as shown in fig. 4, the image processing apparatus further includes: a configuration interface providing module 350, wherein the configuration interface providing module 350 is configured to provide a first configuration interface to the user; the first configuration interface comprises a configuration control for gray scale degree, and is used for receiving configuration information when the user configures the gray scale degree through the configuration control. The grayscale image generation module 320 is specifically configured to: acquiring configuration information of the user for the gray scale degree; determining a corresponding saturation target value according to the configuration information; and reducing the saturation of each primary color in the image at the proxy position to the corresponding saturation target value to obtain the gray-scale image.
According to the image processing device provided by the embodiment of the invention, the to-be-processed image selected by the user can be obtained, then the gray-scale image is generated according to the to-be-processed image, then the single color map is generated based on the preset single color bitmap generation algorithm, and the effect map is generated according to the gray-scale image and the single color map. Therefore, the to-be-processed image selected by the user is generated into the gray-scale image, the effect image is generated according to the gray-scale image and the single color chart, and the effect image of the image can be automatically manufactured only by selecting the to-be-processed image for the user.
In order to implement the above embodiments, the present invention further provides a mobile terminal.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 5, the mobile terminal 500 may include: a memory 510, a processor 520 and a computer program 530 stored on the memory 510 and executable on the processor 520, when executing the computer program 530, implementing the image processing method according to any of the above-mentioned embodiments of the present invention.
In order to implement the above embodiments, the present invention also proposes a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the image processing method of any of the above embodiments of the present invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (14)

1. An image processing method, comprising:
acquiring an image to be processed selected by a user;
generating a gray-scale image according to the image to be processed;
generating a single color map based on a preset monochromatic bitmap generation algorithm, and generating an effect map according to the gray-scale image and the single color map; the generating an effect map according to the gray-scale image and the single color map comprises:
acquiring color system tendency information of the user;
adjusting the hue of the single color chart according to the color system tendency information of the user to obtain a target single color chart;
and mixing the gray scale image and the target single color image to obtain the effect image.
2. The image processing method according to claim 1, wherein the generating a grayscale image from the image to be processed comprises:
and reducing the saturation of each primary color in the image to be processed to a preset value to obtain a corresponding gray-scale image.
3. The image processing method of claim 1, wherein prior to generating a grayscale image from the image to be processed, the method further comprises:
providing a first configuration interface to the user; the first configuration interface comprises a configuration control for gray scale degree, and is used for receiving configuration information when the user configures the gray scale degree through the configuration control.
4. The image processing method according to claim 3, wherein the generating a grayscale image from the image to be processed comprises:
acquiring configuration information of the user for the gray scale degree;
determining a corresponding saturation target value according to the configuration information;
and reducing the saturation of each primary color in the image to be processed to the corresponding saturation target value to obtain the gray-scale image.
5. The method according to claim 1, wherein the acquiring color family tendency information of the user comprises:
acquiring historical data of the user, wherein the historical data of the user comprises historical color information used by the user in image processing;
and determining color system tendency information of the user according to the historical data.
6. The method according to claim 1, wherein the acquiring color family tendency information of the user comprises:
providing a second configuration interface; wherein the second configuration interface is configured to receive color family propensity information configured by the user;
and acquiring the color system tendency information of the user through the second configuration interface.
7. An image processing apparatus characterized by comprising:
the image acquisition module is used for acquiring the image to be processed selected by the user;
the gray scale image generation module is used for generating a gray scale image according to the image to be processed;
the single color map generation module is used for generating a single color map based on a preset single color bitmap generation algorithm;
the effect image generation module is used for generating an effect image according to the gray-scale image and the single color image; the effect graph generation module comprises:
a color system tendency information acquisition unit for acquiring color system tendency information of the user;
the hue adjusting unit is used for adjusting the hue of the single color chart according to the color system tendency information of the user to obtain a target single color chart;
and the effect image generating unit is used for mixing the gray-scale image and the target single color image to obtain the effect image.
8. The image processing apparatus of claim 7, wherein the grayscale image generation module is specifically configured to:
and reducing the saturation of each primary color in the image to be processed to a preset value to obtain a corresponding gray-scale image.
9. The image processing apparatus according to claim 7, further comprising:
the configuration interface providing module is used for providing a first configuration interface for the user; the first configuration interface comprises a configuration control for gray scale degree, and is used for receiving configuration information when the user configures the gray scale degree through the configuration control.
10. The image processing apparatus of claim 9, wherein the grayscale image generation module is specifically configured to:
acquiring configuration information of the user for the gray scale degree;
determining a corresponding saturation target value according to the configuration information;
and reducing the saturation of each primary color in the image to be processed to the corresponding saturation target value to obtain the gray-scale image.
11. The image processing apparatus according to claim 7, wherein the color family tendency information acquiring unit is specifically configured to:
acquiring historical data of the user, wherein the historical data of the user comprises historical color information used by the user in image processing;
and determining color system tendency information of the user according to the historical data.
12. The image processing apparatus according to claim 7, wherein the color family tendency information acquiring unit is specifically configured to:
providing a second configuration interface; wherein the second configuration interface is configured to receive color family propensity information configured by the user;
and acquiring the color system tendency information of the user through the second configuration interface.
13. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the image processing method according to any one of claims 1 to 6 when executing the computer program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the image processing method according to any one of claims 1 to 6.
CN201910576496.XA 2019-06-28 2019-06-28 Image processing method, image processing device, mobile terminal and storage medium Active CN110288663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910576496.XA CN110288663B (en) 2019-06-28 2019-06-28 Image processing method, image processing device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910576496.XA CN110288663B (en) 2019-06-28 2019-06-28 Image processing method, image processing device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110288663A CN110288663A (en) 2019-09-27
CN110288663B true CN110288663B (en) 2022-03-15

Family

ID=68019910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910576496.XA Active CN110288663B (en) 2019-06-28 2019-06-28 Image processing method, image processing device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110288663B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114743514A (en) * 2022-06-09 2022-07-12 南京惠华电子技术有限公司 Method for high-brightness multicolor display of liquid crystal display module

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313004A (en) * 1998-06-23 2001-09-12 夏普公司 Image processor, image processing method, and medium on which image processing program is recorded
CN102241207A (en) * 2010-05-13 2011-11-16 薄淑英 Single color printing method for colored three-dimensional image
CN104683701A (en) * 2015-03-12 2015-06-03 成都品果科技有限公司 Method and system for optimizing human face colors in self-shot photos of front camera
CN104954690A (en) * 2015-06-30 2015-09-30 厦门美图之家科技有限公司 Image processing method and system for skin color adjustment and shooting terminal
JP2015220580A (en) * 2014-05-16 2015-12-07 キヤノン株式会社 Image processing system, image processing method, and program
CN207321433U (en) * 2017-08-12 2018-05-04 四川精视科技有限公司 A kind of building visual phone imaging device full-color round the clock

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313004A (en) * 1998-06-23 2001-09-12 夏普公司 Image processor, image processing method, and medium on which image processing program is recorded
CN102241207A (en) * 2010-05-13 2011-11-16 薄淑英 Single color printing method for colored three-dimensional image
JP2015220580A (en) * 2014-05-16 2015-12-07 キヤノン株式会社 Image processing system, image processing method, and program
CN104683701A (en) * 2015-03-12 2015-06-03 成都品果科技有限公司 Method and system for optimizing human face colors in self-shot photos of front camera
CN104954690A (en) * 2015-06-30 2015-09-30 厦门美图之家科技有限公司 Image processing method and system for skin color adjustment and shooting terminal
CN207321433U (en) * 2017-08-12 2018-05-04 四川精视科技有限公司 A kind of building visual phone imaging device full-color round the clock

Also Published As

Publication number Publication date
CN110288663A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
KR101639429B1 (en) Methods and apparatus for color rendering
CN105574918B (en) A kind of material adding method, device and the terminal of 3D models
US7242409B2 (en) Interpolated color transform for changing color of an application user interface
US7064864B2 (en) Method and apparatus for compressing reproducible color gamut
CN109741279A (en) Image saturation method of adjustment, device, storage medium and terminal
CN104978186B (en) A kind of rendering intent and device of interface skin
CN109272948B (en) Electronic paper drive debugging method and device based on machine learning and computer equipment
JP2005269639A (en) Method and system for converting color image to gray scale image, gray scale image, method for improving conversion from color to gray scale, and edge emphasizing method
US9794538B2 (en) Color adjustment apparatus, image display apparatus, and color adjustment method
CN106210440B (en) Image processing apparatus and image processing method
US20070195382A1 (en) Apparatus for gamut mapping and method of generating gamut boundary using the same
US10825153B2 (en) Image processing apparatus, display apparatus, and image processing method
CN110288663B (en) Image processing method, image processing device, mobile terminal and storage medium
JP6818284B1 (en) Image processing equipment, image processing system, and image processing method
JP2006203896A (en) Method of creating color-mapping look-up table, and color-mapping method using the same
CN116382540A (en) Display method and device for electronic paper, electronic equipment and storage medium
US9679531B2 (en) Correcting method, correcting apparatus and method for establishing color performance database for display apparatus
JP2022036131A (en) Learning device, inferring device, learning method, inferring method, computer system, and program
US9852531B2 (en) Electronic apparatus and method for controlling the same
EP3690818A1 (en) Method of visualizing data, device for visualizing data as well as use of a method of visualizing data
JP2002287726A (en) Method of displaying image, image display device, computer program and recording medium
JP6755762B2 (en) Image processing device and image processing method
US11669591B2 (en) Information processing apparatus and non-transitory computer readable medium
JP2007074063A (en) Color processing apparatus and method
CN117372305A (en) Image color enhancement method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201118

Address after: Room 115, area C, 1 / F, building 8, yard 1, yaojiayuan South Road, Chaoyang District, Beijing 100025

Applicant after: Beijing LEMI Technology Co.,Ltd.

Address before: 100085 Beijing City, Haidian District Road 33, two floor East Xiaoying

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230817

Address after: 3870A, 3rd Floor, Building 4, Courtyard 49, Badachu Road, Shijingshan District, Beijing, 100144

Patentee after: Beijing Jupiter Technology Co.,Ltd.

Address before: Room 115, area C, 1 / F, building 8, yard 1, yaojiayuan South Road, Chaoyang District, Beijing 100025

Patentee before: Beijing LEMI Technology Co.,Ltd.

TR01 Transfer of patent right