Term " first ", " second ", " third " and " the 4th " in description and claims of this specification etc. are to useIn the different object of difference, rather than it is used for the particular order of description object.For example, the first input, the second input, third inputWith the particular order that the 4th input etc. is for distinguishing different inputs, rather than for describe to input.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.ThisBe described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparingOther embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purportRelated notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more,For example, multiple processing units refer to two or more processing unit;Multiple element refers to two or moreElement etc..
The embodiment of the present invention provides a kind of method of determining focus point, terminal device can by receiving the input of user,The input is the input that user selects the first focus point;In response to the input, the first preview image is obtained, and obtains first areaThe first image information, which is the region put centered on first focus point in first preview image;It obtainsSecond preview image, and obtain the second image information of second area, the second area be in the second preview image with this firstThe corresponding region in region;It is less than or equal to the feelings of first threshold in the similarity of second image information and first image informationUnder condition (target object being located at around the first focus point and the first focus point in the first preview image of explanation, it is pre- secondLooking at the position in image is changed), determined in second preview image the second focus point (in the second preview image,Determine the position of the target object, i.e. around the second focus point and the second focus point), wherein the target image of target areaThe similarity of information and first image information is greater than the first threshold, the target area be in second preview image with thisThe region put centered on two focus points.With this solution, when terminal device judges to be located at the first focusing in the first preview imageTarget object around point and the first focus point, when variation has occurred in the position in the second preview image, if terminal deviceStill according to the first focus point, focus to the second preview image, then the poor display effect of the image obtained (is not user's needs), the second focus point is determined in the second preview image, that is, determines the position of the target object, according to the second focus point, to theThe focusing of two preview images, the display effect of the image of acquisition is preferably (being that user needs).It is clapped so as to solve the prior artThe poor problem of the effect for the depth image taken the photograph.
Below by taking Android operation system as an example, the method for introducing determining focus point provided in an embodiment of the present invention is answeredSoftware environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.SchemingIn 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer andInner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation systemTripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application programIn the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviourAs system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation systemBorder.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interiorStratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1The software program of the method for determining focus point provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, thusThe method of the determination focus point is run based on Android operation system as shown in Figure 1.That is processor or terminal canIn the method for realizing determining focus point provided in an embodiment of the present invention by running the software program in Android operation system.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It movesDynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super shiftingDynamic personal computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant(personal digital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personalComputer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention does not limit specificallyIt is fixed.
The executing subject of the method for determining focus point provided in an embodiment of the present invention can for above-mentioned terminal device (includingMobile terminal device and immobile terminal equipment), or can be realized in the terminal device this method functional module and/Or functional entity, it can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.Below with terminal deviceFor, the method for determining focus point provided in an embodiment of the present invention is illustratively illustrated.
It should be understood that the method for determining focus point provided in an embodiment of the present invention, the usually prominent, back for themeThe depth image of scape virtualization, for example, by using it is double take the photograph image that virtualization mode shoots, using using portrait mode of figure shooting image, adoptThe image etc. shot with RGB and structure light mode or RGB and flying time technology (Time OfFlight, abbreviation TOF) mode,The embodiment of the present invention is without limitation;The method of determining focus point provided in an embodiment of the present invention is also possible to for other kinds ofImage, the embodiment of the present invention is without limitation.
Refering to what is shown in Fig. 2, the embodiment of the invention provides a kind of method of determining focus point, this method may include followingStep 201- step 205.
Step 201, terminal device receive the input of user, which is the input that user selects the first focus point.
The input is the input that user selects the first focus point on the first preview image, in order to avoid obscuring, hereinInput is denoted as the first input.The first area is the region put centered on first focus point in first preview image.
Illustratively, the first input may include the clicking operation on the target position in first preview image,It may include the slide on the target position in first preview image, also may include in first preview imageTarget position on the operation of other feasibilities, specifically can determine that the embodiment of the present invention not make according to actual use demandIt limits.
Illustratively, above-mentioned clicking operation can be single-click operation, can for long-pressing click (click the time be greater than or waitIn preset time) operation, it is also possible to click (clicking the time less than preset time) operation of short-press, can be grasped to double-clickMake, or is the clicking operation etc. of arbitrary number of times.Above-mentioned slide can be the slide to any direction, such as upwardsSliding, is slided to the left or is slided to the right slide downward.
Illustratively, which is also possible to the input that user inputs the location information of the first focus point, for example, theThe location information of one focus point is the coordinate information of the first focus point.
Step 202, in response to the input, terminal device obtains the first preview image, and obtains the first figure of first areaAs information.
Terminal device obtains the first preview image, the specific can be that the image for the first preview image that terminal device obtainsInformation can be the image information that terminal device acquires the first preview image, is also possible to terminal device and receives the first preview graphThe image information of picture, the embodiment of the present invention are not construed as limiting.
Terminal device obtains the first image information of first area from the image information of the first preview image.
First area is a part in the first preview image, and the first image information of first area is denoted as first areaFirst image information of image.
Optionally, the shape of first area can be preset shape, for example, the shape of first area is square;TheThe size in one region can be preset value, such as first area is the neighborhood of the 5*5 put centered on the first focus point;Specific rootIt is set according to actual conditions, the embodiment of the present invention is not construed as limiting.
Optionally, the shape of first area can be what terminal device obtained in real time, and the shape of first area, which can be, appointsIt anticipates feasible shape;The size of first area is also possible to what terminal device obtained in real time, and the size of first area, which can be, appointsIt anticipates feasible size;It is determined with specific reference to actual conditions, the embodiment of the present invention is not construed as limiting.
First image information can be the information of the feature of any image that can indicate first area, and the embodiment of the present invention is notIt limits.
Illustratively, refering to what is shown in Fig. 3, when the shooting preview interface of terminal device shows the first preview as shown in Figure 3When image, if user wants to shoot the depth image based on personage, the head that user clicks personage is (such as a certain at eyesPoint is the first focus point) position (first input), terminal device receives the first input of user, obtains as shown in the figure firstFirst image information in region (region that overstriking dotted line frame is surrounded in figure).
Step 203, terminal device obtain the second preview image, and obtain the second image information of second area.
The second area is region corresponding with the first area in the second preview image.I.e. second area this secondPosition in preview image, it is identical as position of the first area in first preview image, it may also be said in second areaCoordinate value of each pixel in the second preview image, with each pixel in first area in the first preview imageCoordinate value it is identical.
Terminal device obtains the second preview image, the specific can be that the image for the second preview image that terminal device obtainsInformation can be the image information that terminal device acquires the second preview image, is also possible to terminal device and receives the second preview graphThe image information of picture, the embodiment of the present invention are not construed as limiting.
Terminal device obtains the second image information of second area from the image information of the second preview image.
Terminal device obtains the second image letter of the second area in the preview image shown in shooting preview interface in real timeBreath.Acquisition methods refer to existing the relevant technologies.
Optionally, the shape of second area and the shape of first area are identical, the size of second area and first areaSize is identical.
Optionally, the shape of second area and the shape of first area are similar, the shape of second area and first areaThe similarity of shape is greater than or equal to second threshold and (in order to avoid obscuring, is denoted as second threshold herein, second threshold is greater than firstThreshold value), the size of second area and the size of first area are similar, the size of the size and first area of second area it is similarDegree is greater than or equal to third threshold value (in order to avoid obscuring, being denoted as third threshold value herein, third threshold value is greater than first threshold).
It is above-mentioned right to refer to the description of the second image information of second area, the second image information and second areaFirst area, the first image information associated description, it will not go into details herein.
Step 204 (optional), terminal device judge the second image information and first image information similarity whetherLess than or equal to first threshold.
The method of the specific similarity for obtaining the second image information and first image information, can refer to existing correlationTechnology, the embodiment of the present invention are not construed as limiting.
Illustratively, if the method for obtaining the second image information and the similarity of first image information is to obtain histogramThe method of information similarity, then the first image information is the first histogram information, and the second image information is the second histogram letterBreath;If the method for obtaining the second image information and the similarity of first image information is perceptual hash algorithm, the first imageInformation is the first fingerprint character string, and the second image information is the second fingerprint character string, such as the first fingerprint character string is to firstFor the image in region according to a corresponding fingerprint character string of default law generation, the second fingerprint character string is to second areaImage according to default law generation a corresponding fingerprint character string.
Compare the similarity of the first image information and the second image information, similarity is bigger, the image of first area andThe image in two regions is more similar.
If the similarity of the second image information and first image information is greater than first threshold, illustrate the first preview imageIn the target object being located at around the first focus point and the first focus point, the position in the second preview image does not becomeChange, changes (display effect of image is had not significant impact) within an acceptable range in other words;If the second image information with shouldThe similarity of first image information be less than or equal to first threshold, then illustrate in the first preview image be located at the first focus point withAnd the first target object around focus point, the position in the second preview image change, variation in other words is beyond can connectIt (is had a significant effect to the display effect of image) by range, then executes following steps 205.
Step 205, terminal device determine the second focus point in second preview image.
In the case where the similarity of second image information and first image information is less than or equal to first threshold, eventuallyEnd equipment determines the second focus point in second preview image.
Wherein, the similarity of the target image information of target area and first image information is greater than the first threshold, shouldTarget area is the region put centered on second focus point in second preview image.
It is above-mentioned right to refer to the description of the target image information of target area, target image information and target areaFirst area, the first image information associated description, it will not go into details herein.
Optionally, the shape of the first area is preset shape, having a size of preset value, and the shape of the second area is that this is pre-If shape, having a size of the preset value, the shape of the target area is the preset shape, having a size of the preset value.
Illustratively, refering to what is shown in Fig. 4, when the shooting preview interface of terminal device shows the second preview as shown in Figure 4When image, due to the movement (being moved to the position in Fig. 4 from the position in Fig. 3) of personage, so that in the second preview imageSecond image information of second area (overstriking dotted line frame position in Fig. 4) and the first area in the first preview image (add in Fig. 3Thick dashed line frame position) the first image information similarity be less than or equal to the first threshold, terminal device is in the second preview graphThe second focus point, the mesh of the target area put centered on the second focus point (non-overstriking dotted line frame position in Fig. 4) are determined as inThe similarity of logo image information and first image information is greater than the first threshold.
Illustratively, which can specifically be realized by following step 205a- step 205b.
Step 205a, terminal device determines the target area in second preview image.
Terminal device first determines target area in the second image, such as terminal device can be according to picture charge pattern, imageMatched any means, determine target area in the second image, and the embodiment of the present invention is not construed as limiting.Determine the side of target areaThe specific implementation process of method can refer to existing the relevant technologies, and it will not go into details for the embodiment of the present invention.
Illustratively, step 205a can specifically be realized by following step 205a1- step 205a2.
Step 205a1, terminal device determines N number of third region in second preview image.
The shape in each third region is identical as the shape of the first area, and the size in each third region and thisThe size in one region is identical.Wherein, N is positive integer.
Step 205a2, terminal device determines the target area from N number of third region.
Terminal device first determines N number of third region in the second preview image, suddenly after from N number of third region, reallyThe fixed target area.It should be understood that above-mentioned steps 205a1- step 205a2 can recycle execution, until in the second previewUntil determining target area in image.Above-mentioned steps 205a1- step 205a2 will at least be executed once.
It illustratively, may be without the target area, if in the N in N number of third region during specific implementationThere is no the target area in a third region, then can be terminal device elder generation from N number of third region, determine intermediate objective areaDomain, i.e., in N number of third region in the image information in each third region and the similarity of the first image information, similarity is highestIt is determined as intermediate objective region, then terminal device determines N number of in intermediate objective region and intermediate objective areas adjacent againThe shape in five regions, each 5th region is identical as the shape of the first area, and the size in each 5th region and thisThe size in one region is identical.Terminal device determines the target area from N number of 5th region.
The method of above-mentioned determining target area is fairly simple, it is easy to accomplish, determine that the efficiency of target area is higher.
Illustratively, which is the first histogram information, which is the second histogram letterBreath, the target image information are goal histogram information.Step 205a2 can specifically pass through following step 205a2a-Step 205a2b is realized.
Step 205a2a, terminal device obtains N number of similarity.
Each similarity is the histogram information in a third region and the similarity of first histogram information.
The method for calculating similarity refers to existing the relevant technologies, and it will not go into details herein.
Step 205a2b, the fourth region in N number of third region is determined as the target area by terminal device.
The fourth region is to be greater than at least one corresponding third region of similarity of the first threshold in N number of similarityIn one.
In N number of similarity greater than the first threshold similarity may have it is multiple, in embodiments of the present invention, the 4thRegion can be in N number of similarity greater than any one at least one corresponding third region of similarity of the first thresholdA, which is also possible to the highest third region of similarity in N number of similarity, and the embodiment of the present invention does not limitIt is fixed.
Illustratively, as shown in figure 5, the first area x*n*y*n around initial focus point (1 central point of (a) in Fig. 5)Domain determines x*y third region, and the histogram information for calculating separately each third region is similar to the first histogram informationDegree is chosen the maximum third region of similarity (2 of (b) in Fig. 5);As shown in fig. 6, again in the maximum third region of similarityAnd its peripheral region (such as the region 3n*3n) is accurately positioned target area, determines 3*3 the 5th regions, calculates separately eachThe histogram information in the 5th region and the similarity of the first histogram information are chosen maximum 5th region of similarity, are determined asTarget area.
The method of above-mentioned determining target area is fairly simple, it is easy to accomplish, determine that the efficiency of target area is higher.
Step 205b, the central point of the target area is determined as second focus point by terminal device.
The method of above-mentioned the second focus point of determination is fairly simple, it is easy to accomplish, determine that the efficiency of the second focus point is higher.
Terminal device focuses to the second preview image according to the second focus point.
The embodiment of the invention provides a kind of method of determining focus point, terminal device can be by receiving the defeated of userEnter, which is the input that user selects the first focus point;In response to the input, the first preview image is obtained, and obtains firstFirst image information in region, the first area are the region put centered on first focus point in first preview image;The second preview image is obtained, and obtains the second image information of second area, which is in the second preview image and shouldThe corresponding region in first area;It is less than or equal to first threshold in the similarity of second image information and first image informationIn the case where (the target object being located at around the first focus point and the first focus point in the first preview image of explanation, thePosition in two preview images is changed), determine the second focus point (in the second preview image in second preview imageIn, determine the position of the target object, i.e. around the second focus point and the second focus point), wherein the target figure of target areaAs the similarity of information and first image information is greater than the first threshold, which is in second preview image with thisThe region put centered on second focus point.With this solution, when terminal device judges to be located at first pair in the first preview imageTarget object around focus and the first focus point, when variation has occurred in the position in the second preview image, if terminal is setFor still according to the first focus point, focus to the second preview image, then the poor display effect of the image obtained (is not user's needs), the second focus point is determined in the second preview image, that is, determines the position of the target object, according to the second focus point, to theThe focusing of two preview images, the display effect of the image of acquisition is preferably (being that user needs).It is clapped so as to solve the prior artThe poor problem of the effect for the depth image taken the photograph.
Illustratively, in conjunction with Fig. 2, as shown in fig. 7, before step 201, determining focus point provided in an embodiment of the present inventionMethod can also include the steps that following 206- steps 208.
Step 206, terminal device are before showing the first preview image, display reminding information.
The prompt information is used to indicate whether that enabling objective function, the objective function are adaptive focus function.
Adaptive focus function refers to the movement for the shooting main body (target object) that terminal device is selected according to user, makes pairFocus is moved with the movement of target object, though focus point with target object is opposing stationary (can become in a certain rangeChange).
When terminal device, which receives user, enables shooting function, terminal device elder generation display reminding information, the prompt informationIt is used to indicate whether to enable adaptive focus function.
Step 207, terminal device receive the second input of user, which enables the objective function for determining.
It should be understood that being denoted as the second input herein in order to avoid obscuring.
Can be with reference to the above-mentioned associated description to the first input to the description of the second input, it will not go into details herein.
Step 208, in response to second input, terminal device enables the objective function, and shows the first preview image.
In this way when user use shooting function initial time, that is, prompt the user whether to enable adaptive focus function, canTo remind whether user needs to enable adaptive focus function in time, forget that use can be improved using the function to avoid userFamily experience.
It illustratively, include first identifier in shooting preview interface (for showing preview image), which is used forInstruction enables the objective function or disables the objective function (adaptive focus function).In conjunction with Fig. 2, as shown in figure 8, in stepBefore 201, the method for determining focus point provided in an embodiment of the present invention can also include the steps that following 209- steps 210.
Step 209, terminal device receive third input of the user in the first identifier.
Can be with reference to the above-mentioned associated description to the first input to the description of third input, it will not go into details herein.
Step 210 is inputted in response to the third, and terminal device indicates the case where enabling the objective function in the first identifierUnder, the objective function is enabled, in the case where the first identifier indicates to disable the objective function, disables the objective function.
The objective function is disabled, that is, cancels the objective function.
Illustratively, in the case where the first identifier of shooting preview interface is shown as " enabling objective function ", Yong HudianThe first identifier is hit, terminal device enables the objective function (adaptive focus function);In the first identifier of shooting preview interfaceIn the case where being shown as " disabling objective function ", user clicks the first identifier, and it is (adaptive that terminal device disables the objective functionFocus function).
First identifier can be to be shown in shooting preview interface in real time, is also possible to receive user when terminal deviceIn the click input in shooting preview interface, first identifier is shown, within a preset time, if terminal device is to receive userClick input in shooting preview interface, then hide first identifier.
In this way when user needs using objective function, objective function can be enabled, when user does not need using target functionWhen energy, objective function can be disabled, user, which can according to need, to be determined whether to facilitate user flexibility control using objective function,User experience can be improved.
As shown in figure 9, the embodiment of the present invention provides a kind of terminal device 120, which includes: receiving module121, module 122 and determining module 123 are obtained;
The receiving module 121, for receiving the input of user, which is the input that user selects the first focus point;
The acquisition module 122, for obtaining the first preview image in response to the received input of the receiving module 121, andThe first image information of first area is obtained, which is the input that user selects the first focus point on the first preview image,The first area is the region put centered on first focus point in first preview image;The second preview image is obtained, andThe second image information of second area is obtained, which is region corresponding with the first area in the second preview image;
The determining module 123, second image information and first image information for being obtained in the acquisition module 122Similarity be less than or equal to first threshold in the case where, in second preview image determine the second focus point, wherein targetThe similarity of the target image information in region and first image information is greater than the first threshold, which is that this is second pre-The region put centered on second focus point look in image.
Optionally, the shape of the first area is preset shape, having a size of preset value, and the shape of the second area is that this is pre-If shape, having a size of the preset value, the shape of the target area is the preset shape, having a size of the preset value.
Optionally, the determining module 123 is specifically used for determining the target area in second preview image;And it shouldThe central point of target area is determined as second focus point.
Optionally, the determining module 123 is specifically used for determining N number of third region, Mei Ge in second preview imageThe shape in three regions and the shape of the first area are identical, and the size phase of the size in each third region and the first areaTogether;And from N number of third region, the target area is determined;Wherein, N is positive integer.
Optionally, which is the first histogram information, which is the second histogram information,The target image information is goal histogram information;The determining module 123 is specifically used for obtaining N number of similarity, each similarityFor the histogram information in a third region and the similarity of first histogram information;By the 4th in N number of third regionRegion is determined as the target area, which is corresponding extremely greater than the similarity of the first threshold in N number of similarityOne in a few third region.
Terminal device provided in an embodiment of the present invention can be realized in above method embodiment one of any institute of Fig. 2 to Fig. 8The each process shown, to avoid repeating, details are not described herein again.
The embodiment of the invention provides a kind of terminal device, terminal device can pass through the input of reception user, the inputThe input of the first focus point is selected for user;In response to the input, the first preview image is obtained, and obtains the first of first areaImage information, the first area are the region put centered on first focus point in first preview image;It is pre- to obtain secondLook at image, and obtain the second image information of second area, the second area be in the second preview image with the first area pairThe region answered;In the case where the similarity of second image information and first image information is less than or equal to first threshold(the target object being located at around the first focus point and the first focus point in the first preview image of explanation, in the second preview graphPosition as in is changed), determine that the second focus point (in the second preview image, determines in second preview imageAround the position of the target object, i.e. the second focus point and the second focus point), wherein the target image information of target areaIt is greater than the first threshold with the similarity of first image information, which is in second preview image with this second pairThe region put centered on focus.With this solution, when terminal device judge in the first preview image be located at the first focus point withAnd the first target object around focus point, when variation has occurred in the position in the second preview image, if terminal device still rootAccording to the first focus point, to focus to the second preview image, then the display effect of the image obtained is poor (not being that user needs),The second focus point is determined in second preview image, that is, the position of the target object is determined, according to the second focus point, to the second previewImage focusing, the display effect of the image of acquisition is preferably (being that user needs).So as to solve the scape of prior art shootingThe poor problem of the effect of deep image.
A kind of hardware structural diagram of Figure 10 terminal device of each embodiment to realize the present invention.As shown in Figure 10,The terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, withAnd the equal components of power supply 111.It will be understood by those skilled in the art that the not structure paired terminal of terminal device structure shown in Figure 10The restriction of equipment, terminal device may include perhaps combining certain components or different than illustrating more or fewer componentsComponent layout.In embodiments of the present invention, terminal device includes but is not limited to mobile phone, tablet computer, laptop, palm electricityBrain, vehicle-mounted terminal equipment, wearable device and pedometer etc..
Wherein, processor 110 obtain the first figure of first area for the first input of the user in response to receivingAs information, which is the input that user selects the first focus point on the first preview image, the first area be thisThe region put centered on first focus point in one preview image;
The second image information of second area is obtained, which is corresponding with the first area in the second preview imageRegion;
In the case where the similarity of second image information and first image information is less than or equal to first threshold,The second focus point is determined in second preview image, wherein the target image information of target area and first image informationSimilarity is greater than the first threshold, which is the area put centered on second focus point in second preview imageDomain.
Terminal device provided in an embodiment of the present invention, terminal device can be to use by the input of reception user, the inputFamily selects the input of the first focus point;In response to the input, the first preview image is obtained, and obtains the first image of first areaInformation, the first area are the region put centered on first focus point in first preview image;Obtain the second preview graphPicture, and the second image information of second area is obtained, which is corresponding with the first area in the second preview imageRegion;(the explanation in the case where the similarity of second image information and first image information is less than or equal to first thresholdThe target object being located at around the first focus point and the first focus point in first preview image, in the second preview imagePosition is changed), determine that the second focus point (in the second preview image, determines the target in second preview imageAround the position of object, i.e. the second focus point and the second focus point), wherein the target image information of target area and thisThe similarity of one image information is greater than the first threshold, which is in second preview image is with second focus pointThe region of central point.With this solution, when terminal device judges to be located at the first focus point and first in the first preview imageTarget object around focus point, when variation has occurred in the position in the second preview image, if terminal device is still according to firstFocus point focuses to the second preview image, then the display effect of the image obtained is poor (not being that user needs), pre- secondIt lookes at and determines the second focus point in image, that is, the position of the target object is determined, according to the second focus point, to the second preview image pairCoke, the display effect of the image of acquisition is preferably (being that user needs).So as to solve the depth image of prior art shootingThe poor problem of effect.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signalSend and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplinkData are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, couplingDevice, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other setStandby communication.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receiveIt sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and endThe relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc.Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition modeOr the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries outReason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be depositedStorage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.MikeWind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can beThe format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's earDisplay panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratioSuch as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passesSensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wetMeter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrapDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be usedForms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal deviceFamily setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 andOther input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detectionDevice detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch controlDevice processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving areaIt manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button,Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at itOn or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touchingThe type for touching event provides corresponding visual output on display panel 1061.Although in Figure 10, touch panel 1071 and aobviousShow that panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodimentsIn, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific thisPlace is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include havingLine or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card endMouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification moduleMouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) andBy one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal deviceData are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program areaThe storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one functionSound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such asAudio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easyThe 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 terminal device, utilizes each of various interfaces and the entire terminal device of connectionA part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storageData in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.PlaceManaging device 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and modulatedemodulate is mediatedManage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainProcessing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, putThe functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, may include above-mentioned processor as shown in Figure 10110, memory 109, and it is stored in the computer program that can be run on memory 109 and on the processor 110, the calculatingRealize in above method embodiment that Fig. 2 to Fig. 8 determines focus point shown in one of any when machine program is executed by processor 110Each process of method, and identical technical effect can be reached, to avoid repeating, details are not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage mediumCalculation machine program, realized when which is executed by processor in above method embodiment Fig. 2 to Fig. 8 it is one of any shown inIt determines each process of the method for focus point, and identical technical effect can be reached, to avoid repeating, details are not described herein again.ItsIn, the computer readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory(Random Access Memory, RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the device that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in a storage mediumIn (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothesBusiness device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specificEmbodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the artUnder the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very muchForm belongs within protection of the invention.