CN102902132A - Automatic focusing method and device - Google Patents

Automatic focusing method and device Download PDF

Info

Publication number
CN102902132A
CN102902132A CN2012104248492A CN201210424849A CN102902132A CN 102902132 A CN102902132 A CN 102902132A CN 2012104248492 A CN2012104248492 A CN 2012104248492A CN 201210424849 A CN201210424849 A CN 201210424849A CN 102902132 A CN102902132 A CN 102902132A
Authority
CN
China
Prior art keywords
lens
camera
automatic focusing
image device
motor
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.)
Pending
Application number
CN2012104248492A
Other languages
Chinese (zh)
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 CN2012104248492A priority Critical patent/CN102902132A/en
Publication of CN102902132A publication Critical patent/CN102902132A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to an automatic focusing method and device. The method comprises the following steps of: detecting the position of a camera and judging the orientation of the camera; step (2): judging whether the orientation of the camera is downward or not, if so, moving a lens to the position which is farthest away from an imaging device, otherwise, moving the lens to the position which is closest to the imaging device; and finally implementing automatic focusing. The better initial position of the lens can be automatically identified during the automatic focusing process and the automatic focusing time can be shortened by implementing the automatic focusing method and device, disclosed by the invention.

Description

A kind of Atomatic focusing method and device
Technical field
The present invention relates to the shooting field, more particularly, relate to a kind of Atomatic focusing method and device.
Background technology
Present camera head generally is the position that changes lens by stepper motor, by the contrast of comparison imaging under diverse location, on the suitable position that determines whether to focus when automatically focusing.Namely after the contrast of obtaining reached maximal value, stepper motor is mobile 2 ~ 3 steps again, if all little than current maximal value, so just think that current location is exactly focusing.
But in general focus process; what adopt is focus from distal-most end to most proximal end (perhaps opposite); the problem of overlong time but focusing usually can appear in this mode: need to be when nearer end is focused; lens begin mobile (or opposite situation) from distal-most end, will certainly prolong like this time of whole automatic focusing.
Be badly in need of now a kind ofly can automatically select to focus the time, step motor drives the method that lens begin to focus from correct position.
Summary of the invention
Problem to be solved by this invention is that step motor driving lens begin focusing in the Atomatic focusing method from inappropriate position for having now, cause the defective of focusing overlong time, and a kind of fast Atomatic focusing method is provided.
Solution of the above problems of the present invention is: a kind of Atomatic focusing method is provided, may further comprise the steps:
Step 1, detect camera position, judge camera towards;
Step 2, judge the downward towards whether of camera, if then execution in step 3, otherwise execution in step 4;
Step 3, lens move to away from the position of image device, and execution in step 5 again;
Step 4, lens move near the position of image device, and execution in step 5 again;
Automatically focusing of step 5, execution.
Atomatic focusing method of the present invention, wherein step 5 comprises:
Lens are to an other end stepping, and detect the picture contrast at image device place in lens stepping process;
Lens move to the position of picture contrast maximum.
The present invention also provides a kind of automatic focusing mechanism, comprising:
Image device and camera, the optical axis coincidence of image device and camera, camera comprises lens; Automatic focusing mechanism also comprises with camera and is fixedly connected with angle detection device, the motor that is fixedly connected with camera;
Angle detection device detect camera towards;
If angle detection device detect camera towards being tilted to down, away from the position of image device, mobile lens is to focusing position more extremely for the motor removing lens;
If angle detection device detect camera towards level or be tilted to, near the position of image device, mobile lens is to focusing position again to for the motor removing lens.
Automatic focusing mechanism of the present invention also comprises the Analysis of Contrast instrument that is connected with image device, is used for detecting in lens stepping process the picture contrast at image device place; The driven by motor lens move to the position of picture contrast maximum.
Automatic focusing mechanism of the present invention, motor are voice coil motor.
Automatic focusing mechanism of the present invention, angle detection device comprise interconnective gyroscope and electromagnetic sensor.
Implement Atomatic focusing method of the present invention and device, can automatically identify the better reference position of lens in the auto-focus process, shorten the automatically time of focusing.
Description of drawings
The present invention will be described below in conjunction with accompanying drawing, wherein:
Fig. 1 is the process flow diagram of Atomatic focusing method of the present invention;
Fig. 2 is the structural representation of automatic focusing mechanism of the present invention.
Embodiment
The present invention is described in detail below in conjunction with the drawings and specific embodiments.
Fig. 1 is the process flow diagram of Atomatic focusing method of the present invention.Existing Atomatic focusing method normally selects the reference position (for example near image device or away from image device) of a limit then to the other end mobile imaging lens imaging len, then lens are stopped on the position of imaging the best, such focus process rigid mechanical, the present invention is that nearly burnt object or burnt object far away carry out discriminatory analysis to the image of imaging at first then, reduces the automatically time of focusing.
At first execution in step 1, judge camera towards, in the present invention with camera towards being divided three classes: camera lens down, camera lens level and camera lens up.The catotropic situation of mirror is generally taken a crane shot, and the object that is lower than camera installation on the locus is taken; The camera lens level is general vista shot, and camera lens is up for facing upward bat.
Step 2: according to the detection of step 1, camera is divided into two classes: down with not down two kinds, and alignment is processed respectively.This is when considering that camera lens down, and thumping majority is to carry out in-plant shooting, is fit to carry out nearly burnt the processing.When camera lens down the time, enter step 3, otherwise execution in step 4.
Step 3: when judging that camera lens down, the imaging len in the camera is moved on the position away from image device.Universal law according to lens imaging:
1 f = 1 u + 1 v
Wherein, f is the focal length of imaging len, u is object distance (being that shot object is to the distance of lens), v is image distance (being the distance of imaging device and imaging len), in the time of on the imaging len in the camera moves to away from the position of image device, the numerical value of u is the maximal value in the optional scope, the v value minimum that this moment is corresponding.Namely take for nearly burnt object this moment.
Judging that camera lens is not down the time, execution in step 4: the imaging len in the camera is moved on the position near image device.In the time of on the imaging len in the camera moves near the position of image device, the numerical value of u is the minimum value in the optional scope, the v value maximum that this moment is corresponding.Namely take for burnt object far away this moment.
After completing steps 3 or 4, execution in step 5 is carried out automatically focusing.Automatically the process of focusing is, drives imaging len in the mode of stepping, the relatively imaging on diverse location, and stop in position the most clearly, this position be the optimum position of automatically focusing.
Owing to carrying out different automatic focusing reference positions to taking nearly burnt object with burnt object far away, so that the whole step distance of lens reduces, having improved the speed of automatic focusing.
Be illustrated in figure 2 as the device that uses Atomatic focusing method of the present invention.The especially applicable mobile phone with camera function of this device.This device comprises image device 300 and camera, and the critical piece in the camera is imaging len 100, and image device 300 can be selected CCD(Charge Coupled Device), cmos camera etc.; Image device 300 is positioned on the same optical axis 600 with imaging len 100.Imaging len 100 is driven by a motor 200, moves along optical axis 600, and mobile scope is the position between 2 of A, the B among Fig. 2.
In the present embodiment, automatic focusing mechanism comprises one for detection of the angle detection device 400 of automatic focusing mechanism heeling condition, and general present smart mobile phone all includes this assembly (for example the gyroscope take the MEMS chip as core and corresponding electromagnetic sensor cooperatively interact work).Angle detection device 400 is connected with motor 200, and motor 200 is regulated the initial focusing position of imaging len 100 according to the testing result of angle detection device 400.Need to prove, in automatic focusing mechanism of the present invention, angle detection device 400 can be fixed on the optional position (for example being fixed on the inner space of smart mobile phone) of automatic focusing mechanism, as long as angle detection device 400 can detect the inclination situation of imaging len 100, motor 200 is done corresponding motion according to this inclination situation and is got final product.
Automatic focusing mechanism also comprises an Analysis of Contrast instrument 500 that is connected with image device 300, be used for to analyze the contrast of the image that image device 300 collects.
The operational process of this device is as follows: at first, angle detection device 400 is analyzed the inclination situation of automatic focusing mechanism, when camera is tilted to lower (locus that namely A is ordered among the figure is higher than the B point), motor 200 drives imaging lens and moves on the position away from image device 300, i.e. the point of B among the figure; Otherwise, not being tilted to lower time (locus that namely A is ordered among the figure is not higher than the B point) at camera, motor 200 drives imaging lens and moves on the position near image device 300, i.e. the point of A among the figure.
After moving to initial position, motor 200 drive imaging lens 100 from A to B(or from B to A, depend on initial position and change) stepping moves.Usually, be the distance between AB to be waited be divided into 1024 parts, the distance that each stepping is 1 part.Every stepping portion apart from the time, image device 300 gathers an image, and image is sent to the contrast of Analysis of Contrast instrument 500 detected image, motor 200 is urged to imaging len 100 on the position that obtains high-contrast image, finishes automatic focusing.
Because when nearly burnt object is taken, the optimum position of imaging len 100 is relatively near the B point, therefore than beginning driving from A point, the time loss that begins to drive from the B point still less, the speed of finishing automatic focusing is higher.
Preferably, in the present embodiment, motor 200 is voice coil motor (Voice Coil Motor), voice coil motor by with the work that cooperatively interacts of suitable control, feedback system, can realize high-precision step-wise displacement.
Preferably, in the present embodiment, Analysis of Contrast instrument 500 is included in the image processing system (ImageSignal Processing, ISP), and image processing system is processed the image in the shooting process by integrated or external mode.
It below only is the specific embodiment of the invention, can not limit scope of the present invention with this, the equalization that those skilled in the art in the art do according to this creation changes, and the change known of those skilled in that art, all should still belong to the scope that the present invention is contained.

