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

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

Info

Publication number
CN108632512A
CN108632512A CN201810475717.XA CN201810475717A CN108632512A CN 108632512 A CN108632512 A CN 108632512A CN 201810475717 A CN201810475717 A CN 201810475717A CN 108632512 A CN108632512 A CN 108632512A
Authority
CN
China
Prior art keywords
image
light efficiency
camera
light
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
CN201810475717.XA
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 CN201810475717.XA priority Critical patent/CN108632512A/en
Publication of CN108632512A publication Critical patent/CN108632512A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • 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
    • 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
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a kind of image processing method, device, electronic equipment and computer readable storage mediums.The above method, including:Obtain the first image of the first camera acquisition, and the second image of second camera acquisition, and the light efficiency adjustment parameter preset in light efficiency model is determined according to the environmental parameter of the first image, based on default light efficiency model, light efficiency enhancing processing is carried out to obtain image according to the first image of light efficiency adjustment parameter pair, synthesis processing is carried out to form target image to image and the second image, light effects parameter can be adjusted according only to the environmental parameter dynamic of the first figure, automatic addition light effects, it is set naturally to be synthesized with the second image, image is set to have better light effects and image quality, image is handled without professional, and it is simple and efficient to handle.

Description

Image processing method, device, electronic equipment and computer readable storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of image processing method, device, electronic equipment and meter Calculation machine readable storage medium storing program for executing.
Background technology
In filming image, light is an important factor for determining the image effect that shooting obtains.Irradiating angle, the light of light Line intensity, light color etc. may all influence image effect.Normally, since the shooting of photographer is lacked experience, or shooting More simple and crude etc. reasons of equipment, the light that can not have often captured cause the image effect that shooting obtains poor.
In general, when needing to carry out light efficiency reinforcement processing to image, figure software typically is repaiied to image using the later stage Whole region add lighting effects, it is cumbersome, and lighting effects are poor.
Invention content
A kind of image processing method of the embodiment of the present application offer, device, electronic equipment and computer readable storage medium, can To add light effects automatically, the light effects of image are improved.
A kind of image processing method is applied to the electronic equipment with a plurality of cameras, including:
The first image of the first camera acquisition is obtained, and obtains the second image of second camera acquisition;
The light efficiency adjustment parameter preset in light efficiency model is determined according to the environmental parameter of described first image;
Based on the default light efficiency model, described first image is carried out at light efficiency enhancing according to the light efficiency adjustment parameter Reason is to obtain image.
Synthesis processing is carried out to form target image to the image and second image.
A kind of image processing apparatus is applied to the electronic equipment with a plurality of cameras, including:
Image collection module, the first image for obtaining the acquisition of the first camera, and obtain second camera acquisition The second image;
Parameter determination module, for determining the light efficiency tune preset in light efficiency model according to the environmental parameter of described first image Save parameter;The environmental parameter includes at least one of colour temperature, brightness;
Enhance processing module, for being based on the default light efficiency model, according to the light efficiency adjustment parameter to described first Image carries out light efficiency enhancing processing to obtain image;
Image synthesis unit, for carrying out synthesis processing to the image and second image to form target figure Picture.
A kind of electronic equipment, including the first camera, second camera, memory and processor are deposited in the memory Computer program is contained, when the computer program is executed by the processor so that the processor is realized as described above Method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Method as described above is realized when row.
Above-mentioned image processing method, device, electronic equipment and computer readable storage medium, by obtaining the first camera Second image of the first image and the second camera acquisition of acquisition, and determined according to the environmental parameter of described first image Light efficiency adjustment parameter in default light efficiency model, is based on the default light efficiency model, according to the light efficiency adjustment parameter to described First image carries out light efficiency enhancing processing to obtain image, is carried out at synthesis to the image and second image Reason can adjust light effects parameter according only to the environmental parameter dynamic of the first figure, add light automatically to form target image Line effect makes it naturally be synthesized with the second image, and image is made to have better light effects and image quality, without special Industry personnel handle image, and simple and efficient to handle.
Description of the drawings
Fig. 1 is the application scenario diagram of image processing method in one embodiment;
Fig. 2 is the block diagram of electronic equipment in one embodiment;
Fig. 3 is the flow diagram of image processing method in one embodiment;
Fig. 4 is the flow diagram of image processing method in another embodiment;
Fig. 5 is that the default light efficiency model is based in one embodiment, according to the light efficiency adjustment parameter to described first Image carries out light efficiency enhancing processing to obtain the flow diagram of image;
Fig. 6 is the schematic diagram that light efficiency model is preset in one embodiment;
Fig. 7 is to determine the light efficiency tune preset in light efficiency model according to the environmental parameter of described first image in one embodiment Save the flow diagram of parameter;
Fig. 8 is that the default light efficiency model is based in another embodiment, according to the light efficiency adjustment parameter to described the One image carries out light efficiency enhancing processing to obtain the flow diagram of image;
Fig. 9 is the flow diagram of image processing method in another embodiment;
The block diagram of image processing apparatus in Figure 10 one embodiment;
Figure 11 is the schematic diagram of image processing circuit in one embodiment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.
Fig. 1 is the application scenario diagram of image processing method in one embodiment.As shown in Figure 1, electronic equipment 10 can pass through Imaging device shoots all scenery, the people etc. in scene.Wherein, imaging device includes radiation camera, respectively First camera and second camera, wherein the first camera can be wide-angle camera or focal length camera;Second camera May be focal length camera or wide-angle camera.Wherein, the angular field of view of wide-angle camera is big, can cover a wide range of scape Object can occasionally emphasize foreground, emphasize near big and far smaller contrast;Focal length camera focal length is long, and visual angle is small, is imaged on egative film greatly, It is suitable for shooting the object of distant place, can more effectively blurs background and protrude the first body of focusing.
Electronic equipment 10 can obtain the environmental parameter of the first image by the first camera acquisition in imaging device 20, And the light efficiency adjustment parameter preset in light efficiency model is determined according to environmental parameter.Electronic equipment 10 can in default light efficiency model, Light efficiency enhancing processing is carried out to obtain image, and according to image and second according to the first image of light efficiency adjustment parameter pair Second image of camera acquisition carries out synthesis processing, to form target image.
Fig. 2 is the block diagram of electronic equipment in one embodiment.As shown in Fig. 2, the electronic equipment includes passing through system bus Processor, memory, display screen and the input unit of connection.Wherein, memory may include non-volatile memory medium and processing Device.The non-volatile memory medium of electronic equipment is stored with operating system and computer program, and the computer program is by processor To realize a kind of image processing method provided in the embodiment of the present application when execution.The processor calculates and controls energy for providing Power supports the operation of entire electronic equipment.Built-in storage in electronic equipment is the computer journey in non-volatile memory medium The operation of sequence provides environment.The display screen of electronic equipment can be liquid crystal display or electric ink display screen etc., input dress It can be the touch layer covered on display screen to set, and can also be the button being arranged on electronic equipment casing, trace ball or Trackpad, Can also be external keyboard, Trackpad or mouse etc..The electronic equipment can be that mobile phone, tablet computer or individual digital help Reason or Wearable etc..It will be understood by those skilled in the art that structure shown in Figure 2, only with application scheme phase The block diagram of the part-structure of pass does not constitute the restriction for the electronic equipment being applied thereon to application scheme, specific electricity Sub- equipment may include either combining certain components or with different components than more or fewer components as shown in the figure Arrangement.
As shown in figure 3, in one embodiment, providing a kind of image processing method, it is applied to that there are a plurality of cameras Electronic equipment, image processing method includes step 302- steps 308.
Step 302:The first image of the first camera acquisition is obtained, and obtains the second figure of second camera acquisition Picture.
Electronic equipment can pass through the imaging device just picture of current scene in real time, wherein imaging device includes a plurality of Camera can pass through the first camera shooting of a plurality of cameras for example, imaging device may include dual camera or three cameras Head the first image of acquisition, and the second image is acquired by the second camera of a plurality of cameras.Specifically, electronic equipment can By the environmental light intensity for acquiring current scene, the first camera and second camera are determined according to the environmental light intensity of acquisition.Its In, the first camera is wide-angle camera, and second camera is focal length camera, alternatively, the first camera is focal length camera, Second camera is wide-angle camera.
It should be noted that imaging device may be provided on electronic equipment, can also be not provided on an electronic device but with electricity Sub- equipment connects, and the synthesis target figure of the first image and the second image of imaging device acquisition can be shown on the screen of electronic equipment Picture.
Step 302:The light efficiency adjustment parameter preset in light efficiency model is determined according to the environmental parameter of described first image.
Electronic equipment can acquire the environmental parameter of the first image, and environmental parameter can be used for indicating the ring of the scene of current shooting Border situation.Wherein, environmental parameter may include at least one of color temperature information, luminance information, but not limited to this.Color temperature information can For indicating in light to include color component, colour temperature refers to being presented after absolute black body is heated since absolute zero (- 273 DEG C) Color.Luminance information then can be used for indicating the intensity of the light source of present filming scene.
It is also different from the corresponding light efficiency adjustment parameter of environmental parameter when environmental parameter difference, wherein light efficiency is adjusted Parameter is used to adjust the light effects of described first image.Light efficiency adjustment parameter corresponding with luminance information is brightness enhancing system Number can be used for adjusting the brightness of the light effects of addition.Light efficiency adjustment parameter corresponding with colour temperature is color adaptation coefficient, In, color adaptation coefficient can be indicated with color conversion matrix, wherein color conversion matrix can be used for adjust RGB (it is red, green, It is blue) color-values of each pixel of color space, color adaptation coefficient can be used for adjusting the color of the light effects of addition.That is, The color etc. that electronic equipment can carry out blast processing based on default the first image of light efficiency model pair, change the first image.
Optionally, electronic equipment can be provided with light efficiency switch on interface, and user can trigger light efficiency switch, choose whether pair First image carries out light efficiency processing, wherein light efficiency handles and refers to adding different light effects in the first image, can be with mould Cloth light effect in quasi- studio carries out polishing to the first image, manufactures good light effects.Light efficiency class also may be selected in user Type, portrait light efficiency type may include but be not limited to rim(ming) light, stage light applications, photographic studio light etc., can also realize the light of different colours Line effect etc., user can voluntarily select according to actual demand.
Electronic equipment can build default light efficiency model in advance, can be determined according to the environmental parameter of acquisition and preset light efficiency model In light efficiency adjustment parameter, the face that brightness enhancing processing is carried out based on default the first image of light efficiency model pair, changes the first image The processing of the light efficiencies such as color enhancing, can also simulate the cloth light effect in studio, realize the effect that polishing is carried out to the first image.
Step 306:Based on the default light efficiency model, light is carried out to described first image according to the light efficiency adjustment parameter Effect enhancing processing is to obtain image.
Electronic equipment can carry out the processing of light efficiency enhancing according to default the first image of light efficiency model pair, namely adjust addition light The processing of effect can enhance coefficient pair according to the color-values of pixel in the first image of color adaptation coefficient adjustment according to brightness First image carries out blast processing etc..
Based on default light efficiency model, electronic equipment can also be according to the color-values of the first image of color adaptation coefficient adjustment.Example Such as, electronic equipment can determine the color adaptation coefficient preset in light efficiency model according to the colour temperature of acquisition.Electronic equipment can be set in advance Set the corresponding color adaptation coefficient of different colour temperatures, after the colour temperature for acquiring the first image, the colour temperature pair that can directly acquire and acquire The color adaptation coefficient answered.
Optionally, electronic equipment can also choose the light effects type of addition according to colour temperature, and light effects type may include Morning twilight effect, photographic studio lighting effects, stage light applications effect etc., but not limited to this.It may be provided with not in different light effects types Same color adaptation coefficient increases pixel in the first image for example, warm-toned color adaptation coefficient can be arranged in morning twilight effect Value in the channel R, G keeps the light effects that the first image adds partially yellow, partially red, but not limited to this.
Based on default light efficiency model, electronic equipment can enhance the first image of coefficient pair according to brightness to carry out at brightness enhancing Reason, namely improve the brightness value of each pixel in the first image.When carrying out brightness enhancing processing to the first image, light efficiency mould is preset Formula can be dimensional gaussian distribution function (also referred to as bivariate normal integral), and brightness enhances coefficient can be with dimensional Gaussian point Distribution range association in cloth function, brightness enhancing coefficient is bigger, and distribution range can be bigger, and the brightness of the light effects of addition is strong Degree is bigger;Brightness enhancing coefficient is smaller, and distribution range can be smaller, and the intensity of brightness of the light effects of addition is smaller.
Optionally, electronic equipment can also choose light effects type according to environmental parameters such as colour temperature, the brightness of acquisition, different It may be provided with different light effects parameters in light effects type, electronic equipment can be according to the light of the light effects type of selection The first image of line efficacy parameter pair is added the processing of light effects.For example, electronic equipment is according to the color temperature information of acquisition, bright It spends information etc. and chooses morning twilight effect, can obtain light effects parameter corresponding with morning twilight effect, including color adaptation coefficient and bright Degree enhancing coefficient etc., and the processing that the first image is added light effects is joined according to light effects parameter, to reach the The effect of morning twilight is stamped in one image.
Step 308:Synthesis processing is carried out to form target image to the image and second image.
Based on default light efficiency model, according to the light efficiency adjustment parameter to described first image carry out light efficiency enhancing processing with Image is obtained, and synthesis processing is carried out to the second image of image and second camera acquisition, to form target figure Picture.
Wherein, electronic equipment can be synthesized using transparency as dimension, can also be using brightness as dimension come into Row synthesis.Electronic equipment can synthesize image and the second image based on a plurality of image-forming principles of taking the photograph, to form mesh Logo image.
In the present embodiment, by obtain the acquisition of the first camera the first image and second camera acquisition the Two images, and the light efficiency adjustment parameter preset in light efficiency model is determined according to the environmental parameter of described first image, based on described Default light efficiency model carries out light efficiency enhancing processing to obtain image according to the light efficiency adjustment parameter to described first image Picture carries out synthesis to the image and second image and handles to form target image, can be according only to the first figure Environmental parameter dynamic adjustment light effects parameter, add light effects automatically, it made naturally to be synthesized with the second image, So that image is had better light effects and image quality, image is handled without professional, and simple and efficient to handle.
As shown in figure 4, in one embodiment, step 304 is determined according to the environmental parameter of described first image presets light Before imitating the light efficiency adjustment parameter in model, include the following steps:
Step 402:The depth information of described first image is obtained according to described first image and the second image.
First image is acquired by the first camera, and the second image is acquired by the second camera shooting, the first camera and the second camera shooting There is a certain distance between head.In actual scene, dual camera resolution depth differentiates the principle of the depth of scenery with human eye It is identical, mainly told by binocular vision.The depth information of the first image is calculated in the present embodiment according to the second image, it is main It is to rely on principle of triangulation to want method.Depth information can be the first camera of acquisition target distance and second camera place The distance of plane.
In addition it is also possible to calculate the depth information of the first image using other modes, for example, the first camera and the When two cameras are taken pictures for the same scene, distance and the first camera and second of the object distance camera in scene are taken the photograph The proportional relationships such as displacement difference, the posture difference being imaged as head can obtain above-mentioned depth information according to this proportionate relationship.
Step 404:According to the target area of the extraction of depth information described first image.
After the depth information for calculating the first image, it can be determined according to the depth information of each object in the first image Target area.The target area can be foreground area, can also distant view region.In general, depth information instruction is to image distance It is closer from plane where the first camera and second camera, when depth value is smaller, it may be determined that the object belongs to foreground zone Domain, otherwise, the object belong to distant view region.Specifically, user can set according to actual demand judges foreground area and distant view The predetermined depth threshold value in region.When depth information is less than predetermined depth threshold value, it may be determined that the object belongs to foreground area, no Then, which belongs to distant view region.
When the first camera is wide-angle camera, and second camera is focal length camera, before setting target area to Scene area;When the first camera is focal length camera, and second camera is wide-angle camera, target area is set as distant view Region.
It should be noted that user can be according to the first camera of scene switching and second camera of shooting.Work as shooting When scene is close shot, the first camera can be set as wide-angle camera, second camera is set as focal length camera;Work as shooting When scene is distant view, the first camera can be set as focal length camera, second camera is set as wide-angle camera.
Step 406:The environmental parameter that is determining according to the target area and obtaining described first image.
Wherein, environmental parameter includes at least one of luminance information and color temperature information.Since target area can be close Scene area, or distant view region namely electronic equipment can determine the first image according to close shot region and distant view region Environmental parameter.For example, when the target area is close shot region, it is determined that the environmental parameter of the first image includes colour temperature letter Breath and/or luminance information;When the target area is distant view region, it is determined that the environmental parameter of the first image is believed for brightness Breath.
Further, when target area is close shot region, the object of target area can be identified in electronic equipment, And judge in the target area whether to include main object.Wherein, main object can be portrait, animal, material object etc., work as target Region includes main object, then can determine that the environmental parameter of the first image includes color temperature information and luminance information.Work as target area Domain does not include main object, it is determined that the environmental parameter of the first image includes color temperature information or luminance information.
In one embodiment, electronic equipment may be based on corresponding image processing algorithm and the image according to target area Environmental parameter is calculated in data.For example, electronic equipment can by automatic white balance (Automatic white balance, AWB) colour temperature of target area is calculated in algorithm, and under different light environments, the object being taken will present out different face The algorithm that is taken in image can be reduced into true color by color, automatic white balance algorithm.Electronic equipment can be by exposing automatically The brightness of target area is calculated in light algorithm, and automatic exposure algorithm can make the image captured under different lighting conditions and scene Will not be excessive lightness or darkness, so that image is in a gray scale with preferable view effect.
Optionally, electronic equipment can obtain environmental parameter by corresponding sensor.Specifically, electronic equipment can lead to The color temperature information that color temperature sensor acquires the first image is crossed, while the brightness of current scene can also be acquired based on light sensor Information, the luminance information can be as the brightness of the first image.
It should be noted that when environmental parameter includes simultaneously color temperature information and luminance information, corresponding light efficiency is adjusted Parameter may include color adaptation coefficient and brightness enhancing coefficient.It is carried out at light efficiency enhancing based on default the first image of light efficiency module pair When reason, the priority of light efficiency enhancing processing can be set.For example, can be according to the luminance information and color temperature information and standard of acquisition The difference amplitude of environmental parameter (normal brightness information, standard color temperature information) determines priority, wherein difference amplitude is bigger, Its priority is higher.When brightness enhance coefficient priority be higher than color adaptation coefficient priority when, first to the first image into Row brightness enhancing is handled, and then carries out color adaptation processing to the first image.User can set excellent according to actual demand First grade is limited here, not further to the setting means of its priority.
In one embodiment, when the environmental parameter includes luminance information, the light efficiency adjustment parameter is for adjusting Save the brightness enhancing coefficient of the light luminance effect.
As shown in figure 5, in one embodiment, step 306 is based on the default light efficiency model, adjusted according to the light efficiency Parameter carries out light efficiency enhancing processing to obtain image to described first image, includes the following steps:
Step 502:Obtain target blast position.
Wherein, target blast position can be the center that blast processing is carried out to the target area of the first image, Can be addition the highest position of light effects intensity, addition light effects intensity centered on target blast position to Surrounding gradually weakens.
Specifically, target blast position can be the pre-set fixed point of electronic equipment, such as in the first image Heart position;Electronic equipment can obtain the first image, and regard the first image as geometric figure, and the center of the several picture is The center of first image.Certainly, target blast position can also be other pre-set fixed points, be not limited in This.
Optionally, target blast position may be the center of target area.According to the depth of the target area of acquisition Spend information, it may be determined that target area, electronic equipment can be using the centers of target area as target delta region.Further , it, can also be by main object if in the target area include the objects such as main object, such as portrait, animal, material object Characteristic point is as target blast position, wherein characteristic point can be used for describing shape and placement position of main object etc..Example Such as, when main object is portrait, electronic equipment can determine forehead region according to characteristic point, and choose the center in forehead region Point, using the central point in forehead region as target blast position.The characteristic point for choosing main object is target blast position, can be made The light effects of target area addition are more preferable.
Optionally, target blast position can also be the position that user currently selects, that is, user can pass through touch-control target Any position in region, and the position that user is selected is as target blast position.Electronic equipment can receive the touch-control behaviour of user Make, and position of touch is obtained according to the touch control operation of reception, it can be using the position of touch as target blast position.User can basis Actual demand selection target blast position, meets the needs of different user, can effectively improve the light effects of addition.
It should be noted that target blast position can also be used other modes and be obtained, it is not limited in above-mentioned several Mode.
Step 504:The distribution center of light efficiency model is preset according to target blast location determination, and coefficient is enhanced according to brightness Determine distribution range.
Step 506:Dimensional gaussian distribution function is built according to distribution center and distribution range.
Wherein, it is dimensional gaussian distribution function to preset light efficiency model, and electronic equipment can be pre- according to target blast location determination If the distribution center of light efficiency model, and coefficient is enhanced according to brightness and determines distribution range.Electronic equipment can be by target blast position As the distribution center of default light efficiency model, distribution center can be highest point in dimensional gaussian distribution function.Default light efficiency mould The distribution range of type can be used for describing the shape of dimensional gaussian distribution function.When brightness enhancing coefficient is bigger, light efficiency mould is preset The shape of type can more " tall and thin ", and when brightness enhancing coefficient is smaller, the shape for presetting light efficiency model can more " slight of stature ".
In one embodiment, the dimensional gaussian distribution function for presetting light efficiency model can be used following formula to indicate:
Wherein, z indicates the pixel in target area;P (z) indicates that brightness when pixel carries out blast processing enhances width Degree;D is standard deviation, and brightness enhancing coefficient can influence the size of d, and when brightness enhancing coefficient is bigger, d can be smaller, brightness enhancing system Number gets over hour, and d can be bigger;μIndicate the distribution center of default light efficiency model.Optionally, distribution center can be that the target obtained increases Bright position.In default light efficiency model, it is in the pixel of target area different location, corresponding brightness enhancing amplitude is different, Pixel closer range distribution center μ, brightness enhance stronger, the remoter range distribution center μ pixel of amplitude, brightness enhancing Amplitude is smaller.
Fig. 6 is the schematic diagram that light efficiency model is preset in one embodiment.As shown in fig. 6, default light efficiency model is that two dimension is high This distribution function, two edge distributions of the dimensional gaussian distribution function are all the forms of One-Dimensional Normal distribution.In default light efficiency In model, x-axis and y-axis can be used for indicating that the position coordinates of pixel in the target area, z-axis can be used for indicating the bright of pixel Spend enhancing amplitude.Distribution center 602 is the pixel that position coordinates are (x0, y0), and electronic equipment can obtain target blast position, And using target blast position as distribution center (x0, y0), distribution center (x0, y0) is brightness enhancing width in default light efficiency model Spend maximum point.Brightness enhancing coefficient can be used for influencing the distribution range of default light efficiency model, and brightness enhancing coefficient is bigger, presets The brightness enhancing amplitude of pixel is bigger in light efficiency model, and the brightness that pixel improves is larger;Brightness enhancing coefficient is smaller, presets The brightness enhancing amplitude of pixel is smaller in light efficiency model, and the brightness that pixel improves is smaller.
Step 508:Blast processing is carried out to obtain imaging according to target area described in the dimensional gaussian distribution function pair Image.
Electronic equipment can carry out blast processing according to according to the dimensional gaussian distribution function pair target area of structure.Specifically , electronic equipment can according to dimensional gaussian distribution function calculate pixel brightness enhance amplitude, and by brightness enhancing amplitude with The original brightness value of pixel is multiplied, and can be calculated blast treated brightness value.Electronic equipment can be according to being calculated Brightness value carries out blast processing to pixel.
In one embodiment, electronic equipment can established standards brightness value, which can be used for indicating ideal bright Degree can assert ideal effect there are one gathering around when the luminance information of target area reaches the normal brightness value.Electronics is set After standby acquisition ambient brightness, it can determine whether ambient brightness is less than normal brightness value.If it is bright that ambient brightness is greater than or equal to standard Angle value then can not carry out blast processing to target area.If ambient brightness is less than normal brightness value, can be according to normal brightness value And brightness enhancing coefficient is calculated in ambient brightness, optionally, it can be normal brightness value and ambient brightness that brightness, which enhances coefficient, Ratio.For example, normal brightness value is Y, luminance information X, if X < Y, brightness enhances coefficient=Y/X.According to ambient brightness Adjusting brightness enhances coefficient, can prevent the light of addition from the case where darker or lighter occur.
In the present embodiment, blast processing can be carried out by dimensional gaussian distribution function pair target area, different location The brightness enhancing amplitude of pixel is different, image can be made to have better light effects so that the light effects of addition are more true It is real, natural.
As shown in fig. 7, in one embodiment, it is described according to first figure when the environmental parameter includes colour temperature The environmental parameter of picture determines the light efficiency adjustment parameter preset in light efficiency model, including:
Step 702:Light, which is chosen, according to the color temperature information of described first image adjusts color-values.
Electronic equipment acquires the colour temperature of the first image, can choose light effects color-values, light effects color according to colour temperature Value can be used for indicating the color of the light effects of addition.Optionally, the light effects color-values of selection can be with the colour temperature category of acquisition In same tone, to may make the light effects of addition that there is better view effect.For example, the colour temperature of acquisition is warm colour It adjusts, then light effects color-values may belong to the color-values of warm tones, such as yellow, red etc., so as to preferably express Environment in first image.
Step 704:Color-values, which are adjusted, according to the light determines color conversion matrix.
Electronic equipment can determine color conversion matrix according to the light effects color-values of selection, and the color conversion matrix is available In the color-values for changing each pixel of the first image, from original color adaptation it is by each pixel in the first image and light The corresponding color of effect color-values, to reach the light for adding the color corresponding with light effects color-values in the first image The purpose of line effect.
In one embodiment, it is based on the default light efficiency model, according to the light efficiency adjustment parameter to first figure It is handled as carrying out light efficiency enhancing to obtain image, including:By the color-values of each pixel in the target area and institute Color conversion matrix multiplication is stated, light effects are added in the target area, the light effects have to be turned with the color Change the corresponding color of matrix.
The color-values of each pixel in target area can be multiplied by electronic equipment with color conversion matrix, adjust target area The color-values of each pixel in domain.The color-values for adjusting each pixel in target area, can be equivalent to and add on target area One layer of colour filter, the colour filter has been added to may be implemented in the light effects of target area addition corresponding color.
Optionally, electronic equipment also can adjust the color saturation and contrast of each pixel, may make the shadow of simulation Canopy cloth light effect is more true, natural.
As shown in figure 8, in one embodiment, step 306 is based on the default light efficiency model, adjusted according to the light efficiency Parameter carries out light efficiency enhancing processing to obtain image to described first image, including:
Step 802:When the target area is foreground area, the human face region in the target area is determined.
After the depth information for calculating the first image, it can be determined according to the depth information of each object in the first image Target area.The target area can be foreground area, can also distant view region.In general, depth information instruction is to image distance It is closer from plane where the first camera and second camera, when depth value is smaller, it may be determined that the object belongs to foreground zone Domain, otherwise, the object belong to distant view region.Specifically, user can set according to actual demand judges foreground area and distant view The predetermined depth threshold value in region.When depth information is less than predetermined depth threshold value, it may be determined that the object belongs to foreground area, no Then, which belongs to distant view region.
In foreground area, human face region is different from the color in other regions, and the color of human face region is the human bodies face such as the colour of skin Color can identify that colour of skin region determines foreground zone with the region covered according to the colour of skin by Color Channel detection algorithm The contour edge of human face region in domain.Optionally, being also based on image border has the feature of discontinuity, passes through CANNY The image borders such as algorithm, Wavelet Transformation Algorithm algorithm determines the contour edge of the human face region in foreground area.
It should be noted that it is also based on the human face region that other face Region detection algorithms determine foreground area, This, it is not further to be limited.
Step 804:Light efficiency enhancing processing is carried out to obtain imaging to the human face region according to the light efficiency adjustment parameter Image.
Electronic equipment to human face region can handle at light efficiency enhancing according to light efficiency adjustment parameter.Specifically, electronics Equipment can first according to brightness enhance coefficient to target area carry out blast processing, can be human face region it is pure and fresh as it can be seen that and So that human face region is more clear compared to the boundary in other regions, convenient for extraction human face region, further according to color-toning parameters Adjust the color-values of each pixel in portrait area.Brightness enhancing processing is carried out to target area so that human face region possesses Better light effects keep the cloth light effect in simulation studio more true.
Optionally, electronic equipment can also after determining human face region, can according to default light efficiency model to human face region into Row light efficiency reinforcement is handled, for example the color-values of each pixel in portrait area can be adjusted according to color-toning parameters, according to bright Degree enhancing coefficient carries out blast processing etc. to portrait area, but not limited to this.
Optionally, electronic equipment can reduce the brightness value of the background area in addition to portrait area, keep background area dimmed, and Treated portrait area and dimmed background area are recombined to obtain treated image.Treated, and image can make Portrait possesses better light effects, keeps the cloth light effect in simulation studio more true.
As shown in figure 9, in one embodiment, step 302 obtains the first image of the first camera acquisition, and obtains Before second image of second camera acquisition, image processing method further includes:
Step 902:The acquisition mode of image to be collected is obtained, the acquisition mode includes close shot acquisition and distant view acquisition.
The acquisition mode of imaging device includes close shot pattern and landscape mode in electronic equipment.Wherein, close shot mode user Acquire the image in close range.Such as the characteristics of objects such as personage, animal, that is, imaging device and image to be collected away from It is less than pre-determined distance value from information, is preset to coke number, for example, focal distance exists or, the focal distance of image to be collected is less than Between 0.3-1 meters;The close shot mode user acquisition image, such as scenery with hills and waters landscape etc. in range farther out, imaging device with it is to be collected The range information of image is more than pre-determined distance value, is preset to coke number or, the focal distance of image to be collected is more than, for example, focusing Distance is more than 1 meter.
Step 904:First camera and second camera are determined according to the acquisition mode;Wherein, described first Camera is wide-angle camera, and second camera is focal length camera, or, first camera is focal length camera, second Camera is wide-angle camera.
When close shot pattern, the first camera is set as wide-angle camera by control, and second camera is set as focal length camera. The angle lens of wide-angle camera are wide, and visual range is big, and effective visual range is small.Under close shot pattern, wide-angle camera at Picture effect is more preferable, can be using wide-angle camera as the first camera, and acquisition is used to be imaged and the first image of light efficiency processing, by Focal length camera calculates the second image of depth information for acquiring auxiliary as second camera.
When landscape mode, the first camera is set as focal length camera by control, and second camera is set as wide-angle camera. Focal length camera focal length is long, and visual angle is small, is suitable for shooting the object and good imaging quality of distant place.Under landscape mode, focal length is taken the photograph , can be using focal length camera as the first camera as the imaging effect of head is more preferable, acquisition is for be imaged and light efficiency is handled the One image calculates the second image of depth information for acquiring auxiliary using wide-angle camera as second camera.
Method in the present embodiment can switch different camera acquisition user imagings and light efficiency according to acquisition mode The image for enhancing processing, improves image quality and light efficiency effect.
In one embodiment, a kind of image processing method is provided, is included the following steps:
Step (1) obtains the first image of the first camera acquisition, and obtains the second figure of second camera acquisition Picture.
In one embodiment, before step (1), further include:Obtain the acquisition mode of image to be collected, the acquisition mode Including close shot pattern and landscape mode;First camera and second camera are determined according to the acquisition mode;Wherein, institute It is wide-angle camera to state the first camera, and second camera is focal length camera, or, first camera images for focal length Head, second camera are wide-angle camera.
Step (2) obtains the first image of the first camera acquisition, and obtains the second figure of second camera acquisition Picture.
In one embodiment, when the environmental parameter includes color temperature information, step (2) includes:According to the colour temperature It chooses light and adjusts color-values;Color-values, which are adjusted, according to the light determines color conversion matrix.
In one embodiment, before step (2), further include:Described the is obtained according to described first image and the second image The depth information of one image;According to the target area of the extraction of depth information described first image;According to the target area Determine the environmental parameter of described first image.
Step (3) is based on the default light efficiency model, and light is carried out to described first image according to the light efficiency adjustment parameter Effect enhancing processing is to obtain image.
In one embodiment, when the environmental parameter includes luminance information, the light efficiency adjustment parameter includes brightness Enhance coefficient;Step (3), including:Obtain blast target location;The default light efficiency mould is determined according to the blast target location The distribution center of type, and coefficient is enhanced according to the brightness and determines distribution range;According to the distribution center and distribution range structure Build dimensional gaussian distribution function;Blast processing is carried out to obtain into according to the dimensional gaussian distribution function pair described first image As image.
In one embodiment, step (3) includes:By the color-values of each pixel in described first image and the color Color transition matrix is multiplied, and light effects is added in described first image, the light effects have and the color conversion square The corresponding color of battle array.
In one embodiment, step (3) includes:When the target area is foreground area, the target area is determined Human face region in domain;Light efficiency enhancing processing is carried out to obtain image to the human face region according to the light efficiency adjustment parameter Picture.
Step (4) carries out synthesis processing to form target image to the image and second image.
It should be understood that although each step in above-mentioned each flow diagram is shown successively according to the instruction of arrow Show, but these steps are not the inevitable sequence indicated according to arrow to be executed successively.Unless expressly state otherwise herein, this There is no stringent sequences to limit for the execution of a little steps, these steps can execute in other order.Moreover, above-mentioned each stream At least part step in journey schematic diagram may include that either these sub-steps of multiple stages or stage be simultaneously for multiple sub-steps It is not necessarily and executes completion in synchronization, but can execute at different times, the execution in these sub-steps or stage Sequence is also not necessarily and carries out successively, but can with other steps either the sub-step of other steps or stage at least one Part executes in turn or alternately.
As shown in Figure 10, in one embodiment, a kind of image processing apparatus is provided, including:
Image collection module 1010, the first image for obtaining the acquisition of the first camera, and obtain second camera Second image of acquisition;
Parameter determination module 1020, for determining the light preset in light efficiency model according to the environmental parameter of described first image Imitate adjustment parameter;The environmental parameter includes at least one of colour temperature, brightness;
Enhance processing module 1030, for being based on the default light efficiency model, according to the light efficiency adjustment parameter to described First image carries out light efficiency enhancing processing to obtain image;
Image synthesis unit 940, for carrying out synthesis processing to the image and second image to form mesh Logo image.
Above-mentioned image processing apparatus is acquired by the first image and second camera that obtain the acquisition of the first camera The second image, and determine the light efficiency adjustment parameter preset in light efficiency model according to the environmental parameter of described first image, be based on The default light efficiency model carries out light efficiency enhancing processing to obtain imaging according to the light efficiency adjustment parameter to described first image Image carries out synthesis to the image and second image and handles to form target image, can be according only to the first figure The environmental parameter dynamic adjustment light effects parameter of shape, adds light effects, it is made naturally to be closed with the second image automatically At making image have better light effects and image quality, handled image without professional, and is easy to operate fast It is prompt.
In one embodiment, image processing apparatus further includes:
Determining module, the depth information for obtaining described first image according to described first image and the second image;Root According to the target area of the extraction of depth information described first image;The institute of described first image is determined according to the target area State environmental parameter.
Device in the present embodiment can automatically determine the environmental parameter of the first image according to target area, then may be used It is that the light efficiency enhancing of the first image handles increased interest to automatically determine the light efficiency adjustment parameter in default light efficiency model.
In one embodiment, when the environmental parameter includes luminance information, the light efficiency adjustment parameter includes brightness Enhance coefficient;Wherein, enhancing processing module includes:
Increment acquiring unit, for obtaining blast target location;
Distribution unit, the distribution center for determining the default light efficiency model according to the blast target location, and root Distribution range is determined according to brightness enhancing coefficient;
Construction unit, for building dimensional gaussian distribution function according to the distribution center and distribution range;
Blast unit, for carrying out blast processing according to the dimensional gaussian distribution function pair described first image to obtain Image.
In one embodiment, parameter determination module, including:
Color determination unit adjusts color-values for choosing light according to the colour temperature;
Matrix determination unit determines color conversion matrix for adjusting color-values according to the light.
In one embodiment, enhance processing module, including:
Processing unit is used for the color-values of each pixel in described first image and the color conversion matrix phase Multiply, light effects are added in described first image, the light effects have color corresponding with the color conversion matrix.
In one embodiment, enhance processing module, including:
Face determination unit, for when the target area is foreground area, determining the face in the target area Region;
Processing unit, for carrying out light efficiency enhancing processing to the human face region to obtain according to the light efficiency adjustment parameter Image.
In one embodiment, image processing apparatus further includes:
Pattern acquiring module, the acquisition mode for obtaining image to be collected, the acquisition mode include close shot pattern and Landscape mode;
Control module, for determining first camera and second camera according to the acquisition mode;Wherein, described First camera is wide-angle camera, and second camera is focal length camera, or, first camera is focal length camera, Second camera is wide-angle camera.
The embodiment of the present application also provides a kind of electronic equipment.Above-mentioned electronic equipment includes image processing circuit, at image Managing circuit can utilize hardware and or software component to realize, it may include define ISP (Image Signal Processing, figure As signal processing) the various processing units of pipeline.Figure 11 is the schematic diagram of image processing circuit in one embodiment.Such as Figure 11 institutes Show, for purposes of illustration only, only showing the various aspects with the relevant image processing techniques of the embodiment of the present application.
As shown in figure 11, image processing circuit includes ISP processors 1140 and control logic device 1150.Imaging device 1110 The image data of capture is handled by ISP processors 1140 first, and ISP processors 1140 analyze 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 filters), 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 processors 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 utilize 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 be also sent to sensor 1120 by imaging sensor 1114, sensor 1120 can base It is supplied to ISP processors 1140 or sensor 1120 by original graph raw image data in 1120 interface type of sensor As in data storage to video memory 1130.
ISP processors 1140 handle raw image data pixel by pixel in various formats.For example, each image pixel can Bit depth with 8,11,12 or 14 bits, ISP processors 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 processors 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 device or electronic equipment for 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 when receiving or from 1120 interface of sensor or from video memory When 1130 raw image data, ISP processors 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 processors 1140 can also from video memory 1130 receive processing data, to above-mentioned processing data carry out original domain in and RGB and YCbCr Image real time transfer in color space.Image data that treated may be output to display 1180, for user viewing and/or It is further processed by graphics engine or GPU (Graphics Processing Unit, graphics processor).In addition, ISP processors 1140 output also can be transmitted to video memory 1130, and display 1180 can read picture number from video memory 1130 According to.In one embodiment, video memory 1130 can be configured as realizing one or more frame buffers.In addition, ISP processing The output of device 1140 can be transmitted to encoder/decoder 1170, so as to encoding/decoding image data.The image data of coding can It is saved, and is decompressed before being shown in 1180 equipment of display.
ISP processors 1140 handle image data the step of include:VFE (Video Front are carried out to image data End, video front) it handles and CPP (Camera Post Processing, camera post-processing) processing.To image data VFE processing may include the contrast for correcting image data or brightness, change the illumination conditions data recorded in a digital manner, to figure As data compensate processing (such as white balance, automatic growth control, γ correction etc.), image data is filtered. The CPP processing of image data may include zooming in and out image, preview frame and record frame are provided to each path.Wherein, CPP Different codecs can be used to handle preview frame and record frame.
Treated that image data can be transmitted to light efficiency module 1160 for ISP processors 1140, so as to the root before shown The processing of light effects is added to image according to default light efficiency model.Wherein, light efficiency module 1160 can be in electronic equipment CPU (Central Processing Unit, central processing unit), GPU or coprocessor etc..Treated for light efficiency module 1160 Data can be transmitted to encoder/decoder 1170, so as to encoding/decoding image data.The image data of coding can be saved, and It is decompressed before being shown in 1180 equipment of display.Wherein, light efficiency module 1160 may be additionally located at encoder/decoder 1170 Between display 1180, i.e., light efficiency module 1160 is added light efficiency processing to the image being imaged.Above-mentioned encoder/decoding Device 1170 can be CPU, GPU or coprocessor etc. in electronic equipment.
The statistical data that ISP processors 1140 determine, 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 the processor for executing one or more examples (such as firmware) and/or micro- Controller, one or more routines can be determined according to the statistical data of reception 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, spectrum assignment the time of integration), camera flash control parameter, 1112 control parameter of lens (such as focus or zoom coke Away from) or these parameters combination.ISP control parameters may include for automatic white balance and color adjustment (for example, in RGB processing Period) 1112 shadow correction parameter of gain level and color correction matrix and lens.
In the present embodiment, above-mentioned image processing method can be realized with image processing techniques in Figure 11.
In one embodiment, a kind of electronic equipment, including the first camera, second camera, memory and place are provided Device is managed, computer program is stored in memory, when computer program is executed by processor so that processor executes following step Suddenly:
The first image of the first camera acquisition is obtained, and obtains the second image of second camera acquisition;
The light efficiency adjustment parameter preset in light efficiency model is determined according to the environmental parameter of described first image;
Based on the default light efficiency model, described first image is carried out at light efficiency enhancing according to the light efficiency adjustment parameter Reason is to obtain image.
Synthesis processing is carried out to form target image to the image and second image.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, the calculating Machine program realizes above-mentioned image processing method when being executed by processor.
In one embodiment, a kind of computer program product including computer program is provided, when it is in electronic equipment When upper operation so that electronic equipment realizes above-mentioned image processing method when executing.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Any reference of memory, storage, database or other media may include as used herein non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static 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) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of image processing method, which is characterized in that be applied to a plurality of cameras electronic equipment, the method, Including:
The first image of the first camera acquisition is obtained, and obtains the second image of second camera acquisition;
The light efficiency adjustment parameter preset in light efficiency model is determined according to the environmental parameter of described first image;
Based on the default light efficiency model, according to the light efficiency adjustment parameter to described first image carry out light efficiency enhancing processing with Obtain image;
Synthesis processing is carried out to form target image to the image and second image.
2. according to the method described in claim 1, it is characterized in that, further including:
The depth information of described first image is obtained according to described first image and the second image;
According to the target area of the extraction of depth information described first image;
The environmental parameter of described first image is determined according to the target area.
3. method according to claim 2, which is characterized in that when the environmental parameter includes luminance information, the light efficiency tune Section parameter includes brightness enhancing coefficient;
It is described to be based on the default light efficiency model, described first image is carried out at light efficiency enhancing according to the light efficiency adjustment parameter It manages to obtain image, including:
Obtain blast target location;
The distribution center of the default light efficiency model is determined according to the blast target location, and coefficient is enhanced according to the brightness Determine distribution range;
Dimensional gaussian distribution function is built according to the distribution center and distribution range;
Blast processing is carried out to obtain image according to target area described in the dimensional gaussian distribution function pair.
4. according to the method described in claim 2, it is characterized in that, when the environmental parameter includes color temperature information, according to institute The environmental parameter for stating the first image determines the light efficiency adjustment parameter preset in light efficiency model, including:
Light, which is chosen, according to the colour temperature adjusts color-values;
Color-values, which are adjusted, according to the light determines color conversion matrix.
5. according to the method described in claim 4, it is characterized in that, described be based on the default light efficiency model, according to the light It imitates adjustment parameter and light efficiency enhancing processing is carried out to obtain image to the target area, including:
The color-values of each pixel in described first image are multiplied with the color conversion matrix, in the target area Light effects are added, the light effects have color corresponding with the color conversion matrix.
6. according to the method described in claim 2, it is characterized in that, the default light efficiency model is based on, according to the light efficiency tune It saves parameter and light efficiency enhancing processing is carried out to obtain image to described first image, including:
When the target area is foreground area, the human face region in the target area is determined;
Light efficiency enhancing processing is carried out to obtain image to the human face region according to the light efficiency adjustment parameter.
7. according to any methods of claim 1-6, which is characterized in that further include:
The acquisition mode of image to be collected is obtained, the acquisition mode includes close shot pattern and landscape mode;
First camera and second camera are determined according to the acquisition mode;Wherein, first camera is wide-angle Camera, second camera are focal length camera, or, first camera is focal length camera, second camera is wide-angle Camera.
8. a kind of image processing apparatus is applied to the electronic equipment with a plurality of cameras, which is characterized in that described device packet It includes:
Image collection module, the first image for obtaining the acquisition of the first camera, and obtain second camera acquires the Two images;
Parameter determination module, for determining that the light efficiency preset in light efficiency model adjusts ginseng according to the environmental parameter of described first image Number;The environmental parameter includes at least one of colour temperature, brightness;
Enhance processing module, for being based on the default light efficiency model, according to the light efficiency adjustment parameter to described first image Light efficiency enhancing processing is carried out to obtain image;
Image synthesis unit, for carrying out synthesis processing to the image and second image to form target image.
9. a kind of electronic equipment, including the first camera, second camera, memory and processor, stored in the memory Have computer program, when the computer program is executed by the processor so that the processor realize as claim 1 to 7 any methods.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The method as described in claim 1 to 7 is any is realized when being executed by processor.
CN201810475717.XA 2018-05-17 2018-05-17 Image processing method, device, electronic equipment and computer readable storage medium Pending CN108632512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810475717.XA CN108632512A (en) 2018-05-17 2018-05-17 Image processing method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810475717.XA CN108632512A (en) 2018-05-17 2018-05-17 Image processing method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108632512A true CN108632512A (en) 2018-10-09

