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

camera focusing method, device and terminal Download PDF

Info

Publication number
CN106101554B
CN106101554B CN201610615667.1A CN201610615667A CN106101554B CN 106101554 B CN106101554 B CN 106101554B CN 201610615667 A CN201610615667 A CN 201610615667A CN 106101554 B CN106101554 B CN 106101554B
Authority
CN
China
Prior art keywords
defocus amount
present frame
frame
photo
sensitive cell
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.)
Expired - Fee Related
Application number
CN201610615667.1A
Other languages
Chinese (zh)
Other versions
CN106101554A (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)
  • Automatic Focus Adjustment (AREA)
  • Focusing (AREA)

Abstract

The invention discloses a kind of camera focusing method, device and terminal.Wherein method includes:Detect shot using camera when, obtain the defocus amount for present frame that detects of phase difference detection part;Whether the defocus amount for judging to be directed to present frame is exceptional value;If the defocus amount for present frame is exceptional value, moved according to the defocus amount control photo-sensitive cell for present frame, so that the defocus amount for present frame is in normal range (NR).Realize by the mobile control to photo-sensitive cell so that the defocus amount that phase detecting section is detected will not be mutated, prevent the defocus values (defocus amount) that phase detecting section is calculated from excessively shaking, unstable etc., improve the usage experience of user.

Description

