CN107172363A - A kind of image processing method and terminal - Google Patents
A kind of image processing method and terminal Download PDFInfo
- Publication number
- CN107172363A CN107172363A CN201710224489.4A CN201710224489A CN107172363A CN 107172363 A CN107172363 A CN 107172363A CN 201710224489 A CN201710224489 A CN 201710224489A CN 107172363 A CN107172363 A CN 107172363A
- Authority
- CN
- China
- Prior art keywords
- image
- terminal
- captured
- current
- value
- 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.)
- Withdrawn
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/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio 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/265—Mixing
Abstract
The embodiment of the invention discloses a kind of image processing method and terminal, wherein method includes:Terminal judges whether the brightness value of current image to be captured is less than predetermined luminance threshold value;If the brightness value of the current image to be captured is less than predetermined luminance threshold value, judge whether the current sensitivity value of the terminal is more than or equal to default sensitivity threshold value;If the current sensitivity value of the terminal is more than or equal to default sensitivity threshold value, shoots the current image to be captured and obtain shooting image;Potting gum processing is carried out to the shooting image and obtains the first view data.Terminal is less than predetermined luminance threshold value by the brightness value of the current image to be captured in terminal in the embodiment of the present invention, and the current sensitivity value of terminal camera is higher than when presetting sensitivity threshold value to shooting image progress potting gum processing, so as to improve signal noise ratio (snr) of image, sensitivity and output speed, the noise and resolution ratio of image are reduced, overall image quality is lifted.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of image processing method and terminal.
Background technology
With the popularization of the mobile terminals such as mobile phone, increasing people is taken pictures using mobile terminal, especially with
Mobile phone is autodyned.But because the mobile terminals such as mobile phone are different from the thing of the camera in the camera of specialty, the mobile terminal such as mobile phone
Manage hardware capabilities limited so that when shooting, shooting effect can be influenceed by certain, for example, under low light environment, can make
It must shoot that obtained brightness of image is low, noise is big.
At present, can be by ring to be captured in order to solve the problem of the imaging of dim light auto heterodyne situation hypograph is undesirable
Border carries out light filling to improve, but the brightness after light filling can not still meet shooting demand so that the sensitivity ISO meetings of mobile terminal
Compare high, so as to cause that the noise of image is big, shooting quality is undesirable.
The content of the invention
The embodiments of the invention provide a kind of image processing method and terminal, the noise of image can be reduced, lifting is overall
Picture quality.
In a first aspect, the embodiments of the invention provide a kind of image processing method, it is characterised in that methods described includes:
Judge whether the brightness value of current image to be captured is less than predetermined luminance threshold value;
If the brightness value of the current image to be captured is less than predetermined luminance threshold value, the current photosensitive of the terminal is judged
Whether angle value is more than or equal to default sensitivity threshold value;
If the current sensitivity value of the terminal is more than or equal to default sensitivity threshold value, shoot described current to be captured
Image obtains shooting image;
Potting gum processing is carried out to the shooting image and obtains the first view data.
On the other hand, the embodiments of the invention provide a kind of terminal, the terminal includes:
Judging unit, for judging whether the brightness value of current image to be captured is less than predetermined luminance threshold value;
If the brightness value that the judging unit is additionally operable to the current image to be captured is less than predetermined luminance threshold value, judge
Whether the current sensitivity value of the terminal is more than or equal to default sensitivity threshold value;
Shooting unit, if the current sensitivity value for the terminal is more than or equal to default sensitivity threshold value, shoots
The current image to be captured obtains shooting image;
Processing unit, the first view data is obtained for carrying out potting gum processing to the shooting image.
As can be seen that in technical scheme provided in an embodiment of the present invention, terminal judges the brightness value of current image to be captured
Whether predetermined luminance threshold value is less than;If the brightness value of the current image to be captured is less than predetermined luminance threshold value, judge described
Whether the current sensitivity value of terminal exceedes default sensitivity threshold value;If the current sensitivity value of the terminal is more than or equal to pre-
If sensitivity threshold value, then shoot the current image to be captured and obtain shooting image, and pixel conjunction is carried out to the image to be captured
And processing obtains the first view data.Terminal is less than predetermined luminance threshold by the brightness value of the current image to be captured in terminal
Value, and the current sensitivity value of terminal camera are carried out at potting gum higher than when presetting sensitivity threshold value to shooting image
Reason, so as to improve signal noise ratio (snr) of image, sensitivity and output speed, reduces the noise and resolution ratio of image, lifts overall diagram
As quality.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of image processing method provided in an embodiment of the present invention;
Fig. 2 is that another embodiment of the present invention provides a kind of schematic flow diagram of image processing method;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal schematic block diagram that another embodiment of the present invention is provided;
Fig. 5 is a kind of terminal schematic block diagram that further embodiment of this invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated
Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use such as touch sensitive surface at least one is public
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch
Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Referring to Fig. 1, Fig. 1 is that the embodiment of the present invention provides a kind of schematic flow diagram of image processing method, is propped up as shown in the figure
The method of paying may include following steps:
S101, terminal judge whether the brightness value of current image to be captured is less than predetermined luminance threshold value.
Wherein, terminal refers to the terminals such as mobile phone, tablet personal computer, wearable device, in embodiments of the present invention, terminal tool
There is front camera, so that user can be autodyned using terminal.
Alternatively, in one embodiment of the invention, the terminal has screen backlight and proactive light emitting diode
(Light Emitting Diode, LED) light compensating lamp so that when user is autodyned using the terminal, if shoot light compared with
It is weak, then light filling can be carried out to ambient light using proactive LED light supplement lamp or screen backlight, improve and shoot light.
Wherein, current image to be captured refers to the image that terminal needs are shot, in embodiments of the present invention, when terminal is utilized
When front camera is autodyned, the current image to be captured can refer to this human head picture of user.
Wherein, the brightness value (Brightness Value, BV) of current image to be captured is typically determined by the light of environment
Fixed, when in the environment that current object to be shot is in dark, the brightness value of current image to be captured will be relatively low, conversely,
When in the environment that current object to be shot is in bright light, the brightness value of current image to be captured will be brighter.
Wherein, predetermined luminance threshold value refers to for determining whether one in low light environment assesses current image to be captured
Threshold value, so that when the brightness value of current image to be captured is less than predetermined luminance threshold value, it is determined that current image to be captured is in weak
Luminous environment, and when the brightness value of current image to be captured is higher than predetermined luminance threshold value, it is determined that current image to be captured is in by force
Luminous environment.
Alternatively, in one embodiment of the invention, the predetermined luminance threshold value is 30.
Specifically, in one embodiment of the invention, in terminal camera image-signal processor (image
Signal processor, ISP) calculate current image frame brightness value after, then terminal judges whether the brightness value is less than again
Predetermined luminance threshold value.
If S102, the brightness value of the current image to be captured are less than predetermined luminance threshold value, working as the terminal is judged
Whether preceding sensitivity value is more than or equal to default sensitivity threshold value.
In embodiments of the present invention, when the brightness value of current image to be captured is less than predetermined luminance threshold value, illustrate now
Current image to be captured is under low light environment, so now terminal needs use to be shot compared with ISO ISO.
Alternatively, in one embodiment of the invention, if the brightness value of current image to be captured is greater than or equal to default
During luminance threshold, terminal current image to be captured by normal photographing.
It is appreciated that the brightness value by detecting image to be captured, thus under different brightness values terminal will perform difference
Operation, can further trigger different screening-modes.
Wherein, the default sensitivity threshold value refers to an assessment threshold whether excessive for the current sensitivity that determines terminal
Value, so as to when the current sensitivity value for detecting terminal is more than default sensitivity threshold value, determine the current sensitivity value of terminal
It is too high, namely now because the brightness of image to be captured is too low and uses higher sensitivity, so as to now shoot obtained figure
As noise will be than larger;And when the current sensitivity value of terminal is less than or equal to default sensitivity threshold value, determine terminal
Current sensitivity value will not be too high, namely the now brightness of image to be captured is enough, so video camera is when shooting and does not need
Using higher sensitivity, so that it is few to shoot the image noise come.
Alternatively, in one embodiment of the invention, the default sensitivity threshold value could be arranged to 1000.
Specifically, in one embodiment of the invention, when camera control module receives photographing instruction in terminal,
Detect whether current ISO values exceed default sensitivity threshold value.
If the current sensitivity value of S103, the terminal is more than or equal to default sensitivity threshold value, shoot described current
Image to be captured obtains shooting image.
S104, to the shooting image carry out potting gum processing obtain the first view data.
Wherein, the first view data refer to it is corresponding with current taken image, to shooting image carry out potting gum processing
The view data obtained afterwards.
Specifically, in one embodiment of the invention, the size of the shooting image is M*M pixels, described to described
Shooting image carries out potting gum processing and obtains the first view data, including:
Piecemeal processing is carried out to the shooting image and obtains the image subblock that (M/N) * (M/N) individual size is N*N pixels, institute
M, N are stated for positive integer;
The pixel value phase adduction of N*N pixel in described image sub-block is averaged as described image sub-block
Merge pixel value;
It is the data being made up of the merging pixel value of described image sub-block, first figure to determine described first image data
As size of data is (M/N) * (M/N) pixel.
For example, in the example of the present invention,, should if N is 4 if shooting image is the image of M*M pixels
Shooting image is divided into the image subblock of the individual 4*4 pixels of (M/4) * (M/4), then pixel again to the pixel in each image subblock
Value is added the new pixel value averaged as the image subblock, will finally obtain the new image of (M/4) * (M/4) size
Data, namely the first view data, it will be understood that the new view data by for the 1/N of the resolution ratio of original shooting image,
It is 1/4 herein.
Alternatively, in one embodiment of the invention, the mode of this pair of shooting image progress potting gum processing is
Binning patterns.
It is appreciated that when carrying out image output using aforesaid way, because the pixel value of each pixel of output is adjacent
The average value of pixel, it is possible to smooth noise, improves signal noise ratio (snr) of image, sensitivity and output speed, reduces the noise of image
And resolution ratio, the overall quality for improving image.But during using binning pattern output images, the resolution ratio of image will be only complete
The 1/4 of size.
In embodiments of the present invention, when the current sensitivity of terminal is excessive, the noise for shooting obtained shooting image will
Than larger, and after being handled due to binning patterns image, the resolution ratio of image can be reduced, so can now select
Select in binning pattern output images.
Alternatively, in one embodiment of the invention, if the current sensitivity value of the terminal is less than default sensitivity
Threshold value, now terminal by normal photographing the image to be captured.
For example, in the example of the present invention, when being autodyned in the environment of user is in dark, being
Guarantee shooting effect, terminal detects that the brightness value of active user auto heterodyne head portrait (namely may be considered current to be captured first
The brightness value of image) whether it is less than 30, when detecting the brightness value less than 30, now illustrate the brightness of current image to be captured
Value is too small, and the environment residing for user is too dark, and now in order that shooting obtained image is unlikely to too dark, terminal needs to improve shooting
The sensitivity of head, but due to sensitivity it is too high when, it is big by noise to shoot obtained image, so when detecting the photosensitive of camera
Degree than it is larger when, binning pattern output images will be now used, to reduce the noise of image.
Alternatively, in one embodiment of the invention, it is described shoot the current image to be captured before or described clap
When taking the photograph the current image to be captured, methods described also includes:
Light filling is carried out to the current image to be captured, to improve the brightness value of the current image to be captured.
It is appreciated that in an embodiment of the present invention, when the dark of current image to be captured, now in order to ensure
Shooting effect, shooting image can be treated before shooting and carries out light filling, bright and clear after light filling, terminal judges figure to be captured
The brightness of picture is low to be higher than predetermined luminance threshold value, and it is good to shoot now namely directly obtained shooting image quality, subsequently can be direct
Shooting image is exported using normal mode, and light is still not sufficient enough after light filling, but can also carry to a certain extent
High image quality, so, shooting can be greatly enhanced by carrying out light filling to current image to be captured before shooting or when shooting
The picture quality of image.
Specifically, in one embodiment of the invention, it is described that light filling is carried out to the current image to be captured, including:
Light filling is carried out to the current image to be captured using proactive light emitting diode light compensating lamp or screen backlight.
Alternatively, in one embodiment of the invention, when terminal has proactive light emitting diode light compensating lamp, preferably select
Select proactive light emitting diode light compensating lamp and light filling is carried out to current image to be captured, when proactive light emitting diode light filling is not present in terminal
During lamp, screen backlight can be used to carry out light filling to current image to be captured.
Specifically, in one embodiment of the invention, proactive light emitting diode can be controlled by camera control module
Light compensating lamp or screen backlight carry out light filling to current image to be captured.
Specifically, when carrying out light filling using screen backlight, screen background color settings can be particular color by terminal, and
Screen backlight is set as system maximum brightness, the face of user is projected using the backlight of screen, the face for improving user is whole
Body brightness.
For example, in the example of the present invention, when being autodyned in the environment of user is in dark, being
Guarantee shooting effect, terminal detects that the brightness value of active user auto heterodyne head portrait (namely may be considered current to be captured first
The brightness value of image) whether it is less than 30, when detecting the brightness value less than 30, now illustrate the brightness of current image to be captured
Value is too small, and the environment residing for user is too dark, so light filling now can be carried out using proactive light emitting diode first, improves and waits to clap
Take the photograph the brightness value of image.But due to still will not be very good by the effect after terminal light filling, now in order that shooting obtained image
Be unlikely to too dark, now terminal needs to improve the sensitivity of camera, but due to sensitivity it is too high when, shooting obtained image will
Noise is big, thus when detect the sensitivity of camera than it is larger when, binning pattern output images will be now used, to drop
The noise of low image.
Alternatively, in another embodiment of the present invention, after light filling, due to improving the brightness of image to be captured
Value, so now the sensitivity value of the camera of terminal and need not set too high, will not so as to shoot obtained image noise
Can be too big, so do not need to use now binning patterns output image to reduce the noise of image, will be with normal pattern
Output image.
Alternatively, in one embodiment of the invention, can also simultaneously using proactive light emitting diode light compensating lamp and
Screen backlight carries out light filling to current image to be captured.
Further, in one embodiment of the invention, when the ISO for detecting terminal is too high, if being now used only
Proactive light emitting diode light compensating lamp carries out light filling, can further open screen backlight and carry out light filling;When only used screen back
Light carries out light filling, can further open proactive light emitting diode light compensating lamp and carry out light filling.
It is appreciated that because when user autodynes in night scene, the light lighted using preceding shooting light compensating lamp can be direct
It is irradiated on face, so light filling very effectively can be carried out to current image to be captured using proactive light compensating lamp, and if i.e.
Make proactive light compensating lamp is not present, can also improve the brightness of current image to be captured, Jin Erti to a certain extent using screen backlight
The picture quality that high night scene is autodyned.
Alternatively, in one embodiment of the invention, it is described that shooting image progress potting gum processing is obtained
After first view data, methods described also includes:
Described first image data are entered with row interpolation adjustment using pre-set image interpolation algorithm, the of default resolution ratio is obtained
Two view data.
Wherein, image interpolation algorithm refers to that the image relatively low to resolution ratio is carried out after pixel point interpolation, to obtain compared with high score
The method of the image of resolution.
Specifically, in one embodiment of the invention, the image interpolation algorithm can be in following image interpolation algorithm
It is any:Nearest picture element interpolation algorithm, bilinear interpolation algorithm and bicubic interpolation algorithm.
Wherein, nearest picture element interpolation algorithm is a kind of simplest interpolation algorithm, when picture amplifies, and the pixel lacked is led to
Cross and directly generated using the color of immediate original pixel therewith;Each pixel of the image of bilinear interpolation algorithm output
It is the result for having four pixel (2*2) computings in figure;Each pixel of bicubic interpolation algorithm output image is artwork 16
The result of pixel (4*4) computing.
It is appreciated that because the resolution ratio of the first view data exported by binning patterns is relatively low, so in order to carry
The resolution ratio of hi-vision, can cause image interpolation algorithm to enter row interpolation to the first view data and obtain the second view data, with
Improve the resolution ratio for shooting obtained image.
Alternatively, in one embodiment of the invention, the utilization pre-set image interpolation algorithm is to described first image
Data enter row interpolation adjustment, and after the second view data for obtaining default resolution ratio, methods described also includes:
Second view data is encoded using pre-set image encryption algorithm, to obtain coded image.
Wherein, pre-set image encryption algorithm refers to for being encoded to the view data that camera is got, and is meeting
Under the requirement of certain fidelity, line translation, coding and compression are entered to view data, redundant data reduction is removed and represents digitized map
The data volume needed during picture, in order to the storage and transmission of image.Damaged with less data amount or nondestructively represent original
Picture element matrix technology.
Image compression encoding can be divided into two classes:One class is reversible, i.e., can recover original completely from the data after compression
Image, information do not lose, referred to as lossless compression-encoding, such as portable network image (Portable Networf
Graphics, PNG) it is conventional Lossless Image Compression Algorithm coding method;It is another kind of be it is irreversible, i.e., from the data after compression without
Method recovers original image completely, and information has certain loss, and referred to as lossy compression method is encoded, for example, JPEG
(Joint Photographic Experts Group, JPEG) is conventional image lossy compression method coding method.
In embodiments of the present invention, different Image Coding Algorithms can be used to encode the second view data
The image of different-format.For example, the coded image for obtaining jpeg format using JPEG modes is checked for user.
It is appreciated that coding is compressed to the second view data by using appropriate Image Compression Coding Algorithm, with
Relatively user is shown with transmitting shooting image in terminal.
As can be seen that in technical scheme provided in an embodiment of the present invention, terminal judges the brightness value of current image to be captured
Whether predetermined luminance threshold value is less than;If the brightness value of the current image to be captured is less than predetermined luminance threshold value, judge described
Whether the current sensitivity value of terminal exceedes default sensitivity threshold value;If the current sensitivity value of the terminal is more than or equal to pre-
If sensitivity threshold value, then shoot the current image to be captured and obtain shooting image, and pixel conjunction is carried out to the image to be captured
And processing obtains the first view data.Terminal is less than predetermined luminance threshold by the brightness value of the current image to be captured in terminal
Value, and the current sensitivity value of terminal camera are carried out at potting gum higher than when presetting sensitivity threshold value to shooting image
Reason, so as to improve signal noise ratio (snr) of image, sensitivity and output speed, reduces the noise and resolution ratio of image, lifts overall diagram
As quality.
Referring to Fig. 2, Fig. 2 is that another embodiment of the present invention provides a kind of schematic flow diagram of image processing method, Fig. 2 institutes
In the method shown, the detailed description in Fig. 1 is may be referred to the same or similar content of method shown in Fig. 1, is no longer gone to live in the household of one's in-laws on getting married herein
State.Image processing method may include following steps shown in Fig. 2:
S201, terminal judge whether the brightness value of current image to be captured is less than predetermined luminance threshold value.
In embodiments of the present invention, user starts the front camera preview auto heterodyne of terminal first.
If S202, the brightness value of current image to be captured are less than predetermined luminance threshold value, proactive light emitting diode or screen are utilized
Curtain backlight carries out light filling to current image to be captured, to improve the brightness value of current image to be captured.
S203, judge whether the current sensitivity value of terminal is more than or equal to default sensitivity threshold value.
If the current sensitivity value of S204, the terminal is more than or equal to default sensitivity threshold value, shoot described current
Image to be captured.
S205, to the shooting image carry out potting gum processing obtain the first view data.
S206, using pre-set image interpolation algorithm described first image data are entered with row interpolation adjustment, obtain default resolution
Second view data of rate.
S207, using pre-set image encryption algorithm second view data is encoded, to obtain coded image.
Wherein, the image resolution ratio corresponding to the second view data is that user preset is fixed.
In embodiments of the present invention, after coded image is obtained, the coded image is exported and shown to user.
As can be seen that in technical scheme provided in an embodiment of the present invention, terminal judges the brightness value of current image to be captured
Whether predetermined luminance threshold value is less than;If the brightness value of the current image to be captured is less than predetermined luminance threshold value, judge described
Whether the current sensitivity value of terminal exceedes default sensitivity threshold value;If the current sensitivity value of the terminal is more than or equal to pre-
If sensitivity threshold value, then shoot the current image to be captured and obtain shooting image, and pixel conjunction is carried out to the image to be captured
And processing obtains the first view data.Terminal is less than predetermined luminance threshold by the brightness value of the current image to be captured in terminal
Value, and the current sensitivity value of terminal camera are carried out at potting gum higher than when presetting sensitivity threshold value to shooting image
Reason, so as to improve signal noise ratio (snr) of image, sensitivity and output speed, reduces the noise and resolution ratio of image, lifts overall diagram
As quality.
It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention referring to Fig. 3, for realizing that the embodiment of the present invention is public
The method of payment opened, as shown in figure 3, a kind of terminal 300 provided in an embodiment of the present invention can include:
Judging unit 310 and output unit 320.
Judging unit 310, for judging whether the brightness value of current image to be captured is less than predetermined luminance threshold value.
Wherein, terminal refers to the terminals such as mobile phone, tablet personal computer, wearable device, in embodiments of the present invention, terminal tool
There is front camera, so that user can be autodyned using terminal.
Alternatively, in one embodiment of the invention, the terminal has screen backlight and proactive light emitting diode
(Light Emitting Diode, LED) light compensating lamp so that when user is autodyned using the terminal, if shoot light compared with
It is weak, then light filling can be carried out to ambient light using proactive LED light supplement lamp or screen backlight, improve and shoot light.
Wherein, current image to be captured refers to the image that terminal needs are shot, in embodiments of the present invention, when terminal is utilized
When front camera is autodyned, the current image to be captured can refer to this human head picture of user.
Wherein, the brightness value (Brightness Value, BV) of current image to be captured is typically determined by the light of environment
Fixed, when in the environment that current object to be shot is in dark, the brightness value of current image to be captured will be relatively low, conversely,
When in the environment that current object to be shot is in bright light, the brightness value of current image to be captured will be brighter.
Wherein, predetermined luminance threshold value refers to for determining whether one in low light environment assesses current image to be captured
Threshold value, so that when the brightness value of current image to be captured is less than predetermined luminance threshold value, it is determined that current image to be captured is in weak
Luminous environment, and when the brightness value of current image to be captured is higher than predetermined luminance threshold value, it is determined that current image to be captured is in by force
Luminous environment.
Alternatively, in one embodiment of the invention, the predetermined luminance threshold value is 30.
Specifically, in one embodiment of the invention, in terminal camera image-signal processor (image
Signal processor, ISP) calculate current image frame brightness value after, then terminal judges whether the brightness value is less than again
Predetermined luminance threshold value.
If the brightness value that the judging unit 310 is additionally operable to the current image to be captured is less than predetermined luminance threshold value,
Judge whether the current sensitivity value of the terminal is more than or equal to default sensitivity threshold value.
In embodiments of the present invention, when the brightness value of current image to be captured is less than predetermined luminance threshold value, illustrate now
Current image to be captured is under low light environment, so now terminal needs use to be shot compared with ISO ISO.
Alternatively, in one embodiment of the invention, if the brightness value of current image to be captured is greater than or equal to default
During luminance threshold, terminal current image to be captured by normal photographing.
It is appreciated that the brightness value by detecting image to be captured, thus under different brightness values terminal will perform difference
Operation, can further trigger different screening-modes.
Wherein, the default sensitivity threshold value refers to an assessment threshold whether excessive for the current sensitivity that determines terminal
Value, so as to when the current sensitivity value for detecting terminal is more than default sensitivity threshold value, determine the current sensitivity value of terminal
It is too high, namely now because the brightness of image to be captured is too low and uses higher sensitivity, so as to now shoot obtained figure
As noise will be than larger;And when the current sensitivity value of terminal is less than or equal to default sensitivity threshold value, determine terminal
Current sensitivity value will not be too high, namely the now brightness of image to be captured is enough, so video camera is when shooting and does not need
Using higher sensitivity, so that it is few to shoot the image noise come.
Alternatively, in one embodiment of the invention, the default sensitivity threshold value could be arranged to 1000.
Specifically, in one embodiment of the invention, whether camera control module detects current ISO values in terminal
More than default sensitivity threshold value.
Shooting unit 320, if the current sensitivity value for the terminal is more than or equal to default sensitivity threshold value, is obtained
The current image to be captured is taken, then shoots the current image to be captured and obtains shooting image.
Processing unit 330, for obtaining the first view data for carrying out potting gum processing to the shooting image.
Wherein, the first view data refer to it is corresponding with current taken image, to shooting image carry out potting gum processing
The view data obtained afterwards.
Alternatively, in one embodiment of the invention, the mode of this pair of shooting image progress potting gum processing is
Binning patterns.
It is appreciated that when carrying out image output using aforesaid way, because the pixel value of each pixel of output is adjacent
The average value of pixel, it is possible to smooth noise, improves signal noise ratio (snr) of image, sensitivity and output speed, reduces the noise of image
And resolution ratio, the overall quality for improving image.But during using binning pattern output images, the resolution ratio of image will be only complete
The 1/4 of size.
In embodiments of the present invention, when the current sensitivity of terminal is excessive, the noise for shooting obtained shooting image will
Than larger, and after being handled due to binning patterns image, the resolution ratio of image can be reduced, so can now select
Select in binning pattern output images.
Alternatively, in one embodiment of the invention, if the current sensitivity value of the terminal is less than default sensitivity
Threshold value, now terminal by normal photographing the image to be captured.
For example, in the example of the present invention, when being autodyned in the environment of user is in dark, being
Guarantee shooting effect, terminal detects that the brightness value of active user auto heterodyne head portrait (namely may be considered current to be captured first
The brightness value of image) whether it is less than 30, when detecting the brightness value less than 30, now illustrate the brightness of current image to be captured
Value is too small, and the environment residing for user is too dark, and now in order that shooting obtained image is unlikely to too dark, terminal needs to improve shooting
The sensitivity of head, but due to sensitivity it is too high when, it is big by noise to shoot obtained image, so when detecting the photosensitive of camera
Degree than it is larger when, binning pattern output images will be now used, to reduce the noise of image.
As can be seen that in technical scheme provided in an embodiment of the present invention, terminal judges the brightness value of current image to be captured
Whether predetermined luminance threshold value is less than;If the brightness value of the current image to be captured is less than predetermined luminance threshold value, judge described
Whether the current sensitivity value of terminal exceedes default sensitivity threshold value;If the current sensitivity value of the terminal is more than or equal to pre-
If sensitivity threshold value, then shoot the current image to be captured and obtain shooting image, and pixel conjunction is carried out to the image to be captured
And processing obtains the first view data.Terminal is less than predetermined luminance threshold by the brightness value of the current image to be captured in terminal
Value, and the current sensitivity value of terminal camera are carried out at potting gum higher than when presetting sensitivity threshold value to shooting image
Reason, so as to improve signal noise ratio (snr) of image, sensitivity and output speed, reduces the noise and resolution ratio of image, lifts overall diagram
As quality.
In the present embodiment, terminal 300 is presented in the form of unit.Here " unit " can refer to application-specific collection
Into circuit (application-specific integrated circuit, ASIC), one or more softwares or firmware are performed
The processor and memory of program, integrated logic circuit, and/or other can provide the device of above-mentioned functions.
It is understood that the function of each functional unit of the terminal 300 of the present embodiment can be according to above method embodiment
In method implement, it implements the associated description that process is referred to above method embodiment, and here is omitted.
It is the schematic block diagram of another terminal provided in an embodiment of the present invention, for realizing the embodiment of the present invention referring to Fig. 4
Disclosed method of payment, wherein, terminal as shown in Figure 4 is that terminal as shown in Figure 3 optimizes what is obtained.Shown in Fig. 4
Terminal also has following extend in addition to the unit including the terminal shown in Fig. 3:
Specifically, in one embodiment of the invention, the size of the shooting image is M*M pixels, the processing list
Member 430 includes:
Blocking unit 431, (M/N) * (M/N) individual size is obtained for N*N for carrying out piecemeal processing to the shooting image
The image subblock of pixel, described M, N are positive integer;
Combining unit 432, does for the pixel value phase adduction of N*N pixel in described image sub-block to be averaged
For the merging pixel value of described image sub-block;
Determining unit 433, for determining that described first image data are to be made up of the merging pixel value of described image sub-block
Data, described first image size of data be (M/N) * (M/N) pixel.
For example, in the example of the present invention,, should if N is 4 if shooting image is the image of M*M pixels
Shooting image is divided into the image subblock of the individual 4*4 pixels of (M/4) * (M/4), then pixel again to the pixel in each image subblock
Value is added the new pixel value averaged as the image subblock, will finally obtain the new image of (M/4) * (M/4) size
Data, namely the first view data, it will be understood that the new view data by for the 1/N of the resolution ratio of original shooting image,
It is 1/4 herein.
Alternatively, in one embodiment of the invention, the terminal 300 also includes:
Light filling unit 440, for working as before current image to be captured described in the terminal taking or described in the shooting
During preceding image to be captured, the current image to be captured is mended using proactive light emitting diode light compensating lamp or screen backlight
Light, to improve the brightness value of the current image to be captured.
It is appreciated that in an embodiment of the present invention, when the dark of current image to be captured, now in order to ensure
Shooting effect, shooting image can be treated before shooting and carries out light filling, bright and clear after light filling, terminal judges figure to be captured
The brightness of picture is low to be higher than predetermined luminance threshold value, and it is good to shoot now namely directly obtained shooting image quality, subsequently can be direct
Shooting image is exported using normal mode, and light is still not sufficient enough after light filling, but can also carry to a certain extent
High image quality, so, shooting can be greatly enhanced by carrying out light filling to current image to be captured before shooting or when shooting
The picture quality of image.
Alternatively, in one embodiment of the invention, when terminal has proactive light emitting diode light compensating lamp, preferably select
Select proactive light emitting diode light compensating lamp and light filling is carried out to current image to be captured, when proactive light emitting diode light filling is not present in terminal
During lamp, screen backlight can be used to carry out light filling to current image to be captured.
For example, in the example of the present invention, when being autodyned in the environment of user is in dark, being
Guarantee shooting effect, terminal detects that the brightness value of active user auto heterodyne head portrait (namely may be considered current to be captured first
The brightness value of image) whether it is less than 30, when detecting the brightness value less than 30, now illustrate the brightness of current image to be captured
Value is too small, and the environment residing for user is too dark, so light filling now can be carried out using proactive light emitting diode first, improves and waits to clap
Take the photograph the brightness value of image.But due to still will not be very good by the effect after terminal light filling, now in order that shooting obtained image
Be unlikely to too dark, now terminal needs to improve the sensitivity of camera, but due to sensitivity it is too high when, shooting obtained image will
Noise is big, thus when detect the sensitivity of camera than it is larger when, binning pattern output images will be now used, to drop
The noise of low image.
Alternatively, in another embodiment of the present invention, after light filling, due to improving the brightness of image to be captured
Value, so now the sensitivity value of the camera of terminal and need not set too high, will not so as to shoot obtained image noise
Can be too big, so do not need to use now binning patterns output image to reduce the noise of image, will be with normal pattern
Output image.
It is appreciated that because when user's night scene is autodyned, the light lighted using preceding shooting light compensating lamp can directly be shone
Be mapped on face, so using proactive light compensating lamp light filling very effectively can be carried out to current image to be captured, even and if if
In the absence of proactive light compensating lamp, the brightness of current image to be captured can be also improved to a certain extent using screen backlight, and then improve
Picture quality when night scene is autodyned.
Alternatively, in one embodiment of the invention, the terminal also includes adjustment unit 450, at the place
The shooting image progress potting gum processing of 430 pairs of unit of reason is obtained after the first view data, utilize pre-set image interpolation
Algorithm enters row interpolation adjustment to described first image data, obtains the second view data of default resolution ratio.
Wherein, image interpolation algorithm refers to that the image relatively low to resolution ratio is carried out after pixel point interpolation, to obtain compared with high score
The method of the image of resolution.
Specifically, in one embodiment of the invention, the image interpolation algorithm can be in following image interpolation algorithm
It is any:Nearest picture element interpolation algorithm, bilinear interpolation algorithm and bicubic interpolation algorithm.
Wherein, nearest picture element interpolation algorithm is a kind of simplest interpolation algorithm, when picture amplifies, and the pixel lacked is led to
Cross and directly generated using the color of immediate original pixel therewith;Each pixel of the image of bilinear interpolation algorithm output
It is the result for having four pixel (2*2) computings in figure;Each pixel of bicubic interpolation algorithm output image is artwork 16
The result of pixel (4*4) computing.
It is appreciated that because the resolution ratio of the first view data exported by binning patterns is relatively low, so in order to carry
The resolution ratio of hi-vision, can cause image interpolation algorithm to enter row interpolation to the first view data and obtain the second view data, with
Improve the resolution ratio for shooting obtained image.
Alternatively, in one embodiment of the invention, the terminal 400 also includes coding unit 460, for described
Adjustment unit 440 is performed enters row interpolation adjustment to described first image data using pre-set image interpolation algorithm, obtains default point
After second view data of resolution, second view data is encoded using pre-set image encryption algorithm, to obtain
Coded image.
Wherein, pre-set image encryption algorithm refers to for being encoded to the view data that camera is got, and is meeting
Under the requirement of certain fidelity, line translation, coding and compression are entered to view data, redundant data reduction is removed and represents digitized map
The data volume needed during picture, in order to the storage and transmission of image.Damaged with less data amount or nondestructively represent original
Picture element matrix technology.
Image compression encoding can be divided into two classes:One class is reversible, i.e., can recover original completely from the data after compression
Image, information do not lose, referred to as lossless compression-encoding, such as portable network image (Portable Networf
Graphics, PNG) it is conventional Lossless Image Compression Algorithm coding method;It is another kind of be it is irreversible, i.e., from the data after compression without
Method recovers original image completely, and information has certain loss, and referred to as lossy compression method is encoded, for example, JPEG
(Joint Photographic Experts Group, JPEG) is conventional image lossy compression method coding method.
In embodiments of the present invention, different Image Coding Algorithms can be used to encode the second view data
The image of different-format.For example, the coded image for obtaining jpeg format using JPEG modes is checked for user.
It is appreciated that coding is compressed to the second view data by using appropriate Image Compression Coding Algorithm, with
Relatively user is shown with transmitting shooting image in terminal.
As can be seen that in technical scheme provided in an embodiment of the present invention, terminal 400 judges the brightness of current image to be captured
Whether value is less than predetermined luminance threshold value;If the brightness value of the current image to be captured is less than predetermined luminance threshold value, institute is judged
Whether the current sensitivity value for stating terminal 400 exceedes default sensitivity threshold value;If the current sensitivity value of the terminal 400 is more than
Or equal to default sensitivity threshold value, then shoot the current image to be captured and obtain shooting image, and the image to be captured is entered
The processing of row potting gum obtains the first view data.Terminal is by the brightness value of the current image to be captured in terminal less than default
Luminance threshold, and the current sensitivity value of terminal camera are higher than when presetting sensitivity threshold value to shooting image progress pixel conjunction
And handle, so as to improve signal noise ratio (snr) of image, sensitivity and output speed, the noise and resolution ratio of image are reduced, is lifted whole
Body picture quality.
In the present embodiment, terminal 400 is presented in the form of unit.Here " unit " can refer to application-specific collection
Into circuit (application-specific integrated circuit, ASIC), one or more softwares or firmware are performed
The processor and memory of program, integrated logic circuit, and/or other can provide the device of above-mentioned functions.
It is understood that the function of each functional unit of the terminal 400 of the present embodiment can be according to above method embodiment
In method implement, it implements the associated description that process is referred to above method embodiment, and here is omitted.
It is a kind of terminal schematic block diagram that further embodiment of this invention is provided referring to Fig. 5.In the present embodiment as depicted
Terminal include multiple cameras, and the terminal can include:One or more processors 501;One or more inputs are set
Standby 502, one or more output equipments 503 and memory 504.Above-mentioned processor 501, input equipment 502, output equipment 503
Connected with memory 504 by bus 805.Memory 502 is used for store instruction, and processor 501 is deposited for performing memory 502
The instruction of storage.Wherein, processor 501 calls the instruction stored in the memory 504, is used for:Judge current image to be captured
Brightness value whether be less than predetermined luminance threshold value;If the brightness value of the current image to be captured is less than predetermined luminance threshold value,
Judge whether the current sensitivity value of the terminal is more than or equal to default sensitivity threshold value;If the current sensitivity of the terminal
Value is more than or equal to default sensitivity threshold value, then shoots the current image to be captured and obtain shooting image;To the shooting figure
The first view data is obtained as carrying out potting gum processing.
Alternatively, in some possible embodiments of the present invention, the size of the shooting image is M*M pixels, should
501 pairs of the processor shooting image carries out potting gum processing and obtains the first view data, including:
Piecemeal processing is carried out to the shooting image and obtains the image subblock that (M/N) * (M/N) individual size is N*N pixels, institute
M, N are stated for positive integer;
The pixel value phase adduction of N*N pixel in described image sub-block is averaged as described image sub-block
Merge pixel value;
It is the data being made up of the merging pixel value of described image sub-block, first figure to determine described first image data
As size of data is (M/N) * (M/N) pixel.
Alternatively, in some possible embodiments of the present invention, 501 pairs of processor shooting image carries out picture
Plain merging treatment is obtained after the first view data, is additionally operable to:
Described first image data are entered with row interpolation adjustment using pre-set image interpolation algorithm, the of default resolution ratio is obtained
Two view data.
Alternatively, in some possible embodiments of the present invention, processor 501 utilizes pre-set image interpolation algorithm pair
Described first image data enter row interpolation adjustment, after the second view data for obtaining default resolution ratio, are additionally operable to:
Second view data is encoded using pre-set image encryption algorithm, to obtain coded image.
Alternatively, in some possible embodiments of the present invention, before the shooting current image to be captured
Or it is described when shooting the current image to be captured, processor 501 is additionally operable to:
Light filling is carried out to the current image to be captured using proactive light emitting diode light compensating lamp or screen backlight, to improve
The brightness value of the current image to be captured.
As can be seen that in technical scheme provided in an embodiment of the present invention, terminal 500 judges the brightness of current image to be captured
Whether value is less than predetermined luminance threshold value;If the brightness value of the current image to be captured is less than predetermined luminance threshold value, institute is judged
Whether the current sensitivity value for stating terminal 500 exceedes default sensitivity threshold value;If the current sensitivity value of the terminal 500 is more than
Or equal to default sensitivity threshold value, then shoot the current image to be captured and obtain shooting image, and the image to be captured is entered
The processing of row potting gum obtains the first view data.Terminal is by the brightness value of the current image to be captured in terminal less than default
Luminance threshold, and the current sensitivity value of terminal camera are higher than when presetting sensitivity threshold value to shooting image progress pixel conjunction
And handle, so as to improve signal noise ratio (snr) of image, sensitivity and output speed, the noise and resolution ratio of image are reduced, is lifted whole
Body picture quality.
In the present embodiment, terminal 500 is presented in the form of unit.Here " unit " can refer to application-specific collection
Into circuit (application-specific integrated circuit, ASIC), one or more softwares or firmware are performed
The processor and memory of program, integrated logic circuit, and/or other can provide the device of above-mentioned functions.
It is understood that the function of each functional unit of the terminal 500 of the present embodiment can be according to above method embodiment
In method implement, it implements the associated description that process is referred to above method embodiment, and here is omitted.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be CPU (Central
Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 502 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint
Directional information), microphone etc., output equipment 503 can include display (LCD etc.), loudspeaker etc..
The memory 504 can include read-only storage and random access memory, and to processor 801 provide instruction and
Data.The a part of of memory 504 can also include nonvolatile RAM.For example, memory 504 can also be deposited
Store up the information of device type.
In the specific implementation, processor 501, input equipment 502, the output equipment 503 described in the embodiment of the present invention can
Perform the realization side described in the first embodiment and second embodiment for the method that application provided in an embodiment of the present invention is shown
Formula, also can perform the implementation of the terminal described by the embodiment of the present invention, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed【System】, terminal and method, can
To realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple units or group
Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.In addition, it is shown or
The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communication connection or electricity, mechanical or other forms are connected.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
1. a kind of image processing method, it is characterised in that methods described includes:
Judge whether the brightness value of current image to be captured is less than predetermined luminance threshold value;
If the brightness value of the current image to be captured is less than predetermined luminance threshold value, the current sensitivity value of the terminal is judged
Whether default sensitivity threshold value is more than or equal to;
If the current sensitivity value of the terminal is more than or equal to default sensitivity threshold value, the current image to be captured is shot
Obtain shooting image;
Potting gum processing is carried out to the shooting image and obtains the first view data.
2. according to the method described in claim 1, it is characterised in that the size of the shooting image is M*M pixels, described to institute
State shooting image progress potting gum processing and obtain the first view data, including:
Shooting image progress piecemeal is handled and obtains the image subblock that (M/N) * (M/N) individual size is N*N pixels, the M,
N is positive integer;
The merging that the pixel value phase adduction of N*N pixel in described image sub-block is averaged as described image sub-block
Pixel value;
It is the data being made up of the merging pixel value of described image sub-block, described first image number to determine described first image data
It is (M/N) * (M/N) pixel according to size.
3. method according to claim 1 or 2, it is characterised in that described to be carried out to the shooting image at potting gum
Reason is obtained after the first view data, and methods described also includes:
Described first image data are entered with row interpolation adjustment using pre-set image interpolation algorithm, the second figure of default resolution ratio is obtained
As data.
4. method according to claim 3, it is characterised in that the utilization pre-set image interpolation algorithm is to first figure
Enter row interpolation as data to adjust, after the second view data for obtaining default resolution ratio, methods described also includes:
Second view data is encoded using pre-set image encryption algorithm, to obtain coded image.
5. method according to claim 4, it is characterised in that before the shooting current image to be captured or described
When shooting the current image to be captured, methods described also includes:
Light filling is carried out to the current image to be captured using proactive light emitting diode light compensating lamp or screen backlight, it is described to improve
The brightness value of current image to be captured.
6. a kind of terminal, it is characterised in that the terminal includes:
Judging unit, for judging whether the brightness value of current image to be captured is less than predetermined luminance threshold value;
If the brightness value that the judging unit is additionally operable to the current image to be captured is less than predetermined luminance threshold value, judge described
Whether the current sensitivity value of terminal is more than or equal to default sensitivity threshold value;
Shooting unit, if the current sensitivity value for the terminal is more than or equal to default sensitivity threshold value, shoots described
Current image to be captured obtains shooting image;
Processing unit, the first view data is obtained for carrying out potting gum processing to the shooting image.
7. terminal according to claim 6, it is characterised in that the size of the shooting image is M*M pixels, the processing
Unit includes:
Blocking unit, the figure that (M/N) * (M/N) individual size is N*N pixels is obtained for carrying out piecemeal processing to the shooting image
As sub-block, described M, N are positive integer;
Combining unit, for the pixel value phase adduction of N*N pixel in described image sub-block to be averaged as described
The merging pixel value of image subblock;
Determining unit, is the data being made up of the merging pixel value of described image sub-block for determining described first image data,
Described first image size of data is (M/N) * (M/N) pixel.
8. the terminal according to claim 6 or 7, it is characterised in that the terminal also includes adjustment unit, for described
Processing unit is obtained to shooting image progress potting gum processing after the first view data, utilizes pre-set image interpolation to calculate
Method enters row interpolation adjustment to described first image data, obtains the second view data of default resolution ratio.
9. terminal according to claim 8, it is characterised in that the terminal also includes coding unit, for being adjusted described
Whole unit is performed enters row interpolation adjustment to described first image data using pre-set image interpolation algorithm, obtains default resolution ratio
After second view data, second view data is encoded using pre-set image encryption algorithm, to obtain code pattern
Picture.
10. terminal according to claim 9, it is characterised in that the terminal also includes:
Light filling unit, for before current image to be captured described in the terminal taking or described shooting described current to be captured
During image, light filling is carried out to the current image to be captured using proactive light emitting diode light compensating lamp or screen backlight, to improve
The brightness value of the current image to be captured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710224489.4A CN107172363A (en) | 2017-04-07 | 2017-04-07 | A kind of image processing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710224489.4A CN107172363A (en) | 2017-04-07 | 2017-04-07 | A kind of image processing method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107172363A true CN107172363A (en) | 2017-09-15 |
Family
ID=59849314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710224489.4A Withdrawn CN107172363A (en) | 2017-04-07 | 2017-04-07 | A kind of image processing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107172363A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107613210A (en) * | 2017-09-30 | 2018-01-19 | 北京小米移动软件有限公司 | Method for displaying image and device, terminal, storage medium |
CN107820025A (en) * | 2017-12-13 | 2018-03-20 | 北京小米移动软件有限公司 | Take pictures the method and apparatus of processing |
CN108269243A (en) * | 2018-01-18 | 2018-07-10 | 福州鑫图光电有限公司 | The Enhancement Method and terminal of a kind of signal noise ratio (snr) of image |
CN109698904A (en) * | 2017-10-20 | 2019-04-30 | 通用汽车环球科技运作有限责任公司 | Camera imager folding |
CN111246128A (en) * | 2018-11-29 | 2020-06-05 | 北京图森智途科技有限公司 | Pixel combination method, imaging device, image sensor and automobile |
CN115118889A (en) * | 2022-06-24 | 2022-09-27 | 维沃移动通信有限公司 | Image generation method, image generation device, electronic equipment and storage medium |
CN115482143A (en) * | 2021-06-15 | 2022-12-16 | 荣耀终端有限公司 | Application image data calling method and system, electronic equipment and storage medium |
-
2017
- 2017-04-07 CN CN201710224489.4A patent/CN107172363A/en not_active Withdrawn
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107613210A (en) * | 2017-09-30 | 2018-01-19 | 北京小米移动软件有限公司 | Method for displaying image and device, terminal, storage medium |
CN109698904A (en) * | 2017-10-20 | 2019-04-30 | 通用汽车环球科技运作有限责任公司 | Camera imager folding |
CN107820025A (en) * | 2017-12-13 | 2018-03-20 | 北京小米移动软件有限公司 | Take pictures the method and apparatus of processing |
CN108269243A (en) * | 2018-01-18 | 2018-07-10 | 福州鑫图光电有限公司 | The Enhancement Method and terminal of a kind of signal noise ratio (snr) of image |
CN111246128A (en) * | 2018-11-29 | 2020-06-05 | 北京图森智途科技有限公司 | Pixel combination method, imaging device, image sensor and automobile |
CN115482143A (en) * | 2021-06-15 | 2022-12-16 | 荣耀终端有限公司 | Application image data calling method and system, electronic equipment and storage medium |
CN115482143B (en) * | 2021-06-15 | 2023-12-19 | 荣耀终端有限公司 | Image data calling method and system for application, electronic equipment and storage medium |
CN115118889A (en) * | 2022-06-24 | 2022-09-27 | 维沃移动通信有限公司 | Image generation method, image generation device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107172363A (en) | A kind of image processing method and terminal | |
CN111418201B (en) | Shooting method and equipment | |
WO2021027649A1 (en) | Dark-mode display interface processing method, electronic device, and storage medium | |
US20210227226A1 (en) | Server-side adaptive video processing | |
TWI433135B (en) | Display adjusting device and display adjusting method | |
JP7226851B2 (en) | Image processing method, apparatus and device | |
WO2021057277A1 (en) | Photographing method in dark light and electronic device | |
CN104869320A (en) | Electronic device and control method of the same | |
CN105306788B (en) | A kind of noise-reduction method and device of image of taking pictures | |
CN107799093A (en) | Adjust method, terminal and the computer-readable recording medium of screen luminance of terminal | |
EP3313059A1 (en) | Electronic device with display-based image compensation and corresponding systems and methods | |
CN107155059A (en) | A kind of image preview method and terminal | |
WO2024040981A1 (en) | Photographing method and related device therefor | |
CN108427938A (en) | Image processing method, device, storage medium and electronic equipment | |
TW200410197A (en) | Display apparatus, display control method, program and recording medium | |
CN113452969B (en) | Image processing method and device | |
WO2022140887A1 (en) | Image processing method and apparatus | |
CN115589539B (en) | Image adjustment method, device and storage medium | |
CN106875356A (en) | The method and terminal of a kind of image procossing | |
WO2022268079A1 (en) | Photographing method and device | |
WO2021249504A1 (en) | Distributed display method and related device | |
WO2021190097A1 (en) | Image processing method and device | |
CN114463191A (en) | Image processing method and electronic equipment | |
CN117201930B (en) | Photographing method and electronic equipment | |
CN116055855B (en) | Image processing method and related device |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170915 |
|
WW01 | Invention patent application withdrawn after publication |