Family

ID=63693675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810475717.XA Pending CN108632512A (en) 2018-05-17 2018-05-17 Image processing method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108632512A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110992869A (en) * 2019-12-24 2020-04-10 Oppo广东移动通信有限公司 Layer display method and related equipment
CN111353348A (en) * 2018-12-24 2020-06-30 中国移动通信有限公司研究院 Image processing method and device, acquisition equipment and storage medium
CN111445383A (en) * 2020-03-20 2020-07-24 北京迈格威科技有限公司 Image parameter adjusting method, device and system
WO2021115179A1 (en) * 2019-12-13 2021-06-17 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
CN113178077A (en) * 2021-03-19 2021-07-27 江苏航天大为科技股份有限公司 Electric police camera for adjusting picture based on feedback mechanism
CN115705614A (en) * 2021-08-05 2023-02-17 北京小米移动软件有限公司 Image processing method, image processing device, electronic equipment and storage medium
WO2023236225A1 (en) * 2022-06-10 2023-12-14 北京小米移动软件有限公司 Terminal, terminal control method and apparatus, and image processing method and apparatus
WO2024055764A1 (en) * 2022-09-14 2024-03-21 华为技术有限公司 Image processing method and apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533241A (en) * 2013-10-14 2014-01-22 厦门美图网科技有限公司 Photographing method of intelligent filter lens
US20140092276A1 (en) * 2012-10-02 2014-04-03 Marvell World Trade Ltd. Systems and Methods for Camera Image Correction and White Balancing
CN104954627A (en) * 2014-03-24 2015-09-30 联想(北京)有限公司 Information processing method and electronic equipment
US9247223B2 (en) * 2013-01-25 2016-01-26 Blackberry Limited Reduce operating environment effect using multiple cameras
CN105391949A (en) * 2015-10-29 2016-03-09 深圳市金立通信设备有限公司 Photographing method and terminal
KR20170011613A (en) * 2015-07-23 2017-02-02 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN107018324A (en) * 2017-03-27 2017-08-04 努比亚技术有限公司 A kind of picture synthesis method and device
CN107566751A (en) * 2017-09-30 2018-01-09 北京金山安全软件有限公司 Image processing method, image processing apparatus, electronic device, and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140092276A1 (en) * 2012-10-02 2014-04-03 Marvell World Trade Ltd. Systems and Methods for Camera Image Correction and White Balancing
US9247223B2 (en) * 2013-01-25 2016-01-26 Blackberry Limited Reduce operating environment effect using multiple cameras
CN103533241A (en) * 2013-10-14 2014-01-22 厦门美图网科技有限公司 Photographing method of intelligent filter lens
CN104954627A (en) * 2014-03-24 2015-09-30 联想(北京)有限公司 Information processing method and electronic equipment
KR20170011613A (en) * 2015-07-23 2017-02-02 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105391949A (en) * 2015-10-29 2016-03-09 深圳市金立通信设备有限公司 Photographing method and terminal
CN107018324A (en) * 2017-03-27 2017-08-04 努比亚技术有限公司 A kind of picture synthesis method and device
CN107566751A (en) * 2017-09-30 2018-01-09 北京金山安全软件有限公司 Image processing method, image processing apparatus, electronic device, and medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353348A (en) * 2018-12-24 2020-06-30 中国移动通信有限公司研究院 Image processing method and device, acquisition equipment and storage medium
CN111353348B (en) * 2018-12-24 2023-11-24 中国移动通信有限公司研究院 Image processing method, device, acquisition equipment and storage medium
WO2021115179A1 (en) * 2019-12-13 2021-06-17 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
CN110992869A (en) * 2019-12-24 2020-04-10 Oppo广东移动通信有限公司 Layer display method and related equipment
CN110992869B (en) * 2019-12-24 2022-11-22 Oppo广东移动通信有限公司 Layer display method and related equipment
CN111445383A (en) * 2020-03-20 2020-07-24 北京迈格威科技有限公司 Image parameter adjusting method, device and system
CN111445383B (en) * 2020-03-20 2024-02-13 北京迈格威科技有限公司 Image parameter adjusting method, device and system
CN113178077A (en) * 2021-03-19 2021-07-27 江苏航天大为科技股份有限公司 Electric police camera for adjusting picture based on feedback mechanism
CN115705614A (en) * 2021-08-05 2023-02-17 北京小米移动软件有限公司 Image processing method, image processing device, electronic equipment and storage medium
WO2023236225A1 (en) * 2022-06-10 2023-12-14 北京小米移动软件有限公司 Terminal, terminal control method and apparatus, and image processing method and apparatus
WO2024055764A1 (en) * 2022-09-14 2024-03-21 华为技术有限公司 Image processing method and apparatus

