CN106412437B - Focusing method, device and the terminal of terminal - Google Patents
Focusing method, device and the terminal of terminal Download PDFInfo
- Publication number
- CN106412437B CN106412437B CN201610912691.1A CN201610912691A CN106412437B CN 106412437 B CN106412437 B CN 106412437B CN 201610912691 A CN201610912691 A CN 201610912691A CN 106412437 B CN106412437 B CN 106412437B
- Authority
- CN
- China
- Prior art keywords
- focal length
- terminal
- photographing objective
- size
- distance
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The present invention proposes the focusing method, device and terminal of a kind of terminal, and the focusing method of the terminal, which is included in, to be identified when photographing objective image, obtains the size to photographing objective image;The focal length of the focusing motor position of present terminal camera is obtained, and corresponding multiple default focal lengths are determined according to size;Determine that the shortest default focal length of distance is as target focal length between the focal length of position from multiple default focal lengths;Photographing objective is treated based on target focal length to focus.It can be avoided AF device during user's using terminal carries out self-timer through the invention frequently to focus, promote focusing efficiency, and promote user experience.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of focusing methods of terminal, device and terminal.
Background technique
With the continuous development of terminal technology, the camera of terminal can be adjusted to initial status and carry out self-timer by user.Phase
In the technology of pass, when the camera of terminal is adjusted to initial status, auto-focusing (Auto Focus, AF) device of terminal built-in
Part can effectively promote the clarity of self-timer image, operating mode are as follows: control focusing motor carries out the mobile realization pair of retrieval type
It is burnt.
Under this mode, if image to be taken pictures generates movement during the focusing process, it will cause AF devices frequently to focus, and claps
The image obtained will obscure, low efficiency of focusing during self-timer.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, can be avoided user's using terminal an object of the present invention is to provide a kind of focusing method of terminal
AF device is frequently focused during carrying out self-timer, promotes focusing efficiency, and promote user experience.
It is another object of the present invention to the focusing mechanisms for proposing a kind of terminal.
It is another object of the present invention to propose a kind of terminal.
In order to achieve the above objectives, the focusing method for the terminal that first aspect present invention embodiment proposes, comprising: identifying
When photographing objective image, the size to photographing objective image is obtained;Obtain the focusing motor institute of present terminal camera
Focal length in position, and corresponding multiple default focal lengths are determined according to the size;It is determined from the multiple default focal length
Out between the focal length of the position the shortest default focal length of distance as target focal length;Based on the target focal length to institute
It states and focuses to photographing objective.
The focusing method for the terminal that first aspect present invention embodiment proposes, by identifying to photographing objective image
When, size of the acquisition to photographing objective image, the focal length of the focusing motor position of acquisition present terminal camera, and according to
Size determines corresponding multiple default focal lengths, determines that distance is most between the focal length of position from multiple default focal lengths
Short default focal length treats photographing objective based on target focal length and focuses as target focal length, can be avoided user and uses eventually
AF device is frequently focused during end carries out self-timer, promotes focusing efficiency, and promote user experience.
In order to achieve the above objectives, the focusing mechanism for the terminal that second aspect of the present invention embodiment proposes, comprising: first obtains
Module obtains the size to photographing objective image for identifying when photographing objective image;Second obtains module,
For obtaining the focal length of the focusing motor position of present terminal camera;Determining module, for being determined according to the size
Corresponding multiple default focal lengths out;Processing module, for being determined and the position from the multiple default focal length
The shortest default focal length of distance is as target focal length between focal length;Focusing module, for based on the target focal length to it is described to
Photographing objective is focused.
The focusing mechanism for the terminal that second aspect of the present invention embodiment proposes, by identifying to photographing objective image
When, size of the acquisition to photographing objective image, the focal length of the focusing motor position of acquisition present terminal camera, and according to
Size determines corresponding multiple default focal lengths, determines that distance is most between the focal length of position from multiple default focal lengths
Short default focal length treats photographing objective based on target focal length and focuses as target focal length, can be avoided user and uses eventually
AF device is frequently focused during end carries out self-timer, promotes focusing efficiency, and promote user experience.
In order to achieve the above objectives, the terminal that third aspect present invention embodiment proposes, comprising: shell, processor, storage
Device, circuit board, power circuit and camera mould group, circuit board are placed in the space interior that shell surrounds, processor, memory and phase
Machine mould group is arranged on circuit boards;Power circuit, for powering for each circuit of terminal or device;Memory is for storing and can hold
Line program code;The camera mould group includes: AF device and control module;Wherein, the processor is by reading in memory
The executable program code of storage come run program corresponding with executable program code so that the camera mould group execute: knowing
The size to photographing objective image Chu not be obtained when photographing objective image;Obtain the focusing horse of present terminal camera
Corresponding multiple default focal lengths are determined up to the focal length of position, and according to the size;From the multiple default focal length
Determine that the shortest default focal length of distance is as target focal length between the focal length of the position;Based on the target focal length
It focuses to described to photographing objective.
The terminal that third aspect present invention embodiment proposes is obtained by identifying when photographing objective image wait clap
According to the size of target image, the focal length of the focusing motor position of present terminal camera is obtained, and is determined according to size
Corresponding multiple default focal lengths determine the shortest default coke of distance between the focal length of position from multiple default focal lengths
Away from as target focal length, photographing objective is treated based on target focal length and is focused, can be avoided user's using terminal and carry out self-timer
AF device is frequently focused in the process, promotes focusing efficiency, and promote user experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram of the focusing method for the terminal that one embodiment of the invention proposes;
Fig. 2 is multiple default focal length schematic diagrames in the embodiment of the present invention;
Fig. 3 is the flow diagram of the focusing method for the terminal that another embodiment of the present invention proposes;
Fig. 4 is the flow diagram of the focusing method for the terminal that another embodiment of the present invention proposes;
Fig. 5 is target focal length schematic diagram in the embodiment of the present invention;
Fig. 6 is the flow diagram of the focusing method for the terminal that another embodiment of the present invention proposes;
Fig. 7 is the structural schematic diagram of the focusing mechanism for the terminal that one embodiment of the invention proposes;
Fig. 8 is the structural schematic diagram of the focusing mechanism for the terminal that another embodiment of the present invention proposes;
Fig. 9 is the structural schematic diagram for the terminal that one embodiment of the invention proposes.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.On the contrary, this
The embodiment of invention includes all changes fallen within the scope of the spiritual and intension of attached claims, modification and is equal
Object.
Fig. 1 is the flow diagram of the focusing method for the terminal that one embodiment of the invention proposes.
The embodiment of the present invention can be applied during user's using terminal treats photographing objective image progress self-timer.
Wherein, terminal can be the hardware that smart phone, tablet computer, personal digital assistant, e-book etc. have various operating systems
Equipment, with no restriction to this.
It is provided with AF device in terminal, carries out the mobile realization pair of retrieval type to control focusing motor during taking pictures
It is burnt.
Generally, movement is generated during the focusing process in portrait to be taken pictures, AF device can constantly focus, to promote self-timer
The clarity of image.
And in the present embodiment, terminal is identifying when photographing objective image, and AF device can directly push away focusing motor
It moves to position corresponding to focal length corresponding with the size to photographing objective image, wherein with the size to photographing objective image
Corresponding focal length can be predetermined most suitable focal length, that is, and under the most suitable focal length, self-timer image definition is more excellent,
It can be avoided AF device during user's using terminal carries out self-timer frequently to focus.
Referring to Fig. 1, this method comprises:
S11: identifying when photographing objective image, obtains the size to photographing objective image.
In an embodiment of the present invention, it can need to carry out it field of self-timer for user's using terminal to photographing objective
Scape, personage, scenery etc..
The embodiment of the present invention is wait take pictures to photographing objective image to be that portrait to be taken pictures carries out example to photographing objective
The facial image of portrait.
In an embodiment of the present invention, it can identify the facial image of portrait to be taken pictures, and obtain the size of facial image,
Wherein, the size of the facial image can be, for example, the area of facial image and the ratio value of terminal screen area, alternatively, can also
To be, for example, the length/width of facial image, alternatively, can also be, for example, the number of pixel occupied by facial image, or
Person, or it is other, with no restriction to this.
S12: the focal length of the focusing motor position of present terminal camera is obtained.
Generally, treat take pictures portrait carry out self-timer during, common focal length is fixed, for example, hold eventually
End carries out the arm length of self-timer, alternatively, when carrying out self-timer using self-shooting bar fixed terminal, the sum of arm and self-timer pole length,
Or, or other more rare length, based on practical experience, the frequency in the case of first two is higher.
In an embodiment of the present invention, it may be predetermined that the coke of the focusing motor position of present terminal camera
Away from being operated with triggering following.
S13: corresponding multiple default focal lengths are determined according to size.
In an embodiment of the present invention, terminal camera can be determined according to size and to the distance between photographing objective;
Corresponding multiple default focal lengths are determined according to distance.
As an example, referring to fig. 2, Fig. 2 is multiple default focal length schematic diagrames in the embodiment of the present invention, wherein label
It is according to terminal camera and the default focal length determined to the distance between photographing objective at A, B, C, D, E for letter.It needs
It is noted that default focal length be it is multiple, Fig. 2 is a kind of example, may this more than five focal lengths in actual conditions.
In some embodiments, referring to Fig. 3, step S13 is specifically included:
S31: terminal camera is determined according to size and to the distance between photographing objective.
In an embodiment of the present invention, size and pre-set dimension can be compared, obtains comparison information;Believe according to comparing
It ceases and determines terminal camera and to the distance between photographing objective.
In some embodiments, referring to fig. 4, step S31 is specifically included:
S41: size and pre-set dimension are compared, and obtain comparison information.
In an embodiment of the present invention, pre-set dimension can be preset by the plug-in of terminal, and pre-set dimension can be with
The for example, size of standard faces image, that is, standard faces image is the facial image that can be used as benchmark, wherein default ruler
Very little can be, for example, the ratio value of the area of standard faces image and terminal screen area, alternatively, can also be, for example, standard people
The length/width of face image, alternatively, can also be, for example, the number of pixel occupied by standard faces image, alternatively, can also
Think it is other, with no restriction to this.
Optionally, comparison information is the ratio value or difference between the size and pre-set dimension of facial image.
By will compare to the size of photographing objective image with pre-set dimension, comparison information, easy reality easy to operate are obtained
It is existing, focusing time is saved, focusing efficiency is promoted.
S42: terminal camera is determined according to comparison information and to the distance between photographing objective.
In an embodiment of the present invention, different comparison informations corresponding terminal camera and between photographing objective away from
From it is different perhaps identical can be corresponding to determine by ratio value between the size and pre-set dimension of facial image or difference
Terminal camera with to the distance between photographing objective.
By determining that corresponding terminal camera with to the distance between photographing objective, is believed due to comparing according to comparison information
Breath is the ratio value or difference between the size and pre-set dimension of facial image, and therefore, comparison information can be identified for that face figure
Picture and the relative position distant relationships between standard faces image can guarantee the reasonability that focal length obtains, guarantee corresponding
The clarity of self-timer image under focal length, method for improving practicability.
S32: corresponding multiple default focal lengths are determined according to distance.
In an embodiment of the present invention, corresponding multiple default focal lengths can be determined from default focal length table according to distance,
Wherein, focal length table is preset to be used to identify the corresponding relationship between distance and default focal length.
Wherein, preset relation table is pre-set according to external command.
External command can be, for example, that the manufacturer of terminal inputs, alternatively, can also be, for example, to be clapped in terminal
According to application program developer input, alternatively, can also such as terminal user input, with no restriction to this.
By presetting preset relation table according to external command, may be implemented to corresponding between comparison information and focal length
Relationship carries out Dynamic Maintenance, and method for improving applicability is convenient for subsequent update and improvement, promotes user experience.By distance from
Corresponding multiple default focal lengths are determined in default focal length table, rather than it is mobile real to carry out frequent retrieval type by control focusing motor
Now focus, it is simple to operation, effectively promote focusing efficiency.
In the present embodiment, by determining terminal camera according to size and to the distance between photographing objective, according to distance
It determines corresponding multiple default focal lengths, the optimal of the focusing motor position of terminal camera can be determined according to default focal length
Focal length, AF device is frequently focused during avoiding user's using terminal from carrying out self-timer.
S14: the shortest default focal length conduct of distance between the focal length of position is determined from multiple default focal lengths
Target focal length.
In an embodiment of the present invention, it may be predetermined that the shortest default coke of distance between the focal length of position
Away from, that is, under the focal length, self-timer image definition is more excellent, can be avoided user's using terminal and carries out AF device during self-timer
Frequently focusing.
It as an example, is target focal length schematic diagram in the embodiment of the present invention referring to Fig. 5, Fig. 5, wherein be labeled as word
It is the focal length of the focusing motor position of present terminal camera at female G, is labeled as at letter A, B, C, D, E as according to terminal
Camera and the default focal length determined to the distance between photographing objective, in multiple focal lengths with G apart from it is shortest be B, then B is
Target focal length.
S15: photographing objective is treated based on target focal length and is focused.
In an embodiment of the present invention, focusing motor directly can be pushed to position corresponding with target focal length;Right
It treats photographing objective and focuses in the position answered.
In some embodiments, referring to Fig. 6, step S15 is specifically included:
S61: focusing motor is directly pushed to position corresponding with target focal length.
In an embodiment of the present invention, determine that distance is most short between the focal length of position from multiple default focal lengths
Default focal length as target focal length, under the focal length, self-timer image definition is more excellent, can be avoided user's using terminal progress
AF device is frequently focused during self-timer.
It is easy to operate by the way that focusing motor is directly pushed to position corresponding with target focal length, hardware cost is saved, is subtracted
Few focusing time promotes focusing efficiency.
S62: photographing objective is treated in corresponding position and is focused.
In an embodiment of the present invention, corresponding position is focusing motor location in the terminal, and, in the correspondence
Position under, the clarity using terminal self-timer image is higher.
It is focused by treating photographing objective in corresponding position, guarantees the clear of under corresponding focal length self-timer image
Degree, method for improving practicability.
In the present embodiment, by identifying when photographing objective image, the size to photographing objective image is obtained, is obtained
The focal length of the focusing motor position of present terminal camera, and corresponding multiple default focal lengths are determined according to size, from
Determine that the shortest default focal length of distance is based on mesh as target focal length between the focal length of position in multiple default focal lengths
Mark focal length treats photographing objective and focuses, and can be avoided AF device during user's using terminal carries out self-timer and frequently focuses,
Focusing efficiency is promoted, and promotes user experience.
Fig. 7 is the structural schematic diagram of the focusing mechanism for the terminal that one embodiment of the invention proposes.
Referring to Fig. 7, the focusing mechanism 700 of the terminal includes: that the first acquisition module 710, second obtains module 720, determines
Module 730, processing module 740 and Focusing module 750.Wherein,
First obtains module 710, for identifying when photographing objective image, obtains the ruler to photographing objective image
It is very little.
Second obtains module 720, the focal length of the focusing motor position for obtaining present terminal camera.
Determining module 730, for determining corresponding multiple default focal lengths according to size.
Processing module 740, for determining that distance is shortest between the focal length of position from multiple default focal lengths
Focal length is preset as target focal length.
Focusing module 750 is focused for treating photographing objective based on target focal length.
In some embodiments, referring to Fig. 8, the focusing mechanism 700 of the terminal further include:
Optionally it is determined that module 730 includes:
First determines submodule 731, for determining terminal camera according to size and to the distance between photographing objective.
Second determines submodule 732, for determining corresponding multiple default focal lengths according to distance.
Optionally, first determine that submodule 731 includes:
Comparing unit 7311 obtains comparison information for size and pre-set dimension to compare.
Determination unit 7312, for determining terminal camera according to comparison information and to the distance between photographing objective.
Optionally, second determine that submodule 732 is specifically used for:
Corresponding multiple default focal lengths are determined from default focal length table according to distance, wherein default focal length table is for identifying
Corresponding relationship between distance and default focal length.
Optionally, Focusing module 750 includes:
Submodule 751 is pushed, for focusing motor to be directly pushed to position corresponding with target focal length.
Focusing submodule 752, focuses for treating photographing objective in corresponding position.
It should be noted that also being fitted in earlier figures 1- Fig. 6 embodiment to the explanation of the focusing method embodiment of terminal
The focusing mechanism 700 of terminal for the embodiment, realization principle is similar, and details are not described herein again.
In the present embodiment, by identifying when photographing objective image, the size to photographing objective image is obtained, is obtained
The focal length of the focusing motor position of present terminal camera, and corresponding multiple default focal lengths are determined according to size, from
Determine that the shortest default focal length of distance is based on mesh as target focal length between the focal length of position in multiple default focal lengths
Mark focal length treats photographing objective and focuses, and can be avoided AF device during user's using terminal carries out self-timer and frequently focuses,
Focusing efficiency is promoted, and promotes user experience.
Fig. 9 is the structural schematic diagram for the terminal that one embodiment of the invention proposes.The terminal can be mobile phone, tablet computer
Deng.
Referring to Fig. 9, the terminal 90 of the present embodiment includes: shell 91, processor 92, memory 93, circuit board 94, power supply electricity
Road 95 and camera mould group 96, circuit board 94 are placed in the space interior that shell 91 surrounds, processor 92, memory 93 and camera mould
Group 96 is arranged on circuit board 94;Power circuit 95, for powering for each circuit of terminal or device;Memory 93 is for storing
Executable program code;Camera mould group 96 includes: AF device 961 and control module 962;
Wherein, processor 92 is run and executable program by reading in memory 93 executable program code that stores
The corresponding program of code is so that camera mould group 96 executes:
S11 ': identifying when photographing objective image, obtains the size to photographing objective image.
In an embodiment of the present invention, it can need to carry out it field of self-timer for user's using terminal to photographing objective
Scape, personage, scenery etc..
The embodiment of the present invention is wait take pictures to photographing objective image to be that portrait to be taken pictures carries out example to photographing objective
The facial image of portrait.
In an embodiment of the present invention, it can identify the facial image of portrait to be taken pictures, and obtain the size of facial image,
Wherein, the size of the facial image can be, for example, the area of facial image and the ratio value of terminal screen area, alternatively, can also
To be, for example, the length/width of facial image, alternatively, can also be, for example, the number of pixel occupied by facial image, or
Person, or it is other, with no restriction to this.
S12 ': the focal length of the focusing motor position of present terminal camera is obtained.
Generally, treat take pictures portrait carry out self-timer during, common focal length is fixed, for example, hold eventually
End carries out the arm length of self-timer, alternatively, when carrying out self-timer using self-shooting bar fixed terminal, the sum of arm and self-timer pole length,
Or, or other more rare length, based on practical experience, the frequency in the case of first two is higher.
In an embodiment of the present invention, it may be predetermined that the coke of the focusing motor position of present terminal camera
Away from being operated with triggering following.
S13 ': corresponding multiple default focal lengths are determined according to size.
In an embodiment of the present invention, terminal camera can be determined according to size and to the distance between photographing objective;
Corresponding multiple default focal lengths are determined according to distance.
As an example, referring to fig. 2, Fig. 2 is multiple default focal length schematic diagrames in the embodiment of the present invention, wherein label
It is according to terminal camera and the default focal length determined to the distance between photographing objective at A, B, C, D, E for letter.It needs
It is noted that default focal length be it is multiple, Fig. 2 is a kind of example, may be this five more than in actual conditions.
In another embodiment, processor runs and can be performed by reading the executable program code stored in memory
The corresponding program of program code, for executing following steps:
S31 ': terminal camera is determined according to size and to the distance between photographing objective.
In an embodiment of the present invention, size and pre-set dimension can be compared, obtains comparison information;Believe according to comparing
It ceases and determines terminal camera and to the distance between photographing objective.
In another embodiment, processor runs and can be performed by reading the executable program code stored in memory
The corresponding program of program code, for executing following steps:
S41 ': size and pre-set dimension are compared, and obtain comparison information.
In an embodiment of the present invention, pre-set dimension can be preset by the plug-in of terminal, and pre-set dimension can be with
The for example, size of standard faces image, that is, standard faces image is the facial image that can be used as benchmark, wherein default ruler
Very little can be, for example, the ratio value of the area of standard faces image and terminal screen area, alternatively, can also be, for example, standard people
The length/width of face image, alternatively, can also be, for example, the number of pixel occupied by standard faces image, alternatively, can also
Think it is other, with no restriction to this.
Optionally, comparison information is the ratio value or difference between the size and pre-set dimension of facial image.
By will compare to the size of photographing objective image with pre-set dimension, comparison information, easy reality easy to operate are obtained
It is existing, focusing time is saved, focusing efficiency is promoted.
S42 ': terminal camera is determined according to comparison information and to the distance between photographing objective.
In an embodiment of the present invention, different comparison informations corresponding terminal camera and between photographing objective away from
From it is different perhaps identical can be corresponding to determine by ratio value between the size and pre-set dimension of facial image or difference
Terminal camera with to the distance between photographing objective.
By determining that corresponding terminal camera with to the distance between photographing objective, is believed due to comparing according to comparison information
Breath is the ratio value or difference between the size and pre-set dimension of facial image, and therefore, comparison information can be identified for that face figure
Picture and the relative position distant relationships between standard faces image can guarantee the reasonability that focal length obtains, guarantee corresponding
The clarity of self-timer image under focal length, method for improving practicability.
S32 ': corresponding multiple default focal lengths are determined according to distance.
In an embodiment of the present invention, corresponding multiple default focal lengths can be determined from default focal length table according to distance,
Wherein, focal length table is preset to be used to identify the corresponding relationship between distance and default focal length.
Wherein, preset relation table is pre-set according to external command.
External command can be, for example, that the manufacturer of terminal inputs, alternatively, can also be, for example, to be clapped in terminal
According to application program developer input, alternatively, can also such as terminal user input, with no restriction to this.
By presetting preset relation table according to external command, may be implemented to corresponding between comparison information and focal length
Relationship carries out Dynamic Maintenance, and method for improving applicability is convenient for subsequent update and improvement, promotes user experience.By distance from
Corresponding multiple default focal lengths are determined in default focal length table, rather than it is mobile real to carry out frequent retrieval type by control focusing motor
Now focus, it is simple to operation, effectively promote focusing efficiency.
In the present embodiment, by determining terminal camera according to size and to the distance between photographing objective, according to distance
It determines corresponding multiple default focal lengths, the optimal of the focusing motor position of terminal camera can be determined according to default focal length
Focal length, AF device is frequently focused during avoiding user's using terminal from carrying out self-timer.
S14 ': the shortest default focal length conduct of distance between the focal length of position is determined from multiple default focal lengths
Target focal length.
In an embodiment of the present invention, it may be predetermined that the shortest default coke of distance between the focal length of position
Away from, that is, under the focal length, self-timer image definition is more excellent, can be avoided user's using terminal and carries out AF device during self-timer
Frequently focusing.
It as an example, is target focal length schematic diagram in the embodiment of the present invention referring to Fig. 5, Fig. 5, wherein be labeled as word
It is the focal length of the focusing motor position of present terminal camera at female G, is labeled as at letter A, B, C, D, E as according to terminal
Camera and the default focal length determined to the distance between photographing objective, in multiple focal lengths with G apart from it is shortest be B, then B is
Target focal length.
S15 ': photographing objective is treated based on target focal length and is focused.
In an embodiment of the present invention, focusing motor directly can be pushed to position corresponding with target focal length;Right
It treats photographing objective and focuses in the position answered.
In another embodiment, processor runs and can be performed by reading the executable program code stored in memory
The corresponding program of program code, for executing following steps:
S61 ': focusing motor is directly pushed to position corresponding with target focal length.
In an embodiment of the present invention, determine that distance is most short between the focal length of position from multiple default focal lengths
Default focal length as target focal length, under the focal length, self-timer image definition is more excellent, can be avoided user's using terminal progress
AF device is frequently focused during self-timer.
It is easy to operate by the way that focusing motor is directly pushed to position corresponding with target focal length, hardware cost is saved, is subtracted
Few focusing time promotes focusing efficiency.
S62 ': photographing objective is treated in corresponding position and is focused.
In an embodiment of the present invention, corresponding position is focusing motor location in the terminal, and, in the correspondence
Position under, the clarity using terminal self-timer image is higher.
It is focused by treating photographing objective in corresponding position, guarantees the clear of under corresponding focal length self-timer image
Degree, method for improving practicability.
In the present embodiment, by identifying when photographing objective image, the size to photographing objective image is obtained, is obtained
The focal length of the focusing motor position of present terminal camera, and corresponding multiple default focal lengths are determined according to size, from
Determine that the shortest default focal length of distance is based on mesh as target focal length between the focal length of position in multiple default focal lengths
Mark focal length treats photographing objective and focuses, and can be avoided AF device during user's using terminal carries out self-timer and frequently focuses,
Focusing efficiency is promoted, and promotes user experience.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (9)
1. a kind of focusing method of terminal, which comprises the following steps:
It is identifying when photographing objective image, is obtaining the size to photographing objective image;
The focal length of the focusing motor position of present terminal camera is obtained, and is determined according to the size corresponding multiple
Default focal length;
The shortest default focal length conduct of distance between the focal length of the position is determined from the multiple default focal length
Target focal length;
It is focused to described to photographing objective based on the target focal length;
It is described that corresponding multiple default focal lengths are determined according to the size, comprising:
The terminal camera is determined according to the size and to the distance between photographing objective;
Corresponding multiple default focal lengths are determined according to the distance;
Wherein, the size are as follows: the ratio value of the area to photographing objective image and terminal screen area, alternatively, described
To the length/width of photographing objective image, alternatively, the number to pixel occupied by photographing objective image.
2. the focusing method of terminal as described in claim 1, which is characterized in that described to determine the terminal according to the size
Camera with to the distance between photographing objective, comprising:
The size is compared with pre-set dimension, obtains comparison information;
The terminal camera and described to the distance between photographing objective is determined according to the comparison information.
3. the focusing method of terminal as described in claim 1, which is characterized in that described to determine the correspondence according to the distance
Multiple default focal lengths, comprising:
Corresponding multiple default focal lengths are determined from default focal length table according to the distance, wherein the default focal length table
For identifying the corresponding relationship between distance and default focal length.
4. the focusing method of terminal as described in claim 1, which is characterized in that it is described based on the target focal length to it is described to
Photographing objective is focused, comprising:
The focusing motor is directly pushed to position corresponding with the target focal length;
It focuses to described to photographing objective in the corresponding position.
5. a kind of focusing mechanism of terminal characterized by comprising
First obtains module, for identifying when photographing objective image, obtains the size to photographing objective image;
Second obtains module, the focal length of the focusing motor position for obtaining present terminal camera;
Determining module, for determining corresponding multiple default focal lengths according to the size;
Processing module, for determining that distance is shortest between the focal length of the position from the multiple default focal length
Focal length is preset as target focal length;
Focusing module, for being focused to described to photographing objective based on the target focal length;
The determining module includes:
First determines submodule, for determining the terminal camera according to the size and to the distance between photographing objective;
Second determines submodule, for determining corresponding multiple default focal lengths according to the distance;
Wherein, the size are as follows: the ratio value of the area to photographing objective image and terminal screen area, alternatively, described
To the length/width of photographing objective image, alternatively, the number to pixel occupied by photographing objective image.
6. the focusing mechanism of terminal as claimed in claim 5, which is characterized in that described first determines that submodule includes:
Comparing unit obtains comparison information for the size to compare with pre-set dimension;
Determination unit, for according to the comparison information determine the terminal camera and it is described between photographing objective away from
From.
7. the focusing mechanism of terminal as claimed in claim 5, which is characterized in that described second determines that submodule is specifically used for:
Corresponding multiple default focal lengths are determined from default focal length table according to the distance, wherein the default focal length table
For identifying the corresponding relationship between distance and default focal length.
8. the focusing mechanism of terminal as claimed in claim 5, which is characterized in that the Focusing module includes:
Submodule is pushed, for the focusing motor to be directly pushed to position corresponding with the target focal length;
Focusing submodule, for focusing to described to photographing objective in the corresponding position.
9. a kind of terminal characterized by comprising shell, processor, memory, circuit board, power circuit and camera mould group,
Circuit board is placed in the space interior that shell surrounds, and processor, memory and the setting of camera mould group are on circuit boards;Power supply electricity
Road, for powering for each circuit of terminal or device;Memory is for storing executable program code;The camera mould group packet
It includes: AF device and control module;
Wherein, the processor is run and executable program code by reading in memory the executable program code that stores
Corresponding program is so that the camera mould group executes:
It is identifying when photographing objective image, is obtaining the size to photographing objective image;
The focal length of the focusing motor position of present terminal camera is obtained, and is determined according to the size corresponding multiple
Default focal length;
The shortest default focal length conduct of distance between the focal length of the position is determined from the multiple default focal length
Target focal length;
It is focused to described to photographing objective based on the target focal length;
It is described that corresponding multiple default focal lengths are determined according to the size, comprising:
The terminal camera is determined according to the size and to the distance between photographing objective;
Corresponding multiple default focal lengths are determined according to the distance;
Wherein, the size are as follows: the ratio value of the area to photographing objective image and terminal screen area, alternatively, described
To the length/width of photographing objective image, alternatively, the number to pixel occupied by photographing objective image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610912691.1A CN106412437B (en) | 2016-10-19 | 2016-10-19 | Focusing method, device and the terminal of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610912691.1A CN106412437B (en) | 2016-10-19 | 2016-10-19 | Focusing method, device and the terminal of terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106412437A CN106412437A (en) | 2017-02-15 |
CN106412437B true CN106412437B (en) | 2019-04-12 |
Family
ID=58012202
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610912691.1A Active CN106412437B (en) | 2016-10-19 | 2016-10-19 | Focusing method, device and the terminal of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106412437B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483807A (en) * | 2017-06-30 | 2017-12-15 | 珠海格力电器股份有限公司 | A kind of self-timer method, device and its mobile terminal |
CN107480601B (en) | 2017-07-20 | 2019-12-13 | Oppo广东移动通信有限公司 | Detection method and related product |
CN107566735A (en) * | 2017-09-30 | 2018-01-09 | 努比亚技术有限公司 | A kind of dual camera focusing method, mobile terminal and computer-readable recording medium |
CN112073601B (en) * | 2019-06-11 | 2022-02-01 | 杭州海康微影传感科技有限公司 | Focusing method, device, imaging equipment and computer readable storage medium |
CN114339021A (en) * | 2020-09-30 | 2022-04-12 | 北京小米移动软件有限公司 | Focusing method and device based on face recognition, terminal equipment and storage medium |
CN113645403B (en) * | 2021-07-29 | 2022-08-19 | 深圳市芯成像科技有限公司 | Self-photographing method and system based on holder, computer readable storage medium and intelligent holder |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060025946A (en) * | 2004-09-18 | 2006-03-22 | 엘지전자 주식회사 | Focus menu display method for mobile communication terminal |
CN102023460A (en) * | 2009-09-21 | 2011-04-20 | 华晶科技股份有限公司 | Quick focusing method for digital camera |
CN103167226A (en) * | 2011-12-12 | 2013-06-19 | 华晶科技股份有限公司 | Method and device for producing panoramic deep image |
CN103747175A (en) * | 2013-12-25 | 2014-04-23 | 广东明创软件科技有限公司 | Method for improving self-photographing effect and mobile terminal |
CN105338240A (en) * | 2014-08-12 | 2016-02-17 | 希姆通信息技术(上海)有限公司 | Shooting device and focusing method, device and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101191979A (en) * | 2006-11-28 | 2008-06-04 | 华晶科技股份有限公司 | Automatic focusing method and system |
EP2942941B1 (en) * | 2014-05-08 | 2016-04-27 | Axis AB | Method and apparatus for determining a need for a change in a pixel density requirement due to changing light conditions |
CN105116669A (en) * | 2015-09-01 | 2015-12-02 | 深圳华侨城文化旅游科技股份有限公司 | Automatic focusing method and system of camera |
CN105704380A (en) * | 2016-03-03 | 2016-06-22 | 上海与德通讯技术有限公司 | Camera focusing method and electric device |
CN107643578A (en) * | 2016-07-21 | 2018-01-30 | 中兴通讯股份有限公司 | A kind of Atomatic focusing method, device and mobile terminal |
-
2016
- 2016-10-19 CN CN201610912691.1A patent/CN106412437B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060025946A (en) * | 2004-09-18 | 2006-03-22 | 엘지전자 주식회사 | Focus menu display method for mobile communication terminal |
CN102023460A (en) * | 2009-09-21 | 2011-04-20 | 华晶科技股份有限公司 | Quick focusing method for digital camera |
CN103167226A (en) * | 2011-12-12 | 2013-06-19 | 华晶科技股份有限公司 | Method and device for producing panoramic deep image |
CN103747175A (en) * | 2013-12-25 | 2014-04-23 | 广东明创软件科技有限公司 | Method for improving self-photographing effect and mobile terminal |
CN105338240A (en) * | 2014-08-12 | 2016-02-17 | 希姆通信息技术(上海)有限公司 | Shooting device and focusing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN106412437A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106412437B (en) | Focusing method, device and the terminal of terminal | |
US10659675B2 (en) | Terminal, shooting method thereof and computer storage medium | |
US20190138110A1 (en) | Method of controlling an operation of a camera apparatus and a camera apparatus | |
US9998651B2 (en) | Image processing apparatus and image processing method | |
JP6757268B2 (en) | Imaging device and its control method | |
US20170199620A1 (en) | Display control apparatus and control method thereof | |
US7821563B2 (en) | Image processor and control method | |
KR20100123617A (en) | Image processing apparatus and control method thereof | |
KR20110055244A (en) | Digital photographing apparatus, method for controlling the same, and recording medium storing program to execute the method | |
KR20130058150A (en) | Method and apparatus for providing image photography of a user device | |
CN110913134B (en) | Focusing method and device, camera, storage medium and electronic equipment | |
JP2015041150A (en) | Display control device and control method of the same | |
CN104486553A (en) | Method and terminal for taking panoramic photos | |
JP2014203382A (en) | Display device, display method, and display program | |
JP2018093303A (en) | Imaging apparatus and control method and program thereof | |
JP6728024B2 (en) | Display control device, display control method, and program | |
CN104780314A (en) | Terminal | |
JP2020053721A (en) | Imaging control apparatus, control method therefor, program, and storage medium | |
JP6071958B2 (en) | Imaging control apparatus and control method thereof | |
WO2021153205A1 (en) | Display control device and control method for same | |
EP2843932B1 (en) | Device and method for making quick change to playback mode after photographing subject | |
CN112136318B (en) | Control device, imaging system, control method, and computer-readable storage medium | |
JP2018205657A (en) | Lens operation control device, lens device including the same, and imaging apparatus | |
CN116546319A (en) | Shooting switching method and device and electronic equipment | |
JP6335064B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |