CN107357500A - A kind of picture-adjusting method, terminal and storage medium - Google Patents

A kind of picture-adjusting method, terminal and storage medium Download PDF

Info

Publication number
CN107357500A
CN107357500A CN201710474309.8A CN201710474309A CN107357500A CN 107357500 A CN107357500 A CN 107357500A CN 201710474309 A CN201710474309 A CN 201710474309A CN 107357500 A CN107357500 A CN 107357500A
Authority
CN
China
Prior art keywords
depth
view information
destination object
target
target photo
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
CN201710474309.8A
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 CN201710474309.8A priority Critical patent/CN107357500A/en
Publication of CN107357500A publication Critical patent/CN107357500A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Abstract

The embodiment of the invention discloses a kind of picture-adjusting method, this method includes:Target Photo to be adjusted is obtained, and the Target Photo is shown in current interface;The touch control operation handled Target Photo is received in current display interface;Based on touch control operation and default depth of field model, destination object to be adjusted in Target Photo is determined, default depth of field model is used to each object in Target Photo is judged according to the depth of field;Target depth of view information corresponding to destination object is obtained, and puts in order and adjust the corresponding relation of grade according to target depth of view information and default depth of field block, determines the first adjustment grade corresponding to destination object;Adjust instruction is received, performs adjust instruction, adjust grade according to first is adjusted to destination object.Such picture-adjusting method realizes the effect for the diversified and intelligent of picture processing, improving picture processing.The embodiment of the present invention additionally provides a kind of terminal and storage medium.

Description