Similar Documents

Publication Publication Date Title
CN108632512A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108537155A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108055452B (en) Image processing method, device and equipment
CN108537749A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN108154514B (en) Image processing method, device and equipment
CN108540716A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108012080A (en) Image processing method, device, electronic equipment and computer-readable recording medium
JP5460173B2 (en) Image processing method, image processing apparatus, image processing program, and imaging apparatus
JP6060407B2 (en) Image composition apparatus, image composition method, image composition program, and recording medium
JP4862930B2 (en) Image processing apparatus, image processing method, and program
US8823829B2 (en) Image capture with adjustment of imaging properties at transitions between regions
US8531573B2 (en) Digital camera and operating method thereof
US20130258044A1 (en) Multi-lens camera
CN110290289A (en) Image denoising method, device, electronic equipment and storage medium
CN107862657A (en) Image processing method, device, computer equipment and computer-readable recording medium
CN108024054B (en) Image processing method, device, equipment and storage medium
Joshi et al. Color calibration for arrays of inexpensive image sensors
CN106358030B (en) Image processing apparatus and image processing method
CN111292246B (en) Image color correction method, storage medium, and endoscope
CN109191403A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108156369B (en) Image processing method and device
CN107509031A (en) Image processing method, device, mobile terminal and computer-readable recording medium
CN108712608A (en) Terminal device image pickup method and device
CN110248106A (en) Image denoising method, device, electronic equipment and storage medium
CN101742336B (en) Image processing apparatus and image processing method

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: 20181009

RJ01 Rejection of invention patent application after publication