CN107566752A - A kind of image pickup method, terminal and computer-readable storage medium - Google Patents

A kind of image pickup method, terminal and computer-readable storage medium Download PDF

Info

Publication number
CN107566752A
CN107566752A CN201711052973.XA CN201711052973A CN107566752A CN 107566752 A CN107566752 A CN 107566752A CN 201711052973 A CN201711052973 A CN 201711052973A CN 107566752 A CN107566752 A CN 107566752A
Authority
CN
China
Prior art keywords
image
region
brightness value
overexposure
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711052973.XA
Other languages
Chinese (zh)
Other versions
CN107566752B (en
Inventor
王睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201711052973.XA priority Critical patent/CN107566752B/en
Publication of CN107566752A publication Critical patent/CN107566752A/en
Application granted granted Critical
Publication of CN107566752B publication Critical patent/CN107566752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a kind of image pickup method, including:Gather the shooting image of destination object;Shooting image is divided into N block image-regions according to default division number, obtains N number of first brightness value corresponding to N block image-regions, N is more than 1;Preflashing is carried out to destination object, obtains N number of second brightness value corresponding to N block image-regions;According to N number of first brightness value, N number of second brightness value and predetermined luminance threshold value, overexposure image-region is determined from N block image-regions;Shooting instruction is received, reduction exposure-processed is carried out to overexposure image-region according to shooting instruction, obtains target image.The embodiment of the present invention additionally provides a kind of terminal and computer-readable storage medium.Image pickup method provided in an embodiment of the present invention can avoid taking pictures appearance overexposure situation, improve the quality and effect of shooting image.

Description

A kind of image pickup method, terminal and computer-readable storage medium
Technical field
The present invention relates to the technique for taking in electronic application field, more particularly to a kind of image pickup method, terminal and computer Storage medium.
Background technology
In recent years, with many such as the rapid development of Internet technology and mobile communication network technology, mobile phone, tablet personal computer Terminal all has camera function, and user can be taken pictures in any application and environment using terminal.
In the prior art, when under dark or night environment, when user's using terminal is taken pictures, terminal can be by opening The functions such as flash lamp are opened to increase exposure, complete the shoot function of terminal, still, due to the difference of shooting environmental, in night scene, The situation of overexposure may occur in the situation of exposure brightness when being taken pictures by dodging adjustment of turning off the light, influence the quality of shooting image with Imaging.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of image pickup method, terminal and computer storage Medium, the situation of the overexposure for the appearance that can avoid taking pictures, improve the quality and effect of shooting image.
The technical proposal of the invention is realized in this way:
The embodiments of the invention provide a kind of image pickup method, including:
Gather the shooting image of destination object;
The shooting image is divided into N block image-regions according to default division number, it is corresponding to obtain the N blocks image-region N number of first brightness value, N be more than 1;
Preflashing is carried out to the destination object, obtains N number of second brightness value corresponding to the N blocks image-region;
According to N number of first brightness value, N number of second brightness value and the predetermined luminance threshold value, from the N blocks figure As determining overexposure image-region in region;
Shooting instruction is received, reduction exposure-processed is carried out to the overexposure image-region according to shooting instruction, obtains target Image.
It is described according to N number of first brightness value, N number of second brightness value and described default bright in such scheme Threshold value is spent, overexposure image-region is determined from the N blocks image-region, including:
According to N number of first brightness value and N number of second brightness value, obtain N number of corresponding to the N blocks image-region Luminance difference;
The first luminance difference more than the predetermined luminance threshold value is determined from N number of luminance difference;
First image-region corresponding to first luminance difference is defined as the overexposure image-region;First figure As region is image-region corresponding with first luminance difference in the N blocks image-region.
It is described that preflashing is carried out to the destination object in such scheme, obtain N number of corresponding to the N blocks image-region Second brightness value, including:
Preflashing is carried out to the destination object, obtains exposure brightness and the saturation degree of the shooting image;
According to the exposure brightness and saturation degree, N number of second brightness value corresponding to the N blocks image-region is obtained.
It is described according to N number of first brightness value, N number of second brightness value and described default bright in such scheme Threshold value is spent, overexposure image-region is determined from the N blocks image-region, including:
According to N number of first brightness value and the predetermined luminance threshold value, determine that first in the N blocks image-region is bright Block region and the first phaeodium region;
According to N number of second brightness value and the predetermined luminance threshold value, determine that second in the N blocks image-region is bright Block region and the second phaeodium region;
According to the first bright block region, the first phaeodium region, the second bright block region and second phaeodium Region, overexposure image-region is determined from the N blocks image-region.
It is described according to the first bright block region, the first phaeodium region, the second bright block area in such scheme Domain and the second phaeodium region, overexposure image-region is determined from the N blocks image-region, including:
The first common factor image-region in the first bright block region and the second phaeodium region is determined, described first hands over Collection image-region is the overexposure image-region;Or
The first union image-region in the second bright block region and the first phaeodium region is determined, from the N blocks Determine that the image-region in addition to the first union image-region is the overexposure image-region in image-region.
It is described to receive shooting instruction in such scheme, the overexposure image-region is reduced according to shooting instruction Exposure-processed, target image is obtained, including:
Shooting instruction is received, the light metering weight according to corresponding to shooting instruction adjusts the overexposure image-region, according to adjustment Light metering weight afterwards, the adjustment of brightness is exposed to the N blocks image-region, obtains the target image.
It is described to receive shooting instruction in such scheme, the overexposure image-region is reduced according to shooting instruction Exposure-processed, target image is obtained, including:
It is described to receive shooting instruction, the time for exposure of the overexposure image-region is adjusted according to shooting instruction, according to described Time for exposure is exposed, and obtains the target image.
The embodiments of the invention provide a kind of terminal, including:Processor, storage medium, receiver, image pick-up device and communication Bus, the receiver, the storage medium, the image pick-up device pass through the communication bus and the processor connection communication;
The image pick-up device, for gathering the shooting image of destination object;
The processor, for calling the shooting relative program of the storage medium storage, and perform following steps:According to The shooting image is divided into N block image-regions by default division number, and it is bright to obtain corresponding to the N blocks image-region N number of first Angle value, N are more than 1;Preflashing is carried out to the destination object, obtains N number of second brightness value corresponding to the N blocks image-region;Root It is true from the N blocks image-region according to N number of first brightness value, N number of second brightness value and the predetermined luminance threshold value Make overexposure image-region;
The receiver, for receiving shooting instruction,
The processor, it is additionally operable to carry out reduction exposure-processed to the overexposure image-region according to shooting instruction, obtains Target image.
In above-mentioned terminal, the processor, specifically for according to N number of first brightness value and described N number of second bright Angle value, obtain N number of luminance difference corresponding to the N blocks image-region;Determined from N number of luminance difference more than described pre- If the first luminance difference of luminance threshold;First image-region corresponding to first luminance difference is defined as the overexposure figure As region;Described first image region is image-region corresponding with first luminance difference in the N blocks image-region.
The embodiments of the invention provide a kind of computer-readable storage medium, the computer-readable recording medium storage has one Or multiple photographing programs, one or more of programs can be above-mentioned to realize by one or more computing device Image pickup method.
The embodiments of the invention provide a kind of image pickup method, terminal and computer-readable storage medium, by gathering destination object Shooting image;Shooting image is divided into N block image-regions according to default division number, obtained N number of corresponding to N block image-regions First brightness value, N are more than 1;Preflashing is carried out to destination object, obtains N number of second brightness value corresponding to N block image-regions;According to N Individual first brightness value, N number of second brightness value and predetermined luminance threshold value, overexposure image-region is determined from N block image-regions;Connect It is over to take the photograph instruction, reduction exposure-processed is carried out to overexposure image-region according to shooting instruction, obtains target image.Using above-mentioned side Case realizes technology, because shooting image is divided into polylith image-region by terminal, obtains the first brightness of the polylith image-region Value, second brightness value in the polylith region after preflashing is obtained by preflashing, and such terminal can is bright by first before preflashing The second brightness value after angle value and preflashing, judging that the first brightness value and the second brightness value determine overexposure image-region, to overexposure Image-region carries out reduction exposure-processed, so as to the situation of the overexposure for the appearance that effectively avoids taking pictures, and then improves shooting The quality and effect of image.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram of optional mobile terminal provided in an embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart one of image pickup method provided in an embodiment of the present invention;
Fig. 4 is the surface chart at the setting interface of exemplary camera applications provided in an embodiment of the present invention;
Fig. 5 is the division schematic diagram of exemplary image-region provided in an embodiment of the present invention;
Fig. 6 is the corresponding relation figure of exemplary image-region provided in an embodiment of the present invention and light metering weight;
Fig. 7 is a kind of flowchart 2 of image pickup method provided in an embodiment of the present invention;
Fig. 8 is a kind of flow chart 3 of image pickup method provided in an embodiment of the present invention;
Fig. 9 A are the image-region schematic diagram one of exemplary zone marker provided in an embodiment of the present invention;
Fig. 9 B are the image-region schematic diagram two of exemplary zone marker provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal in the embodiment of the present invention can be electronic equipment with shooting or shoot function etc., the embodiment of the present invention It is not restricted.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, 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 digital 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 configuration signal for a kind of optional mobile terminal of each embodiment of the realization present invention Figure, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio are defeated Go out unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, connect The parts such as mouth unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that in Fig. 1 The mobile terminal structure shown does not form the restriction to mobile terminal, and mobile terminal can include more more or less than illustrating Part, either combine some parts or different parts 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, up data are sent to base station.Generally, 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 radio communication with network and other equipment.Above-mentioned radio communication can use any 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, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) 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 the user wireless broadband internet and accessed.Although Fig. 1 Wi-Fi module 102 is shown, 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 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, 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 exported,.Moreover, audio output unit 103 can also provide performed to mobile terminal 100 the related audio output of specific function (for example, call signal reception sound, Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
Mobile terminal 100 also 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 transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer 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 axles) 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, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted 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 relevant.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 touch operation of the user on or near it (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 means are 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 sent of reception processing device 110 and can be 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, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 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 part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are 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 source (or battery charger) port, wired or nothing Line FPDP, 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 Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, 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 radio 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 will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters 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 as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
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 UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling 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 about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP 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 provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art 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.
Terminal in the embodiment of the present invention can be mobile terminal, then, it is exemplary, based on above-mentioned mobile terminal hardware Structure and communications network system, each embodiment of the inventive method can be proposed.Following terminals can utilize mobile terminal To replace.
Embodiment one
The embodiments of the invention provide a kind of image pickup method, as shown in figure 3, this method can include:
S101, the shooting image for gathering destination object.
It should be noted that a kind of image pickup method provided in an embodiment of the present invention is under the scene taken pictures in terminal Realize.
It is noted that the image pick-up device of terminal in the embodiment of the present invention on be provided with imaging sensor, the terminal is led to Imaging sensor collection shooting image is crossed, wherein, shooting image is after the camera applications in terminal start shoot function, in terminal Display screen on the image that collects, for example, preview image etc..
Optionally, terminal can be picture pick-up device, shooting application etc..Specific terminal can be to be provided with shooting application, And carry the electronic equipments such as the mobile phone, flat board, computer of flash function.Wherein, the realization of flash function can be taken the photograph by being arranged on Realized as the flash lamp on device, the embodiment of the present invention does not limit the implementation and set-up mode of flash function.
Destination object in the embodiment of the present invention can be that object, the embodiment of the present invention such as personage, building, landscape do not limit System.
In embodiments of the present invention, user's using terminal is taken pictures, after user starts the camera applications of terminal, the end End carries out the collection of the collection, i.e. preview image of shooting image by imaging sensor to destination object.Wherein, imaging sensor Be arranged on the image pick-up device in terminal (camera), specifically such as image pick-up device can be terminal device front camera or Person's rear camera etc., the embodiment of the present invention is not restricted.
It should be noted that the exposure method used in the embodiment of the present invention is applied to prevent overexposure or excessively dark situation, And such case mainly appears on shooting environmental as when night, dark, light intensity or backlight, and normal daytime or illumination In the case of being adapted to, it is the collection for completing to complete preferable shooting image that terminal, which uses current exposure brightness, therefore, this One kind first that inventive embodiments can could be arranged to a kind of image pickup method that terminal proposes in terminal shoots processing function, When user or surrounding environment need, it can be exposed by opening this kind of preferable first shooting processing function, And other when still can be taken pictures using existing Exposure mode to realize.So, which kind of terminal uses when taking pictures Exposure mode is exposed processing, then is to detect whether to open the first shooting processing function by terminal to realize, if opening then Realized using image pickup method provided in an embodiment of the present invention;If not opening, then realized using existing exposure style of shooting Take pictures.
In embodiments of the present invention, terminal detects whether that it can be by detection terminal to open the first shooting processing function The first shooting processing function whether is opened in setting to realize.As shown in figure 4, in the camera applications of mobile phone, camera is set In interface, the shift knob of the first shooting processing function is provided with, user can be opened on the mobile phone by clicking on "ON" button The first shooting processing function, can also be by clicking on "Off" button, the first shooting processing function for closing on the mobile phone.
S102, according to default division number shooting image is divided into N block image-regions, obtains N corresponding to N block image-regions Individual first brightness value, N are more than 1.
After terminal gathers the shooting image of destination object, above-mentioned shooting figure is shown in the preview interface of current terminal As various processing such as, the terminal also needs to be exposed shooting image on backstage, white balances, the figure that will finally handle again As being shown in terminal, realization of the embodiment of the present invention for the image pickup method during shooting processing.Terminal collects After shooting image, the shooting image is a frame picture, and the terminal divides the shooting image of a frame according to default division number For N block image-regions, that is, a frame shooting image polylith region is divided into, and has obtained and work as corresponding to N blocks image-region N number of first brightness value in the range of preceding environment, wherein, N is more than 1.
It should be noted that in embodiments of the present invention, the method that terminal taking image carries out region segmentation can be according to Default division number is divided, and can also be realized using image region segmentation method conventional in the prior art, no longer superfluous herein State.
Optionally, it can be 16*16 to preset division number, and then, shooting image can be divided into 16*16 block image districts by terminal Domain, the partitioning standards of specific default division number can be adjusted as needed, and the embodiment of the present invention does not limit this default stroke The partitioning standards of fraction.
Exemplary, as shown in figure 5, shooting image can be divided into 3*3 (default division number) individual block by terminal, form 9 Block image-region, then, the terminal obtain the first brightness value corresponding to every piece of image-region in this 9 pieces of image-regions, altogether Obtain 9 the first brightness values.
S103, preflashing is carried out to destination object, obtain N number of second brightness value corresponding to N block image-regions.
Shooting image is divided into N block image-regions by terminal according to default division number, obtains N corresponding to N block image-regions After individual first brightness value, because image pickup method provided in an embodiment of the present invention is in order to can be by flash lamp to shooting image Carry out preflashing, i.e., whether advance flash function, the brightness for detecting shooting image after preflashing has the situation of overexposure, therefore, the end End can obtain N number of second brightness value corresponding to the N block image-regions after preflashing is carried out to destination object, and this is N number of second bright Angle value is brightness value corresponding to the N block image-regions after preflashing.
It should be noted that in embodiments of the present invention, terminal carries out preview before preflashing and to destination object after preflashing When, best static of destination object, to ensure that the preview image before and after preflashing is consistent, N block image-regions are consistent.
In embodiments of the present invention, the mode that terminal obtains N number of second brightness value corresponding to N block image-regions can have very More, detailed process will illustrate in subsequent embodiment.
S104, according to N number of first brightness value, N number of second brightness value and predetermined luminance threshold value, from N block image-regions really Make overexposure image-region.
Terminal-pair destination object carries out preflashing, after obtaining N number of second brightness value corresponding to N block image-regions, the terminal N block image-regions each self-corresponding brightness value, such words, contrast of terminal can before preflashing and after preflashing is just got Whether there is overexposure in this N number of first brightness value and N number of second brightness value, can be with predetermined luminance threshold before and after preflashing Value is used as benchmark, and the image-region of overexposure, i.e. overexposure image-region can be thus determined from N block image-regions.
It should be noted that in embodiments of the present invention, 0-255 representative luminance values can be used, and like this, every block of image The brightness value in region can carry out value in 0-255.Therefore, predetermined luminance threshold value could be arranged to 245, here pre- If luminance threshold can be default bright block threshold value, that is to say, that if the brightness value of only image-region has been more than 245, be only Bright block region.The specific value embodiment of the present invention is not restricted.
In embodiments of the present invention, it is brightness type for judging image-region to preset bright block threshold value, brightness type It can include:Bright block and phaeodium, i.e. bright block region and phaeodium region.Terminal can be carried out brightness value and default bright block threshold value pair Than if be more than or equal to default bright block threshold value in the presence of some brightness value, then judging image-region corresponding to some brightness value For bright block region;If be less than default bright block threshold value in the presence of some brightness value, then image corresponding to some brightness value is judged Region is phaeodium region.Terminal is in such a manner, it is possible to achieve to bright block of the N block image-regions before preflashing and after preflashing Region and phaeodium region are judged.Then by being phaeodium region before preflashing, it is changed into the image-region in bright block region after preflashing Judge overexposure image-region.This is to determine that one kind of overexposure image-region is real in image pickup method provided in an embodiment of the present invention Existing, the mode that the embodiment of the present invention can also have other determination overexposure image-regions will be described in subsequent embodiment.
S105, shooting instruction is received, reduction exposure-processed is carried out to overexposure image-region according to shooting instruction, obtains target Image.
Terminal determines according to N number of first brightness value, N number of second brightness value and predetermined luminance threshold value from N block image-regions Go out after overexposure image-region, when now terminal has had determined out shooting, which image-region be it is possible that The region of overexposure phenomenon, therefore, when really being shot, the terminal just needs to drop overexposure image-region terminal The processing of low exposure so that overexposure image-region not overexposure, obtain the target image of preferable shooting effect.Terminal realizes shooting work( Can, i.e., user clicks on camera applications, opens camera applications interface, and triggers the realization of the shoot function key in the camera applications interface Photographing operation, i.e. terminal receive shooting instruction, and then, the terminal reduces to overexposure image-region according to shooting instruction Exposure-processed, obtain target image.
In embodiments of the present invention, overexposure image-region characterize just normally opened taking photos by using flashlights when exposure brightness situation Under, the image-region of overexposure phenomenon occurs in shooting image.
It should be noted that in embodiments of the present invention, the mode that terminal reduces the exposure brightness of image-region can have Many kinds, the embodiment of the present invention are not restricted, and two kinds of processing modes are described below.
(1), terminal receives shooting instruction, the light metering weight according to corresponding to shooting instructs adjustment overexposure image-region, according to Light metering weight after adjustment, the adjustment of brightness is exposed to N block image-regions, obtains target image.
It should be noted that the determination of the shooting image exposure brightness in the embodiment of the present invention is can be according to each image What the brightness value and light metering weight in region determined, in embodiments of the present invention, after terminal determines overexposure image-region, the terminal The proportion of the brightness value of the overexposure image-region can be emphasized out by the way that light metering weight corresponding to overexposure image-region is increased, The exposure brightness of whole shooting image is reduced, to prevent exposure brightness too high so that the feelings of overexposure really occurs in overexposure image-region Condition.So, terminal have received shooting instruction, the light metering weight according to corresponding to shooting instructs adjustment overexposure image-region, so, The terminal is exposed the adjustment of brightness to N block image-regions, reduces exposure brightness, obtain according to the light metering weight after adjustment To target image, the exposure brightness during exposure brightness ratio normal photographing of such target image is low, can avoid overexposure feelings The generation of condition.
Exemplary, illustrate lower light metering weight here, in embodiments of the present invention, image-region is corresponding with light metering weight Relation can be with shown in Fig. 6, every piece of image-region all corresponds to a light metering weight, sets in advance.In figure 6, more lean on Light metering weight corresponding among nearly image is bigger, smaller closer to light metering weight corresponding to image border.But light metering weight is A numerical value between 0-1, the embodiment of the present invention are not restricted.
(2), terminal receives shooting instruction, the time for exposure of adjustment overexposure image-region is instructed according to shooting, according to exposure Time is exposed, and obtains target image.
In embodiments of the present invention, because terminal is when shooting, exposure brightness is also exposed the influence of time, When terminal determines overexposure image-region, in order that obtaining the generation of overexposure phenomenon when taking photos by using flashlights is opened, need The exposure brightness of overexposure image-region is reduced, at this moment, terminal can use the time for exposure for reducing overexposure image-region, reach The purpose of exposure brightness is reduced, the part can of overexposure image-region avoids corresponding to the target image shot after so exposing The generation of overexposure phenomenon.
Further, terminal response shooting instruction, by that will expose brightness processed to overexposure image-region, is passed through The shooting image of exposure-processed, i.e. target image, therefore, terminal can show the target after exposure-processed on a display screen Image.
It is understood that because shooting image is divided into polylith image-region by terminal, the polylith image-region is obtained The first brightness value, second brightness value in the polylith region after preflashing is obtained by preflashing, such terminal can passes through preflashing The second brightness value after the first preceding brightness value and preflashing, judging that the first brightness value and the second brightness value determine overexposure image district Domain, reduction exposure-processed is carried out to overexposure image-region, so as to the situation of the overexposure for the appearance that effectively avoids taking pictures, and then Improve the quality and effect of shooting image.
Embodiment two
The embodiments of the invention provide a kind of image pickup method, as shown in fig. 7, this method can include:
S201, the shooting image for gathering destination object.
The process of " shooting image of collection destination object " and the realization in embodiment one are realized in the embodiment of the present invention S101 process description is consistent, and here is omitted.
S202, according to default division number shooting image is divided into N block image-regions, obtains N corresponding to N block image-regions Individual first brightness value, N are more than 1.
Realized in the embodiment of the present invention and " shooting image is divided into N block image-regions according to default division number, obtains N blocks N number of first brightness value corresponding to image-region, processes of the N more than 1 " and the process description one for realizing S102 in embodiment one Cause, here is omitted.
S203, preflashing is carried out to destination object, obtain N number of second brightness value corresponding to N block image-regions.
Realized in the embodiment of the present invention and " preflashing is carried out to destination object, N number of second is bright corresponding to acquisition N block image-regions The process of angle value " is consistent with the process description for realizing S103 in embodiment one, and here is omitted.
S204, according to N number of first brightness value and N number of second brightness value, obtain N number of luminance difference corresponding to N block image-regions Value.
S205, determine from N number of luminance difference the first luminance difference more than predetermined luminance threshold value.
S206, the first image-region corresponding to the first luminance difference is defined as overexposure image-region;First image-region For in N block image-regions, image-region corresponding with the first luminance difference.
Terminal-pair destination object carries out preflashing, after obtaining N number of second brightness value corresponding to N block image-regions, the terminal N block image-regions each self-corresponding brightness value, such words, contrast of terminal can before preflashing and after preflashing is just got Whether there is overexposure in this N number of first brightness value and N number of second brightness value, can be with predetermined luminance threshold before and after preflashing Value is used as benchmark, and the image-region of overexposure, i.e. overexposure image-region can be thus determined from N block image-regions.
In embodiments of the present invention, it is brightness type for judging image-region to preset bright block threshold value, brightness type It can include:Bright block and phaeodium, i.e. bright block region and phaeodium region.
In embodiments of the present invention, every piece of image-region in terminal-pair N blocks image-region is before preflashing and after preflashing First brightness value and the second brightness value carry out luminance difference computing, obtain brightness change of the every piece of image-region before and after preflashing, Judge whether every piece of image-region has overexposure or phenomenon by brightness change.
It should be noted that before and after preflashing, if luminance difference or brightness change are excessive, that is possible to there are secretly Block region has been likely to become the possibility in bright block region after preflashing, that is, overexposure situation occurs, and therefore, terminal can be by default bright Threshold value is spent to judge the size of luminance difference whether in suitable scope, and the predetermined luminance threshold value characterizes the optimal of exposure brightness Upper limit difference, just characterized more than this factor and luminance threshold and be likely to occur overexposure phenomenon, then, terminal obtain it is N number of bright Spend after difference, the first luminance difference more than predetermined luminance threshold value determined from N number of luminance difference, then, this is first bright First image-region corresponding to degree difference is assured that as overexposure image-region, wherein the first image-region is N block images In region, image-region corresponding with the first luminance difference.
In embodiments of the present invention, 0-255 representative luminance values can be used, like this, the brightness value of every piece of image-region Value can be carried out in 0-255.Therefore, predetermined luminance threshold value could be arranged to 100, that is to say, that if before preflashing If luminance difference corresponding to some image-region has exceeded 100 afterwards, some image-region is exactly overexposure image-region.
S207, shooting instruction is received, reduction exposure-processed is carried out to overexposure image-region according to shooting instruction, obtains target Image.
Realized in the embodiment of the present invention and " receive shooting instruction, reduction exposure is carried out to overexposure image-region according to shooting instruction Light processing, obtain target image " process it is consistent with the process description for realizing S105 in embodiment one, here is omitted.
It is understood that because shooting image is divided into polylith image-region by terminal, the polylith image-region is obtained The first brightness value, second brightness value in the polylith region after preflashing is obtained by preflashing, such terminal can passes through preflashing The second brightness value after the first preceding brightness value and preflashing, judging that the first brightness value and the second brightness value determine overexposure image district Domain, reduction exposure-processed is carried out to overexposure image-region, so as to the situation of the overexposure for the appearance that effectively avoids taking pictures, and then Improve the quality and effect of shooting image.
The embodiments of the invention provide a kind of image pickup method, as shown in figure 8, this method can include:
S301, the shooting image for gathering destination object.
The process of " shooting image of collection destination object " and the realization in embodiment one are realized in the embodiment of the present invention S101 process description is consistent, and here is omitted.
S302, according to default division number shooting image is divided into N block image-regions, obtains N corresponding to N block image-regions Individual first brightness value, N are more than 1.
Realized in the embodiment of the present invention and " shooting image is divided into N block image-regions according to default division number, obtains N blocks N number of first brightness value corresponding to image-region, processes of the N more than 1 " and the process description one for realizing S102 in embodiment one Cause, here is omitted.
S303, preflashing is carried out to destination object, obtain exposure brightness and the saturation degree of shooting image.
S304, according to exposure brightness and saturation degree, obtain N number of second brightness value corresponding to N block image-regions.
Shooting image is divided into N block image-regions by terminal according to default division number, obtains N corresponding to N block image-regions After individual first brightness value, because image pickup method provided in an embodiment of the present invention is in order to can be by flash lamp to shooting image Carry out preflashing, i.e., whether advance flash function, the brightness for detecting shooting image after preflashing has the situation of overexposure, therefore, the end End can obtain N number of second brightness value corresponding to the N block image-regions after preflashing is carried out to destination object, and this is N number of second bright Angle value is brightness value corresponding to the N block image-regions after preflashing.
It should be noted that in embodiments of the present invention, terminal carries out preview before preflashing and to destination object after preflashing When, best static of destination object, to ensure that the preview image before and after preflashing is consistent, N block image-regions are consistent.
In embodiments of the present invention, the mode that terminal obtains N number of second brightness value corresponding to N block image-regions can have very More, the embodiment of the present invention carries out preflashing to destination object, and terminal can be entered using the exposure brightness and saturation degree of shooting image The determination of the brightness value of row second, i.e. terminal obtain exposure brightness and the saturation degree of shooting image.
Specifically, exposure brightness and saturation of the terminal using every piece of image-region in the N block image-regions of shooting image The weighted value of degree is as the first brightness value in this every piece image-region.
It is understood that terminal is bright as second after preflashing using exposure brightness and such a integrated value of saturation degree The degree of accuracy of the acquisition foundation of angle value is that to be accurate according to what is come, accuracy is high than individually using exposure brightness.
S305, according to N number of first brightness value and predetermined luminance threshold value, determine the first bright block region in N block image-regions With the first phaeodium region.
S306, according to N number of second brightness value and the predetermined luminance threshold value, determine the second bright block in N block image-regions Region and the second phaeodium region.
S307, according to the first bright block region, the first phaeodium region, the second bright block region and the second phaeodium region, from N block figures As determining overexposure image-region in region.
Terminal-pair destination object carries out preflashing, after obtaining N number of second brightness value corresponding to N block image-regions, the terminal N block image-regions each self-corresponding brightness value, such words, contrast of terminal can before preflashing and after preflashing is just got Whether there is overexposure in this N number of first brightness value and N number of second brightness value, can be with predetermined luminance threshold before and after preflashing Value is used as benchmark, and the image-region of overexposure, i.e. overexposure image-region can be thus determined from N block image-regions.
In embodiments of the present invention, it is brightness type for judging image-region to preset bright block threshold value, brightness type It can include:Bright block and phaeodium, i.e. bright block region and phaeodium region.
It should be noted that in embodiments of the present invention, 0-255 representative luminance values can be used, and like this, every block of image The brightness value in region can carry out value in 0-255.Therefore, predetermined luminance threshold value could be arranged to 245, here pre- If luminance threshold can be default bright block threshold value, that is to say, that if the brightness value of only image-region has been more than 245, be only Bright block region.The specific value embodiment of the present invention is not restricted.
In embodiments of the present invention, terminal can be contrasted brightness value and default bright block threshold value, if in the presence of some When brightness value is more than or equal to default bright block threshold value, then it is bright block region to judge image-region corresponding to some brightness value;If When being less than default bright block threshold value in the presence of some brightness value, then it is phaeodium region to judge image-region corresponding to some brightness value. Terminal is in such a manner, it is possible to achieve to bright block region and phaeodium region of the N block image-regions before preflashing and after preflashing Judged.Then by being phaeodium region before preflashing, the image-region for being changed into bright block region after preflashing judges overexposure image district Domain.
Specifically, terminal determines that first in N block image-regions is bright according to N number of first brightness value and predetermined luminance threshold value Block region and the first phaeodium region;And according to N number of second brightness value and the predetermined luminance threshold value, determine N block image-regions In the second bright block region and the second phaeodium region.Finally, terminal is according to the first bright block region, the first phaeodium region, second bright Block region and the second phaeodium region, overexposure image-region is determined from N block image-regions.
Here predetermined luminance threshold value is used to judge that image-region corresponding to the first brightness value and the second brightness value is bright block Region or phaeodium region.When the first brightness value or the second brightness value are more than predetermined luminance threshold value, characterize this first Image-region corresponding to brightness value or the second brightness value is bright block region;And preset when the first brightness value or the second brightness value are more than When luminance threshold, it is phaeodium region to characterize image-region corresponding to first brightness value or the second brightness value, thus really Define the first bright block region, the first phaeodium region, the second bright block region and the second phaeodium region.
Terminal is according to the first bright block region, the first phaeodium region, the second bright block region and the second phaeodium region, from N block figures As determining that the process of overexposure image-region can include in region:Terminal determines the first bright block region and the second phaeodium region The first common factor image-region, the first common factor image-region is overexposure image-region;Or terminal determines the second bright block region With the first union image-region in the first phaeodium region, the figure in addition to the first union image-region is determined from N block image-regions As region is overexposure image-region.
It is understood that terminal is it needs to be determined that it before preflashing is phaeodium region to be, and after preflashing is the mistake in bright block region Image-region is exposed, so according to this principle, terminal can determine overexposure image-region by above two mode.
In embodiments of the present invention, bright block region and phaeodium region can be showed by identifying, for example, by bright block region Labeled as 1, phaeodium zone marker is 0.So, terminal only needs to mark the region for being before finding preflashing, is changed into marking after preflashing 1 region can is designated as, such region is exactly the overexposure image-region to be looked for of terminal.
It is exemplary, illustrated by taking 3*3 image-region as an example, be as shown in Figure 9 A the bright block before preflashing and phaeodium Schematic diagram is marked, the first bright block zone marker is 1, and the first phaeodium zone marker is 0, i.e. region 5, region 6, region 8 and region 9 For bright block region, region 1, region 2, region 3, region 4 and region 7 are phaeodium region, after preflashing, as shown in Figure 9 B for preflashing after Bright block and phaeodium mark schematic diagram, the second bright block zone marker be 1, the second phaeodium zone marker be 0, i.e., now, region 5th, region 6, region 8, region 4, region 7 and region 9 are bright block region, and region 1, region 2 and region 3 are phaeodium region;So, Terminal determines region 4 and region 7 is overexposure image-region, the i.e. common factor in the first phaeodium region and the second bright block region.
Further, in embodiments of the present invention, terminal can also be determined and overexposure by the thinking of foregoing description The opposite low exposed image areas of image-region principle, terminal avoid exposing by improving the exposure brightness of low exposed image areas The too low situation of light occurs, and improves the effect and exposure property of shooting image.The embodiment of the present invention is not restricted.Such as brightness value is small In a minimum predetermined luminance threshold value, it is low exposed image areas to characterize the too small image-region of exposure, or, terminal is true It is bright block region to make before preflashing, and the image-region for after preflashing being phaeodium region is low exposed image areas, the embodiment of the present invention It is not restricted.
S308, shooting instruction is received, reduction exposure-processed is carried out to overexposure image-region according to shooting instruction, obtains target Image.
Realized in the embodiment of the present invention and " receive shooting instruction, reduction exposure is carried out to overexposure image-region according to shooting instruction Light processing, obtain target image " process it is consistent with the process description for realizing S105 in embodiment one, here is omitted.
It is understood that because shooting image is divided into polylith image-region by terminal, the polylith image-region is obtained The first brightness value, second brightness value in the polylith region after preflashing is obtained by preflashing, such terminal can passes through preflashing The second brightness value after the first preceding brightness value and preflashing, judging that the first brightness value and the second brightness value determine overexposure image district Domain, reduction exposure-processed is carried out to overexposure image-region, so as to the situation of the overexposure for the appearance that effectively avoids taking pictures, and then Improve the quality and effect of shooting image.
Embodiment three
Same inventive concept based on embodiment one and embodiment two, as shown in Figure 10, the embodiments of the invention provide one Kind terminal 1, including:Processor 10, storage medium 11, receiver 12, image pick-up device 13 and communication bus 14, the receiver 12nd, the storage medium 11, the image pick-up device 13 pass through the communication bus 14 and the connection communication of processor 10;
The image pick-up device 13, for gathering the shooting image of destination object;
The processor 10, for the shooting relative program for calling the storage medium 11 to store, and perform following steps: The shooting image is divided into N block image-regions according to default division number, obtained N number of the corresponding to the N blocks image-region One brightness value, N are more than 1;Preflashing is carried out to the destination object, obtains N number of second brightness corresponding to the N blocks image-region Value;According to N number of first brightness value, N number of second brightness value and the predetermined luminance threshold value, from the N blocks image district Overexposure image-region is determined in domain;
The receiver 12, for receiving shooting instruction,
The processor 10, it is additionally operable to carry out reduction exposure-processed to the overexposure image-region according to shooting instruction, obtains To target image.
Optionally, the processor 10, specifically for according to N number of first brightness value and N number of second brightness value, Obtain N number of luminance difference corresponding to the N blocks image-region;Determined from N number of luminance difference default bright more than described Spend the first luminance difference of threshold value;First image-region corresponding to first luminance difference is defined as the overexposure image district Domain;Described first image region is image-region corresponding with first luminance difference in the N blocks image-region.
Optionally, the processor 10, specifically for carrying out preflashing to the destination object, the shooting image is obtained Expose brightness and saturation degree;According to the exposure brightness and saturation degree, obtain described N number of the corresponding to the N blocks image-region Two brightness values.
The processor 10, specifically for according to N number of first brightness value and the predetermined luminance threshold value, it is determined that described The first bright block region and the first phaeodium region in N block image-regions;According to N number of second brightness value and the predetermined luminance Threshold value, determine the second bright block region and the second phaeodium region in the N blocks image-region;According to the first bright block region, The first phaeodium region, the second bright block region and the second phaeodium region, are determined from the N blocks image-region Overexposure image-region.
Optionally, the processor 10, also particularly useful for determining the first bright block region and the second phaeodium area The first common factor image-region in domain, the first common factor image-region are the overexposure image-region;Or determine described Two bright block regions and the first union image-region in the first phaeodium region, determined from the N blocks image-region except described Image-region outside first union image-region is the overexposure image-region.
Optionally, the receiver 12, for receiving shooting instruction,
The processor 10, specifically for light metering weight corresponding to adjusting the overexposure image-region according to shooting instruction, According to the light metering weight after adjustment, the adjustment of brightness is exposed to the N blocks image-region, obtains the target image.
Optionally, the receiver 12, shooting instruction is received for described,
The processor 10, the time for exposure specifically for adjusting the overexposure image-region according to shooting instruction, according to The time for exposure is exposed, and obtains the target image.
It should be noted that in embodiments of the present invention, processor 10 can be consistent with the processor 110 in Fig. 1, and storage is situated between Matter 11 can be consistent with the memory 109 in Fig. 1, and image pick-up device 13 can be corresponding with the interface unit 108 in Fig. 1, and receiver 12 can be with The correspondence of radio frequency unit 101 in Fig. 1.
In actual applications, above-mentioned memory can be volatile memory (volatile memory), such as at random Access memory (Random-Access Memory, RAM);Or nonvolatile memory (non-volatile memory), Such as read-only storage (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid state hard disc (Solid-State Drive, SSD);Or the combination of the memory of mentioned kind, and to place Manage device and instruction and data is provided.
Above-mentioned processor can be application-specific IC (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), central processing unit At least one of (Central Processing Unit, CPU), controller, microcontroller, microprocessor.It is appreciated that Ground, for different equipment, for realizing that the electronic device of above-mentioned processor function can also be other, the embodiment of the present invention is not Make specific limit.
It is understood that because shooting image is divided into polylith image-region by terminal, the polylith image-region is obtained The first brightness value, second brightness value in the polylith region after preflashing is obtained by preflashing, such terminal can passes through preflashing The second brightness value after the first preceding brightness value and preflashing, judging that the first brightness value and the second brightness value determine overexposure image district Domain, reduction exposure-processed is carried out to overexposure image-region, so as to the situation of the overexposure for the appearance that effectively avoids taking pictures, and then Improve the quality and effect of shooting image.
The embodiments of the invention provide a kind of computer-readable storage medium, the computer-readable recording medium storage has one Or multiple photographing programs, one or more of programs can such as be implemented by one or more computing device with realizing Method described in example one to embodiment two.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.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 produced by the instruction of computer or the computing device of other programmable data processing devices for real 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 be alternatively 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, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

  1. A kind of 1. image pickup method, it is characterised in that including:
    Gather the shooting image of destination object;
    The shooting image is divided into N block image-regions according to default division number, obtains N corresponding to the N blocks image-region Individual first brightness value, N are more than 1;
    Preflashing is carried out to the destination object, obtains N number of second brightness value corresponding to the N blocks image-region;
    According to N number of first brightness value, N number of second brightness value and the predetermined luminance threshold value, from the N blocks image district Overexposure image-region is determined in domain;
    Shooting instruction is received, reduction exposure-processed is carried out to the overexposure image-region according to shooting instruction, obtains target image.
  2. 2. according to the method for claim 1, it is characterised in that it is described according to N number of first brightness value, described N number of the Two brightness values and the predetermined luminance threshold value, overexposure image-region is determined from the N blocks image-region, including:
    According to N number of first brightness value and N number of second brightness value, N number of brightness corresponding to the N blocks image-region is obtained Difference;
    The first luminance difference more than the predetermined luminance threshold value is determined from N number of luminance difference;
    First image-region corresponding to first luminance difference is defined as the overexposure image-region;Described first image area Domain is image-region corresponding with first luminance difference in the N blocks image-region.
  3. 3. according to the method for claim 1, it is characterised in that it is described that preflashing is carried out to the destination object, obtain the N N number of second brightness value corresponding to block image-region, including:
    Preflashing is carried out to the destination object, obtains exposure brightness and the saturation degree of the shooting image;
    According to the exposure brightness and saturation degree, N number of second brightness value corresponding to the N blocks image-region is obtained.
  4. 4. the method according to claim 1 or 3, it is characterised in that it is described according to N number of first brightness value, it is described N number of Second brightness value and the predetermined luminance threshold value, overexposure image-region is determined from the N blocks image-region, including:
    According to N number of first brightness value and the predetermined luminance threshold value, the first bright block area in the N blocks image-region is determined Domain and the first phaeodium region;
    According to N number of second brightness value and the predetermined luminance threshold value, the second bright block area in the N blocks image-region is determined Domain and the second phaeodium region;
    According to the first bright block region, the first phaeodium region, the second bright block region and the second phaeodium region, Overexposure image-region is determined from the N blocks image-region.
  5. 5. according to the method for claim 4, it is characterised in that it is described according to the first bright block region, it is described first dark Block region, the second bright block region and the second phaeodium region, overexposure image district is determined from the N blocks image-region Domain, including:
    The first common factor image-region in the first bright block region and the second phaeodium region is determined, described first, which occurs simultaneously, schemes As region is the overexposure image-region;Or
    The first union image-region in the second bright block region and the first phaeodium region is determined, from the N blocks image Determine that the image-region in addition to the first union image-region is the overexposure image-region in region.
  6. 6. according to the method for claim 1, it is characterised in that it is described to receive shooting instruction, according to shooting instruction to described Overexposure image-region carries out reduction exposure-processed, obtains target image, including:
    Shooting instruction is received, the light metering weight according to corresponding to shooting instruction adjusts the overexposure image-region, after adjustment Light metering weight, the adjustment of brightness is exposed to the N blocks image-region, obtains the target image.
  7. 7. according to the method for claim 1, it is characterised in that it is described to receive shooting instruction, according to shooting instruction to described Overexposure image-region carries out reduction exposure-processed, obtains target image, including:
    It is described to receive shooting instruction, the time for exposure of the overexposure image-region is adjusted according to shooting instruction, according to the exposure Time is exposed, and obtains the target image.
  8. A kind of 8. terminal, it is characterised in that including:Processor, storage medium, receiver, image pick-up device and communication bus, it is described Receiver, the storage medium, the image pick-up device pass through the communication bus and the processor connection communication;
    The image pick-up device, for gathering the shooting image of destination object;
    The processor, for calling the shooting relative program of the storage medium storage, and perform following steps:According to default The shooting image is divided into N block image-regions by division number, obtains N number of first brightness value corresponding to the N blocks image-region, N is more than 1;Preflashing is carried out to the destination object, obtains N number of second brightness value corresponding to the N blocks image-region;According to described N number of first brightness value, N number of second brightness value and the predetermined luminance threshold value, were determined from the N blocks image-region Expose image-region;
    The receiver, for receiving shooting instruction,
    The processor, it is additionally operable to carry out reduction exposure-processed to the overexposure image-region according to shooting instruction, obtains target Image.
  9. 9. terminal according to claim 8, it is characterised in that
    The processor, specifically for according to N number of first brightness value and N number of second brightness value, obtaining the N blocks figure N number of luminance difference as corresponding to region;Determine that be more than the predetermined luminance threshold value first is bright from N number of luminance difference Spend difference;First image-region corresponding to first luminance difference is defined as the overexposure image-region;First figure As region is image-region corresponding with first luminance difference in the N blocks image-region.
  10. 10. a kind of computer-readable storage medium, it is characterised in that the computer-readable recording medium storage has one or more Photographing program, one or more of programs can be by one or more computing devices, to realize such as claim 1 to 7 Method described in any one.
CN201711052973.XA 2017-10-31 2017-10-31 Shooting method, terminal and computer storage medium Active CN107566752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711052973.XA CN107566752B (en) 2017-10-31 2017-10-31 Shooting method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711052973.XA CN107566752B (en) 2017-10-31 2017-10-31 Shooting method, terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN107566752A true CN107566752A (en) 2018-01-09
CN107566752B CN107566752B (en) 2020-08-11

Family

ID=61032451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711052973.XA Active CN107566752B (en) 2017-10-31 2017-10-31 Shooting method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN107566752B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519522A (en) * 2019-08-08 2019-11-29 浙江大华技术股份有限公司 Method, apparatus, equipment and the storage medium of the anti-overexposure processing of video
CN110930335A (en) * 2019-11-27 2020-03-27 维沃移动通信有限公司 Image processing method and electronic equipment
CN111629146A (en) * 2020-05-27 2020-09-04 腾讯科技(深圳)有限公司 Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium
CN112291481A (en) * 2020-10-30 2021-01-29 重庆紫光华山智安科技有限公司 Exposure automatic adjusting method and device, electronic equipment and storage medium
CN112712471A (en) * 2019-10-25 2021-04-27 北京达佳互联信息技术有限公司 Image processing method, device and equipment
CN113628203A (en) * 2021-08-23 2021-11-09 苏州中科先进技术研究院有限公司 Image quality detection method and detection system
CN113747084A (en) * 2020-05-27 2021-12-03 广东芬尼克兹节能设备有限公司 Frosting image processing and transmitting method, electronic equipment and storage medium
CN114338956A (en) * 2020-09-30 2022-04-12 北京小米移动软件有限公司 Image processing method, image processing apparatus, and storage medium
CN113747008B (en) * 2021-08-18 2023-04-07 浙江大华技术股份有限公司 Camera and light supplementing method
WO2023122906A1 (en) * 2021-12-27 2023-07-06 深圳传音控股股份有限公司 Image processing method, intelligent terminal and storage medium
CN117560576A (en) * 2023-11-13 2024-02-13 四川新视创伟超高清科技有限公司 Exposure method and exposure system for focal plane area

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101889435A (en) * 2007-12-21 2010-11-17 诺基亚公司 Camera flash module and method for controlling same
US20120300094A1 (en) * 2011-05-24 2012-11-29 Canon Kabushiki Kaisha Image pickup apparatus that performs exposure control, method of controlling the image pickup apparatus, and storage medium
CN102868861A (en) * 2011-07-07 2013-01-09 华晶科技股份有限公司 Method for acquiring images
CN104702849A (en) * 2014-01-10 2015-06-10 杭州海康威视数字技术股份有限公司 Infrared camera and adjusting method of infrared light brightness thereof
CN104978710A (en) * 2015-07-02 2015-10-14 广东欧珀移动通信有限公司 Method and device for identifying and adjusting human face luminance based on photographing
CN105208294A (en) * 2014-06-20 2015-12-30 中兴通讯股份有限公司 Method and device for taking picture
CN106412534A (en) * 2016-10-27 2017-02-15 成都西纬科技有限公司 Method and device for adjusting image brightness
CN106791472A (en) * 2016-12-29 2017-05-31 努比亚技术有限公司 A kind of exposure method and terminal
CN107172364A (en) * 2017-04-28 2017-09-15 努比亚技术有限公司 A kind of image exposure compensation method, device and computer-readable recording medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101889435A (en) * 2007-12-21 2010-11-17 诺基亚公司 Camera flash module and method for controlling same
US20120300094A1 (en) * 2011-05-24 2012-11-29 Canon Kabushiki Kaisha Image pickup apparatus that performs exposure control, method of controlling the image pickup apparatus, and storage medium
CN102868861A (en) * 2011-07-07 2013-01-09 华晶科技股份有限公司 Method for acquiring images
CN104702849A (en) * 2014-01-10 2015-06-10 杭州海康威视数字技术股份有限公司 Infrared camera and adjusting method of infrared light brightness thereof
CN105208294A (en) * 2014-06-20 2015-12-30 中兴通讯股份有限公司 Method and device for taking picture
CN104978710A (en) * 2015-07-02 2015-10-14 广东欧珀移动通信有限公司 Method and device for identifying and adjusting human face luminance based on photographing
CN106412534A (en) * 2016-10-27 2017-02-15 成都西纬科技有限公司 Method and device for adjusting image brightness
CN106791472A (en) * 2016-12-29 2017-05-31 努比亚技术有限公司 A kind of exposure method and terminal
CN107172364A (en) * 2017-04-28 2017-09-15 努比亚技术有限公司 A kind of image exposure compensation method, device and computer-readable recording medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519522B (en) * 2019-08-08 2021-10-22 浙江大华技术股份有限公司 Method, device and equipment for video anti-overexposure processing and storage medium
CN110519522A (en) * 2019-08-08 2019-11-29 浙江大华技术股份有限公司 Method, apparatus, equipment and the storage medium of the anti-overexposure processing of video
CN112712471B (en) * 2019-10-25 2024-03-15 北京达佳互联信息技术有限公司 Image processing method, device and equipment
CN112712471A (en) * 2019-10-25 2021-04-27 北京达佳互联信息技术有限公司 Image processing method, device and equipment
CN110930335A (en) * 2019-11-27 2020-03-27 维沃移动通信有限公司 Image processing method and electronic equipment
CN113747084A (en) * 2020-05-27 2021-12-03 广东芬尼克兹节能设备有限公司 Frosting image processing and transmitting method, electronic equipment and storage medium
CN111629146A (en) * 2020-05-27 2020-09-04 腾讯科技(深圳)有限公司 Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium
CN114338956A (en) * 2020-09-30 2022-04-12 北京小米移动软件有限公司 Image processing method, image processing apparatus, and storage medium
CN112291481B (en) * 2020-10-30 2022-05-03 重庆紫光华山智安科技有限公司 Exposure automatic adjusting method and device, electronic equipment and storage medium
CN112291481A (en) * 2020-10-30 2021-01-29 重庆紫光华山智安科技有限公司 Exposure automatic adjusting method and device, electronic equipment and storage medium
CN113747008B (en) * 2021-08-18 2023-04-07 浙江大华技术股份有限公司 Camera and light supplementing method
CN113628203A (en) * 2021-08-23 2021-11-09 苏州中科先进技术研究院有限公司 Image quality detection method and detection system
CN113628203B (en) * 2021-08-23 2024-05-17 苏州中科先进技术研究院有限公司 Image quality detection method and detection system
WO2023122906A1 (en) * 2021-12-27 2023-07-06 深圳传音控股股份有限公司 Image processing method, intelligent terminal and storage medium
CN117560576A (en) * 2023-11-13 2024-02-13 四川新视创伟超高清科技有限公司 Exposure method and exposure system for focal plane area
CN117560576B (en) * 2023-11-13 2024-05-07 四川新视创伟超高清科技有限公司 Exposure method and exposure system for focal plane area

Also Published As

Publication number Publication date
CN107566752B (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN107566752A (en) A kind of image pickup method, terminal and computer-readable storage medium
CN107438163A (en) A kind of photographic method, terminal and computer-readable recording medium
CN108270966A (en) A kind of method, mobile terminal and storage medium for adjusting light filling brightness
CN107770448A (en) A kind of image-pickup method, mobile terminal and computer-readable storage medium
CN107302663A (en) A kind of brightness of image method of adjustment, terminal and computer-readable recording medium
CN107302632A (en) A kind of mobile terminal image pickup method, mobile terminal and computer-readable recording medium
CN107317963A (en) A kind of double-camera mobile terminal control method, mobile terminal and storage medium
CN107690065A (en) A kind of white balance correcting, device and computer-readable recording medium
CN107194963A (en) A kind of dual camera image processing method and terminal
CN107959795A (en) A kind of information collecting method, equipment and computer-readable recording medium
CN107133939A (en) A kind of picture synthesis method, equipment and computer-readable recording medium
CN107493426A (en) A kind of information collecting method, equipment and computer-readable recording medium
CN107566753A (en) Method, photo taking and mobile terminal
CN108900778A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN109525782A (en) A kind of image pickup method, terminal and computer readable storage medium
CN108156393A (en) Image capturing method, mobile terminal and computer readable storage medium
CN108322647A (en) Panoramic picture image pickup method, mobile terminal and computer readable storage medium
CN108900780A (en) A kind of screen light compensation method, mobile terminal and storage medium
CN107357500A (en) A kind of picture-adjusting method, terminal and storage medium
CN108055463A (en) Image processing method, terminal and storage medium
CN107239205A (en) A kind of photographic method, mobile terminal and storage medium
CN107566731A (en) A kind of focusing method and terminal, computer-readable storage medium
CN107749947A (en) Photographic method, mobile terminal and computer-readable recording medium
CN108200229A (en) Image pickup method, terminal and the computer readable storage medium of flexible screen terminal
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant