CN110086993A - Image processing method, device, mobile terminal and computer readable storage medium - Google Patents
Image processing method, device, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN110086993A CN110086993A CN201910359529.5A CN201910359529A CN110086993A CN 110086993 A CN110086993 A CN 110086993A CN 201910359529 A CN201910359529 A CN 201910359529A CN 110086993 A CN110086993 A CN 110086993A
- Authority
- CN
- China
- Prior art keywords
- image
- current
- picture
- preview
- preview interface
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 35
- 230000003287 optical effect Effects 0.000 claims abstract description 27
- 230000002708 enhancing effect Effects 0.000 claims abstract description 18
- 230000008569 process Effects 0.000 claims abstract description 17
- 230000009466 transformation Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 230000035945 sensitivity Effects 0.000 claims description 4
- 241000208340 Araliaceae Species 0.000 claims 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 1
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 1
- 235000008434 ginseng Nutrition 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 27
- 230000006870 function Effects 0.000 description 15
- 230000006854 communication Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 235000013399 edible fruits Nutrition 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a kind of image processing method, device, mobile terminal and computer readable storage medium, and described image processing method includes: to obtain current shooting ambient light information;Current environment optical information value is compared with the first preset threshold, the light-inletting quantity for adjusting image preview process is determined whether according to comparison result;Obtain the picture at current preview interface;Calculate and obtain the luminance information of the picture at the current preview interface;The brightness value of the picture at current preview interface is compared with the second preset threshold, is determined whether to carry out index enhancing processing to image according to comparison result.The application passes through the adjustment to preview interface parameter in real time and the processing to preview image, while guaranteeing preview real-time, it can guarantee user's preferable preview effect under half-light, very dark light field scape, user is convenient for adjusting acquisition parameters by preview effect, to guarantee to obtain preferable shooting effect, user experience is preferable.
Description
Technical field
This application involves technical field of image processing more particularly to a kind of image processing method, device, mobile terminal and meters
Calculation machine readable storage medium storing program for executing.
Background technique
People generally go through the mode of the image procossings such as subsequent raising brightness when carrying out half-light shooting to improve picture matter
Amount is to obtain preferable shooting effect;The processing is the effect guaranteed, usually deals with complex, therefore compares consumption
When, it is difficult to ensure that real-time, and the effect of later image processing can not be shown in real time in preview interface.
Moreover, the picture shot under the scene of certain very dark light, is shown in preview interface in real time due to its picture
Effect is also darker, therefore user's can not focus and can not preferably adjust well camera site and shooting angle etc. is caused to be asked
Topic, thus preferable shooting effect can not be still obtained even across later image processing etc., user experience is poor.
Summary of the invention
The object of the present invention is to provide a kind of image processing method, device, mobile terminal and computer readable storage medium,
The prior art is aimed to solve the problem that when carrying out half-light shooting, shooting effect is bad, the poor problem of user experience.
To solve the above problems, the application provides a kind of image processing method, this method is applied to mobile terminal, the figure
As processing method includes the following steps:
Obtain current shooting ambient light information;
Current environment optical information value is compared with the first preset threshold, is determined whether to adjust image according to comparison result
The light-inletting quantity of previews;
Obtain the picture at current preview interface;
Calculate and obtain the luminance information of the picture at the current preview interface;
The luminance information value of the picture at current preview interface is compared with the second preset threshold, it is true according to comparison result
It is fixed whether index enhancing processing to be carried out to image.
Wherein, described to be compared current environment optical information value with the first preset threshold, be according to comparison result determination
The light-inletting quantity of no adjustment image preview process specifically includes: when current environment optical information value is less than the first preset threshold, adjustment figure
As the parameter in previews, to enhance the light-inletting quantity during image preview.
Wherein, when the current environment optical information value is less than the first preset threshold, the parameter during image preview is adjusted
It specifically includes: sensitivity and aperture size during adjustment image preview.
Wherein, the luminance information of the calculating and the picture for obtaining the current preview interface specifically includes: described in calculating
The histogram of the picture at current preview interface obtains the luminance information of the picture at current preview interface.
Wherein, described to be compared the luminance information value at current preview interface with the second preset threshold, it is tied according to comparing
Fruit determines whether that index enhancing is carried out to image to be specifically included: the luminance information value at current preview interface is less than the second preset threshold
When, transformation parameter is obtained to the histogram of the present preview image, and index increasing is carried out to image according to the transformation parameter
By force.
Wherein, it further comprises the steps of: and the enhanced picture of the progress index is presented in preview interface, carry out at focusing
Reason.
Wherein, comprising steps of when user presses shutter, then parameter when current image restores current shooting automatically is set
It sets.
To solve the above problems, another embodiment of the application also provides a kind of image processing apparatus, described image processing dress
It sets and specifically includes:
First acquisition unit obtains current shooting ambient light information;
Current environment optical information value is compared by the first comparing unit with the first preset threshold;
The first adjustment unit determines whether to adjust image preview process according to the comparison result of first comparing unit
Light-inletting quantity;
Second acquisition unit obtains the picture at current preview interface;
Computing unit calculates and obtains the luminance information of the picture at the current preview interface;
The luminance information value of the picture at current preview interface is compared by the second comparing unit with the second preset threshold;
Second adjustment unit determines whether to carry out index enhancing to image according to the comparison result of second comparing unit
Processing.
To solve the above problems, the embodiment of the present application also provides a kind of mobile terminal, the mobile terminal includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
It is realized as described in any one of above-mentioned image processing method when the computer program is executed by the processor
The step of method.
To solve the above problems, the embodiment of the present application also provides a kind of computer readable storage medium, the computer can
It reads to be stored with picture processing program on storage medium, be realized when the picture processing program is executed by processor as at above-mentioned image
The step of image processing method described in any one of reason method.
The picture effect shot under the scene of very dark light compared with the existing technology is bad, and user experience is ineffective
Problem, the application provide a kind of image processing method, device, mobile terminal and computer readable storage medium, at described image
Reason method is compared current environment optical information value and the first preset threshold by obtaining the optical information of current environment in real time
Compared with, according to comparison result determine whether adjust image preview process light-inletting quantity, obtain current preview interface picture;It calculates simultaneously
Obtain the luminance information of the picture at the current preview interface;The luminance information value of the picture at current preview interface is pre- with second
If threshold value is compared, determined whether to carry out index enhancing processing to image according to comparison result, it is right in real time that the application passes through
The adjustment of preview image interface parameter and processing to preview image, while guaranteeing preview image real-time, moreover it is possible to guarantee
User shoots the preferable preview effect of image under half-light, very dark light field scape, user be convenient for by the effect of preview image come
Acquisition parameters are adjusted, to guarantee to obtain preferable shooting effect, user experience is preferable.
Described image processing unit provided by the present application obtains current shooting environment light letter by the first acquisition unit
Current environment optical information value is compared by breath, the first comparing unit with the first preset threshold;The first adjustment unit is according to
The comparison result of first comparing unit determines whether to adjust the light-inletting quantity of image preview process;Second acquisition unit obtains current
The picture of preview interface;Computing unit calculates and obtains the luminance information of the picture at the current preview interface;Second is relatively more single
The brightness value of the picture at current preview interface is compared by member with the second preset threshold;Second adjustment unit is according to described second
The comparison result of comparing unit determines whether to carry out index enhancing processing to image.Herein described image processing apparatus is by holding
Above-mentioned image processing method go so as to reach the adjustment of the parameter to preview interface image in real time, is guaranteeing that image preview is real
While when property, moreover it is possible to the preferable preview effect for guaranteeing user's picture captured under half-light, very dark light field scape, to make
With herein described image processing apparatus, acquisition parameters are adjusted by the shooting effect of preview image convenient for user, to obtain
Preferable shooting effect is obtained, user experience is preferable.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the hardware structural diagram for realizing each embodiment one optional mobile terminal of the application;
Fig. 2 is the communications network system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart for the image processing method that one embodiment of the application provides;
Fig. 4 is the structural block diagram of image processing apparatus provided by the embodiments of the present application;
Fig. 5 is the shooting flow chart that the embodiment of the present application carries out shooting picture with described image processing method.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency) radio frequency unit 101, WiFi module 102, audio output unit 103,
A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108,
The components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that being moved shown in Fig. 1
Terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, or
Combine certain components or different component layouts.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the present patent application is proposed.
Fig. 3 is the method flow diagram of an image processing method provided by the embodiments of the present application.The method of the embodiment is once
It is triggered by user, then each process step in the embodiment passes through mobile terminal automatic running, wherein each step is in operation
When can be and successively carried out according to the sequence in such as flow chart, be also possible to multiple steps according to the actual situation while carrying out,
Herein and without limitation.Image processing method provided by the present application specifically comprises the following steps:
Step S310 obtains current shooting ambient light information;
Specifically, the optical information value under current shooting environment is obtained by light sensor, the optical information value is specifically wrapped
Include the luminance information of the light under current environment.
Current environment optical information value is compared by step S320 with the first preset threshold, is according to comparison result determination
The light-inletting quantity of no adjustment image preview process;
Specifically, the optical information value of the acquisition under current environment is compared with preset first preset threshold, when working as
When preceding ambient light information value is less than the first preset threshold, S3201 is thened follow the steps, adjusts the parameter during image preview, than
Sensitivity, the size of aperture during image preview are adjusted, such as to enhance the light-inletting quantity during image preview;When current
Ambient light information value be greater than or equal to the first preset threshold when, then do not need adjustment image preview during parameter, directly into
Enter following steps S390.
Step S3201 adjusts the parameter during image preview;
Specifically, adjust image preview during parameter specifically include adjustment image preview during sensitivity, light
The parameter informations such as the size of circle.
Step S330 obtains the picture at current preview interface;
Step S340 calculates and obtains the luminance information of the picture at the current preview interface;
Specifically, the luminance information step of the calculating and the picture for obtaining the current preview interface specifically includes:
Step S3401 calculates the histogram of current preview interface images,
Step S3402 obtains the luminance information of the picture at the current preview interface.
The luminance information value of the picture at current preview interface is compared by step S350 with the second preset threshold, according to
Comparison result determines whether to carry out index enhancing processing to image.
Specifically, the luminance information value of the picture at current preview interface is compared with the second preset threshold, if worked as
The luminance information value of the picture of preceding preview interface then obtains transformation to the histogram of present preview image less than the second preset threshold
Parameter, and index enhancing processing is carried out to image according to transformation parameter.
The transformation parameter formula are as follows:
α=L2/li
Dsti,j=MIN (MAX ((Srci,j)α,0),max)
Wherein, L2For the second preset threshold;
liFor the luminance information value of the picture at current preview interface;
Srci,jThe pixel value arranged for the i-th row jth in the picture at current preview interface;
MAX is to be maximized operation, and MIN is to be minimized operation;
Max is that current image stores the corresponding maximum value of standard (when as using octal system storage, max=255).
Step S360, by the enhancing, treated that picture is presented in the preview interface of terminal, to obtain current image
Preferable shooting effect;
Specifically, by the enhancing, treated that picture is presented in the preview interface of terminal, and user focuses, adjusts
The processing such as shooting angle and camera site adjustment, to obtain the preferable shooting effect of current image.
Step S370, interface of finding a view update preview picture.
Step S380 then restores the parameter setting of current taken image when user presses shutter;
Step S390, repeat the above steps image processing method set described in S310-S380, and generation is currently to be captured more
Preview image after new.
Referring to Fig. 5, it is the specific shooting flow chart that shooting picture is carried out by herein described image processing method,
It specifically includes:
Step S410 presses the shutter of camera;
Step S420 restores the parameter of present image when shooting;
Step S430 issues present image parameter;
Step S440 generates shooting figure according to image processing method set described in the preset step S310-S380
Piece;
The picture of the shooting is returned to user by step S450.
It is to complete the shooting process of whole image by above-mentioned shooting step.
Described image processing method provided by the present application is according to the optical information of current environment, by obtaining current environment in real time
Optical information, and current environment optical information value is compared with the first preset threshold, determines whether to adjust according to comparison result
The light-inletting quantity of image preview process obtains the picture at current preview interface;Calculate and obtain the picture at the current preview interface
Luminance information;The luminance information value of the picture at current preview interface is compared with the second preset threshold, is tied according to comparing
Fruit determines whether that the application is by the adjustment to preview interface parameter in real time and to preview to image progress index enhancing processing
The processing of image can guarantee user's preferable preview effect under half-light, very dark light field scape while guaranteeing preview real-time
Fruit, user are convenient for adjusting acquisition parameters by preview effect, obtain preferable shooting effect, user experience is preferable.
By above-mentioned implementation method, family can be used and more intuitively set scene of taking pictures accordingly, and passes through shooting
Scene image can obtain the preferable preview picture information of corresponding scene image in real time, and can make determination takes pictures scene more
Add the intention for meeting user, improves user experience.
Fig. 4 is the structural block diagram of the embodiment of the image processing apparatus of another embodiment provided by the present application, described image
Processing unit includes being connected with each other and carrying out the first acquisition unit 401 of communication interaction, the first comparing unit 402, the first adjustment
Unit 403, second acquisition unit 404, computing unit 405, the second comparing unit 406 and second adjustment unit 407.It is described each
The function of unit module is as follows:
The first acquisition unit 401, for obtaining the optical information of current shooting environment;
First comparing unit 402, for current environment optical information value to be compared with the first preset threshold;
The first adjustment unit 403 determines whether to adjust according to first comparing unit 402 comparison result obtained
The light-inletting quantity of whole image preview process;
The second acquisition unit 404, for obtaining the picture at current preview interface;
The computing unit 405, the luminance information of the picture for calculating and obtaining the current preview interface;
Second comparing unit 406, for by the luminance information value of the picture at current preview interface and the second default threshold
Value is compared;
The second adjustment unit 407, for being according to the 406 comparison result obtained determination of the second comparing unit
It is no that index enhancing processing is carried out to image.
In one embodiment, described image processing unit further comprises real-time recovery unit 408, for pressing as user
When lower shutter, the parameter setting of the image of real-time recovery current shooting.
Described image processing unit provided by the present application obtains current shooting environment by the first acquisition unit 401
Current environment optical information value is compared by optical information, the first comparing unit 402 with the first preset threshold;The first adjustment unit
403 determine whether to adjust the light-inletting quantity of image preview process according to the comparison result of first comparing unit 402;Second obtains
The picture at the acquisition of unit 404 current preview interface;Computing unit 405 calculates and obtains the bright of the picture at the current preview interface
Spend information;The brightness value of the picture at current preview interface is compared by the second comparing unit 406 with the second preset threshold;Second
Adjustment unit 407 is according to second comparing unit 406 comparison result obtained, it is determined whether carries out index enhancing to image
Processing.Herein described image processing apparatus is reached in real time by executing above-mentioned image processing method to preview interface
The parameter of image is adjusted, while guaranteeing preview image real-time, moreover it is possible to guarantee user in half-light, very dark light field scape
The preferable preview effect of lower captured picture, so that user is convenient for by pre- using herein described image processing apparatus
The shooting effect of image look at adjusts acquisition parameters, to obtain preferable shooting effect, user experience is preferable.
The application also provides a kind of mobile terminal, and the mobile terminal includes: memory, processor and is stored in described deposit
On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor
The step of method as described in any one of step S310-S380 in above-described embodiment.
The application also provides a kind of computer readable storage medium, is stored with picture on the computer readable storage medium
Processing routine is realized when the picture processing program is executed by processor such as any one of step S310-S380 in above-described embodiment
The step of described image processing method.
The computer readable storage medium provided by the present application, is stored with figure on the computer readable storage medium
Piece processing routine realizes described image processing method, at described image when the picture processing program is executed by processor
Reason method obtains the optical information of current environment, by the adjustment in real time to preview image interface parameter and to the place of preview image
Reason, while guaranteeing preview image real-time, moreover it is possible to guarantee that user shoots the preferable of image under half-light, very dark light field scape
Preview effect, user are convenient for the effect by preview image to adjust acquisition parameters, to guarantee to obtain preferable shooting effect
Fruit, user experience are preferable.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of image processing method is applied to mobile terminal, which is characterized in that described image processing method includes following step
It is rapid:
Obtain current shooting ambient light information;
Current environment optical information value is compared with the first preset threshold, is determined whether to adjust image preview according to comparison result
The light-inletting quantity of process;
Obtain the picture at current preview interface;
Calculate and obtain the luminance information of the picture at the current preview interface;
The luminance information value of the picture at current preview interface is compared with the second preset threshold, is according to comparison result determination
It is no that index enhancing processing is carried out to image.
2. a kind of image processing method as described in claim 1, which is characterized in that described by current environment optical information value and the
One preset threshold is compared, and determines whether that the light-inletting quantity for adjusting image preview process specifically includes according to comparison result: current
When ambient light information value is less than the first preset threshold, the parameter during image preview is adjusted, during enhancing image preview
Light-inletting quantity.
3. a kind of image processing method as claimed in claim 2, which is characterized in that the current environment optical information value is less than the
When one preset threshold, adjust image preview during parameter specifically include: adjustment image preview during sensitivity and
Aperture size.
4. a kind of image processing method as described in any one of claims 1-3, which is characterized in that the calculating simultaneously obtains described
The luminance information of the picture at current preview interface specifically includes: calculating the histogram of the picture at the current preview interface, obtains
The luminance information of the picture at current preview interface.
5. a kind of image processing method as claimed in claim 4, which is characterized in that the brightness by current preview interface is believed
Breath value is compared with the second preset threshold, determines whether that index enhancing is carried out to image to be specifically included according to comparison result: when
When the luminance information value of preceding preview interface is less than the second preset threshold, transformation ginseng is obtained to the histogram of the present preview image
Number, and index enhancing is carried out to image according to the transformation parameter.
6. a kind of image processing method as claimed in claim 5, which is characterized in that further comprise the steps of: the carry out index
Enhanced picture is presented in preview interface, carries out focusing process.
7. a kind of image processing method as claimed in claim 6, which is characterized in that further comprise the steps of: when user presses shutter
When, then parameter setting when current image restores current shooting automatically.
8. a kind of image processing apparatus characterized by comprising
First acquisition unit obtains current shooting ambient light information;
Current environment optical information value is compared by the first comparing unit with the first preset threshold;
The first adjustment unit determines whether the entering light for adjusting image preview process according to the comparison result of first comparing unit
Amount;
Second acquisition unit obtains the picture at current preview interface;
Computing unit calculates and obtains the luminance information of the picture at the current preview interface;
The luminance information value of the picture at current preview interface is compared by the second comparing unit with the second preset threshold;
Second adjustment unit determines whether to carry out at index enhancing image according to the comparison result of second comparing unit
Reason.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The step of the method as described in any one of claims 1 to 7 is realized when the computer program is executed by the processor
Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored at picture on the computer readable storage medium
Program is managed, the picture processing as described in any one of claims 1 to 7 is realized when the picture processing program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910359529.5A CN110086993B (en) | 2019-04-30 | 2019-04-30 | Image processing method, image processing device, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910359529.5A CN110086993B (en) | 2019-04-30 | 2019-04-30 | Image processing method, image processing device, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110086993A true CN110086993A (en) | 2019-08-02 |
CN110086993B CN110086993B (en) | 2021-09-07 |
Family
ID=67417990
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910359529.5A Active CN110086993B (en) | 2019-04-30 | 2019-04-30 | Image processing method, image processing device, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110086993B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112135053A (en) * | 2020-09-25 | 2020-12-25 | 努比亚技术有限公司 | Image processing method, mobile terminal and computer readable storage medium |
CN112967201A (en) * | 2021-03-05 | 2021-06-15 | 厦门美图之家科技有限公司 | Image illumination adjusting method and device, electronic equipment and storage medium |
CN114697595A (en) * | 2020-12-28 | 2022-07-01 | 北京小米移动软件有限公司 | Video recording method, device and storage medium |
CN115002346A (en) * | 2022-05-18 | 2022-09-02 | 努比亚技术有限公司 | Video preview star real-time detection method, device and storage medium |
WO2023087663A1 (en) * | 2021-11-17 | 2023-05-25 | 深圳天珑无线科技有限公司 | Image capture method, electronic device and computer-readable storage medium |
WO2023245391A1 (en) * | 2022-06-20 | 2023-12-28 | 北京小米移动软件有限公司 | Preview method and apparatus for camera |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6970198B1 (en) * | 2000-09-14 | 2005-11-29 | Hewlett-Packard Development Company, L.P. | Digital camera and method of improving image quality in live view mode |
CN106161970A (en) * | 2016-09-26 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | A kind of image pickup method, device and mobile terminal |
CN106484257A (en) * | 2016-09-22 | 2017-03-08 | 广东欧珀移动通信有限公司 | Camera control method, device and electronic equipment |
CN107087118A (en) * | 2017-05-31 | 2017-08-22 | 广东欧珀移动通信有限公司 | Photographic method, device, storage medium and terminal |
CN108495056A (en) * | 2018-06-12 | 2018-09-04 | 努比亚技术有限公司 | Photographic method, mobile terminal and computer readable storage medium |
-
2019
- 2019-04-30 CN CN201910359529.5A patent/CN110086993B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6970198B1 (en) * | 2000-09-14 | 2005-11-29 | Hewlett-Packard Development Company, L.P. | Digital camera and method of improving image quality in live view mode |
CN106484257A (en) * | 2016-09-22 | 2017-03-08 | 广东欧珀移动通信有限公司 | Camera control method, device and electronic equipment |
CN106161970A (en) * | 2016-09-26 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | A kind of image pickup method, device and mobile terminal |
CN107087118A (en) * | 2017-05-31 | 2017-08-22 | 广东欧珀移动通信有限公司 | Photographic method, device, storage medium and terminal |
CN108495056A (en) * | 2018-06-12 | 2018-09-04 | 努比亚技术有限公司 | Photographic method, mobile terminal and computer readable storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112135053A (en) * | 2020-09-25 | 2020-12-25 | 努比亚技术有限公司 | Image processing method, mobile terminal and computer readable storage medium |
CN114697595A (en) * | 2020-12-28 | 2022-07-01 | 北京小米移动软件有限公司 | Video recording method, device and storage medium |
CN112967201A (en) * | 2021-03-05 | 2021-06-15 | 厦门美图之家科技有限公司 | Image illumination adjusting method and device, electronic equipment and storage medium |
WO2023087663A1 (en) * | 2021-11-17 | 2023-05-25 | 深圳天珑无线科技有限公司 | Image capture method, electronic device and computer-readable storage medium |
CN115002346A (en) * | 2022-05-18 | 2022-09-02 | 努比亚技术有限公司 | Video preview star real-time detection method, device and storage medium |
CN115002346B (en) * | 2022-05-18 | 2024-10-29 | 努比亚技术有限公司 | Star real-time detection method, equipment and storage medium for video preview |
WO2023245391A1 (en) * | 2022-06-20 | 2023-12-28 | 北京小米移动软件有限公司 | Preview method and apparatus for camera |
Also Published As
Publication number | Publication date |
---|---|
CN110086993B (en) | 2021-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495056A (en) | Photographic method, mobile terminal and computer readable storage medium | |
CN110086993A (en) | Image processing method, device, mobile terminal and computer readable storage medium | |
CN107896303A (en) | A kind of image-pickup method, system and equipment and computer-readable recording medium | |
CN108063901A (en) | A kind of image-pickup method, terminal and computer readable storage medium | |
CN110046597A (en) | Face identification method, mobile terminal and computer readable storage medium | |
CN107493426A (en) | A kind of information collecting method, equipment and computer-readable recording medium | |
CN109711226A (en) | Two-dimensional code identification method, device, mobile terminal and readable storage medium storing program for executing | |
CN107959795A (en) | A kind of information collecting method, equipment and computer-readable recording medium | |
CN107124552A (en) | A kind of image pickup method, terminal and computer-readable recording medium | |
CN107948430A (en) | A kind of display control method, mobile terminal and computer-readable recording medium | |
CN109890022A (en) | Data transfer control method, mobile terminal and computer readable storage medium | |
CN107749947A (en) | Photographic method, mobile terminal and computer-readable recording medium | |
CN108958936A (en) | Application programe switch-over method, mobile terminal and computer readable storage medium | |
CN109889695A (en) | A kind of image-region determines method, terminal and computer readable storage medium | |
CN108965710A (en) | Method, photo taking, device and computer readable storage medium | |
CN107580181A (en) | A kind of focusing method, equipment and computer-readable recording medium | |
CN110035270A (en) | A kind of 3D rendering display methods, terminal and computer readable storage medium | |
CN109510941A (en) | A kind of shooting processing method, equipment and computer readable storage medium | |
CN110052024A (en) | Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration | |
CN109445660A (en) | A kind of wearable device control method, mobile terminal and wearable device | |
CN108234869A (en) | A kind of shooting preview control method, equipment and computer readable storage medium | |
CN109561221A (en) | A kind of call control method, equipment and computer readable storage medium | |
CN109951647A (en) | A kind of acquisition parameters setting method, terminal and computer readable storage medium | |
CN109711850A (en) | A kind of safe payment method, equipment and computer readable storage medium | |
CN109785254A (en) | Picture noise-reduction method, picture noise reduction model generating method, terminal 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |