CN108900786A - A kind of image processing method, equipment and computer readable storage medium - Google Patents

A kind of image processing method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN108900786A
CN108900786A CN201810681970.0A CN201810681970A CN108900786A CN 108900786 A CN108900786 A CN 108900786A CN 201810681970 A CN201810681970 A CN 201810681970A CN 108900786 A CN108900786 A CN 108900786A
Authority
CN
China
Prior art keywords
low
exposure
facial image
face
image region
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
CN201810681970.0A
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 CN201810681970.0A priority Critical patent/CN108900786A/en
Publication of CN108900786A publication Critical patent/CN108900786A/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/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Landscapes

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

Abstract

The invention discloses a kind of image processing methods, including:Recognition of face is carried out to collected portrait image, to obtain facial image region;Obtain the too low ratio of exposure that the too low pixel of current exposure in the facial image region accounts for all face pixels;Wherein, the too low pixel of the current exposure includes face pixel of the brightness value less than the first given threshold;In the case where the too low ratio of exposure is greater than the second given threshold, the brightness value of all too low pixels of current exposure is improved.The invention also discloses a kind of image processing equipment and computer readable storage mediums, by implementing above scheme, face in the image got when portrait can be effectively prevented from and partial exposure deficiency occur, it realizes and the image that portrait is got is automatically processed, improve the user experience of portrait.

Description

