CN105007425B - A kind of contrast formula focusing method and mobile terminal - Google Patents

A kind of contrast formula focusing method and mobile terminal Download PDF

Info

Publication number
CN105007425B
CN105007425B CN201510439724.0A CN201510439724A CN105007425B CN 105007425 B CN105007425 B CN 105007425B CN 201510439724 A CN201510439724 A CN 201510439724A CN 105007425 B CN105007425 B CN 105007425B
Authority
CN
China
Prior art keywords
phase difference
difference value
camera
image data
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.)
Active
Application number
CN201510439724.0A
Other languages
Chinese (zh)
Other versions
CN105007425A (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 CN201510439724.0A priority Critical patent/CN105007425B/en
Publication of CN105007425A publication Critical patent/CN105007425A/en
Application granted granted Critical
Publication of CN105007425B publication Critical patent/CN105007425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The present embodiments relate to electronic technology fields, disclose a kind of contrast formula focusing method and mobile terminal.Wherein, this method includes:When receiving the focusing instruction for target subject, mobile terminal can obtain the phase difference value between two image data waveforms for the target subject, and judge whether the phase difference value meets the entry condition of contrast formula focal modes, if meet, with regard to starting contrast formula focal modes, and the focus data of the focusing position of camera is determined according to the phase difference value under contrast formula focal modes, finally the camera lens of the camera is controlled to be moved to the focusing position according to the focus data.Through the embodiment of the present invention, when starting contrast formula focal modes, the direction of the focusing position of camera can be determined by the phase difference value of acquisition, then the camera lens for directly controlling the camera is moved to the direction, so as to be quickly found out focusing position, the focusing speed of formula of intensifying focusing, promotes user experience.

Description

A kind of contrast formula focusing method and mobile terminal
Technical field
The present invention relates to electronic technology fields, and in particular to a kind of contrast formula focusing method and mobile terminal.
Background technology
Present mobile terminal such as smart mobile phone, tablet computer, laptop etc. carry out taking pictures it using camera Before, it can focus.Focusing mode of the prior art has phase focusing, the focusing of contrast formula and laser focusing etc..
Existing contrast formula focusing technology, mobile terminal are to need the camera lens of camera moving ability according to desired guiding trajectory Find the best focusing position of camera.As it can be seen that the focusing speed of this focusing mode is slower.
Invention content
The embodiment of the invention discloses a kind of contrast formula focusing method and mobile terminals, cam lens can be made quickly to look for To best focusing position, so as to improve the focusing speed of contrast formula focusing.
The embodiment of the invention discloses a kind of contrast formula focusing method, including:
When receiving the focusing instruction for target subject, two picture numbers for the target subject are obtained According to the phase difference value between waveform;
Judge whether the phase difference value meets the entry condition of contrast formula focal modes;
If so, start contrast formula focal modes, and true according to the phase difference value under the contrast formula focal modes Determine the focus data of the focusing position of camera;
The camera lens for controlling the camera according to the focus data is moved to the focusing position.
It is described to judge whether the phase difference value meets opening for contrast formula focal modes as a kind of feasible embodiment Dynamic condition, including:
Determine the absolute value of the phase difference value;
Judge whether the absolute value is less than predetermined threshold value, if so, determining that the phase difference value meets the focusing of contrast formula The entry condition of pattern.
As another feasible embodiment, the focus data includes moving direction, described in the contrast formula pair The focus data of camera focusing position is determined under burnt pattern according to the phase difference value, including:
When the phase difference value is more than preset phase difference, the focusing position that first direction is the camera is determined Moving direction, wherein, the first direction for the camera camera lens towards the direction of the target subject;
When the phase difference value is less than the preset phase difference, the focusing position that second direction is the camera is determined The moving direction put, wherein, the second direction is direction opposite to the first direction.
The embodiment feasible as another, the two image data waveforms obtained for the target subject Between phase difference value, including:
For the target subject, the image of the first image is obtained by the left pixel of imaging sensor in camera Data, and the right pixel for passing through described image sensor obtains the image data of the second image;
First image data waveform is generated, and according to the figure of second image according to the image data of described first image As data generate the second image data waveform;
Calculate the phase difference value between described first image data waveform and the second image data waveform.
The embodiment feasible as another, it is described the camera lens of the camera to be controlled to move according to the focus data After to the focusing position, the method further includes:
The shooting instruction that target wearable device is sent is received, the shooting instruction is detected by the target wearable device It is generated during the vibration signal of predeterminated frequency;
The shooting instruction is responded, the camera is controlled to be clapped on the focusing position the target subject It takes the photograph.
Correspondingly, the embodiment of the invention discloses a kind of mobile terminal, including:
Acquiring unit, for when receiving the focusing instruction for target subject, obtaining and being shot for the target Phase difference value between two image data waveforms of object;
Judging unit, for judging whether the phase difference value meets the entry condition of contrast formula focal modes;
Determination unit, for judging that the phase difference value meets contrast formula focal modes trip bar in the judging unit During part, start contrast formula focal modes, and camera is determined according to the phase difference value under the contrast formula focal modes The focus data of focusing position;
Control unit, the camera lens for controlling the camera according to the focus data are moved to the focusing position.
As a kind of feasible embodiment, the judging unit includes determination subelement and judgment sub-unit, wherein:
The determination subelement, for determining the absolute value of the phase difference value;
The judgment sub-unit, for judging whether the absolute value is less than predetermined threshold value;
The determination subelement is additionally operable to when the judgment sub-unit judges that the absolute value is less than predetermined threshold value, Determine that the phase difference value meets the entry condition of contrast formula focal modes.
As another feasible embodiment, the focus data includes moving direction, and the determination unit is described Determine that the concrete mode of the focus data of camera focusing position is according to the phase difference value under contrast formula focal modes:
When the phase difference value is more than preset phase difference, the focusing position that first direction is the camera is determined Moving direction, wherein, the first direction for the camera camera lens towards the direction of the target subject;
When the phase difference value is less than the preset phase difference, the focusing position that second direction is the camera is determined The moving direction put, wherein, the second direction is direction opposite to the first direction.
The embodiment feasible as another, the acquiring unit include obtaining subelement, generation subelement and meter Operator unit, wherein:
The acquisition subelement for being directed to the target subject, passes through the left pixel of imaging sensor in camera Point obtains the image data of the first image, and the right pixel for passing through described image sensor obtains the picture number of the second image According to;
The generation subelement, for generating the first image data waveform according to the image data of described first image, and Second image data waveform is generated according to the image data of second image;
The computation subunit, for calculating between described first image data waveform and the second image data waveform Phase difference value.
The embodiment feasible as another, the mobile terminal further include:
Receiving unit, for receiving the shooting instruction of target wearable device transmission, the shooting instruction is by the target Wearable device detects what is generated during the vibration signal of predeterminated frequency;
Described control unit is additionally operable to respond the shooting instruction, controls the camera right on the focusing position The target subject is shot.
Implement the embodiment of the present invention, have the advantages that:
In the embodiment of the present invention, when receiving the focusing instruction for target subject, mobile terminal can be obtained and is directed to Phase difference value between two image data waveforms of the target subject, and judge whether the phase difference value meets contrast formula pair The entry condition of burnt pattern, if it is satisfied, just starting contrast formula focal modes, and according to the phase under contrast formula focal modes Difference determines the focus data of the focusing position of camera, and the camera lens for finally controlling the camera according to the focus data is moved to The focusing position.It through the embodiment of the present invention, can be by the phase difference value of acquisition come really when starting contrast formula focal modes Determine the direction of the focusing position of camera, the camera lens for then directly controlling the camera is moved to the direction, so as to quickly look for To focusing position, the focusing speed of formula of intensifying focusing promotes user experience.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of flow diagram of contrast formula focusing method disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another contrast formula focusing method disclosed by the embodiments of the present invention;
Fig. 3 is a kind of structure diagram of mobile terminal disclosed by the embodiments of the present invention;
Fig. 4 is the structure diagram of another mobile terminal disclosed by the embodiments of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of contrast formula focusing method and mobile terminals, cam lens can be made quickly to look for To best focusing position, so as to improve the focusing speed of contrast formula focusing.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of contrast formula focusing method disclosed by the embodiments of the present invention.Wherein, Method shown in FIG. 1 can be applied to smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, palm PC with And mobile internet device (Mobile Internet Devices, MID), personal digital assistant (Personal Digital Assistant, PDA), media player, smart television, smartwatch, intelligent glasses, the mobile terminals such as Intelligent bracelet.Such as Fig. 1 Shown, which may comprise steps of:
S101, when receive for target subject focusing instruction when, acquisition for mobile terminal be directed to the target subject Two image data waveforms between phase difference value.
In the embodiment of the present invention, the camera of mobile terminal includes imaging sensor, can by imaging sensor come Image is acquired, which can be linear transducer.Due to phase focusing speed, mobile terminal leads to Often phase focusing mode can be used to focus.In phase focus process, mobile terminal can be obtained by imaging sensor Two images so as to obtain the image data waveform of the two images, and calculate the phase between the two image data waveforms Potential difference value carries out phase focusing according to phase difference value.
Therefore, after the region where user in preview image clicks or touch target subject, the mobile terminal The focusing instruction for the target subject will be received, preferred phase focusing mode is focused.Specifically, mobile terminal Can two image data waveforms for the target subject be obtained, and obtain the two image datas by imaging sensor Phase difference value between waveform.
As a kind of feasible embodiment, acquisition for mobile terminal is directed to two image data waveforms of the target subject Between the concrete mode of phase difference value may comprise steps of:
Step 11) obtains the first image for the target subject by the left pixel of imaging sensor in camera Image data, and pass through the imaging sensor right pixel obtain the second image image data.
In the specific implementation, in phase focusing technology, the pixel of imaging sensor includes left pixel and right pixel, When being focused, two images that left and right pixel obtains preview screen respectively are first passed through.
Therefore, after receiving for the focusing instruction of the target subject, which will pass through camera The left pixel of middle imaging sensor obtains the first image for the target subject, so as to obtain the picture number of the first image According to;And pass through the right pixel of imaging sensor or the second image for the target subject in camera, so as to obtain The image data of second image.Wherein, image data can include but is not limited to rgb value, grayscale value, gray value etc..
Step 12) generates the first image data waveform according to the image data of first image, and according to the second image Image data generates the second image data waveform.
In the specific implementation, after image data of the acquisition for mobile terminal to the first image, it can be by the institute of first image There is image data to generate the first image data waveform;And after image data of the acquisition for mobile terminal to the second image, it can incite somebody to action All image datas of second image generate the second image data waveform.
For example, after mobile terminal gets the rgb value of the first image by left pixel, can according to this first All rgb values of image generate the first image data waveform;When mobile terminal gets by right pixel the RGB of the second image After value, the second image data waveform can be generated according to all rgb values of second image.Due to waveform, there are wave crests and wave Paddy, therefore, the mobile terminal can calculate the first image data waveform by the phase between the wave crest or trough of waveform With the phase difference value between the second image data waveform.
Step 13) calculates the phase difference value between the first image data waveform and the second image data waveform.
In the specific implementation, when mobile terminal generate respectively the first image data waveform and the second image data waveform it Afterwards, which will calculate the phase difference value between two image data waveforms.Under normal conditions, only when two images Phase difference between data waveform be zero when, just represent the preview image obtained as most clearly image, and if two figures As there are during phase difference between data waveform, it is necessary to obtain most clearly preview image by the form of focusing.In phase pair Under burnt pattern, the focusing position of camera can be determined by the phase difference value calculated, so as to realize rapid focus.
Further, the phase difference value calculated between the first image data waveform and the second image data waveform also may be used To be interpreted as:The distance between first image and the second image are detected by linear transducer, the distance it can be appreciated that Phase difference between two image data waveforms.
S102, the mobile terminal judge whether the phase difference value meets the entry condition of contrast formula focal modes, if so, holding Row step S103;If it is not, terminate this flow.
In the embodiment of the present invention, mobile terminal is when using phase focusing technology, since phase focusing is also passive type pair Burnt mode is to reflect into camera lens by light, is then delivered to corresponding component and is identified up, and how determines Focusing module Work.So, when light is weaker or during insufficient light, focusing speed and performance can be decreased obviously, it is also possible to which appearance can not The situation of focusing.
That is, if light is weaker in external environment, the absolute value for the phase difference value that acquisition for mobile terminal arrives is smaller, May result in cannot start phase focal modes, and in order to realize focusing faster, which will use contrast Formula is focused.
Therefore, after acquisition for mobile terminal to the phase difference value between two image data waveforms, the mobile terminal is just It can judge whether the phase difference value meets the entry condition of contrast formula focal modes, it is understood that be:The mobile terminal can be sentenced Break the phase difference value whether can phase-triggered focal modes entry condition.
Further, when mobile terminal judges that the phase difference value meets the entry condition of contrast formula focal modes, Indicate that the phase difference value is unable to the startup of phase-triggered focal modes, therefore, which will start the focusing of contrast formula Pattern;And when mobile terminal judges that the phase difference value is unsatisfactory for the entry condition of contrast formula focal modes, also indicate that this The startup of phase difference value energy phase-triggered focal modes, then the mobile terminal will continue to using phase focal modes to the mesh Mark subject is focused.
As a kind of feasible embodiment, which judges whether the phase difference value meets contrast formula focal modes The concrete mode of entry condition may comprise steps of:
Step 21) determines the absolute value of the phase difference value.
In the specific implementation, the phase difference value between two image data waveforms may be positive number, it is also possible to for negative, phase The positive negativity of difference can represent that the camera lens of the camera of mobile terminal is moved to the positive negative direction of focusing position respectively.Therefore, After acquisition for mobile terminal to the phase difference value between two image data waveforms for target subject, the mobile terminal The absolute value of the phase difference value will be calculated.
Step 22) judges whether the absolute value is less than predetermined threshold value.
In the specific implementation, when the absolute value for determining the phase difference value, the mobile terminal will by the absolute value come Judgement is to start phase focal modes or start contrast formula focal modes.Under normal conditions, it is to need to start phase focal modes The absolute value of phase difference value is wanted to be more than what some threshold value could trigger, if less than the threshold value, is focused in order to realize, generally Contrast formula focal modes can be started.
That is, the predetermined threshold value is the line of demarcation between contrast formula focal modes and phase focal modes.This is default The size of threshold value can depend on the circumstances, you can to determine that the embodiment of the present invention is not done according to the focus performance of module of phase It limits.Therefore, after the absolute value of the phase difference value is determined, it is pre- which will judge whether the absolute value is less than If threshold value.If it is lower, determine that the phase difference value meets the entry condition of contrast formula focal modes;And if it does, with regard to table The bright phase difference value meets the entry condition of phase focal modes, and therefore, which will start phase focal modes pair The target subject is focused.
Step 23) determines that the phase difference value meets contrast formula focusing mould when judging that the absolute value is less than predetermined threshold value The entry condition of formula.
In the specific implementation, when mobile terminal judges that the absolute value is less than predetermined threshold value, the phase difference value is indicated that not Energy phase-triggered focal modes, so as to trigger contrast formula focal modes, therefore, the mobile terminal it is determined that the phase difference Value meets the entry condition of contrast formula focal modes.
For example, the phase difference between two image data waveforms for target subject are got is -30 degree When, phase difference value be -30, the mobile terminal so as to determine the absolute value of the phase difference value be 30.Work as predetermined threshold value When being 20, which will judge that the absolute value is more than predetermined threshold value, be unsatisfactory for instead so that it is determined that going out the phase difference value The entry condition of differential focal modes;And if when the predetermined threshold value is 35, then the absolute value is less than predetermined threshold value, because This, which is assured that out that the phase difference value meets the entry condition of contrast formula focal modes.
Optionally, due to the absolute value of phase difference value it is smaller when, reliability is also smaller, therefore, is judging the phase After difference meets the entry condition of contrast formula focal modes, in order to realize rapid focus under contrast formula focal modes, The absolute value of the phase difference value had better not be less than target predetermined threshold value, wherein, which is less than predetermined threshold value. That is, in order to accurately determine the focusing number of the focusing position under contrast formula focal modes according to phase difference value According to the absolute value of the phase difference value is preferably between target predetermined threshold value and predetermined threshold value, such as no more than 25 and not less than 10.
S103, the mobile terminal start contrast formula focal modes, and according to the phase difference under the contrast formula focal modes Value determines the focus data of the focusing position of camera.
In the embodiment of the present invention, focus data can be moved to the shifting of the camera focusing position including the camera lens of camera Dynamic direction can also include mobile distance etc., and the embodiment of the present invention does not limit.
Under normal conditions, after contrast formula focal modes are started, the mobile terminal can control the camera lens of camera according to Preset track movement, if not finding focusing position as first moved forward, then moves backward, again so as on preset track Find focusing position.
And in the embodiment of the present invention, after entry condition that the phase difference value meets contrast formula focal modes is judged, The mobile terminal will start the focusing of contrast formula, and then under contrast formula focal modes, camera shooting is determined according to the phase difference value The focus data of the focusing position of head.
Wherein, due to phase difference value, there are positive numbers and negative, if phase difference value is positive number, illustrate a certain image data wave Shape another image data waveform positive direction, and if phase difference value be negative, then just illustrate a certain image data waveform In the negative direction of another image data waveform, accordingly, it is possible to determine the camera pair according to the positive negativity of the phase difference value The direction of burnt position is forward or backward.Further, which can also determine camera by phase difference value Camera lens movement general distance, more can find focusing position by fast accurate in this way, focus so as to fulfill contrast formula.
As a kind of feasible embodiment, the mobile terminal is true according to the phase difference value under the contrast formula focal modes Determining the concrete mode of the focus data of the focusing position of camera can be:
When the phase difference value is more than preset phase difference, the movement for the focusing position that first direction is the camera is determined Direction, wherein, the first direction for the camera camera lens towards the direction of the target subject;
When the phase difference value is less than the preset phase difference, the shifting for the focusing position that second direction is the camera is determined Dynamic direction, wherein, the second direction be with the first party in the opposite direction.
In the specific implementation, when the moving direction of camera lens of the focus data including camera to focusing position, this is default Phase difference value is 0, and therefore, which can determine its moving direction by judging the positive negativity of the phase difference value.
That is, when the phase difference value is more than 0 and is positive number, which is assured that first direction to be somebody's turn to do The moving direction of the focusing position of camera.Wherein, first direction represent be the camera camera lens towards the target shoot The camera lens outwardly direction in the direction of object, i.e. camera.And when the phase difference value is less than 0 and is negative, the mobile terminal is just It can determine the moving direction for the focusing position that second direction is the camera.Wherein, the second direction and first direction on the contrary, What i.e. the second direction represented is the camera lens of the camera backwards to the direction of the target subject.
As an example it is assumed that the phase difference value of acquisition for mobile terminal is -18, predetermined threshold value 20, then may determine that The absolute value 18 of the phase difference value is less than predetermined threshold value 20.Therefore, the mobile terminal is it may determine that go out phase difference value satisfaction The entry condition of contrast formula focal modes, so as to start contrast formula focal modes.It is negative due to phase difference value -18, then The mobile terminal be assured that out the focusing position of camera moving direction be backwards to target subject direction, i.e., to Afterwards.And if the phase difference value of acquisition for mobile terminal is 16, then be assured that the moving direction of the focusing position of camera For towards the direction of target subject, i.e., forward.
S104, the mobile terminal control the camera lens of the camera to be moved to the focusing position, and tie according to the focus data This flow of beam.
In the embodiment of the present invention, after the focus data for determining camera, which will be according to the focusing Data control the camera lens of the camera to be moved to the focusing position.Specifically it can be understood as:When focus data is moving direction, After the moving direction for the focusing position for determining camera, which will control the camera lens of the camera towards the shifting Dynamic direction movement, so as to be quickly found out focusing position;Further, when focus data further includes displacement distance, the shifting Dynamic terminal is assured that out the approximate location of the focusing position of the camera, i.e., is probably needed on the moving direction determined Mobile distance, then the mobile terminal will control the camera lens of the camera to be moved towards the position, to be quickly found out focusing position It puts.
As an example it is assumed that predetermined threshold value is 30, and when user needs to focus to the kitten in preview screen, user's meeting The kitten is clicked on the screen, and then mobile terminal can obtain two images for kitten, and by the rgb value of the two images Two image data waveforms are generated, it is 22 then to calculate the phase difference value between the two image data waveforms.Therefore, the shifting Dynamic terminal is it may determine that go out the entry condition that the phase difference value meets contrast formula focal modes, so as to start contrast formula pair Burnt pattern, and determined by the phase difference value camera focusing position moving direction for forward.Therefore, the mobile terminal is just The camera lens of the camera can be controlled to move forward to be quickly found out focusing position, so as to which the focusing to kitten is rapidly completed.
As it can be seen that in the described methods of Fig. 1, when receiving the focusing instruction for target subject, mobile terminal The phase difference value between two image data waveforms for the target subject can be obtained, and judges whether the phase difference value is full The entry condition of sufficient contrast formula focal modes, if it is satisfied, just starting contrast formula focal modes, and under contrast formula focal modes The focus data of the focusing position of camera is determined according to the phase difference value, the camera is finally controlled according to the focus data Camera lens is moved to the focusing position.Through the embodiment of the present invention, when starting contrast formula focal modes, the phase of acquisition can be passed through Potential difference value determines the direction of the focusing position of camera, and the camera lens for then directly controlling the camera is moved to the direction, from And focusing position can be quickly found out, the focusing speed of formula of intensifying focusing promotes user experience.
Referring to Fig. 2, Fig. 2 is the flow diagram of another contrast formula focusing method disclosed by the embodiments of the present invention.Its In, method shown in Fig. 2 can be applied to smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, palm PC And mobile internet device, personal digital assistant, media player, smart television, smartwatch, intelligent glasses, intelligent hand The mobile terminals such as ring.As shown in Fig. 2, the contrast formula focusing method may comprise steps of:
S201, when receive for target subject focusing instruction when, acquisition for mobile terminal be directed to the target subject Two image data waveforms between phase difference value.
S202, the mobile terminal judge whether the phase difference value meets contrast formula focal modes entry condition, if so, performing Step S203;If it is not, terminate this flow.
S203, the mobile terminal start contrast formula focal modes, and according to the phase difference under the contrast formula focal modes Value determines the focus data of the focusing position of camera.
S204, the mobile terminal control the camera lens of the camera to be moved to the focusing position according to the focus data
S205, the mobile terminal receive the shooting instruction that target wearable device is sent.
In the embodiment of the present invention, when mobile terminal controls the camera lens of the camera to be moved to the focusing according to the focus data During position, you can represent that the mobile terminal completes the focusing to the target subject.Therefore, user can be triggered for target The shooting instruction of subject.
Wherein, the target wearable device can with when Intelligent bracelet, smartwatch, intelligent glasses etc., the embodiment of the present invention is not It limits.
Specifically, user can send shooting instruction by the target wearable device of wearing to mobile terminal, wherein, the bat It can be generated after target wearable device detects the vibration signal of predeterminated frequency to take the photograph instruction.In this way, user It can be to the carry out remote operation of mobile terminal, so as to complete to shoot.
Optionally, it is being generated when which can also be user by tapping target wearable device or pass through operation The shooting instruction of the shutter key generation of camera applications on target wearable device, so as to be sent to mobile terminal.
Optionally, user can also click directly on or touch the shutter key of the mobile terminal and the target subject is clapped It takes the photograph.
For example, after mobile terminal completes the focus operation to target subject, user can be with certain frequency Intelligent bracelet is shaken in rate or specific direction, after then detecting vibration signal to the Intelligent bracelet, will generate shooting Instruction, and the shooting instruction is sent to mobile terminal, mobile terminal refers to so as to receive the shooting of target wearable device transmission It enables.
S206, the mobile terminal respond the shooting instruction, and the camera is controlled to be shot on the focusing position to the target Object is shot, and terminates this flow.
In the embodiment of the present invention, when mobile terminal receives the shooting instruction of target wearable device transmission, the movement is whole End will respond the shooting instruction, and the camera is controlled to be shot on its focusing position to the target subject.
Specifically, since the phase difference value between two image data waveforms of acquisition for mobile terminal is unsatisfactory for phase pair Coke, the mobile terminal is so as to using the focusing of contrast formula.Therefore, which will assist contrast formula pair according to the phase difference value Coke, quickly the camera lens of camera is moved on focusing position.So sent when mobile terminal receives target wearable device Shooting instruction when, which will control the camera lens of the camera to be carried out on the focusing position to the target subject Shooting.
As it can be seen that in the described methods of Fig. 2, after mobile terminal is completed to the focus operation of target subject, use Family can control the mobile terminal to shoot the target subject by wearable device, so as to the completion at bigger visual angle The operations such as self-timer, group photo.The style of shooting of this remote control mobile terminal, is better able to be favored by consumer, from And promote user experience.
Referring to Fig. 3, Fig. 3 is a kind of structure diagram of mobile terminal disclosed by the embodiments of the present invention.Wherein, Fig. 3 institutes The mobile terminal 300 shown can include but is not limited to smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, the palm Upper computer and mobile internet device, personal digital assistant, media player, smart television, smartwatch, intelligent glasses, Intelligent bracelet etc..As shown in figure 3, the mobile terminal 300 can include with lower unit:
Acquiring unit 301, for when receiving the focusing instruction for target subject, obtaining and being shot for the target Phase difference value between two image data waveforms of object.
In the embodiment of the present invention, the camera of mobile terminal 300 includes imaging sensor, can pass through imaging sensor Image is acquired, which can be linear transducer.Due to phase focusing speed, mobile terminal 300 would generally use phase focusing mode to focus.In phase focus process, mobile terminal 300 can pass through image sensing Device obtains two images, so as to obtain the image data waveform of the two images, and calculates the two image data waveforms Between phase difference value, phase focusing is carried out according to phase difference value.
Therefore, after the region where user in preview image clicks or touch target subject, the mobile terminal 300 will receive the focusing instruction for the target subject, and preferred phase focusing mode is focused.Specifically, it obtains Unit 301 can obtain two image data waveforms for the target subject, and obtain the two by imaging sensor Phase difference value between image data waveform.
Judging unit 302, for judging whether the phase difference value that above-mentioned acquiring unit 301 obtains meets contrast formula focusing mould The entry condition of formula.
In the embodiment of the present invention, mobile terminal 300 is when using phase focusing technology, since phase focusing is also passive type Focusing mode is to reflect into camera lens by light, is then delivered to corresponding component and is identified up, and determines Focusing module such as What work.So, when light is weaker or during insufficient light, focusing speed and performance can be decreased obviously, it is also possible to nothing occur The situation of method focusing.
That is, if light is weaker in external environment, the absolute value of the phase difference value that acquiring unit 301 is got compared with Small, may result in cannot start phase focal modes, and in order to realize focusing faster, which will adopt It is focused with contrast formula.
Therefore, after the phase difference value for getting between two image data waveforms in acquiring unit 301, judging unit 302 will judge whether the phase difference value meets the entry condition of contrast formula focal modes, it is understood that be:Judging unit 302 can judge the phase difference value whether can phase-triggered focal modes entry condition.
Further, when judging unit 302 judges that the phase difference value meets the entry condition of contrast formula focal modes, Also indicate that the phase difference value is unable to the startup of phase-triggered focal modes, therefore, which will start contrast formula Focal modes;And when judging unit 302 judges that the phase difference value is unsatisfactory for the entry condition of contrast formula focal modes, also Show the startup of the phase difference value energy phase-triggered focal modes, then the mobile terminal 300 will continue to focus using phase Pattern focuses to the target subject.
Determination unit 303, for judging that the phase difference value meets contrast formula focal modes in above-mentioned judging unit 302 During entry condition, start contrast formula focal modes, and camera is determined according to the phase difference value under the contrast formula focal modes Focusing position focus data.
In the embodiment of the present invention, focus data can be moved to the shifting of the camera focusing position including the camera lens of camera Dynamic direction can also include mobile distance etc., and the embodiment of the present invention does not limit.
Under normal conditions, after contrast formula focal modes are started, which can control the camera lens of camera to press It moves according to preset track, if not finding focusing position as first moved forward, then moves backward again, so as in preset track On find focusing position.
And in the embodiment of the present invention, judge that the phase difference value meets opening for contrast formula focal modes in judging unit 302 After dynamic condition, determination unit 303 will start the focusing of contrast formula, then under contrast formula focal modes, according to the phase difference Value determines the focus data of the focusing position of camera.
Wherein, due to phase difference value, there are positive numbers and negative, if phase difference value is positive number, illustrate a certain image data wave Shape another image data waveform positive direction, and if phase difference value be negative, then just illustrate a certain image data waveform In the negative direction of another image data waveform, accordingly, it is possible to determine the camera pair according to the positive negativity of the phase difference value The direction of burnt position is forward or backward.Further, determination unit 303 can also determine camera by phase difference value Camera lens movement general distance, more can find focusing position by fast accurate in this way, focus so as to fulfill contrast formula.
Control unit 304, the focus data for being determined according to above-mentioned determination unit 303 control the camera lens of the camera to move It moves to the focusing position.
In the embodiment of the present invention, after determination unit 303 determines the focus data of camera, control unit 304 is just The camera lens of the camera can be controlled to be moved to the focusing position according to the focus data.Specifically it can be understood as:Work as focus data During for moving direction, after the moving direction of focusing position that camera is determined in determination unit 303, control unit 304 is just The camera lens of the camera can be controlled to be moved towards the moving direction, so as to be quickly found out focusing position;Further, work as focusing When data further include displacement distance, determination unit 303 is assured that out the approximate location of the focusing position of the camera, that is, exists Mobile distance is probably needed on the moving direction determined, then control unit 304 will control the camera lens court of the camera The position is moved, to be quickly found out focusing position.
As an example it is assumed that predetermined threshold value is 30, and when user needs to focus to the kitten in preview screen, user's meeting The kitten is clicked on the screen, and then acquiring unit 301 can obtain two images for kitten, and by the two images Rgb value generates two image data waveforms, and it is 22 then to calculate the phase difference value between the two image data waveforms.Cause This, judging unit 302 is it may determine that go out the entry condition that the phase difference value meets contrast formula focal modes, so as to trigger Determination unit 302 starts contrast formula focal modes, and determines by the phase difference value moving direction of the focusing position of camera For forward.Therefore, control unit 304 will control the camera lens of the camera to move forward to be quickly found out focusing position, so as to The focusing to kitten can be rapidly completed.
As it can be seen that in the described mobile terminals of Fig. 3, it is mobile when receiving the focusing instruction for target subject Terminal can obtain the phase difference value between two image data waveforms for the target subject, and judge that the phase difference value is The no entry condition for meeting contrast formula focal modes, if it is satisfied, just starting contrast formula focal modes, and in contrast formula focusing mould The focus data of the focusing position of camera is determined under formula according to the phase difference value, the camera shooting is finally controlled according to the focus data The camera lens of head is moved to the focusing position.Through the embodiment of the present invention, when starting contrast formula focal modes, acquisition can be passed through Phase difference value determine the direction of the focusing position of camera, the camera lens for then directly controlling the camera is moved to the direction Dynamic, so as to be quickly found out focusing position, the focusing speed of formula of intensifying focusing promotes user experience.
Referring to Fig. 4, Fig. 4 is the structure diagram of another mobile terminal disclosed by the embodiments of the present invention.Wherein, Fig. 4 Shown mobile terminal 300 is optimized on the basis of mobile terminal 300 shown in Fig. 3.It as shown in figure 4, should Mobile terminal 300 may further include the following units:
Receiving unit 305, for the camera lens of the camera being controlled to be moved to according to focus data in described control unit 304 After focusing position, the shooting instruction that target wearable device is sent is received.
In the embodiment of the present invention, when control unit 304 controls the camera lens of the camera to be moved to this according to the focus data During focusing position, you can represent that the mobile terminal 300 completes the focusing to the target subject.Therefore, user can trigger For the shooting instruction of target subject.
Wherein, the target wearable device can with when Intelligent bracelet, smartwatch, intelligent glasses etc., the embodiment of the present invention is not It limits.
Specifically, user can send shooting instruction by the target wearable device of wearing to mobile terminal 300, wherein, The shooting instruction can be generated after target wearable device detects the vibration signal of predeterminated frequency.In this way, User can be to the carry out remote operation of mobile terminal 300, so as to complete to shoot.
Optionally, it is being generated when which can also be user by tapping target wearable device or pass through operation The shooting instruction of the shutter key generation of camera applications on target wearable device, so as to be sent to mobile terminal 300.
Optionally, user can also click directly on or touch the shutter key of the mobile terminal 300 to the target subject into Row shooting.
For example, after mobile terminal 300 completes the focus operation to target subject, user can be with certain Intelligent bracelet is shaken in frequency or specific direction, after then detecting vibration signal to the Intelligent bracelet, will generate bat Instruction is taken the photograph, and the shooting instruction is sent to mobile terminal 300, receiving unit 305 sends so as to receive target wearable device Shooting instruction.
Above-mentioned control unit 304 is additionally operable to, when above-mentioned receiving unit 305 receives shooting instruction, respond the shooting and refer to It enables, the camera is controlled to be shot on the focusing position to the target subject.
In the embodiment of the present invention, when receiving unit 305 receives the shooting instruction of target wearable device transmission, control is single Member 304 will respond the shooting instruction, and the camera is controlled to be shot on its focusing position to the target subject.
Specifically, the phase difference value between the two image data waveforms obtained due to acquiring unit 301 is unsatisfactory for phase Focusing, the mobile terminal 300 is so as to using the focusing of contrast formula.Therefore, which will assist according to the phase difference value Contrast formula is focused, quickly the camera lens of camera is moved on focusing position.So worn when receiving unit 305 receives target When wearing the shooting instruction of equipment transmission, control unit 304 will control the camera lens of the camera on the focusing position to the mesh Mark subject is shot.
In the embodiment of the present invention, above-mentioned acquiring unit 301 can include obtain subelement 3011, generation subelement 3012 with And computation subunit 3013, wherein:
Above-mentioned acquisition subelement 3011 for being directed to the target subject, passes through the left picture of imaging sensor in camera Vegetarian refreshments obtains the image data of the first image, and the right pixel for passing through the imaging sensor obtains the picture number of the second image According to.
In the specific implementation, in phase focusing technology, the pixel of imaging sensor includes left pixel and right pixel, When being focused, two images that left and right pixel obtains preview screen respectively are first passed through.
Therefore, after receiving for the focusing instruction of the target subject, obtaining subelement 3011 will be by taking the photograph As in head imaging sensor left pixel obtain for the target subject the first image, so as to obtain the figure of the first image As data;And pass through the right pixel of imaging sensor or the second image for the target subject in camera, so as to Obtain the image data of the second image.Wherein, image data can include but is not limited to rgb value, grayscale value, gray value etc..
Above-mentioned generation subelement 3012, for generating the first image data waveform according to the image data of first image, And the second image data waveform is generated according to the image data of the second image.
In the specific implementation, after acquisition subelement 3011 gets the image data of the first image, subelement is generated All image datas of first image can be generated the first image data waveform by 3012;And it is got when obtaining subelement 3011 After the image data of second image, all image datas of second image can be generated the second image by generation subelement 3012 Data waveform.
For example, after acquisition subelement 3011 gets the rgb value of the first image by left pixel, generation Unit 3012 can generate the first image data waveform according to all rgb values of first image;Pass through when obtaining subelement 3011 After right pixel gets the rgb value of the second image, generation subelement 3012 can give birth to according to all rgb values of second image Into the second image data waveform.Since waveform is there are wave crest and trough, computation subunit 3013 can pass through waveform Phase between wave crest or trough calculates the phase difference value between the first image data waveform and the second image data waveform.
Above-mentioned computation subunit 3013, for calculating between the first image data waveform and the second image data waveform Phase difference value.
In the specific implementation, when generation subelement 3012 generates the first image data waveform and the second image data wave respectively After shape, computation subunit 3013 will calculate the phase difference value between two image data waveforms.Under normal conditions, only when Phase difference between two image data waveforms be zero when, just represent the preview image obtained as most clearly image, and such as There are during phase difference between two image data waveforms of fruit, it is necessary to obtain most clearly preview image by the form of focusing. Under phase focal modes, the focusing position of camera can be determined by the phase difference value calculated, so as to realize Rapid focus.
Further, computation subunit 3013 is calculated between the first image data waveform and the second image data waveform Phase difference value it can be appreciated that:The distance between first image and the second image are detected by linear transducer, it should be away from From it can be appreciated that phase difference between two image data waveforms.
In the embodiment of the present invention, above-mentioned judging unit 302 can include determining that subelement 3021 and judgment sub-unit 3022, wherein:
Above-mentioned determination subelement 3021, for determining the absolute value of the phase difference value of the above-mentioned acquisition of acquiring unit 301.
In the specific implementation, the phase difference value between two image data waveforms may be positive number, it is also possible to for negative, phase The positive negativity of difference can represent that the camera lens of the camera of mobile terminal is moved to the positive negative direction of focusing position respectively.Therefore, After acquiring unit 301 is got for the phase difference value between two image data waveforms of target subject, son is determined Unit 3021 will calculate the absolute value of the phase difference value.
Above-mentioned judgment sub-unit 3022, for judging it is default whether the determining absolute value of above-mentioned determination subelement 3021 is less than Threshold value.
In the specific implementation, when determination subelement 3021 determines the absolute value of the phase difference value, judgment sub-unit 3022 It will judge to start phase focal modes by the absolute value or start contrast formula focal modes.Under normal conditions, it opens Dynamic phase focal modes are that the absolute value of phase difference value is needed to be more than some threshold value to trigger, and if less than the threshold value, are It can realize focusing, can generally start contrast formula focal modes.
That is, the predetermined threshold value is the line of demarcation between contrast formula focal modes and phase focal modes.This is default The size of threshold value can depend on the circumstances, you can to determine that the embodiment of the present invention is not done according to the focus performance of module of phase It limits.Therefore, after determination subelement 3021 determines the absolute value of the phase difference value, judgment sub-unit 3022 will judge Whether the absolute value is less than predetermined threshold value.If it is lower, determination subelement 3021 determines that the phase difference value meets contrast formula pair The entry condition of burnt pattern;And if it does, indicate that the phase difference value meets the entry condition of phase focal modes, therefore, The mobile terminal 300 will start phase focal modes and focus to the target subject.
Above-mentioned determination subelement 3021 is additionally operable to judge that the absolute value is less than default threshold in above-mentioned judgment sub-unit 3022 During value, determine that the phase difference value meets the entry condition of contrast formula focal modes.
In the specific implementation, when judgment sub-unit 3022 judges that the absolute value is less than predetermined threshold value, the phase is indicated that Difference is unable to phase-triggered focal modes, so as to trigger contrast formula focal modes, accordingly, it is determined that subelement 3021 will be true The fixed phase difference value meets the entry condition of contrast formula focal modes.
For example, when acquiring unit 301 is got for the phase between two image data waveforms of target subject When potential difference is spent for -30, phase difference value is -30, so as to determine that the absolute value of the phase difference value is 30.Work as predetermined threshold value When being 20, judgment sub-unit 3022 will judge that the absolute value is more than predetermined threshold value, so that it is determined that subelement 3021 is determined The phase difference value is unsatisfactory for the entry condition of contrast formula focal modes;And if when the predetermined threshold value is 35, then the absolute value Predetermined threshold value is less than, accordingly, it is determined that subelement 3021 is assured that out that the phase difference value meets contrast formula focal modes Entry condition.
Optionally, due to the absolute value of phase difference value it is smaller when, reliability is also smaller, therefore, in judgment sub-unit After 3022 judge the entry condition that the phase difference value meets contrast formula focal modes, in order in contrast formula focal modes Lower realization rapid focus, the absolute value of the phase difference value had better not be less than target predetermined threshold value, wherein, the target predetermined threshold value It is less than predetermined threshold value.It is that is, right under contrast formula focal modes in order to accurately be determined according to phase difference value The focus data of burnt position, the absolute value of the phase difference value is preferably between target predetermined threshold value and predetermined threshold value, such as less In 25 and not less than 10.
In the embodiment of the present invention, when focus data includes moving direction, above-mentioned determination unit 303 is focused in the contrast formula Determining the concrete mode of the focus data of the focusing position of camera under pattern according to the phase difference value can be:
When the phase difference value is more than preset phase difference, the movement for the focusing position that first direction is the camera is determined Direction, wherein, the first direction for the camera camera lens towards the direction of the target subject;
When the phase difference value is less than the preset phase difference, the shifting for the focusing position that second direction is the camera is determined Dynamic direction, wherein, the second direction be with the first party in the opposite direction.
In the specific implementation, when the moving direction of camera lens of the focus data including camera to focusing position, this is default Phase difference value is 0, accordingly, it is determined that unit 303 can determine its moving direction by judging the positive negativity of the phase difference value.
That is, when the phase difference value is more than 0 and is positive number, determination unit 303 is assured that first direction is The moving direction of the focusing position of the camera.Wherein, first direction represent be the camera camera lens towards the target clap Take the photograph the camera lens outwardly direction in the direction of object, i.e. camera.And when the phase difference value is less than 0 and is negative, determination unit 303 It is assured that the moving direction for the focusing position that second direction is the camera.Wherein, the second direction and first direction phase Instead, i.e., what the second direction represented is the camera lens of the camera backwards to the direction of the target subject.
As an example it is assumed that the phase difference value that acquiring unit 301 obtains is -18, predetermined threshold value 20, then judging unit 302 may determine that the absolute value 18 of the phase difference value is less than predetermined threshold value 20.Therefore, judging unit 302 is it may determine that go out The phase difference value meets the entry condition of contrast formula focal modes, so as to start contrast formula focal modes.Due to the phase difference value- 18, it is negative, then determination unit 303 is assured that out that the moving direction of the focusing position of camera is to be shot backwards to target The direction of object, i.e., backward.And if the phase difference value that acquiring unit 301 obtains is 16, then determination unit 303 is assured that Towards the direction of target subject, i.e., forward the moving direction of the focusing position of camera is.
As it can be seen that in the described mobile terminals of Fig. 4, mobile terminal complete to the focus operation of target subject it Afterwards, user can control the mobile terminal to shoot the target subject by wearable device, so as to bigger visual angle Completion self-timer, the operations such as group photo.The style of shooting of this remote control mobile terminal, is better able to the blueness by consumer It looks at, so as to promote user experience.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other disk storages, magnetic disk storage, magnetic tape storage or can For carrying or storing any other computer-readable medium of data.
Contrast formula focusing method disclosed by the embodiments of the present invention and mobile terminal are described in detail above, herein It applies specific case to be expounded the principle of the present invention and embodiment, the explanation of above example is only intended to help Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, thought according to the present invention, There will be changes in specific embodiments and applications, in conclusion the content of the present specification should not be construed as to this The limitation of invention.

