CN106954022B - Image processing method, device and terminal - Google Patents

Image processing method, device and terminal Download PDF

Info

Publication number
CN106954022B
CN106954022B CN201710136376.9A CN201710136376A CN106954022B CN 106954022 B CN106954022 B CN 106954022B CN 201710136376 A CN201710136376 A CN 201710136376A CN 106954022 B CN106954022 B CN 106954022B
Authority
CN
China
Prior art keywords
blue sky
pixel
image
saturation degree
sensitivity
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.)
Expired - Fee Related
Application number
CN201710136376.9A
Other languages
Chinese (zh)
Other versions
CN106954022A (en
Inventor
曾元清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710136376.9A priority Critical patent/CN106954022B/en
Publication of CN106954022A publication Critical patent/CN106954022A/en
Application granted granted Critical
Publication of CN106954022B publication Critical patent/CN106954022B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The present invention provides a kind of image processing method, comprising: obtains the sensitivity under terminal current environment;Corresponding blue sky tone range is determined based on the sensitivity;The acquired image under image acquisition modality is obtained, determines the corresponding tone of pixel in the image;According to blue sky tone range tone corresponding with the pixel in the image, the saturation degree of the pixel is handled.The present invention determines out blue sky tone range by the sensitivity according to current environment, according to blue sky tone range tone corresponding with pixel, handles the saturation degree of pixel.The blue sky discrimination of image is improved, and then improves the accuracy rate of terminal image shooting.The invention further relates to a kind of image processing apparatus and terminals.

Description

Image processing method, device and terminal
Technical field
The present invention relates to field of terminal technology more particularly to a kind of image processing methods, device and terminal.
Background technique
Currently, the function of terminal is also stronger and stronger, and people can pass through whenever and wherever possible with the universal and development of terminal Terminal carries out image taking.Blue sky is deep to be liked by photographer as a kind of more special application scenarios, therefore, how Shooting optimization processing is carried out to the blue sky region of shooting, it appears particularly important.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method, device and terminal, can carry out to the blue sky region of shooting Shoot optimization processing.
The embodiment of the present invention the following technical schemes are provided:
A kind of image processing method, comprising:
Obtain the sensitivity under terminal current environment;
Corresponding blue sky tone range is determined based on the sensitivity;
The acquired image under image acquisition modality is obtained, determines the corresponding tone of pixel in described image;
According to blue sky tone range tone corresponding with the pixel in described image, to the saturation of the pixel Degree is handled.
The embodiment of the present invention also the following technical schemes are provided:
A kind of image processing apparatus, comprising:
Module is obtained, for obtaining the sensitivity under terminal current environment;
Determining module, for determining corresponding blue sky tone range based on the sensitivity;
Hue determination module is determined in described image for obtaining the acquired image under image acquisition modality The corresponding tone of pixel;
Processing module, for according to blue sky tone range tone corresponding with the pixel in described image, to institute The saturation degree for stating pixel is handled.
The embodiment of the present invention also the following technical schemes are provided:
A kind of terminal, comprising:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes provided in an embodiment of the present invention A kind of image processing method.
A kind of image processing method, device and terminal provided in this embodiment, by true according to the sensitivity of current environment Blue sky tone range is made out, according to blue sky tone range tone corresponding with pixel, the saturation degree of pixel is carried out Processing.The blue sky discrimination of image is improved, and then improves the accuracy rate of terminal image shooting.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And other beneficial effects are apparent.
Fig. 1 is the flow diagram of image processing method provided in an embodiment of the present invention.
Fig. 2 is another flow diagram of image processing method provided in an embodiment of the present invention.
Fig. 3 is that a terminal provided in an embodiment of the present invention shoots schematic diagram.
Fig. 4 is that another terminal provided in an embodiment of the present invention shoots schematic diagram.
Fig. 5 is the module diagram of image processing apparatus provided in an embodiment of the present invention.
Fig. 6 is another module diagram of image processing apparatus provided in an embodiment of the present invention.
Fig. 7 is terminal structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
Term as used herein " module " can regard the software object to execute in the arithmetic system as.It is somebody's turn to do herein not Same component, module, engine and service can be regarded as the objective for implementation in the arithmetic system.And the device and method being somebody's turn to do herein is excellent Being implemented in the form of software for choosing, can also be implemented, within that scope of the present invention on hardware certainly.
Concrete analysis explanation is carried out below.
In the present embodiment, it will be described from the angle of image processing apparatus, which can specifically collect At in terminal, such as mobile phone, tablet computer, palm PC (PDA, Personal Digital Assistant) etc..
Referring to Fig. 1, Fig. 1 is the flow diagram of image processing method provided in an embodiment of the present invention.Specifically, should Method includes:
In step s101, the sensitivity under terminal current environment is obtained.
It is understood that the sensitivity refers to ISO sensitivity, which is the sensitivity with digital representation to light Degree.ISO sensitivity is higher, indicates stronger to the susceptibility of light.Therefore, high ISO sensitivity is suitble to shoot low illumination and movement Object.
Further, it when terminal is in image acquisition modality, can be automatically adjusted according to the light intensity under current environment The ISO sensitivity of terminal, when light intensity is stronger, the value of ISO sensitivity is smaller;When light intensity is weaker, the value of ISO sensitivity It is bigger.For example, light intensity is stronger, and the value of ISO sensitivity is generally 100 or so when terminal is in outdoor.When terminal is in When indoor, light intensity weakens, and the value of ISO sensitivity can become larger, and generally nearly 500.
In one embodiment, current environment light can be acquired by the cam device in terminal, by Image Acquisition Sensor obtains current light intensity according to the current environment light, then determines the corresponding ISO sense of current light intensity Luminosity.
In step s 102, corresponding blue sky tone range is determined based on sensitivity.
It should be noted that the tone is measured with angle, value range is 0 degree to 360 degree, by counterclockwise since red Direction calculating, red are 0 degree, and green is 120 degree, and blue is 240 degree.Their complementary color is: yellow is 60 degree, cyan 180 Degree, magenta are 300 degree.Current blue sky optimization of region method only simply divides a region, if the pixel on image Tone fall into the region, then be determined as blue sky pixel, and optimize, be such as determined as an area for 190 degree to 215 degree Domain is then determined as blue sky pixel when the hue angle of the pixel on image falls into the region.
In one embodiment, when the value for determining current ISO sensitivity, which is no more than, presets photosensitive threshold value, explanation is worked as The image shot under preceding scene is likely to occur blue sky part, can obtain blue sky tone range according to preset formula.
For example, blue sky tone range can be indicated with H, blue sky tone range H ∈ [α12];
The α1=210-10 × [1- | ISO-100 | ÷ ISO];
The α 2=210+10 × [1- | ISO-100 | ÷ ISO].
Wherein, this 210 be optimized parameter, can be adjusted according to the actual situation, the ISO be ISO sensitivity value.
It can be seen from formula when terminal is in interior, ISO sensitivity is about 100 or so, blue sky tone range H Between 200 degree to 220 degree.When terminal is in outdoor, ISO sensitivity is about 500 or so, and blue sky tone range H is 208 It spends between 212 degree.When terminal is in outdoor, other similar blue sky tone chaff interferent is relatively smaller, and blue sky tone range is corresponding It is bigger, when terminal is in it is indoor when, other similar blue sky tone chaff interferent is relatively more, blue sky tone range correspond to it is smaller, To prevent from similar blue color being judged as blue sky tone.
Further, pixel of the angle of tone in the blue sky tone range is all blue sky pixel.
In step s 103, the acquired image under image acquisition modality is obtained, determines the pixel pair in image The tone answered.
Wherein, which is several lattices composition, and each lattice becomes a pixel, and terminal is by indicating this The information such as position, color, the brightness of a little pixels, to represent entire image.
Further, the image that terminal currently acquires is obtained, determines the corresponding tone of each pixel in the image Angle.
In step S104, according to blue sky tone range tone corresponding with the pixel in image, satisfy to pixel It is handled with degree.
Wherein, when the angle for the tone for having pixel in image is fallen into the blue sky tone range, then by the tone The pixel that angle falls into the blue sky tone range is confirmed as blue sky pixel.Then phase is carried out to the saturation degree of blue sky pixel The adjusting answered, to achieve the purpose that blue sky optimizes.
In one embodiment, when determining blue sky pixel, angle value of the available terminal relative to ground level, Carry out corresponding saturation degree adjusting according to the angle value, when terminal is greater than vertical angle relative to ground level angle value, then with The saturation degree of blue sky pixel is adjusted in higher saturation degree.When terminal is less than vertical angle relative to ground level angle value When, blue sky pixel is adjusted with lower saturation degree.
Wherein, when terminal is greater than vertical angle angle value relative to ground level angle value, illustrate terminal shooting angle towards sky Direction, it should reinforce the saturation degree of blue sky pixel to reinforce effect of optimization.It hangs down when terminal is less than relative to ground level angle value When right angle angle value, illustrate terminal shooting angle towards ground direction, it should with saturation degree appropriate to the saturation degree of blue sky pixel It is adjusted, forms biggish contrast with real world images to avoid the image come is shot.
It can be seen from the above, a kind of image processing method provided in this embodiment, passes through the sensitivity meter according to current environment Blue sky tone range is calculated, the pixel that tone in current acquired image is in blue sky tone range is determined as blue sky pixel Point, and saturation degree processing is carried out to blue sky pixel.The blue sky discrimination of image is improved, and then improves terminal image shooting Accuracy rate.
Citing, is described in further detail by the method according to described in above-described embodiment below.
Referring to Fig. 2, Fig. 2 is another flow diagram of image processing method provided in an embodiment of the present invention.
Specifically, this method comprises:
In step s 201, the light intensity under current environment is acquired by the image acquiring sensor in terminal.
It should be noted that the image acquiring sensor is the important component for forming camera.Not according to element Together, charge coupled cell (Charge Coupled Device, CCD) and metal oxide semiconductor device can be divided into (Complementary Metal-Oxide Semiconductor, CMOS) two major classes.It is a kind of optical imagery to be converted into electricity The equipment of subsignal.It can integrate other digital signal processing circuits on the image acquiring sensor, such as converter, automatic exposure Fader control, nonuniform compensation, white balance processing, black level control, Gamma correction etc..
Wherein, the image acquiring sensor in the terminal can be by the current environment light that cam device acquires come really Determine the light intensity under current environment.
In step S202, corresponding sensitivity is determined according to light intensity.
It is understood that the sensitivity refers to ISO sensitivity, which is the sensitivity with digital representation to light Degree.ISO sensitivity is higher, indicates stronger to the susceptibility of light.Therefore, high ISO sensitivity is suitble to shoot low illumination and movement Object.
Further, when the light intensity is stronger, illustrate that current environment is brighter, image acquiring sensor can automatically turn down ISO sensitivity illustrates that current environment is darker when the light intensity is weaker, image acquiring sensor can automatic adjustment height ISO it is photosensitive Degree.Different light intensities is corresponding with corresponding ISO sensitivity, to guarantee the image quality of image.For example, when terminal is in room When outer, light intensity is stronger, and the value of ISO sensitivity is generally 100 or so.When terminal is in interior, light intensity weakens, The value of ISO sensitivity can become larger, and generally nearly 500.So image acquiring sensor can be determined according to current light intensity Corresponding ISO sensitivity.
In step S203, whether detection sensitivity is more than to preset photosensitive threshold value.
It should be noted that when light intensity is weaker, the value of ISO sensitivity is bigger, when the value of ISO sensitivity is more than certain When threshold value, illustrate that current light intensity is too dark, user is most likely in night-time scene or closed space.
Wherein, if it is detected that sensitivity is more than to preset photosensitive threshold value, S208 is thened follow the steps;If it is detected that sensitivity does not surpass It crosses and presets photosensitive threshold value, then follow the steps S204.
In one embodiment, this, which presets photosensitive threshold value, to be the ISO sensitivity value of system setting, the ISO sensitivity Be worth it is larger, when detect current ISO sensitivity be more than this preset photosensitive threshold value when, illustrate that current light intensity is too dark, user is very It is likely to be in night-time scene or closed space.
In step S204, blue sky tone range is determined based on sensitivity.
In one embodiment, when the value for determining current ISO sensitivity, which is no more than, presets photosensitive threshold value, explanation is worked as The image shot under preceding scene is likely to occur blue sky part, can obtain blue sky tone range according to preset formula.
For example, blue sky tone range can be indicated with H, blue sky tone range H ∈ [α12];
The α1=210-10 × [1- | ISO-100 | ÷ ISO];
The α 2=210+10 × [1- | ISO-100 | ÷ ISO].
Wherein, this 210 be optimized parameter, can be adjusted according to the actual situation, the ISO be ISO sensitivity value.
It can be seen from formula when terminal is in interior, ISO sensitivity is about 100 or so, blue sky tone range H Between 200 degree to 220 degree.When terminal is in outdoor, ISO sensitivity is about 500 or so, and blue sky tone range H is 208 It spends between 212 degree.When terminal is in outdoor, other similar blue sky tone chaff interferent is relatively smaller, and blue sky tone range is corresponding It is bigger, when terminal is in it is indoor when, other similar blue sky tone chaff interferent is relatively more, blue sky tone range correspond to it is smaller, To prevent from similar blue color being judged as blue sky tone.
Further, pixel of the angle of tone in the blue sky tone range is all blue sky pixel.
In step S205, the acquired image under image acquisition modality is obtained, determines the pixel pair in image The tone answered.
Wherein, which is several lattices composition, and each lattice becomes a pixel, and terminal is by indicating this The information such as position, color, the brightness of a little pixels, to represent entire image.
Further, the image that analysing terminal currently acquires determines the corresponding tone of each pixel in the image Angle.
In step S206, obtains tone and be in the pixel in blue sky tone range.
In step S207, the pixel in blue sky tone range is determined as blue sky pixel, and to blue sky picture The saturation degree of vegetarian refreshments is handled.
Wherein, when the angle of the tone for having pixel in image is fallen into the blue sky tone range, then by the tone Angle fall into the pixel of the blue sky tone range and be confirmed as blue sky pixel.
Specifically, the saturation degree to blue sky pixel is handled, may include:
(1) angle value of the terminal relative to ground level is obtained.
Wherein, the angle value of the acquisition terminal relative to ground level may include: that the acceleration of gravity opened in terminal passes Sensor obtains angle value of the terminal relative to ground level by the gravity accelerometer.
(2) when angle value is less than predetermined angle threshold value, default first saturation degree is obtained, and according to default first saturation degree The saturation degree of blue sky pixel is adjusted.
Wherein, which is the angle value of systemic presupposition, about 90 degree of vertical angle angle value or so, for example be 85 Degree.
Further, when terminal is less than the predetermined angle threshold value relative to the angle value of ground level, illustrate that terminal is current Shooting towards being to obtain default first saturation degree to ground level direction, which is moderate numerical value, with Default first saturation degree adjusts the saturation degree of the blue sky pixel accordingly, the case where ensuring blue sky optimization processing Under, it in turn avoids shooting the image come and real world images forms biggish contrast.
(3) when angle value is more than or equal to predetermined angle threshold value, default second saturation degree is obtained, and according to default the The saturation degree of blue sky pixel is adjusted in two saturation degrees.
Wherein, when terminal is more than or equal to the predetermined angle threshold value relative to the angle value of ground level, illustrate terminal Current shooting obtains default second saturation degree towards being heavenwards direction, which is greater than default first Saturation degree is adjusted the saturation degree of the blue sky pixel with default second saturation degree accordingly, to ensure to work as terminal towards day Short side to shooting when, the available better optimization processing of blue sky pixel.
In step S208, the saturation degree processing to blue sky pixel is not executed.
Wherein, when detecting current ISO sensitivity is more than that this presets photosensitive threshold value, illustrate that current light intensity is too dark, User is most likely in night-time scene or closed space.At this point, in the scene of shooting, it is impossible to occur blue sky, not holding Row handles the saturation degree of blue sky pixel.It can present a contrast on the one hand to avoid the image come is shot with real world images. On the other hand, the treatment effeciency for saving terminal reduces the power consumption of terminal.
It takes the mobile phone as an example, image processing method is described in detail below by a concrete scene, as shown in figure 3, working as For mobile phone when taking pictures, the image acquiring sensor acquisition on mobile phone enters the light of mobile phone camera to determine that current light is strong Degree.Mobile phone can automatically adjust ISO sensitivity according to the light intensity, and light intensity is inversely proportional with ISO sensitivity, according to current After light intensity obtains corresponding ISO sensitivity, blue sky tone range is calculated according to the ISO sensitivity.The blue sky color Adjust range that can reduce with the increase of the value of ISO sensitivity, finally when the value of ISO sensitivity is more than certain threshold value, explanation Current light intensity is too dark, and user is most likely in night-time scene or closed space.It does not execute to blue sky pixel Saturation degree processing.
At this point, the range of ISO sensitivity is calculated as 200 degree to 220 degree with formula when setting ISO sensitivity as 100 degree Between.At this point, the image of mobile phone analysis current shooting, determines to form the correspondence hue angle of each pixel in the image Degree.The pixel that hue angle in image is fallen between 200 degree to 220 degree is determined as blue sky pixel.
Angle value of the mobile phone relative to ground level is obtained by the gravity accelerometer on mobile phone, as shown in figure 3, working as When the angle value of mobile phone and ground level is 50 degree, it is less than 90 degree of vertical angle angle value, that is, illustrates that current phone exists towards ground level direction It is shot, is adjusted accordingly with saturation degree of the moderate saturation degree to the blue sky pixel of above-mentioned determination.
As shown in figure 4, when getting angle of the mobile phone relative to ground level by the gravity accelerometer on mobile phone Value be 115 degree when, be greater than 90 degree of vertical angle angle value, that is, illustrate that current phone is being shot towards sky direction, at this point, with compared with Big saturation degree adjusts the saturation degree of the blue sky pixel of above-mentioned determination accordingly.
It can be seen from the above, a kind of image processing method provided in this embodiment, acquires light by image acquiring sensor Intensity determines corresponding sensitivity based on the light intensity, after determining sensitivity no more than photosensitive threshold value is preset, further according to sense Luminosity calculates blue sky tone range, and the pixel that tone in current acquired image is in blue sky tone range is determined as indigo plant Its pixel, and angle value of the terminal relative to ground level is obtained, corresponding saturation degree is obtained to blue sky pixel according to angle value Point is handled.The blue sky discrimination of image is improved, and then improves the accuracy rate of terminal image shooting.
For convenient for better implementation image processing method provided in an embodiment of the present invention, the embodiment of the present invention also provides one kind Device based on above-mentioned image processing method.Wherein the meaning of noun is identical with above-mentioned image processing method, and specific implementation is thin Section can be with reference to the explanation in embodiment of the method.
Referring to Fig. 5, Fig. 5 is the module diagram of image processing apparatus provided in an embodiment of the present invention.Specifically, should Image processing apparatus 300, comprising: obtain module 31, determining module 32, hue determination module 33 and processing module 34.
The acquisition module 31, for obtaining the sensitivity under terminal current environment.
In one embodiment, current environment light can be acquired by the camera module in terminal, by Image Acquisition Sensor obtains current light intensity according to the current environment light.Further according to preset relation table, current light is determined The corresponding ISO sensitivity of intensity.
The determining module 32, for determining blue sky tone range based on the sensitivity.
The hue determination module 33 is determined in the image for obtaining acquired image under the image acquisition modality The corresponding tone of pixel.
Wherein, the image in the hue determination module 33 is several lattices composition, and each lattice becomes a picture Vegetarian refreshments, terminal passes through the information such as position, color, the brightness for indicating these pixels, to represent entire image.
Further, the image currently acquired by 33 analysing terminal of hue determination module, is determined in the image The corresponding hue angle of each pixel.
The processing module 34, for according to blue sky tone range tone corresponding with the pixel in the image, to this The saturation degree of pixel is handled.
In one embodiment, which can have the angle of the tone of pixel to fall into the blue sky in image When in tone range, then the pixel that the angle of the tone falls into the blue sky tone range is confirmed as by module 34 through this process Blue sky pixel.Then corresponding saturation degree adjusting is carried out to blue sky pixel, to achieve the purpose that blue sky optimizes.
Fig. 6 can be referred to together, and Fig. 6 is another module diagram of image processing apparatus provided in an embodiment of the present invention, should Image processing apparatus 300 can also include:
Wherein, which can also include acquisition submodule 311 and determining submodule 312.
Specifically, the acquisition submodule 311, for being acquired under current environment by the image acquiring sensor in terminal Light intensity.The determination submodule 312, for determining corresponding sensitivity according to the light intensity.
Wherein, which can also include acquisition submodule 341 and processing submodule 342.
Specifically, the acquisition submodule 341, the pixel being in the blue sky tone range for obtaining the tone. Submodule 342 is handled, for the pixel that should be in the blue sky tone range to be determined as blue sky pixel, and to the blue sky The saturation degree of pixel is handled.
In one embodiment, handling the saturation degree of the blue sky pixel in the processing submodule 342, can be with Pass through: obtaining angle value of the terminal relative to ground level.When the angle value is less than predetermined angle threshold value, default first is obtained Saturation degree, and the first saturation degree is preset according to this, saturation degree of blue sky pixel is adjusted.Be greater than when the angle value or When equal to predetermined angle threshold value, default second saturation degree is obtained, and the second saturation degree is preset according to this and is satisfied to blue sky pixel It is adjusted with degree, which is greater than first saturation degree.
In one embodiment, the angle value for obtaining terminal relative to ground level can be added by opening the gravity in terminal Velocity sensor obtains.
Wherein, when determining that angle value of the terminal relative to ground level is less than the predetermined angle threshold value, illustrate that terminal is worked as Towards being to obtain default first saturation degree to ground level direction, which is moderate numerical value for preceding shooting, The blue sky pixel is adjusted accordingly with default first saturation degree, in the case where ensuring blue sky optimization processing, again It avoids the image for shooting and forms biggish contrast with real world images.When determining when angle of the terminal relative to ground level When value is more than or equal to the predetermined angle threshold value, illustrate that the current shooting of terminal towards being heavenwards direction, obtains default Second saturation degree, which is greater than default first saturation degree, with default second saturation degree to the blue sky pixel It is adjusted accordingly, to ensure when terminal is shot towards sky direction, the available better optimization processing of blue sky pixel.
Detection module 35, for detecting whether the sensitivity is more than to preset photosensitive threshold value.
In one embodiment, this, which presets photosensitive threshold value, to be the ISO sensitivity value of system setting, the ISO sensitivity Be worth it is larger, when detect current ISO sensitivity be more than this preset photosensitive threshold value when, illustrate that current light intensity is too dark, user is very It is likely to be in night-time scene or closed space.The saturation degree processing to blue sky pixel can not be executed.
It can be seen from the above, a kind of image processing apparatus provided in this embodiment, acquires light by image acquiring sensor Intensity determines corresponding sensitivity based on the light intensity, after determining sensitivity no more than photosensitive threshold value is preset, further according to this Sensitivity calculates blue sky tone range, and the pixel that tone in current acquired image is in blue sky tone range is determined as Blue sky pixel, and angle value of the terminal relative to ground level is obtained, corresponding saturation degree is obtained to blue sky picture according to angle value Vegetarian refreshments is handled.The blue sky discrimination of image is improved, and then improves the accuracy rate of terminal image shooting.
The embodiment of the present invention also provides a kind of terminal, as shown in fig. 7, the terminal 400 may include have one or one with The memory 401 of upper computer readable storage medium, sensor 402, input unit 403, display unit 404, power supply 405 and Include one or more than one the equal components of processor 406 of processing core.It will be understood by those skilled in the art that in Fig. 7 The restriction of the terminal structure shown not structure paired terminal may include or combining certain than illustrating more or fewer components A little components or different component layouts.
Memory 401 can be used for storing application program and data.It include that can hold in the application program that memory 401 stores Line code.Application program can form various functional modules.Processor 406 is stored in the application journey of memory 401 by operation Sequence, thereby executing various function application and data processing.In addition, memory 401 may include high-speed random access memory, It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are deposited Memory device.Correspondingly, memory 401 can also include Memory Controller, right to provide processor 406 and input unit 403 The access of memory 401.
Terminal may also include at least one sensor 402, such as optical sensor, gravity accelerometer and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel, and proximity sensor can close display panel when terminal is moved in one's ear And/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as terminal The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Input unit 403 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Specifically Ground, in a specific embodiment, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, collect user on it or nearby touch operation (such as user using finger, touching The operations of any suitable object or attachment on touch sensitive surface or near touch sensitive surface such as pen), and according to preset Formula drives corresponding attachment device.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processing Device 406, and order that processor 406 is sent can be received and executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray And the multiple types such as surface acoustic wave realize touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other inputs Equipment.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volume control button, switch Key etc.), fingerprint recognition mould group, trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 404 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.Display Unit 404 may include display panel.Optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to Device 406 is followed by subsequent processing device 406 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although touch sensitive surface and display panel are to realize input and input as two independent components in Fig. 7 Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Mobile terminal further includes the power supply 405 (such as battery) powered to all parts.Preferably, power supply can pass through electricity Management system and processor 406 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 405 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Processor 406 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the application program being stored in memory 401, and call the data being stored in memory 401, execute The various functions and processing data of terminal, to carry out integral monitoring to terminal.Optionally, processor 406 may include one or Multiple processing cores;Preferably, processor 406 can integrate application processor and modem processor, wherein application processor Main processing operation system, user interface and application program etc..
Although being not shown in Fig. 7, terminal can also include camera, bluetooth module, network module etc., no longer go to live in the household of one's in-laws on getting married herein It states.
Specifically in the present embodiment, the processor 406 in terminal can be according to following instruction, will be one or more The corresponding executable code of the process of application program is loaded into memory 401, and is run by processor 406 and be stored in storage Application program in device 401, to realize various functions:
The sensitivity under terminal current environment is obtained by processor 406.
The sensitivity, which is based on, by processor 406 determines blue sky tone range.
The acquired image under image acquisition modality is obtained by processor 406, determines the pixel in the image Corresponding tone.
By processor 406 according to blue sky tone range tone corresponding with the pixel in the image, to the pixel The saturation degree of point is handled.
Processor 406 is being executed according to blue sky tone range tone corresponding with the pixel in the image, to the picture It may include: the pixel for obtaining the tone and being in the blue sky tone range when saturation degree of vegetarian refreshments is handled;At this It is determined as blue sky pixel in the pixel in the blue sky tone range, and the saturation degree of the blue sky pixel is handled.
Processor 406 may include: to obtain the terminal phase when execution handles the saturation degree of the blue sky pixel For the angle value of ground level;When the angle value is less than predetermined angle threshold value, default first saturation degree is obtained, and pre- according to this If the saturation degree of blue sky pixel is adjusted in the first saturation degree;When the angle value is more than or equal to predetermined angle threshold value When, default second saturation degree is obtained, and the second saturation degree is preset according to this, saturation degree of blue sky pixel is adjusted, this is pre- If the second saturation degree is greater than default first saturation degree.
Processor 406 can also include: to detect the sense before execution calculates blue sky tone range based on the sensitivity Whether luminosity is more than to preset photosensitive threshold value;When detecting the sensitivity no more than photosensitive threshold value is preset, triggering, which executes, to be based on being somebody's turn to do Sensitivity determines the step of corresponding blue sky tone range.
Processor 406 may include: by the figure in terminal when executing the sensitivity under the acquisition terminal current environment As the light intensity under acquisition sensor acquisition current environment;Corresponding sensitivity is determined according to the light intensity.
Since the terminal can execute any image processing method provided by inventive embodiments, it is thereby achieved that Beneficial effect achieved by any image processing method provided by inventive embodiments is detailed in the embodiment of front, herein It repeats no more.
When it is implemented, above each unit 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, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to image processing method, details are not described herein again.
Image processing method, device and terminal provided in an embodiment of the present invention are for example mobile phone, tablet computer, palm electricity Brain (PDA, Personal Digital Assistant) etc., the terminal, image processing apparatus and image processing method belong to Same design can run either offer method in the image processing method embodiment, tool on the image processing apparatus Body realizes that process is detailed in the image processing method embodiment, and details are not described herein again.
It should be noted that this field common test personnel are understood that reality for the image processing method of the invention The all or part of the process of existing image processing method of the embodiment of the present invention, be can be controlled by computer program it is relevant hard Part is completed, which can be stored in a computer-readable storage medium, is such as stored in the memory of terminal, And executed by least one processor in the terminal, it in the process of implementation may include such as the embodiment of the image processing method Process.Wherein, which can be magnetic disk, CD, read-only memory (ROM, Read Only Memory), arbitrary access note Recall body (RAM, Random Access Memory) etc..
For the image processing apparatus of the embodiment of the present invention, each functional module be can integrate in a processing chip In, it is also possible to modules and physically exists alone, can also be integrated in two or more modules in a module.It is above-mentioned Integrated module both can take the form of hardware realization, can also be realized in the form of software function module.This is integrated If module is realized and when sold or used as an independent product in the form of software function module, also can store at one In computer-readable storage medium, which is for example read-only memory, disk or CD etc..
A kind of image processing method, device and terminal is provided for the embodiments of the invention above to be described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, is to sum up somebody's turn to do, and the content of the present specification should not be construed as to this The limitation of invention.

Claims (11)

1. a kind of image processing method characterized by comprising
Obtain the sensitivity under terminal current environment;
Determine that corresponding blue sky tone range, the blue sky tone range are indicated with H based on the sensitivity, the blue sky color It adjusts range H ∈ [α 1, α 2], α 1=210-10 × [1- | ISO-100 | ÷ ISO], α 2=210+10 × [1- | ISO-100 | ÷ ISO], wherein ISO is the value of the sensitivity;
The acquired image under image acquisition modality is obtained, determines the corresponding tone of pixel in described image;
According to blue sky tone range tone corresponding with the pixel in described image, to the saturation degree of the pixel into Row processing.
2. image processing method as described in claim 1, which is characterized in that it is described according to the blue sky tone range with it is described The corresponding tone of pixel in image, handles the saturation degree of the pixel, comprising:
Obtain the pixel that the tone is in the blue sky tone range;
The pixel in the blue sky tone range is determined as blue sky pixel, and to the blue sky pixel Saturation degree is handled.
3. image processing method as claimed in claim 2, which is characterized in that the saturation degree to the blue sky pixel into Row processing, comprising:
Obtain angle value of the terminal relative to ground level;
When the angle value is less than predetermined angle threshold value, default first saturation degree is obtained, and according to default first saturation The saturation degree of blue sky pixel is adjusted in degree;
When the angle value is more than or equal to predetermined angle threshold value, default second saturation degree is obtained, and according to described default The saturation degree of blue sky pixel is adjusted in second saturation degree, and default second saturation degree is greater than default first saturation Degree.
4. image processing method as described in claim 1, which is characterized in that described to determine blue sky color based on the sensitivity Before tune range, further includes:
Detect whether the sensitivity is more than to preset photosensitive threshold value;
When detecting the sensitivity no more than photosensitive threshold value is preset, triggering is executed to be determined accordingly based on the sensitivity The step of blue sky tone range.
5. image processing method according to any one of claims 1 to 4, which is characterized in that the acquisition terminal works as front ring Sensitivity under border, comprising:
The light intensity under current environment is acquired by the image acquiring sensor in terminal;
Corresponding sensitivity is determined according to the light intensity.
6. a kind of image processing apparatus characterized by comprising
Module is obtained, for obtaining the sensitivity under terminal current environment;
Determining module, for determining corresponding blue sky tone range, the blue sky tone range H table based on the sensitivity Show, the blue sky tone range H ∈ [α 1, α 2], α 1=210-10 × [1- | ISO-100 | ÷ ISO], α 2=210+10 × [1- | ISO-100 | ÷ ISO], wherein ISO is the value of the sensitivity;
Hue determination module determines the pixel in described image for obtaining the acquired image under image acquisition modality The corresponding tone of point;
Processing module, for according to blue sky tone range tone corresponding with the pixel in described image, to the picture The saturation degree of vegetarian refreshments is handled.
7. image processing apparatus as claimed in claim 6, which is characterized in that the processing module, comprising:
Acquisition submodule, the pixel being in the blue sky tone range for obtaining the tone;
Submodule is handled, for the pixel in the blue sky tone range to be determined as blue sky pixel, and it is right The saturation degree of the blue sky pixel is handled.
8. image processing apparatus as claimed in claim 7, which is characterized in that the processing submodule is used for:
Obtain angle value of the terminal relative to ground level;
When the angle value is less than predetermined angle threshold value, default first saturation degree is obtained, and according to default first saturation The saturation degree of blue sky pixel is adjusted in degree;
When the angle value is more than or equal to predetermined angle threshold value, default second saturation degree is obtained, and according to described default The saturation degree of blue sky pixel is adjusted in second saturation degree, and default second saturation degree is greater than default first saturation Degree.
9. image processing apparatus as claimed in claim 6, which is characterized in that described device further include:
Detection module, for detecting whether the sensitivity is more than to preset photosensitive threshold value.
10. the image processing apparatus as described in any one of claim 6 to 9, which is characterized in that the acquisition module, comprising:
Submodule is acquired, for acquiring the light intensity under current environment by the image acquiring sensor in terminal;
Submodule is determined, for determining corresponding sensitivity according to the light intensity.
11. a kind of terminal characterized by comprising
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes such as claim 1 to right It is required that 5 described in any item image processing methods.
CN201710136376.9A 2017-03-08 2017-03-08 Image processing method, device and terminal Expired - Fee Related CN106954022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710136376.9A CN106954022B (en) 2017-03-08 2017-03-08 Image processing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710136376.9A CN106954022B (en) 2017-03-08 2017-03-08 Image processing method, device and terminal

Publications (2)

Publication Number Publication Date
CN106954022A CN106954022A (en) 2017-07-14
CN106954022B true CN106954022B (en) 2019-10-25

Family

ID=59466816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710136376.9A Expired - Fee Related CN106954022B (en) 2017-03-08 2017-03-08 Image processing method, device and terminal

Country Status (1)

Country Link
CN (1) CN106954022B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107705247B (en) * 2017-10-31 2021-06-15 努比亚技术有限公司 Image saturation adjusting method, terminal and storage medium
CN107820015A (en) * 2017-11-28 2018-03-20 上海摩软通讯技术有限公司 The filming control method and system of mobile terminal
CN109712126B (en) * 2018-12-21 2020-11-06 深圳市华星光电半导体显示技术有限公司 Picture identification method and device
CN110519525A (en) * 2019-09-02 2019-11-29 深圳岚锋创视网络科技有限公司 A kind of control system, method and the camera of the adaptive indicator light of camera

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6504951B1 (en) * 1999-11-29 2003-01-07 Eastman Kodak Company Method for detecting sky in images
CN101641718A (en) * 2007-03-12 2010-02-03 索尼株式会社 Image processing device, image processing method, and image processing system
CN102326393A (en) * 2009-02-20 2012-01-18 株式会社理光 Image processing apparatus, image pickup apparatus, image processing method, and computer program
CN104200445A (en) * 2014-09-26 2014-12-10 常熟理工学院 Image defogging method with optimal contrast ratio and minimal information loss
CN105005966A (en) * 2015-01-16 2015-10-28 西安电子科技大学 Haze-removing algorithm of single image based on physical properties of yellow haze

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7336819B2 (en) * 2003-12-29 2008-02-26 Eastman Kodak Company Detection of sky in digital color images

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6504951B1 (en) * 1999-11-29 2003-01-07 Eastman Kodak Company Method for detecting sky in images
CN101641718A (en) * 2007-03-12 2010-02-03 索尼株式会社 Image processing device, image processing method, and image processing system
CN102326393A (en) * 2009-02-20 2012-01-18 株式会社理光 Image processing apparatus, image pickup apparatus, image processing method, and computer program
CN104200445A (en) * 2014-09-26 2014-12-10 常熟理工学院 Image defogging method with optimal contrast ratio and minimal information loss
CN105005966A (en) * 2015-01-16 2015-10-28 西安电子科技大学 Haze-removing algorithm of single image based on physical properties of yellow haze

Also Published As

Publication number Publication date
CN106954022A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN104488258B (en) Method and apparatus for double camera shutter
TWI620441B (en) Machine learning of real-time image capture parameters
US10510136B2 (en) Image blurring method, electronic device and computer device
CN106954022B (en) Image processing method, device and terminal
CN106060419B (en) A kind of photographic method and mobile terminal
US20230245441A9 (en) Image detection method and apparatus, and electronic device
US20150264278A1 (en) System and Method for Estimating an Ambient Light Condition Using an Image Sensor and Field-of-View Compensation
CN108021161A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
CN107851422A (en) Display control method in electronic equipment and electronic equipment
JP6105953B2 (en) Electronic device, line-of-sight input program, and line-of-sight input method
US8928626B2 (en) Optical navigation system with object detection
CN108881875B (en) Image white balance processing method and device, storage medium and terminal
WO2019024644A1 (en) Proximity detection method and apparatus, storage medium, and electronic device
CN110519485A (en) Image processing method, device, storage medium and electronic equipment
CN110458826B (en) Ambient brightness detection method and device
CN110839128B (en) Photographing behavior detection method and device and storage medium
CN110442521B (en) Control unit detection method and device
US20240036657A1 (en) Ambient light sensing device and method, and interactive device using same
CN107330859A (en) A kind of image processing method, device, storage medium and terminal
CN109151348A (en) A kind of imaging sensor, image processing method and electronic equipment
US20220329729A1 (en) Photographing method, storage medium and electronic device
CN110213484A (en) A kind of photographic method, terminal device and computer readable storage medium
CN109120864B (en) Light supplement processing method and device, storage medium and mobile terminal
CN108259771A (en) Image processing method, device, storage medium and electronic equipment
CN109040729B (en) Image white balance correction method and device, storage medium and terminal

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

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191025

CF01 Termination of patent right due to non-payment of annual fee