CN105657238B - Track focusing method and device - Google Patents

Track focusing method and device Download PDF

Info

Publication number
CN105657238B
CN105657238B CN201410669930.6A CN201410669930A CN105657238B CN 105657238 B CN105657238 B CN 105657238B CN 201410669930 A CN201410669930 A CN 201410669930A CN 105657238 B CN105657238 B CN 105657238B
Authority
CN
China
Prior art keywords
mrow
tracking
changing value
focusing
length
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
CN201410669930.6A
Other languages
Chinese (zh)
Other versions
CN105657238A (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 CN201410669930.6A priority Critical patent/CN105657238B/en
Priority to CN201710848389.9A priority patent/CN107465877B/en
Publication of CN105657238A publication Critical patent/CN105657238A/en
Application granted granted Critical
Publication of CN105657238B publication Critical patent/CN105657238B/en
Active 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)
  • Studio Devices (AREA)

Abstract

Focusing method is tracked the embodiment of the invention discloses one kind, including:Tracking target is obtained successively includes target following region in picture frame, described image frame;Calculate the changing value of the size parameter in the target following region and the changing value of focusing evaluation of estimate;Revolution step-length is calculated according to the size parameter changing value and focusing evaluation of estimate changing value;Motor control command is generated according to the revolution step-length to be focused.Focusing mechanism is tracked the embodiment of the invention also discloses one kind.Using the present invention, the speed of auto-focusing can be accelerated, reduce the shake of picture.

Description