Claims (10)

1. a kind of contrast formula focusing method, which is characterized in that including:
When receiving the focusing instruction for target subject, two image data waves for the target subject are obtained Phase difference value between shape;The phase difference is obtained by the phase calculation between the wave crest and trough of described two image data waveforms It arrives;Described image data waveform is the waveform that the value of pixel in image data is formed;
Judge whether the phase difference value meets the entry condition of contrast formula focal modes;
If so, starting contrast formula focal modes, and determine to take the photograph according to the phase difference value under the contrast formula focal modes As the focus data of the focusing position of head;
The camera lens for controlling the camera according to the focus data is moved to the focusing position.
2. according to the method described in claim 1, it is characterized in that, described judge whether the phase difference value meets contrast formula pair The entry condition of burnt pattern, including:
Determine the absolute value of the phase difference value;
Judge whether the absolute value is less than predetermined threshold value, if so, determining that the phase difference value meets contrast formula focal modes Entry condition.
3. method according to claim 1 or 2, which is characterized in that the focus data includes moving direction, described in institute The focus data for determining camera focusing position under contrast formula focal modes according to the phase difference value is stated, including:
When the phase difference value is more than preset phase difference, the movement for the focusing position that first direction is the camera is determined Direction, wherein, the first direction for the camera camera lens towards the direction of the target subject;
When the phase difference value is less than the preset phase difference, the focusing position that second direction is the camera is determined Moving direction, wherein, the second direction is direction opposite to the first direction.
4. according to the method described in claim 1, it is characterized in that, two images obtained for the target subject Phase difference value between data waveform, including:
For the target subject, the picture number of the first image is obtained by the left pixel of imaging sensor in camera According to, and the right pixel for passing through described image sensor obtains the image data of the second image;
First image data waveform is generated, and according to the picture number of second image according to the image data of described first image According to the second image data waveform of generation;
Calculate the phase difference value between described first image data waveform and the second image data waveform.
5. according to the method described in claim 1, it is characterized in that, described control the camera according to the focus data Camera lens is moved to after the focusing position, and the method further includes:
Receive the shooting instruction that target wearable device is sent, the shooting instruction be detected by the target wearable device it is default It is generated during the vibration signal of frequency;
The shooting instruction is responded, the camera is controlled to be shot on the focusing position to the target subject.
6. a kind of mobile terminal, which is characterized in that including:
Acquiring unit, for when receiving the focusing instruction for target subject, obtaining for the target subject Phase difference value between two image data waveforms;The phase difference by described two image data waveforms wave crest and trough it Between phase calculation obtain;Described image data waveform is the waveform that the value of pixel in image data is formed;
Judging unit, for judging whether the phase difference value meets the entry condition of contrast formula focal modes;
Determination unit, for judging that the phase difference value meets contrast formula focal modes entry condition in the judging unit When, start contrast formula focal modes, and determine pair of camera according to the phase difference value under the contrast formula focal modes The focus data of burnt position;
Control unit, the camera lens for controlling the camera according to the focus data are moved to the focusing position.
7. mobile terminal according to claim 6, which is characterized in that the judging unit includes determination subelement and sentences Disconnected subelement, wherein:
The determination subelement, for determining the absolute value of the phase difference value;
The judgment sub-unit, for judging whether the absolute value is less than predetermined threshold value;
The determination subelement is additionally operable to, when the judgment sub-unit judges that the absolute value is less than predetermined threshold value, determine The phase difference value meets the entry condition of contrast formula focal modes.
8. the mobile terminal described according to claim 6 or 7, which is characterized in that the focus data includes moving direction, described Determination unit determines the focus data of camera focusing position under the contrast formula focal modes according to the phase difference value Concrete mode is:
When the phase difference value is more than preset phase difference, the movement for the focusing position that first direction is the camera is determined Direction, wherein, the first direction for the camera camera lens towards the direction of the target subject;
When the phase difference value is less than the preset phase difference, the focusing position that second direction is the camera is determined Moving direction, wherein, the second direction is direction opposite to the first direction.
9. mobile terminal according to claim 6, which is characterized in that the acquiring unit includes obtaining subelement, generation Subelement and computation subunit, wherein:
The acquisition subelement for being directed to the target subject, is obtained by the left pixel of imaging sensor in camera The image data of the first image is taken, and the right pixel for passing through described image sensor obtains the image data of the second image;
The generation subelement, for according to the image data of described first image generate the first image data waveform, and according to The image data of second image generates the second image data waveform;
The computation subunit, for calculating the phase between described first image data waveform and the second image data waveform Potential difference value.
10. mobile terminal according to claim 6, which is characterized in that the mobile terminal further includes:
Receiving unit, for receiving the shooting instruction of target wearable device transmission, the shooting instruction is dressed by the target Equipment detects what is generated during the vibration signal of predeterminated frequency;
Described control unit is additionally operable to respond the shooting instruction, controls the camera on the focusing position to described Target subject is shot.
CN201510439724.0A 2015-07-23 2015-07-23 A kind of contrast formula focusing method and mobile terminal Active CN105007425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510439724.0A CN105007425B (en) 2015-07-23 2015-07-23 A kind of contrast formula focusing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510439724.0A CN105007425B (en) 2015-07-23 2015-07-23 A kind of contrast formula focusing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105007425A CN105007425A (en) 2015-10-28
CN105007425B true CN105007425B (en) 2018-07-06