Claims (6)

1. an Atomatic focusing method is characterized in that, may further comprise the steps:
Step 1, detect camera position, judge camera towards;
Step 2, judge the downward towards whether of camera, if then execution in step 3, otherwise execution in step 4;
Step 3, lens move to away from the position of image device, and execution in step 5 again;
Step 4, lens move near the position of image device, and execution in step 5 again;
Automatically focusing of step 5, execution.
2. Atomatic focusing method according to claim 1 is characterized in that, described step 5 comprises:
Lens are to an other end stepping, and detect the picture contrast at image device place in lens stepping process;
Lens move to the position of picture contrast maximum.
3. an automatic focusing mechanism is characterized in that, described automatic focusing mechanism comprises:
Image device (300) and camera, the optical axis coincidence of image device (300) and camera, camera comprises lens (100); Automatic focusing mechanism also comprises angle detection device (400), and the motor that is fixedly connected with camera (200);
Angle detection device (400) detect camera towards;
If angle detection device (400) detect camera towards being tilted to down, away from the position of image device (300), mobile lens is to focusing position more extremely for motor (200) mobile lens;
If angle detection device (400) detect camera towards level or be tilted to, near the position of image device (300), mobile lens is to focusing position again to for motor (200) mobile lens (100).
4. automatic focusing mechanism according to claim 3 is characterized in that, automatic focusing mechanism also comprises the Analysis of Contrast instrument (500) that is connected with image device (100), is used for detecting in lens stepping process the picture contrast at image device place; Motor (200) drive lens (100) moves to the position of picture contrast maximum.
5. according to claim 3 or 4 described automatic focusing mechanisms, it is characterized in that, described motor (200) is voice coil motor.
6. according to claim 3 or 4 described automatic focusing mechanisms, it is characterized in that, described angle detection device (400) comprises interconnective gyroscope and electromagnetic sensor.
CN2012104248492A 2012-10-30 2012-10-30 Automatic focusing method and device Pending CN102902132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104248492A CN102902132A (en) 2012-10-30 2012-10-30 Automatic focusing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104248492A CN102902132A (en) 2012-10-30 2012-10-30 Automatic focusing method and device

