CN109447926A - Image processing method and device, electronic equipment, computer readable storage medium - Google Patents

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

Info

Publication number
CN109447926A
CN109447926A CN201811151553.1A CN201811151553A CN109447926A CN 109447926 A CN109447926 A CN 109447926A CN 201811151553 A CN201811151553 A CN 201811151553A CN 109447926 A CN109447926 A CN 109447926A
Authority
CN
China
Prior art keywords
image
light efficiency
processed
iridescence
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811151553.1A
Other languages
Chinese (zh)
Inventor
李莉勤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811151553.1A priority Critical patent/CN109447926A/en
Publication of CN109447926A publication Critical patent/CN109447926A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • 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

Abstract

This application involves a kind of image processing methods and device, electronic equipment, computer readable storage medium.This method comprises: obtaining the image to be processed of camera acquisition, corresponding light efficiency material is obtained according to image to be processed, light efficiency material is iridescence material, and light efficiency material and image superposition to be processed are handled, iridescence light efficiency image is generated.Processing is overlapped to image to be processed by using light efficiency material, since light efficiency material is iridescence material, iridescence light efficiency image can be generated after being overlapped processing to image to be processed, the light efficiency effect of image can be increased, to meet individual requirements, usage rate of the user is improved.

Description

Image processing method and device, electronic equipment, computer readable storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of image processing method and device, electronic equipment, meter Calculation machine readable storage medium storing program for executing.
Background technique
The mode that electronic equipment obtains image is varied, for example, electronic equipment can acquire figure by camera in real time Picture can also download image by network, or import image by external equipment.If the image obtained is not able to satisfy individual character Change demand, user can also carry out post-processing to the image of acquisition according to the hobby of oneself.For example, can be by the entirety of image Brightness is adjusted, and Weakening treatment can also be carried out to the noise in image, or carry out U.S. face processing to the portrait in image.
Summary of the invention
The embodiment of the present application provides a kind of image processing method, device, electronic equipment, computer readable storage medium, can To increase the light efficiency effect of image, to meet individual requirements, usage rate of the user is improved.
A kind of image processing method, comprising:
Obtain the image to be processed of camera acquisition;
Corresponding light efficiency material is obtained according to the image to be processed, the light efficiency material is iridescence material;
The light efficiency material and the image superposition to be processed are handled, iridescence light efficiency image is generated.
A kind of image processing apparatus, comprising:
Image collection module, for obtaining the image to be processed of camera acquisition;
Material obtaining module, for obtaining corresponding light efficiency material according to the image to be processed, the light efficiency material is Iridescence material;
Image processing module generates iridescence light for handling the light efficiency material and the image superposition to be processed Imitate image.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor executes following steps:
Obtain the image to be processed of camera acquisition;
Corresponding light efficiency material is obtained according to the image to be processed, the light efficiency material is iridescence material;
The light efficiency material and the image superposition to be processed are handled, iridescence light efficiency image is generated.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
Obtain the image to be processed of camera acquisition;
Corresponding light efficiency material is obtained according to the image to be processed, the light efficiency material is iridescence material;
The light efficiency material and the image superposition to be processed are handled, iridescence light efficiency image is generated.
Above-mentioned image processing method and device, electronic equipment, computer readable storage medium, by obtaining camera acquisition Image to be processed, corresponding light efficiency material is obtained according to image to be processed, light efficiency material is iridescence material, by light efficiency material With image superposition to be processed processing, iridescence light efficiency image is generated.Image to be processed is overlapped by using light efficiency material Iridescence light efficiency figure can be generated after being overlapped processing to image to be processed since light efficiency material is iridescence material in processing Picture, can increase the light efficiency effect of image, to meet individual requirements, improve usage rate of the user.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the applied environment figure of image processing method in one embodiment;
Fig. 2 is the flow chart of image processing method in one embodiment;
Fig. 3 is in one embodiment by the method flow diagram of light efficiency material and image superposition to be processed processing;
Fig. 4 is the schematic diagram that iridescence light efficiency image is generated in one embodiment;
Fig. 5 is the method flow diagram for carrying out color mixture correction in one embodiment to image to be processed;
Fig. 6 is the method flow diagram that the color parameter of human face region is adjusted in one embodiment;
Fig. 7 is the method flow diagram that light efficiency material is adjusted in one embodiment;
Fig. 8 is the schematic diagram that light efficiency material is adjusted in one embodiment;
Fig. 9 is the structural block diagram of image processing apparatus in one embodiment;
Figure 10 is the schematic diagram of internal structure of electronic equipment in one embodiment;
Figure 11 is the schematic diagram of image processing circuit in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, the first light efficiency image can be known as the second light efficiency image, and similarly, Second light efficiency image can be known as the first light efficiency image.First light efficiency image and the second light efficiency image both light efficiency image, But it is not same light efficiency image.
Fig. 1 is the application environment schematic diagram of image processing method in one embodiment.As shown in Figure 1, the application environment packet Include electronic equipment 110.Electronic equipment 110 is adopted by the environment around camera shooting, the available camera of electronic equipment 110 The image to be processed of collection, and corresponding light efficiency material is obtained according to image to be processed.Wherein, light efficiency material is iridescence material. Electronic equipment 110 can be handled light efficiency material and image superposition to be processed, generate iridescence light efficiency image.It is understood that It is that above-mentioned electronic equipment can be mobile phone, computer, tablet computer, wearable device etc., it is not limited here.
In one embodiment, provide a kind of image processing method, be applied to above-mentioned electronic equipment come for example, As shown in Fig. 2, the image processing method includes step 202 to step 206.Wherein:
Step 202, the image to be processed of camera acquisition is obtained.
Image to be processed can be camera and be collected, and store image in the electronic device, be also possible to current The preview image of camera acquisition, can also be the image that electronic equipment is downloaded from network.When electronic equipment detects acquisition When instruction, electronic equipment can obtain the image to be processed of camera acquisition according to acquisition instruction.Wherein, acquisition instruction can be with It is that user is generated by the application program installed in triggering electronic equipment, for example, when electronic equipment detects that user triggers electricity When the camera application program installed in sub- equipment, acquisition instruction can be generated.
Step 204, corresponding light efficiency material is obtained according to image to be processed, light efficiency material is iridescence material.
Light efficiency material refers to that is stored in electronic equipment can be handled image, and makes that treated image is shown The material of various light source effects.The light efficiency material stored in electronic equipment can there are many, for example, the light stored in electronic equipment Effect material can be iridescence material, color cigarette light material, dizzy dye light material etc..In one embodiment, it is stored in electronic equipment Light efficiency material can be iridescence material.Wherein, iridescence material can be electronic equipment according to expected rainbow light effect RGB parameter value corresponding with the rainbow light effect is generated, to form light efficiency material corresponding with the rainbow light effect.RGB ginseng Numerical value contains the corresponding color-values of pixel in light efficiency material.
In the present embodiment, the iridescence material stored in electronic equipment can have multiple, the color of each iridescence material Multimedia message can be different.For example, the iridescence material stored in electronic equipment can by taking the brightness value of iridescence material as an example To include brightness value for 120cd/m2Iridescence material, the brightness value 150cd/m of (the every square meter of candela)2Iridescence material Deng.
Electronic equipment, can be according to the corresponding honorable element of luminance acquisition of image to be processed after obtaining image to be processed Material.By taking the brightness value of light efficiency material as an example, when the brightness value for the image to be processed that electronic equipment obtains is relatively high, electronic equipment Available brighter light efficiency material;When the brightness value for the image to be processed that electronic equipment obtains is relatively low, electronic equipment It is available than darker light efficiency material.For example, the brightness value for the image to be processed that electronic equipment obtains is 120cd/m2, electronics The available brightness value of equipment is 120cd/m2、150cd/m2Equal light efficiencies material.That is, electronic equipment is getting image to be processed Afterwards, corresponding light efficiency material can be got according to image to be processed.
Step 206, light efficiency material and image superposition to be processed are handled, generates iridescence light efficiency image.
The superposition processing of image can be to the color-values in the color-values of pixel in image to be processed and light efficiency material Summation can also be the color-values weighted sum of corresponding pixel points in the color-values of middle pixel to be processed and light efficiency material. After electronic equipment gets light efficiency material, light efficiency material and image to be processed can be overlapped, since electronic equipment obtains Light efficiency material be iridescence material, then, can be with after iridescence material and image to be processed are overlapped processing by electronic equipment Generate iridescence light efficiency image.
In the present embodiment, the image to be processed for obtaining camera acquisition, it is corresponding by being obtained according to image to be processed Light efficiency material, light efficiency material are iridescence material, and light efficiency material and image superposition to be processed are handled, iridescence light efficiency figure is generated Picture.Processing is overlapped to image to be processed by using light efficiency material, since light efficiency material is iridescence material, to be processed Iridescence light efficiency image can be generated after being overlapped processing in image, can increase the light efficiency effect of image, to meet individual character Change demand improves usage rate of the user.
As shown in figure 3, in one embodiment, a kind of image processing method provided can also include by light efficiency material with The process of image superposition processing to be processed, specific steps include:
Step 302, the depth information of image to be processed is obtained.
Depth information refers to the distance between subject information in camera and shooting picture.The detection of depth information There are many methods, such as binocular telemetry, Structure light method, time-of-flight method etc..It, can be with after electronic equipment obtains image to be processed Obtain the depth information of image to be processed.
Step 304, according to the overlap-add region of Depth Information Acquistion image to be processed.
Overlap-add region can be the region for needing to add light efficiency material in image to be processed.Electronic equipment is to be processed in acquisition It, can be according to the overlap-add region of Depth Information Acquistion image to be processed after the depth information of image.For example, being wrapped in image to be processed Containing portrait, the depth information of portrait in the available image to be processed of electronic equipment, so that it is determined that portrait in image to be processed Face and shoulder be need to add the region of light efficiency material, and electronic equipment can according to depth information, determine obtain The neck part of portrait is the region for not needing addition light efficiency material in image to be processed.Therefore, electronic equipment can be according to depth Spending the face of portrait and shoulder in acquisition of information image to be processed is overlap-add region.
Step 306, light efficiency material and overlap-add region are overlapped processing, generate iridescence light efficiency image.
After electronic equipment gets overlap-add region and the light efficiency material of image to be processed, can by light efficiency material be superimposed Region is overlapped processing, that is, electronic equipment can be to the color-values and light efficiency of the pixel of overlap-add region in image to be processed Color-values summation in material, can also will correspond to picture in the color-values of the pixel of middle overlap-add region to be processed and light efficiency material The color-values weighted sum of vegetarian refreshments.The light efficiency material that electronic equipment obtains is iridescence material, and electronic equipment is by iridescence material After being overlapped processing with overlap-add region, iridescence light efficiency image can be generated.
In the present embodiment, by obtaining the depth information of image to be processed, according to Depth Information Acquistion image to be processed Overlap-add region, light efficiency material and overlap-add region are overlapped processing, generation iridescence light efficiency image.Electronic equipment according to The Depth Information Acquistion overlap-add region of image is handled, and iridescence material and overlap-add region are overlapped processing, the light of generation Effect image is the image that overlap-add region contains iridescence material, can satisfy individual demand, to improve usage rate of the user.
In one embodiment, as shown in figure 4, Fig. 4 is the iridescence light efficiency image 400 that electronic equipment generates, electronics is set It include portrait in image to be processed, electronic equipment is available for the depth information of the image to be processed of available acquisition The depth information of portrait in image to be processed, so that it is determined that the face 410 of portrait and shoulder 420 are desirable in image to be processed The region of light efficiency material is added, and electronic equipment can determine the neck of portrait in the image to be processed obtained according to depth information Subdivision 430 is not need the region of addition light efficiency material.That is, electronic equipment can be according to Depth Information Acquistion image to be processed The face 410 of middle portrait and shoulder 420 are overlap-add region.The light efficiency material that electronic equipment obtains is iridescence material, electronics After the face 410 and shoulder 420 of iridescence material and overlap-add region portrait are overlapped processing by equipment, rainbow can be generated Light light efficiency image.
In one embodiment, a kind of image processing method provided can also include the mistake for generating iridescence light efficiency figure Journey specifically includes: obtaining the touch area to image to be processed, light efficiency material and touch area are overlapped processing, generated Iridescence light efficiency image.
Touch area refers to that user touches the partial region in image to be processed by the touch display screen of electronic equipment.Example It such as, include portrait, flowers and plants, house, sky etc. in image to be processed, user can be touched by the touch display screen of electronic equipment The portrait in image to be processed is touched, the region where the portrait touched in image to be processed is exactly touch area.Touch area It can be the region touched in image to be processed, can also be multiple regions.
Electronic equipment can fold light efficiency material with touch area after obtaining to the touch area of image to be processed Add processing, to generate iridescence light efficiency image.For example, including portrait, flowers and plants, house in image to be processed, user passes through What the touch display screen of electronic equipment touched is the portrait and house in image, electronic equipment can by iridescence material with wait locate Portrait area and floor area in reason image are overlapped processing respectively, obtain portrait area and floor area includes rainbow The light efficiency image of light.
In the present embodiment, by obtaining the touch area to image to be processed, light efficiency material and touch area are carried out Superposition processing generates iridescence light efficiency image.User can be chosen by the touch display screen of electronic equipment wants addition rainbow The partial region of light material can satisfy individual demand, and improve usage rate of the user.
As shown in figure 5, in one embodiment, a kind of image processing method provided can also include to image to be processed The process of color mixture correction is carried out, specific steps include:
Step 502, light efficiency material and image to be processed are overlapped processing, generate the first light efficiency image.
Electronic equipment can the color-values in color-values to pixel in image to be processed and light efficiency material sum, or Person, by the color-values weighted sum of corresponding pixel points in the color-values of middle pixel to be processed and light efficiency material.Electronic equipment will After light efficiency material and image to be processed are overlapped processing, the first light efficiency image can be generated.Wherein, the first light efficiency image be by The color-values of pixel carry out summation in color-values in light efficiency material and image to be processed or weighted sum obtains.
Step 504, color mixture processing is carried out to the first light efficiency image, generates the second light efficiency image.
Color mixture can be divided into plus light mixing is mixed with dim light.Wherein, light mixing is added to refer to two or more Colored light mixing generates the phenomenon that comprehensive coloured light;Dim light mixing, which refers to, sops up a part for coloured light, the remaining color sopped up after coloured light The phenomenon of light.Electronic equipment can carry out color mixture processing after generating the first light efficiency image to the first light efficiency image, and raw At the second light efficiency image after color mixed processing.
Step 506, colour correction processing is carried out to the second light efficiency image, generates iridescence light efficiency image.
Colour correction refers to the colour cast of correction image, can go back the original color of original image.Electronic equipment is to the first light After imitating image progress color mixture, the second light efficiency image is generated, electronic equipment can carry out colour correction to the second light efficiency image Processing, that is, the first light efficiency image of correction is in color mixture treated image color cast.Electronic equipment to the second light efficiency image into After row colour correction processing, iridescence light efficiency image can be generated.
In the present embodiment, by the way that light efficiency material and image to be processed are overlapped processing, the first light efficiency image of generation, Color mixture processing is carried out to the first light efficiency image, generates the second light efficiency image, the second light efficiency image is carried out at colour correction Reason generates iridescence light efficiency image.Electronic equipment, can be to folded after light efficiency material and image to be processed are overlapped processing Adding treated, image carries out the processing such as color mixture, colour correction, can make in the iridescence light efficiency image ultimately generated Color is more abundant clear.
In one embodiment, as shown in fig. 6, a kind of image processing method provided can also include adjustment human face region Color parameter process, specific steps include:
Step 602, when detect include face in image to be processed when, obtain face where human face region.
Electronic equipment can be detected to face whether is contained in image to be processed.Specifically, electronic equipment can be right Image to be processed carries out recognition of face and detects figure to be processed when electronic equipment identifies the face in image to be processed It include face as in.Human face region where the available face of electronic equipment, when electronic equipment detects image to be processed In when including multiple faces, electronic equipment can obtain multiple human face regions where multiple faces respectively.
Step 604, light efficiency material and human face region are overlapped processing, the human face region that obtains that treated.
After electronic equipment gets human face region, the human face region of light efficiency material and acquisition can be overlapped processing, That is, electronic equipment can seek the color-values with the color-values in light efficiency material of the pixel of human face region in image to be processed With alternatively, the color-values of corresponding pixel points in the color-values of the pixel of middle human face region to be processed and light efficiency material are weighted Summation.Human face region of the electronic equipment after light efficiency material and human face region are overlapped processing, after can be processed.
Step 606, the color parameter of adjustment treated human face region.
Color parameter may include the parameters such as brightness, saturation degree, tone.Electronic equipment is by light efficiency material and human face region After being overlapped processing, treated, and human face region is the human face region for including iridescence, and electronic equipment can be to containing color The color parameter of the human face region of rainbow light is adjusted.For example, electronic equipment it is adjustable include iridescence human face region Brightness, saturation degree etc..
In the present embodiment, when detect include face in image to be processed when, obtain face where human face region, Light efficiency material and human face region are overlapped processing, the human face region that obtains that treated, the human face region that adjusts that treated Color parameter.When electronic equipment, which detects, includes face in image to be processed, carried out using light efficiency material and human face region Superposition processing, and the color parameter for the human face region for after superposition processing including iridescence is adjusted, it can make containing coloured silk The color of the color of the human face region of rainbow light and image to be processed more close to.
In one embodiment, a kind of image processing method provided can also include the process for obtaining light efficiency material, tool Body includes: the color parameter for extracting image to be processed, according to color parameter from pair of established color parameter and light efficiency material It should be related to the corresponding light efficiency material of middle acquisition.
The color parameter of image to be processed may include the parameters such as brightness, saturation degree, tone.It can store in electronic equipment The corresponding relationship of coloured colour parameter and light efficiency material.The brightness of the brighter display of image to be processed, corresponding light efficiency material is got over It is bright.
Electronic equipment can extract the color parameter of image to be processed, and obtain corresponding light according to the color parameter of extraction Imitate material.
In the present embodiment, by extracting the color parameter of image to be processed, according to color parameter from established color Corresponding light efficiency material is obtained in parameter and the corresponding relationship of light efficiency material.Electronic equipment can be according to the color of image to be processed Parameter obtains corresponding light efficiency material, and electronic equipment use light efficiency material corresponding with image color parameter to be processed is to be processed Image is handled, and the quality of image procossing can be improved.
As described in Figure 7, in one embodiment, a kind of image processing method provided can also include adjustment light efficiency material Process, specific steps include:
It step 702, include the first area of iridescence material in acquisition iridescence light efficiency image.
Electronic equipment, can be to the iridescence element in the iridescence light efficiency image of generation after generating iridescence light efficiency image Material is detected, and is first area by the zone marker containing iridescence material.The available iridescence light efficiency of electronic equipment It include the first area of iridescence material in image.Wherein, first area can have one, can also have it is multiple, herein not It limits.
Step 704, the trigger action to first area is obtained.
Trigger action refers to the operations such as click, dragging, the sliding that user is generated by the touch display screen of electronic equipment.Electricity The available trigger action to the first area for including iridescence material of sub- equipment.
Step 706, iridescence material is adjusted to the second area of iridescence light efficiency image, the secondth area according to trigger action Domain is the region for not including iridescence material in iridescence light efficiency image.
Electronic equipment can be adjusted the iridescence material in iridescence light efficiency image according to trigger action.Work as electronics When equipment gets the trigger action to first area, iridescence material can be adjusted to second area by electronic equipment.Wherein, Second area is the region for not including iridescence material in iridescence light efficiency image.That is, electronic equipment can be according to trigger action Iridescence material in first area is adjusted in second area.
In the present embodiment, it by including the first area of iridescence material in acquisition iridescence light efficiency image, obtains To the trigger action of first area, iridescence material is adjusted to the second area of iridescence light efficiency image according to trigger action, Second area is the region for not including iridescence material in iridescence light efficiency image.Electronic equipment can be grasped according to the triggering of user Work is adjusted the position of iridescence material, can satisfy individual demand, improves usage rate of the user.
In one embodiment, as shown in figure 8, after electronic equipment generation iridescence light efficiency image 800, available rainbow It include the first area of iridescence material in light light efficiency image 800, the available user of electronic equipment is to including iridescence The trigger action of the first area of material, when electronic equipment gets the trigger action to first area, electronic equipment can be with Iridescence material is adjusted to second area.After electronic equipment generates iridescence light efficiency image 800, user can be in iridescence light It imitates and the trigger actions such as is clicked, slide, drag on image 800, for example, user can be in the coloured silk on dragging first area 810 Iridescence material is dragged to second area 820 from first area 810 by rainbow light material, and electronic equipment can dragging according to user It is dynamic, light efficiency material is adjusted to second area 820 from first area 810.
In one embodiment, a kind of image processing method is provided, this method is realized specific step is as follows and is described:
The image to be processed of the available camera acquisition of electronic equipment.It is acquired that image to be processed can be camera It is good, store image in the electronic device, be also possible to the preview image when preceding camera acquisition, can also be electronic equipment from The image downloaded on network.When electronic equipment detects acquisition instruction, electronic equipment can be taken the photograph according to acquisition instruction to obtain The image to be processed acquired as head.Wherein, acquisition instruction can be user by triggering the application program installed in electronic equipment It generates, for example, can be generated and obtain when electronic equipment detects that user triggers the camera application program installed in electronic equipment Instruction fetch.
Electronic equipment can obtain corresponding light efficiency material according to image to be processed, and light efficiency material is iridescence material.Electricity The light efficiency material stored in sub- equipment can there are many, iridescence material can be electronic equipment according to expected rainbow light effect RGB parameter value corresponding with the rainbow light effect is generated, to form light efficiency material corresponding with the rainbow light effect.Specifically , electronic equipment can extract the color parameter of image to be processed, according to color parameter from established color parameter and light efficiency Corresponding light efficiency material is obtained in the corresponding relationship of material.The color parameter of image to be processed may include brightness, saturation degree, color The parameters such as tune.
After electronic equipment gets light efficiency material, light efficiency material and image to be processed can be overlapped, due to electronics The light efficiency material that equipment obtains is iridescence material, then iridescence material and image to be processed are overlapped processing by electronic equipment Afterwards, iridescence light efficiency image can be generated.Specifically, the depth information of the available image to be processed of electronic equipment, according to depth Light efficiency material and overlap-add region are overlapped processing, generate iridescence light by the overlap-add region for spending acquisition of information image to be processed Imitate image.Electronic equipment can also obtain the touch area to image to be processed, and light efficiency material is overlapped with touch area Processing generates iridescence light efficiency image.
Light efficiency material and image to be processed are overlapped processing by electronic equipment, can be right after generating the first light efficiency image First light efficiency image carries out color mixture processing, generates the second light efficiency image.Electronic equipment can also to the second light efficiency image into Row colour correction processing, generates iridescence light efficiency image.
When detect include face in image to be processed when, human face region where the available face of electronic equipment, And light efficiency material and human face region are overlapped processing, the human face region that obtains that treated.The adjustable processing of electronic equipment The color parameter of human face region afterwards.
Electronic equipment includes iridescence element in available iridescence light efficiency image after generating iridescence light efficiency image The first area of material.The available trigger action to the first area for including iridescence material of electronic equipment, and according to touching Hair operation adjusts iridescence material to the second area of iridescence light efficiency image, wherein second area is iridescence light efficiency figure The region of iridescence material is not included as in.
It should be understood that although each step in above-mentioned each flow chart is successively shown according to the instruction of arrow, It is these steps is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, above-mentioned each flow chart In at least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily multiple sub-steps Completion is executed in synchronization, but can be executed at different times, the execution in these sub-steps or stage sequence is not yet Necessarily successively carry out, but can be at least part of the sub-step or stage of other steps or other steps in turn Or it alternately executes.
In one embodiment, as shown in figure 9, providing a kind of image processing apparatus, comprising: image collection module 910, Material obtaining module 920 and image processing module 930, in which:
Image collection module 910, for obtaining the image to be processed of camera acquisition.
Material obtaining module 920, for obtaining corresponding light efficiency material according to image to be processed, light efficiency material is iridescence Material.
Image processing module 930 generates iridescence light efficiency figure for handling light efficiency material and image superposition to be processed Picture.
In the present embodiment, it by obtaining the image to be processed of camera acquisition, is obtained according to image to be processed corresponding Light efficiency material, light efficiency material are iridescence material, and light efficiency material and image superposition to be processed are handled, iridescence light efficiency figure is generated Picture.Processing is overlapped to image to be processed by using light efficiency material, since light efficiency material is iridescence material, to be processed Iridescence light efficiency image can be generated after being overlapped processing in image, can increase the light efficiency effect of image, to meet individual character Change demand improves usage rate of the user.
In one embodiment, image processing module 930 is also used to obtain the depth information of image to be processed, according to depth Light efficiency material and overlap-add region are overlapped processing, generate iridescence light efficiency by the overlap-add region of acquisition of information image to be processed Image.
In one embodiment, image processing module 930 is also used to obtain the touch area to image to be processed, by light efficiency Material and touch area are overlapped processing, generate iridescence light efficiency image.
In one embodiment, a kind of image processing apparatus provided can also include the first light efficiency image generation module, Color mixture module and color correction module, in which:
First light efficiency image generation module generates first for light efficiency material and image to be processed to be overlapped processing Light efficiency image.
Color mixture module generates the second light efficiency image for carrying out color mixture processing to the first light efficiency image.
Color correction module generates iridescence light efficiency image for carrying out colour correction processing to the second light efficiency image.
In one embodiment, a kind of image processing apparatus provided can also include that human face region obtains module, face Regional processing module and color parameter adjust module, in which:
Human face region obtain module, for when detect include face in image to be processed when, obtain face where Human face region.
Human face region processing module, for light efficiency material and human face region to be overlapped processing, the people that obtains that treated Face region.
Color parameter adjusts module, the color parameter for the human face region that adjusts that treated.
In one embodiment, material obtaining module 920 is also used to extract the color parameter of image to be processed, according to color Parameter obtains corresponding light efficiency material from established color parameter and the corresponding relationship of light efficiency material.
In one embodiment, a kind of image processing apparatus provided can also include that first area obtains module, triggering Operation obtains module and iridescence material adjusts module, in which:
First area obtain module, for obtain include in iridescence light efficiency image iridescence material first area.
Trigger action obtains module, for obtaining the trigger action to first area.
Iridescence material adjusts module, for being adjusted iridescence material to iridescence light efficiency image according to trigger action Second area, second area are the region for not including iridescence material in iridescence light efficiency image.
The division of modules is only used for for example, in other embodiments, can will scheme in above-mentioned image processing apparatus As processing unit is divided into different modules as required, to complete all or part of function of above-mentioned image processing apparatus.
Specific about image processing apparatus limits the restriction that may refer to above for image processing method, herein not It repeats again.Modules in above-mentioned image processing apparatus can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
Realizing for the modules in image processing apparatus provided in the embodiment of the present application can be the shape of computer program Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized Step.
In one embodiment, as shown in Figure 10, the schematic diagram of internal structure of a kind of electronic equipment is provided.The electronics is set Standby includes processor, memory, display and the network interface connected by system bus.Wherein, the processor is for providing Calculating and control ability, support the operation of entire electronic equipment.Memory for storing data, program, and/or instruction code Deng, at least one computer program is stored on memory, which can be executed by processor, with realize the application implement The image processing method suitable for electronic equipment provided in example.Memory may include magnetic disk, CD, read-only memory Non-volatile memory mediums or random access memory (Random-Access- such as (Read-Only Memory, ROM) Memory, RAM) etc..For example, in one embodiment, memory includes non-volatile memory medium and built-in storage.It is non-volatile Property storage medium is stored with operating system, database and computer program.The computer program can performed by processor, with A kind of image processing method provided by the realization each embodiment of the application.Built-in storage is in non-volatile memory medium Operating system, database and computer program provide the running environment of cache.Display is displayed for upload interface Deng, can be also used for show light efficiency model.Network interface can be Ethernet card or wireless network card etc., for the electronics with outside Equipment is communicated, for example can be used for same server or other electronic equipments are communicated.
It will be understood by those skilled in the art that structure shown in Figure 10, only part relevant to application scheme The block diagram of structure does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can To include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
The embodiment of the present application also provides a kind of electronic equipment.It include image processing circuit, image procossing electricity in electronic equipment Road can use hardware and or software component realization, it may include define ISP (Image Signal Processing, image letter Number processing) pipeline various processing units.Figure 11 is the schematic diagram of image processing circuit in one embodiment.As shown in figure 11, For purposes of illustration only, only showing the various aspects of image processing techniques relevant to the embodiment of the present application.
As shown in figure 11, image processing circuit includes ISP processor 1140 and control logic device 1150.Imaging device 1110 The image data of capture is handled by ISP processor 1140 first, and ISP processor 1140 analyzes image data can with capture Image statistics for determining and/or imaging device 1110 one or more control parameters.Imaging device 1110 can wrap Include the camera with one or more lens 1112 and imaging sensor 1114.Imaging sensor 1114 may include colour filter Array (such as Bayer filter), imaging sensor 1114 can obtain the light captured with each imaging pixel of imaging sensor 1114 Intensity and wavelength information, and the one group of raw image data that can be handled by ISP processor 1140 is provided.1120 (such as top of sensor Spiral shell instrument) parameter (such as stabilization parameter) of the image procossing of acquisition can be supplied to ISP processing based on 1120 interface type of sensor Device 1140.1120 interface of sensor can use SMIA, and (Standard Mobile Imaging Architecture, standard are moved Dynamic Imager Architecture) interface, other serial or parallel camera interfaces or above-mentioned interface combination.
In addition, raw image data can also be sent to sensor 1120 by imaging sensor 1114, sensor 1120 can base Raw image data is supplied to ISP processor 1140 or sensor 1120 for original graph in 1120 interface type of sensor As data storage is into video memory 1130.
ISP processor 1140 handles raw image data pixel by pixel in various formats.For example, each image pixel can Bit depth with 8,10,12 or 14 bits, ISP processor 1140 can carry out raw image data at one or more images Reason operation, statistical information of the collection about image data.Wherein, image processing operations can be by identical or different bit depth precision It carries out.
ISP processor 1140 can also receive image data from video memory 1130.For example, 1120 interface of sensor will be former Beginning image data is sent to video memory 1130, and the raw image data in video memory 1130 is available to ISP processing Device 1140 is for processing.Video memory 1130 can be only in a part, storage equipment or electronic equipment of memory device Vertical private memory, and may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
1114 interface of imaging sensor is come from or from 1120 interface of sensor or from video memory when receiving When 1130 raw image data, ISP processor 1140 can carry out one or more image processing operations, such as time-domain filtering.Place Image data after reason can be transmitted to video memory 1130, to carry out other processing before shown.ISP processor 1140 from video memory 1130 receive processing data, and to the processing data progress original domain in and RGB and YCbCr face Image real time transfer in the colour space.Treated that image data may be output to display 1170 for ISP processor 1140, for Family is watched and/or is further processed by graphics engine or GPU (Graphics Processing Unit, graphics processor).This Outside, the output of ISP processor 1140 also can be transmitted to video memory 1130, and display 1170 can be from video memory 1130 Read image data.In one embodiment, video memory 1130 can be configured to realize one or more frame buffers.This Outside, the output of ISP processor 1140 can be transmitted to encoder/decoder 1160, so as to encoding/decoding image data.Coding Image data can be saved, and decompress before being shown in 1170 equipment of display.Encoder/decoder 1160 can be by CPU or GPU or coprocessor are realized.
The statistical data that ISP processor 1140 determines, which can be transmitted, gives control logic device Unit 1150.For example, statistical data can It is passed including the images such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 1112 shadow correction of lens 1114 statistical information of sensor.Control logic device 1150 may include execute one or more routines (such as firmware) processor and/or Microcontroller, one or more routines can statistical data based on the received, determine at control parameter and the ISP of imaging device 1110 Manage the control parameter of device 1140.For example, the control parameter of imaging device 1110 may include that 1120 control parameter of sensor (such as increases Benefit, the time of integration of spectrum assignment, stabilization parameter etc.), camera flash control parameter, 1112 control parameter of lens it is (such as poly- Burnt or zoom focal length) or these parameters combination.ISP control parameter may include for automatic white balance and color adjustment (example Such as, RGB processing during) 1112 shadow correction parameter of gain level and color correction matrix and lens.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the step of processor executes image processing method.
A kind of computer program product comprising instruction, when run on a computer, so that computer executes image Processing method.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of image processing method characterized by comprising
Obtain the image to be processed of camera acquisition;
Corresponding light efficiency material is obtained according to the image to be processed, the light efficiency material is iridescence material;
The light efficiency material and the image superposition to be processed are handled, iridescence light efficiency image is generated.
2. the method according to claim 1, wherein described fold the light efficiency material and the image to be processed Add processing, generate iridescence light efficiency image, comprising:
Obtain the depth information of the image to be processed;
The overlap-add region of the image to be processed according to the Depth Information Acquistion;
The light efficiency material and the overlap-add region are overlapped processing, generate iridescence light efficiency image.
3. the method according to claim 1, wherein described fold the light efficiency material and the image to be processed Add processing, generate iridescence light efficiency image, comprising:
Obtain the touch area to the image to be processed;
The light efficiency material and the touch area are overlapped processing, generate iridescence light efficiency image.
4. the method according to claim 1, wherein described by the light efficiency material and the image to be processed After superposition processing, the method also includes:
The light efficiency material and the image to be processed are overlapped processing, generate the first light efficiency image;
Color mixture processing is carried out to the first light efficiency image, generates the second light efficiency image;
Colour correction processing is carried out to the second light efficiency image, generates the iridescence light efficiency image.
5. the method according to claim 1, wherein the method also includes:
When detect include face in the image to be processed when, obtain the human face region where the face;
The light efficiency material and the human face region are overlapped processing, the human face region that obtains that treated;
The color parameter of adjustment is described treated human face region.
6. the method according to claim 1, wherein described obtain corresponding light efficiency according to the image to be processed Material, comprising:
Extract the color parameter of the image to be processed;
The corresponding light is obtained from established color parameter and the corresponding relationship of light efficiency material according to the color parameter Imitate material.
7. method according to any one of claims 1 to 6, which is characterized in that the method also includes:
Obtain include in the iridescence light efficiency image iridescence material first area;
Obtain the trigger action to the first area;
The iridescence material is adjusted to the second area of the iridescence light efficiency image according to the trigger action, described Two regions are the region for not including the iridescence material in the iridescence light efficiency image.
8. a kind of image processing apparatus characterized by comprising
Image collection module, for obtaining the image to be processed of camera acquisition;
Material obtaining module, for obtaining corresponding light efficiency material according to the image to be processed, the light efficiency material is rainbow Light material;
Image processing module generates iridescence light efficiency figure for handling the light efficiency material and the image superposition to be processed Picture.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor, so that the processor executes the image procossing as described in any one of claims 1 to 7 The step of method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201811151553.1A 2018-09-29 2018-09-29 Image processing method and device, electronic equipment, computer readable storage medium Pending CN109447926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811151553.1A CN109447926A (en) 2018-09-29 2018-09-29 Image processing method and device, electronic equipment, computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811151553.1A CN109447926A (en) 2018-09-29 2018-09-29 Image processing method and device, electronic equipment, computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109447926A true CN109447926A (en) 2019-03-08

