CN107087118B - Photographic method, device, storage medium and terminal - Google Patents
Photographic method, device, storage medium and terminal Download PDFInfo
- Publication number
- CN107087118B CN107087118B CN201710401746.7A CN201710401746A CN107087118B CN 107087118 B CN107087118 B CN 107087118B CN 201710401746 A CN201710401746 A CN 201710401746A CN 107087118 B CN107087118 B CN 107087118B
- Authority
- CN
- China
- Prior art keywords
- image
- sensitivity
- camera
- brightness value
- brightness
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the present invention provides a kind of photographic method, device, storage medium and terminal, and this method determines the sensitivity of camera according to the ambient brightness value when ambient brightness value is less than preset threshold;Obtain the multiple image that the camera is shot under the conditions of the sensitivity;It chooses at least two field pictures from the multiple image to be synthesized, to obtain the first image;The brightness of first image is adjusted according to default adjustment parameter, to obtain the second image.The program is when terminal is in darker environment, sensitivity is determined according to ambient brightness value, the noise in image can be reduced when shooting image, after the image of shooting is synthesized, the brightness of the first obtained image is adjusted, to improve the brightness of the first image, to can either guarantee the brightness of image, the noise in image can be reduced again, it is possible thereby to improve the quality of photo.
Description
Technical field
The present invention relates to field of terminal technology, in particular to a kind of photographic method, device, storage medium and terminal.
Background technique
Currently, the camera function of the mobile terminals such as smart phone is more and more perfect.Mobile terminal can be taken with oneself
Band, and can be taken pictures whenever and wherever possible using mobile terminal, so that the life to user brings very big convenience.
However, under the lower scene of certain brightness ratios, being needed using higher when being taken pictures using mobile terminal
Sensitivity is just able to satisfy exposure demand when shooting to take pictures.But use the higher sensitivity meeting of taking pictures so that depositing in photo
A large amount of noise (not expecting the pixel occurred in photo).The presence of these noises seriously affects the quality of photo.
Summary of the invention
The embodiment of the present invention provides a kind of photographic method, device, storage medium and terminal, and the quality of photo can be improved.
The embodiment of the present invention provides a kind of photographic method, comprising:
When ambient brightness value is less than preset threshold, the sensitivity of camera is determined according to the ambient brightness value;
Obtain the multiple image that the camera is shot under the conditions of the sensitivity;
It chooses at least two field pictures from the multiple image to be synthesized, to obtain the first image;
The brightness of first image is adjusted according to default adjustment parameter, to obtain the second image, second image
Brightness be greater than first image brightness.
The embodiment of the present invention also provides a kind of camera arrangement, comprising:
Determining module, for determining camera according to the ambient brightness value when ambient brightness value is less than preset threshold
Sensitivity;
Obtain module, the multiple image shot under the conditions of the sensitivity for obtaining the camera;
Synthesis module is synthesized for choosing at least two field pictures from the multiple image, to obtain the first image;
Adjustment module, for the brightness of first image to be adjusted according to default adjustment parameter, to obtain the second figure
Picture, the brightness of second image are greater than the brightness of first image.
The embodiment of the present invention also provides a kind of storage medium, and a plurality of instruction is stored in the storage medium, which is suitable for
It is loaded by processor to execute above-mentioned photographic method.
The embodiment of the present invention also provides a kind of terminal, including processor and storage medium, is stored in the storage medium
A plurality of instruction, the processor load the instruction to execute above-mentioned photographic method.
The embodiment of the present invention also provides another terminal, comprising: processor, memory, camera and control circuit, it should
Processor and the memory, camera, control circuit are electrically connected, and for storing instruction, which is used for the memory
Control camera shooting photo;
The processor, for determining camera according to the ambient brightness value when ambient brightness value is less than preset threshold
Sensitivity;
The camera, for the shoot multi-frame images under the conditions of sensitivity;
The processor, is also used to choose at least two field pictures from the multiple image and is synthesized, to obtain the first image;
The processor is also used to that the brightness of first image is adjusted according to default adjustment parameter, to obtain second
Image, the brightness of second image are greater than the brightness of first image.
Photographic method provided in an embodiment of the present invention, when ambient brightness value is less than preset threshold, according to the ambient brightness
It is worth the sensitivity for determining camera;Obtain the multiple image that the camera is shot under the conditions of the sensitivity;From the multiple image
Middle selection at least two field pictures are synthesized, to obtain the first image;Brightness according to default adjustment parameter to first image
It is adjusted, to obtain the second image, the brightness of second image is greater than the brightness of first image.The program is in terminal
When darker environment, sensitivity is determined according to ambient brightness value, the noise in image can be reduced when shooting image, will be clapped
After the image taken the photograph is synthesized, the brightness of the first obtained image is adjusted, to improve the brightness of the first image, thus both
It can guarantee the brightness of image, and the noise in image can be reduced, it is possible thereby to improve the quality of photo.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the flow diagram of photographic method provided in an embodiment of the present invention.
Fig. 2 is another flow diagram of photographic method provided in an embodiment of the present invention.
Fig. 3 is the another flow diagram of photographic method provided in an embodiment of the present invention.
Fig. 4 is the application scenarios schematic diagram of photographic method provided in an embodiment of the present invention.
Fig. 5 is the another application schematic diagram of a scenario of photographic method provided in an embodiment of the present invention.
Fig. 6 is the structural schematic diagram of camera arrangement provided in an embodiment of the present invention.
Fig. 7 is another structural schematic diagram of camera arrangement provided in an embodiment of the present invention.
Fig. 8 is the another structural schematic diagram of camera arrangement provided in an embodiment of the present invention.
Fig. 9 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Figure 10 is another structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second ", " third " etc.
(if present) is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be appreciated that this
The object of sample description is interchangeable under appropriate circumstances.In addition, term " includes " and " having " and their any deformation, meaning
Figure, which is to cover, non-exclusive includes.For example, containing the process, method of series of steps or containing a series of modules or list
The device of member, terminal, system those of are not necessarily limited to be clearly listed step or module or unit, can also include unclear
The step of ground is listed or module or unit also may include its intrinsic for these process, methods, device, terminal or system
Its step or module or unit.
The embodiment of the present invention provides a kind of photographic method, and this method can be applied in terminal.The terminal can be intelligence
The equipment such as mobile phone, tablet computer.As shown in Figure 1, the photographic method, may comprise steps of:
S110 determines the sensitivity of camera according to the ambient brightness value when ambient brightness value is less than preset threshold.
Wherein, ambient brightness value is used to indicate that the ambient brightness of terminal local environment to be strong and weak.Environment can be set in terminal
Luminance sensor.Ambient brightness value is acquired by the ambient light sensor.Preset threshold, which can be, to be preset and stores
An ambient brightness numerical value in the terminal.For example, the preset threshold can be 500lx (lux).When terminal passes through sensing
When device detects that ambient brightness value is less than preset threshold, at this time it is believed that terminal is in darker environment.At this point, terminal can be with
Camera in controlling terminal opens half-light screening-mode, to determine the sensitivity of camera according to ambient brightness value.
Sensitivity is for indicating camera to the sensitivity level of ambient light.Typically for digital camera, smart phone etc.
For electronic equipment, the latitude of camera is between 50 to 6400.Terminal can adjust the sensitivity of camera
Section.
In some embodiments, the camera in terminal can carry out automatic sensing to ambient brightness, to automatically adjust
Sensitivity.Ambient brightness value is smaller, and the sensitivity of camera is bigger.When the sensitivity of camera automatic adjustment is greater than preset sense
When luminosity threshold value, it also may determine that the ambient brightness value for terminal local environment is less than above-mentioned preset threshold namely terminal is in
In darker environment.At this point, terminal, which also can control the camera in terminal, opens half-light screening-mode, thus bright according to environment
Angle value determines the sensitivity of camera.
In some embodiments, as shown in Fig. 2, when ambient brightness value is less than preset threshold, according to the ambient brightness value
Determine that the sensitivity of camera may comprise steps of:
S111 obtains the first sensitivity of camera when ambient brightness value is less than preset threshold;
S112 obtains sensitivity regulated quantity according to the ambient brightness value;
S113 lowers first sensitivity of the camera according to the sensitivity regulated quantity, to determine being somebody's turn to do for the camera
Sensitivity.
Wherein, the camera in terminal is provided with the first sensitivity.For example, the first sensitivity of camera is 1000.When
When opening camera every time, camera by itself sensitivity sets first sensitivity during being initialized.Work as end
When end detects that ambient brightness value is less than preset threshold, the first sensitivity of the camera is obtained.
The corresponding relationship between ambient brightness value and sensitivity regulated quantity can be preset in terminal.Wherein, sensitivity
The amplitude of accommodation of regulated quantity expression sensitivity.Sensitivity regulated quantity can be a sensitivity numerical value, such as 200.Sensitivity tune
Section amount is also possible to a percentage, such as 20%.Terminal can be according to the ambient brightness value detected and the corresponding relationship
Obtain sensitivity regulated quantity.Then, terminal lowers first sensitivity of the camera according to the sensitivity regulated quantity, with determination
The sensitivity of the camera.For example, the first sensitivity of the camera got is 1000, sensitivity regulated quantity is 200, then
The sensitivity of camera after downward is 800.
In some embodiments, which can be lowered the multiple of the sensitivity regulated quantity by terminal, with determination
The sensitivity of the camera.For example, the first sensitivity of the camera got is 1000, sensitivity regulated quantity is 200, under
Modulation is twice of sensitivity regulated quantity, then the sensitivity of the camera after lowering is 600.
In some embodiments, the corresponding relationship between ambient brightness value and sensitivity regulated quantity can be as shown in table 1
Corresponding relationship:
Ambient brightness value (lx) | Sensitivity regulated quantity |
400 | 200 |
…… | …… |
200 | 400 |
…… | …… |
100 | 600 |
Table 1
In some embodiments, as shown in figure 3, when ambient brightness value is less than preset threshold, according to the ambient brightness value
Determine that the sensitivity of camera may comprise steps of:
S114 obtains the second sensitivity according to the ambient brightness value when ambient brightness value is less than preset threshold;
The sensitivity of camera is adjusted to second sensitivity by S115.
Wherein, the corresponding relationship between ambient brightness value and the second sensitivity can be preset in terminal.When terminal is examined
When measuring ambient brightness value less than preset threshold, it is photosensitive that second is obtained according to the ambient brightness value detected and the corresponding relationship
Degree.Then, the sensitivity of camera is adjusted to second sensitivity.For example, the second sensitivity that terminal is got is 800,
The sensitivity of camera is then adjusted to 800.
In some embodiments, the corresponding relationship between ambient brightness value and the second sensitivity can be as shown in Table 2
Corresponding relationship:
Table 2
S120 obtains the multiple image that the camera is shot under the conditions of the sensitivity.
Wherein, it after terminal determines the sensitivity of camera, controls the camera and shoots multiframe figure under the conditions of the sensitivity
Picture, and obtain the multiple image of camera shooting.The multiple image is at least two frames.For example, terminal control camera is with the sense
Luminosity shoots 4 frame images.
S130 chooses at least two field pictures from the multiple image and is synthesized, to obtain the first image.
Wherein, a selection quantity can be preset in terminal, which is less than or equal to above-mentioned multiple image
Amount of images.For example, the selection quantity can be two frames when the multiple image of shooting is 4 frame image.Terminal control camera
After shoot multi-frame images, it can be closed from the multiple image of shooting according to the selection quantity to choose at least two field pictures
At to obtain the first image.After terminal carries out image synthesis, the picture quality of the first image of synthesis is better than at least two chosen
The picture quality of each frame image in frame image.
Wherein, the multiple image that terminal can will acquire compares one by one, chooses it according to the preset selection quantity
The highest at least two field pictures of middle brightness are synthesized, to obtain the first image.
In some embodiments, it is synthesized as shown in Fig. 2, choosing at least two field pictures from the multiple image, with
To the first image, comprising the following steps:
S131 synthesizes the multiple image, to obtain the first image.
Wherein, after terminal control camera shoot multi-frame images, which is synthesized, namely chooses the multiframe
All images in image are synthesized, to obtain the first image.
S140 is adjusted the brightness of first image according to default adjustment parameter, and to obtain the second image, this second
The brightness of image is greater than the brightness of first image.
Wherein, after terminal synthesizes the first image, the brightness of first image is adjusted according to default adjustment parameter.In advance
If adjustment parameter is the numerical value for presetting and storing in the terminal.Default adjustment parameter is greater than 1.Obtained after adjusting
The brightness of two images is greater than the brightness of first image.
For the shooting in normal environment, due to camera when terminal is in darker environment using lower
Sensitivity is shot, and the image exposure degree shot at this time is insufficient, so that the brightness of the first image is darker.According to the default adjusting
The brightness of the first image can be improved in parameter after the brightness of the first image is adjusted, to make up figure caused by under-exposure
Image brightness is darker.On the other hand, when terminal is in darker environment, camera is shot using lower sensitivity, can be reduced
Noise in image, to improve the quality of image.The second image obtained after first image is adjusted is to take pictures
The finally obtained photo of journey.
With reference to Fig. 4 and Fig. 5, wherein Fig. 4 show the first image, and Fig. 5 show the second image.Terminal is in darker ring
When border, the first brightness of image obtained using the shooting of lower sensitivity is darker, after the brightness of the first image is adjusted, obtains
To the second brightness of image be elevated.
In some embodiments, as shown in Fig. 2, the brightness of first image is adjusted according to default adjustment parameter,
To obtain the second image, comprising the following steps:
S141 adjusts the brightness of each pixel of first image with preset algorithm according to default adjustment parameter
Section, to obtain the second image.
Wherein, there is a large amount of pixel in the first image.For example, can have 5,000,000 pixels in the first image.
Terminal can be according to above-mentioned default adjustment parameter with the preset algorithm successively brightness to each of first image pixel
It is adjusted.For example, the brightness value of each pixel can be amplified according to default adjustment parameter.To each pixel
After the brightness of point is adjusted, obtained image is the second image.
In some embodiments, as shown in figure 3, according to default adjustment parameter with preset algorithm to each of first image
The brightness of pixel is adjusted, comprising the following steps:
The initial luma values of each pixel of first image are normalized in S1411, to obtain each pixel
Normalization brightness value;
S1412 successively adjusts the normalization brightness value of each pixel with preset algorithm according to default adjustment parameter
Section, to obtain the normalization brightness value after each pixel is adjusted;
S1413, the normalization brightness value after successively adjusting to each pixel restores, to obtain each pixel tune
Brightness value after section.
Wherein, normalization refers to the brightness value by pixel divided by 255, so that the brightness number of pixel is adjusted to
Between 0 to 1 to get to normalization brightness value.
Terminal can be normalized the initial luma values of each pixel of the first image, to obtain each pixel
Normalization brightness value.
Then successively the normalization brightness value of each pixel is adjusted with preset algorithm according to default adjustment parameter,
To obtain the normalization brightness value after each pixel is adjusted.For example, can be according to default adjustment parameter by each pixel
Normalization brightness value amplifies.
Finally, successively being restored to the normalization brightness value after the adjusting of each pixel, to obtain each pixel
Brightness value after adjusting.Wherein, reduction refers to the normalization brightness value after adjusting multiplied by 255, thus by the bright of pixel
Degree value is adjusted between 0 to 255.
In some embodiments, according to default adjustment parameter with preset algorithm successively to the normalization brightness of each pixel
When value is adjusted, it is adjusted according to the following formula:
Wherein, v (x, y) is the normalization brightness value after the pixel adjusting at (x, y) coordinate, and w (x, y) is (x, y) seat
The normalization brightness value before pixel adjusting at mark, β is above-mentioned default adjustment parameter.Wherein, β is greater than 1.
After terminal obtains the normalization brightness value v (x, y) after each pixel is adjusted, by the normalization brightness value v (x, y)
The brightness value after the pixel at (x, y) coordinate is adjusted can be obtained multiplied by 255.Terminal successively adjusts and obtains each pixel
To get to the second image after brightness value after adjusting.
When it is implemented, the present invention is not limited by the execution sequence of described each step, conflict is not being generated
In the case of, certain steps can also be carried out using other sequences or be carried out simultaneously.
From the foregoing, it will be observed that photographic method provided in an embodiment of the present invention, when ambient brightness value is less than preset threshold, according to this
Ambient brightness value determines the sensitivity of camera;Obtain the multiple image that the camera is shot under the conditions of the sensitivity;From this
It chooses at least two field pictures in multiple image to be synthesized, to obtain the first image;According to default adjustment parameter to first figure
The brightness of picture is adjusted, and to obtain the second image, the brightness of second image is greater than the brightness of first image.The program exists
When terminal is in darker environment, sensitivity is determined according to ambient brightness value, can be reduced in image when shooting image
Noise after being synthesized the image of shooting, is adjusted the brightness of the first obtained image, to improve the bright of the first image
Degree, to can either guarantee the brightness of image, and can reduce the noise in image, it is possible thereby to improve the quality of photo.
The embodiment of the present invention also provides a kind of camera arrangement, which can integrate in the terminal, which can be intelligence
The equipment such as energy mobile phone, tablet computer.
As shown in fig. 6, camera arrangement 200 may include: determining module 201, obtain module 202, synthesis module 203 and
Adjustment module 204.
Determining module 201, for determining camera according to the ambient brightness value when ambient brightness value is less than preset threshold
Sensitivity.
Wherein, ambient brightness value is used to indicate that the ambient brightness of terminal local environment to be strong and weak.Environment can be set in terminal
Luminance sensor.Ambient brightness value is acquired by the ambient light sensor.Preset threshold, which can be, to be preset and stores
An ambient brightness numerical value in the terminal.For example, the preset threshold can be 500lx (lux).When terminal passes through sensing
When device detects that ambient brightness value is less than preset threshold, at this time it is believed that terminal is in darker environment.At this point, determining module
201 cameras that can control in terminal open half-light screening-mode, to determine the photosensitive of camera according to ambient brightness value
Degree.
Sensitivity is for indicating camera to the sensitivity level of ambient light.Typically for digital camera, smart phone etc.
For electronic equipment, the latitude of camera is between 50 to 6400.Determining module 201 can be to the sensitivity of camera
It is adjusted.
In some embodiments, the camera in terminal can carry out automatic sensing to ambient brightness, to automatically adjust
Sensitivity.Ambient brightness value is smaller, and the sensitivity of camera is bigger.When the sensitivity of camera automatic adjustment is greater than preset sense
When luminosity threshold value, it also may determine that the ambient brightness value for terminal local environment is less than above-mentioned preset threshold namely terminal is in
In darker environment.At this point, determining module 201, which also can control the camera in terminal, opens half-light screening-mode, thus root
The sensitivity of camera is determined according to ambient brightness value.
In some embodiments, as shown in fig. 7, determining module 201 includes: that the first acquisition submodule 2011, second obtains
Submodule 2012, second adjusts submodule 2013.
First acquisition submodule 2011, for when ambient brightness value is less than preset threshold, obtaining the first sense of camera
Luminosity;
Second acquisition submodule 2012, for obtaining sensitivity regulated quantity according to the ambient brightness value;
First adjusts submodule 2013, for lowering first sensitivity of the camera according to the sensitivity regulated quantity,
To determine the sensitivity of the camera.
Wherein, the camera in terminal is provided with the first sensitivity.For example, the first sensitivity of camera is 1000.When
When opening camera every time, camera by itself sensitivity sets first sensitivity during being initialized.Work as end
When end detects that ambient brightness value is less than preset threshold, the first acquisition submodule 2011 obtains the first sensitivity of the camera.
The corresponding relationship between ambient brightness value and sensitivity regulated quantity can be preset in terminal.Wherein, sensitivity
The amplitude of accommodation of regulated quantity expression sensitivity.Sensitivity regulated quantity can be a sensitivity numerical value, such as 200.Sensitivity tune
Section amount is also possible to a percentage, such as 20%.Second acquisition submodule 2012 can be according to the ambient brightness value detected
And the corresponding relationship obtains sensitivity regulated quantity.Then, first submodule 2013 is adjusted according to sensitivity regulated quantity downward
First sensitivity of the camera, to determine the sensitivity of the camera.For example, the first of the camera got is photosensitive
Degree is 1000, and sensitivity regulated quantity is 200, then the sensitivity of the camera after lowering is 800.
In some embodiments, which can be lowered the sensitivity regulated quantity by the first adjusting submodule 2013
Multiple, with determine the camera the sensitivity.For example, the first sensitivity of the camera got is 1000, sensitivity
Regulated quantity is 200, and lower modulation is twice of sensitivity regulated quantity, then the sensitivity of the camera after lowering is 600.
In some embodiments, as shown in figure 8, determining module 201 includes: that third acquisition submodule 2014, second is adjusted
Submodule 2015.
Third acquisition submodule 2014, for being obtained according to the ambient brightness value when ambient brightness value is less than preset threshold
Take the second sensitivity;
Second adjusts submodule 2015, for the sensitivity of camera to be adjusted to second sensitivity.
Wherein, the corresponding relationship between ambient brightness value and the second sensitivity can be preset in terminal.When terminal is examined
When measuring ambient brightness value less than preset threshold, third acquisition submodule 2014 is according to the ambient brightness value detected and this is right
Answer the second sensitivity of Relation acquisition.Then, it is second photosensitive to be adjusted to this by the second adjusting submodule 2015 for the sensitivity of camera
Degree.For example, the second sensitivity that third acquisition submodule 2014 is got is 800, then second submodule 2015 is adjusted by camera shooting
The sensitivity of head is adjusted to 800.
Obtain module 202, the multiple image shot under the conditions of the sensitivity for obtaining the camera.
Wherein it is determined that it is photosensitive at this that acquisition module 202 controls the camera after the sensitivity of the determining camera of module 201
Shoot multi-frame images under the conditions of degree, and obtain the multiple image of camera shooting.The multiple image is at least two frames.For example,
It obtains module 202 and controls camera with the sensitivity 4 frame images of shooting.
Synthesis module 203 is synthesized for choosing at least two field pictures from the multiple image, to obtain the first figure
Picture.
Wherein, a selection quantity can be preset in terminal, which is less than or equal to above-mentioned multiple image
Amount of images.For example, the selection quantity can be two frames when the multiple image of shooting is 4 frame image.Module 202 is obtained to control
After camera shoot multi-frame images processed, synthesis module 203 can be chosen from the multiple image of shooting according to the selection quantity
At least two field pictures are synthesized, to obtain the first image.After carrying out image synthesis, the picture quality of the first image of synthesis is excellent
The picture quality of each frame image in at least two field pictures of selection.
Wherein, the multiple image that synthesis module 203 can will acquire compares one by one, according to the preset selection quantity
It chooses the wherein highest at least two field pictures of brightness to be synthesized, to obtain the first image.
In some embodiments, synthesis module 203 is for executing following steps:
The multiple image is synthesized, to obtain the first image.
Wherein, after obtaining the control camera shoot multi-frame images of module 202, synthesis module 203 carries out the multiple image
Synthesis, namely all images chosen in the multiple image are synthesized, to obtain the first image.
Adjustment module 204, for the brightness of first image to be adjusted according to default adjustment parameter, to obtain second
Image, the brightness of second image are greater than the brightness of first image.
Wherein, after synthesis module 203 synthesizes the first image, adjustment module 204 is according to default adjustment parameter to first figure
The brightness of picture is adjusted.Default adjustment parameter is the numerical value for presetting and storing in the terminal.Default adjustment parameter
Greater than 1.The brightness of the second image obtained after adjusting is greater than the brightness of first image.
For the shooting in normal environment, due to camera when terminal is in darker environment using lower
Sensitivity is shot, and the image exposure degree shot at this time is insufficient, so that the brightness of the first image is darker.According to the default adjusting
The brightness of the first image can be improved in parameter after the brightness of the first image is adjusted, to make up figure caused by under-exposure
Image brightness is darker.On the other hand, when terminal is in darker environment, camera is shot using lower sensitivity, can be reduced
Noise in image, to improve the quality of image.The second image obtained after first image is adjusted is to take pictures
The finally obtained photo of journey.
In some embodiments, adjustment module 204 is adjusted the brightness of first image according to default adjustment parameter,
When obtaining the second image, following steps are executed:
The brightness of each pixel of first image is adjusted with preset algorithm according to default adjustment parameter, with
To the second image.
Wherein, there is a large amount of pixel in the first image.For example, can have 5,000,000 pixels in the first image.
Adjustment module 204 can according to above-mentioned default adjustment parameter with preset algorithm successively to each of first image pixel
Brightness be adjusted.For example, the brightness value of each pixel can be amplified according to default adjustment parameter.To each
After the brightness of a pixel is adjusted, obtained image is the second image.
In some embodiments, adjustment module 204 according to default adjustment parameter with preset algorithm to the every of first image
When the brightness of one pixel is adjusted, following steps are executed:
The initial luma values of each pixel of first image are normalized, to obtain the normalizing of each pixel
Change brightness value;
Successively the normalization brightness value of each pixel is adjusted with preset algorithm according to default adjustment parameter, with
Normalization brightness value after being adjusted to each pixel;
Normalization brightness value after successively adjusting to each pixel restores, after obtaining each pixel adjusting
Brightness value.
Wherein, normalization refers to the brightness value by pixel divided by 255, so that the brightness number of pixel is adjusted to
Between 0 to 1 to get to normalization brightness value.
Adjustment module 204 can be normalized the initial luma values of each pixel of the first image, every to obtain
The normalization brightness value of one pixel.
Then successively the normalization brightness value of each pixel is adjusted with preset algorithm according to default adjustment parameter,
To obtain the normalization brightness value after each pixel is adjusted.For example, can be according to default adjustment parameter by each pixel
Normalization brightness value amplifies.
Finally, successively being restored to the normalization brightness value after the adjusting of each pixel, to obtain each pixel
Brightness value after adjusting.Wherein, reduction refers to the normalization brightness value after adjusting multiplied by 255, thus by the bright of pixel
Degree value is adjusted between 0 to 255.
In some embodiments, adjustment module 204 according to default adjustment parameter with preset algorithm successively to each pixel
Normalization brightness value when being adjusted, be adjusted according to the following formula:
Wherein, v (x, y) is the normalization brightness value after the pixel adjusting at (x, y) coordinate, and w (x, y) is (x, y) seat
The normalization brightness value before pixel adjusting at mark, β is above-mentioned default adjustment parameter.Wherein, β is greater than 1.
After adjustment module 204 obtains the normalization brightness value v (x, y) after each pixel is adjusted, by the normalization brightness
The brightness value after the pixel adjusting at (x, y) coordinate can be obtained multiplied by 255 by value v (x, y).Adjustment module 204 is successively adjusted
And it obtains after the brightness value after each pixel is adjusted to get to the second image.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities.
From the foregoing, it will be observed that camera arrangement 200 provided in an embodiment of the present invention, when ambient brightness value is less than preset threshold, really
Cover half block 201 determines the sensitivity of camera according to the ambient brightness value;It obtains module 202 and obtains the camera in the sensitivity
Under the conditions of the multiple image that shoots;Synthesis module 203 is chosen at least two field pictures from the multiple image and is synthesized, to obtain
First image;Adjustment module 204 is adjusted the brightness of first image according to default adjustment parameter, to obtain the second figure
Picture, the brightness of second image are greater than the brightness of first image.The program is when terminal is in darker environment, according to environment
Brightness value determines sensitivity, can reduce the noise in image when shooting image, right after the image of shooting is synthesized
The brightness of the first obtained image is adjusted, to improve the brightness of the first image, to can either guarantee the brightness of image, again
The noise in image can be reduced, it is possible thereby to improve the quality of photo.
The embodiment of the present invention also provides a kind of terminal.The terminal can be the equipment such as smart phone, tablet computer.Such as Fig. 9
Shown, terminal 300 includes processor 301, memory 302, camera 303 and control circuit 304.Wherein, processor 301 divides
It is not electrically connected with memory 302, camera 303 and control circuit 304.
Processor 301 is the control centre of terminal 300, utilizes each portion of various interfaces and the entire terminal of connection
Point, by the application program of operation or load store in memory 302, and the data being stored in memory 302 are called,
The various functions and processing data for executing terminal, to carry out integral monitoring to terminal.
In the present embodiment, the processor 301 in terminal 300 can be according to following instruction, will be one or more
The corresponding executable program code of the process of application program is loaded into memory 302, and is stored in by processor 301 to run
Application program in memory 302, to realize various functions:
When ambient brightness value is less than preset threshold, the sensitivity of camera is determined according to the ambient brightness value;
Obtain the multiple image that the camera is shot under the conditions of the sensitivity;
It chooses at least two field pictures from the multiple image to be synthesized, to obtain the first image;
The brightness of first image is adjusted according to default adjustment parameter, to obtain the second image, second image
Brightness be greater than first image brightness.
In some embodiments, when ambient brightness value is less than preset threshold, camera is determined according to the ambient brightness value
Sensitivity when, processor 301 execute following steps: when ambient brightness value be less than preset threshold when, obtain the first of camera
Sensitivity;Sensitivity regulated quantity is obtained according to the ambient brightness value;According to the sensitivity regulated quantity lower the camera this
One sensitivity, to determine the sensitivity of the camera.
In some embodiments, when ambient brightness value is less than preset threshold, camera is determined according to the ambient brightness value
Sensitivity when, processor 301 execute following steps: when ambient brightness value be less than preset threshold when, according to the ambient brightness value
Obtain the second sensitivity;The sensitivity of camera is adjusted to second sensitivity.
In some embodiments, at least two field pictures are chosen from the multiple image to be synthesized, to obtain the first image
When, processor 301 executes following steps: the multiple image being synthesized, to obtain the first image.
In some embodiments, the brightness of first image is adjusted according to default adjustment parameter, to obtain second
When image, processor 301 executes following steps: according to default adjustment parameter with preset algorithm to each pixel of first image
The brightness of point is adjusted, to obtain the second image.
In some embodiments, according to default adjustment parameter with preset algorithm to the bright of each pixel of first image
When degree is adjusted, processor 301 executes following steps: returning to the initial luma values of each pixel of first image
One changes, to obtain the normalization brightness value of each pixel;According to default adjustment parameter with preset algorithm successively to each pixel
The normalization brightness value of point is adjusted, to obtain the normalization brightness value after each pixel is adjusted;Successively to each pixel
Normalization brightness value after point is adjusted is restored, to obtain the brightness value after each pixel is adjusted.
In some embodiments, according to default adjustment parameter with preset algorithm successively to the normalization brightness of each pixel
Value is adjusted, and when obtaining the normalization brightness value after each pixel is adjusted, processor 301 is adjusted according to the following formula
Section:
Wherein, v (x, y) is the normalization brightness value after the pixel adjusting at (x, y) coordinate, and w (x, y) is (x, y) seat
The normalization brightness value before pixel adjusting at mark, β is above-mentioned default adjustment parameter;Wherein, β is greater than 1.
Memory 302 can be used for storing application program and data.It include that can hold in the application program that memory 302 stores
Line program code.Application program can form various functional modules.Processor 301 is stored in answering for memory 302 by operation
With program, thereby executing various function application and data processing.
Camera 303 is for acquiring external image information, to shoot image.
Control circuit 304 can be with 303 logical connection of camera, so that controlling camera 303 shoots image.
In some embodiments, as shown in Figure 10, terminal 300 further include: input unit 305, display unit 306, radio frequency
Circuit 307, sensor 308 and power supply 309.Wherein, processor 301 respectively with input unit 305, display unit 306, radio frequency
Circuit 307, sensor 308 and power supply 309 are electrically connected.
Input unit 305 can be used for receiving the character information or user's characteristic information (such as fingerprint) of user's input.Wherein,
Input unit 305 may include fingerprint recognition mould group and touch screen.Fingerprint recognition mould group is used to acquire the finger print information of user.Touching
Touch the touch operation shielded for receiving user.
Display unit 306 can be used for showing information input by user or be supplied to user information and terminal it is various
Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.
Radio circuit 307 can be communicated by wireless network with the network equipment or other electronic equipments, and completion is set with network
Information transmit-receive between standby or other electronic equipments.
Sensor 308 is for acquiring external environmental information.Sensor 308 may include ambient light sensor, acceleration
One of sensors such as sensor, gyroscope are a variety of.
Power supply 309 is used to power to all parts of terminal 300.In some embodiments, power supply 309 can pass through power supply
Management system and processor 301 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown in Figure 10, terminal 300 can also be including Wireless Fidelity (WiFi) module, bluetooth module etc., herein
It repeats no more.
In above-described embodiment, all emphasizes particularly on different fields to the description of each embodiment, be not described in some embodiments
Part may refer to front to the detailed description of photographic method, and details are not described herein.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of terminal, when ambient brightness value is less than preset threshold, according to this
Ambient brightness value determines the sensitivity of camera;Obtain the multiple image that the camera is shot under the conditions of the sensitivity;From this
It chooses at least two field pictures in multiple image to be synthesized, to obtain the first image;According to default adjustment parameter to first figure
The brightness of picture is adjusted, and to obtain the second image, the brightness of second image is greater than the brightness of first image.The program exists
When terminal is in darker environment, sensitivity is determined according to ambient brightness value, can be reduced in image when shooting image
Noise after being synthesized the image of shooting, is adjusted the brightness of the first obtained image, to improve the bright of the first image
Degree, to can either guarantee the brightness of image, and can reduce the noise in image, it is possible thereby to improve the quality of photo.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium
In matter, storage medium be can include but is not limited to: read-only memory (ROM, Read Only Memory), random access memory
(RAM, Random Access Memory), disk or CD etc..
It is provided for the embodiments of the invention photographic method, device and terminal above to be described in detail, answers herein
With a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manage
Solve method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, specific
There will be changes in embodiment and application range, in conclusion the content of the present specification should not be construed as to of the invention
Limitation.
Claims (9)
1. a kind of photographic method characterized by comprising
When ambient brightness value is less than preset threshold, the first sensitivity of camera is obtained;
Sensitivity regulated quantity is obtained according to the ambient brightness value;
First sensitivity of the camera is lowered, according to the sensitivity regulated quantity to determine the sensitivity of camera;
Obtain the multiple image that the camera is shot under the conditions of the sensitivity;
It chooses at least two field pictures from the multiple image to be synthesized, to obtain the first image;
The brightness of the first image is adjusted according to default adjustment parameter, to obtain the second image, second image
Brightness be greater than the first image brightness.
2. photographic method according to claim 1, which is characterized in that according to default adjustment parameter to the first image
Brightness is adjusted, and to obtain the second image the step of includes:
The brightness of each pixel of the first image is adjusted with preset algorithm according to default adjustment parameter, to obtain
Second image.
3. photographic method according to claim 2, which is characterized in that according to default adjustment parameter with preset algorithm to described
The step of brightness of each pixel of first image is adjusted include:
The initial luma values of each pixel of the first image are normalized, to obtain the normalization of each pixel
Brightness value;
Successively the normalization brightness value of each pixel is adjusted with preset algorithm according to default adjustment parameter, it is every to obtain
Normalization brightness value after the adjusting of one pixel;
Normalization brightness value after successively adjusting to each pixel restores, to obtain the brightness after each pixel is adjusted
Value.
4. photographic method according to claim 3, which is characterized in that successively right with preset algorithm according to default adjustment parameter
The normalization brightness value of each pixel is adjusted, when obtaining the normalization brightness value after each pixel is adjusted, according to
Following formula is adjusted:
Wherein, v (x, y) is the normalization brightness value after the pixel adjusting at (x, y) coordinate, and w (x, y) is at (x, y) coordinate
Pixel adjust before normalization brightness value, β be the default adjustment parameter;
Wherein, β is greater than 1.
5. photographic method according to any one of claim 1 to 4, which is characterized in that chosen from the multiple image
At least two field pictures are synthesized, and to obtain the first image the step of includes:
The multiple image is synthesized, to obtain the first image.
6. a kind of camera arrangement characterized by comprising
Determining module, for obtaining the first sensitivity of camera when ambient brightness value is less than preset threshold;And according to
The ambient brightness value obtains sensitivity regulated quantity, and lowers described the first of the camera according to the sensitivity regulated quantity
Sensitivity, to determine the sensitivity of camera;
Obtain module, the multiple image shot under the conditions of the sensitivity for obtaining the camera;
Synthesis module is synthesized for choosing at least two field pictures from the multiple image, to obtain the first image;
Adjustment module, for the brightness of the first image to be adjusted according to default adjustment parameter, to obtain the second image,
The brightness of second image is greater than the brightness of the first image.
7. a kind of storage medium, which is characterized in that be stored with a plurality of instruction in the storage medium, described instruction is suitable for by handling
Device load is with photographic method described in any one of perform claim requirement 1 to 5.
8. a kind of terminal, which is characterized in that including processor and storage medium, a plurality of finger is stored in the storage medium
It enables, the processor load described instruction is with photographic method described in any one of perform claim requirement 1 to 5.
9. a kind of terminal, including processor, memory, camera and control circuit, it is characterised in that:
The processor and the memory, camera, control circuit are electrically connected, the memory for storing instruction, institute
Control circuit is stated for controlling the camera shooting photo;
The processor, for obtaining the first sensitivity of camera when ambient brightness value is less than preset threshold;And root
Sensitivity regulated quantity is obtained according to the ambient brightness value, and lowers described the of the camera according to the sensitivity regulated quantity
One sensitivity, to determine the sensitivity of camera;
The camera, for the shoot multi-frame images under the conditions of sensitivity;
The processor, is also used to choose at least two field pictures from the multiple image and is synthesized, to obtain the first image;
The processor is also used to that the brightness of the first image is adjusted according to default adjustment parameter, to obtain second
Image, the brightness of second image are greater than the brightness of the first image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710401746.7A CN107087118B (en) | 2017-05-31 | 2017-05-31 | Photographic method, device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710401746.7A CN107087118B (en) | 2017-05-31 | 2017-05-31 | Photographic method, device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107087118A CN107087118A (en) | 2017-08-22 |
CN107087118B true CN107087118B (en) | 2019-10-25 |
Family
ID=59607768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710401746.7A Active CN107087118B (en) | 2017-05-31 | 2017-05-31 | Photographic method, device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107087118B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107509044B (en) * | 2017-08-31 | 2020-08-18 | Oppo广东移动通信有限公司 | Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment |
CN107566746B (en) * | 2017-09-12 | 2020-09-04 | 广东小天才科技有限公司 | Photographing method and user terminal |
CN107820025B (en) * | 2017-12-13 | 2020-07-03 | 北京小米移动软件有限公司 | Method and device for photographing processing |
CN108111755A (en) * | 2017-12-20 | 2018-06-01 | 广东技术师范学院 | A kind of recognition methods of picked angle of human body and device |
CN108989700B (en) | 2018-08-13 | 2020-05-15 | Oppo广东移动通信有限公司 | Imaging control method, imaging control device, electronic device, and computer-readable storage medium |
CN110086993B (en) * | 2019-04-30 | 2021-09-07 | 努比亚技术有限公司 | Image processing method, image processing device, mobile terminal and computer readable storage medium |
CN112396574B (en) * | 2019-08-02 | 2024-02-02 | 浙江宇视科技有限公司 | License plate image quality processing method and device, storage medium and electronic equipment |
CN110992284A (en) * | 2019-11-29 | 2020-04-10 | Oppo广东移动通信有限公司 | Image processing method, image processing apparatus, electronic device, and computer-readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379281A (en) * | 2012-04-20 | 2013-10-30 | 佳能株式会社 | Image processing apparatus and image processing method for performing image synthesis |
CN103581566A (en) * | 2012-07-30 | 2014-02-12 | 三星电子株式会社 | Image capture method and image capture apparatus |
CN103685971A (en) * | 2012-09-13 | 2014-03-26 | 佳能株式会社 | Imaging apparatus and control method of same |
CN106060249A (en) * | 2016-05-19 | 2016-10-26 | 维沃移动通信有限公司 | Shooting anti-shaking method and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5957925B2 (en) * | 2012-02-08 | 2016-07-27 | リコーイメージング株式会社 | Dark exposure control device |
-
2017
- 2017-05-31 CN CN201710401746.7A patent/CN107087118B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379281A (en) * | 2012-04-20 | 2013-10-30 | 佳能株式会社 | Image processing apparatus and image processing method for performing image synthesis |
CN103581566A (en) * | 2012-07-30 | 2014-02-12 | 三星电子株式会社 | Image capture method and image capture apparatus |
CN103685971A (en) * | 2012-09-13 | 2014-03-26 | 佳能株式会社 | Imaging apparatus and control method of same |
CN106060249A (en) * | 2016-05-19 | 2016-10-26 | 维沃移动通信有限公司 | Shooting anti-shaking method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107087118A (en) | 2017-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107087118B (en) | Photographic method, device, storage medium and terminal | |
CN109951627B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
US7526194B2 (en) | Method and apparatus for adjusting exposure for a camera | |
CN110033418B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN104793742B (en) | Shooting preview method and device | |
CN110766621A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN105979125A (en) | Photographing method and system based on screen light supplement | |
CN115601244B (en) | Image processing method and device and electronic equipment | |
CN107818283A (en) | Quick Response Code image pickup method, mobile terminal and computer-readable recording medium | |
US11563889B2 (en) | Electronic device and method for controlling camera using external electronic device | |
CN112419167A (en) | Image enhancement method, device and storage medium | |
CN110047060B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN110581956A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN104869309A (en) | Shooting method and shooting apparatus | |
CN107147851B (en) | Photo processing method and device, computer readable storage medium and electronic equipment | |
US9743009B2 (en) | Image processing method and image processing device | |
JP2022027436A (en) | Image processing method and device, terminal, and storage medium | |
CN110740266B (en) | Image frame selection method and device, storage medium and electronic equipment | |
CN104869319A (en) | Image processing method and image processing device | |
CN104394329B (en) | A kind of photographic method, device and mobile terminal | |
CN117768789A (en) | Shooting method and electronic equipment | |
CN106773453B (en) | Camera exposure method and device and mobile terminal | |
CN108259771A (en) | Image processing method, device, storage medium and electronic equipment | |
US10972676B2 (en) | Image processing method and electronic device capable of optimizing hdr image by using depth information | |
CN107180417B (en) | Photo processing method and device, computer readable storage medium and electronic 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |