CN106101554A - camera focusing method, device and terminal - Google Patents

camera focusing method, device and terminal Download PDF

Info

Publication number
CN106101554A
CN106101554A CN201610615667.1A CN201610615667A CN106101554A CN 106101554 A CN106101554 A CN 106101554A CN 201610615667 A CN201610615667 A CN 201610615667A CN 106101554 A CN106101554 A CN 106101554A
Authority
CN
China
Prior art keywords
defocus amount
present frame
frame
value
camera focusing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610615667.1A
Other languages
Chinese (zh)
Other versions
CN106101554B (en
Inventor
韦怡
***
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610615667.1A priority Critical patent/CN106101554B/en
Publication of CN106101554A publication Critical patent/CN106101554A/en
Application granted granted Critical
Publication of CN106101554B publication Critical patent/CN106101554B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The invention discloses a kind of camera focusing method, device and terminal.Wherein method includes: when detecting that use photographic head shoots, obtain the defocus amount for present frame that phase difference detection parts detect;Judge whether the defocus amount for present frame is exceptional value;If the defocus amount for present frame is exceptional value, then move, so that the defocus amount for present frame was in normal range according to the defocus amount Perceived control optical element for present frame.Achieving by the mobile control to photo-sensitive cell so that the defocus amount that phase detecting section detects will not be suddenlyd change, the defocus value (defocus amount) preventing phase detecting section from calculating excessively shakes, unstable etc., improves the experience of user.

Description

Camera focusing method, device and terminal
Technical field
The present invention relates to field of terminal technology, particularly relate to a kind of camera focusing method, device and terminal.
Background technology
User is during using intelligent terminal to shoot, it is often necessary to focus.Focused by intelligent terminal System changes object distance and position apart, so that the process that subject imaging is cleaned is focused exactly.At present, focusing technology Have a variety of, such as phase place focusing technology, contrast focusing technology and laser focusing technology etc..Wherein, phase place focusing technology because Its focusing speed is fast and is favored by increasing user.
In phase place focusing technology, phase difference detection parts are made up of in pairs left and right pixel.Intelligent terminal passes through left picture Vegetarian refreshments obtains the first image and obtains the second image by right pixel, generates the view data ripple of the first image the most respectively The view data waveform of shape and the second image, when view data waveform and the view data waveform weight of the second image of the first image During conjunction, captured picture is the most clear, and therefore, intelligent terminal can be able to draw according to the phase contrast of two view data waveforms Focusing position.
But, at present can be by noise, extraneous light due to the pixel (i.e. the pixel of phase place PD) of phase difference detection parts The factor impact that instability etc. are various, causes defocus value (defocus amount) the concussion severity that phase difference detection parts calculate, leads Cause motor also can shake back and forth, thus cause the obvious shake of picture.Therefore, how noise, extraneous light unstable etc. because of It is urgently to be resolved hurrily asking that the defocus value (defocus amount) preventing phase difference detection parts from calculating in the case of element is excessively shaken Topic.
Summary of the invention
The purpose of the present invention is intended to solve one of above-mentioned technical problem the most to a certain extent.
To this end, the first of the present invention purpose is to propose a kind of camera focusing method.The method is by photosensitive unit The mobile control of part, it is achieved that the defocus amount that phase detecting section detects will not be suddenlyd change, prevents phase detecting section from calculating Defocus value (defocus amount) excessively shake, unstable etc., improve the experience of user.
Second object of the present invention is to propose a kind of camera focusing device.
Third object of the present invention is to propose a kind of terminal.
Fourth object of the present invention is to propose another kind of terminal.
For reaching above-mentioned purpose, the camera focusing method of first aspect present invention embodiment, including: detecting that use is taken the photograph When shooting as head, obtain the defocus amount for present frame that phase difference detection parts detect;Judge described for currently Whether the defocus amount of frame is exceptional value;If the described defocus amount for present frame is exceptional value, then according to described for currently The defocus amount Perceived control optical element of frame moves, so that the described defocus amount for present frame was in normal range.
Camera focusing method according to embodiments of the present invention, when detecting that use photographic head shoots, obtains phase The defocus amount for present frame that potential difference detection part detects, and judge whether the defocus amount for present frame is exceptional value, If the defocus amount for present frame is exceptional value, then move according to the defocus amount Perceived control optical element for present frame, So that the defocus amount for present frame was in normal range.I.e. during phase place is focused, can determine whether defocusing of present frame Whether amount is exceptional value, and when the defocus amount of present frame is exceptional value, controls photosensitive unit according to the defocus amount for present frame Part moves, so that the defocus amount for present frame was in normal range, i.e. by the mobile control to photo-sensitive cell, real The defocus amount that existing phase detecting section detects will not be suddenlyd change, and the defocus value preventing phase detecting section from calculating (defocuses Amount) excessively concussion, unstable etc., improve the experience of user.
According to one embodiment of present invention, described in described judgement, whether the defocus amount for present frame is exceptional value, bag Include: obtain the defocus amount at least one frame before that described phase difference detection parts detect;Judge described for currently Whether the defocus amount of frame and the described absolute value for the difference between the defocus amount of at least one frame before be less than or equal to pre- If threshold value;If the absolute value of described difference is less than or equal to described predetermined threshold value, then judge described defocusing for present frame Amount is not described exceptional value;If the absolute value of described difference is more than predetermined threshold value, then judge described defocusing for present frame Amount is described exceptional value.
According to one embodiment of present invention, at least one frame described is five frames.
According to one embodiment of present invention, defocus amount Perceived control optical element for present frame described in described basis is carried out Mobile, including: according to the described defocus amount for present frame, control photosensitive unit by micro-electromechanical optical stabilization system MEMS OIS Part carries out planar movement.
According to one embodiment of present invention, for the defocus amount of present frame described in described basis, micro-electromechanical optical is passed through Stabilization system MEMS OIS Perceived control optical element moves, including: when the described defocus amount for present frame is negative, logical Cross the described MEMS OIS described photo-sensitive cell of control proximally to translate to far-end;When the described defocus amount for present frame is During positive number, control described photo-sensitive cell by described MEMS OIS and proximally translate from far-end.
For reaching above-mentioned purpose, the camera focusing device of second aspect present invention embodiment, including: acquisition module, it is used for When detecting that use photographic head shoots, obtain the defocus amount for present frame that phase difference detection parts detect;Sentence Whether disconnected module, be exceptional value for judging the described defocus amount for present frame;Control module, at described judge module Judge, when the described defocus amount for present frame is exceptional value, to enter according to the described defocus amount Perceived control optical element for present frame Row is mobile, so that the described defocus amount for present frame was in normal range.
By acquisition module, camera focusing device according to embodiments of the present invention, can detect that use photographic head is carried out During shooting, obtain the defocus amount for present frame that phase difference detection parts detect, it is judged that module judges for present frame Whether defocus amount is exceptional value, if the defocus amount for present frame is exceptional value, control module is then according to for present frame Defocus amount Perceived control optical element moves, so that the defocus amount for present frame was in normal range.I.e. focus in phase place During, can determine whether whether the defocus amount of present frame is exceptional value, and when the defocus amount of present frame is exceptional value, according to pin The defocus amount Perceived control optical element of present frame is moved, so that the defocus amount for present frame is in normal range, i.e. By the mobile control to photo-sensitive cell, it is achieved the defocus amount that phase detecting section detects will not be suddenlyd change, and prevents phase-detection The defocus value (defocus amount) that parts calculate excessively shakes, unstable etc., improve the experience of user.
According to one embodiment of present invention, described judge module includes: acquiring unit, is used for obtaining the inspection of described phase contrast Survey the defocus amount at least one frame before that parts detect;Judging unit, for judging described dissipating for present frame Whether burnt amount and the described absolute value for the difference between the defocus amount of at least one frame before be less than or equal to predetermined threshold value; Identifying unit, for when the absolute value of described difference is less than or equal to described predetermined threshold value, it is determined that described for present frame Defocus amount is not described exceptional value, and when the absolute value of described difference is more than predetermined threshold value, it is determined that described for present frame Defocus amount is described exceptional value.
According to one embodiment of present invention, at least one frame described is five frames.
According to one embodiment of present invention, described control module specifically for: according to described defocusing for present frame Amount, carries out planar movement by micro-electromechanical optical stabilization system MEMS OIS Perceived control optical element.
According to one embodiment of present invention, described control module includes: the first control unit, is used for described for working as When the defocus amount of front frame is negative, controls described photo-sensitive cell by described MEMS OIS and proximally translate to far-end;The Two control units, for when the described defocus amount for present frame is positive number, control described photosensitive by described MEMS OIS Element proximally translates from far-end.
For reaching above-mentioned purpose, the terminal of third aspect present invention embodiment, including: taking the photograph of second aspect present invention embodiment As head focusing mechanism.
By the acquisition module in camera focusing device, terminal according to embodiments of the present invention, can detect that use is taken the photograph When shooting as head, obtain the defocus amount for present frame that detects of phase difference detection parts, it is judged that module judge for Whether the defocus amount of present frame is exceptional value, if the defocus amount for present frame is exceptional value, control module then according to for The defocus amount Perceived control optical element of present frame moves, so that the defocus amount for present frame was in normal range.I.e. exist During phase place focusing, can determine whether whether the defocus amount of present frame is exceptional value, and be exceptional value in the defocus amount of present frame Time, move according to the defocus amount Perceived control optical element for present frame, so that the defocus amount for present frame is in normally In the range of, i.e. by the mobile control to photo-sensitive cell, it is achieved the defocus amount that phase detecting section detects will not be suddenlyd change, and prevents The defocus value (defocus amount) that phase detecting section calculates excessively shakes, unstable etc., improve the experience of user.
For reaching above-mentioned purpose, the terminal of fourth aspect present invention embodiment, including: housing;Processor;Memorizer;Circuit Plate and power circuit;Wherein, described circuit board is placed in the interior volume that described housing surrounds, described processor and described storage Device is arranged on described circuit board;Described power circuit, powers for each circuit or the device for described terminal;Described storage Device is used for storing executable program code;Described processor comes by reading the executable program code of storage in described memorizer Run the program corresponding with executable program code, for execution: when detecting that use photographic head shoots, obtain phase The defocus amount for present frame that potential difference detection part detects;Judge whether the described defocus amount for present frame is abnormal Value;If the described defocus amount for present frame is exceptional value, then control photosensitive unit according to the described defocus amount for present frame Part moves, so that the described defocus amount for present frame was in normal range.
Terminal according to embodiments of the present invention, when detecting that use photographic head shoots, obtains phase difference detection portion The defocus amount for present frame that part detects, and judge whether the defocus amount for present frame is exceptional value, if for working as The defocus amount of front frame is exceptional value, then move according to the defocus amount Perceived control optical element for present frame, so that for working as The defocus amount of front frame was in normal range.I.e. during phase place is focused, can determine whether whether the defocus amount of present frame is different Constant value, and when the defocus amount of present frame is exceptional value, move according to the defocus amount Perceived control optical element for present frame, So that the defocus amount for present frame was in normal range, i.e. by the mobile control to photo-sensitive cell, it is achieved phase-detection The defocus amount that parts detect will not be suddenlyd change, the defocus value (defocus amount) preventing phase detecting section from calculating excessively shakes, Unstable etc., improve the experience of user.
Aspect and advantage that the present invention adds will part be given in the following description, and part will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or that add aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially with easy to understand, wherein:
Fig. 1 is the flow chart of camera focusing method according to an embodiment of the invention;
Fig. 2 is to judge the flow process whether defocus amount for present frame is exceptional value according to an embodiment of the invention Figure;
Fig. 3 is the structural representation of camera focusing device according to an embodiment of the invention;
Fig. 4 is the structural representation of the camera focusing device according to one specific embodiment of the present invention;
Fig. 5 is the structural representation of the camera focusing device according to another specific embodiment of the present invention;
Fig. 6 is the structural representation of terminal according to an embodiment of the invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, the most from start to finish Same or similar label represents same or similar element or has the element of same or like function.Below with reference to attached The embodiment that figure describes is exemplary, it is intended to is used for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the camera focusing method of the embodiment of the present invention, device and terminal are described.
Fig. 1 is the flow chart of camera focusing method according to an embodiment of the invention.It should be noted that the present invention The camera focusing method of embodiment can be applicable to camera focusing device, and this camera focusing device can be configured in terminal In.Wherein, this terminal can have shoot function, and such as, this terminal can be smart mobile phone, panel computer, personal digital assistant Etc. the hardware device with various operating system, it is also possible to be intelligent digital camera etc..
As it is shown in figure 1, this camera focusing method may include that
S110, detect use photographic head shoot time, obtain phase difference detection parts detect for currently The defocus amount of frame.
For example, it is assumed that the camera focusing method of the embodiment of the present invention can be applicable to terminal, this terminal can be user Thering is provided the camera application program with shoot function, user can be by clicking on this camera application program to start the shooting merit of terminal Can, when detect user be currently in use photographic head shoot time, obtain what the phase difference detection parts in photographic head detected Defocus amount (defocus value) for present frame.
Wherein, the detection of phase difference detection parts has a lot for the mode of the defocus amount (defocus value) of present frame, as A kind of example, the phase difference detection parts in photographic head module are made up of in pairs left and right pixel, can be obtained by left pixel First image, can obtain the second image by right pixel, can generate the view data waveform and of the first image afterwards respectively The view data waveform of two images, finally, phase difference detection parts calculate view data waveform and second image of the first image View data waveform between phase contrast (the most above-mentioned defocus amount).It is appreciated that the defocus amount of the above-mentioned present frame illustrated Detection mode be only a kind of example, it is also possible to have other modes, do not repeat them here.
S120, it is judged that whether the defocus amount for present frame is exceptional value.
It is appreciated that each frame of phase place focusing technology is required for calculating the value (i.e. phase contrast) of Defocus (defocusing), and By hot-tempered sound, LENS SHADING, (wherein, the optical characteristics of LENS is exactly current pixel PIXEL due to phase detecting section Center is bright, surrounding is dark, here it is so-called relative illumination RI, the phenomenon caused just is SHADING) etc. impact, phase place can be caused Evil is gone through in the defocus value concussion that detection part calculates, and causes motor also can shake back and forth, thus causes the shake of picture bright Aobvious.
To this end, caused, in order to affect by factors such as external environment conditions when solving phase place focusing, the defocus value calculated Concussion, unstable problem, the camera focusing method of the embodiment of the present invention can obtain what phase difference detection parts detected After the defocus amount of present frame, can first judge whether this is exceptional value for the defocus amount of present frame, the most then after carrying out Continuous step S130;If it is not, then continue through phase difference detection parts to calculate the defocus amount of next frame.
As a kind of example, as in figure 2 it is shown, whether this judgement is implementing of exceptional value for the defocus amount of present frame Process can comprise the steps:
S210, obtains the defocus amount at least one frame before that phase difference detection parts detect.
It is appreciated that when phase difference detection parts detect the defocus amount for present frame, all can be by this present frame Defocus amount record, in order to subsequently through this record obtain that phase difference detection parts detect before at least one frame Defocus amount.
S220, it is judged that for the defocus amount of present frame and exhausted for the difference between the defocus amount of at least one frame before To value whether less than or equal to predetermined threshold value.
It is appreciated that in phase place focus process, should be gradually to be incremented by or gradually pass when the defocus amount that calculates is normal Subtracting, until going to zero, and gradually difference that is incremental or that gradually successively decrease should not exceed certain value, and this value is above-mentioned default threshold Value, this predetermined threshold value can be the empirical value obtained by test.
Such as, it is as a example by a frame by least one frame, occurs very with the defocus amount of previous frame in the defocus amount of present frame Defocus amount defocus of large deviation, such as previous frame is-10, and when defocus amount defocus of present frame is 10, calculates and work as Difference between defocus amount and the defocus amount of previous frame of front frame is 20.
In order to ensure accuracy and the reasonability of judged result, as a kind of example, at least one frame above-mentioned is five Frame.That is, it may be desired to the next defocus amount with present frame of defocus amount obtaining above 5 frames carries out difference comparsion.
S230, if the absolute value of difference less than or equal to predetermined threshold value, then judge the defocus amount for present frame not as Exceptional value.
S240, if the absolute value of difference is more than predetermined threshold value, then judges that the defocus amount for present frame is as exceptional value.
If it is to say, the defocus amount of present frame is little with the defocus amount difference of frame before, then can determine that present frame Defocus amount be in normal range, be not the most exceptional value;If the defocus amount difference of the defocus amount of present frame and before frame is very Greatly, then can determine that the defocus amount for present frame is exceptional value.
S130, if the defocus amount for present frame is exceptional value, then controls photosensitive according to the defocus amount for present frame Element moves, so that the defocus amount for present frame was in normal range.
It should be noted that the camera focusing method of the embodiment of the present invention can be applicable to the terminal with shoot function In, this terminal can have photographic head module to realize shooting.As a kind of example, this photographic head module module can include but not It is limited to camera lens, motor and photo-sensitive cell sensor etc..Additionally, in an embodiment of the present invention, this terminal can have microcomputer electric light Learning stabilization system MEMS OIS, wherein, this micro-electromechanical optical stabilization system MEMS OIS can be connected with photo-sensitive cell.
Specifically, in one embodiment of the invention, according to the defocus amount for present frame, microcomputer electric light can be passed through Learn stabilization system MEMS OIS Perceived control optical element and carry out planar movement.As a kind of example, when the defocus amount for present frame During for negative, proximally can be translated to far-end by MEMS OIS Perceived control optical element;When the defocus amount for present frame During for positive number, proximally can be translated from far-end by MEMS OIS Perceived control optical element.Thus, by utilizing MEMS OIS Carry out Perceived control optical element and carry out planar movement, to make up the instability of defocus value, the concussion that phase detecting section calculates.
As a kind of example, above-mentioned micro-electromechanical optical stabilization system MEMS OIS can include fixed electrode and fixed electrode The float electrode that coordinates and fixing connect this fixed electrode and float electrode can deformation connector, wherein, this fixed electrode And float electrode is for producing electrostatic force under the effect of driving voltage, this can be used for the work at this electrostatic force by deformation connector With lower along the direction deformation that float electrode moves to allow this float electrode to move thus Perceived control optical element carries out planar movement.
For example, it is assumed that when being negative for the defocus amount of present frame, represent the motor of photographic head need from far-end to Near-end moves, this time, proximally can be translated to far-end by MEMS OIS Perceived control optical element;When for present frame Defocus amount when being positive number, proximally can be translated from far-end by MEMS OIS Perceived control optical element, thus, by working as The defocus amount of front frame judges, and when judging that the defocus amount of present frame is exceptional value, according to the defocus amount control of this present frame Photo-sensitive cell processed moves, so that the defocus amount that phase detecting section detects will not be suddenlyd change, and the reverse value particularly become, Thus avoid defocus amount (defocus) concussion, unstable appearance.
Camera focusing method according to embodiments of the present invention, when detecting that use photographic head shoots, obtains phase The defocus amount for present frame that potential difference detection part detects, and judge whether the defocus amount for present frame is exceptional value, If the defocus amount for present frame is exceptional value, then move according to the defocus amount Perceived control optical element for present frame, So that the defocus amount for present frame was in normal range.I.e. during phase place is focused, can determine whether defocusing of present frame Whether amount is exceptional value, and when the defocus amount of present frame is exceptional value, controls photosensitive unit according to the defocus amount for present frame Part moves, so that the defocus amount for present frame was in normal range, i.e. by the mobile control to photo-sensitive cell, real The defocus amount that existing phase detecting section detects will not be suddenlyd change, and the defocus value preventing phase detecting section from calculating (defocuses Amount) excessively concussion, unstable etc., improve the experience of user.
Corresponding with the camera focusing method that above-mentioned several embodiments provide, a kind of embodiment of the present invention also provides for one Plant camera focusing device, the camera focusing device provided due to the embodiment of the present invention and taking the photograph that above-mentioned several embodiments provide As head focusing method is corresponding, therefore the embodiment at aforementioned camera focusing method is also applied for taking the photograph of the present embodiment offer As head focusing mechanism, it is not described in detail in the present embodiment.Fig. 3 is that camera focusing fills according to an embodiment of the invention The structural representation put.As it is shown on figure 3, this camera focusing device may include that acquisition module 310, judge module 320 and control Molding block 330.
Specifically, acquisition module 310 can be used for, when detecting that use photographic head shoots, obtaining phase difference detection portion The defocus amount for present frame that part detects.
Judge module 320 can be used for judging whether the defocus amount for present frame is exceptional value.
As a kind of example, as shown in Figure 4, this judge module 320 can include acquiring unit 321, judging unit 322 and sentence Cell 323.Wherein, acquiring unit 321 for obtain that phase difference detection parts detect at least one frame before Defocus amount.Judging unit 322 is for judging between the defocus amount for present frame and the defocus amount at least one frame before The absolute value of difference whether less than or equal to predetermined threshold value.Identifying unit 323 is less than or equal to for the absolute value in difference During predetermined threshold value, it is determined that the defocus amount for present frame is not exceptional value, and when the absolute value of difference is more than predetermined threshold value, sentence The fixed defocus amount for present frame is exceptional value.Wherein, in an embodiment of the present invention, at least one frame above-mentioned is five frames.
Control module 330 can be used for when judge module 320 judges that the defocus amount for present frame is exceptional value, according to pin The defocus amount Perceived control optical element of present frame is moved, so that the defocus amount for present frame was in normal range.Tool For body, in one embodiment of the invention, control module 330 can be according to the defocus amount for present frame, by micro electronmechanical Optical anti-vibration system MEMS OIS Perceived control optical element carries out planar movement.
As a kind of example, as it is shown in figure 5, this control module 330 can include that the first control unit 331 and second controls Unit 332.Wherein, the first control unit 331, for when the defocus amount for present frame is negative, is controlled by MEMS OIS Photo-sensitive cell proximally translates to far-end.Second control unit 332 is used for when the defocus amount for present frame is positive number, Proximally translated from far-end by MEMS OIS Perceived control optical element.
By acquisition module, camera focusing device according to embodiments of the present invention, can detect that use photographic head is carried out During shooting, obtain the defocus amount for present frame that phase difference detection parts detect, it is judged that module judges for present frame Whether defocus amount is exceptional value, if the defocus amount for present frame is exceptional value, control module is then according to for present frame Defocus amount Perceived control optical element moves, so that the defocus amount for present frame was in normal range.I.e. focus in phase place During, can determine whether whether the defocus amount of present frame is exceptional value, and when the defocus amount of present frame is exceptional value, according to pin The defocus amount Perceived control optical element of present frame is moved, so that the defocus amount for present frame is in normal range, i.e. By the mobile control to photo-sensitive cell, it is achieved the defocus amount that phase detecting section detects will not be suddenlyd change, and prevents phase-detection The defocus value (defocus amount) that parts calculate excessively shakes, unstable etc., improve the experience of user.
In order to realize above-described embodiment, the invention allows for a kind of terminal, including: any of the above-described embodiment of the present invention Described camera focusing device.
In order to realize above-described embodiment, the invention allows for another kind of terminal.
Fig. 6 is the structural representation of terminal according to an embodiment of the invention.As shown in Figure 6, this terminal may include that Housing 61;Processor 62;Memorizer 63;Circuit board 64 and power circuit 65;Wherein, described circuit board 64 is placed in described housing 61 interior volume surrounded, described processor 62 and described memorizer 63 are arranged on described circuit board 64;Described power circuit 65, power for each circuit or the device for described terminal;Described memorizer 63 is used for storing executable program code;Described Processor 62 runs corresponding with executable program code by reading the executable program code of storage in described memorizer 63 Program, for execution:
S110 ', detect use photographic head shoot time, obtain phase difference detection parts detect for currently The defocus amount of frame.
S120 ', it is judged that whether the defocus amount for present frame is exceptional value.
S130 ', if the defocus amount for present frame is exceptional value, then controls photosensitive according to the defocus amount for present frame Element moves, so that the defocus amount for present frame was in normal range.
Terminal according to embodiments of the present invention, when detecting that use photographic head shoots, obtains phase difference detection portion The defocus amount for present frame that part detects, and judge whether the defocus amount for present frame is exceptional value, if for working as The defocus amount of front frame is exceptional value, then move according to the defocus amount Perceived control optical element for present frame, so that for working as The defocus amount of front frame was in normal range.I.e. during phase place is focused, can determine whether whether the defocus amount of present frame is different Constant value, and when the defocus amount of present frame is exceptional value, move according to the defocus amount Perceived control optical element for present frame, So that the defocus amount for present frame was in normal range, i.e. by the mobile control to photo-sensitive cell, it is achieved phase-detection The defocus amount that parts detect will not be suddenlyd change, the defocus value (defocus amount) preventing phase detecting section from calculating excessively shakes, Unstable etc., improve the experience of user.
In describing the invention, it is to be understood that term " first ", " second " are only used for describing purpose, and can not It is interpreted as instruction or hint relative importance or the implicit quantity indicating indicated technical characteristic.Thus, define " the One ", the feature of " second " can express or implicitly include at least one this feature.In describing the invention, " multiple " It is meant that at least two, such as two, three etc., unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, term " install ", " being connected ", " connection ", " fixing " etc. Term should be interpreted broadly, and connects for example, it may be fixing, it is also possible to be to removably connect, or integral;Can be that machinery connects Connect, it is also possible to be electrical connection;Can be to be joined directly together, it is also possible to be indirectly connected to by intermediary, in can being two elements The connection in portion or the interaction relationship of two elements, unless otherwise clear and definite restriction.For those of ordinary skill in the art For, above-mentioned term concrete meaning in the present invention can be understood as the case may be.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " specifically show Example " or the description of " some examples " etc. means to combine this embodiment or example describes specific features, structure, material or spy 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 Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be in office One or more embodiments or example combine in an appropriate manner.Additionally, in the case of the most conflicting, the skill of this area The feature of the different embodiments described in this specification or example and different embodiment or example can be tied by art personnel Close and combination.
In flow chart or at this, any process described otherwise above or method description are construed as, and expression includes One or more is for realizing the module of code, fragment or the portion of the executable instruction of the step of specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not by shown or discuss suitable Sequence, including according to involved function by basic mode simultaneously or in the opposite order, performs function, and this should be by the present invention Embodiment person of ordinary skill in the field understood.
Represent in flow charts or the logic described otherwise above at this and/or step, for example, it is possible to be considered as to use In the sequencing list of the executable instruction realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (system such as computer based system, including processor or other can hold from instruction Row system, device or equipment instruction fetch also perform the system instructed) use, or combine these instruction execution systems, device or set Standby and use.For the purpose of this specification, " computer-readable medium " can be any can to comprise, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or combines these instruction execution systems, device or equipment and the dress that uses Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following: have the electricity of one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read only memory (ROM), erasable read only memory (EPROM or flash memory), the fiber device edited, and portable optic disk is read-only deposits Reservoir (CDROM).It addition, computer-readable medium can even is that and can print the paper of described program thereon or other are suitable Medium, because then can carry out editing, interpreting or if desired with it such as by paper or other media are carried out optical scanning His suitable method is processed to electronically obtain described program, is then stored in computer storage.
Should be appreciated that each several part of the present invention can realize by hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method in memory and can be performed by suitable instruction execution system with storage Or firmware realizes.Such as, if realized with hardware, with the most the same, available well known in the art under Any one or their combination in row technology realize: have the logic gates for data signal realizes logic function Discrete logic, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), on-the-spot Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that and realize all or part of step that above-described embodiment method is carried Suddenly the program that can be by completes to instruct relevant hardware, 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, each functional unit in each embodiment of the present invention can be integrated in a processing module, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a module.Above-mentioned integrated mould Block both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.Described integrated module is such as When fruit is using the form realization of software function module and as independent production marketing or use, 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..Although having shown that above and retouching Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, above-described embodiment can be changed, revise, replace and become by those of ordinary skill in the art within the scope of the invention Type.

Claims (11)

1. a camera focusing method, it is characterised in that comprise the following steps:
When detecting that use photographic head shoots, obtain the defocusing for present frame that phase difference detection parts detect Amount;
Judge whether the described defocus amount for present frame is exceptional value;
If the described defocus amount for present frame is exceptional value, then control photosensitive unit according to the described defocus amount for present frame Part moves, so that the described defocus amount for present frame was in normal range.
2. camera focusing method as claimed in claim 1, it is characterised in that defocusing for present frame described in described judgement Whether amount is exceptional value, including:
Obtain the defocus amount at least one frame before that described phase difference detection parts detect;
Judge the described defocus amount for present frame and described exhausted for the difference between the defocus amount of at least one frame before To value whether less than or equal to predetermined threshold value;
If the absolute value of described difference is less than or equal to described predetermined threshold value, then judge the described defocus amount for present frame not For described exceptional value;
If the absolute value of described difference more than predetermined threshold value, then judges described in for the defocus amount of present frame as described exception Value.
3. camera focusing method as claimed in claim 2, it is characterised in that wherein, at least one frame described is five frames.
4. camera focusing method as claimed in claim 1, it is characterised in that defocusing for present frame described in described basis Amount Perceived control optical element moves, including:
According to the described defocus amount for present frame, carried out by micro-electromechanical optical stabilization system MEMS OIS Perceived control optical element Planar movement.
5. camera focusing method as claimed in claim 4, it is characterised in that defocusing for present frame described in described basis Amount, is moved by micro-electromechanical optical stabilization system MEMS OIS Perceived control optical element, including:
When the described defocus amount for present frame is negative, by described MEMS OIS control described photo-sensitive cell proximally to Far-end translates;
When the described defocus amount for present frame is positive number, by described MEMS OIS control described photo-sensitive cell from far-end to Near-end translates.
6. a camera focusing device, it is characterised in that including:
Acquisition module, for detect use photographic head shoot time, obtain phase difference detection parts detect for The defocus amount of present frame;
Whether judge module, be exceptional value for judging the described defocus amount for present frame;
Control module, for when described judge module judges that the described defocus amount for present frame is exceptional value, according to described Defocus amount Perceived control optical element for present frame moves, so that the described defocus amount for present frame is in normal range In.
7. camera focusing device as claimed in claim 6, it is characterised in that described judge module includes:
Acquiring unit, for obtaining the defocus amount at least one frame before that described phase difference detection parts detect;
Judging unit, for judge described defocus amount and the described defocus amount at least one frame before for present frame it Between the absolute value of difference whether less than or equal to predetermined threshold value;
Identifying unit, for when the absolute value of described difference is less than or equal to described predetermined threshold value, it is determined that described for currently The defocus amount of frame is not described exceptional value, and when the absolute value of described difference is more than predetermined threshold value, it is determined that described for currently The defocus amount of frame is described exceptional value.
8. camera focusing device as claimed in claim 7, it is characterised in that wherein, at least one frame described is five frames.
9. camera focusing device as claimed in claim 6, it is characterised in that described control module specifically for:
According to the described defocus amount for present frame, carried out by micro-electromechanical optical stabilization system MEMS OIS Perceived control optical element Planar movement.
10. camera focusing device as claimed in claim 9, it is characterised in that described control module includes:
First control unit, for when the described defocus amount for present frame is negative, controls institute by described MEMS OIS State photo-sensitive cell proximally to translate to far-end;
Second control unit, for when the described defocus amount for present frame is positive number, controls institute by described MEMS OIS State photo-sensitive cell proximally to translate from far-end.
11. 1 kinds of terminals, it is characterised in that including: the camera focusing device as according to any one of claim 6 to 10.
CN201610615667.1A 2016-07-29 2016-07-29 camera focusing method, device and terminal Expired - Fee Related CN106101554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610615667.1A CN106101554B (en) 2016-07-29 2016-07-29 camera focusing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610615667.1A CN106101554B (en) 2016-07-29 2016-07-29 camera focusing method, device and terminal