Track focusing method and device
Technical field
The present invention relates to camera technique field, more particularly to a kind of tracking focusing method and device.
Background technology
Target following is led on the optical imaging apparatus such as existing digital camera, video camera, mobile phone camera and monitoring device The One function often possessed.User, can be on the display screen of camera or the monitor of monitoring device when being taken pictures or being imaged See the picture frame of the What You See Is What You Get of its camera imaging formation, user can delimit rectangle tracing area (i.e. on picture frame Tracking box, using solid border as mark generally in picture frame, user is pointed out by framing foreground image), camera or monitoring Equipment can be tracked to the foreground image in the rectangle tracing area, and rectangle tracing area can obtain picture frame in imaging In followed by the left and right of foreground image and move up and down and move, or followed by foreground image amplify apart from the distance of camera lens and Reduce.
When carrying out target following, in addition it is also necessary to carry out auto-focusing apart from the far and near of camera lens according to target object, otherwise mesh Mark object will thicken.However, the focusing in conventional art when carrying out target following uses the modes such as climbing algorithm, Speed of focusing is slower, and influence shoots experience.
The content of the invention
Based on this, in order to solve the slow-footed technical problem of above-mentioned focusing, spy provides a kind of tracking focusing method.
One kind tracking focusing method, including:
Tracking target is obtained successively includes target following region in picture frame, described image frame;
Calculate the changing value of the size parameter in the target following region and the changing value of focusing evaluation of estimate;
Revolution step-length is calculated according to the size parameter changing value and focusing evaluation of estimate changing value;
Motor control command is generated according to the revolution step-length to be focused.
In one of the embodiments, the changing value of the size parameter for calculating the target following region and focusing are commented The step of changing value of value is:
The size parameter and its changing value in target following region are calculated according to target tracking algorism;
The focusing evaluation of estimate and its changing value of picture frame are calculated according to focusing evaluation function.
In one of the embodiments, it is described that horse is calculated according to the size parameter changing value and focusing evaluation of estimate changing value Up to rotate step-length the step of be:
According to formula:
Calculate the revolution step-length;Wherein M is revolution step-length, and ▽ fv are the changing value of focusing evaluation of estimate, ▽ Dx is the changing value of the size parameter in target following region, and k is default coefficient, and the direction point of the revolution step-length M Dui Ying not closely burnt end and remote burnt end.
In one of the embodiments, it is described to generate what motor control command was focused according to the revolution step-length Also include after step:
Tracking judges whether the focusing evaluation of estimate reached extreme value, if so, then generation continues to move to the horse of-M/2 step-lengths Focusing fine setting is carried out up to control instruction.
In one of the embodiments, it is described to generate what motor control command was focused according to the revolution step-length Also include after step:
Judge whether to focus successfully, if so, then obtaining motor focus point position SfocusFocus point position is in motor position Put SfocusWhen target following region size parameter fvfocus
Methods described also includes:
Tracking calculates the size parameter fv in target following regiontracking, according to formula:
Calculate motor with burnt position Stracking, according to burnt position StrackingMotor control command is generated, motor is controlled It is moved to burnt position Stracking
Correspondingly, in order to solve the slow-footed technical problem of above-mentioned focusing, spy provides a kind of tracking focusing mechanism.
One kind tracking focusing mechanism, including:
Target tracking module, is obtained in picture frame, described image frame comprising target following region successively for tracking target;
Parameter calculating module, changing value and focusing evaluation of estimate for the size parameter that calculates the target following region Changing value;
Step size computation module is rotated, for calculating motor according to the size parameter changing value and focusing evaluation of estimate changing value Rotate step-length;
Motor control module, is focused for generating motor control command according to the revolution step-length.
In one of the embodiments, the parameter calculating module is additionally operable to calculate target following according to target tracking algorism The size parameter and its changing value in region;The focusing evaluation of estimate and its changing value of picture frame are calculated according to focusing evaluation function.
In one of the embodiments, the rotation step size computation module is additionally operable to according to formula:
Calculate the revolution step-length;Wherein M is revolution step-length, and ▽ fv are the changing value of focusing evaluation of estimate, ▽ Dx is the changing value of the size parameter in target following region, and k is default coefficient, and the direction point of the revolution step-length M Dui Ying not closely burnt end and remote burnt end.
In one of the embodiments, described device also is used to track including fine setting module judges that the focusing evaluation of estimate is It is no to reach extreme value, if so, then generation continues to move to the motor control command progress focusing fine setting of-M/2 step-lengths.
In one of the embodiments, described device also includes with burnt module, for judging whether to focus successfully, if so, Then obtain motor focus point position SfocusFocus point position S is in motor positionfocusWhen target following region size ginseng Number fvfocus
Tracking calculates the size parameter fv in target following regiontracking, according to formula:
Calculate motor with burnt position Stracking, according to burnt position StrackingMotor control command is generated, motor is controlled It is moved to burnt position Stracking
Implement the embodiment of the present invention, will have the advantages that:
Above-mentioned tracking focusing method and device target following and focusing evaluate on the basis of by simple computation target with The size parameter and its changing value in track region are to complete focusing, and amount of calculation is small, is quick on the draw, so as to accelerate focusing speed.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart for tracking focusing method in one embodiment;
Fig. 2 be an application scenarios in shoot surface chart;
Fig. 3 be an application scenarios in shoot surface chart;
Fig. 4 be an application scenarios in shoot surface chart;
Fig. 5 is camera lens light path schematic diagram in one embodiment;
Fig. 6 is a kind of structural representation for tracking focusing mechanism in one embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
For the convenience that solves aforesaid operations it is not enough the problem of, spy proposes a kind of tracking focusing method, and this method is held Row is depended on computer program, the computer system that can run on von Neumann system.The computer program can be integrated in In, it can also be run as independent tool-class application.The computer system can be digital camera, with camera function The mobile devices such as smart mobile phone, tablet personal computer, monitor or monitoring device with varifocal camera etc..
Specifically, in the present embodiment, this method as shown in figure 1, including:
Step S102, tracking target is obtained successively includes target following region in picture frame, picture frame.
The picture frame that obtains successively of tracking target is in camera or to be taken the photograph in the target and its surrounding scene as subject As being imaged obtained image in head, it is cached in the form of frames.Target following region is display screen of the user in camera Or the target area as subject delimited on monitor screen picture frame.
For example, as shown in Fig. 2 user enters camera function with mobile phone, then mobile phone camera is opened, the corresponding road of its optics Road scene is to generate picture frame by the imaging of mobile phone camera, and is shown on a display of the handset, forms What You See Is What You Get Experience of taking pictures.If user wish to focus to some pedestrian in the road scene (will the pedestrian as shooting Jiao Point), then can the pedestrian on a display screen regional assignment tracking box (rectangle frame in such as Fig. 2), the pedestrian is existed as target Confined in picture frame, the tracking box of the delimitation is initial target following region.
In upper example, delimit display screen on picture frame in pedestrian target as tracking target after, due to pedestrian It is kept in motion, therefore it is in variable condition the distance between with camera, it is near when immediately remote.Can using target tracking algorism The movement of target is tracked, when pedestrian target is moved to camera lens, according to optical imaging concept, as shown in figure 3, then target following area Domain can amplify along with pedestrian target to the displacement of camera lens;When pedestrian target is away from camera lens, according to optical imaging concept, As shown in figure 4, then target following region can reduce along with pedestrian target away from the displacement of camera lens.Therefore initial mesh Mark tracing area after delimitation, can produce the change of size along with movement of the tracking target on lens axis direction.
In the present embodiment, can using target tracking algorism carry out target following when, periodically (such as 30ms) it is raw Into picture frame, display reflects the moving process of tracking target on a display screen.It is preferred that, target tracking algorism can be used MeanShift track algorithms, the track algorithm based on particle group optimizing, the track algorithm based on template matches or TLD targets with Track algorithm etc..
Step S104, calculates the changing value of the size parameter in target following region and the changing value of focusing evaluation of estimate.
The size parameter in target following region is the one-dimensional linear parameter for characterizing target following area size.As above in example, If target following region is tracking box, its size parameter can select its length or the one-dimensional linear parameter of width, if target Tracing area is circle, then its size parameter can select the one-dimensional linear parameter such as its radius or diameter, if target following region is Irregular figure, because target following region is always zoomed in or out in picture frame into grade ratio, then can select diagonal, specific The one-dimensional linear such as wire length of angle parameter is used as its size parameter.
As previously described, because when carrying out target following, the picture frame of several reflection target locations can be periodically generated, Therefore the size parameter and its changing value in target following region can be calculated according to target tracking algorism, i.e., when generating picture frame, The size parameter in the target following region in each image frame is got, then is passed through
▽ dx=dxcurrent-dxpre
The size parameter in target following region in each image frame is obtained relative to the target following area in previous frame image The changing value ▽ dx (dx of the size parameter in domaincurrentAnd dxpreRespectively the size of current frame image and previous frame image is joined Number).
Such as Fig. 3 and Fig. 4 are reflected as the movement of pedestrian target continuously generates two field pictures, then can be unified with image Tracking box height as size parameter, subtracted each other, you can obtain generate Fig. 4 shown in picture frame when target following area The changing value of the size parameter in domain.
Focusing evaluation of estimate is a judge value of image definition in focus process, and focusing evaluation of estimate is in phase in target Extreme value is in during the focal position of machine camera lens, now the imaging of camera lens is the most clear, and along with target and camera lens Focal position distance change, focusing evaluation of estimate be also accordingly changed, so as to reflect picture frame in focus process Readability.
In the present embodiment, obtained by focusing evaluation function, for example, when generating picture frame, can be according to shade of gray Function (gray scale fluctuation and change function, gray scale absolute change function, Laplace function gradient function etc.), information mathematic(al) function, frequency The focusing evaluation functions such as domain function obtain evaluation of estimate of focusing, then pass through
▽ fv=fvcurrent-fvpre
Obtain changing value ▽ fv (fv of each image frame relative to the focusing evaluation of estimate of previous frame imagecurrentAnd fvpre The respectively focusing evaluation of estimate of current frame image and previous frame image).
Step S106, revolution step-length is calculated according to the changing value of the changing value of size parameter and focusing evaluation of estimate.
The distance between lens set of camera lens can be adjusted during digital camera focusing by motor, so as to focus.Therefore, The focal length variations of camera lens relation proportional to the rotation step-length of motor.Pass through the changing value and focusing evaluation of estimate of size parameter Changing value determine the rotation step-length of motor, that is, mean to adjust the focal length of camera lens.
In the present embodiment, it can be calculated according to the proportionate relationship of the changing value and the changing value of focusing evaluation of estimate of size parameter Revolution step-length.For example, can be according to formula:
Calculate revolution step-length;Wherein M is revolution step-length, and ▽ fv are the changing value of focusing evaluation of estimate, and ▽ dx are The changing value of the size parameter in target following region, k is default coefficient, and revolution step-length M direction is corresponding near respectively Burnt end and remote burnt end.That is, M for just or it is negative when, the different moving direction in nearly burnt end and remote Jiao end has been corresponded to respectively, has been had The corresponding relation of body can be then adjusted according to k.
Step S108, generates motor control command according to revolution step-length and is focused.
Calculating is obtained after revolution step-length, you can call the driver of the motor of camera lens, is obtained with the calculating Revolution step-length for parameter generate motor control command, the motor apparatus of camera lens is after the instruction is received, you can Rotate corresponding step-length and complete focusing.
It is preferred that, in focus process, can also focusing be finely adjusted.Specifically, being generated according to revolution step-length Also include after the step of motor control command is focused:Tracking judges whether focusing evaluation of estimate reached extreme value, if so, then The motor control command that generation continues to move to-M/2 step-lengths carries out focusing fine setting.
If for example, obtained focusing evaluation of estimate after the foregoing specified step-length M of revolution, will be recalculated less than (selected The situation when extreme value that focusing evaluation function is used is maximum, if the use of extreme value being that minimum value is then opposite) movement The focusing evaluation of estimate that preceding calculating is obtained, then show that focusing evaluation of estimate lives through extreme value (due to abovementioned steps in moving process The revolution step-length that S106 is calculated always makes focus be moved to target, and focusing evaluation of estimate always changes towards extreme value, if occurring Focusing evaluation of estimate do not increase it is counter subtract, necessarily cause focus to be moved across target for revolution step-length is excessive so that focus Evaluation of estimate also experienced extreme value accordingly).Now, it can be finely adjusted by rotation motor-M/2 step-lengths (reverse movement).
Performed it should be noted that the process of the fine setting is repeatable, until the difference of focusing evaluation of estimate and extreme value is less than threshold Value.If for example, motor position is S before focusing1, to defocused for S2, then fine setting can move-M/2 step-lengths and move-(S2-S1)/2 Step-length, reach S3Position, if during this, still tracking judgement obtains focusing evaluation of estimate and experienced extreme value, then can move again Dynamic-M/2 step-lengths (now M be previous movement-(S2-S1The step-length of)/2), that is, it is moved to-(S3-S2The step-length of)/2, with this Analogize, until the difference of focusing evaluation of estimate and extreme value is less than threshold value, so as to complete focusing.
In the present embodiment, it after the completion of focusing, will shift focus to after tracking position of object, tracking target can also be carried out With Jiao.Specially:
Judge whether to focus successfully, if so, then obtaining motor focus point position SfocusFocus point position is in motor position Put SfocusWhen target following region size parameter dxfocus
Methods described also includes:
Tracking calculates the size parameter dx in target following regiontracking, according to formula:
Calculate motor with burnt position Stracking, according to burnt position StrackingMotor control command is generated, motor is controlled It is moved to burnt position Stracking
As shown in Fig. 5 index path, after focusing successfully, the size parameter in focal length and target following region is then inversely proportional pass System, therefore can be carried out according to the relation with Jiao, and carry out repeating focusing without computing repeatedly moving step length.
In one embodiment, as shown in fig. 6, a kind of track focusing mechanism, including target tracking module 102, parameter meter Calculate module 104, rotate step size computation module 106 and motor control module 108, wherein:
Target tracking module 102, is obtained in picture frame, described image frame comprising target following area successively for tracking target Domain.;
Parameter calculating module 104, is evaluated for calculating the changing value of size parameter in the target following region with focusing The changing value of value.
Step size computation module 106 is rotated, for being calculated according to the size parameter changing value and focusing evaluation of estimate changing value Revolution step-length.
Motor control module 108, is focused for generating motor control command according to the revolution step-length.
In the present embodiment, parameter calculating module 104 is additionally operable to calculate target following region according to target tracking algorism Size parameter and its changing value;The focusing evaluation of estimate and its changing value of picture frame are calculated according to focusing evaluation function.
In the present embodiment, step size computation module 106 is rotated to be additionally operable to according to formula:
Calculate the revolution step-length;Wherein M is revolution step-length, and ▽ fv are the changing value of focusing evaluation of estimate, ▽ Dx is the changing value of the size parameter in target following region, and k is default coefficient, and the direction point of the revolution step-length M Dui Ying not closely burnt end and remote burnt end.
In the present embodiment, as shown in fig. 6, tracking focusing mechanism also includes fine setting module 110, judge described for tracking Focusing evaluation of estimate whether reached extreme value, if so, then generation continue to move to-M/2 step-lengths motor control command carry out focusing it is micro- Adjust.
In the present embodiment, as shown in fig. 6, tracking focusing mechanism device also includes with burnt module 112, for judging whether Focus successfully, if so, then obtaining motor focus point position SfocusFocus point position S is in motor positionfocusWhen target with The size parameter dx in track regionfocus
Tracking calculates the size parameter dx in target following regiontracking, according to formula:
Calculate motor with burnt position Stracking, according to burnt position StrackingMotor control command is generated, motor is controlled It is moved to burnt position Stracking
In summary, implement the embodiment of the present invention, will have the advantages that:
Above-mentioned tracking focusing method and device target following and focusing evaluate on the basis of by simple computation target with The size parameter and its changing value in track region are to complete focusing, and amount of calculation is small, is quick on the draw, so as to accelerate focusing speed.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (8)

