CN107948531A - A kind of image processing method, terminal and computer-readable recording medium - Google Patents

A kind of image processing method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107948531A
CN107948531A CN201711474644.4A CN201711474644A CN107948531A CN 107948531 A CN107948531 A CN 107948531A CN 201711474644 A CN201711474644 A CN 201711474644A CN 107948531 A CN107948531 A CN 107948531A
Authority
CN
China
Prior art keywords
image
subgraph
ratio
obtains
pixel
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.)
Pending
Application number
CN201711474644.4A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711474644.4A priority Critical patent/CN107948531A/en
Publication of CN107948531A publication Critical patent/CN107948531A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • G06T5/70
    • G06T5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • G06T7/41Analysis of texture based on statistical description of texture
    • G06T7/44Analysis of texture based on statistical description of texture using image operators, e.g. filters, edge density metrics or local histograms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Abstract

The embodiment of the invention discloses a kind of image processing method, the described method includes:The first pending image is obtained, and noise reduction process is carried out to the first image and obtains the second image;Calculate the ratio of the area of the first subgraph in the second image and the area of the second image;If ratio is more than predetermined threshold value, the contrast for increasing the first subgraph based on ratio obtains target image.The embodiment of the present invention also discloses a kind of terminal and computer-readable recording medium at the same time, solves the problems, such as that in the prior art regulating effect is poor during for image progress contrast adjustment, improves the contrast of dark space in image and improves the clarity of image;Meanwhile improve the intelligent of terminal.

Description