Camera focusing method, device and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of camera focusing method, device and terminal.
Background technology
User using intelligent terminal during being shot, it is often necessary to is focused.Focused by intelligent terminal System changes object distance and position apart, so that the process of subject imaging cleaning is exactly to focus.At present, focusing technology There are many kinds, such as phase focuses technology, contrast focusing technology and laser focusing technology.Wherein, phase focusing technology because Its speed of focusing is fast and is favored by increasing user.
In phase focusing technology, phase difference detection part is 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 respectively afterwards The view data waveform of shape and the second image, when the 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, therefore, and intelligent terminal be able to can be drawn according to the phase difference of two view data waveforms Focusing position.
However, at present because the pixel (i.e. phase PD pixel) of phase difference detection part can be by noise, extraneous light The various factor influence such as unstable, defocus values (defocus amount) concussion for causing phase difference detection part to calculate is severe, leads Motor is caused also to shake back and forth, so as to cause the obvious shake of picture.Therefore, how noise, extraneous light it is unstable etc. because Prevent defocus values (defocus amount) that phase difference detection part is calculated from excessively shaking to be one and urgently to be resolved hurrily ask in the case of element Topic.
The content of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technical problem to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of camera focusing method.This method passes through to photosensitive member The mobile control of part, realizing the defocus amount that phase detecting section detects will not be mutated, and prevent phase detecting section from calculating Defocus values (defocus amount) excessively shake, it is unstable etc., improve the usage 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 terminal.
For up to above-mentioned purpose, the camera focusing method of first aspect present invention embodiment, including:Taken the photograph detecting to use When being shot as head, the defocus amount for present frame that phase difference detection part is detected is obtained;Judge described for current Whether the defocus amount of frame is exceptional value;If the defocus amount for present frame is exceptional value, according to described for current The defocus amount control photo-sensitive cell of frame is moved, so that the defocus amount for present frame is in normal range (NR).
Camera focusing method according to embodiments of the present invention, detect shot using camera when, obtain phase The defocus amount for present frame that potential difference detection part is detected, and whether the defocus amount for judging to be directed to present frame is exceptional value, If the defocus amount for present frame is exceptional value, moved according to the defocus amount control photo-sensitive cell for present frame, So that the defocus amount for present frame is in normal range (NR).I.e. during phase is focused, defocusing for present frame can determine whether Whether amount is exceptional value, and when the defocus amount of present frame is exceptional value, photosensitive member is controlled according to the defocus amount for present frame Part is moved, so that the defocus amount for present frame is in normal range (NR), i.e., it is real by the mobile control to photo-sensitive cell The defocus amount that existing phase detecting section is detected will not be mutated, and prevent the defocus values that phase detecting section is calculated from (defocusing Amount) excessively concussion, unstable etc., improve the usage experience of user.
According to one embodiment of present invention, whether the defocus amount described in the judgement for present frame is exceptional value, bag Include:Obtain the defocus amount of at least one frame for before that the phase difference detection part is detected;Judge described for current It is pre- whether the absolute value of the difference between the defocus amount of frame and the defocus amount of at least one frame for before is less than or equal to If threshold value;If the absolute value of the difference is less than or equal to the predetermined threshold value, the defocusing for present frame is judged Amount is not the exceptional value;If the absolute value of the difference is more than predetermined threshold value, the defocusing for present frame is judged Measure as the exceptional value.
According to one embodiment of present invention, at least one described frame is five frames.
According to one embodiment of present invention, the defocus amount control photo-sensitive cell described in the basis for present frame is carried out It is mobile, including:According to the defocus amount for present frame, photosensitive member is controlled by micro-electromechanical optical stabilization system MEMS OIS Part carries out planar movement.
According to one embodiment of present invention, the defocus amount of present frame is directed to described in the basis, passes through micro-electromechanical optical Stabilization system MEMS OIS control photo-sensitive cells are moved, including:When the defocus amount for present frame is negative, lead to Crossing the MEMS OIS controls the photo-sensitive cell proximally to be translated to distal end;When the defocus amount for present frame is During positive number, the photo-sensitive cell is controlled proximally to be translated from distal end by the MEMS OIS.
For up to above-mentioned purpose, the camera focusing device of second aspect of the present invention embodiment, including:Acquisition module, is used for Detect shot using camera when, obtain the defocus amount for present frame that detects of phase difference detection part;Sentence Disconnected module, for judging whether the defocus amount for present frame is exceptional value;Control module, in the judge module When judging the defocus amount for present frame as exceptional value, entered according to the defocus amount control photo-sensitive cell for present frame Row movement, so that the defocus amount for present frame is in normal range (NR).
Camera focusing device according to embodiments of the present invention, can be carried out detecting by acquisition module using camera During shooting, the defocus amount for present frame that phase difference detection part is detected is obtained, judge module is judged 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 control photo-sensitive cell is moved, so that the defocus amount for present frame is in normal range (NR).Focused in phase During, whether the defocus amount that can determine whether present frame is exceptional value, and when the defocus amount of present frame is exceptional value, according to pin The defocus amount control photo-sensitive cell of present frame is moved, so that the defocus amount for present frame is in normal range (NR), i.e., By the mobile control to photo-sensitive cell, realize that the defocus amount that phase detecting section is detected will not be mutated, prevent phase-detection The defocus values (defocus amount) that part is calculated excessively shake, unstable etc., improve the usage experience of user.
According to one embodiment of present invention, the judge module includes:Acquiring unit, for obtaining the phase difference inspection Survey the defocus amount of at least one frame for before that part is detected;Judging unit, for judging the dissipating for present frame Whether the absolute value of the difference between Jiao's amount and the defocus amount of at least one frame for before is less than or equal to predetermined threshold value; Identifying unit, for when the absolute value of the difference is less than or equal to the predetermined threshold value, for present frame described in judgement Defocus amount is not the exceptional value, and when the absolute value of the difference is more than predetermined threshold value, for present frame described in judgement Defocus amount is the exceptional value.
According to one embodiment of present invention, at least one described frame is five frames.
According to one embodiment of present invention, the control module specifically for:According to the defocusing for present frame Amount, controls photo-sensitive cell to carry out planar movement by micro-electromechanical optical stabilization system MEMS OIS.
According to one embodiment of present invention, the control module includes:First control unit, for working as in described be directed to When the defocus amount of previous frame is negative, the photo-sensitive cell is controlled proximally to be translated to distal end by the MEMS OIS;The Two control units, for when the defocus amount for present frame is positive number, being controlled by the MEMS OIS described photosensitive Element is proximally translated from distal end.
For up to above-mentioned purpose, the terminal of third aspect present invention embodiment, including:Second aspect of the present invention embodiment is taken the photograph As head focusing mechanism.
Terminal according to embodiments of the present invention, can detected using taking the photograph by the acquisition module in camera focusing device When being shot as head, the defocus amount for present frame that phase difference detection part is detected is obtained, judge module judges to be directed to Whether the defocus amount of present frame is exceptional value, if the defocus amount for present frame is exceptional value, then basis is directed to control module The defocus amount control photo-sensitive cell of present frame is moved, so that the defocus amount for present frame is in normal range (NR).Exist During phase is focused, whether the defocus amount that can determine whether present frame is exceptional value, and is exceptional value in the defocus amount of present frame When, moved according to the defocus amount control photo-sensitive cell 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, realize that the defocus amount that phase detecting section is detected will not be mutated, prevent The defocus values (defocus amount) that phase detecting section is calculated excessively shake, unstable etc., improve the usage experience of user.
For up to above-mentioned purpose, the terminal of fourth aspect present invention embodiment, including:Housing;Processor;Memory;Circuit Plate and power circuit;Wherein, the circuit board is placed in the interior volume that the housing is surrounded, the processor and the storage Device is arranged on the circuit board;The power circuit, for being powered for each circuit or device of the terminal;The storage Device is used to store executable program code;The processor by read the executable program code stored in the memory come Operation program corresponding with executable program code, for performing:Detect shot using camera when, obtain phase The defocus amount for present frame that potential difference detection part is detected;Whether judge the defocus amount for present frame is abnormal Value;If the defocus amount for present frame is exceptional value, photosensitive member is controlled according to the defocus amount for present frame Part is moved, so that the defocus amount for present frame is in normal range (NR).
Terminal according to embodiments of the present invention, detect shot using camera when, obtain phase difference detecting unit The defocus amount for present frame that part is detected, and whether the defocus amount for judging to be directed to present frame is exceptional value, if for working as The defocus amount of previous frame is exceptional value, then is moved according to the defocus amount control photo-sensitive cell for present frame, so that for working as The defocus amount of previous frame is in normal range (NR).I.e. during phase is focused, whether the defocus amount that can determine whether present frame is different Constant value, and when the defocus amount of present frame is exceptional value, moved according to the defocus amount control photo-sensitive cell for present frame, So that the defocus amount for present frame is in normal range (NR), i.e., by the mobile control to photo-sensitive cell, realize phase-detection The defocus amount that part is detected will not be mutated, prevent the defocus values (defocus amount) that phase detecting section is calculated from excessively shaking, It is unstable etc., improve the usage experience of user.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
Fig. 1 is the flow chart of camera focusing method according to an embodiment of the invention;
Fig. 2 be it is according to an embodiment of the invention judge for present frame defocus amount whether be exceptional value flow 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 a specific embodiment of the invention;
Fig. 5 is the structural representation of the camera focusing device according to another specific embodiment of the invention;
Fig. 6 is the structural representation of terminal according to an embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
Below with reference to the accompanying drawings the camera focusing method, device and terminal of the embodiment of the present invention described.
Fig. 1 is the flow chart of camera focusing method according to an embodiment of the invention.It should be noted that of the invention The camera focusing method of embodiment can be applied to camera focusing device, and the camera focusing device can be configured in terminal In.Wherein, the terminal can have shoot function, for example, the terminal can be smart mobile phone, tablet personal computer, personal digital assistant Deng the hardware device with various operating systems, intelligent digital camera etc. can also be.
As shown in figure 1, the camera focusing method can include:
S110, detect shot using camera when, obtain that phase difference detection part detects for current The defocus amount of frame.
For example, it is assumed that the camera focusing method of the embodiment of the present invention can be applied to terminal, the terminal can be user The camera application program with shoot function is provided, user can start the shooting work(of terminal by clicking on the camera application program Can, when detecting user and being shot using camera, what the phase difference detection part in acquisition camera was detected For the defocus amount (defocus values) of present frame.
Wherein, phase difference detection part detection for present frame defocus amount (defocus values) mode have a lot, as A kind of phase difference detection part in example, camera module is made up of in pairs left and right pixel, can be obtained by left pixel First image, the second image can be obtained by right pixel, can generate the view data waveform and of the first image respectively afterwards The view data waveform of two images, finally, phase difference detection part calculate the view data waveform and the second image of the first image View data waveform between phase difference (i.e. above-mentioned defocus amount).It is appreciated that the defocus amount of the above-mentioned present frame shown Detection mode be only a kind of example, can also have other modes, will not be repeated here.
S120, whether the defocus amount for judging to be directed to present frame is exceptional value.
It is appreciated that each frame of phase focusing technology is required for calculating Defocus (defocusing) value (i.e. phase difference), and Due to the pixel PIXEL of phase detecting section, by hot-tempered sound, LENS SHADING, (wherein, LENS optical characteristics are exactly at present Center is bright, surrounding is dark, here it is so-called relative illumination RI, caused phenomenon is just SHADING) etc. influence, phase can be caused Evil is gone through in the defocus value concussions that detection part is calculated, and causes motor also to shake back and forth, so as to cause the shake of picture bright It is aobvious.
Therefore, in order to solve to be influenceed and cause the defocus values that calculate by factors such as external environment conditions during phase focusing Concussion, it is unstable the problem of, the camera focusing method of the embodiment of the present invention can obtain what phase difference detection part be detected Whether after the defocus amount of present frame, it is exceptional value for the defocus amount of present frame that can first judge this, if so, after then carrying out Continuous step S130;If it is not, then continuing through the defocus amount that phase difference detection part calculates next frame.
As a kind of example, as shown in Fig. 2 whether the judgement is implementing for exceptional value for the defocus amount of present frame Process may include following steps:
S210, obtains the defocus amount of at least one frame for before that phase difference detection part is detected.
It is appreciated that when phase difference detection part detects the defocus amount for present frame, all can be by the present frame Defocus amount record, at least one frame before obtaining that phase difference detection part detects to be recorded subsequently through this Defocus amount.
S220, judges for the defocus amount of present frame and for the exhausted of the difference between the defocus amount of at least one frame before Whether predetermined threshold value is less than or equal to value.
It is appreciated that should gradually be incremented by or gradually pass in phase focus process, when the defocus amount calculated is normal Subtract, until go to zero, and the difference for being gradually incremented by or gradually successively decreasing should not exceed certain value, the value is above-mentioned default threshold Value, the predetermined threshold value can be by empirical value obtained from experiment.
For example, so that at least one frame is a frame as an example, occurring very in the defocus amount of present frame and the defocus amount of previous frame The defocus amount defocus of large deviation, such as previous frame be -10, and the defocus amount defocus of present frame be 10 when, calculate work as Difference between the defocus amount of previous frame and the defocus amount of previous frame is 20.
In order to ensure the accuracy and reasonability of judged result, as a kind of example, at least one above-mentioned frame is five Frame.That is, it may be desired to which the defocus amount for obtaining above 5 frames to carry out difference comparsion with the defocus amount of present frame.
S230, if the absolute value of difference be less than or equal to predetermined threshold value, judges be directed to present frame defocus amount not as Exceptional value.
S240, if the absolute value of difference is more than predetermined threshold value, judges the defocus amount for present frame as exceptional value.
If that is, the defocus amount difference of the defocus amount of present frame previous frame therewith is little, then can determine that present frame Defocus amount be in normal range (NR) in, i.e., be exceptional value;If the defocus amount of present frame therewith previous frame defocus amount difference very Greatly, then the defocus amount that can determine that for present frame is exceptional value.
S130, it is photosensitive according to the defocus amount control for present frame if the defocus amount for present frame is exceptional value Element is moved, so that the defocus amount for present frame is in normal range (NR).
It should be noted that the camera focusing method of the embodiment of the present invention can be applied to the terminal with shoot function In, the terminal can have camera module to realize shooting.As a kind of example, camera module module may include but not It is limited to camera lens, motor and photo-sensitive cell sensor etc..In addition, in an embodiment of the present invention, the terminal can have microcomputer electric light Stabilization system MEMS OIS are learned, wherein, 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 control photo-sensitive cells and carry out planar movement.As a kind of example, when for the defocus amount of present frame During for negative, photo-sensitive cell can be controlled proximally to be translated to distal end by MEMS OIS;When for the defocus amount of present frame During for positive number, by MEMS OIS photo-sensitive cell can be controlled proximally to be translated from distal end.Thus, by using MEMS OIS To control photo-sensitive cell to carry out planar movement, to make up unstable, the concussion of the defocus values that phase detecting section is calculated.
As a kind of example, above-mentioned micro-electromechanical optical stabilization system MEMS OIS may include fixed electrode and fixed electrode The float electrode of cooperation and be fixedly connected the fixed electrode and float electrode can deformation connector, wherein, the fixed electrode And float electrode be used for electrostatic force is produced in the presence of driving voltage, this can deformation connector can be used for the electrostatic force work With the lower direction deformation moved along float electrode to allow the float electrode to move so as to controlling photo-sensitive cell to carry out planar movement.
For example, it is assumed that for present frame defocus amount be negative when, represent camera motor need from distal end to Near-end is moved, this when, photo-sensitive cell can be controlled proximally to be translated to distal end by MEMS OIS;When for present frame Defocus amount be positive number when, can by MEMS OIS control photo-sensitive cell from distal end proximally be translated, thus, by ought The defocus amount of previous frame judged, and when judging the defocus amount of present frame for exceptional value, according to the defocus amount control of the present frame Photo-sensitive cell processed is moved, so that the defocus amount that phase detecting section is detected will not be mutated, the reverse value particularly become, So as to avoid defocus amount (defocus) concussion, unstable appearance.
Camera focusing method according to embodiments of the present invention, detect shot using camera when, obtain phase The defocus amount for present frame that potential difference detection part is detected, and whether the defocus amount for judging to be directed to present frame is exceptional value, If the defocus amount for present frame is exceptional value, moved according to the defocus amount control photo-sensitive cell for present frame, So that the defocus amount for present frame is in normal range (NR).I.e. during phase is focused, defocusing for present frame can determine whether Whether amount is exceptional value, and when the defocus amount of present frame is exceptional value, photosensitive member is controlled according to the defocus amount for present frame Part is moved, so that the defocus amount for present frame is in normal range (NR), i.e., it is real by the mobile control to photo-sensitive cell The defocus amount that existing phase detecting section is detected will not be mutated, and prevent the defocus values that phase detecting section is calculated from (defocusing Amount) excessively concussion, unstable etc., improve the usage experience of user.
Corresponding with the camera focusing method that above-mentioned several embodiments are provided, a kind of embodiment of the invention also provides one Kind of camera focusing device, due to taking the photograph for camera focusing device provided in an embodiment of the present invention and above-mentioned several embodiments offers Picture head focusing method is corresponding, therefore is also applied for taking the photograph for the present embodiment offer in the embodiment of foregoing camera focusing method As head focusing mechanism, it is not described in detail in the present embodiment.Fig. 3 is camera focusing dress according to an embodiment of the invention The structural representation put.As shown in figure 3, the camera focusing device can include:Acquisition module 310, judge module 320 and control Molding block 330.
Specifically, acquisition module 310 can be used for detect shot using camera when, acquisition phase difference detecting unit The defocus amount for present frame that part is detected.
Judge module 320 can be used for whether the defocus amount for judging to be directed to present frame is exceptional value.
As a kind of example, as shown in figure 4, the judge module 320 may include acquiring unit 321, judging unit 322 and sentence Order member 323.Wherein, acquiring unit 321 is used to obtaining phase difference detection part detects for before at least one frame Defocus amount.Judging unit 322 is used to judge for the defocus amount of present frame and between the defocus amount of at least one frame before Difference absolute value whether be less than or equal to predetermined threshold value.Identifying unit 323 is used to be less than or equal in the absolute value of difference During predetermined threshold value, the defocus amount for present frame is judged not as exceptional value, and when the absolute value of difference is more than predetermined threshold value, is sentenced Surely the defocus amount for being directed to present frame is exceptional value.Wherein, in an embodiment of the present invention, at least one above-mentioned frame is five frames.
Control module 330 can be used for when judge module 320 judges to be directed to the defocus amount of present frame as exceptional value, according to pin The defocus amount control photo-sensitive cell of present frame is moved, so that the defocus amount for present frame is in normal range (NR).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 control photo-sensitive cells carry out planar movement.
As a kind of example, as shown in figure 5, the control module 330 can include the first control unit 331 and the second control Unit 332.Wherein, the first control unit 331 is used to, when the defocus amount for present frame is negative, control by MEMS OIS Photo-sensitive cell is proximally translated to distal end.Second control unit 332 is used for when the defocus amount for present frame is positive number, Photo-sensitive cell is controlled proximally to be translated from distal end by MEMS OIS.
Camera focusing device according to embodiments of the present invention, can be carried out detecting by acquisition module using camera During shooting, the defocus amount for present frame that phase difference detection part is detected is obtained, judge module is judged 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 control photo-sensitive cell is moved, so that the defocus amount for present frame is in normal range (NR).Focused in phase During, whether the defocus amount that can determine whether present frame is exceptional value, and when the defocus amount of present frame is exceptional value, according to pin The defocus amount control photo-sensitive cell of present frame is moved, so that the defocus amount for present frame is in normal range (NR), i.e., By the mobile control to photo-sensitive cell, realize that the defocus amount that phase detecting section is detected will not be mutated, prevent phase-detection The defocus values (defocus amount) that part is calculated excessively shake, unstable etc., improve the usage experience of user.
In order to realize above-described embodiment, the invention also provides a kind of terminal, including:Any of the above-described embodiment of the invention Described camera focusing device.
In order to realize above-described embodiment, the invention also provides another terminal.
Fig. 6 is the structural representation of terminal according to an embodiment of the invention.As shown in fig. 6, the terminal can include: Housing 61;Processor 62;Memory 63;Circuit board 64 and power circuit 65;Wherein, the circuit board 64 is placed in the housing 61 interior volumes surrounded, the processor 62 and the memory 63 are arranged on the circuit board 64;The power circuit 65, for being powered for each circuit or device of the terminal;The memory 63 is used to store executable program code;It is described Processor 62 is corresponding with executable program code to run by reading the executable program code stored in the memory 63 Program, for perform:
S110 ', detect shot using camera when, obtain that phase difference detection part detects for current The defocus amount of frame.
S120 ', whether the defocus amount for judging to be directed to present frame is exceptional value.
S130 ', it is photosensitive according to the defocus amount control for present frame if the defocus amount for present frame is exceptional value Element is moved, so that the defocus amount for present frame is in normal range (NR).
Terminal according to embodiments of the present invention, detect shot using camera when, obtain phase difference detecting unit The defocus amount for present frame that part is detected, and whether the defocus amount for judging to be directed to present frame is exceptional value, if for working as The defocus amount of previous frame is exceptional value, then is moved according to the defocus amount control photo-sensitive cell for present frame, so that for working as The defocus amount of previous frame is in normal range (NR).I.e. during phase is focused, whether the defocus amount that can determine whether present frame is different Constant value, and when the defocus amount of present frame is exceptional value, moved according to the defocus amount control photo-sensitive cell for present frame, So that the defocus amount for present frame is in normal range (NR), i.e., by the mobile control to photo-sensitive cell, realize phase-detection The defocus amount that part is detected will not be mutated, prevent the defocus values (defocus amount) that phase detecting section is calculated from excessively shaking, It is unstable etc., improve the usage experience of user.
In the description of the invention, it is to be understood that term " first ", " second " are only used for describing purpose, and can not It is interpreted as indicating or implies relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, define " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the invention, " multiple " It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection ", " fixation " etc. Term should be interpreted broadly, for example, it may be fixedly connected or be detachably connected, or integrally;Can be that machinery connects Connect or electrically connect;Can be joined directly together, can also be indirectly connected to by intermediary, can be in two elements The connection in portion or the interaction relationship of two elements, unless otherwise clear and definite restriction.For one of ordinary skill in the art For, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the not be the same as Example or the feature of example and non-be the same as Example or example described in this specification Close and combine.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, fragment or the portion of the code of one or more executable instructions for the step of realizing specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use In the order list for the executable instruction for realizing logic function, it may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress for combining these instruction execution systems, device or equipment and using Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wirings Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, can even is that can be in the paper of printing described program thereon or other are suitable for computer-readable medium Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
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 in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, the application specific integrated circuit with 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 of step that above-described embodiment method is carried Rapid to can be by program to instruct the hardware of correlation to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and retouching above 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, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (9)

1. a kind of camera focusing method, it is characterised in that comprise the following steps:
Detect shot using camera when, obtain that phase difference detection part detects defocusing for present frame Amount;
Judge whether the defocus amount for present frame is exceptional value;
If the defocus amount for present frame is exceptional value, photosensitive member is controlled according to the defocus amount for present frame Part is moved, so that the defocus amount for present frame is in normal range (NR);
Wherein, whether the defocus amount described in the judgement for present frame is exceptional value, including:
Obtain the defocus amount of at least one frame for before that the phase difference detection part is detected;
Judge the exhausted of the difference being directed between the defocus amount of the defocus amount of present frame and at least one frame for before Whether predetermined threshold value is less than or equal to value;
If the absolute value of the difference is less than or equal to the predetermined threshold value, the defocus amount for present frame is judged not For the exceptional value;
If the absolute value of the difference is more than predetermined threshold value, judge the defocus amount for present frame as the exception Value.
2. camera focusing method as claimed in claim 1, it is characterised in that wherein, at least one described frame is five frames.
3. camera focusing method as claimed in claim 1, it is characterised in that defocusing for present frame described in the basis Amount control photo-sensitive cell is moved, including:
According to the defocus amount for present frame, photo-sensitive cell is controlled to carry out by micro-electromechanical optical stabilization system MEMS OIS Planar movement.
4. camera focusing method as claimed in claim 3, it is characterised in that defocusing for present frame described in the basis Amount, controls photo-sensitive cell to move by micro-electromechanical optical stabilization system MEMS OIS, including:
When the defocus amount for present frame is negative, by the MEMS OIS control the photo-sensitive cell proximally to Distal end is translated;
When the defocus amount for present frame is positive number, by the MEMS OIS control the photo-sensitive cell from distal end to Near-end is translated.
5. a kind of camera focusing device, it is characterised in that including:
Acquisition module, for detect shot using camera when, obtain being directed to of detecting of phase difference detection part The defocus amount of present frame;
Judge module, for judging whether the defocus amount for present frame is exceptional value;
Control module, for when the judge module judges the defocus amount for present frame as exceptional value, according to described Moved for the defocus amount control photo-sensitive cell of present frame, so that the defocus amount for present frame is in normal range (NR) It is interior;
Wherein, the judge module includes:
Acquiring unit, for obtaining the defocus amount of at least one frame for before that the phase difference detection part is detected;
Judging unit, for judge the defocus amount for present frame and at least one frame for before defocus amount it Between difference absolute value whether be less than or equal to predetermined threshold value;
Identifying unit, for when the absolute value of the difference is less than or equal to the predetermined threshold value, judging described for current The defocus amount of frame is not the exceptional value, and when the absolute value of the difference is more than predetermined threshold value, judges described for current The defocus amount of frame is the exceptional value.
6. camera focusing device as claimed in claim 5, it is characterised in that wherein, at least one described frame is five frames.
7. camera focusing device as claimed in claim 5, it is characterised in that the control module specifically for:
According to the defocus amount for present frame, photo-sensitive cell is controlled to carry out by micro-electromechanical optical stabilization system MEMS OIS Planar movement.
8. camera focusing device as claimed in claim 7, it is characterised in that the control module includes:
First control unit, for when the defocus amount for present frame is negative, institute to be controlled by the MEMS OIS Photo-sensitive cell is stated proximally to be translated to distal end;
Second control unit, for when the defocus amount for present frame is positive number, institute to be controlled by the MEMS OIS Photo-sensitive cell is stated proximally to be translated from distal end.
9. a kind of terminal, it is characterised in that including:Camera focusing device as any one of claim 5 to 8.
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 CN106101554A (en) 2016-11-09
CN106101554B true 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)

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* 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
WO2014080682A1 (en) * 2012-11-22 2014-05-30 富士フイルム株式会社 Image-capturing device, and focusing method and focusing control program for said device
CN105007420B (en) * 2015-07-14 2018-09-04 广东欧珀移动通信有限公司 A kind of focusing method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106101554A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN101621625B (en) Image pickup apparatus
CN101674411B (en) Image capturing apparatus, method of determining presence or absence of image area, and recording medium
CN105554403B (en) Control method, control device and electronic device
CN101621626B (en) Image pickup apparatus and auto-focus detection method
CN105593737A (en) Focal point detection device and focal point detection method
JP2008191683A (en) Imaging apparatus and imaging method
CN103048846B (en) Focus-regulating device and control method thereof
JP4721434B2 (en) Imaging apparatus and control method thereof
CN106170064A (en) Camera focusing method, system and electronic equipment
CN106713750A (en) Focusing control method and apparatus, electronic device and terminal equipment
CN105915803A (en) Shooting method and system based on sensor
CN110199318B (en) Driver state estimation device and driver state estimation method
CN106210527A (en) The PDAF calibration steps moved based on MEMS and device
CN110677580B (en) Shooting method, shooting device, storage medium and terminal
US9781331B2 (en) Imaging apparatus, and control method thereof
CN106101554B (en) camera focusing method, device and terminal
CN106412435A (en) Focusing method and apparatus, and mobile terminal
JP2005077959A5 (en)
CN105681668B (en) Control method, control device and electronic device
CN103988107A (en) Imaging device, method for controlling same, and program
JP2021196643A (en) Inference device, imaging device, learning device, inference method, learning method and program
CN106657758A (en) Photographing method, photographing device and terminal equipment
CN105763805B (en) Control method, control device and electronic device
US12015846B2 (en) Imaging apparatus with autofocus control based on movement tendency
JP2008089811A (en) Imaging apparatus and control method therefor

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