Publications (2)

Publication Number Publication Date
CN106101554A true CN106101554A (en) 2016-11-09
CN106101554B CN106101554B (en) 2017-08-08

Family

ID=57479898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610615667.1A Expired - Fee Related CN106101554B (en) 2016-07-29 2016-07-29 camera focusing method, device and terminal

Country Status (1)

Country Link
CN (1) CN106101554B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556247A (en) * 2020-05-07 2020-08-18 展讯通信(上海)有限公司 DCC acquisition method, DCC focusing method and system, camera module and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08146286A (en) * 1994-11-18 1996-06-07 Nikon Corp Automatic focusing camera
CN101193209A (en) * 2006-11-28 2008-06-04 索尼株式会社 Imaging device
US7822333B2 (en) * 2006-03-01 2010-10-26 Nikon Corporation Focus adjustment device, imaging device and focus adjustment method
CN101950063A (en) * 2009-07-10 2011-01-19 佛山普立华科技有限公司 Automatic focusing system and automatic focusing method
CN104813213A (en) * 2012-11-22 2015-07-29 富士胶片株式会社 Image-capturing device, and focusing method and focusing control program for said device
CN105007420A (en) * 2015-07-14 2015-10-28 广东欧珀移动通信有限公司 Focusing method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08146286A (en) * 1994-11-18 1996-06-07 Nikon Corp Automatic focusing camera
US7822333B2 (en) * 2006-03-01 2010-10-26 Nikon Corporation Focus adjustment device, imaging device and focus adjustment method
CN101193209A (en) * 2006-11-28 2008-06-04 索尼株式会社 Imaging device
CN101950063A (en) * 2009-07-10 2011-01-19 佛山普立华科技有限公司 Automatic focusing system and automatic focusing method
CN104813213A (en) * 2012-11-22 2015-07-29 富士胶片株式会社 Image-capturing device, and focusing method and focusing control program for said device
CN105007420A (en) * 2015-07-14 2015-10-28 广东欧珀移动通信有限公司 Focusing method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹操: "让拍照不再虚 浅谈智能手机的光学防抖", 《电脑爱好者》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556247A (en) * 2020-05-07 2020-08-18 展讯通信(上海)有限公司 DCC acquisition method, DCC focusing method and system, camera module and terminal
CN111556247B (en) * 2020-05-07 2021-08-06 展讯通信(上海)有限公司 DCC acquisition method, DCC focusing method and system, camera module and terminal