1. one kind tracking focusing method, including:
Tracking target is obtained successively includes target following region in picture frame, described image frame;
Calculate the changing value of the size parameter in the target following region and the changing value of focusing evaluation of estimate;
Revolution step-length is calculated according to the size parameter changing value and focusing evaluation of estimate changing value;
Motor control command is generated according to the revolution step-length to be focused;
Wherein, the changing value according to the size parameter and the changing value of focusing evaluation of estimate calculate the step of revolution step-length Suddenly it is:
According to formula:
<mrow> <mi>M</mi> <mo>=</mo> <mi>k</mi> <mo>&amp;times;</mo> <mfrac> <mrow> <mo>&amp;dtri;</mo> <mi>f</mi> <mi>v</mi> </mrow> <mrow> <mo>&amp;dtri;</mo> <mi>d</mi> <mi>x</mi> </mrow> </mfrac> </mrow>
Calculate the revolution step-length;Wherein M is revolution step-length,For focus evaluation of estimate changing value,For mesh The changing value of the size parameter of tracing area is marked, k is default coefficient, and the direction of the revolution step-length M corresponds to respectively Nearly Jiao end and remote burnt end.
2. tracking focusing method according to claim 1, it is characterised in that the calculating target following region it is big The step of changing value of small parameter and the changing value of focusing evaluation of estimate is:
The size parameter and its changing value in target following region are calculated according to target tracking algorism;
The focusing evaluation of estimate and its changing value of picture frame are calculated according to focusing evaluation function.
3. tracking focusing method according to claim 1, it is characterised in that described to be generated according to the revolution step-length Also include after the step of motor control command is focused:
Tracking judges whether the focusing evaluation of estimate reached extreme value, if so, then generation continues to move to the motor control of-M/2 step-lengths System instruction carries out focusing fine setting.
4. tracking focusing method according to claim 1, it is characterised in that described to be generated according to the revolution step-length Also include after the step of motor control command is focused:
Judge whether to focus successfully, if so, then obtaining motor focus point position SfocusFocus point position is in motor position SfocusWhen target following region size parameter dxfocus
Methods described also includes:
Tracking calculates the size parameter dx in target following regiontracking, according to formula:
<mrow> <msub> <mi>S</mi> <mrow> <mi>t</mi> <mi>r</mi> <mi>a</mi> <mi>c</mi> <mi>k</mi> <mi>i</mi> <mi>n</mi> <mi>g</mi> </mrow> </msub> <mo>=</mo> <msub> <mi>S</mi> <mrow> <mi>f</mi> <mi>o</mi> <mi>c</mi> <mi>u</mi> <mi>s</mi> </mrow> </msub> <mo>&amp;times;</mo> <mfrac> <mrow> <msub> <mi>dx</mi> <mrow> <mi>f</mi> <mi>o</mi> <mi>c</mi> <mi>u</mi> <mi>s</mi> </mrow> </msub> </mrow> <mrow> <msub> <mi>dx</mi> <mrow> <mi>t</mi> <mi>r</mi> <mi>a</mi> <mi>c</mi> <mi>k</mi> <mi>i</mi> <mi>n</mi> <mi>g</mi> </mrow> </msub> </mrow> </mfrac> </mrow>
Calculate motor with burnt position Stracking, according to burnt position StrackingGenerate motor control command, control motor movement To with burnt position Stracking
5. one kind tracking focusing mechanism, it is characterised in that including:
Target tracking module, is obtained in picture frame, described image frame comprising target following region successively for tracking target;
Parameter calculating module, for calculate the target following region size parameter changing value and focusing evaluation of estimate change Value;
Step size computation module is rotated, for calculating revolution according to the size parameter changing value and focusing evaluation of estimate changing value Step-length;
Motor control module, is focused for generating motor control command according to the revolution step-length;
Wherein, the rotation step size computation module is additionally operable to according to formula:
<mrow> <mi>M</mi> <mo>=</mo> <mi>k</mi> <mo>&amp;times;</mo> <mfrac> <mrow> <mo>&amp;dtri;</mo> <mi>f</mi> <mi>v</mi> </mrow> <mrow> <mo>&amp;dtri;</mo> <mi>d</mi> <mi>x</mi> </mrow> </mfrac> </mrow>
Calculate the revolution step-length;Wherein M is revolution step-length,For focus evaluation of estimate changing value,For mesh The changing value of the size parameter of tracing area is marked, k is default coefficient, and the direction of the revolution step-length M corresponds to respectively Nearly Jiao end and remote burnt end.
6. tracking focusing mechanism according to claim 5, it is characterised in that the parameter calculating module is additionally operable to according to mesh Mark size parameter and its changing value that track algorithm calculates target following region;Pair of picture frame is calculated according to focusing evaluation function Burnt evaluation of estimate and its changing value.
7. tracking focusing mechanism according to claim 5, it is characterised in that described device also include fine setting module be used for Track judges whether the focusing evaluation of estimate reached extreme value, if so, then generation continues to move to the motor control command of-M/2 step-lengths Carry out focusing fine setting.
8. tracking focusing mechanism according to claim 5, it is characterised in that described device also includes with burnt module, is used for Judge whether to focus successfully, if so, then obtaining motor focus point position SfocusFocus point position S is in motor positionfocusWhen Target following region size parameter dxfocus
Tracking calculates the size parameter dx in target following regiontracking, according to formula:
<mrow> <msub> <mi>S</mi> <mrow> <mi>t</mi> <mi>r</mi> <mi>a</mi> <mi>c</mi> <mi>k</mi> <mi>i</mi> <mi>n</mi> <mi>g</mi> </mrow> </msub> <mo>=</mo> <msub> <mi>S</mi> <mrow> <mi>f</mi> <mi>o</mi> <mi>c</mi> <mi>u</mi> <mi>s</mi> </mrow> </msub> <mo>&amp;times;</mo> <mfrac> <mrow> <msub> <mi>dx</mi> <mrow> <mi>f</mi> <mi>o</mi> <mi>c</mi> <mi>u</mi> <mi>s</mi> </mrow> </msub> </mrow> <mrow> <msub> <mi>dx</mi> <mrow> <mi>t</mi> <mi>r</mi> <mi>a</mi> <mi>c</mi> <mi>k</mi> <mi>i</mi> <mi>n</mi> <mi>g</mi> </mrow> </msub> </mrow> </mfrac> </mrow>
Calculate motor with burnt position Stracking, according to burnt position StrackingGenerate motor control command, control motor movement To with burnt position Stracking
CN201410669930.6A 2014-11-20 2014-11-20 Track focusing method and device Active CN105657238B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410669930.6A CN105657238B (en) 2014-11-20 2014-11-20 Track focusing method and device
CN201710848389.9A CN107465877B (en) 2014-11-20 2014-11-20 Track focusing method and device and related media production

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410669930.6A CN105657238B (en) 2014-11-20 2014-11-20 Track focusing method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201710848389.9A Division CN107465877B (en) 2014-11-20 2014-11-20 Track focusing method and device and related media production