Family

ID=54379926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510439724.0A Active CN105007425B (en) 2015-07-23 2015-07-23 A kind of contrast formula focusing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105007425B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107026969A (en) * 2016-02-01 2017-08-08 中兴通讯股份有限公司 The determination method and device of phase difference
CN105763805B (en) * 2016-02-29 2019-03-08 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN105763801B (en) * 2016-02-29 2019-02-05 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN105635591A (en) * 2016-03-11 2016-06-01 深圳还是威健康科技有限公司 Photographing control method based on wearable equipment and terminal
CN105872378A (en) * 2016-04-12 2016-08-17 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN105939455B (en) * 2016-06-13 2019-07-09 惠州Tcl移动通信有限公司 A kind of mobile terminal camera focusing process method and mobile terminal
CN106791373B (en) * 2016-11-29 2020-03-13 Oppo广东移动通信有限公司 Focusing processing method and device and terminal equipment
CN106713750B (en) * 2016-12-19 2019-07-19 Oppo广东移动通信有限公司 Focusing control method, device, electronic device and terminal device
CN106657799A (en) * 2017-03-02 2017-05-10 苏州摩比力特电子科技有限公司 Bar code scanning device and method based on phase detection
CN107911618A (en) * 2017-12-27 2018-04-13 上海传英信息技术有限公司 Processing method, terminal and the terminal readable storage medium storing program for executing taken pictures
CN108683795A (en) * 2018-03-30 2018-10-19 中兴通讯股份有限公司 Mobile terminal and its control method and computer readable storage medium
CN112866551B (en) * 2019-11-12 2022-06-14 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
CN113747070A (en) * 2021-09-10 2021-12-03 昆山丘钛微电子科技股份有限公司 Focusing method and device of camera module, terminal equipment and medium
CN114354630A (en) * 2022-01-07 2022-04-15 京东方科技集团股份有限公司 Image acquisition system and method and display panel processing equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102928197A (en) * 2011-08-08 2013-02-13 佳能株式会社 Focus detector, and lens apparatus and image pickup apparatus including the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5276371B2 (en) * 2008-07-09 2013-08-28 キヤノン株式会社 Imaging device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102928197A (en) * 2011-08-08 2013-02-13 佳能株式会社 Focus detector, and lens apparatus and image pickup apparatus including the same

