CN106412437A - Terminal focusing method and device, and terminal - Google Patents
Terminal focusing method and device, and terminal Download PDFInfo
- Publication number
- CN106412437A CN106412437A CN201610912691.1A CN201610912691A CN106412437A CN 106412437 A CN106412437 A CN 106412437A CN 201610912691 A CN201610912691 A CN 201610912691A CN 106412437 A CN106412437 A CN 106412437A
- Authority
- CN
- China
- Prior art keywords
- focal length
- terminal
- focusing
- distance
- photographing objective
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
Abstract
The invention provides a terminal focusing method, a terminal focusing device and a terminal. The terminal focusing method comprises the steps of: acquiring a size of a target image to be photographed when the target image to be photographed is identified; acquiring a focal length of a position where a focusing motor of a camera of the terminal at present, and determining a plurality of corresponding preset focal lengths according to the size; determining the preset focal length nearest to the focal length of the position as a target focal length from the plurality of preset focal lengths; and focusing a target to be photographed based on the target focal length. By adopting the terminal focusing method, the terminal focusing device and the terminal, frequent focusing of an AF device can be avoided during the process that a user uses the terminal for photographing selfie, the focusing efficiency is improved, and the user experience is enhanced.
Description
Technical field
The present invention relates to field of terminal technology, more particularly, to a kind of focusing method of terminal, device and terminal.
Background technology
With the continuous development of terminal technology, the photographic head of terminal can be adjusted to initial status and be autodyned by user.Phase
In the technology of pass, when the photographic head of terminal is adjusted to initial status, auto-focusing (Auto Focus, the AF) device of terminal built-in
Part, can effectively lift the definition of auto heterodyne image, and its mode of operation is:Control focusing motor carry out retrieval type movement realize right
Burnt.
Under this mode, if image to be taken pictures produces movement in focus process, AF device can be caused frequently to focus, clap
The image obtaining will obscure, and during auto heterodyne, focusing efficiency is low.
Content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
A kind of for this reason, it is an object of the present invention to proposing focusing method of terminal, it can be avoided that user's using terminal
During being autodyned, AF device is frequently focused, lifting focusing efficiency, and lifts Consumer's Experience.
Further object is that proposing a kind of focusing mechanism of terminal.
Further object is that proposing a kind of terminal.
For reaching above-mentioned purpose, the focusing method of the terminal that first aspect present invention embodiment proposes, including:Identifying
When photographing objective image, treat the size of photographing objective image described in acquisition;Obtain the focusing motor institute of present terminal photographic head
In the focal length of position, and corresponding multiple default focal length is determined according to described size;Determine from the plurality of default focal length
Go out the default focal length the shortest of distance and the focal length of described position between as target focal length;Based on described target focal length to institute
State and treat that photographing objective is focused.
The focusing method of the terminal that first aspect present invention embodiment proposes, by treating photographing objective image identifying
When, obtain the size treating photographing objective image, obtain the focal length of the focusing motor position of present terminal photographic head, and according to
Size determines corresponding multiple default focal length, determines that distance is and the focal length of position between from multiple default focal lengths
Short default focal length, as target focal length, is treated photographing objective based on target focal length and is focused, it can be avoided that user is using eventually
During being autodyned in end, AF device is frequently focused, lifting focusing efficiency, and lifts Consumer's Experience.
For reaching above-mentioned purpose, the focusing mechanism of the terminal that second aspect present invention embodiment proposes, including:First acquisition
Module, for when identifying whne photographing objective image, treating the size of photographing objective image described in acquisition;Second acquisition module,
For obtaining the focal length of the focusing motor position of present terminal photographic head;Determining module, for determining according to described size
Go out corresponding multiple default focal length;Processing module, for determining and described position from the plurality of default focal length
Between focal length, distance default focal length the shortest is as target focal length;Focusing module, for being treated to described based on described target focal length
Photographing objective is focused.
The focusing mechanism of the terminal that second aspect present invention embodiment proposes, by treating photographing objective image identifying
When, obtain the size treating photographing objective image, obtain the focal length of the focusing motor position of present terminal photographic head, and according to
Size determines corresponding multiple default focal length, determines that distance is and the focal length of position between from multiple default focal lengths
Short default focal length, as target focal length, is treated photographing objective based on target focal length and is focused, it can be avoided that user is using eventually
During being autodyned in end, AF device is frequently focused, lifting focusing efficiency, and lifts Consumer's Experience.
For reaching above-mentioned purpose, the terminal that third aspect present invention embodiment proposes, including:Housing, processor, storage
Device, circuit board, power circuit and camera module, circuit board is placed in the interior volume that housing surrounds, processor, memorizer and phase
Machine module is arranged on circuit boards;Power circuit, for being each circuit of terminal or device is powered;Memorizer is used for storing can be held
Line program code;Described camera module includes:AF device and control module;Wherein, described processor passes through to read in memorizer
Storage executable program code come to run program corresponding with executable program code so that described camera module execution:Knowing
Do not go out the size treating photographing objective image when photographing objective image described in acquisition;Obtain the focusing horse of present terminal photographic head
Reach the focal length of position, and corresponding multiple default focal length is determined according to described size;From the plurality of default focal length
Determine that distance default focal length the shortest is as target focal length and the focal length of described position between;Based on described target focal length
Treat that photographing objective is focused to described.
The terminal that third aspect present invention embodiment proposes, by when identifying whne photographing objective image, obtaining and waiting to clap
According to the size of target image, obtain the focal length of the focusing motor position of present terminal photographic head, and determined according to size
Corresponding multiple default focal length, determines distance default Jiao the shortest and focal length of position between from multiple default focal lengths
Away from as target focal length, photographing objective is treated based on target focal length and is focused, it can be avoided that user's using terminal is autodyned
During AF device frequently focus, lifting focusing efficiency, and lifted Consumer's Experience.
The aspect that the present invention adds and advantage will be set forth in part in the description, and partly will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments
Substantially and easy to understand, wherein:
Fig. 1 is the schematic flow sheet of the focusing method of terminal that one embodiment of the invention proposes;
Fig. 2 is multiple default focal length schematic diagrams in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the focusing method of terminal that another embodiment of the present invention proposes;
Fig. 4 is the schematic flow sheet of the focusing method of 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 schematic flow sheet of the focusing method of terminal that another embodiment of the present invention proposes;
Fig. 7 is the structural representation of the focusing mechanism of terminal that one embodiment of the invention proposes;
Fig. 8 is the structural representation of the focusing mechanism of terminal that another embodiment of the present invention proposes;
Fig. 9 is the structural representation of the terminal that one embodiment of the invention proposes.
Specific embodiment
Embodiments of the invention are described below in detail, the example of described embodiment is shown in the drawings, wherein from start to finish
The element that same or similar label represents same or similar element or has same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, originally
Inventive embodiment includes falling into all changes in the range of the spirit of attached claims and intension, modification and equivalent
Thing.
Fig. 1 is the schematic flow sheet of the focusing method of terminal that one embodiment of the invention proposes.
Embodiments of the invention can be applied and treat during photographing objective image autodyned in user's using terminal.
Wherein, terminal can be the hardware that smart mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems
Equipment, is not restricted to this.
Be provided with AF device in terminal, with during taking pictures control focusing motor carry out retrieval type movement realize right
Burnt.
Generally, produce movement in focus process in portrait to be taken pictures, AF device can constantly be focused, to lift auto heterodyne
The definition of image.
And in the present embodiment, when identifying whne photographing objective image, focusing motor can directly be pushed away terminal by AF device
Move the position corresponding to focal length corresponding with the size treating photographing objective image, wherein, with the size treating photographing objective image
Corresponding focal length can be predetermined most suitable focal length, i.e. under this most suitable focal length, auto heterodyne image definition is more excellent,
It can be avoided that AF device is frequently focused during user's using terminal is autodyned.
Referring to Fig. 1, the method includes:
S11:When identifying whne photographing objective image, obtain the size treating photographing objective image.
In an embodiment of the present invention, treat that photographing objective can need, for user's using terminal, field that it is autodyned
Scape, personage, scenery etc..
The embodiment of the present invention is that portrait to be taken pictures carries out example to treat photographing objective, treats that photographing objective image is as waited to take pictures
The facial image of portrait.
In an embodiment of the present invention, can identify the facial image of portrait to be taken pictures, and obtain the size of facial image,
Wherein, the size of this facial image can be, for example, the ratio value with terminal screen area for the area of facial image, or, also may be used
Being, for example, the length/width of facial image, or it is also possible to the number of pixel for example, occupied by facial image, or
Person or other, are not restricted to this.
S12:Obtain the focal length of the focusing motor position of present terminal photographic head.
Generally, treating during portrait of taking pictures autodyned, conventional focal length is fixing, for example, grips eventually
Hold the arm length autodyned, or, when being autodyned using self-shooting bar fixed terminal, arm and auto heterodyne pole length sum,
Or or the length that other is more rare, according to practical experience, the frequency in the case of first two is higher.
In an embodiment of the present invention it may be predetermined that Jiao of the focusing motor position of present terminal photographic head
Away from triggering following operation.
S13:Corresponding multiple default focal length is determined according to size.
In an embodiment of the present invention, terminal camera can be determined according to size and treat the distance between photographing objective;
Corresponding multiple default focal lengths are determined according to distance.
As a kind of example, referring to Fig. 2, Fig. 2 is multiple default focal length schematic diagrams in the embodiment of the present invention, wherein, labelling
For being according to terminal camera and the default focal length treating that the distance between photographing objective is determined at alphabetical A, B, C, D, E.Need
It is noted that default focal length is multiple, Fig. 2 is a kind of example, may this five focal lengths more than in practical situation.
In some embodiments, referring to Fig. 3, step S13 specifically includes:
S31:Terminal camera is determined according to size and treats the distance between photographing objective.
In an embodiment of the present invention, size can be compared with pre-set dimension, obtain comparison information;Believe according to comparing
Breath determines terminal camera and treats the distance between photographing objective.
In some embodiments, referring to Fig. 4, step S31 specifically includes:
S41:Size is compared with pre-set dimension, obtains 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 is permissible
It is, for example, the size of standard faces image, i.e. standard faces image is can be as the facial image of benchmark, wherein, default chi
The ratio value of very little area and the terminal screen area that can be, for example, standard faces image, or it is also possible to for example, standard people
The length/width of face image, or it is also possible to the number of pixel for example, occupied by standard faces image, or, also may be used
Think other, this is not restricted.
Alternatively, comparison information is the ratio value between the size of facial image and pre-set dimension or difference.
By the size treating photographing objective image is compared with pre-set dimension, obtain comparison information, easy reality simple to operate
Existing, save focusing time, lifting focusing efficiency.
S42:Terminal camera is determined according to comparison information and treats the distance between photographing objective.
In an embodiment of the present invention, the corresponding terminal camera of different comparison information and treat between photographing objective away from
From different or identical, can be determined corresponding by the ratio value between the size of facial image and pre-set dimension or difference
Terminal camera with treat the distance between photographing objective.
By corresponding terminal camera being determined according to comparison information and treating the distance between photographing objective, due to comparing letter
Cease for the ratio value between the size of facial image and pre-set dimension or difference, therefore, comparison information can be identified for that face figure
As the relative position distant relationships and standard faces image between, ensure that reasonability that focal length obtains it is ensured that corresponding
The definition of auto heterodyne image under focal length, method for improving practicality.
S32:Corresponding multiple default focal lengths are determined according to distance.
In an embodiment of the present invention, corresponding multiple default focal length can be determined from default focal length table according to distance,
Wherein, default focal length table is used for the corresponding relation between mark distance and default focal length.
Wherein, preset relation table pre-sets according to external command.
External command can be, for example, manufacturer's input of terminal, or it is also possible to for example, clapped in terminal
Developer according to application program inputs, or it is also possible to the user input of such as terminal, this is not restricted.
By preset relation table is pre-set according to external command, it is possible to achieve to corresponding between comparison information and focal length
Relation carries out Dynamic Maintenance, the method for improving suitability, is easy to follow-up renewal and improvement, lifts Consumer's Experience.By distance from
Corresponding multiple default focal length is determined in default focal length table, rather than mobile real by controlling focusing motor to carry out frequent retrieval type
Now focus, simple to operation, effectively lifting focusing efficiency.
In the present embodiment, by terminal camera being determined according to size and treating the distance between photographing objective, according to distance
Determine corresponding multiple default focal length, the optimum of the focusing motor position of terminal camera can be determined according to default focal length
Focal length, it is to avoid during user's using terminal is autodyned, AF device is frequently focused.
S14:Distance default focal length the conduct the shortest and focal length of position between is determined from multiple default focal lengths
Target focal length.
In an embodiment of the present invention it may be predetermined that and the focal length of position between distance default Jiao the shortest
Away from, i.e. under this focal length, auto heterodyne image definition is more excellent, it can be avoided that user's using terminal autodyned during AF device
Frequently focus.
As a kind of example, referring to Fig. 5, Fig. 5 is target focal length schematic diagram in the embodiment of the present invention, wherein, is labeled as word
At female G for present terminal photographic head focusing motor position focal length, being labeled as at alphabetical A, B, C, D, E is according to terminal
Photographic head and the default focal length treating that the distance between photographing objective is determined, the shortest with G distance in multiple focal lengths is B, then B is
Target focal length.
S15:Treat photographing objective based on target focal length to be focused.
In an embodiment of the present invention, directly focusing motor can be pushed to position corresponding with target focal length;Right
The position answered is treated photographing objective and is focused.
In some embodiments, referring to Fig. 6, step S15 specifically includes:
S61:Directly focusing motor is pushed to position corresponding with target focal length.
In an embodiment of the present invention, determine that distance is the shortest and the focal length of position between from multiple default focal lengths
Default focal length as target focal length, under this focal length, auto heterodyne image definition is more excellent, it can be avoided that user's using terminal is carried out
During auto heterodyne, AF device is frequently focused.
By directly focusing motor being pushed to position corresponding with target focal length, simple to operate, save hardware cost, subtract
Few focusing time, lifting focusing efficiency.
S62:Treat photographing objective in corresponding position to be focused.
In an embodiment of the present invention, corresponding position is focusing motor location in the terminal, and, in this correspondence
Position under, the definition using terminal auto heterodyne image is higher.
By corresponding position treat photographing objective focused it is ensured that under corresponding focal length auto heterodyne image clear
Degree, method for improving practicality.
In the present embodiment, by when identifying whne photographing objective image, obtaining the size treating photographing objective image, obtain
The focal length of the focusing motor position of present terminal photographic head, and corresponding multiple default focal length is determined according to size, from
Determine in multiple default focal lengths that distance default focal length the shortest is as target focal length and the focal length of position between, based on mesh
Mark focal length is treated photographing objective and is focused, it can be avoided that AF device is frequently focused during user's using terminal is autodyned,
Lifting focusing efficiency, and lift Consumer's Experience.
Fig. 7 is the structural representation of the focusing mechanism of terminal that one embodiment of the invention proposes.
Referring to Fig. 7, the focusing mechanism 700 of this terminal includes:First acquisition module 710, the second acquisition module 720, determination
Module 730, processing module 740, and Focusing module 750.Wherein,
First acquisition module 710, for when identifying whne photographing objective image, obtaining the chi treating photographing objective image
Very little.
Second acquisition module 720, for obtaining the focal length of the focusing motor position of present terminal photographic head.
Determining module 730, for determining corresponding multiple default focal length according to size.
Processing module 740, for determining that distance is the shortest and the focal length of position between from multiple default focal lengths
Default focal length is 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 this terminal also includes:
Optionally it is determined that module 730 includes:
First determination sub-module 731, for determining terminal camera according to size and treating the distance between photographing objective.
Second determination sub-module 732, for determining corresponding multiple default focal lengths according to distance.
Alternatively, the first determination sub-module 731 includes:
Comparing unit 7311, for size is compared with pre-set dimension, obtains comparison information.
Determining unit 7312, for determining terminal camera according to comparison information and treating the distance between photographing objective.
Alternatively, the second determination sub-module 732 specifically for:
Corresponding multiple default focal length is determined from default focal length table according to distance, wherein, default focal length table is used for identifying
Corresponding relation between distance and default focal length.
Alternatively, Focusing module 750 includes:
Promote submodule 751, for directly focusing motor being pushed to position corresponding with target focal length.
Focusing submodule 752, is focused for treating photographing objective in corresponding position.
It should be noted that also fitting to the explanation of the focusing method embodiment of terminal in earlier figures 1- Fig. 6 embodiment
For the focusing mechanism 700 of the terminal of this embodiment, it is realized principle and is similar to, and here is omitted.
In the present embodiment, by when identifying whne photographing objective image, obtaining the size treating photographing objective image, obtain
The focal length of the focusing motor position of present terminal photographic head, and corresponding multiple default focal length is determined according to size, from
Determine in multiple default focal lengths that distance default focal length the shortest is as target focal length and the focal length of position between, based on mesh
Mark focal length is treated photographing objective and is focused, it can be avoided that AF device is frequently focused during user's using terminal is autodyned,
Lifting focusing efficiency, and lift Consumer's Experience.
Fig. 9 is the structural representation of the terminal that one embodiment of the invention proposes.This terminal can be mobile phone, panel computer
Deng.
Referring to Fig. 9, the terminal 90 of the present embodiment includes:Housing 91, processor 92, memorizer 93, circuit board 94, power supply electricity
Road 95 and camera module 96, circuit board 94 is placed in the interior volume that housing 91 surrounds, processor 92, memorizer 93 and camera mould
Group 96 is arranged on circuit board 94;Power circuit 95, for being each circuit of terminal or device is powered;Memorizer 93 is used for storing
Executable program code;Camera module 96 includes:AF device 961 and control module 962;
Wherein, processor 92 is run and executable program by reading the executable program code of storage in memorizer 93
The corresponding program of code is so that camera module 96 executes:
S11’:When identifying whne photographing objective image, obtain the size treating photographing objective image.
In an embodiment of the present invention, treat that photographing objective can need, for user's using terminal, field that it is autodyned
Scape, personage, scenery etc..
The embodiment of the present invention is that portrait to be taken pictures carries out example to treat photographing objective, treats that photographing objective image is as waited to take pictures
The facial image of portrait.
In an embodiment of the present invention, can identify the facial image of portrait to be taken pictures, and obtain the size of facial image,
Wherein, the size of this facial image can be, for example, the ratio value with terminal screen area for the area of facial image, or, also may be used
Being, for example, the length/width of facial image, or it is also possible to the number of pixel for example, occupied by facial image, or
Person or other, are not restricted to this.
S12’:Obtain the focal length of the focusing motor position of present terminal photographic head.
Generally, treating during portrait of taking pictures autodyned, conventional focal length is fixing, for example, grips eventually
Hold the arm length autodyned, or, when being autodyned using self-shooting bar fixed terminal, arm and auto heterodyne pole length sum,
Or or the length that other is more rare, according to practical experience, the frequency in the case of first two is higher.
In an embodiment of the present invention it may be predetermined that Jiao of the focusing motor position of present terminal photographic head
Away from triggering following operation.
S13’:Corresponding multiple default focal length is determined according to size.
In an embodiment of the present invention, terminal camera can be determined according to size and treat the distance between photographing objective;
Corresponding multiple default focal lengths are determined according to distance.
As a kind of example, referring to Fig. 2, Fig. 2 is multiple default focal length schematic diagrams in the embodiment of the present invention, wherein, labelling
For being according to terminal camera and the default focal length treating that the distance between photographing objective is determined at alphabetical A, B, C, D, E.Need
It is noted that default focal length is multiple, Fig. 2 is a kind of example, may incessantly this five in practical situation.
In another embodiment, processor is run and executable by reading the executable program code of storage in memorizer
The corresponding program of program code, for executing following steps:
S31’:Terminal camera is determined according to size and treats the distance between photographing objective.
In an embodiment of the present invention, size can be compared with pre-set dimension, obtain comparison information;Believe according to comparing
Breath determines terminal camera and treats the distance between photographing objective.
In another embodiment, processor is run and executable by reading the executable program code of storage in memorizer
The corresponding program of program code, for executing following steps:
S41’:Size is compared with pre-set dimension, obtains 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 is permissible
It is, for example, the size of standard faces image, i.e. standard faces image is can be as the facial image of benchmark, wherein, default chi
The ratio value of very little area and the terminal screen area that can be, for example, standard faces image, or it is also possible to for example, standard people
The length/width of face image, or it is also possible to the number of pixel for example, occupied by standard faces image, or, also may be used
Think other, this is not restricted.
Alternatively, comparison information is the ratio value between the size of facial image and pre-set dimension or difference.
By the size treating photographing objective image is compared with pre-set dimension, obtain comparison information, easy reality simple to operate
Existing, save focusing time, lifting focusing efficiency.
S42’:Terminal camera is determined according to comparison information and treats the distance between photographing objective.
In an embodiment of the present invention, the corresponding terminal camera of different comparison information and treat between photographing objective away from
From different or identical, can be determined corresponding by the ratio value between the size of facial image and pre-set dimension or difference
Terminal camera with treat the distance between photographing objective.
By corresponding terminal camera being determined according to comparison information and treating the distance between photographing objective, due to comparing letter
Cease for the ratio value between the size of facial image and pre-set dimension or difference, therefore, comparison information can be identified for that face figure
As the relative position distant relationships and standard faces image between, ensure that reasonability that focal length obtains it is ensured that corresponding
The definition of auto heterodyne image under focal length, method for improving practicality.
S32’:Corresponding multiple default focal lengths are determined according to distance.
In an embodiment of the present invention, corresponding multiple default focal length can be determined from default focal length table according to distance,
Wherein, default focal length table is used for the corresponding relation between mark distance and default focal length.
Wherein, preset relation table pre-sets according to external command.
External command can be, for example, manufacturer's input of terminal, or it is also possible to for example, clapped in terminal
Developer according to application program inputs, or it is also possible to the user input of such as terminal, this is not restricted.
By preset relation table is pre-set according to external command, it is possible to achieve to corresponding between comparison information and focal length
Relation carries out Dynamic Maintenance, the method for improving suitability, is easy to follow-up renewal and improvement, lifts Consumer's Experience.By distance from
Corresponding multiple default focal length is determined in default focal length table, rather than mobile real by controlling focusing motor to carry out frequent retrieval type
Now focus, simple to operation, effectively lifting focusing efficiency.
In the present embodiment, by terminal camera being determined according to size and treating the distance between photographing objective, according to distance
Determine corresponding multiple default focal length, the optimum of the focusing motor position of terminal camera can be determined according to default focal length
Focal length, it is to avoid during user's using terminal is autodyned, AF device is frequently focused.
S14’:Distance default focal length the conduct the shortest and focal length of position between is determined from multiple default focal lengths
Target focal length.
In an embodiment of the present invention it may be predetermined that and the focal length of position between distance default Jiao the shortest
Away from, i.e. under this focal length, auto heterodyne image definition is more excellent, it can be avoided that user's using terminal autodyned during AF device
Frequently focus.
As a kind of example, referring to Fig. 5, Fig. 5 is target focal length schematic diagram in the embodiment of the present invention, wherein, is labeled as word
At female G for present terminal photographic head focusing motor position focal length, being labeled as at alphabetical A, B, C, D, E is according to terminal
Photographic head and the default focal length treating that the distance between photographing objective is determined, the shortest with G distance in multiple focal lengths is B, then B is
Target focal length.
S15’:Treat photographing objective based on target focal length to be focused.
In an embodiment of the present invention, directly focusing motor can be pushed to position corresponding with target focal length;Right
The position answered is treated photographing objective and is focused.
In another embodiment, processor is run and executable by reading the executable program code of storage in memorizer
The corresponding program of program code, for executing following steps:
S61’:Directly focusing motor is pushed to position corresponding with target focal length.
In an embodiment of the present invention, determine that distance is the shortest and the focal length of position between from multiple default focal lengths
Default focal length as target focal length, under this focal length, auto heterodyne image definition is more excellent, it can be avoided that user's using terminal is carried out
During auto heterodyne, AF device is frequently focused.
By directly focusing motor being pushed to position corresponding with target focal length, simple to operate, save hardware cost, subtract
Few focusing time, lifting focusing efficiency.
S62’:Treat photographing objective in corresponding position to be focused.
In an embodiment of the present invention, corresponding position is focusing motor location in the terminal, and, in this correspondence
Position under, the definition using terminal auto heterodyne image is higher.
By corresponding position treat photographing objective focused it is ensured that under corresponding focal length auto heterodyne image clear
Degree, method for improving practicality.
In the present embodiment, by when identifying whne photographing objective image, obtaining the size treating photographing objective image, obtain
The focal length of the focusing motor position of present terminal photographic head, and corresponding multiple default focal length is determined according to size, from
Determine in multiple default focal lengths that distance default focal length the shortest is as target focal length and the focal length of position between, based on mesh
Mark focal length is treated photographing objective and is focused, it can be avoided that AF device is frequently focused during user's using terminal is autodyned,
Lifting focusing efficiency, and lift Consumer's Experience.
It should be noted that in describing the invention, term " first ", " second " etc. are only used for describing purpose, and not
It is understood that as indicating or implying relative importance.Additionally, in describing the invention, unless otherwise stated, the implication of " multiple "
It is two or more.
In flow chart or here any process described otherwise above or method description are construed as, represent and include
The module of the code of executable instruction of one or more steps for realizing specific logical function or process, fragment or portion
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by substantially simultaneously in the way of or in the opposite order, carry out perform function, this should be by the present invention
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realizing.For example, if realized with hardware, and the same in another embodiment, can use well known in the art under
Any one of row technology or their combination are realizing:There is the logic gates for data signal is realized with logic function
Discrete logic, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part step that above-described embodiment method carries
Suddenly the program that can be by completes come the hardware to instruct correlation, and described program can be stored in a kind of computer-readable storage medium
In matter, this program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, can be integrated in a processing module in each functional unit in each embodiment of the present invention it is also possible to
It is that unit is individually physically present it is also possible to two or more units are integrated in a module.Above-mentioned integrated mould
Block both can be to be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.Described integrated module is such as
Fruit using in the form of software function module realize and as independent production marketing or use when it is also possible to be stored 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 " embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy describing with reference to this embodiment or example
Point is contained at least one embodiment or the example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.And, the specific features of description, structure, material or feature can be any
One or more embodiments or example in combine in an appropriate manner.
Although embodiments of the invention have been shown and described above it is to be understood that above-described embodiment is example
Property it is impossible to be interpreted as limitation of the present invention, those of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.
Claims (11)
1. a kind of focusing method of terminal is it is characterised in that comprise the following steps:
When identifying whne photographing objective image, treat the size of photographing objective image described in acquisition;
Obtain the focal length of the focusing motor position of present terminal photographic head, and determined according to described size corresponding multiple
Default focal length;
Distance default focal length the conduct the shortest and focal length of described position between is determined from the plurality of default focal length
Target focal length;
Treat that photographing objective is focused based on described target focal length to described.
2. terminal as claimed in claim 1 focusing method it is characterised in that described determined according to described size corresponding
Multiple default focal lengths, including:
Described terminal camera is determined according to described size and treats the distance between photographing objective;
Described corresponding multiple default focal lengths are determined according to described distance.
3. the focusing method of terminal as claimed in claim 2 is it is characterised in that described determine described terminal according to described size
Photographic head with treat the distance between photographing objective, including:
Described size and pre-set dimension are compared, obtains comparison information;
Determine that described terminal camera treats the distance between photographing objective with described according to described comparison information.
4. the focusing method of terminal as claimed in claim 2 is it is characterised in that described determine described correspondence according to described distance
Multiple default focal length, including:
Described corresponding multiple default focal lengths, wherein, described default focal length table are determined from default focal length table according to described distance
For the corresponding relation between mark distance and default focal length.
5. the focusing method of terminal as claimed in claim 1 is it is characterised in that described treated to described based on described target focal length
Photographing objective is focused, including:
Directly described focusing motor is pushed to position corresponding with described target focal length;
Treat that photographing objective is focused in described corresponding position to described.
6. a kind of focusing mechanism of terminal is it is characterised in that include:
First acquisition module, for when identifying whne photographing objective image, treating the size of photographing objective image described in acquisition;
Second acquisition module, for obtaining the focal length of the focusing motor position of present terminal photographic head;
Determining module, for determining corresponding multiple default focal length according to described size;
Processing module, for determining that from the plurality of default focal length distance is the shortest and the focal length of described position between
Default focal length is as target focal length;
To described, Focusing module, for treating that photographing objective is focused based on described target focal length.
7. the focusing mechanism of terminal as claimed in claim 6 is it is characterised in that described determining module includes:
First determination sub-module, for determining described terminal camera according to described size and treating the distance between photographing objective;
Second determination sub-module, for determining described corresponding multiple default focal lengths according to described distance.
8. the focusing mechanism of terminal as claimed in claim 7 is it is characterised in that described first determination sub-module includes:
Comparing unit, for described size and pre-set dimension compare, obtains comparison information;
Determining unit, for according to described comparison information determine described terminal camera and described treat between photographing objective away from
From.
9. terminal as claimed in claim 7 focusing mechanism it is characterised in that described second determination sub-module specifically for:
Described corresponding multiple default focal lengths, wherein, described default focal length table are determined from default focal length table according to described distance
For the corresponding relation between mark distance and default focal length.
10. the focusing mechanism of terminal as claimed in claim 6 is it is characterised in that described Focusing module includes:
Promote submodule, for directly described focusing motor being pushed to position corresponding with described target focal length;
To described, focusing submodule, for treating that photographing objective is focused in described corresponding position.
A kind of 11. terminals are it is characterised in that include:Housing, processor, memorizer, circuit board, power circuit and camera module,
Circuit board is placed in the interior volume that housing surrounds, and processor, memorizer and camera module are arranged on circuit boards;Power supply electricity
Road, for being each circuit of terminal or device is powered;Memorizer is used for storing executable program code;Described camera module bag
Include:AF device and control module;
Wherein, described processor is run and executable program code by reading the executable program code of storage in memorizer
Corresponding program is so that described camera module executes:
When identifying whne photographing objective image, treat the size of photographing objective image described in acquisition;
Obtain the focal length of the focusing motor position of present terminal photographic head, and determined according to described size corresponding multiple
Default focal length;
Distance default focal length the conduct the shortest and focal length of described position between is determined from the plurality of default focal length
Target focal length;
Treat that photographing objective is focused based on described target focal length to described.
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 true CN106412437A (en) | 2017-02-15 |
CN106412437B 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) |
Cited By (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 |
CN107566735A (en) * | 2017-09-30 | 2018-01-09 | 努比亚技术有限公司 | A kind of dual camera focusing method, mobile terminal and computer-readable recording medium |
WO2019015652A1 (en) * | 2017-07-20 | 2019-01-24 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Electronic device and method for recognizing real face and storage medium |
CN112073601A (en) * | 2019-06-11 | 2020-12-11 | 杭州海康微影传感科技有限公司 | Focusing method, device, imaging equipment and computer readable storage medium |
CN113645403A (en) * | 2021-07-29 | 2021-11-12 | 深圳市芯成像科技有限公司 | Self-photographing method and system based on holder, computer readable storage medium and intelligent holder |
CN114339021A (en) * | 2020-09-30 | 2022-04-12 | 北京小米移动软件有限公司 | Focusing method and device based on face recognition, terminal equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060025946A (en) * | 2004-09-18 | 2006-03-22 | 엘지전자 주식회사 | Focus menu display method for mobile communication terminal |
CN101191979A (en) * | 2006-11-28 | 2008-06-04 | 华晶科技股份有限公司 | Automatic focusing method and system |
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 |
EP2942941A1 (en) * | 2014-05-08 | 2015-11-11 | 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 |
CN105338240A (en) * | 2014-08-12 | 2016-02-17 | 希姆通信息技术(上海)有限公司 | Shooting device and focusing method, device and system |
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 (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060025946A (en) * | 2004-09-18 | 2006-03-22 | 엘지전자 주식회사 | Focus menu display method for mobile communication terminal |
CN101191979A (en) * | 2006-11-28 | 2008-06-04 | 华晶科技股份有限公司 | Automatic focusing method and system |
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 |
EP2942941A1 (en) * | 2014-05-08 | 2015-11-11 | Axis AB | Method and apparatus for determining a need for a change in a pixel density requirement due to changing light conditions |
CN105338240A (en) * | 2014-08-12 | 2016-02-17 | 希姆通信息技术(上海)有限公司 | Shooting device and focusing method, device and system |
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 |
Cited By (9)
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 |
WO2019015652A1 (en) * | 2017-07-20 | 2019-01-24 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Electronic device and method for recognizing real face and storage medium |
US10747987B2 (en) | 2017-07-20 | 2020-08-18 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Electronic device and method for recognizing real face and storage medium |
US10902241B2 (en) | 2017-07-20 | 2021-01-26 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Electronic device and method for recognizing real face and storage medium |
CN107566735A (en) * | 2017-09-30 | 2018-01-09 | 努比亚技术有限公司 | A kind of dual camera focusing method, mobile terminal and computer-readable recording medium |
CN112073601A (en) * | 2019-06-11 | 2020-12-11 | 杭州海康微影传感科技有限公司 | Focusing method, device, imaging equipment and computer readable storage 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 |
CN113645403A (en) * | 2021-07-29 | 2021-11-12 | 深圳市芯成像科技有限公司 | Self-photographing method and system based on holder, computer readable storage medium and intelligent holder |
Also Published As
Publication number | Publication date |
---|---|
CN106412437B (en) | 2019-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106412437A (en) | Terminal focusing method and device, and terminal | |
US9998651B2 (en) | Image processing apparatus and image processing method | |
US9723215B2 (en) | Android bound service camera initialization | |
US10659675B2 (en) | Terminal, shooting method thereof and computer storage medium | |
US20170053146A1 (en) | Device with camera for accelerated barcode scan reading | |
CN100459688C (en) | Electronic device and control method therefor | |
US20130120274A1 (en) | Text input method in touch screen terminal and apparatus therefor | |
KR20190051995A (en) | Systems and methods for reducing actuator power leakage | |
US20130169854A1 (en) | Camera module, electronic device comprising the same and auto focus method | |
CN106254772A (en) | Multiple image synthetic method and device | |
CN104410790A (en) | Information processing method and electronic equipment | |
EP2961202B1 (en) | Communication apparatus and method for controlling communication apparatus | |
KR101776674B1 (en) | Apparatus for editing video and the operation method | |
JP2016116133A (en) | Imaging controller, control method, program therefor, and storage medium | |
CN104769608A (en) | Electronic device, method for controlling same, and recording medium | |
CN106101506A (en) | Camera control method and device | |
CN110913134A (en) | Focusing method and device, camera, storage medium and electronic equipment | |
CN104486553A (en) | Method and terminal for taking panoramic photos | |
JP6102445B2 (en) | Display device, display method, and display program | |
CN106161954A (en) | Video shooting control method and device and electronic equipment | |
CN106250792B (en) | Bar code acquisition method and bar code reader | |
US10440258B2 (en) | Electronic equipment, controlling method of electronic equipment, and storage medium | |
CN106227505A (en) | Image detecting method, device and the device for image detection | |
JP2021028760A (en) | Electronic apparatus and control method thereof | |
JP6728024B2 (en) | Display control device, display control method, and 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 |