Family

ID=65545618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811151553.1A Pending CN109447926A (en) 2018-09-29 2018-09-29 Image processing method and device, electronic equipment, computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109447926A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608664A (en) * 2014-11-19 2016-05-25 深圳市腾讯计算机系统有限公司 Photo processing method and terminal
US20170331997A1 (en) * 2014-11-25 2017-11-16 Zte Corporation Brightness compensation method and device, and computer storage medium
CN108419028A (en) * 2018-03-20 2018-08-17 广东欧珀移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN108540716A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608664A (en) * 2014-11-19 2016-05-25 深圳市腾讯计算机系统有限公司 Photo processing method and terminal
US20170331997A1 (en) * 2014-11-25 2017-11-16 Zte Corporation Brightness compensation method and device, and computer storage medium
CN108419028A (en) * 2018-03-20 2018-08-17 广东欧珀移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN108540716A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
安雪梅: "《Photoshop7完全手册》", 31 August 2002, 海洋出版社 *
王世基等: "《设计构成》", 31 August 2016, 武汉大学出版社 *
韦斯顿: "《野外摄影指南》", 30 June 2009, 中国摄影出版社 *

Similar Documents

Publication Publication Date Title
CN110149482A (en) Focusing method, device, electronic equipment and computer readable storage medium
CN109523485A (en) Image color correction method, device, storage medium and mobile terminal
CN107862653A (en) Method for displaying image, device, storage medium and electronic equipment
CN108764370A (en) Image processing method, device, computer readable storage medium and computer equipment
CN110276767A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108810418A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN108537155A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108304821A (en) Image-recognizing method and device, image acquiring method and equipment, computer equipment and non-volatile computer readable storage medium storing program for executing
CN105874776A (en) Image processing apparatus and method
CN108419028A (en) Image processing method, device, computer readable storage medium and electronic equipment
CN110493527A (en) Main body focusing method, device, electronic equipment and storage medium
CN110956679B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN109360254A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN109002843A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108897786A (en) Recommended method, device, storage medium and the mobile terminal of application program
CN107509044A (en) Image combining method, device, computer-readable recording medium and computer equipment
CN107424117B (en) Image beautifying method and device, computer readable storage medium and computer equipment
CN110213458B (en) Image data processing method and device and storage medium
CN109242794A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN109712177A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN110121031A (en) Image-pickup method and device, electronic equipment, computer readable storage medium
CN109348206A (en) Image white balancing treatment method, device, storage medium and mobile terminal
CN107920205B (en) Image processing method, device, storage medium and electronic equipment
CN108848306A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN107948618A (en) Image processing method, device, computer-readable recording medium and computer equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308

RJ01 Rejection of invention patent application after publication