Also Published As

Publication number Publication date
CN105007425A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN105007425B (en) A kind of contrast formula focusing method and mobile terminal
RU2679316C1 (en) Method and device for playback of video content from any location and at any time
JP6271990B2 (en) Image processing apparatus and image processing method
CN111601039B (en) Video shooting method and device and electronic equipment
RU2628485C2 (en) Prompting method and device to remove the application
JP6293706B2 (en) Electronic device and method of operating electronic device
US9300858B2 (en) Control device and storage medium for controlling capture of images
CN108270967A (en) Atomatic focusing method and the electronic equipment for performing this method
CN112954199B (en) Video recording method and device
TW201108060A (en) Digital image processing device and associated methodology of performing touch-based image scaling
US20150201124A1 (en) Camera system and method for remotely controlling compositions of self-portrait pictures using hand gestures
CN108600612B (en) Photographing method and mobile terminal
EP2757774A1 (en) Image capture methods and systems
CN108391051A (en) A kind of focusing abnormality eliminating method and mobile terminal
CN112887618B (en) Video shooting method and device
CN106713747A (en) Focusing method and mobile terminal
CN108702456A (en) A kind of focusing method, equipment and readable storage medium storing program for executing
KR102150470B1 (en) Method for setting shooting condition and electronic device performing thereof
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112954212B (en) Video generation method, device and equipment
CN114422692A (en) Video recording method and device and electronic equipment
CN112291473A (en) Focusing method and device and electronic equipment
CN104580899B (en) The control method and imaging device of image objects
EP3109695B1 (en) Method and electronic device for automatically focusing on moving object
US9207769B2 (en) Processing method and electronic device

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.