Publications (1)

Publication Number Publication Date
CN102902132A true CN102902132A (en) 2013-01-30

Family

ID=47574451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104248492A Pending CN102902132A (en) 2012-10-30 2012-10-30 Automatic focusing method and device

Country Status (1)

Country Link
CN (1) CN102902132A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064231A (en) * 2013-02-01 2013-04-24 信利光电(汕尾)有限公司 Mobile equipment focusing method and device and mobile equipment
CN104038692A (en) * 2014-04-28 2014-09-10 深圳英飞拓科技股份有限公司 Camera back-focus adjustment method and camera back-focus adjustment device
CN104202527A (en) * 2014-09-17 2014-12-10 广州三星通信技术研究有限公司 Method and equipment for adjusting lens of portable terminals
CN105446055A (en) * 2014-06-16 2016-03-30 南昌欧菲光电技术有限公司 Camera module group and focusing method therefor
CN106131415A (en) * 2016-07-19 2016-11-16 广东欧珀移动通信有限公司 Image in 2 D code scan method, device and mobile terminal
CN108124098A (en) * 2016-11-29 2018-06-05 三星电子株式会社 Electronic equipment and the method for focusing on automatically

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848920A (en) * 2005-04-11 2006-10-18 奥林巴斯映像株式会社 Automatic focusing device and focusing method
CN1928690A (en) * 2005-09-08 2007-03-14 普立尔科技股份有限公司 Focusing method for image pickup device
CN1967370A (en) * 2005-11-15 2007-05-23 致伸科技股份有限公司 Automatic focusing method of digital camera
US20080031609A1 (en) * 2006-08-01 2008-02-07 Motorola, Inc. Devices and methods for determining orientation of a camera
CN101207718A (en) * 2006-12-20 2008-06-25 奥林巴斯映像株式会社 Camera capable of displaying moving image and control method of the same
US20080180563A1 (en) * 2007-01-26 2008-07-31 Primax Electronics Ltd. Auto focus method
CN101329494A (en) * 2007-06-22 2008-12-24 卡西欧计算机株式会社 Camera device and automatic focusing control method
CN102752506A (en) * 2011-04-20 2012-10-24 宏达国际电子股份有限公司 Portable electronic devices and auto-focus control methods for cameras therein

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848920A (en) * 2005-04-11 2006-10-18 奥林巴斯映像株式会社 Automatic focusing device and focusing method
CN1928690A (en) * 2005-09-08 2007-03-14 普立尔科技股份有限公司 Focusing method for image pickup device
CN1967370A (en) * 2005-11-15 2007-05-23 致伸科技股份有限公司 Automatic focusing method of digital camera
US20080031609A1 (en) * 2006-08-01 2008-02-07 Motorola, Inc. Devices and methods for determining orientation of a camera
CN101207718A (en) * 2006-12-20 2008-06-25 奥林巴斯映像株式会社 Camera capable of displaying moving image and control method of the same
US20080180563A1 (en) * 2007-01-26 2008-07-31 Primax Electronics Ltd. Auto focus method
CN101329494A (en) * 2007-06-22 2008-12-24 卡西欧计算机株式会社 Camera device and automatic focusing control method
CN102752506A (en) * 2011-04-20 2012-10-24 宏达国际电子股份有限公司 Portable electronic devices and auto-focus control methods for cameras therein

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064231A (en) * 2013-02-01 2013-04-24 信利光电(汕尾)有限公司 Mobile equipment focusing method and device and mobile equipment
CN104038692A (en) * 2014-04-28 2014-09-10 深圳英飞拓科技股份有限公司 Camera back-focus adjustment method and camera back-focus adjustment device
CN104038692B (en) * 2014-04-28 2017-10-27 深圳英飞拓科技股份有限公司 A kind of camera back focus method of adjustment and camera back focus adjusting apparatus
CN105446055A (en) * 2014-06-16 2016-03-30 南昌欧菲光电技术有限公司 Camera module group and focusing method therefor
CN104202527A (en) * 2014-09-17 2014-12-10 广州三星通信技术研究有限公司 Method and equipment for adjusting lens of portable terminals
CN104202527B (en) * 2014-09-17 2019-01-18 广州三星通信技术研究有限公司 For adjusting the device and method of camera lens in portable terminal
CN106131415A (en) * 2016-07-19 2016-11-16 广东欧珀移动通信有限公司 Image in 2 D code scan method, device and mobile terminal
CN108124098A (en) * 2016-11-29 2018-06-05 三星电子株式会社 Electronic equipment and the method for focusing on automatically
CN108124098B (en) * 2016-11-29 2021-11-05 三星电子株式会社 Electronic device and method for auto-focusing