Publications (2)

Publication Number Publication Date
CN105657238A CN105657238A (en) 2016-06-08
CN105657238B true CN105657238B (en) 2017-09-19

Family

ID=56479980

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710848389.9A Expired - Fee Related CN107465877B (en) 2014-11-20 2014-11-20 Track focusing method and device and related media production
CN201410669930.6A Active CN105657238B (en) 2014-11-20 2014-11-20 Track focusing method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201710848389.9A Expired - Fee Related CN107465877B (en) 2014-11-20 2014-11-20 Track focusing method and device and related media production

Country Status (1)

Country Link
CN (2) CN107465877B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465877A (en) * 2014-11-20 2017-12-12 广东欧珀移动通信有限公司 Track focusing method and device and related media production

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918278B (en) * 2017-11-16 2021-01-19 江苏省生产力促进中心 Automatic focus following method for film and television lens
CN108702456A (en) * 2017-11-30 2018-10-23 深圳市大疆创新科技有限公司 A kind of focusing method, equipment and readable storage medium storing program for executing
CN111050060B (en) 2018-10-12 2021-08-31 华为技术有限公司 Focusing method and device applied to terminal equipment and terminal equipment
CN109460764B (en) * 2018-11-08 2022-02-18 中南大学 Satellite video ship monitoring method combining brightness characteristics and improved interframe difference method
CN112004019B (en) * 2019-05-27 2023-02-24 福建天晴数码有限公司 Tracking focusing method and computer readable storage medium
CN114449152B (en) * 2020-10-30 2023-09-22 北京小米移动软件有限公司 Focusing method, focusing device, electronic equipment and storage medium
CN113163114B (en) * 2021-03-29 2023-07-04 无锡闻泰信息技术有限公司 Image focusing method, device, equipment and medium
CN114302053B (en) * 2021-11-24 2023-12-05 影石创新科技股份有限公司 Lens focusing method and device of image pickup apparatus, image pickup apparatus and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008052225A (en) * 2006-08-28 2008-03-06 Olympus Imaging Corp Camera, focus control method, and program
CN100565320C (en) * 2006-06-09 2009-12-02 索尼株式会社 The control method of imaging device, imaging device and computer program
CN103780841A (en) * 2014-01-23 2014-05-07 深圳市金立通信设备有限公司 Shooting method and shooting device
CN104012073A (en) * 2011-12-16 2014-08-27 奥林巴斯映像株式会社 Imaging device and imaging method, and storage medium for storing tracking program processable by computer
CN104113686A (en) * 2013-04-19 2014-10-22 佳能株式会社 Imaging Apparatus And Its Control Method And Program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4712661B2 (en) * 2006-09-22 2011-06-29 オリンパスイメージング株式会社 Imaging device
JP4725802B2 (en) * 2006-12-27 2011-07-13 富士フイルム株式会社 Imaging apparatus, focusing method, and focusing program
CN107465877B (en) * 2014-11-20 2019-07-09 Oppo广东移动通信有限公司 Track focusing method and device and related media production

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100565320C (en) * 2006-06-09 2009-12-02 索尼株式会社 The control method of imaging device, imaging device and computer program
JP2008052225A (en) * 2006-08-28 2008-03-06 Olympus Imaging Corp Camera, focus control method, and program
CN104012073A (en) * 2011-12-16 2014-08-27 奥林巴斯映像株式会社 Imaging device and imaging method, and storage medium for storing tracking program processable by computer
CN104113686A (en) * 2013-04-19 2014-10-22 佳能株式会社 Imaging Apparatus And Its Control Method And Program
CN103780841A (en) * 2014-01-23 2014-05-07 深圳市金立通信设备有限公司 Shooting method and shooting device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465877A (en) * 2014-11-20 2017-12-12 广东欧珀移动通信有限公司 Track focusing method and device and related media production
CN107465877B (en) * 2014-11-20 2019-07-09 Oppo广东移动通信有限公司 Track focusing method and device and related media production