A kind of picture-adjusting method, terminal and storage medium
Technical field
The present invention relates to the picture Processing Technique in electronic application field, more particularly to a kind of picture-adjusting method, terminal And 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 shoot function, and user can be shot with using terminal.
In the prior art, when user's using terminal to destination object shoot or user's using terminal is to shooting Picture handled during, be generally all that global pixel is entered when the chroma-luminance of terminal-pair picture is adjusted Row adjustment, and when user wants to handle parts of images, it is that no technical scheme is supported, result in picture Handle existing defects.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected that providing a kind of picture-adjusting method, terminal and storage is situated between Matter, the effect for the diversified and intelligent of picture processing, improving picture processing can be realized.
The technical proposal of the invention is realized in this way:
The embodiments of the invention provide a kind of picture-adjusting method, including:
Target Photo to be adjusted is obtained, and the Target Photo is shown in current interface;
The touch control operation handled the Target Photo is received in the current display interface;
Based on the touch control operation and default depth of field model, destination object to be adjusted in the Target Photo is determined, The default depth of field model is used to judge each object in the Target Photo according to the depth of field;
Target depth of view information corresponding to the destination object is obtained, and according to the target depth of view information and default depth of field block The corresponding relation to put in order with adjustment grade, determine the first adjustment grade corresponding to the destination object;
Adjust instruction is received, performs the adjust instruction, the destination object is carried out according to the described first adjustment grade Adjustment.
It is described to be based on the touch control operation and default depth of field model in such scheme, determine in the Target Photo Destination object to be adjusted, including:
According to the touch control operation, determine the Target Photo by the first area of touch-control;
N number of first pixel corresponding to the first area is obtained, wherein, N is the positive integer more than 1;
Calculate each self-corresponding N number of first depth of view information of N number of first pixel;
A most depth of view information of quantity is determined from N number of first depth of view information, as standard depth of view information;
Obtain the second depth of view information corresponding to each pixel in the Target Photo;
According to the default depth of field model, the standard depth of view information and second depth of view information, the mesh is determined The second area marked on a map in piece, object corresponding to the second area is the destination object.
It is described to obtain target depth of view information corresponding to the destination object in such scheme, and according to the target scape Deeply convince breath and default depth of field block and the corresponding relation of adjustment grade, determine the first adjustment grade corresponding to the destination object, Including:
Obtain each self-corresponding each target depth of view information of pixel of the destination object;
By each target depth of view information according to numerical value principle of diversity, by corresponding to the close target depth of view information of numerical value The region of pixel is defined as a depth of field block, so that it is determined that go out M depth of field block, wherein, M is the positive integer more than 1;
According to the M depth of field block, and the default depth of field block puts in order and the corresponding relation of adjustment grade, it is determined that Go out the first adjustment grade corresponding to each depth of field block corresponding to the destination object.
It is described corresponding with adjustment grade according to the M depth of field block, and the default depth of field block in such scheme Relation, the first adjustment grade corresponding to each depth of field block corresponding to the destination object is determined, including:
The M depth of field block is arranged according to numerical values recited;
The corresponding relation of grade is put in order and adjusted according to the default depth of field block, determines M scape after arrangement successively The first adjustment grade corresponding to deep block difference.
It is described to perform the adjust instruction in such scheme, according to the described first adjustment grade to the destination object It is adjusted, including:
The adjust instruction is performed, the first adjustment grade according to corresponding to each depth of field block, to described each Depth of field block is adjusted respectively.
The embodiments of the invention provide a kind of terminal, including:Receiver, memory, processor, display and communication are total Line, the receiver, memory, the display and the processor are connected by the communication bus;
The processor, call the picture of the memory storage to adjust relative program, and perform following steps:For obtaining Take Target Photo to be adjusted;
The display, for showing the Target Photo in current interface;
The processor, it is additionally operable to receive the touch-control for handling the Target Photo in the current display interface Operation;And based on the touch control operation and default depth of field model, determine destination object to be adjusted in the Target Photo, institute Default depth of field model is stated to be used to judge each object in the Target Photo according to the depth of field;And obtain the target Target depth of view information corresponding to object, and put in order according to the target depth of view information and default depth of field block with adjusting grade Corresponding relation, determine the first adjustment grade corresponding to the destination object;
The receiver, for receiving adjust instruction,
The processor, it is additionally operable to perform the adjust instruction, according to the described first adjustment grade to the destination object It is adjusted.
In above-mentioned terminal, the processor, specifically for according to the touch control operation, determining that the Target Photo is touched The first area of control;N number of first pixel corresponding to the first area is obtained, wherein, N is the positive integer more than 1;Calculate institute State each self-corresponding N number of first depth of view information of N number of first pixel;Determine quantity most from N number of first depth of view information A more depth of view information, as standard depth of view information;Obtain the second scape corresponding to each pixel in the Target Photo Deeply convince breath;According to the default depth of field model, the standard depth of view information and second depth of view information, the target is determined Second area in picture, object corresponding to the second area are the destination object.
In above-mentioned terminal, the processor is each self-corresponding every specifically for the pixel of the acquisition destination object Individual target depth of view information;By each target depth of view information according to numerical value principle of diversity, the close target depth of field of numerical value is believed The region of pixel corresponding to breath is defined as a depth of field block, so that it is determined that go out M depth of field block, wherein, M is just whole more than 1 Number;According to the M depth of field block, and the default depth of field block puts in order and the corresponding relation of adjustment grade, determines institute State the first adjustment grade corresponding to each depth of field block corresponding to destination object.
In above-mentioned terminal, the processor, arranged also particularly useful for by the M depth of field block according to numerical values recited Row;
The corresponding relation of grade is put in order and adjusted according to the default depth of field block, determines M scape after arrangement successively The first adjustment grade corresponding to deep block difference.
The embodiments of the invention provide a kind of computer-readable storage medium, applied in terminal, the computer-readable storage Media storage has one or more photographing program, and one or more of programs can be held by one or more processor OK, the method with realization as described in claim 1 to 5.
The embodiments of the invention provide a kind of picture-adjusting method, terminal and storage medium, obtains target figure to be adjusted Piece, and show the Target Photo in current interface;The touch-control handled Target Photo is received in current display interface Operation;Based on touch control operation and default depth of field model, destination object to be adjusted in Target Photo is determined, presets depth of field model For judging according to the depth of field each object in Target Photo;Target depth of view information corresponding to destination object is obtained, and The corresponding relation of grade is put in order and adjusted according to target depth of view information and default depth of field block, is determined corresponding to destination object First adjustment grade;Adjust instruction is received, performs adjust instruction, adjust grade according to first is adjusted to destination object.Adopt With above-mentioned technic relization scheme, because terminal can be determined according to touch control operation using default depth of field model from Target Photo Go out to need the destination object for being adjusted or handling, therefore, terminal can utilizes the different depth of view information in destination object, adopts The different piece of the destination object of different depth of view information is adjusted with different adjustment grades, realizes mesh in Target Photo The adjustment of object and the different adjustment of the different piece in destination object are marked, are realized to the diversified and intelligent of picture processing Change, improve the effect of picture processing.
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 picture-adjusting method provided in an embodiment of the present invention;
Fig. 4 is the interface schematic diagram that a kind of exemplary camera provided in an embodiment of the present invention sets interface;
Fig. 5 is a kind of interface schematic diagram of exemplary current display interface provided in an embodiment of the present invention;
Fig. 6 is a kind of flowchart 2 of picture-adjusting method provided in an embodiment of the present invention;
Fig. 7 is the contrast schematic diagram that the present invention is the Target Photo before and after a kind of exemplary adjustment that embodiment provides;
Fig. 8 is a kind of flow chart 3 of picture-adjusting method provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram for image-forming principle of taking pictures 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.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " 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, based on above-mentioned mobile terminal hardware configuration and Communications network system, propose each embodiment of the inventive method.
Embodiment one
The embodiments of the invention provide a kind of picture-adjusting method, as shown in figure 3, this method can include:
S101, Target Photo to be adjusted is obtained, and in current interface display target picture.
It should be noted that the terminal in the embodiment of the present invention can be the mobile end described in above-mentioned Fig. 1 and Fig. 2 End, specific form are not restricted.
It should be noted that a kind of application scenarios of picture-adjusting method provided in an embodiment of the present invention can be in terminal During being imaged or being taken a picture, object to be captured that terminal collects in shot region (for example, imaging region of camera lens) Image (Target Photo i.e. to be adjusted), and carry out the final process for being shown as photo of picture adjustment, or clapping for terminal Take the photograph the process for the Target Photo to be adjusted for completing to be chosen in picture library.
In embodiments of the present invention, Target Photo is whether got according to which way, once it is exactly terminal to obtain Current interface show.Specifically, terminal shows preview picture when shooting in the preview interface of terminal, The preview picture is exactly Target Photo, or, user's selection instruction is have received in the picture library of terminal (for example, clicking operation is produced Raw selection instruction), a pictures are selected according to selection instruction, then this picture, which is just directly displayed at, works as prezone On face.
It should be noted that for terminal, the function of the adjustment to Target Photo can start shooting in shooting process During function automatic start or set manually by user.For situation about setting manually, start to take pictures in terminal When (when receiving photographing instruction), the terminal will first detect whether that the shooting adjustment function of the terminal is opened or started, only Have when above-mentioned shooting adjustment function is activated, just carry out a kind of picture-adjusting method provided in an embodiment of the present invention.And when eventually When the shooting at end adjusts function by unlatching or startup, the present invention has been begun to when terminal obtains Target Photo to be adjusted The picture-adjusting method that embodiment provides realizes.
It should be noted that being illustrated exemplified by picture processing when to shoot, shooting is realized in embodiments of the present invention Or shooting adjustment function during photograph, function button can be adjusted to realize by the shooting set.It is by mobile phone of terminal Example illustrates, and user after the handset starting camera function, can start in mobile telephone display when being taken a picture using mobile phone On set shooting adjustment function button, the photo can so taken be shooting adjustment after picture or picture.
Exemplary, as shown in figure 4, user can set interface to carry out shooting adjustment by taking pictures in the embodiment of the present invention The opening and closing of function, when user clicks on "ON" button, just characterize the shooting adjustment function of opening terminal;When user clicks on During "Off" button, with regard to characterizing the shooting adjustment function of closing a terminal.Terminal can adjust function button by detecting above-mentioned shooting Key assignments either state, come determine shoot adjustment function whether open.
In embodiments of the present invention, terminal can be that the electronics that mobile phone, tablet personal computer etc. have shooting or camera function is set It is standby, the type of not limiting terminal of the embodiment of the present invention.
S102, the touch control operation handled Target Photo is received in current display interface.
Terminal obtains Target Photo to be adjusted, and after showing Target Photo in current interface, the terminal The touch-control for being adjusted or handling for the subregion of Target Photo may can be have received in current display interface to grasp Make.
It should be noted that in embodiments of the present invention, because user is to the subregion in Target Photo or object Acquisition parameters are not felt quite pleased, and therefore, user can carry out touch control operation by the object in terminal-pair Target Photo or region, To determine destination object to be adjusted.I.e. terminal can be connected to touch control operation in current display interface, and the touch control operation is used Some object in Target Photo is handled or adjusted in sign.
Exemplary, as shown in figure 5, the Target Photo shown in current interface, user passes through on touch-control Target Photo Region 1, determine destination object to be adjusted.
S103, based on touch control operation and default depth of field model, determine destination object to be adjusted in Target Photo, preset Depth of field model is used to judge each object in Target Photo according to the depth of field.
After terminal receives the touch control operation handled Target Photo in current display interface, because user is general All it is a region of the Target Photo of touch-control, therefore, the terminal is can be made by touch control operation when carrying out touch control operation Image in region, and default depth of field model, determine that terminal to be adjusted be which of Target Photo object or Image.Wherein, depth of field model is preset to be used to judge each object in Target Photo according to the depth of field.
It should be noted that in embodiments of the present invention, Target Photo is all made up of pixel one by one, because This, is also the area as corresponding to multiple pixels in a region of the Target Photo by touch-control in the current display interface of terminal Domain.
In embodiments of the present invention, it is each right can to calculate above-mentioned multiple pixels corresponding to the region of touch-control for terminal The depth of view information answered, then, terminal can is based on above-mentioned multiple each self-corresponding depth of view information of pixel, and default scape Deep model determines the destination object to be adjusted of user's touch-control from Target Photo.
It should be noted that in embodiments of the present invention, terminal calculates Target Photo or pixel depth of view information Usage scenario be that the terminal is carrying out Target Photo using dual camera in the case of being provided with dual camera in terminal It is the depth of view information that can calculate each pixel in Target Photo when shooting, specific Computing Principle will be It is described in subsequent embodiment.
Optionally, in embodiments of the present invention, terminal can be picture pick-up device, shooting application etc..Specific terminal can be with To be provided with the electronic equipments such as the mobile phone of shooting application, flat board, computer.
It should be noted that being provided with imaging sensor in terminal in the embodiment of the present invention, the terminal can pass through figure As sensor collection Target Photo, wherein, Target Photo is after the camera applications in terminal receive shooting operation, in the aobvious of terminal The preview image that display screen curtain photographs arrive.
In embodiments of the present invention, user's using terminal is taken pictures, and user clicks on camera applications, opens camera applications circle Face, and the shoot function key triggered in the camera applications interface realizes photographing operation, i.e. terminal receives shooting instruction, the end End performs shooting instruction, carries out the collection of target image to reference object by imaging sensor.Wherein, imaging sensor is set For example can be specifically the front camera and rear camera of terminal device on the camera in terminal.
S104, target depth of view information corresponding to destination object is obtained, and arranged according to target depth of view information and default depth of field block Corresponding relation of the row order with adjusting grade, determine the first adjustment grade corresponding to destination object.
Terminal is after destination object to be adjusted in determining Target Photo, and terminal has calculated whole mesh before Mark on a map depth of view information corresponding to each pixel of piece, such terminal can obtains from the depth of view information of whole pixels Get target depth of view information corresponding to the destination object determined, then, the terminal can according to target depth of view information and The corresponding relation that default depth of field block puts in order with adjustment grade, is determined corresponding to destination object from different adjustment grades First adjustment grade.
Put in order and adjust it should be noted that prestoring or being preset with depth of field block in embodiments of the present invention, in terminal The corresponding relation of whole grade, wherein, depth of field block is one piece of region corresponding to the close several pixels of depth of view information, and terminal can be with Depth of view information corresponding to different depth of field blocks is arranged according to Digital size, depth of field block is obtained and puts in order, the present invention is real Apply in example, depth of field block, which puts in order with the incidence relation for adjusting grade, to be put in order according to the depth of field, and adjustment grade is from high to low It is corresponding, or correspond to from low to high, it can adjust or set according to the demand of reality specific corresponding to relation.
Specifically, the as shown in fig. 6, specific implementation process of the S104 in a kind of image pickup method provided in an embodiment of the present invention It can include:S1041-S1043.It is as follows:
S1041, each self-corresponding each target depth of view information of pixel for obtaining destination object;
S1042, by each target depth of view information according to numerical value principle of diversity, the close target depth of view information of numerical value is corresponding The region of pixel be defined as a depth of field block, so that it is determined that go out M depth of field block, wherein, M is the positive integer more than 1;
S1043, according to M depth of field block, and default depth of field block puts in order the corresponding relation with adjustment grade, determines First adjustment grade corresponding to each depth of field block corresponding to destination object.
In embodiments of the present invention, terminal is after the depth of view information of each pixel of Target Photo has been calculated, the end End is can to get each self-corresponding each target depth of view information of pixel that destination object is determined, terminal is by each mesh Depth of view information is marked according to numerical value principle of diversity, the region of pixel corresponding to the close target depth of view information of numerical value is defined as one The region of pixel corresponding to destination object is defined as M scape corresponding to destination object by the individual such terminal can of depth of field block Deep block, finally, terminal can be according to M depth of field blocks, and default depth of field block puts in order and the corresponding relation of adjustment grade, Determine the first adjustment grade corresponding to each depth of field block corresponding to destination object.
In embodiments of the present invention, for terminal according to M depth of field block, and default depth of field block puts in order with adjustment etc. The corresponding relation of level, determining the process of the first adjustment grade corresponding to each depth of field block corresponding to destination object can be:By M Individual depth of field block is arranged according to numerical values recited;The corresponding relation of grade is put in order and adjusted according to default depth of field block, successively It is determined that arrangement after M depth of field block respectively corresponding to first adjust grade.Wherein, adjustment grade refers to that terminal is defeated for user The targeted colouring information of the adjust instruction that enters increased amount or precision every time.
That is, the first adjustment grade is a general designation, the corresponding adjustment grade of each depth of field block, it is also possible to several The adjustment grade of depth of field block is the same.
It should be noted that terminal is determined different by seeking the depth of view information of each pixel in Target Photo all over The depth of view information of each depth of field block, is then compared by depth of field block (region corresponding to depth of view information), judges current to be adjusted Destination object residing for sorting position (according to from large to small, not being restricted specifically), terminal is it is determined that after sorting position, terminal Match the corresponding Adjustment precision grade (adjusting grade) of predeterminated position.Adjustment grade in embodiments of the present invention can divide For three-level (specific grade can in the light of actual conditions Demand Design, be not restricted), the M depth of field block that terminal determines be probably big In the situation of three, at this moment, M depth of field block can be divided into three parts in sequence by terminal, and then each part is right in order Answer an adjustment grade.For example, the order of M depth of field block is:Depth of field block 1, depth of field block 2, depth of field block 3 and depth of field block 4, adjust Whole grade can be 1 grade, 2 grades and 3 grades.So, presetting depth of field block order can be with the corresponding relation for adjusting grade:Depth of field block 1 and corresponding 1 grade of depth of field block 2, depth of field block 3 is corresponding 2 grades, and depth of field block 4 is corresponding 3 grades.
In embodiments of the present invention, it is scape to preset depth of field block and put in order with the setting principle of the corresponding relation of adjustment grade The order of deep block, the order with adjusting grade are corresponding in turn to, and do not limit the count issue in a corresponding relation.
It should be noted that specifically, the numerical value of depth of view information is bigger, adjustment grade is corresponding high-grade or inferior grade Determine according to the actual requirements, various all to have, the embodiment of the present invention is not restricted.
S105, adjust instruction is received, perform adjust instruction, adjust grade according to first is adjusted to destination object.
For terminal after the first adjustment grade corresponding to destination object is determined, the terminal can perform adjust instruction, according to Destination object is adjusted according to the first adjustment grade.
Specifically, terminal performs adjust instruction, the first adjustment grade according to corresponding to each depth of field block, to each depth of field block It is adjusted respectively.
It should be noted that the adjustment grade in the embodiment of the present invention can be any acquisition parameters of adjustment picture, example Such as adjust shooting luminance parameter.Color parameter etc., the embodiment of the present invention is not restricted.
Exemplary, it is illustrated in figure 7 the destination object in Target Photo and is contrasted before adjustment with the schematic diagram after adjustment, The partial objects in Target Photo can be adjusted using a kind of picture-adjusting method provided in an embodiment of the present invention, are produced preferable Picture quality.
Further, in embodiments of the present invention, in order to prevent user by terminal when being adjusted to acquisition parameters, The parameter value for not meeting convention is recalled, the acquisition parameters value setting adjusting range of terminal-pair destination object to be adjusted, the tune The maximum and minimum value of whole scope, respectively using the acquisition parameters value in the maximum region of the depth of view information than the destination object as most Big value, using the acquisition parameters value in the minimum region of the depth of view information than the destination object as minimum value.
It is understood that due to terminal can according to touch control operation, using default depth of field model from Target Photo really The destination object for needing to be adjusted or handle is made, therefore, terminal can utilizes the different depth of view information in destination object, The different piece of the destination object of different depth of view information is adjusted using different adjustment grades, realized in Target Photo The different adjustment of different piece in the adjustment of destination object and destination object, are realized to the diversified and intelligent of picture processing Change, improve the effect of picture processing.
Embodiment two
On the basis of being realized based on embodiment one, as shown in figure 8, in a kind of image pickup method provided in an embodiment of the present invention S103 specific implementation process can include:S1031-S1036.It is as follows:
S1031, according to touch control operation, determine Target Photo by the first area of touch-control.
Terminal is according to touch control operation, it may be determined that by the first area of the Target Photo of touch control operation touch-control.
Exemplary, as shown in figure 5, the Target Photo shown in current interface, user passes through on touch-control Target Photo Region 1, determine destination object to be adjusted.
S1032, N number of first pixel corresponding to first area is obtained, wherein, N is the positive integer more than 1.
S1033, calculate N number of each self-corresponding N number of first depth of view information of first pixel.
Terminal obtains corresponding N number of first pixel in the first area from first area, and has calculated N number of first Each self-corresponding N number of first depth of view information of pixel, wherein N are the positive integer more than 1.
Exemplary, terminal obtains N number of in the first area (region that user clicks on) of above-mentioned touch control operation effect Pixel:A1、A2……AN;The first camera and second camera are provided with terminal, the terminal by the first camera and Second camera calculates the depth of view information that can calculate each pixel in Target Photo, i.e., also calculated A1, N number of first depth of view information, i.e. d1d2d3 ... dN corresponding to A2 ... AN.
Exemplary, in Target Photo as shown in Figure 5, terminal is according to the clicking operation of user, it is determined that region 1 Tri- pixels of A1, A2 and A3, the standard depth of view information of destination object (stone tablet) can be determined by these three pixels.
It should be noted that the depth of field refer to camera lens or other imager forward positions can obtain picture rich in detail into The scope for the subject longitudinal separation that picture is determined.Terminal can be formed after the completion of focusing in the scope before and after focus Clearly as when this distance range one in front and one in back, be just called the depth of field.
The depth of field is calculated as follows:Terminal can calculate the preceding depth of field and the rear depth of field respectively according to formula (1) and formula (2), Field depth is obtained so as to be added determination.Wherein, formula (1) and formula (2) are as follows:
Wherein, Δ L1For the preceding depth of field, Δ L2For the rear depth of field, f is initial focal length, and F is the shooting f-number of camera lens, and L is focusing Distance, δ are disperse garden diameter.
It should be noted that in embodiments of the present invention, realize the device of focusing by lens group and imaging sensor group Realized into set of system.
Exemplary, as shown in figure 9, it can be 200mm, the shooting f-number F=2.8 of camera lens to work as initial focal length f, focus When distance L=5000mm, disperse garden diameter δ=0.035mm, depth of field Δ L1=60mm, background before terminal calculates according to formula (1) Deep Δ L1=60mm=62mm, therefore, the first field depth Δ L=122mm.
In embodiments of the present invention, the method that terminal is recovered using principle of triangulation with the binocular vision depth of field carries out target The calculating of the depth of view information of each pixel in picture.
Specifically, the two width pictures that terminal can be shot by two rear cameras under two different visual angles, such as Fruit knows corresponding relation of the reference object in two width pictures, and terminal can is obtained corresponding according to Similar Principle of Triangle Parallax, after the parallax of all objects on Target Photo has been obtained, it is possible to accurately calculate each on the Target Photo The three-dimensional coordinate information of homologue, such terminal have just obtained the 3d space information of current Target Photo scene.
S1034, a most depth of view information of quantity is determined from N number of first depth of view information, believed as the standard depth of field Breath.
Second depth of view information corresponding to each pixel in S1035, acquisition Target Photo.
S1036, basis default depth of field model, standard depth of view information and the second depth of view information, are determined in Target Photo Second area, object corresponding to second area are destination object.
After the 3d space information for each pixel that terminal is aware of in Target Photo, the terminal can is by sentencing Each depth of field that exclusively enjoys is poor in disconnected Target Photo, come judge user it is to be processed be which of Target Photo object, then should The brightness in the depth of field region where the destination object is adjusted by terminal can, while user's regional luminance to be adjusted When, can be associated with the amplitude of brightness adjustment by the depth of field value of the destination object again, and also closed with the size in region Connection, so as to reach local dynamic station adjustment, it is not necessary to which large area adjustment is carried out to whole Target Photo.
Specifically, terminal is after N number of each self-corresponding N number of first depth of view information of first pixel is calculated, against N number of picture The depth of view information of vegetarian refreshments carries out statistics with histogram, finds out most first depth of field letter of occurrence number in N number of first depth of view information Breath, for terminal in order to determine click on area object (destination object) that user wants, terminal finds out occurrence number in histogram Most depth of view information di, di is the depth of view information of destination object region.At this moment, terminal obtains every in Target Photo Second depth of view information corresponding to individual pixel, terminal is according to default depth of field model, standard depth of view information and the second depth of view information, really The second area in Target Photo is made, object corresponding to second area is destination object, i.e., terminal is by by each pixel The second depth of view information be compared with the standard depth of view information of destination object, judge whether to meet default depth of field model, if full Foot, then pixel corresponding to second depth of view information should be a pixel corresponding to destination object, if not satisfied, then this Pixel corresponding to two depth of view information should not be a pixel corresponding to destination object, can thus determine target figure Second area corresponding to destination object in piece.
Optionally, it is shown in formula (3) to preset depth of field model:
Diff=abs (d (x, y)-d)<T (3)
Wherein diff is depth of field difference, and d (x, y) is the second depth of view information of pixel point coordinates (x, y), and d is the standard depth of field Information.
That is, in embodiments of the present invention, if depth of field difference is less than certain threshold value, terminal determines that pixel Coordinate (x, y) is a coordinate points in destination object to be adjusted in present image.
Embodiment three
On optimized integration based on embodiment one and embodiment two, as shown in Figure 10, the embodiments of the invention provide one kind Terminal 1, including:Receiver 10, memory 11, processor 12, display 13 and communication bus 14, the receiver 10, storage Device 11, the display 13 and the processor 12 are connected by the communication bus 14;
The processor 12, call the picture of the memory storage to adjust relative program, and perform following steps:For Obtain Target Photo to be adjusted;
The display 13, for showing the Target Photo in current interface;
The processor 12, be additionally operable in the current display interface receive the Target Photo is handled touch Control operation;And based on the touch control operation and default depth of field model, destination object to be adjusted in the Target Photo is determined, The default depth of field model is used to judge each object in the Target Photo according to the depth of field;And obtain the mesh Target depth of view information corresponding to object is marked, and is put in order according to the target depth of view information and default depth of field block with adjusting grade Corresponding relation, determine corresponding to the destination object the first adjustment grade;
The receiver 10, for receiving adjust instruction,
The processor 12, it is additionally operable to perform the adjust instruction, according to the described first adjustment grade to the target pair As being adjusted.
Optionally, the processor 12, specifically for according to the touch control operation, determining the Target Photo by touch-control First area;N number of first pixel corresponding to the first area is obtained, wherein, N is the positive integer more than 1;Calculate the N Individual each self-corresponding N number of first depth of view information of first pixel;Determine that quantity is most from N number of first depth of view information One depth of view information, as standard depth of view information;Second depth of field corresponding to each pixel in the Target Photo is obtained to believe Breath;According to the default depth of field model, the standard depth of view information and second depth of view information, the Target Photo is determined In second area, object corresponding to the second area is the destination object.
Optionally, the processor 12, each self-corresponding each mesh of pixel specifically for obtaining the destination object Mark depth of view information;By each target depth of view information according to numerical value principle of diversity, by the close target depth of view information pair of numerical value The region for the pixel answered is defined as a depth of field block, so that it is determined that go out M depth of field block, wherein, M is the positive integer more than 1;Root According to the M depth of field block, and the default depth of field block puts in order and the corresponding relation of adjustment grade, determines the target The first adjustment grade corresponding to each depth of field block corresponding to object.
Optionally, the processor 12, arranged also particularly useful for by the M depth of field block according to numerical values recited;
The corresponding relation of grade is put in order and adjusted according to the default depth of field block, determines M scape after arrangement successively The first adjustment grade corresponding to deep block difference.
Optionally, the processor 12, also particularly useful for the adjust instruction is performed, corresponded to according to each depth of field block The first adjustment grade, each depth of field block is adjusted respectively.
In actual applications, above-mentioned memory can be volatile memory (volatile memory), such as at random Access memory (RAM, Random-Access Memory);Or nonvolatile memory (non-volatile memory), Such as read-only storage (ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid state hard disc (SSD, Solid-State Drive);Or the combination of the memory of mentioned kind, and to Processor provides instruction and data.
Above-mentioned processor can be application-specific IC (ASIC, Application Specific Integrated Circuit), digital signal processor (DSP, Digital Signal Processor), digital signal processing device (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field Programmable Gate Array), central processing unit (CPU, Central Processing Unit), controller, microcontroller, at least one of microprocessor.It is to be appreciated that 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 made specifically Limit.
It is understood that due to terminal can according to touch control operation, using default depth of field model from Target Photo really The destination object for needing to be adjusted or handle is made, therefore, terminal can utilizes the different depth of view information in destination object, The different piece of the destination object of different depth of view information is adjusted using different adjustment grades, realized in Target Photo The different adjustment of different piece in the adjustment of destination object and destination object, are realized to the diversified and intelligent of picture processing Change, improve the effect of picture processing.
The embodiments of the invention provide a kind of computer-readable storage medium, applied in terminal, the computer-readable storage Media storage has one or more photographing program, and one or more of programs can be held by one or more processor OK, the method with realization as described in embodiment one and 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. picture-adjusting method, it is characterised in that including:
    Target Photo to be adjusted is obtained, and the Target Photo is shown in current interface;
    The touch control operation handled the Target Photo is received in the current display interface;
    Based on the touch control operation and default depth of field model, destination object to be adjusted in the Target Photo is determined, it is described Default depth of field model is used to judge each object in the Target Photo according to the depth of field;
    Target depth of view information corresponding to the destination object is obtained, and is arranged according to the target depth of view information and default depth of field block Order and the corresponding relation for adjusting grade, determine the first adjustment grade corresponding to the destination object;
    Adjust instruction is received, performs the adjust instruction, the destination object is adjusted according to the described first adjustment grade.
  2. 2. according to the method for claim 1, it is characterised in that it is described to be based on the touch control operation and default depth of field model, Destination object to be adjusted in the Target Photo is determined, including:
    According to the touch control operation, determine the Target Photo by the first area of touch-control;
    N number of first pixel corresponding to the first area is obtained, wherein, N is the positive integer more than 1;
    Calculate each self-corresponding N number of first depth of view information of N number of first pixel;
    A most depth of view information of quantity is determined from N number of first depth of view information, as standard depth of view information;
    Obtain the second depth of view information corresponding to each pixel in the Target Photo;
    According to the default depth of field model, the standard depth of view information and second depth of view information, the target figure is determined Second area in piece, object corresponding to the second area are the destination object.
  3. 3. according to the method for claim 1, it is characterised in that described to obtain target depth of field letter corresponding to the destination object Breath, and according to the target depth of view information and default depth of field block and the corresponding relation of adjustment grade, determine the destination object Corresponding first adjustment grade, including:
    Obtain each self-corresponding each target depth of view information of pixel of the destination object;
    By each target depth of view information according to numerical value principle of diversity, by pixel corresponding to the close target depth of view information of numerical value The region of point is defined as a depth of field block, so that it is determined that go out M depth of field block, wherein, M is the positive integer more than 1;
    According to the M depth of field block, and the default depth of field block puts in order and the corresponding relation of adjustment grade, determines institute State the first adjustment grade corresponding to each depth of field block corresponding to destination object.
  4. 4. according to the method for claim 3, it is characterised in that described according to the M depth of field block, and the default scape Deep block and the corresponding relation of adjustment grade, determine first adjustment corresponding to each depth of field block corresponding to the destination object Grade, including:
    The M depth of field block is arranged according to numerical values recited;
    The corresponding relation of grade is put in order and adjusted according to the default depth of field block, determines M depth of field block after arrangement successively The first adjustment grade corresponding to respectively.
  5. 5. the method according to claim 3 or 4, it is characterised in that it is described to perform the adjust instruction, according to described first Adjustment grade is adjusted to the destination object, including:
    The adjust instruction is performed, the first adjustment grade according to corresponding to each depth of field block, to each depth of field Block is adjusted respectively.
  6. A kind of 6. terminal, it is characterised in that including:Receiver, memory, processor, display and communication bus, the reception Device, memory, the display and the processor are connected by the communication bus;
    The processor, call the picture of the memory storage to adjust relative program, and perform following steps:Treated for obtaining The Target Photo of adjustment;
    The display, for showing the Target Photo in current interface;
    The processor, it is additionally operable to receive the touch-control behaviour for handling the Target Photo in the current display interface Make;And based on the touch control operation and default depth of field model, destination object to be adjusted in the Target Photo is determined, it is described Default depth of field model is used to judge each object in the Target Photo according to the depth of field;And obtain the target pair As corresponding target depth of view information, and according to the target depth of view information and default depth of field block put in order with adjust grade pair It should be related to, determine the first adjustment grade corresponding to the destination object;
    The receiver, for receiving adjust instruction,
    The processor, it is additionally operable to perform the adjust instruction, the destination object is carried out according to the described first adjustment grade Adjustment.
  7. 7. terminal according to claim 6, it is characterised in that
    The processor, specifically for according to the touch control operation, determining the Target Photo by the first area of touch-control;Obtain N number of first pixel corresponding to the first area, wherein, N is the positive integer more than 1;It is each to calculate N number of first pixel Self-corresponding N number of first depth of view information;A most depth of view information of quantity is determined from N number of first depth of view information, As standard depth of view information;Obtain the second depth of view information corresponding to each pixel in the Target Photo;According to described pre- If depth of field model, the standard depth of view information and second depth of view information, determine the second area in the Target Photo, Object corresponding to the second area is the destination object.
  8. 8. terminal according to claim 6, it is characterised in that
    The processor, each self-corresponding each target depth of view information of pixel specifically for obtaining the destination object;Will Each target depth of view information is according to numerical value principle of diversity, by the area of pixel corresponding to the close target depth of view information of numerical value Domain is defined as a depth of field block, so that it is determined that go out M depth of field block, wherein, M is the positive integer more than 1;According to the M depth of field Block, and the default depth of field block puts in order and the corresponding relation of adjustment grade, determines every corresponding to the destination object The first adjustment grade corresponding to individual depth of field block.
  9. 9. terminal according to claim 8, it is characterised in that
    The processor, arranged also particularly useful for by the M depth of field block according to numerical values recited;
    The corresponding relation of grade is put in order and adjusted according to the default depth of field block, determines M depth of field block after arrangement successively The first adjustment grade corresponding to respectively.
  10. A kind of 10. computer-readable storage medium, it is characterised in that applied in terminal, the computer-readable recording medium storage There is one or more photographing program, one or more of programs can be by one or more computing device, to realize Method as described in claim 1 to 5.
CN201710474309.8A 2017-06-21 2017-06-21 A kind of picture-adjusting method, terminal and storage medium Pending CN107357500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710474309.8A CN107357500A (en) 2017-06-21 2017-06-21 A kind of picture-adjusting method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710474309.8A CN107357500A (en) 2017-06-21 2017-06-21 A kind of picture-adjusting method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN107357500A true CN107357500A (en) 2017-11-17

Family

ID=60273528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710474309.8A Pending CN107357500A (en) 2017-06-21 2017-06-21 A kind of picture-adjusting method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107357500A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024057A (en) * 2017-11-30 2018-05-11 广东欧珀移动通信有限公司 Background blurring processing method, device and equipment
CN109472848A (en) * 2018-10-29 2019-03-15 广东小天才科技有限公司 A kind of image processing method and terminal device for preventing finger print information from revealing
CN110198411A (en) * 2019-05-31 2019-09-03 努比亚技术有限公司 Depth of field control method, equipment and computer readable storage medium during a kind of video capture
CN110717962A (en) * 2019-10-18 2020-01-21 厦门美图之家科技有限公司 Dynamic photo generation method and device, photographing equipment and storage medium
CN110928622A (en) * 2019-11-08 2020-03-27 北京金山安全软件有限公司 Picture display state adjusting method and device and electronic equipment
CN110958398A (en) * 2018-09-27 2020-04-03 浙江宇视科技有限公司 Motion point light source restraining method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019571A (en) * 2011-09-20 2013-04-03 浪潮乐金数字移动通信有限公司 Method and terminal for performing 3D (three-dimensional) image edition adjustment on terminal touch screen
CN103873771A (en) * 2014-03-03 2014-06-18 深圳市中兴移动通信有限公司 Image processing device and image processing method
CN105721787A (en) * 2016-02-01 2016-06-29 广东欧珀移动通信有限公司 Method and device for adjusting local region exposure, and mobile terminal
CN106791111A (en) * 2016-12-23 2017-05-31 努比亚技术有限公司 A kind of images share method, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019571A (en) * 2011-09-20 2013-04-03 浪潮乐金数字移动通信有限公司 Method and terminal for performing 3D (three-dimensional) image edition adjustment on terminal touch screen
CN103873771A (en) * 2014-03-03 2014-06-18 深圳市中兴移动通信有限公司 Image processing device and image processing method
CN105721787A (en) * 2016-02-01 2016-06-29 广东欧珀移动通信有限公司 Method and device for adjusting local region exposure, and mobile terminal
CN106791111A (en) * 2016-12-23 2017-05-31 努比亚技术有限公司 A kind of images share method, device and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024057A (en) * 2017-11-30 2018-05-11 广东欧珀移动通信有限公司 Background blurring processing method, device and equipment
CN110958398A (en) * 2018-09-27 2020-04-03 浙江宇视科技有限公司 Motion point light source restraining method and device
CN109472848A (en) * 2018-10-29 2019-03-15 广东小天才科技有限公司 A kind of image processing method and terminal device for preventing finger print information from revealing
CN110198411A (en) * 2019-05-31 2019-09-03 努比亚技术有限公司 Depth of field control method, equipment and computer readable storage medium during a kind of video capture
CN110717962A (en) * 2019-10-18 2020-01-21 厦门美图之家科技有限公司 Dynamic photo generation method and device, photographing equipment and storage medium
CN110717962B (en) * 2019-10-18 2023-04-28 厦门美图之家科技有限公司 Dynamic photo generation method, device, photographing equipment and storage medium
CN110928622A (en) * 2019-11-08 2020-03-27 北京金山安全软件有限公司 Picture display state adjusting method and device and electronic equipment
CN110928622B (en) * 2019-11-08 2023-11-14 北京金山安全软件有限公司 Picture display state adjusting method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107357500A (en) A kind of picture-adjusting method, terminal and storage medium
CN108322644A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN107317963A (en) A kind of double-camera mobile terminal control method, mobile terminal and storage medium
CN107302632A (en) A kind of mobile terminal image pickup method, mobile terminal and computer-readable recording medium
CN108900790A (en) Method of video image processing, mobile terminal and computer readable storage medium
CN108108704A (en) Face identification method and mobile terminal
CN107959795A (en) A kind of information collecting method, equipment and computer-readable recording medium
CN107730462A (en) A kind of image processing method, terminal and computer-readable recording medium
CN107133939A (en) A kind of picture synthesis method, equipment and computer-readable recording medium
CN107566752A (en) A kind of image pickup method, terminal and computer-readable 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
CN107948360A (en) Image pickup method, terminal and the computer-readable recording medium of flexible screen terminal
CN107680060A (en) A kind of image distortion correction method, terminal and computer-readable recording medium
CN107613208A (en) Adjusting method and terminal, the computer-readable storage medium of a kind of focusing area
CN108965710A (en) Method, photo taking, device and computer readable storage medium
CN107295269A (en) A kind of light measuring method and terminal, computer-readable storage medium
CN107566731A (en) A kind of focusing method and terminal, computer-readable storage medium
CN107040723A (en) A kind of imaging method based on dual camera, mobile terminal and storage medium
CN107566734A (en) Portrait is taken pictures intelligent control method, terminal and computer-readable recording medium
CN107707821A (en) Modeling method and device, bearing calibration, terminal, the storage medium of distortion parameter
CN107240072A (en) A kind of screen luminance adjustment method, terminal and computer-readable recording medium
CN109120858A (en) A kind of image capturing method, device, equipment and storage medium
CN108600458A (en) Method, photo taking, device and computer readable storage medium
CN111885307A (en) Depth-of-field shooting method and device 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: 20171117

RJ01 Rejection of invention patent application after publication