Similar Documents

Publication Publication Date Title
CN102902132A (en) Automatic focusing method and device
US8531587B2 (en) Image pickup apparatus that provides focus control based on focusing information obtained from an interchangeable lens
JP5406830B2 (en) Camera system
USRE45692E1 (en) Automatic focusing apparatus and image pickup apparatus
CN104570569B (en) Projector automatic focusing method based on sensor
US8711229B2 (en) Image processing unit, image processing method and program
EP1494464A2 (en) Image capture device and associated method of compensating backlash
JP5967544B2 (en) Lens barrel, imaging device, and camera
JP5165099B2 (en) Imaging device and lens unit
US9046677B2 (en) Microscope system and autofocus method
CN109951644B (en) Control method, control device and electronic device
CN102833483B (en) Optical device and control method thereof
CN104570568A (en) Automatic focusing method for projector
US7518807B2 (en) Focus adjustment apparatus, image pickup apparatus, and control method
JP2009199049A5 (en)
JP2013083843A (en) Optical instrument, lens barrel, and automatic focus adjustment method
CN111491096A (en) Automatic image acquisition system, method, device and storage medium
KR101126295B1 (en) Camera module and estimation method of auto focus search range thereof
CN105578053A (en) Automatic focusing method, automatic focusing device, selfie stick, mobile terminal and self-timer system
CN110519504B (en) Electronic device, control device for electronic device, storage medium, and control method
CN106375671B (en) Control method, control device and electronic device
KR101764433B1 (en) Camera module and method for measuring distance using the same
US9229188B2 (en) Imaging apparatus and control method for same
JP5904930B2 (en) Lens unit and control method thereof
JP6576085B2 (en) Control device, method thereof, and control program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130130