A kind of image processing method, terminal and computer-readable recording medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of image processing method, terminal and computer-readable deposit Storage media.
Background technology
When user uses the mobile terminal shooting photo with camera function, if shooting environmental is dark or in backlight field Scape, in the image shot, the area of dark space accounts for the large percentage of total image area, here, by the less pixel of pixel value The region of point composition is known as dark space, and the region being made of the larger pixel of pixel value is known as clear zone.In the prior art, Yong Huyi As manually adjust the mode of picture contrast to highlight image.However, what is improved by above-mentioned regulative mode is entirely to scheme The contrast of picture, i.e., carry out the raising of equal extent to the contrast of dark space and clear zone at the same time, in this way, necessarily causing clear zone more It is bright.As it can be seen that regulating effect is poor when being directed to image progress contrast adjustment in the prior art.
The content of the invention
In view of this, an embodiment of the present invention is intended to provide a kind of image processing method, terminal and computer-readable storage medium Matter, solves the problems, such as that in the prior art regulating effect is poor during for image progress contrast adjustment, improves dark space in image Contrast and improve the clarity of image;Meanwhile improve the intelligent of terminal.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
First aspect, there is provided a kind of image processing method, the described method includes:
The first pending image is obtained, and noise reduction process is carried out to described first image and obtains the second image;
Calculate the ratio of the area of the first subgraph in second image and the area of second image;Wherein, Gray value of first sub-picture pack containing pixel in second image is less than the pixel of default gray value;
If the ratio is more than predetermined threshold value, the contrast for increasing first subgraph based on the ratio obtains target Image.
Optionally, it is described to obtain the first pending image, and noise reduction process is carried out to described first image and obtains second Image, including:
The first image capture instruction is received, and responds described first image acquisition instructions collection multiple image as described the One image;
Multiple described first images are synthesized, and based on the frame number of multiple image to each pixel in the image after synthesis The pixel value of point is averaged, and obtains second image.
Optionally, the first pending image of the acquisition, including:
The second image capture instruction is received, and responds second image capture instruction collection single-frame images as described the One image;
Bilateral filtering processing is carried out to described first image, obtains second image.
Optionally, if the ratio is more than predetermined threshold value, pair of first subgraph is increased based on the ratio Target image is obtained than degree, including:
If the ratio is more than predetermined threshold value, the difference of the ratio and the predetermined threshold value is calculated;
Adjusting parameter for first subgraph is obtained based on the difference;
The contrast for increasing first subgraph based on the adjusting parameter obtains the target image.
Optionally, the adjusting parameter obtained based on the difference for first subgraph, including:
Correspondence between preset difference value and default adjusting parameter is inquired about based on the difference, the difference is obtained and corresponds to The adjusting parameter.
Optionally, the area for calculating the first subgraph in second image and the area of second image Ratio, including:
Obtain the half-tone information of second image;
First grey level histogram is generated based on the half-tone information;
Smothing filtering is carried out to first grey level histogram and obtains the second grey level histogram;
The first subgraph and non-first subgraph are obtained into row threshold division to second grey level histogram;Wherein, institute State the second subgraph and refer to subgraph in second image in addition to first subgraph;
Calculate the ratio of the area of first subgraph and the area of the second image.
Optionally, the area for calculating the first subgraph in second image and the area of second image Ratio, including:
The gray value for calculating pixel in second image is less than the quantity for the pixel for presetting gray value, obtains first Quantity;
Calculate the ratio of the total quantity for the pixel that first quantity is included with second image.
Second aspect, there is provided a kind of terminal, the terminal include:Processor, memory and communication bus;
Communication bus is used for realization the communication connection between processor and memory;
Processor is used to perform image processing program in memory, to realize following steps:
The first pending image is obtained, and noise reduction process is carried out to described first image and obtains the second image;
Calculate the ratio of the area of the first subgraph in second image and the area of second image;Wherein, Gray value of first sub-picture pack containing pixel in second image is less than the pixel of default gray value;
If the ratio is more than predetermined threshold value, the contrast for increasing first subgraph based on the ratio obtains target Image.
Optionally, it is described to obtain the first pending image, and noise reduction process is carried out to described first image and obtains second During image, the processor is additionally operable to perform described image processing routine, to realize following steps:
The first image capture instruction is received, and responds described first image acquisition instructions, gathers the multiframe figure at current time As being used as described first image;
Multiple described first images are synthesized, and based on the frame number of multiple image to each pixel in the image after synthesis The pixel value of point is averaged, and obtains second image.
Optionally, described when obtaining pending first image, the processor is additionally operable to perform described image processing journey Sequence, to realize following steps:
The second image capture instruction is received, and responds second image capture instruction collection single-frame images as described the One image;
Bilateral filtering processing is carried out to described first image, obtains second image.
Optionally, if the ratio is more than predetermined threshold value, pair of first subgraph is increased based on the ratio When obtaining target image than degree, the processor is additionally operable to perform described image processing routine, to realize following steps:
If the ratio is more than predetermined threshold value, the difference of the ratio and the predetermined threshold value is calculated;
Adjusting parameter for first subgraph is obtained based on the difference;
The contrast for increasing first subgraph based on the adjusting parameter obtains the target image.
Optionally, it is described based on the difference obtain for first subgraph adjusting parameter when, the processor It is additionally operable to perform described image processing routine, to realize following steps:
Correspondence between preset difference value and default adjusting parameter is inquired about based on the difference, the difference is obtained and corresponds to The adjusting parameter.
Optionally, the area for calculating the first subgraph in second image and the area of second image During ratio, the processor is additionally operable to perform described image processing routine, to realize following steps:
Obtain the half-tone information of second image;
First grey level histogram is generated based on the half-tone information;
Smothing filtering is carried out to first grey level histogram and obtains the second grey level histogram;
The first subgraph and non-first subgraph are obtained into row threshold division to second grey level histogram;Wherein, institute State the first subgraph and refer to the gray value of pixel in the second image less than the first area of the pixel composition of default gray value, institute State non-first subgraph and refer to subgraph in second image in addition to first subgraph;
Calculate the ratio of the area of first subgraph and the area of the second image.
Optionally, the area for calculating the first subgraph in second image and the area of second image During ratio, the processor is additionally operable to perform described image processing routine, to realize following steps:
The gray value for calculating pixel in second image is less than the first quantity of the pixel for presetting gray value;Its In, the gray value that first subgraph refers to pixel in the second image is less than the firstth area that the pixel of default gray value forms Domain;
The quantity for the pixel that first quantity is included with second image is calculated, obtains the ratio of total quantity.
The third aspect, there is provided a kind of computer-readable recording medium, the computer-readable recording medium storage have one Or multiple programs, one or more of programs can be performed by one or more processor, to realize such as first aspect The step of described image processing method.
Image processing method, terminal and the computer-readable recording medium that the embodiment of the present invention is provided, obtain and wait to locate First image of reason, and noise reduction process is carried out to the first image and obtains the second image;Calculate the first subgraph in the second image Area and the second image area ratio;If ratio is more than predetermined threshold value, increase the contrast of the first subgraph based on ratio Degree obtains target image;That is, image processing method provided by the present invention, is getting the first pending image Afterwards, noise reduction process is carried out to first image first and obtains the second image, when secondly the dark space in definite second image is more, carried The contrast of high dark space is to obtain target image;Solves in the prior art regulating effect during for image progress contrast adjustment The problem of poor, improve the contrast of dark space in image and improve the clarity of image;Meanwhile improve the intelligence of terminal Property.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the communication system architecture schematic diagram that mobile terminal provided in an embodiment of the present invention can operate;
Fig. 3 is a kind of flow diagram of image processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of interface schematic diagram of image processing process provided in an embodiment of the present invention;
Fig. 5 is the interface schematic diagram of another image processing process provided in an embodiment of the present invention;
Fig. 6 is the interface schematic diagram of another image processing process provided in an embodiment of the present invention;
Fig. 7 is the flow diagram of another image processing method provided in an embodiment of the present invention;
Fig. 8 is the flow diagram of another image processing method provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram for terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.
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 follow-up description, the suffix using such as " module ", " component " or " unit " for representing element is only Be conducive to the explanation of the present 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 can include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:Radio frequency (Radio Frequency, RF) unit 101, Wi-Fi module 102, audio output unit 103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the component such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components, Either combine some components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink 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, penetrate Frequency unit 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication Standard or agreement, include but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is more Location 2000 (Code Division Multiple Access 2000, CDMA2000), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), TD SDMA (Time Division- Synchronous Code Division Multiple Access, TD-SCDMA), frequency division duplex Long Term Evolution (Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex Long Term Evolution (Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102 Email, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 Show Wi-Fi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can basis Need to omit in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotype, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or It is sound that the voice data that person stores in memory 109, which is converted into audio signal and exports,.Moreover, audio output unit 103 can also provide with mobile terminal 100 perform the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi 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 (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound The noise produced 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 one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification 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 ray sensor, details are not described herein.
Display unit 106 is used for the information for showing by information input by user or being supplied to 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) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment device is driven according to formula set in advance.Contact 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 Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, when contact 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, contact panel 1071 and display panel 1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone 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 storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, 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 whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle 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) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function 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.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite includes communicating the user equipment (User of connection successively for the LTE system of universal mobile communications technology, the LTE system Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation The IP operation 204 of business.
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 connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include mobility management entity (Mobility Management Entity, MME) 2031, ownership Client server (Home Subscriber Server, HSS) 2032, other MME2033, gateway (Serving Gate Way, SGW) 2034, grouped data network gateway (PDN Gate Way, PGW) 2035 and policy and rate functional entity (Policy and Charging Rules Function, PCRF) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used in relation to service features, data rate etc. The dedicated information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provides available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IP Multimedia Subsystem, IMS) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the present invention is proposed.
An embodiment of the present invention provides a kind of image processing method, the executive agent of the image processing method is terminal, should At least provided with an image acquisition device in terminal, Image Acquisition can be carried out by the image acquisition device, it is pending to obtain The first image.
In practical applications, above-mentioned image acquisition device can be complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS) image sensing cell, or Charged Couple (Charge-coupled Device, CCD) image sensing cell, it is, of course, also possible to be other kinds of image sensing cell.Here, the embodiment of the present invention It is not specifically limited.
In practical applications, the terminal can be with front camera either rear camera or it is specific at the same time before, The smart mobile phone of rear camera, tablet computer, digital camera etc. have the electronic equipment of camera function, it is of course also possible to be Other, the embodiment of the present invention is not specifically limited.
Further, the function that the image processing method of the embodiment of the present invention is realized can pass through the processor in terminal Caller code realizes that certain program code can be stored in computer-readable storage medium, it is seen then that the terminal includes at least Pocessor and storage media.In practical applications, which can be applied in ambient than dark situation Under, such as night scene, rainy days, half-light environment, can also apply in the case of reversible-light shooting.
Based on previous embodiment, the embodiment of the present invention provides a kind of image processing method, with reference to shown in Fig. 3, this method Comprise the following steps:
Step 301, obtain the first pending image, and carries out noise reduction process to the first image and obtain the second image.
Here, the first image can be the two field picture that terminal is shot by image acquisition device, or terminal passes through The multiple image of image acquisition device shooting.
Obtaining the second image to the first image progress noise reduction process can use existing noise-reduction method to realize, for example with Mean filter, adaptive wiener filter, median filter, the mode of morphology noise filter or Wavelet Denoising Method are to One image carries out noise reduction to obtain the second image.
In embodiments of the present invention, above-mentioned first image can be that terminal receives image capture instruction, and response image The single frames or multiple image that acquisition instructions collect.Here, above-mentioned image capture instruction, can complete default behaviour by user Make directly to produce, as what user was slided to the left when terminal is in screen lock state be operated into exposal model, alternatively, with The camera applications icon that family is clicked in system desktop in the terminal.It is, of course, also possible to it is that other modes produce, as terminal receives Voice messaging " taking pictures " to user generates afterwards, and here, the embodiment of the present invention is not specifically limited.
In practical applications, it is assumed that the kitten that the shooting of user's using terminal is played on lawn.Exemplary, referring to Fig. 4 It is shown, since kitten has gone to the dark place of ambient light, after terminal taking obtains the image of kitten, shown on terminal display screen There is an image, and image is integrally presented dusky visual effect, also there are more noise in image, shows image more It is coarse, seriously affect the appreciation effect of image.Then, the terminal-pair image carries out noise reduction process, for example, being carried out to the image Bilateral filtering processing, obtains the second image after denoising.It is shown in Figure 5, after the denoising is shown on the terminal display screen of Fig. 5 The second image, it will be apparent that, the noise in original first image is all filtered so that image seems to become apparent from.
Step 302, calculate the second image in the first subgraph area and the second image area ratio.
Here, the pixel that gray value of first sub-picture pack containing pixel in the second image is less than default gray value is stated. Second image further includes the second subgraph, and the second subgraph refers to the subgraph in addition to the first subgraph in the second image.Calculate The ratio of the area of the first subgraph in second image and the area of the second image, can be straight by the gray scale to the second image Square figure is analyzed to obtain.Grey level histogram is used for the grey value profile situation for characterizing the pixel of the second image, and gray value is got over It is small, show that the pixel is darker.
By taking terminal real-time image acquisition as an example, user utilizes the camera function of terminal, is gathered under multiple and different environment more After opening image, such as 5 images, these images are carried out as the first pending image, terminal for above-mentioned 5 images Noise reduction process can obtain 5 the second images.Then, terminal can by carrying out analysis to the grey level histogram of above-mentioned 5 images To obtain corresponding ratio of the area of the first subgraph in every second image with the area of the image.For example, calculate The first ratio to first image is the 3rd ratio that the second ratio of 65%, second image is 10%, the 3rd image The second ratio for 21%, the 4th image is that the 5th ratio of 17%, the 5th image is 80%.
If step 303, ratio are more than predetermined threshold value, the contrast for increasing the first subgraph based on ratio obtains target figure Picture.
Here, predetermined threshold value can be 50%, it is, of course, also possible to predetermined threshold value is set according to actual conditions, this Inventive embodiments are not specifically limited this.
The area of first subgraph of the terminal in the second image is calculated relative to the area of the second image ratio it Afterwards, by the ratio compared with predetermined threshold value.For example, by corresponding five ratio of above-mentioned 5 images respectively at predetermined threshold value Obtained after being compared, the first ratio and the 5th ratio are more than predetermined threshold value;Second ratio, the 3rd ratio, the 4th ratio are less than Predetermined threshold value.So, the first subgraph that terminal is directed in corresponding first image of the first ratio carries out carrying for contrast High disposal;And the raising processing of contrast is carried out for the first subgraph in corresponding 5th image of the 5th ratio.This In, when the first subgraph that terminal is directed in the second different images improves contrast, the degree of raising can it is identical can also It is different.
In practical applications, shown in Figure 6, terminal determines the area of the first subgraph and the second image in the second image The ratio of area be more than predetermined threshold value, the contrast for increasing the first subgraph in the second image based on the ratio obtains target Image.As shown in fig. 6, the target image, compared with the second image in Fig. 5, the contrast of kitten region significantly improves So that part where the foreground part of image, that is, kitten is high-visible and is separated with background parts, plays prominent prospect Partial effect.
The image processing method that the embodiment of the present invention is provided, obtains the first pending image, and to the first image Carry out noise reduction process and obtain the second image;Calculate the ratio of the area of the first subgraph in the second image and the area of the second image Value;Wherein, the first sub-picture pack contains pixel of the gray value less than default gray value of pixel in the second image;If ratio is big In predetermined threshold value, the contrast for increasing the first subgraph based on ratio obtains target image;It is that is, provided by the present invention Image processing method, after the first pending image is got, carries out noise reduction process to first image first and obtains second Image, when secondly determining that dark space in second image is more, improves the contrast of dark space to obtain target image;Solve existing The problem of regulating effect is poor when in technology for image progress contrast adjustment, improves the contrast of dark space and raising in image The clarity of image;Meanwhile improve the intelligent of terminal.
Based on previous embodiment, the embodiment of the present invention provides a kind of image processing method, with reference to shown in Fig. 7, this method Comprise the following steps:
Step 401, receive the first image capture instruction, and responds the first image capture instruction collection multiple image and be used as the One image.
Here, terminal receives the first image capture instruction, and responds the first image capture instruction, gathers current time Multiple image is as the first image, for example, terminal collection current time, 30 two field pictures such as in 1 second were as the first image.
Step 402, synthesize multiple first images, and based on the frame number of multiple image to each in the image after synthesis The pixel value of pixel is averaged, and obtains the second image.
Here, terminal is synthesized 30 two field pictures after above-mentioned 30 two field picture is obtained, and in composograph The pixel value of each pixel carries out average value processing, for example, terminal is matched the pixel of relevant position in 30 two field pictures, And average for the pixel value of the pixel of same position, to realize the purpose that noise reduction is carried out to the first image, obtain second Image.Specifically, if it is not noise that a certain pixel, which is normal signal, then, after averaging to the pixel, the point The pixel value of corresponding position is constant in the second image.But be directed to for noise, in different two field pictures, residing for it Position be different, ask equal according to the pixel value of the same position of 30 two field pictures based on the location of noise on certain two field picture Value, will necessarily lower or even eliminate the noise.
Step 403, calculate the second image in the first subgraph area and the second image area ratio.
Here, step 403 can be achieved by the steps of:
A1, the half-tone information for obtaining the second image;
Here, terminal can determine the gray value of each pixel on the second image using following any modes Gray:
Mode one, floating-point arithmetic:Gray=R × 0.3+G × 0.59+B × 0.11;
Mode two, integer method:Gray=(R × 30+G × 59+B × 11)/100;
Mode three, mean value method:Gray=(R+G+B)/3;
Mode four, only takes green:Gray=G;
Terminal is using the Gray of each vegetarian refreshments as half-tone information.
A2, based on half-tone information generate the first grey level histogram.
Here, terminal can be handled the second image by video frequency processing chip, based on half-tone information generation first Grey level histogram.
A3, obtain the second grey level histogram to the first grey level histogram progress smothing filtering.
Here, smoothing processing can be that space smoothing is handled.
A4, obtain the first subgraph and non-first subgraph to the second grey level histogram into row threshold division;Wherein, second Subgraph refers to the subgraph in addition to the first subgraph in the second image.
The ratio of the area of A5, the area for calculating the first subgraph and the second image.
Step 403 can also be achieved by the steps of:
B1, the gray value for calculating pixel in the second image obtain first less than the quantity of the pixel of default gray value Quantity.
The ratio of the total quantity for the pixel that B2, the first quantity of calculating are included with the second image.
If step 404, ratio are more than the difference of predetermined threshold value, ratio calculated and predetermined threshold value.
Step 405, obtain the adjusting parameter for being directed to the first subgraph based on difference.
Here, step 405 can include:Based on the correspondence between preset difference value and default adjusting parameter, it is poor to obtain It is worth corresponding adjusting parameter.
Here, dark space i.e. the first subgraph in the second image of the bigger characterization of difference is more, then, terminal is improving second During the contrast of image, the amplitude of adjustment is bigger, to recover the details covered by the first subgraph.
For example, the 5th ratio that the first ratio that terminal calculates first image is 65%, the 5th image is 80%, Assuming that predetermined threshold value is 50%, then, the first difference of the first ratio and predetermined threshold value is 15%, the 5th ratio and predetermined threshold value The second difference be 30%.And then terminal obtains difference pair based on the correspondence between preset difference value and default adjusting parameter The adjusting parameter answered, for example, the corresponding adjusting parameter of the first difference is S1, the corresponding adjusting parameter of the second difference is S2, here, S1 is less than S2.
Step 406, the contrast based on adjusting parameter the first subgraph of increase obtain target image.
Here, the first subgraph in the second different images, specifically, terminal pin are respectively increased according to S1, S2 for terminal Improve S1 to the first subgraph on the basis of current contrast to first image, terminal is for the 5th image current right Than improving S2 to the first subgraph on the basis of degree.
It should be noted that in the present embodiment with same steps in other embodiments and the explanation of identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
The image processing method that the embodiment of the present invention is provided, it is right first after the first pending image is got First image carries out noise reduction process and obtains the second image, when secondly the first subgraph in definite second image is more, improves The contrast of first subgraph is to obtain target image;Solves in the prior art adjusting during for image progress contrast adjustment The problem of effect is poor, improves the contrast of the first subgraph in image and improves the clarity of image;Meanwhile improve end That holds is intelligent.
Based on previous embodiment, the embodiment of the present invention provides a kind of image processing method, with reference to shown in Fig. 8, this method Comprise the following steps:
Step 501, receive the second image capture instruction, and responds the second image capture instruction collection single-frame images and be used as the One image.
Here, the second image capture instruction is different from the first image capture instruction.
Step 502, carry out bilateral filtering processing to the first image, obtains the second image.
Here, bilateral filtering processing is carried out to the second image and can realizes that two-sided filter belongs to by two-sided filter Low-pass filter.The two-sided filter is a kind of image smoothing filtering technique device for denoising, but its different and other mean filter Device, two-sided filter can remove the original image i.e. grain details of the first image (being primarily referred to as small edge contour) The edge (being primarily referred to as the obvious edge contour of black-to-white transition) of black-to-white transition in the first image is protected at the same time, but black and white is excessive Edge can be enhanced, white position is whiter, and black position is more black.That is, the second obtained image does not include first High-frequency information in image, but including the corresponding high-frequency information in the excessive edge of black and white in the first image, and it is black in the first image The value of the white excessively corresponding high-frequency information in edge can become larger.Why two-sided filter can reach the effect of image smoothing, be Because two-sided filter is made of two functions, a function is to determine filter coefficient by geometric space distance, another Filter coefficient is determined by pixel value difference.
Step 503, calculate the second image in the first subgraph area and the second image area ratio.
If step 504, ratio are more than predetermined threshold value, the contrast for increasing the first subgraph based on ratio obtains target figure Picture.
It should be noted that in the present embodiment with same steps in other embodiments and the explanation of identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
The image processing method that the embodiment of the present invention is provided, it is right first after the first pending image is got First image carries out noise reduction process and obtains the second image, when secondly the dark space in definite second image is more, improves dark space Contrast is to obtain target image;Regulating effect difference asks when solving in the prior art for image progress contrast adjustment Topic, improves the contrast of dark space in image and improves the clarity of image;Meanwhile improve the intelligent of terminal.
Based on previous embodiment, the embodiment of the present invention provides a kind of terminal 9, the terminal can be applied to Fig. 3,7 and 8 pairs In a kind of image processing method that the embodiment answered provides, with reference to shown in Fig. 9, which includes:Processor 91,92 and of memory Communication bus 93, wherein:
Communication bus 93 is used for realization the communication connection between processor 91 and memory 92;
Processor 91 is used to perform image processing program in memory 92, to realize following steps:
The first pending image is obtained, and noise reduction process is carried out to the first image and obtains the second image;
Calculate the ratio of the area of the first subgraph in the second image and the area of the second image;Wherein, the first subgraph As the gray value comprising pixel in the second image is less than the pixel of default gray value;
If ratio is more than predetermined threshold value, the contrast for increasing the first subgraph based on ratio obtains target image.
In other embodiments of the invention, processor 91, which is used to perform in memory 92, obtains the first pending figure Picture, and to the first image carry out noise reduction process obtain the second image when, can also realize following steps:
The first image capture instruction is received, and responds the first image capture instruction and gathers multiple image as the first image;
Multiple first images are synthesized, and based on the frame number of multiple image to each pixel in the image after synthesis Pixel value is averaged, and obtains the second image.
In other embodiments of the invention, processor 91, which is used to perform in memory 92, obtains the first pending figure During picture, following steps can also be realized:
The second image capture instruction is received, and responds the second image capture instruction and gathers single-frame images as the first image;
Bilateral filtering processing is carried out to the first image, obtains the second image.
In other embodiments of the invention, if the ratio that processor 91 is used to perform in memory 92 is more than default threshold Value, when the contrast based on ratio the first subgraph of increase obtains target image, can also realize following steps:
If ratio is more than the difference of predetermined threshold value, ratio calculated and predetermined threshold value;
Adjusting parameter for the first subgraph is obtained based on difference;
The contrast for increasing the first subgraph based on adjusting parameter obtains target image.
In other embodiments of the invention, processor 91 is used to perform being obtained based on difference for the in memory 92 During the adjusting parameter of one subgraph, following steps can also be realized:
Correspondence between preset difference value and default adjusting parameter is inquired about based on difference, obtains the corresponding adjustment ginseng of difference Number.
In other embodiments of the invention, processor 91 is used to perform the in the second image of calculating in memory 92 During the ratio of the area of the area of one subgraph and the second image, following steps can also be realized:
Obtain the half-tone information of the second image;
First grey level histogram is generated based on half-tone information;
Smothing filtering is carried out to the first grey level histogram and obtains the second grey level histogram;
The first subgraph and the second subgraph are obtained into row threshold division to the second grey level histogram;Wherein, the second subgraph As referring to the subgraph in the second image in addition to the first subgraph;
Calculate the ratio of the area of the first subgraph and the area of the second image.
In other embodiments of the invention, processor 91 is used to perform the in the second image of calculating in memory 92 During the ratio of the area of the area of one subgraph and the second image, following steps can also be realized:
The gray value for calculating pixel in the second image is less than the quantity for the pixel for presetting gray value, obtains the first number Amount;
Calculate the ratio of the total quantity for the pixel that the first quantity is included with the second image.
It should be noted that the specific implementation process of the step in the present embodiment performed by processor, is referred to Fig. 3,5 Process is realized in the image processing method that corresponding embodiment provides with 8, and details are not described herein again.
The terminal that the embodiment of the present invention is provided, obtains the first pending image, and carries out noise reduction to the first image Processing obtains the second image;Calculate the ratio of the area of the first subgraph in the second image and the area of the second image;Wherein, The gray value that first sub-picture pack contains pixel in the second image is less than the pixel for presetting gray value;If ratio is more than default threshold Value, the contrast for increasing the first subgraph based on ratio obtain target image;That is, terminal is getting pending After one image, first to first image carry out noise reduction process obtain the second image, secondly determine second image in dark space compared with When more, the contrast of dark space is improved to obtain target image;When solving in the prior art for image progress contrast adjustment The problem of regulating effect is poor, improves the contrast of dark space in image and improves the clarity of image;Meanwhile improve terminal It is intelligent.
Based on previous embodiment, the embodiment of the present invention provides a kind of computer-readable recording medium, computer-readable to deposit Storage media is stored with one or more program, which can be performed by one or more processor, with Realize following steps:
The first pending image is obtained, and noise reduction process is carried out to the first image and obtains the second image;
Calculate the ratio of the area of the first subgraph in the second image and the area of the second image;Wherein, the first subgraph As the gray value comprising pixel in the second image is less than the pixel of default gray value;
If ratio is more than predetermined threshold value, the contrast for increasing the first subgraph based on ratio obtains target image.
In other embodiments of the invention, which can be performed by one or more processor and obtain When taking the first pending image, and the second image is obtained to the first image progress noise reduction process, following steps can also be realized:
The first image capture instruction is received, and responds the first image capture instruction and gathers multiple image as the first image;
Multiple first images are synthesized, and based on the frame number of multiple image to each pixel in the image after synthesis Pixel value is averaged, and obtains the second image.
In other embodiments of the invention, which can be performed by one or more processor and obtain When taking the first pending image, following steps can also be realized:
The second image capture instruction is received, and responds the second image capture instruction and gathers single-frame images as the first image;
Bilateral filtering processing is carried out to the first image, obtains the second image.
In other embodiments of the invention, if one or more program can be performed by one or more processor Ratio is more than predetermined threshold value, when the contrast based on ratio the first subgraph of increase obtains target image, can also realize following Step:
If ratio is more than the difference of predetermined threshold value, ratio calculated and predetermined threshold value;
Adjusting parameter for the first subgraph is obtained based on difference;
The contrast for increasing the first subgraph based on adjusting parameter obtains target image.
In other embodiments of the invention, which can perform base by one or more processor When difference obtains the adjusting parameter for the first subgraph, following steps can also be realized:
Correspondence between preset difference value and default adjusting parameter is inquired about based on difference, obtains the corresponding adjustment ginseng of difference Number.
In other embodiments of the invention, which can perform meter by one or more processor When calculating the ratio of the area of the first subgraph in the second image and the area of the second image, following steps can also be realized:
Obtain the half-tone information of the second image;
First grey level histogram is generated based on half-tone information;
Smothing filtering is carried out to the first grey level histogram and obtains the second grey level histogram;
The first subgraph and non-first subgraph are obtained into row threshold division to the second grey level histogram;Wherein, the first son The gray value that image refers to pixel in the second image is less than the first area that the pixel of default gray value forms, non-first subgraph As referring to the subgraph in the second image in addition to the first subgraph;
Calculate the ratio of the area of the first subgraph and the area of the second image.
In other embodiments of the invention, which can perform meter by one or more processor When calculating the ratio of the area of the first subgraph in the second image and the area of the second image, following steps can also be realized:
The gray value for calculating pixel in the second image is less than the quantity for the pixel for presetting gray value, obtains the first number Amount;
Calculate the ratio of the total quantity for the pixel that the first quantity is included with the second image.
It should be noted that the specific implementation process of the step in the present embodiment performed by processor, is referred to Fig. 3,7 Process is realized in the image processing method that corresponding embodiment provides with 8, and details are not described herein again.
The image processing method that the embodiment of the present invention is provided, it is right first after the first pending image is got First image carries out noise reduction process and obtains the second image, when secondly the dark space in definite second image is more, improves dark space Contrast is to obtain target image;Regulating effect difference asks when solving in the prior art for image progress contrast adjustment Topic, improves the contrast of dark space in image and improves the clarity of image;Meanwhile improve the intelligent of terminal.
It should be noted that above computer readable storage medium storing program for executing can be read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic random access store Device (Ferromagnetic Random Access Memory, FRAM), flash memory (Flash Memory), magnetic surface are deposited The memories such as reservoir, CD or read-only optical disc (Compact Disc Read-Only Memory, CD-ROM);It can also be bag One of above-mentioned memory or the various electronic equipments of any combination are included, such as mobile phone, computer, tablet device, individual digital Assistant etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes Business device, air conditioner, or network equipment etc.) perform each described method of embodiment of the present invention.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

  1. A kind of 1. image processing method, it is characterised in that the described method includes:
    The first pending image is obtained, and noise reduction process is carried out to described first image and obtains the second image;
    Calculate the ratio of the area of the first subgraph in second image and the area of second image;Wherein, it is described First subgraph is the corresponding subgraph of pixel that the gray value of pixel in second image is less than default gray value;
    If the ratio is more than predetermined threshold value, the contrast for increasing first subgraph based on the ratio obtains target figure Picture.
  2. 2. according to the method described in claim 1, it is characterized in that, described obtain pending the first image, and to described the One image carries out noise reduction process and obtains the second image, including:
    The first image capture instruction is received, and responds described first image acquisition instructions and gathers multiple image as first figure Picture;
    Multiple described first images are synthesized, and based on the frame number of multiple image to each pixel in the image after synthesis Pixel value is averaged, and obtains second image.
  3. 3. according to the method described in claim 1, it is characterized in that, described obtain pending the first image, including:
    The second image capture instruction is received, and responds second image capture instruction and gathers single-frame images as first figure Picture;
    Bilateral filtering processing is carried out to described first image, obtains second image.
  4. 4. if according to the method described in claim 1, it is characterized in that, the ratio is more than predetermined threshold value, based on described The contrast that ratio increases the first subgraph in second image obtains target image, including:
    If the ratio is more than predetermined threshold value, the difference of the ratio and the predetermined threshold value is calculated;
    Adjusting parameter for first subgraph is obtained based on the difference;
    The contrast for increasing first subgraph based on the adjusting parameter obtains the target image.
  5. 5. according to the method described in claim 4, it is characterized in that, described obtained based on the difference is directed to first subgraph The adjusting parameter of picture, including:
    Based on difference inquiry preset difference value and the correspondence of default adjusting parameter, the corresponding tune of the difference is obtained Whole parameter.
  6. 6. according to the method described in claim 1, it is characterized in that, described calculate the first subgraph in second image The ratio of area and the area of second image, including:
    Obtain the half-tone information of second image;
    First grey level histogram is generated based on the half-tone information;
    Smothing filtering is carried out to first grey level histogram and obtains the second grey level histogram;
    The first subgraph and the second subgraph are obtained into row threshold division to second grey level histogram;Wherein, described second Subgraph refers to the subgraph in addition to first subgraph in second image;
    Calculate the ratio of the area of first subgraph and the area of the second image.
  7. 7. according to the method described in claim 1, it is characterized in that, described calculate the first subgraph in second image The ratio of area and the area of second image, including:
    The gray value for calculating pixel in second image is less than the quantity for the pixel for presetting gray value, obtains the first number Amount;
    Calculate the ratio of the total quantity for the pixel that first quantity is included with second image.
  8. 8. a kind of terminal, it is characterised in that the terminal includes:Processor, memory and communication bus;
    The communication bus is used for realization the communication connection between processor and memory;
    The processor is used to perform image processing program in memory, to realize following steps:
    The first pending image is obtained, and noise reduction process is carried out to described first image and obtains the second image;
    Calculate the ratio of the area of the first subgraph in second image and the area of second image;Wherein, it is described First subgraph is the corresponding subgraph of pixel that the gray value of pixel in second image is less than default gray value;
    If the ratio is more than predetermined threshold value, increase the contrast of the first subgraph in second image based on the ratio Obtain target image.
  9. 9. terminal according to claim 8, it is characterised in that it is described to obtain pending the first image, and to described the When one image progress noise reduction process obtains the second image, the processor is additionally operable to perform described image processing routine, to realize Following steps:
    The first image capture instruction is received, and responds described first image acquisition instructions, collection multiple image is as described first Image;
    Multiple described first images are synthesized, and based on the frame number of multiple image to each pixel in the image after synthesis Pixel value is averaged, and obtains second image.
  10. A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be performed by one or more processor, to realize such as claim 1 to 7 Any one of image processing method the step of.
