CN110349107B - Image enhancement method, device, electronic equipment and storage medium - Google Patents

Image enhancement method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110349107B
CN110349107B CN201910620716.4A CN201910620716A CN110349107B CN 110349107 B CN110349107 B CN 110349107B CN 201910620716 A CN201910620716 A CN 201910620716A CN 110349107 B CN110349107 B CN 110349107B
Authority
CN
China
Prior art keywords
lookup table
image
color lookup
sample
original image
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
CN201910620716.4A
Other languages
Chinese (zh)
Other versions
CN110349107A (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910620716.4A priority Critical patent/CN110349107B/en
Publication of CN110349107A publication Critical patent/CN110349107A/en
Application granted granted Critical
Publication of CN110349107B publication Critical patent/CN110349107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T5/90
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the disclosure discloses an image enhancement method, an image enhancement device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an original image; generating a thumbnail image corresponding to the original image; inputting the thumbnail image into a pre-trained color lookup table generation model to obtain a color lookup table; and determining an enhanced image corresponding to the original image according to the original image and the color lookup table so as to rapidly acquire the enhanced image of the original image, thereby improving the acquisition efficiency of the enhanced image.

Description

Image enhancement method, device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of machine learning, in particular to an image enhancement method, an image enhancement device, electronic equipment and a storage medium.
Background
In the prior art, when a beauty camera is adopted to take photos, the photos taken are usually generated into beauty photos in real time according to a fixed filter set or selected by a user.
The invention generates a three-dimensional lookup table for each source image, and adopts the filter to transform the source images to obtain enhanced images.
The look-up table function is similar to the general filter function. For example, a dark face area is brightened, the entire relatively dark image is brightened, the underexposed picture is corrected, and the larger-color picture is color-corrected.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for image enhancement, so as to improve efficiency of acquiring an enhanced image.
Other features and advantages of embodiments of the present disclosure will be apparent from the following detailed description, or may be learned by practice of embodiments of the disclosure in part.
In a first aspect, embodiments of the present disclosure provide a method of image enhancement, including:
acquiring an original image;
generating a thumbnail image corresponding to the original image;
inputting the thumbnail image into a pre-trained color lookup table generation model to obtain a color lookup table;
and determining an enhanced image corresponding to the original image according to the original image and the color lookup table.
In a second aspect, embodiments of the present disclosure further provide an apparatus for image enhancement, including:
an original image acquisition unit configured to acquire an original image;
a thumbnail image generation unit for generating a thumbnail image corresponding to the original image;
a color lookup table obtaining unit, configured to input the thumbnail image into a pre-trained color lookup table generating model, to obtain a color lookup table;
and the enhanced image determining unit is used for determining an enhanced image corresponding to the original image according to the original image and the color lookup table.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the instructions of the method of any of the first aspects.
In a fourth aspect, the presently disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to any of the first aspects.
According to the method, the device and the system, the thumbnail images are generated by acquiring the original images, the thumbnail images are input into the pre-trained color lookup table generation model, the color lookup table is obtained, the enhanced images corresponding to the original images are determined according to the original images and the color lookup table, the enhanced images are quickly acquired according to the thumbnail images of the original images, and the efficiency of acquiring the enhanced images can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following description will briefly explain the drawings required to be used in the description of the embodiments of the present disclosure, and it is apparent that the drawings in the following description are only some of the embodiments of the present disclosure, and other drawings may be obtained according to the contents of the embodiments of the present disclosure and these drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a method of image enhancement provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of a training method for generating a model from a color look-up table according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an apparatus for image enhancement according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a training device for generating a model from a color look-up table according to an embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
In order to make the technical problems solved, the technical solutions adopted and the technical effects achieved by the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments, but not all embodiments of the present disclosure. All other embodiments, which are derived by a person skilled in the art from the embodiments of the present disclosure without creative efforts, fall within the protection scope of the embodiments of the present disclosure.
It should be noted that the terms "system" and "network" in the embodiments of the present disclosure are often used interchangeably herein. References to "and/or" in embodiments of the present disclosure are intended to "include any and all combinations of one or more of the associated listed items. The terms first, second and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for limiting a particular order.
It should be further noted that, in the embodiments of the present disclosure, the following embodiments may be implemented separately, or may be implemented in combination with each other, which is not specifically limited by the embodiments of the present disclosure.
The technical solutions of the embodiments of the present disclosure are further described below with reference to the accompanying drawings and through specific implementations.
Fig. 1 is a flow chart illustrating a method for image enhancement provided in an embodiment of the present disclosure, where the embodiment may be applicable to a case of obtaining an enhanced image of an original image, and the method may be performed by an image enhancement apparatus configured in an electronic device, as shown in fig. 1, where the method for image enhancement includes:
in step S110, an original image is acquired.
The original image in this embodiment may be any type of image, for example, may be an original image including a face, so as to perform a beautifying and image repairing process or filter shooting by using the technical scheme in this embodiment.
It should be noted that, the original image may be a pre-shot image, or may be a photo acquired by a camera in real time, and the photo is cached in a buffer area to be used as the original image. For the former, the technical solution of the present embodiment may be used to perform post-processing on a picture to generate an enhancement image thereof, and for the latter, the technical solution of the present embodiment may be used to perform filter shooting in real time to shoot an enhancement image to be processed, for example, to lighten a dark place of a face in an image, to lighten a relatively dark image as a whole, to correct an underexposed picture, and/or to correct a picture with a larger color.
In step S120, a thumbnail image corresponding to the original image is generated.
In step S130, the thumbnail image is input to a pre-trained color look-up table generation model, resulting in a color look-up table.
When the color lookup table is generated by the color lookup table generation model, the result is hardly different regardless of whether the original image or the thumbnail image is input, but the thumbnail image is smaller in size than the original image and therefore the calculation amount is much smaller, so that the color lookup table is obtained by inputting the thumbnail image of the original image into the color lookup table generation model in this step, and the efficiency is significantly high.
The color lookup table generating model according to the present embodiment is required to obtain a color lookup table corresponding to an original image after the original image is input, and the training method and characteristics of the specific model are not limited in this embodiment, and an independent exemplary embodiment is provided after this embodiment. The color lookup table may be a one-dimensional color lookup table or a 3D color lookup table, which is not limited in this embodiment.
In step S140, an enhanced image corresponding to the original image is determined according to the original image and the color lookup table.
For example, each pixel value in the original image may be input into the color lookup table, and the output result of the color lookup table is used as the pixel value of the corresponding pixel of the enhanced image.
According to the technical scheme, the thumbnail images are generated by acquiring the original images, the thumbnail images are input into a pre-trained color lookup table generation model, a color lookup table is obtained, the enhanced images corresponding to the original images are determined according to the original images and the color lookup table, the enhanced images are quickly acquired according to the thumbnail images of the original images, and the efficiency of acquiring the enhanced images can be improved.
Fig. 2 is a flowchart of a training method for generating a model by using a color lookup table according to an embodiment of the present disclosure, as shown in fig. 2, where the training method for generating a model by using a color lookup table according to the present embodiment includes:
in step S210, a training sample set is acquired.
Wherein the training sample comprises a sample image and a corresponding enhanced image.
In step S220, a labeling color lookup table for converting the sample image into the enhanced image is generated according to the sample image and the corresponding enhanced image included in the sample, and the labeling color lookup table is used as a label of the sample.
In step S230, it is determined that the initialized color look-up table generation model.
Wherein the initialized color lookup table generation model comprises a target layer for outputting a color lookup table corresponding to a target image.
The initialized color look-up table generation model may be various types of untrained or untrained artificial neural networks, such as machine learning models based on convolutional neural network techniques.
In step S240, a sample image in a training sample in the training sample set is used as an input of an initialized color lookup table generating model, a labeled color lookup table corresponding to the input sample image is used as an expected output of the initialized color lookup table generating model, and the color lookup table generating model is obtained through training by using a machine learning method.
The technical scheme of the embodiment discloses a training method for a color lookup table generation model, which comprises the steps of acquiring a training sample set, determining an initialized color lookup table generation model, using a machine learning method, taking a sample image in a training sample in the training sample set as input of the initialized color lookup table generation model, taking a labeling color lookup table corresponding to the input sample image as expected output of the initialized color lookup table generation model, and training to obtain the color lookup table generation model.
Fig. 3 shows a schematic structural diagram of an image enhancement apparatus provided in an embodiment of the present disclosure, and as shown in fig. 3, the image enhancement apparatus according to the present embodiment includes an original image acquisition unit 310, a thumbnail image generation unit 320, a color lookup table acquisition unit 330, and an enhanced image determination unit 340.
Wherein the original image acquisition unit 310 is configured to acquire an original image.
The thumbnail image generation unit 320 is configured to generate a thumbnail image corresponding to the original image.
The color lookup table obtaining unit 330 is configured to input the thumbnail image to a pre-trained color lookup table generating model, resulting in a color lookup table.
The enhanced image determining unit 340 is configured to determine an enhanced image corresponding to the original image according to the original image and the color lookup table.
Further, the color lookup table is a 3D color lookup table.
Further, the enhanced image determining unit 340 is configured to input each pixel value in the original image into the color lookup table, and take the output result of the color lookup table as the pixel value of the corresponding pixel of the enhanced image.
Further, the original image obtaining unit 310 is configured to obtain a photograph collected by the camera, and buffer the photograph into a buffer area as the original image.
Further, the original image is an original image including a human face.
Further, the color lookup table generating model in the color lookup table obtaining unit 330 is obtained through training by each module of the training device of the color lookup table generating model.
The image enhancement device provided by the embodiment of the invention can execute the image enhancement method provided by the embodiment of the method of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic structural diagram of a training device for generating a model by using a color lookup table according to an embodiment of the present disclosure, as shown in fig. 4, where the training device for generating a model by using a color lookup table according to the present embodiment includes a sample acquiring module 410, a sample labeling module 420, a model determining module 430, and a model training module 440.
Wherein the sample acquisition module 410 is configured to acquire a training sample set.
Wherein the training sample comprises a sample image and a corresponding enhanced image.
The sample labeling module 420 is configured to generate a labeling color lookup table for converting the sample image into the enhanced image according to the sample image and the corresponding enhanced image included in the sample, and take the labeling color lookup table as a label of the sample.
The model determination module 430 is configured to determine an initialized color look-up table generation model, wherein the initialized color look-up table generation model includes a target layer for outputting a color look-up table corresponding to a target image.
The model training module 440 is configured to use a machine learning device to use a sample image in a training sample in the training sample set as an input of an initialized color lookup table generating model, and use a labeled color lookup table corresponding to the input sample image as an expected output of the initialized color lookup table generating model, and train to obtain the color lookup table generating model.
Further, the color lookup table generation model is a machine learning model based on convolutional neural network technology.
The training device for the color lookup table generation model provided by the embodiment can execute the training method for the color lookup table generation model provided by the embodiment of the method disclosed by the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Referring now to fig. 5, a schematic diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that, the computer readable medium described above in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the disclosed embodiments, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the disclosed embodiments, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
acquiring an original image;
generating a thumbnail image corresponding to the original image;
inputting the thumbnail image into a pre-trained color lookup table generation model to obtain a color lookup table;
and determining an enhanced image corresponding to the original image according to the original image and the color lookup table.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
According to one or more embodiments of the present disclosure, in the image enhancement method, the color lookup table is a 3D color lookup table.
According to one or more embodiments of the present disclosure, in the image enhancement method, determining an enhanced image corresponding to the original image according to the original image and the color lookup table includes: and respectively inputting each pixel value in the original image into the color lookup table, and taking the output result of the color lookup table as the pixel value of the corresponding pixel of the enhanced image.
In accordance with one or more embodiments of the present disclosure, in the image enhancement method, acquiring the original image includes: and acquiring a photo acquired by the camera, and caching the photo into a buffer area to serve as the original image.
According to one or more embodiments of the present disclosure, in the image enhancement method, the original image is an original image including a face.
According to one or more embodiments of the present disclosure, in the image enhancement method, the color look-up table generation model is trained by:
acquiring a training sample set, wherein the training sample comprises a sample image and a corresponding enhanced image;
generating a labeling color lookup table for converting the sample image into the enhanced image according to the sample image and the corresponding enhanced image included in the sample, and taking the labeling color lookup table as a labeling of the sample;
determining an initialized color lookup table generation model, wherein the initialized color lookup table generation model comprises a target layer of a color lookup table corresponding to an output target image;
and using a machine learning method, taking a sample image in a training sample in the training sample set as input of an initialized color lookup table generation model, taking a labeling color lookup table corresponding to the input sample image as expected output of the initialized color lookup table generation model, and training to obtain the color lookup table generation model.
In accordance with one or more embodiments of the present disclosure, in the method of image enhancement, the color look-up table generation model is a machine learning model based on convolutional neural network technology.
In accordance with one or more embodiments of the present disclosure, in the image enhancement apparatus, the color lookup table is a 3D color lookup table.
According to one or more embodiments of the present disclosure, in the image enhancement apparatus, the enhanced image determining unit is configured to: and respectively inputting each pixel value in the original image into the color lookup table, and taking the output result of the color lookup table as the pixel value of the corresponding pixel of the enhanced image.
According to one or more embodiments of the present disclosure, in the image enhancement apparatus, the original image acquisition unit is configured to: and acquiring a photo acquired by the camera, and caching the photo into a buffer area to serve as the original image.
According to one or more embodiments of the present disclosure, in the image enhancement apparatus, the original image is an original image including a face.
According to one or more embodiments of the present disclosure, in the image enhancement apparatus, the color look-up table generating model is trained by:
the sample acquisition module is used for acquiring a training sample set, wherein the training sample comprises a sample image and a corresponding enhanced image;
the sample labeling module is used for generating a labeling color lookup table for converting the sample image into the enhanced image according to the sample image and the corresponding enhanced image included in the sample, and taking the labeling color lookup table as a label of the sample;
the model determining module is used for determining an initialized color lookup table generation model, wherein the initialized color lookup table generation model comprises a target layer of a color lookup table corresponding to an output target image;
the model training module is used for using a machine learning device, taking sample images in training samples in the training sample set as input of an initialized color lookup table generation model, taking a marked color lookup table corresponding to the input sample images as expected output of the initialized color lookup table generation model, and training to obtain the color lookup table generation model.
In accordance with one or more embodiments of the present disclosure, in the image enhancement apparatus, the color look-up table generation model is a machine learning model based on convolutional neural network technology.
The foregoing description is only of the preferred embodiments of the disclosed embodiments and is presented for purposes of illustration of the principles of the technology being utilized. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the disclosure is not limited to the specific combination of the above technical features, but also encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the disclosure. Such as the technical solution formed by mutually replacing the above-mentioned features and the technical features with similar functions (but not limited to) disclosed in the embodiments of the present disclosure.

Claims (8)

1. A method of image enhancement, comprising:
acquiring an original image;
generating a thumbnail image corresponding to the original image;
inputting the thumbnail image into a pre-trained color lookup table generation model to obtain a color lookup table, wherein the color lookup table is a 3D color lookup table;
determining an enhanced image corresponding to the original image according to the original image and the color lookup table;
the color lookup table generation model is obtained through training by the following steps:
acquiring a training sample set, wherein the training sample comprises a sample image and a corresponding enhanced image;
generating a labeling color lookup table for converting the sample image into the enhanced image according to the sample image and the corresponding enhanced image included in the sample, and taking the labeling color lookup table as a labeling of the sample;
determining an initialized color lookup table generation model, wherein the initialized color lookup table generation model comprises a target layer of a color lookup table corresponding to an output target image;
and using a machine learning method, taking a sample image in a training sample in the training sample set as input of an initialized color lookup table generation model, taking a labeling color lookup table corresponding to the input sample image as expected output of the initialized color lookup table generation model, and training to obtain the color lookup table generation model.
2. The method of claim 1, wherein determining an enhanced image corresponding to the original image from the original image and the color look-up table comprises: and respectively inputting each pixel value in the original image into the color lookup table, and taking the output result of the color lookup table as the pixel value of the corresponding pixel of the enhanced image.
3. The method of claim 1, wherein acquiring the original image comprises:
and acquiring a photo acquired by the camera, and caching the photo into a buffer area to serve as the original image.
4. A method according to claim 3, wherein the original image is an original image comprising a face.
5. The method of claim 1, wherein the color look-up table generation model is a machine learning model based on convolutional neural network technology.
6. An apparatus for image enhancement, comprising:
an original image acquisition unit configured to acquire an original image;
a thumbnail image generation unit for generating a thumbnail image corresponding to the original image;
a color lookup table obtaining unit, configured to input the thumbnail image to a pre-trained color lookup table generating model, to obtain a color lookup table, where the color lookup table is a 3D color lookup table;
an enhanced image determining unit, configured to determine an enhanced image corresponding to the original image according to the original image and the color lookup table;
the training device for generating the model by using the color lookup table comprises:
the sample acquisition module is used for acquiring a training sample set, wherein the training sample comprises a sample image and a corresponding enhanced image;
the sample labeling module is used for generating a labeling color lookup table for converting the sample image into the enhanced image according to the sample image and the corresponding enhanced image included in the sample, and taking the labeling color lookup table as a label of the sample;
the model determining module is used for determining an initialized color lookup table generation model, wherein the initialized color lookup table generation model comprises a target layer of a color lookup table corresponding to an output target image;
the model training module is used for using a machine learning device, taking sample images in training samples in the training sample set as input of an initialized color lookup table generation model, taking a marked color lookup table corresponding to the input sample images as expected output of the initialized color lookup table generation model, and training to obtain the color lookup table generation model.
7. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
the instructions that when executed by the one or more processors cause the one or more processors to implement the method of any of claims 1-5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-5.
CN201910620716.4A 2019-07-10 2019-07-10 Image enhancement method, device, electronic equipment and storage medium Active CN110349107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910620716.4A CN110349107B (en) 2019-07-10 2019-07-10 Image enhancement method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910620716.4A CN110349107B (en) 2019-07-10 2019-07-10 Image enhancement method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110349107A CN110349107A (en) 2019-10-18
CN110349107B true CN110349107B (en) 2023-05-26

Family

ID=68175787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910620716.4A Active CN110349107B (en) 2019-07-10 2019-07-10 Image enhancement method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110349107B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314614B (en) * 2020-03-11 2021-08-13 北京字节跳动网络技术有限公司 Image processing method and device, readable medium and electronic equipment
CN112562019A (en) * 2020-12-24 2021-03-26 Oppo广东移动通信有限公司 Image color adjusting method and device, computer readable medium and electronic equipment
CN114885094B (en) * 2022-03-25 2024-03-29 北京旷视科技有限公司 Image processing method, image processor, image processing module and device
CN114723610A (en) * 2022-06-10 2022-07-08 武汉海微科技有限公司 Intelligent image processing method, device and equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244757A (en) * 2011-06-07 2011-11-16 北京邮电大学 Color calibration method of large multi-projection screen based on projector-camera system
CN107798652A (en) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 Image processing method, device, readable storage medium storing program for executing and electronic equipment
CN108492265A (en) * 2018-03-16 2018-09-04 西安电子科技大学 CFA image demosaicing based on GAN combines denoising method
CN109716362A (en) * 2016-07-21 2019-05-03 电装It研究所 Neural network device, vehicle control system, decomposing processor and program

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008133951A2 (en) * 2007-04-24 2008-11-06 Massachusetts Institute Of Technology Method and apparatus for image processing
TWI407383B (en) * 2008-09-08 2013-09-01 Univ Nat United Image quality enhancement method
US20160321523A1 (en) * 2015-04-30 2016-11-03 The Regents Of The University Of California Using machine learning to filter monte carlo noise from images
CN106251369B (en) * 2016-07-22 2019-04-16 北京小米移动软件有限公司 Image processing method and device
CN106791756A (en) * 2017-01-17 2017-05-31 维沃移动通信有限公司 A kind of multimedia data processing method and mobile terminal
CN107886466B (en) * 2017-11-24 2021-03-26 中国航空工业集团公司西安航空计算技术研究所 Image processing unit system of graphic processor
CN109003231B (en) * 2018-06-11 2021-01-29 广州视源电子科技股份有限公司 Image enhancement method and device and display equipment
CN108876745B (en) * 2018-06-27 2020-09-01 厦门美图之家科技有限公司 Image processing method and device
CN108830816B (en) * 2018-06-27 2020-12-04 厦门美图之家科技有限公司 Image enhancement method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244757A (en) * 2011-06-07 2011-11-16 北京邮电大学 Color calibration method of large multi-projection screen based on projector-camera system
CN109716362A (en) * 2016-07-21 2019-05-03 电装It研究所 Neural network device, vehicle control system, decomposing processor and program
CN107798652A (en) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 Image processing method, device, readable storage medium storing program for executing and electronic equipment
CN108492265A (en) * 2018-03-16 2018-09-04 西安电子科技大学 CFA image demosaicing based on GAN combines denoising method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Neural Network Based Algorithm for Building Crystal Look-up Table of PET Block Detector;Dongming Hu 等;《2006 IEEE Nuclear Science Symposium Conference Record》;全文 *
何炳阳 等.基于CbCr查找表的双波段图像彩色融合算法.2018,第38卷(第1期),全文. *

Also Published As

Publication number Publication date
CN110349107A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110349107B (en) Image enhancement method, device, electronic equipment and storage medium
CN110349161B (en) Image segmentation method, image segmentation device, electronic equipment and storage medium
CN110059623B (en) Method and apparatus for generating information
CN111459364B (en) Icon updating method and device and electronic equipment
CN110062157B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
CN111325704A (en) Image restoration method and device, electronic equipment and computer-readable storage medium
CN116934577A (en) Method, device, equipment and medium for generating style image
CN114937192A (en) Image processing method, image processing device, electronic equipment and storage medium
CN112380883B (en) Model training method, machine translation method, device, equipment and storage medium
CN112714263B (en) Video generation method, device, equipment and storage medium
CN110349108B (en) Method, apparatus, electronic device, and storage medium for processing image
CN116596748A (en) Image stylization processing method, apparatus, device, storage medium, and program product
CN111292406A (en) Model rendering method and device, electronic equipment and medium
CN110765304A (en) Image processing method, image processing device, electronic equipment and computer readable medium
CN114066722B (en) Method and device for acquiring image and electronic equipment
CN111696041B (en) Image processing method and device and electronic equipment
CN115170395A (en) Panoramic image stitching method, panoramic image stitching device, electronic equipment, panoramic image stitching medium and program product
CN114422698A (en) Video generation method, device, equipment and storage medium
CN114399814A (en) Deep learning-based obstruction removal and three-dimensional reconstruction method
CN113066166A (en) Image processing method and device and electronic equipment
CN110599437A (en) Method and apparatus for processing video
CN112418233A (en) Image processing method, image processing device, readable medium and electronic equipment
CN112070903A (en) Virtual object display method and device, electronic equipment and computer storage medium
CN111770385A (en) Card display method and device, electronic equipment and medium
CN114125485B (en) Image processing method, device, equipment and medium

Legal Events

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