A kind of image processing method, equipment and computer readable storage medium
Technical field
The present invention relates to field of image processing more particularly to a kind of image processing methods, equipment and computer-readable storage Medium.
Background technique
When by electronic equipment (such as:Intelligent movable equipment) carry out portrait when, can because face in nose The protrusions such as point and/or forehead, during progress backlight is taken pictures, light is due to blocking, so shooting the photo meeting come It is quick-fried too low to there is facial local light, and the too low beauty and authenticity for having seriously affected image of the large area partial exposure of face. The application of recognition of face and/or detection etc. is carried out by image simultaneously, it will cause under recognition of face and/or detection accuracy Drop results even in recognition of face and/or detection failure or mistake.
Summary of the invention
It is a primary object of the present invention to propose a kind of image processing method, equipment and computer readable storage medium, purport When solving in the prior art when portrait, there is the too low defect of partial exposure in face.
To achieve the above object, a kind of image processing method provided by the invention, including:
Recognition of face is carried out to collected portrait image, to obtain facial image region;
Obtain the too low ratio of exposure that the too low pixel of current exposure in the facial image region accounts for all face pixels Example;Wherein, the too low pixel of the current exposure includes face pixel of the brightness value less than the first given threshold;
In the case where the too low ratio of exposure is greater than the second given threshold, all too low pictures of current exposure are improved The brightness value of vegetarian refreshments.
Optionally, the too low pixel of current exposure accounts for all face pixels in the acquisition facial image region Too low ratio is exposed, including:
The brightness value of all face pixels in the facial image region is counted, to obtain the facial image area The brightness histogram in domain;
By analyzing the brightness histogram in the facial image region, to obtain current exposure in the facial image region Too low pixel accounts for the too low ratio of exposure of all face pixels.
Optionally, the brightness value for improving all too low pixels of current exposure, including:
One or many brightness value adjustment operations are executed to the too low pixel of current exposure in the facial image region, Until the too low ratio of exposure is less than or equal to the second given threshold;
Wherein, the brightness value adjustment operation, including:By the too low pixel of current exposure in the facial image region Brightness value add brightness adjustment value.
Optionally, the method for determination of the brightness adjustment value, including:
The mean value of brightness value based on the too low pixel of all current exposures, first given threshold and the exposure Too low ratio determines the brightness adjustment value.
Optionally, the brightness adjustment value=(mean value+the first of the brightness value of all too low pixels of current exposure is default Brightness) × too low the ratio of the exposure.
Optionally, the brightness value for improving all too low pixels of current exposure, including:
The brightness value of all too low pixels of current exposure is improved to the second predetermined luminance value;Wherein, described Two predetermined luminance values are greater than or equal to first given threshold.
In addition, to achieve the above object, the present invention also proposes a kind of equipment, the equipment include processor, memory and Display screen;
The processor is used to execute the program of the image procossing stored in memory, to realize following steps:
Recognition of face is carried out to collected portrait image, to obtain facial image region;
Obtain the too low ratio of exposure that the too low pixel of current exposure in the facial image region accounts for all face pixels Example;Wherein, the too low pixel of the current exposure includes face pixel of the brightness value less than the first given threshold;
In the case where the too low ratio of exposure is greater than the second given threshold, all too low pictures of current exposure are improved The brightness value of vegetarian refreshments.
Optionally, the too low pixel of current exposure accounts for all face pixels in the acquisition facial image region Too low ratio is exposed, including:
The brightness value of all face pixels in the facial image region is counted, to obtain the facial image area The brightness histogram in domain;
By analyzing the brightness histogram in the facial image region, to obtain current exposure in the facial image region Too low pixel accounts for the too low ratio of exposure of all face pixels.
Optionally, the brightness value of all too low pixels of the current exposure is improved, including:
One or many brightness value adjustment operations are executed to the too low pixel of current exposure in the facial image region, Until the too low ratio of exposure is less than or equal to the second given threshold;
Wherein, the brightness value adjustment operation, including:By the too low pixel of current exposure in the facial image region Brightness value add brightness adjustment value,
Optionally, the method for determination of the brightness adjustment value, including:
The mean value of brightness value based on the too low pixel of all current exposures, first given threshold and the exposure Too low ratio determines the brightness adjustment value.
Optionally, the brightness adjustment value=(mean value+the first of the brightness value of all too low pixels of current exposure is default Brightness value) × too low the ratio of the exposure.
Optionally, the brightness value for improving all too low pixels of current exposure, including:
The brightness value of all too low pixels of current exposure is improved to the second predetermined luminance setting value;Wherein, Second predetermined luminance value is less than or equal to first given threshold.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable Storage medium is stored with one or more program, and one or more of programs can be held by one or more processor Row, the step of to realize above-mentioned image processing method.
A kind of image processing method, equipment and computer readable storage medium proposed by the present invention, can be effectively prevented from There is local overexposure in face in the image got when portrait, realizes and locates automatically to the image that portrait is got Reason, improves the user experience of portrait.
Detailed description of the invention
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention;
Fig. 2 is the image processing method flow chart of first embodiment of the invention;
Fig. 3 is the image processing method flow chart of second embodiment of the invention;
Fig. 4 is second embodiment of the invention to collected portrait image progress recognition of face schematic diagram;
Fig. 5 is second embodiment of the invention to collected brightness histogram schematic diagram;
Fig. 6 is that being obtained by brightness histogram for second embodiment of the invention exposes too low ratio schematic diagram;
Fig. 7 is the image processing method flow chart of third embodiment of the invention;
Fig. 8 is Image Processing Structure schematic diagram of the present invention the 4th to sixth embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
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 Moving 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 shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
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.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the method for the present invention is proposed.
First embodiment of the invention, a kind of image processing method, as shown in Fig. 2, including step in detail below:
Step S101 carries out recognition of face to collected portrait image, to obtain facial image region.
In the present embodiment, include but is not limited to the mode of collected portrait image progress recognition of face:By pre- The human face recognition model set carries out recognition of face to collected portrait image.
Step S102 obtains the too low pixel of current exposure in facial image region and accounts for the exposed of all face pixels Low ratio;Wherein, the too low pixel of current exposure includes face pixel of the brightness value less than the first given threshold.
In the present embodiment, the first given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set, be also possible to according to acquire the portrait image image capture device (such as:Mobile terminal) tolerance setting Threshold value, be also possible to according to present the portrait image image display (such as:Display) tolerance setting threshold Value.
Such as:Step S102, including:It obtains current 50 exposed low pixel points in facial image region and accounts for all 1000 The too low ratio 5% of the exposure of a face pixel;Wherein, current 50 exposed low pixel points include that brightness value is set less than first Determine 50 face pixels of threshold value 250.
The too low ratio of exposure of all face pixels is accounted for by obtaining the too low pixel of current exposure in facial image region Example can effectively judge whether the portrait image excessive exposed low pixel point occurs based on too low ratio is exposed, lead to shadow Ring the beauty and authenticity of the portrait image;Or based on exposing too low ratio effectively judge to pass through the portrait image whether can be by In excessive exposed low pixel point, recognition of face and/or detection accuracy is caused to decline, result even in recognition of face and/or Detection failure or mistake.
It is too low to improve all current exposures in the case where exposing too low ratio greater than the second given threshold by step S103 The brightness value of pixel.
In the present embodiment, the second given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set is also possible to the threshold value according to the best portrait image display effect setting got by limited times test, It can be the threshold value according to the best portrait image display effect setting got by limited times Computer Simulation, be also possible to According to the threshold value of the best recognition of face and/or detection accuracy setting that are got by limited times test, it is also possible to according to logical Cross the threshold value of best recognition of face and/or detection accuracy setting that limited times Computer Simulation is got.
In the present embodiment, the brightness value mode for improving all too low pixels of current exposure is not specifically limited, it can To be by the brightness value of the too low pixel of all current exposures plus setting adjusted value.
Such as:Step S103 is improved all current in the case where exposing too low ratio greater than the second given threshold 10% The brightness value of exposed low pixel point.
For another example:Step S103, in the case where exposing too low ratio greater than the second given threshold 10%, by all current exposures The brightness value of the too low pixel of light is plus setting adjusted value 200.
The brightness value of the exposed low pixel point in facial image region by improving portrait image, can effectively increase The beauty and authenticity of strong portrait image;Or effectively improve recognition of face and/or precision and efficiency of detecting.
Image processing method described in first embodiment of the invention can be effectively prevented from and get when portrait Face occurs that partial exposure is too low in image, realizes and automatically processes to the image that portrait is got, and improves portrait bat The user experience taken the photograph.
Second embodiment of the invention, a kind of image processing method, as shown in Fig. 3~Fig. 6, including step in detail below:
Step S201 carries out recognition of face to collected portrait image, to obtain facial image region.
In the present embodiment, include but is not limited to the mode of collected portrait image progress recognition of face:By pre- The human face recognition model set carries out recognition of face to collected portrait image.
For example, as shown in figure 4, step S201, including:Recognition of face is carried out to collected portrait image, to obtain people Face image region.
Step S202 counts the brightness value of all face pixels in facial image region, to obtain facial image region Brightness histogram.
In the present embodiment, to the brightness value of all face pixels in statistics facial image region, to obtain facial image The mode of the brightness histogram in region is not specifically limited;Wherein, as shown in figure 5, the longitudinal axis of brightness histogram is pixel quantity, The horizontal axis of brightness histogram is brightness value.
Step S203 is currently exposed by analyzing the brightness histogram in facial image region with obtaining in facial image region The too low pixel of light accounts for the too low ratio of exposure of all face pixels;Wherein, the too low pixel of current exposure includes brightness value Less than the face pixel of the first given threshold.
In the present embodiment, the first given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set, be also possible to according to acquire the portrait image image capture device (such as:Mobile terminal) tolerance setting Threshold value, be also possible to according to present the portrait image image display (such as:Display) tolerance setting threshold Value.
In the present embodiment, by analyze facial image region brightness histogram, with obtain in facial image region when The mode that the too low pixel of prior exposure accounts for the too low ratio of exposure of all face pixels includes but is not limited to:
Current exposure too low picture of the brightness value less than the first given threshold in the brightness histogram in acquisition facial image region The quantity of vegetarian refreshments;
According to the quantity of the too low pixel of current exposure and the quantity of all face pixels, calculates and expose too low ratio; Wherein, too low ratio=(quantity of the too low pixel of current exposure/all faces pixel quantity) × 100% is exposed.
Such as:Step S203, including:As shown in fig. 6, by the brightness histogram in analysis facial image region, to obtain The too low ratio 5% of exposure that current 50 exposed low pixel points account for all 1000 face pixels in facial image region; Wherein, current 50 exposed low pixel points include 50 face pixels of the brightness value less than the first given threshold 250.
The too low ratio of exposure of all face pixels is accounted for by obtaining the too low pixel of current exposure in facial image region Example can effectively judge whether the portrait image excessive exposed low pixel point occurs based on too low ratio is exposed, lead to shadow Ring the beauty and authenticity of the portrait image;Or based on exposing too low ratio effectively judge to pass through the portrait image whether can be by In excessive exposed low pixel point, recognition of face and/or detection accuracy is caused to decline, result even in recognition of face and/or Detection failure or mistake.
Step S204, in the case where exposing too low ratio greater than the second given threshold, to working as in facial image region The too low pixel of prior exposure executes one or many brightness value adjustment operations, sets until exposing too low ratio and being less than or equal to second Determine threshold value;Wherein, brightness value adjustment operation, including:By the brightness value of the too low pixel of current exposure in facial image region In addition brightness adjustment value.
Optionally, the acquisition modes of brightness adjustment value include but is not limited to:Based on the too low pixel of all current exposures The mean value of brightness value, the first given threshold, and the too low ratio of exposure, determine brightness adjustment value.
Optionally, brightness adjustment value=(setting threshold of mean value+the first of the brightness value of all too low pixels of current exposure Value) × too low the ratio of exposure.
In the present embodiment, the first predetermined luminance value is not specifically limited, can be the engineering experience according to engineer The brightness value of setting is also possible to the brightness value of fastest adjustment portrait image setting obtained according to limited trials, It is also possible to the brightness value of fastest adjustment portrait image setting obtained according to limited times Computer Simulation, is also possible to The brightness value that the best adjustment portrait image of the image quality obtained according to limited trials is arranged, is also possible to be calculated according to limited times The brightness value of the best adjustment portrait image setting of the image quality that machine emulation obtains.Optionally, step S204 includes the following steps:
Step A1, in the case where exposing too low ratio greater than the second given threshold, to each in facial image region Current exposure crosses the brightness value of low pixel plus brightness adjustment value, wherein and brightness adjustment value=(all current exposures cross low pixel The+the first predetermined luminance value of mean value of the brightness value of point) × too low the ratio of exposure;
Step A2, acquisition execute the step after A1 that the too low pixel of current exposure accounts for all faces in facial image region The too low ratio of the exposure of pixel;
Whether step A3, the too low ratio of the exposure that judgment step A2 is obtained are greater than the second given threshold;It is obtained in step A2 The too low ratio of exposure be greater than the second given threshold in the case where, again execute step A1.
In the present embodiment, the second given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set is also possible to the threshold value according to the best portrait image display effect setting got by limited times test, It can be the threshold value according to the best portrait image display effect setting got by limited times Computer Simulation, be also possible to According to the threshold value of the best recognition of face and/or detection accuracy setting that are got by limited times test, it is also possible to according to logical Cross the threshold value of best recognition of face and/or detection accuracy setting that limited times Computer Simulation is got.
The brightness value of the exposed low pixel point in facial image region by improving portrait image, can effectively increase The beauty and authenticity of strong portrait image;Or effectively improve recognition of face and/or precision and efficiency of detecting.
Image processing method described in second embodiment of the invention can be effectively prevented from and get when portrait Face occurs that partial exposure is too low in image, realizes and automatically processes to the image that portrait is got, and improves portrait bat The user experience taken the photograph.
Third embodiment of the invention, a kind of image processing method, as shown in fig. 7, comprises step in detail below:
Step S301 carries out recognition of face to collected portrait image, to obtain facial image region.
In the present embodiment, include but is not limited to the mode of collected portrait image progress recognition of face:By pre- The human face recognition model set carries out recognition of face to collected portrait image.
Step S302 counts the brightness value of all face pixels in facial image region, to obtain facial image region Brightness histogram.
In the present embodiment, to the brightness value of all face pixels in statistics facial image region, to obtain facial image The mode of the brightness histogram in region is not specifically limited;Wherein, the longitudinal axis of brightness histogram is pixel quantity, brightness histogram Horizontal axis be brightness value.
Step S303 is currently exposed by analyzing the brightness histogram in facial image region with obtaining in facial image region The too low pixel of light accounts for the too low ratio of exposure of all face pixels;Wherein, the too low pixel of current exposure includes brightness value Less than the face pixel of the first given threshold.
In the present embodiment, the first given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set, be also possible to according to acquire the portrait image image capture device (such as:Mobile terminal) tolerance setting Threshold value, be also possible to according to present the portrait image image display (such as:Display) tolerance setting threshold Value.
In the present embodiment, by analyze facial image region brightness histogram, with obtain in facial image region when The mode that the too low pixel of prior exposure accounts for the too low ratio of exposure of all face pixels includes but is not limited to:
Current exposure too low picture of the brightness value less than the first given threshold in the brightness histogram in acquisition facial image region The quantity of vegetarian refreshments;
According to the quantity of the too low pixel of current exposure and the quantity of all face pixels, calculates and expose too low ratio; Wherein, too low ratio=(quantity of the too low pixel of current exposure/all faces pixel quantity) × 100% is exposed.Example Such as:Step S303, including:By analyzing the brightness histogram in facial image region, to obtain current 50 in facial image region The too low ratio 5% of exposure that a exposed low pixel point accounts for all 1000 face pixels;Wherein, current 50 exposures are too low Pixel includes 50 face pixels of the brightness value less than the first given threshold 250.
The too low ratio of exposure of all face pixels is accounted for by obtaining the too low pixel of current exposure in facial image region Example can effectively judge whether the portrait image excessive exposed low pixel point occurs based on too low ratio is exposed, lead to shadow Ring the beauty and authenticity of the portrait image;Or based on exposing too low ratio effectively judge to pass through the portrait image whether can be by In excessive exposed low pixel point, recognition of face and/or detection accuracy is caused to decline, result even in recognition of face and/or Detection failure or mistake.
Step S304, in the case where exposing too low ratio greater than the second given threshold, by the too low picture of all current exposures The brightness value of vegetarian refreshments is improved to the second predetermined luminance value;Wherein, the second predetermined luminance value is greater than or equal to the first given threshold.
In the present embodiment, the second given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set is also possible to the threshold value according to the best portrait image display effect setting got by limited times test, It can be the threshold value according to the best portrait image display effect setting got by limited times Computer Simulation, be also possible to According to the threshold value of the best recognition of face and/or detection accuracy setting that are got by limited times test, it is also possible to according to logical Cross the threshold value of best recognition of face and/or detection accuracy setting that limited times Computer Simulation is got.
The brightness value of the exposed low pixel point in facial image region by improving portrait image, can effectively increase The beauty and authenticity of strong portrait image;Or effectively improve recognition of face and/or precision and efficiency of detecting.
Such as:Step S304, including:It, will in the case where exposing too low ratio 20% greater than the second given threshold 10% The brightness value of all too low pixels of current exposure is improved to the second predetermined luminance value;Wherein, the second predetermined luminance value be greater than or Equal to the first given threshold 250.
Image processing method described in third embodiment of the invention can be effectively prevented from and get when portrait Face occurs that partial exposure is too low in image, realizes and automatically processes to the image that portrait is got, and improves portrait bat The user experience taken the photograph.
Fourth embodiment of the invention, a kind of equipment, as shown in figure 8, including consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU), it can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) recognition of face is carried out to collected portrait image, to obtain facial image region.
In the present embodiment, include but is not limited to the mode of collected portrait image progress recognition of face:By pre- The human face recognition model set carries out recognition of face to collected portrait image.
2) the too low ratio of exposure that the too low pixel of current exposure in facial image region accounts for all face pixels is obtained; Wherein, the too low pixel of current exposure includes face pixel of the brightness value less than the first given threshold.
In the present embodiment, the first given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set, be also possible to according to acquire the portrait image image capture device (such as:Mobile terminal) tolerance setting Threshold value, be also possible to according to present the portrait image image display (such as:Display) tolerance setting threshold Value.
Such as:It obtains current 50 exposed low pixel points in facial image region and accounts for all 1000 face pixels Expose too low ratio 5%;Wherein, current 50 exposed low pixel points include 50 of brightness value less than the first given threshold 250 A face pixel.
The too low ratio of exposure of all face pixels is accounted for by obtaining the too low pixel of current exposure in facial image region Example can effectively judge whether the portrait image excessive exposed low pixel point occurs based on too low ratio is exposed, lead to shadow Ring the beauty and authenticity of the portrait image;Or based on exposing too low ratio effectively judge to pass through the portrait image whether can be by In excessive exposed low pixel point, recognition of face and/or detection accuracy is caused to decline, result even in recognition of face and/or Detection failure or mistake.
3) in the case where exposing too low ratio greater than the second given threshold, the too low pixel of all current exposures is improved Brightness value.
In the present embodiment, the second given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set is also possible to the threshold value according to the best portrait image display effect setting got by limited times test, It can be the threshold value according to the best portrait image display effect setting got by limited times Computer Simulation, be also possible to According to the threshold value of the best recognition of face and/or detection accuracy setting that are got by limited times test, it is also possible to according to logical Cross the threshold value of best recognition of face and/or detection accuracy setting that limited times Computer Simulation is got.
In the present embodiment, the brightness value mode for reducing all too low pixels of current exposure is not specifically limited, it can To be by the brightness value of the too low pixel of all current exposures plus setting adjusted value.
Such as:In the case where exposing too low ratio greater than the second given threshold 10%, it is too low to reduce all current exposures The brightness value of pixel.
For another example:In the case where exposing too low ratio greater than the second given threshold 10%, by the too low picture of all current exposures The brightness value of vegetarian refreshments subtracts setting adjusted value 200.
The brightness value of the exposed low pixel point in facial image region by improving portrait image, can effectively increase The beauty and authenticity of strong portrait image;Or effectively improve recognition of face and/or precision and efficiency of detecting.
Image processing equipment described in fourth embodiment of the invention can be effectively prevented from and get when portrait Face occurs that partial exposure is too low in image, realizes and automatically processes to the image that portrait is got, and improves portrait bat The user experience taken the photograph.
Fifth embodiment of the invention, a kind of equipment, as shown in figure 8, including consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit, can also be digital signal processor, dedicated Integrated circuit, or be arranged to implement one or more integrated circuits of the embodiment of the present invention.Wherein, memory 502 is used In the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory, such as random access memory;Memory 502 also may include nonvolatile memory, such as Read-only memory, flash memory, hard disk or solid state hard disk;Memory 502 can also include the group of the memory of mentioned kind It closes.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) recognition of face is carried out to collected portrait image, to obtain facial image region.
In the present embodiment, include but is not limited to the mode of collected portrait image progress recognition of face:By pre- The human face recognition model set carries out recognition of face to collected portrait image.
2) brightness value of all face pixels in facial image region is counted, it is straight with the brightness for obtaining facial image region Fang Tu.
In the present embodiment, to the brightness value of all face pixels in statistics facial image region, to obtain facial image The mode of the brightness histogram in region is not specifically limited;Wherein, the longitudinal axis of brightness histogram is pixel quantity, brightness histogram Horizontal axis be brightness value.
3) by the brightness histogram in analysis facial image region, to obtain the too low picture of current exposure in facial image region Vegetarian refreshments accounts for the too low ratio of exposure of all face pixels;Wherein, the too low pixel of current exposure includes brightness value less than first The face pixel of given threshold.
In the present embodiment, the first given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set, be also possible to according to acquire the portrait image image capture device (such as:Mobile terminal) tolerance setting Threshold value, be also possible to according to present the portrait image image display (such as:Display) tolerance setting threshold Value.
In the present embodiment, by analyze facial image region brightness histogram, with obtain in facial image region when The mode that the too low pixel of prior exposure accounts for the too low ratio of exposure of all face pixels includes but is not limited to:
Current exposure too low picture of the brightness value less than the first given threshold in the brightness histogram in acquisition facial image region The quantity of vegetarian refreshments;
According to the quantity of the too low pixel of current exposure and the quantity of all face pixels, calculates and expose too low ratio; Wherein, too low ratio=(quantity of the too low pixel of current exposure/all faces pixel quantity) × 100% is exposed.
Such as:By analyzing the brightness histogram in facial image region, to obtain current 50 exposures in facial image region The too low pixel of light accounts for the too low ratio 5% of exposure of all 1000 face pixels;Wherein, current 50 exposed low pixels Point includes 50 face pixels of the brightness value less than the first given threshold 250.
The too low ratio of exposure of all face pixels is accounted for by obtaining the too low pixel of current exposure in facial image region Example can effectively judge whether the portrait image excessive exposed low pixel point occurs based on too low ratio is exposed, lead to shadow Ring the beauty and authenticity of the portrait image;Or based on exposing too low ratio effectively judge to pass through the portrait image whether can be by In excessive exposed low pixel point, recognition of face and/or detection accuracy is caused to decline, result even in recognition of face and/or Detection failure or mistake.
4) in the case where exposing too low ratio greater than the second given threshold, to the current exposure mistake in facial image region Low pixel point executes one or many brightness value adjustment operations, until exposing too low ratio is less than or equal to the second given threshold; Wherein, brightness value adjustment operation, including:The brightness value of the too low pixel of current exposure in facial image region is added into brightness Adjusted value.
Optionally, the acquisition modes of brightness adjustment value include but is not limited to:Based on the too low pixel of all current exposures The mean value of brightness value, the first given threshold, and the too low ratio of exposure, determine brightness adjustment value.
Optionally, brightness adjustment value=(setting threshold of mean value+the first of the brightness value of all too low pixels of current exposure Value) × too low the ratio of exposure.
In the present embodiment, the first predetermined luminance value is not specifically limited, can be the engineering experience according to engineer The brightness value of setting is also possible to the brightness value of fastest adjustment portrait image setting obtained according to limited trials, It is also possible to the brightness value of fastest adjustment portrait image setting obtained according to limited times Computer Simulation, is also possible to The brightness value that the best adjustment portrait image of the image quality obtained according to limited trials is arranged, is also possible to be calculated according to limited times The brightness value of the best adjustment portrait image setting of the image quality that machine emulation obtains.Optionally, too low ratio is being exposed greater than second In the case where given threshold, one or many brightness values are executed to the too low pixel of current exposure in facial image region and are adjusted Operation includes the following steps until exposing the mode that too low ratio is greater than or equal to the second given threshold:
Step A1, in the case where exposing too low ratio greater than the second given threshold, to each in facial image region The brightness value that current exposure crosses low pixel subtracts brightness adjustment value, wherein and brightness adjustment value=(all current exposures cross low pixel The+the first predetermined luminance value of mean value of the brightness value of point) × too low the ratio of exposure;
Step A2, acquisition execute the step after A1 that the too low pixel of current exposure accounts for all faces in facial image region The too low ratio of the exposure of pixel;
Whether step A3, the too low ratio of the exposure that judgment step A2 is obtained are greater than the second given threshold;It is obtained in step A2 The too low ratio of exposure be greater than the second given threshold in the case where, again execute step A1.
In the present embodiment, the second given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set is also possible to the threshold value according to the best portrait image display effect setting got by limited times test, It can be the threshold value according to the best portrait image display effect setting got by limited times Computer Simulation, be also possible to According to the threshold value of the best recognition of face and/or detection accuracy setting that are got by limited times test, it is also possible to according to logical Cross the threshold value of best recognition of face and/or detection accuracy setting that limited times Computer Simulation is got.
The brightness value of the exposed low pixel point in facial image region by reducing portrait image, can effectively increase The beauty and authenticity of strong portrait image;Or effectively improve recognition of face and/or precision and efficiency of detecting.
Image processing equipment described in fifth embodiment of the invention can be effectively prevented from and get when portrait There is partial exposure deficiency in face in image, realizes and automatically processes to the image that portrait is got, and improves portrait bat The user experience taken the photograph.
Sixth embodiment of the invention, a kind of equipment, as shown in figure 8, including consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit, can also be digital signal processor, dedicated Integrated circuit, or be arranged to implement one or more integrated circuits of the embodiment of the present invention.Wherein, memory 502 is used In the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory, such as random access memory;Memory 502 also may include nonvolatile memory, such as Read-only memory, flash memory, hard disk or solid state hard disk;Memory 502 can also include the group of the memory of mentioned kind It closes.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) recognition of face is carried out to collected portrait image, to obtain facial image region.
In the present embodiment, include but is not limited to the mode of collected portrait image progress recognition of face:By pre- The human face recognition model set carries out recognition of face to collected portrait image.
2) brightness value of all face pixels in facial image region is counted, it is straight with the brightness for obtaining facial image region Fang Tu.
In the present embodiment, to the brightness value of all face pixels in statistics facial image region, to obtain facial image The mode of the brightness histogram in region is not specifically limited;Wherein, the longitudinal axis of brightness histogram is pixel quantity, brightness histogram Horizontal axis be brightness value.
3) by the brightness histogram in analysis facial image region, to obtain the too low picture of current exposure in facial image region Vegetarian refreshments accounts for the too low ratio of exposure of all face pixels;Wherein, the too low pixel of current exposure includes brightness value less than first The face pixel of given threshold.
In the present embodiment, the first given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set, be also possible to according to acquire the portrait image image capture device (such as:Mobile terminal) tolerance setting Threshold value, be also possible to according to present the portrait image image display (such as:Display) tolerance setting threshold Value.
In the present embodiment, by analyze facial image region brightness histogram, with obtain in facial image region when The mode that the too low pixel of prior exposure accounts for the too low ratio of exposure of all face pixels includes but is not limited to:
Current exposure too low picture of the brightness value less than the first given threshold in the brightness histogram in acquisition facial image region The quantity of vegetarian refreshments;
According to the quantity of the too low pixel of current exposure and the quantity of all face pixels, calculates and expose too low ratio; Wherein, too low ratio=(quantity of the too low pixel of current exposure/all faces pixel quantity) × 100% is exposed.
Such as:By analyzing the brightness histogram in facial image region, to obtain current 50 exposures in facial image region The too low pixel of light accounts for the too low ratio 5% of exposure of all 1000 face pixels;Wherein, current 50 exposed low pixels Point includes 50 face pixels that brightness value is greater than the first given threshold 250.
The too low ratio of exposure of all face pixels is accounted for by obtaining the too low pixel of current exposure in facial image region Example can effectively judge whether the portrait image excessive exposed low pixel point occurs based on too low ratio is exposed, lead to shadow Ring the beauty and authenticity of the portrait image;Or based on exposing too low ratio effectively judge to pass through the portrait image whether can be by In excessive exposed low pixel point, recognition of face and/or detection accuracy is caused to decline, result even in recognition of face and/or Detection failure or mistake.
4) in the case where exposing too low ratio greater than the second given threshold, by the bright of the too low pixel of all current exposures Angle value is improved to the second predetermined luminance value;Wherein, the second predetermined luminance value is greater than or equal to the first given threshold.
In the present embodiment, the second given threshold is not specifically limited, can be and is set according to the engineering experience of engineer The threshold value set is also possible to the threshold value according to the best portrait image display effect setting got by limited times test, It can be the threshold value according to the best portrait image display effect setting got by limited times Computer Simulation, be also possible to According to the threshold value of the best recognition of face and/or detection accuracy setting that are got by limited times test, it is also possible to according to logical Cross the threshold value of best recognition of face and/or detection accuracy setting that limited times Computer Simulation is got.
The brightness value of the exposed low pixel point in facial image region by reducing portrait image, can effectively increase The beauty and authenticity of strong portrait image;Or effectively improve recognition of face and/or precision and efficiency of detecting.
Such as:In the case where exposing too low ratio 20% greater than the second given threshold 10%, by all current exposure mistakes The brightness value of low pixel point is improved to setting value;Wherein, setting value is greater than or equal to the first given threshold 250.
Image processing equipment described in sixth embodiment of the invention can be effectively prevented from and get when portrait Face occurs that partial exposure is too low in image, realizes and automatically processes to the image that portrait is got, and improves portrait bat The user experience taken the photograph.
Seventh embodiment of the invention, a kind of computer readable storage medium.
Computer storage medium can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storage Device, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art storage medium.
Computer-readable recording medium storage has one or more program, one or more program can by one or The multiple processors of person execute, with realize first embodiment of the invention into third embodiment of the invention in any embodiment part or Overall Steps.
Computer readable storage medium described in seventh embodiment of the invention is stored with one or more program, this one A or multiple programs can be executed by one or more processor, can be effectively prevented from the figure got when portrait There is local overexposure in face as in, realizes and automatically processes to the image that portrait is got, improves the use of portrait Family experience.
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, which is characterized in that including:
Recognition of face is carried out to collected portrait image, to obtain facial image region;
Obtain the too low ratio of exposure that the too low pixel of current exposure in the facial image region accounts for all face pixels;Its In, the too low pixel of current exposure includes face pixel of the brightness value less than the first given threshold;
In the case where the too low ratio of exposure is greater than the second given threshold, all too low pixels of current exposure are improved Brightness value.
2. the method according to claim 1, wherein described obtain current exposure mistake in the facial image region Low pixel point accounts for the too low ratio of exposure of all face pixels, including:
The brightness value of all face pixels in the facial image region is counted, to obtain the facial image region Brightness histogram;
It is too low to obtain current exposure in the facial image region by analyzing the brightness histogram in the facial image region Pixel accounts for the too low ratio of exposure of all face pixels.
3. method according to claim 1 or 2, which is characterized in that all current exposures of raising cross low pixel The brightness value of point, including:
One or many brightness value adjustment operations are executed to the too low pixel of current exposure in the facial image region, until The too low ratio of exposure is less than or equal to the second given threshold;
Wherein, the brightness value adjustment operation, including:By the bright of the too low pixel of current exposure in the facial image region Angle value adds brightness adjustment value.
4. according to the method described in claim 3, it is characterized in that, the method for determination of the brightness adjustment value, including:
The mean value of brightness value based on the too low pixel of all current exposures, first given threshold and the exposure are too low Ratio determines the brightness adjustment value.
5. according to the method described in claim 4, it is characterized in that, the brightness adjustment value=(all too low pictures of current exposure The+the first predetermined luminance value of mean value of the brightness value of vegetarian refreshments) × too low the ratio of the exposure.
6. method according to claim 1 or 2, which is characterized in that all current exposures of raising cross low pixel The brightness value of point, including:
The brightness value of all too low pixels of current exposure is improved to the second predetermined luminance value;Wherein, described second is pre- If brightness value is greater than or equal to first given threshold.
7. a kind of equipment, which is characterized in that the equipment includes processor, memory and display screen;
The processor is used to execute the program of the image procossing stored in memory, to realize following steps:
Recognition of face is carried out to collected portrait image, to obtain facial image region;
Obtain the too low ratio of exposure that the too low pixel of current exposure in the facial image region accounts for all face pixels;Its In, the too low pixel of current exposure includes face pixel of the brightness value less than the first given threshold;
In the case where the too low ratio of exposure is greater than the second given threshold, all too low pixels of current exposure are improved Brightness value.
8. equipment according to claim 7, which is characterized in that described to obtain current exposure mistake in the facial image region Low pixel point accounts for the too low ratio of exposure of all face pixels, including:
The brightness value of all face pixels in the facial image region is counted, to obtain the facial image region Brightness histogram;
It is too low to obtain current exposure in the facial image region by analyzing the brightness histogram in the facial image region Pixel accounts for the too low ratio of exposure of all face pixels.
9. equipment according to claim 7 or 8, which is characterized in that all current exposures of raising cross low pixel The brightness value of point, including:
One or many brightness value adjustment operations are executed to the too low pixel of current exposure in the facial image region, until The too low ratio of exposure is less than or equal to the second given threshold;
Wherein, the brightness value adjustment operation, including:By the bright of the too low pixel of current exposure in the facial image region Angle value adds brightness adjustment value.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, with realize according to claim 1~ The step of image processing method described in any one of 6.
CN201810681970.0A 2018-06-27 2018-06-27 A kind of image processing method, equipment and computer readable storage medium Pending CN108900786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810681970.0A CN108900786A (en) 2018-06-27 2018-06-27 A kind of image processing method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810681970.0A CN108900786A (en) 2018-06-27 2018-06-27 A kind of image processing method, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108900786A true CN108900786A (en) 2018-11-27

