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

Image processing method, device and terminal Download PDF

Info

Publication number
CN106954022A
CN106954022A CN201710136376.9A CN201710136376A CN106954022A CN 106954022 A CN106954022 A CN 106954022A CN 201710136376 A CN201710136376 A CN 201710136376A CN 106954022 A CN106954022 A CN 106954022A
Authority
CN
China
Prior art keywords
pixel
blue sky
saturation degree
image
terminal
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.)
Granted
Application number
CN201710136376.9A
Other languages
Chinese (zh)
Other versions
CN106954022B (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

Abstract

The present invention provides a kind of image processing method, including:Obtain the sensitivity under terminal current environment;Corresponding blue sky tone range is determined based on the sensitivity;The image collected under image acquisition modality is obtained, the corresponding tone of pixel in the image is determined;According to blue sky tone range tone corresponding with the pixel in the image, the saturation degree to the pixel is handled.The present invention according to the sensitivity of current environment by determining out blue sky tone range, and according to blue sky tone range tone corresponding with pixel, the saturation degree to pixel is handled.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 terminal.

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 method, device and terminal.
Background technology
At present, with the popularization and development of terminal, the function of terminal is also stronger and stronger, and people can pass through whenever and wherever possible Terminal carries out image taking.Blue sky is deep to be liked by photographer as a kind of special application scenarios of comparison, therefore how Shooting optimization processing is carried out to the blue sky region of shooting, it appears particularly important.
The content of the invention
The embodiment of the present invention provides a kind of image processing method, device and terminal, and the blue sky region of shooting can be carried out Shoot optimization processing.
The embodiment of the present invention provides following technical scheme:
A kind of image processing method, including:
Obtain the sensitivity under terminal current environment;
Corresponding blue sky tone range is determined based on the sensitivity;
The image collected under image acquisition modality is obtained, the corresponding tone of pixel in described image is determined;
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 provides following technical scheme:
A kind of image processing apparatus, including:
Acquisition module, for obtaining the sensitivity under terminal current environment;
Determining module, for determining corresponding blue sky tone range based on the sensitivity;
Hue determination module, for obtaining the image collected under image acquisition modality, is determined in described image 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 provides following technical scheme:
A kind of terminal, including:
Be 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, performs provided in an embodiment of the present invention A kind of image processing method.
A kind of image processing method, device and terminal that the present embodiment is provided, it is true by the sensitivity according to current environment Blue sky tone range is made out, according to blue sky tone range tone corresponding with pixel, the saturation degree to pixel is carried out Processing.The blue sky discrimination of image is improved, and then improves the accuracy rate of terminal image shooting.
Brief description of the drawings
Below in conjunction with the accompanying drawings, it is described in detail by the embodiment to the present invention, technical scheme will be made And other beneficial effects are apparent.
Fig. 1 is the schematic flow sheet of image processing method provided in an embodiment of the present invention.
Fig. 2 is another schematic flow sheet of image processing method provided in an embodiment of the present invention.
Fig. 3 is terminal taking schematic diagram provided in an embodiment of the present invention.
Fig. 4 is another terminal taking schematic diagram provided in an embodiment of the present invention.
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.
Embodiment
It refer to schema, wherein identical element numbers represent identical component, principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it 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 be performed 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 way of software for choosing, can also be implemented on hardware, within the scope of the present invention certainly.
Concrete analysis explanation is carried out below.
In the present embodiment, it will be described from the angle of image processing apparatus, the image processing apparatus can specifically collect Into in terminal, such as mobile phone, panel computer, palm PC (PDA, Personal Digital Assistant) etc..
Referring to Fig. 1, Fig. 1 is the schematic flow sheet 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, the ISO sensitivity is that the sensitivity to light is represented with numeral Degree.ISO sensitivity is higher, represents stronger to the susceptibility of light.Therefore, high ISO sensitivity is adapted to shoot low illumination and motion Object.
Further, when terminal is in image acquisition modality, it 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.Such as, when terminal is in outdoor, light intensity is stronger, and the value of ISO sensitivity is generally 100 or so.When terminal is in When indoor, light intensity weakens, and the value of ISO sensitivity can become big, and typically nearly 500.
In one embodiment, current environment light can be gathered by the cam device in terminal, by IMAQ Sensor draws current light intensity according to ambient light before deserving, then determines that the corresponding ISO of current light intensity feels 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, span is 0 degree to 360 degree, by counterclockwise since red Direction calculating, red is 0 degree, and green is 120 degree, and blueness is 240 degree.Their complementary color is:Yellow is 60 degree, and cyan is 180 Degree, magenta is 300 degree.Current blue sky optimization of region method is one region of simple division, if the pixel on image Tone fall into the region, then be determined as blue sky pixel, and optimize, be such as defined as an area by 190 degree to 215 degree Domain, when the hue angle of the pixel on image falls into the region, is then determined as blue sky pixel.
In one embodiment, when the value for determining current ISO sensitivity, which is no more than, presets photosensitive threshold value, illustrate to work as The image shot under preceding scene is likely to occur blue sky part, can draw blue sky tone range according to default formula.
Such as, blue sky tone range can be represented 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 actual conditions, 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 Spend between 212 degree.When terminal is in outdoor, other similar blue sky tone chaff interferences are relatively few, blue sky tone range correspondence Than larger, when terminal is in it is indoor when, other similar blue sky tone chaff interferences are relatively more, and blue sky tone range is correspondingly 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 image collected under image acquisition modality is obtained, the pixel pair in image is determined The tone answered.
Wherein, the image constitutes for several lattices, and each lattice turns into a pixel, and terminal is by representing this The information such as position, color, the brightness of a little pixels, so as to represent entire image.
Further, the image that terminal is currently gathered 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, pixel is satisfied 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 confirms as blue sky pixel.Then the saturation degree to blue sky pixel carries out phase The regulation answered, to reach the purpose of blue sky optimization.
In one embodiment, when determining blue sky pixel, angle value of the terminal relative to ground level can be obtained, Corresponding saturation degree regulation is carried out according to the angle value, when terminal is more than vertical angle relative to ground level angle value, then with The saturation degree of blue sky pixel is adjusted higher saturation degree.When terminal relative to ground level angle value less than vertical angle When, blue sky pixel is adjusted with lower saturation degree.
Wherein, when terminal is more than vertical angle angle value relative to ground level angle value, illustrate terminal taking angle towards sky Direction, it should strengthen the saturation degree of blue sky pixel to strengthen effect of optimization.Hung down when terminal is less than relative to ground level angle value During right angle angle value, illustrate terminal taking angle towards ground direction, it should with saturation degree of the appropriate saturation degree to blue sky pixel It is adjusted, larger contrast is formed with real world images to avoid shooting the image come.
From the foregoing, a kind of image processing method that the present embodiment is provided, 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 defined 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 by above-described embodiment below.
Referring to Fig. 2, Fig. 2 is another schematic flow sheet of image processing method provided in an embodiment of the present invention.
Specifically, this method includes:
In step s 201, the light intensity under current environment is gathered by the image acquiring sensor in terminal.
It should be noted that the image acquiring sensor is the important component for constituting camera.According to element not 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 that optical imagery is converted into electricity by one kind The equipment of subsignal.Can be with other integrated digital signal processing circuits, such as converter, automatic exposure on the image acquiring sensor Fader control, nonuniform compensation, white balance processing, black level control, Gamma correction etc..
Wherein, the current environment light that the image acquiring sensor in the terminal can be gathered by cam device is 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, the ISO sensitivity is that the sensitivity to light is represented with numeral Degree.ISO sensitivity is higher, represents stronger to the susceptibility of light.Therefore, high ISO sensitivity is adapted to shoot low illumination and motion Object.
Further, when the light intensity is stronger, illustrate that current environment is brighter, image acquiring sensor can be automatically turned down ISO sensitivity, when the light intensity is weaker, illustrates that current environment is darker, and image acquiring sensor meeting automatic adjustment height ISO is photosensitive Degree.Different light intensities is to that should have corresponding ISO sensitivity, to ensure the image quality of image.Such as, 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 big, and typically nearly 500.So image acquiring sensor can be determined according to current light intensity Corresponding ISO sensitivity.
In step S203, whether detection sensitivity, which exceedes, is 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 exceedes necessarily During threshold value, illustrate that current light intensity is too dark, user is most likely in the space of night-time scene or closing.
Wherein, if detecting that sensitivity exceedes presets photosensitive threshold value, step S208 is performed;If detecting, sensitivity does not surpass Cross and preset photosensitive threshold value, then perform step S204.
In one embodiment, this presets the ISO sensitivity values that photosensitive threshold value can be set for system, the ISO sensitivity Value is larger, when detecting that current ISO sensitivity exceedes the default photosensitive threshold value, illustrates that current light intensity is too dark, user is very In the space for being likely to be at night-time scene or closing.
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, illustrate to work as The image shot under preceding scene is likely to occur blue sky part, can draw blue sky tone range according to default formula.
Such as, blue sky tone range can be represented 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 actual conditions, 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 Spend between 212 degree.When terminal is in outdoor, other similar blue sky tone chaff interferences are relatively few, blue sky tone range correspondence Than larger, when terminal is in it is indoor when, other similar blue sky tone chaff interferences are relatively more, and blue sky tone range is correspondingly 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 image collected under image acquisition modality is obtained, the pixel pair in image is determined The tone answered.
Wherein, the image constitutes for several lattices, and each lattice turns into a pixel, and terminal is by representing this The information such as position, color, the brightness of a little pixels, so as to represent entire image.
Further, the image that analysing terminal is currently gathered, determines the corresponding tone of each pixel in the image Angle.
In step S206, the pixel that tone is in blue sky tone range is obtained.
In step S207, the pixel in blue sky tone range is defined 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 confirm as blue sky pixel.
Specifically, the saturation degree of this pair of blue sky pixel is handled, and can be included:
(1) angle value of the terminal relative to ground level is obtained.
Wherein, the acquisition terminal can include relative to the angle value of ground level:The acceleration of gravity opened in terminal is passed Sensor, angle value of the terminal relative to ground level is obtained 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 Saturation degree to blue sky pixel is adjusted.
Wherein, the predetermined angle threshold value is the angle value of systemic presupposition, about 90 degree or so of vertical angle angle value, such as is 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 ground level direction, to obtain default first saturation degree, default first saturation degree is moderate numerical value, with Default first saturation degree is adjusted accordingly to the saturation degree of the blue sky pixel, ensure that the situation of blue sky optimization processing Under, it turn avoid the image for shooting and form larger contrast with real world images.
(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 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, terminal is illustrated Current shooting obtains default second saturation degree towards being heavenwards direction, and default second saturation degree is more than default first Saturation degree, is adjusted accordingly with default second saturation degree to the saturation degree of the blue sky pixel, to ensure to work as terminal towards day Short side is to when shooting, and blue sky pixel can obtain more preferable optimization processing.
In step S208, the saturation degree processing to blue sky pixel is not performed.
Wherein, when detecting that current ISO sensitivity exceedes the default photosensitive threshold value, illustrate that current light intensity is too dark, User is most likely in the space of night-time scene or closing.Now, in the scene of shooting, it is impossible to occur blue sky, not holding Row is handled the saturation degree of blue sky pixel.The image shot can be avoided to be presented a contrast with real world images on the one hand. On the other hand, the treatment effeciency of terminal is saved, the power consumption of terminal is reduced.
Below by taking mobile phone as an example, image processing method is described in detail by a concrete scene, as shown in figure 3, working as Mobile phone is when taking pictures, and the light that the image acquiring sensor collection on mobile phone enters mobile phone camera is strong to determine current light 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 Light intensity is obtained after corresponding ISO sensitivity, and blue sky tone range is calculated according to the ISO sensitivity.The blue sky color Adjusting scope can be reduced with the increase of the value of ISO sensitivity, finally when the value of ISO sensitivity exceedes certain threshold value, explanation Current light intensity is too dark, and user is most likely in the space of night-time scene or closing.Do not perform to blue sky pixel Saturation degree processing.
Now, if ISO sensitivity is 100 degree, the scope of ISO sensitivity is calculated as 200 degree to 220 degree using formula Between.Now, mobile phone analyzes the image of current shooting, determines the corresponding hue angle for constituting each pixel in the image Degree.The pixel that hue angle in image is fallen between 200 degree to 220 degree is defined 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, less than 90 degree of vertical angle angle value, that is, illustrate that current phone exists towards ground level direction Shot, the saturation degree of the blue sky pixel of above-mentioned determination is adjusted accordingly with moderate saturation degree.
Angle of the mobile phone relative to ground level is got by the Gravity accelerometer on mobile phone as shown in figure 4, working as Be worth for 115 degree when, more than 90 degree of vertical angle angle value, that is, illustrate that current phone is being shot towards sky direction, now, with compared with Big saturation degree is adjusted accordingly to the saturation degree of the blue sky pixel of above-mentioned determination.
From the foregoing, a kind of image processing method that the present embodiment is provided, light is gathered by image acquiring sensor Intensity, corresponding sensitivity is determined based on the light intensity, when it is determined that sensitivity is no more than after presetting photosensitive threshold value, 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 defined 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 ease of preferably implementing 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 implication of noun is identical with above-mentioned image processing method, implements thin Section may be referred 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, including:Acquisition 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 gathered by the camera module in terminal, by IMAQ Sensor according to deserve before ambient light draw current light intensity.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, for obtaining the image collected under the image acquisition modality, is determined in the image The corresponding tone of pixel.
Wherein, the image in the hue determination module 33 constitutes for several lattices, and each lattice turns into a picture Vegetarian refreshments, the information such as position, color, brightness of the terminal by representing these pixels, so as to represent entire image.
Further, the image currently gathered by the analysing terminal of hue determination module 33, 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, the angle that the processing module 34 can work as the tone for having pixel in image falls into the blue sky When in tone range, then the pixel that the angle of the tone falls into the blue sky tone range is confirmed as by the processing module 34 Blue sky pixel.Then corresponding saturation degree regulation is carried out to blue sky pixel, to reach the purpose of blue sky optimization.
Fig. 6 can be referred in the lump, 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, the acquisition module 31 can also include collection submodule 311 and determination sub-module 312.
Specifically, collection submodule 311, for being gathered by the image acquiring sensor in terminal under current environment Light intensity.The determination sub-module 312, for determining corresponding sensitivity according to the light intensity.
Wherein, the processing module 34 can also include acquisition submodule 341 and processing submodule 342.
Specifically, acquisition submodule 341, for obtaining the pixel that the tone is in the blue sky tone range. Submodule 342 is handled, for the pixel being in the blue sky tone range to be defined as into blue sky pixel, and to the blue sky The saturation degree of pixel is handled.
In one embodiment, the saturation degree to the blue sky pixel in the processing submodule 342 is handled, can be with Pass through:Obtain 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 saturation degree of blue sky pixel is adjusted according to default first saturation degree.Be more than when the angle value or During equal to predetermined angle threshold value, default second saturation degree is obtained, and blue sky pixel is satisfied according to default second saturation degree It is adjusted with degree, default second saturation degree is more than first saturation degree.
In one embodiment, obtaining terminal can be added relative to the angle value of ground level by the gravity opened in terminal Velocity sensor is obtained.
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 Preceding shooting is towards being, to ground level direction, to obtain default first saturation degree, and default first saturation degree is moderate numerical value, The blue sky pixel is adjusted accordingly with default first saturation degree, in the case where ensure that blue sky optimization processing, again Avoid the image for shooting and form larger contrast with real world images.Work as angle of the terminal relative to ground level when determining When value is more than or equal to the predetermined angle threshold value, illustrate that the shooting of terminal currently, towards being heavenwards direction, obtains default Second saturation degree, default second saturation degree is more than default first saturation degree, with default second saturation degree to the blue sky pixel Adjusted accordingly, to ensure that blue sky pixel can obtain more preferable optimization processing when terminal is shot towards sky direction.
Detection module 35, photosensitive threshold value is preset for detecting whether the sensitivity exceedes.
In one embodiment, this presets the ISO sensitivity values that photosensitive threshold value can be set for system, the ISO sensitivity Value is larger, when detecting that current ISO sensitivity exceedes the default photosensitive threshold value, illustrates that current light intensity is too dark, user is very In the space for being likely to be at night-time scene or closing.The saturation degree processing to blue sky pixel can not be performed.
From the foregoing, a kind of image processing apparatus that the present embodiment is provided, light is gathered by image acquiring sensor Intensity, corresponding sensitivity is determined based on the light intensity, when it is determined that sensitivity is no more than after presetting photosensitive threshold value, 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 defined 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 can include one or one with The memory 401 of upper computer-readable recording medium, sensor 402, input block 403, display unit 404, power supply 405 and Include one or the grade part of processor 406 of more than one 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, can include than illustrating more or less parts, or combine certain A little parts, or different part arrangements.
Memory 401 can be used for storage application program and data.Include and can hold in the application program that memory 401 is stored Line code.Application program can constitute various functions module.Processor 406 is stored in the application journey of memory 401 by operation Sequence, so as to perform various function application and data processing.In addition, memory 401 can include high-speed random access memory, Nonvolatile memory can also be included, for example, at least one disk memory, flush memory device or other volatile solid-states are deposited Memory device.Correspondingly, memory 401 can also include Memory Controller, to provide 403 pairs of processor 406 and input block 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 transducer, wherein, ambient light sensor can be according to ring The light and shade of environmental light adjusts the brightness of display panel, and proximity transducer can close display panel when terminal is moved in one's ear And/or backlight.As one kind of motion sensor, Gravity accelerometer can detect in all directions (generally three axles) and add The size of speed, can detect that size and the direction of gravity when static, application (the such as horizontal/vertical screen available for identification mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for terminal also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Input block 403 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.Specifically Ground, in a specific embodiment, input block 403 may include Touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, collect user on or near it touch operation (such as user using finger, touch The operations of any suitable object or annex on Touch sensitive surface or near Touch sensitive surface such as pen), and according to set in advance Formula drives corresponding attachment means.Optionally, Touch sensitive surface may include two parts of touch detecting apparatus and touch controller. Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits 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 the order sent of receiving processor 406 and can be performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray And the polytype such as surface acoustic wave realizes Touch sensitive surface.Except Touch sensitive surface, input block 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 Button etc.), fingerprint recognition module, trace ball, mouse, the one or more in action bars etc..
Display unit 404 can be used for display by user input information or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.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 the touch operation on or near it, send processing to Device 406 is provided accordingly on a display panel with determining the type of touch event with preprocessor 406 according to the type of touch event Visual output.Although in the figure 7, Touch sensitive surface is that input is realized as two independent parts and is inputted with display panel Function, but in some embodiments it is possible to by Touch sensitive surface and display panel it is integrated and realize input and output function.
Mobile terminal also includes the power supply 405 (such as battery) powered to all parts.It is preferred that, power supply can pass through electricity Management system and processor 406 are logically contiguous, so as 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, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Processor 406 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the application program being stored in memory 401, and call the data being stored in memory 401, perform The various functions and processing data of terminal, so as to carry out integral monitoring to terminal.Optionally, processor 406 may include one or Multiple processing cores;It is preferred that, processor 406 can integrated application processor and modem processor, wherein, application processor Main processing operating system, user interface and application program etc..
Although not shown in Fig. 7, terminal can also include camera, bluetooth module, mixed-media network modules mixed-media etc., no longer go to live in the household of one's in-laws on getting married herein State.
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 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, so as to realize various functions:
Sensitivity under terminal current environment is obtained by processor 406.
Blue sky tone range is determined based on the sensitivity by processor 406.
The image collected under image acquisition modality is obtained by processor 406, the pixel in the image is determined 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 performed according to blue sky tone range tone corresponding with the pixel in the image, to the picture When the saturation degree of vegetarian refreshments is handled, it can include:Obtain the pixel that the tone is in the blue sky tone range;At this It is defined 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 can include when execution is handled the saturation degree of the blue sky pixel:Obtain the terminal phase 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 it is pre- according to this If the saturation degree of blue sky pixel is adjusted 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 saturation degree of blue sky pixel is adjusted according to default second saturation degree, this is pre- If the second saturation degree is more than default first saturation degree.
Processor 406 can also include before execution calculates blue sky tone range based on the sensitivity:Detect the sense Whether luminosity, which exceedes, is preset photosensitive threshold value;When detecting that the sensitivity is no more than default photosensitive threshold value, triggering execution is based on should The step of sensitivity determines corresponding blue sky tone range.
Processor 406 can include in the sensitivity under performing the acquisition terminal current environment:Pass through the figure in terminal As the light intensity under collection sensor collection current environment;Corresponding sensitivity is determined according to the light intensity.
By the terminal can perform any image processing method that inventive embodiments are provided, it is thereby achieved that The beneficial effect achieved by any image processing method that inventive embodiments are provided, refers to embodiment above, herein Repeat no more.
During specific implementation, above unit can be realized as independent entity, can also be combined, and be made Realized for same or several entities, the specific implementation of above unit can be found in embodiment of the method above, herein not Repeat again.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, the detailed description above with respect to image processing method is may refer to, here is omitted.
Image processing method provided in an embodiment of the present invention, device and terminal are for example mobile phone, panel computer, palm electricity Brain (PDA, Personal Digital Assistant) etc., the terminal, image processing apparatus and image processing method belong to Same design, can run the either method provided in the image processing method embodiment on the image processing apparatus, and it has Body implementation process refers to the image processing method embodiment, and here is omitted.
It should be noted that for the image processing method of the invention, this area common test personnel are appreciated that reality All or part of flow of existing embodiment of the present invention image processing method, can be by computer program to control the hard of correlation Part is completed, and the computer program can be stored in a computer read/write memory medium, be such as stored in the memory of terminal, And by least one computing device in the terminal, may include in the process of implementation such as the embodiment of the image processing method Flow.Wherein, the storage medium can be magnetic disc, CD, read-only storage (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, its each functional module can be integrated in a process chip In or modules be individually physically present, can also two or more modules be integrated in a module.It is above-mentioned Integrated module can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.This is integrated If module is realized using in the form of software function module and as independent production marketing or in use, can also be stored in one In computer read/write memory medium, the storage medium is for example read-only storage, disk or CD etc..
A kind of image processing method, device and the terminal provided above the embodiment of the present invention is described in detail, Specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is to use Understand the method for the present invention and its core concept in help;Simultaneously for those skilled in the art, the think of according to the present invention Think, will change in specific embodiments and applications, be to sum up somebody's turn to do, this specification content should not be construed as to this The limitation of invention.

Claims (11)

1. a kind of image processing method, it is characterised in that including:
Obtain the sensitivity under terminal current environment;
Corresponding blue sky tone range is determined based on the sensitivity;
The image collected under image acquisition modality is obtained, the corresponding tone of pixel in described image is determined;
According to blue sky tone range tone corresponding with the pixel in described image, the saturation degree to the pixel is entered Row processing.
2. image processing method as claimed in claim 1, it is characterised in that it is described according to the blue sky tone range with it is described The corresponding tone of pixel in image, the saturation degree to the pixel is handled, including:
Obtain the pixel that the tone is in the blue sky tone range;
The pixel in the blue sky tone range is defined as blue sky pixel, and to the blue sky pixel Saturation degree is handled.
3. image processing method as claimed in claim 2, it is characterised in that the saturation degree to the blue sky pixel is entered Row processing, including:
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 Spend and the saturation degree of blue sky pixel is adjusted;
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 second saturation degree, and default second saturation degree is more than default first saturation Degree.
4. image processing method as claimed in claim 1, it is characterised in that described that blue sky color is determined based on the sensitivity Adjust before scope, also include:
Detect whether the sensitivity exceedes and preset photosensitive threshold value;
When detecting that the sensitivity is no more than default photosensitive threshold value, triggering is performed and determined accordingly based on the sensitivity The step of blue sky tone range.
5. the image processing method as any one of Claims 1-4, it is characterised in that the acquisition terminal works as front ring Sensitivity under border, including:
Light intensity under current environment is gathered by the image acquiring sensor in terminal;
Corresponding sensitivity is determined according to the light intensity.
6. a kind of image processing apparatus, it is characterised in that including:
Acquisition module, for obtaining the sensitivity under terminal current environment;
Determining module, for determining corresponding blue sky tone range based on the sensitivity;
Hue determination module, for obtaining the image collected under image acquisition modality, determines the pixel in described image 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, it is characterised in that the processing module, including:
Acquisition submodule, for obtaining the pixel that the tone is in the blue sky tone range;
Submodule is handled, for the pixel in the blue sky tone range to be defined as into 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, it is characterised 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 Spend and the saturation degree of blue sky pixel is adjusted;
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 second saturation degree, and default second saturation degree is more than default first saturation Degree.
9. image processing apparatus as claimed in claim 6, it is characterised in that institute's device also includes:
Detection module, photosensitive threshold value is preset for detecting whether the sensitivity exceedes.
10. the image processing apparatus as any one of claim 6 to 9, it is characterised in that the acquisition module, including:
Submodule is gathered, for gathering the light intensity under current environment by the image acquiring sensor in terminal;
Determination sub-module, for determining corresponding sensitivity according to the light intensity.
11. a kind of terminal, it is characterised in that including:
Be 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, performs such as claim 1 to right It is required that the image processing method described in 5 any one.
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 true CN106954022A (en) 2017-07-14
CN106954022B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107705247A (en) * 2017-10-31 2018-02-16 努比亚技术有限公司 A kind of method of adjustment of image saturation, terminal and storage medium
CN107820015A (en) * 2017-11-28 2018-03-20 上海摩软通讯技术有限公司 The filming control method and system of mobile terminal
CN109712126A (en) * 2018-12-21 2019-05-03 深圳市华星光电半导体显示技术有限公司 Image 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 (6)

* 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
US20050147298A1 (en) * 2003-12-29 2005-07-07 Eastman Kodak Company Detection of sky in digital color 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

Patent Citations (6)

* 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
US20050147298A1 (en) * 2003-12-29 2005-07-07 Eastman Kodak Company Detection of sky in digital color 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107705247A (en) * 2017-10-31 2018-02-16 努比亚技术有限公司 A kind of method of adjustment of image saturation, terminal and storage medium
CN107820015A (en) * 2017-11-28 2018-03-20 上海摩软通讯技术有限公司 The filming control method and system of mobile terminal
CN109712126A (en) * 2018-12-21 2019-05-03 深圳市华星光电半导体显示技术有限公司 Image 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

Also Published As

Publication number Publication date
CN106954022B (en) 2019-10-25

Similar Documents

Publication Publication Date Title
US9232150B2 (en) System and method for estimating an ambient light condition using an image sensor
US9277144B2 (en) System and method for estimating an ambient light condition using an image sensor and field-of-view compensation
CN107613191B (en) Photographing method, photographing equipment and computer readable storage medium
CN104488258B (en) Method and apparatus for double camera shutter
CN106954022B (en) Image processing method, device and terminal
CN103905737B (en) Backlighting detecting and device
CN105227858A (en) A kind of image processing method and mobile terminal
CN108021161A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
CN106060419A (en) Photographing method and mobile terminal
CN104486552A (en) Method and electronic device for obtaining images
CN110458826B (en) Ambient brightness detection method and device
US11537215B2 (en) Ambient light sensing device and method, and interactive device using same
CN110442521B (en) Control unit detection method and device
CN110084204B (en) Image processing method and device based on target object posture and electronic equipment
CN107330859A (en) A kind of image processing method, device, storage medium and terminal
CN110519485A (en) Image processing method, device, storage medium and electronic equipment
CN109151348B (en) Image processing method, electronic equipment and computer readable storage medium
US20230245441A9 (en) Image detection method and apparatus, and electronic device
CN110213484A (en) A kind of photographic method, terminal device and computer readable storage medium
CN108764139A (en) A kind of method for detecting human face, mobile terminal and computer readable storage medium
US20220329729A1 (en) Photographing method, storage medium and electronic device
CN108259771A (en) Image processing method, device, storage medium and electronic equipment
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN111325701A (en) Image processing method, device and storage medium
CN115589539B (en) Image adjustment method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: 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.

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

Granted publication date: 20191025