Also Published As

Publication number Publication date
CN106101554B (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN106060423A (en) Bokeh photograph generation method and device, and mobile terminal
CN101674411B (en) Image capturing apparatus, method of determining presence or absence of image area, and recording medium
CN105593737A (en) Focal point detection device and focal point detection method
CN101578853A (en) Imaging apparatus and electronic device
CN105554403A (en) Control method, control device and electronic device
CN106170064A (en) Camera focusing method, system and electronic equipment
CN106254772A (en) Multiple image synthetic method and device
CN102598650A (en) Image capturing device, adjusting device, and optical axis adjusting system for image capturing device
CN106713750A (en) Focusing control method and apparatus, electronic device and terminal equipment
CN105763798A (en) Control method, control apparatus and electronic apparatus
CN103837828A (en) Travel curve test method and system of camera-shooting mode motor and mobile terminal
CN100538494C (en) The method of the correcting camera shake of image picking-up apparatus and this image picking-up apparatus
CN106210527A (en) The PDAF calibration steps moved based on MEMS and device
CN105739706A (en) Control method, control device and electronic device
CN110290299A (en) Imaging method, device, storage medium and electronic equipment
CN101132485A (en) Imaging apparatus and imaging method
CN106412435A (en) Focusing method and apparatus, and mobile terminal
CN105681668B (en) Control method, control device and electronic device
CN106101554A (en) camera focusing method, device and terminal
US20160182812A1 (en) Imaging apparatus, and control method thereof
CN105872378A (en) Control method, control device and electronic device
CN106101506A (en) Camera control method and device
CN104038689B (en) Image processing apparatus and image processing method
CN105657274A (en) Control method, control device and electronic device
CN106657758A (en) Photographing method, photographing device and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170808