Family

ID=64346885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810681970.0A Pending CN108900786A (en) 2018-06-27 2018-06-27 A kind of image processing method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108900786A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970462A (en) * 2020-08-20 2020-11-20 Oppo(重庆)智能科技有限公司 Exposure processing method, exposure processing apparatus, electronic device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227562A (en) * 2007-01-19 2008-07-23 华晶科技股份有限公司 Luminance correcting method
CN103248828A (en) * 2012-02-13 2013-08-14 宏达国际电子股份有限公司 Exposure value adjustment apparatus and method
CN105608677A (en) * 2015-12-28 2016-05-25 成都品果科技有限公司 Image skin color beautifying method and system under any lighting conditions
CN105827993A (en) * 2016-04-05 2016-08-03 福建联迪商用设备有限公司 Method and system for adjusting image exposure degree
CN107945107A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227562A (en) * 2007-01-19 2008-07-23 华晶科技股份有限公司 Luminance correcting method
CN103248828A (en) * 2012-02-13 2013-08-14 宏达国际电子股份有限公司 Exposure value adjustment apparatus and method
CN105608677A (en) * 2015-12-28 2016-05-25 成都品果科技有限公司 Image skin color beautifying method and system under any lighting conditions
CN105827993A (en) * 2016-04-05 2016-08-03 福建联迪商用设备有限公司 Method and system for adjusting image exposure degree
CN107945107A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970462A (en) * 2020-08-20 2020-11-20 Oppo(重庆)智能科技有限公司 Exposure processing method, exposure processing apparatus, electronic device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN110377251A (en) A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium
CN108495056A (en) Photographic method, mobile terminal and computer readable storage medium
CN109035185A (en) A kind of image processing method and terminal
CN108900778A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN110417999A (en) Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN109947248A (en) Vibration control method, mobile terminal and computer readable storage medium
CN109889695A (en) A kind of image-region determines method, terminal and computer readable storage medium
CN110198379A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN108833665A (en) Communication means, wearable device and computer readable storage medium
CN109195213A (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN109218527A (en) screen brightness control method, mobile terminal and computer readable storage medium
CN108965589A (en) A kind of screen brightness control method, terminal and computer readable storage medium
CN108200229A (en) Image pickup method, terminal and the computer readable storage medium of flexible screen terminal
CN109616081A (en) Display lightness regulating method, flexible screen terminal and computer readable storage medium
CN105120158B (en) The image pickup method and device of mobile terminal
CN110069167A (en) Touch point sweep-out method, mobile terminal and computer readable storage medium
CN108900779A (en) Initial automatic exposure convergence method, mobile terminal and computer readable storage medium
CN108650466A (en) The method and electronic equipment of photo tolerance are promoted when a kind of strong light or reversible-light shooting portrait
CN108920047A (en) A kind of control method of application program, terminal and computer readable storage medium
CN108600489A (en) Receiver, the calibration method of loud speaker, mobile terminal and readable storage medium storing program for executing
CN108259233A (en) Graphics processor GPU method for parameter configuration and mobile terminal in a kind of mobile terminal
CN109462732A (en) A kind of image processing method, equipment and computer readable storage medium
CN109639981A (en) A kind of image capturing method and mobile terminal
CN108566456A (en) Image pickup method, mobile terminal 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181127

RJ01 Rejection of invention patent application after publication