Also Published As

Publication number Publication date
CN107465877A (en) 2017-12-12
CN107465877B (en) 2019-07-09
CN105657238A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105657238B (en) Track focusing method and device
CN107087107B (en) Image processing apparatus and method based on dual camera
CN103384998B (en) Imaging device and imaging method
JP4664379B2 (en) Electronic device and image data processing method for image data processing
US9998650B2 (en) Image processing apparatus and image pickup apparatus for adding blur in an image according to depth map
JP5589548B2 (en) Imaging apparatus, image processing method, and program storage medium
WO2020259474A1 (en) Focus tracking method and apparatus, terminal device, and computer-readable storage medium
CN108076281A (en) A kind of auto focusing method and Pan/Tilt/Zoom camera
CN102696219A (en) Imaging device, imaging method, program, and integrated circuit
CN108600638B (en) Automatic focusing system and method for camera
CN110278382A (en) A kind of focus method, device, electronic equipment and storage medium
US11375097B2 (en) Lens control method and apparatus and terminal
CN112333379A (en) Image focusing method and device and image acquisition equipment
CN108702456A (en) A kind of focusing method, equipment and readable storage medium storing program for executing
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN107517345A (en) Shooting preview method and capture apparatus
CN114390201A (en) Focusing method and device thereof
CN110992395A (en) Image training sample generation method and device and motion tracking method and device
CN106154688B (en) Automatic focusing method and device
CN104680563B (en) The generation method and device of a kind of image data
EP3109695B1 (en) Method and electronic device for automatically focusing on moving object
CN106791353A (en) The methods, devices and systems of auto-focusing
CN105025219A (en) Image acquisition method
US10880536B2 (en) Three-dimensional image capturing device and method
CN107592464B (en) Zoom follows the switching method and device of curve during a kind of zoom

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

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.

CP01 Change in the name or title of a patent holder