CN201711474644.4A 2017-12-29 2017-12-29 A kind of image processing method, terminal and computer-readable recording medium Pending CN107948531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711474644.4A CN107948531A (en) 2017-12-29 2017-12-29 A kind of image processing method, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711474644.4A CN107948531A (en) 2017-12-29 2017-12-29 A kind of image processing method, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107948531A true CN107948531A (en) 2018-04-20

Family

ID=61936966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711474644.4A Pending CN107948531A (en) 2017-12-29 2017-12-29 A kind of image processing method, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107948531A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717942A (en) * 2018-07-11 2020-01-21 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN110889802A (en) * 2018-09-10 2020-03-17 北京微播视界科技有限公司 Image processing method and device
CN113132703A (en) * 2019-12-30 2021-07-16 海信视像科技股份有限公司 Image processing method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826066A (en) * 2014-02-26 2014-05-28 芯原微电子(上海)有限公司 Automatic exposure adjusting method and system
CN104200794A (en) * 2014-08-20 2014-12-10 明基电通有限公司 Image adjusting method and display
CN104715445A (en) * 2013-12-13 2015-06-17 腾讯科技(深圳)有限公司 Image processing method and system
US20160005152A1 (en) * 2014-07-01 2016-01-07 Adobe Systems Incorporated Multi-Feature Image Haze Removal
CN105304058A (en) * 2014-06-30 2016-02-03 深圳Tcl新技术有限公司 Method and device for automatically adjusting display parameters

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715445A (en) * 2013-12-13 2015-06-17 腾讯科技(深圳)有限公司 Image processing method and system
CN103826066A (en) * 2014-02-26 2014-05-28 芯原微电子(上海)有限公司 Automatic exposure adjusting method and system
CN105304058A (en) * 2014-06-30 2016-02-03 深圳Tcl新技术有限公司 Method and device for automatically adjusting display parameters
US20160005152A1 (en) * 2014-07-01 2016-01-07 Adobe Systems Incorporated Multi-Feature Image Haze Removal
CN104200794A (en) * 2014-08-20 2014-12-10 明基电通有限公司 Image adjusting method and display

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717942A (en) * 2018-07-11 2020-01-21 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN110717942B (en) * 2018-07-11 2022-06-10 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN110889802A (en) * 2018-09-10 2020-03-17 北京微播视界科技有限公司 Image processing method and device
CN110889802B (en) * 2018-09-10 2022-12-06 北京微播视界科技有限公司 Image processing method and device
CN113132703A (en) * 2019-12-30 2021-07-16 海信视像科技股份有限公司 Image processing method and apparatus
CN113132703B (en) * 2019-12-30 2024-03-29 海信视像科技股份有限公司 Image processing method and apparatus

Similar Documents

Publication Publication Date Title
CN108495056A (en) Photographic method, mobile terminal and computer readable storage medium
CN107172364A (en) A kind of image exposure compensation method, device and computer-readable recording medium
CN110377251A (en) A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium
CN107302663A (en) A kind of brightness of image method of adjustment, terminal and computer-readable recording medium
CN107093418A (en) A kind of screen display method, computer equipment and storage medium
CN108024065A (en) A kind of method of terminal taking, terminal and computer-readable recording medium
CN108055411A (en) Flexible screen display methods, mobile terminal and computer readable storage medium
CN107317963A (en) A kind of double-camera mobile terminal control method, mobile terminal and storage medium
CN108063901A (en) A kind of image-pickup method, terminal and computer readable storage medium
CN108053371A (en) A kind of image processing method, terminal and computer readable storage medium
CN107959795A (en) A kind of information collecting method, equipment and computer-readable recording medium
CN107465869A (en) A kind of focus adjustment method and terminal
CN109064998A (en) A kind of screen luminance adjustment method, terminal and computer readable storage medium
CN109391853A (en) Barrage display methods, device, mobile terminal and readable storage medium storing program for executing
CN108171743A (en) Method, equipment and the computer for shooting image can storage mediums
CN107357500A (en) A kind of picture-adjusting method, terminal and storage medium
CN108055463A (en) Image processing method, terminal and storage medium
CN107705247A (en) A kind of method of adjustment of image saturation, terminal and storage medium
CN107172349A (en) Mobile terminal image pickup method, mobile terminal and computer-readable recording medium
CN107948531A (en) A kind of image processing method, terminal and computer-readable recording medium
CN108182664A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN110086993A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN107563975A (en) Brightness of image adjusting method, terminal and computer-readable recording medium
CN108171667A (en) A kind of image processing method, terminal and computer readable storage medium
CN109710159A (en) A kind of flexible screen response method, equipment and computer readable 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180420

WD01 Invention patent application deemed withdrawn after publication