CN103327254A - Automatic focusing method and focusing system thereof - Google Patents

Automatic focusing method and focusing system thereof Download PDF

Info

Publication number
CN103327254A
CN103327254A CN2013102724520A CN201310272452A CN103327254A CN 103327254 A CN103327254 A CN 103327254A CN 2013102724520 A CN2013102724520 A CN 2013102724520A CN 201310272452 A CN201310272452 A CN 201310272452A CN 103327254 A CN103327254 A CN 103327254A
Authority
CN
China
Prior art keywords
eyes
focusing
center position
coordinate
eye
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
CN2013102724520A
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.)
XIAMEN MEITUWANG TECHNOLOGY Co Ltd
Original Assignee
XIAMEN MEITUWANG TECHNOLOGY Co 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 XIAMEN MEITUWANG TECHNOLOGY Co Ltd filed Critical XIAMEN MEITUWANG TECHNOLOGY Co Ltd
Priority to CN2013102724520A priority Critical patent/CN103327254A/en
Publication of CN103327254A publication Critical patent/CN103327254A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses an automatic focusing method which comprises the following steps of (A) capturing image data obtained by a camera; (B) carrying out eye detection on the image data; (C) judging whether an eye is detected in the image data, If not, going to the step (A); if so, then entering into a step (D); (D) determining the corresponding center point position according to the position of the eye; (E) judging whether the position of the center point is needed to be refocused, if not, ending the step; if so, entering into a step (F); and (F) carrying out focusing automatically according to the position of the center point and storing the position as a new focusing center coordinate, and ending the step. By employing the above scheme, the eye in the image data is detected directly, and the failed focusing caused by the obtainment of a high frequency signal is avoided.

Description

A kind of Atomatic focusing method and focusing system
Technical field
The present invention relates to a kind of Atomatic focusing method and focusing system.
Background technology
Recently, along with the development of digital camera, mobile phone cam, become universal phenomenon so that take pictures.In general, the Shi Weineng that takes pictures highlights main body, so all can focus.Present most camera and mobile phone all possess the function of automatic focusing.
About in the Atomatic focusing method just like Chinese patent: ZL200810135623.4 discloses a kind of face automatic focusing method of digital image capture device.In this invention, mainly be to provide a kind of Atomatic focusing method of digital image capture device, digital image capture device focus during, focusing area can extend along people's face to the health direction to be contained more than the chest at least, so as to containing the high-frequency signal of neck span and clothes decorative pattern.
This inventive method has the following disadvantages: mainly be the high-frequency signal that calculates the focusing form in each digitized video in (1) said method; Obtain maximum from high-frequency signal; With the focusing mirror group of digital image capture device move to maximum the lens location of corresponding object distance, to finish focusing.When if the color of clothes just is the signal of high frequency in this situation, can cause focusing to clothes, rather than we the people on the face, so just causing our people's face is not main part, and clothes becomes main body, this just is equivalent to focus unsuccessfully.(2) can not carry out real-time preview in the said method, go again capture digital image but obtain first be bold little information, people's face positional information and azimuth information of people, carry out again final automatic focusing according to whether when last image, can cause and take pictures and the inconsistent problem of the effect of preview.
Summary of the invention
For solving the technical problem that exists in the prior art, the invention provides a kind of Atomatic focusing method based on eye detection and focusing system.When the color that solves the clothes that exists in the prior art was the signal of high frequency, the wrong situation of focus focusing can not appear yet, and the perfect real-time of focusing, solved preview and the inconsistent problem of effect of taking pictures and obtaining.
The present invention solves the problems of the technologies described above, and the technical scheme that adopts is: a kind of Atomatic focusing method is provided, may further comprise the steps: A) catch the view data of being obtained by camera; B) described view data is carried out eye detection; C) do you judge in the described view data and detect eyes? if not, then jump to steps A); If so, then enter step D); D) according to the corresponding center position of the location positioning of eyes; E) do you judge that described center position needs again to focus? if not, then finish; If so, then enter step F); F) automatically focus according to described center position and save as new focusing center point coordinate, finish.
As a kind of preferred version, described step D) further comprise: D1) when only detecting eyes, then the central point with these eyes is defined as described center position; D2) when detecting two eyes, then the mid point with two eye center point lines is defined as described center position.
As a kind of preferred version, described step e) further comprise: E1) the focusing center point coordinate of the original preservation of supposition is X (xOld, yOld), the new center point coordinate Y (xNew, yNew) of described eyes; E2) is the distance between Y coordinate points and the X coordinate points greater than predetermined value N? if so, then enter step F), otherwise directly finish.
As a kind of preferred version, the span of described predetermined value N is 1 to 50 distance between the pixel.
As a kind of preferred version, between described Y coordinate points and the X coordinate points apart from account form be:
N = ( xNew - xOld ) * ( xNew - xOld ) + ( yNew - yOld ) * ( yNew - yOld ) .
Invention solves the technical problem that exists in the prior art, and a kind of autofocus system also is provided, and comprising: image acquisition unit, and it is used for catching the view data of being obtained by camera; Image detecting element, it is used for described view data is carried out eye detection; The eye judgement unit, it is used for judging whether described view data detects eyes, and according to the corresponding center position of the location positioning of eyes; Automatic focusing unit, it is used for according to the center position of described eyes image being focused automatically.
As a kind of preferred version, when described image detecting element only detected eyes, described judgement unit then was defined as described center position with the central point of these eyes; When image detecting element detected two eyes, described eye judgement unit then was defined as described center position with the mid point of two eye center point lines.
As a kind of preferred version, when the focusing center point coordinate of original preservation is X (xOld, yOld) with the new center point coordinate Y (xNew of described eyes, yNew) distance between is during greater than predetermined value N, automatically focuses according to described center position and save as new focusing center point coordinate in described automatic focusing unit.
As a kind of preferred version, the span of described predetermined value N is 1 to 50 distance between the pixel.
As a kind of preferred version, between described Y coordinate and the X coordinate apart from account form be:
N = ( xNew - xOld ) * ( xNew - xOld ) + ( yNew - yOld ) * ( yNew - yOld ) .
There are following advantage in Atomatic focusing method of the present invention and focusing system with respect to prior art: Atomatic focusing method of the present invention, directly the eyes in the view data are detected, and avoid because obtaining of high-frequency signal caused focusing unsuccessfully.Simultaneously, when the ocular data of crawl view data, embody real-time, take pictures consistent with the effect of preview.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of a part of the present invention, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is Atomatic focusing method flow chart of the present invention;
Fig. 2 is the system block diagram of autofocus system of the present invention.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer, clear, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, Atomatic focusing method of the present invention may further comprise the steps:
Steps A): catch the view data of being obtained by camera.
At present, most computing equipment (such as PC, portable terminal) all is furnished with camera.This step then is to obtain the view data of being obtained by camera, data format may be a kind of in the following data format: 16BE555 (the BE form of RGB555), 16LE555 (the LE form of RGB555), 16LE5551 (the LE form of RGB5551), 16BE565 (the BE form of RGB565), 16LE565 (the LE form of RGB565), the 24RGB(RGB order), the 24BGR(BGR order), the 32ARGB(ARGB order), the 32BGRA(BGRA order), the 32ABGR(ABGR order), the 32RGBA(RGBA order), the 64ARGB(ARGB order, each passage accounts for 16), the 48RGB(RGB order, each passage accounts for 16), the 32AlphaGray(AGray order, each passage accounts for 16), 16Gray(only has Gray, each passage accounts for 16), the 30RGB(RGB order, each passage accounts for 10), 422YpCbCr8,4444YpCbCrA8,4444YpCbCrA8R, 4444AYpCbCr8,4444AYpCbCr16,444YpCbCr8,422YpCbCr16,22YpCbCr10,444YpCbCr10,420YpCbCr8Planar, 420YpCbCr8PlanarFullRange, 422YpCbCr_4A_8BiPlanar, 420YpCbCr8BiPlanarVideoRange, YCbCrBiPlanar, the forms such as 422YpCbCr8_yuvs.
Step B): described view data is carried out eye detection.
Be prior art to eye detection in view data, such as the row eye detection mainly is to use known technology.For example: openly corresponding technology is arranged among the An Algorithm for real time eye detection in face images (T.D ' Orazio, M.Leo, G.Cicirelli, A.Distante).
Step C): judge in the described view data to detect eyes? if not, then jump to steps A); If so, then enter step D).
If in view data, do not detect eyes, then jump to steps A) again obtain the view data obtained by camera, camera can grasp the view data of same position or diverse location again; If detect eyes in the view data, then enter step D).
Step D): according to the corresponding center position of the location positioning of eyes.
Specifically, when only detecting eyes, then the central point with these eyes is defined as described center position; When detecting two eyes, then the mid point with two eye center point lines is defined as described center position.
Step e): judge that described center position needs again to focus? if not, then finish; If so, then enter step F).
This step need to judge whether needs are focused again according to described center position, if this center position does not need again to focus, and process ends then; If need again automatically focusing, then enter step F) automatic focusing flow process.Specifically, can may further comprise the steps:
E1) the focusing center point coordinate of the original preservation of supposition is X (xOld, yOld), the new center point coordinate Y (xNew, yNew) of described eyes;
E2) is the distance between Y coordinate points and the X coordinate points greater than predetermined value N? if so, then enter step F), otherwise directly finish.
Above-mentioned N value span is 1 to 50 distance between the pixel, preferred 10 pixels.Between Y coordinate points and the X coordinate points apart from account form be:
N = ( xNew - xOld ) * ( xNew - xOld ) + ( yNew - yOld ) * ( yNew - yOld ) .
Step F): automatically focus and save as new focusing center point coordinate according to described center position, finish.
Adopt the method for automatic focusing of the present invention, directly people's eyes detected, avoid in the prior art causing focusing unsuccessfully because of the erroneous judgement to high-frequency signal.The method of simultaneously automatic focusing of the present invention embodies the real-time characteristics, takes pictures consistent with the effect of preview.
As shown in Figure 2, the present invention also provides a kind of autofocus system.This focusing system comprises, image acquisition unit, image detecting element, eye judgement unit, the automatic unit of focusing.Image acquisition unit is used for catching the view data of being obtained by camera; Image detecting element is used for described view data is carried out eye detection; The eye judgement unit is used for judging whether described view data detects eyes, and according to the corresponding center position of the location positioning of eyes; Automatically the focusing unit is used for according to the center position of described eyes image being focused automatically.
For image detecting element and eye judgement unit, when described image detecting element only detected eyes, the eye judgement unit then was defined as described center position with the central point of these eyes; When image detecting element detected two eyes, described eye judgement unit then was defined as described center position with the mid point of two eye center point lines.
For automatic focusing unit, when the focusing center point coordinate of original preservation is X (xOld, yOld) with the new center point coordinate Y (xNew of described eyes, yNew) distance between is during greater than predetermined value N, automatically focuses according to described center position and save as new focusing center point coordinate in the unit of automatically focusing.The span of predetermined value N is 1 to 50 distance between the pixel.Between Y coordinate and the X coordinate apart from account form be:
N = ( xNew - xOld ) * ( xNew - xOld ) + ( yNew - yOld ) * ( yNew - yOld ) .
Above-mentioned explanation illustrates and has described the preferred embodiments of the present invention, as previously mentioned, be to be understood that the present invention is not limited to the disclosed form of this paper, should not regard the eliminating to other embodiment as, and can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein, change by technology or the knowledge of above-mentioned instruction or association area.And the change that those skilled in the art carry out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection range of claims of the present invention.

Claims (10)

1. an Atomatic focusing method is characterized in that, may further comprise the steps:
A) catch the view data of being obtained by camera;
B) described view data is carried out eye detection;
C) do you judge in the described view data and detect eyes? if not, then jump to steps A); If so, then enter step D);
D) according to the corresponding center position of the location positioning of eyes;
E) do you judge that described center position needs again to focus? if not, then finish; If so, then enter step F);
F) automatically focus according to described center position and save as new focusing center point coordinate, finish.
2. Atomatic focusing method according to claim 1 is characterized in that, described step D) further comprise:
D1) when only detecting eyes, then the central point with these eyes is defined as described center position;
D2) when detecting two eyes, then the mid point with two eye center point lines is defined as described center position.
3. Atomatic focusing method according to claim 1 is characterized in that, described step e) further comprise:
E1) the focusing center point coordinate of the original preservation of supposition is X (xOld, yOld), the new center point coordinate Y (xNew, yNew) of described eyes;
E2) is the distance between Y coordinate points and the X coordinate points greater than predetermined value N? if so, then enter step F), otherwise directly finish.
4. Atomatic focusing method according to claim 3 is characterized in that, the span of described predetermined value N is 1 to 50 distance between the pixel.
5. according to wanting profit to require 3 described Atomatic focusing methods, it is characterized in that, between described Y coordinate points and the X coordinate points apart from account form be:
N = ( xNew - xOld ) * ( xNew - xOld ) + ( yNew - yOld ) * ( yNew - yOld ) .
6. an autofocus system is characterized in that, comprising:
Image acquisition unit, it is used for catching the view data of being obtained by camera;
Image detecting element, it is used for described view data is carried out eye detection;
The eye judgement unit, it is used for judging whether described view data detects eyes, and according to the corresponding center position of the location positioning of eyes;
Automatic focusing unit, it is used for according to the center position of described eyes image being focused automatically.
7. autofocus system according to claim 6 is characterized in that, when described image detecting element only detected eyes, described eye judgement unit then was defined as described center position with the central point of these eyes; When image detecting element detected two eyes, described eye judgement unit then was defined as described center position with the mid point of two eye center point lines.
8. autofocus system according to claim 6, it is characterized in that, when the focusing center point coordinate of original preservation is X (xOld, yOld) with the new center point coordinate Y (xNew of described eyes, yNew) distance between is during greater than predetermined value N, automatically focuses according to described center position and save as new focusing center point coordinate in described automatic focusing unit.
9. autofocus system according to claim 8 is characterized in that, the span of described predetermined value N is 1 to 50 distance between the pixel.
10. autofocus system according to claim 8 is characterized in that, between described Y coordinate and the X coordinate apart from account form is:
N = ( xNew - xOld ) * ( xNew - xOld ) + ( yNew - yOld ) * ( yNew - yOld ) .
CN2013102724520A 2013-07-01 2013-07-01 Automatic focusing method and focusing system thereof Pending CN103327254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102724520A CN103327254A (en) 2013-07-01 2013-07-01 Automatic focusing method and focusing system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102724520A CN103327254A (en) 2013-07-01 2013-07-01 Automatic focusing method and focusing system thereof

Publications (1)

Publication Number Publication Date
CN103327254A true CN103327254A (en) 2013-09-25

Family

ID=49195759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102724520A Pending CN103327254A (en) 2013-07-01 2013-07-01 Automatic focusing method and focusing system thereof

Country Status (1)

Country Link
CN (1) CN103327254A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491305A (en) * 2013-10-07 2014-01-01 厦门美图网科技有限公司 Automatic focusing method and automatic focusing system based on skin color
CN104065880A (en) * 2014-06-05 2014-09-24 惠州Tcl移动通信有限公司 Processing method and system for automatically taking pictures based on eye tracking technology
CN105100578A (en) * 2014-05-05 2015-11-25 南昌欧菲光电技术有限公司 Image processing system and image processing method thereof
CN105704360A (en) * 2014-11-25 2016-06-22 索尼公司 Auxiliary automatic focusing method, device and electronic device
CN103491305B (en) * 2013-10-07 2016-11-30 厦门美图网科技有限公司 A kind of Atomatic focusing method based on the colour of skin and autofocus system
CN106878614A (en) * 2017-01-17 2017-06-20 深圳市金立通信设备有限公司 A kind of image pickup method and terminal
CN108234872A (en) * 2018-01-03 2018-06-29 上海传英信息技术有限公司 Mobile terminal and its photographic method
CN108960040A (en) * 2018-05-07 2018-12-07 国网浙江省电力有限公司信息通信分公司 Eye detection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002162559A (en) * 2000-11-24 2002-06-07 Olympus Optical Co Ltd Imaging device
CN1924689A (en) * 2005-08-31 2007-03-07 株式会社尼康 Autofocus apparatus
CN101241296A (en) * 2007-02-09 2008-08-13 佳能株式会社 Focusing device, focusing method and image-capturing device provided with the focusing device
CN103493471A (en) * 2011-04-23 2014-01-01 奥林巴斯映像株式会社 Image capturing apparatus and image capturing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002162559A (en) * 2000-11-24 2002-06-07 Olympus Optical Co Ltd Imaging device
CN1924689A (en) * 2005-08-31 2007-03-07 株式会社尼康 Autofocus apparatus
CN101241296A (en) * 2007-02-09 2008-08-13 佳能株式会社 Focusing device, focusing method and image-capturing device provided with the focusing device
CN103493471A (en) * 2011-04-23 2014-01-01 奥林巴斯映像株式会社 Image capturing apparatus and image capturing method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491305A (en) * 2013-10-07 2014-01-01 厦门美图网科技有限公司 Automatic focusing method and automatic focusing system based on skin color
CN103491305B (en) * 2013-10-07 2016-11-30 厦门美图网科技有限公司 A kind of Atomatic focusing method based on the colour of skin and autofocus system
CN105100578A (en) * 2014-05-05 2015-11-25 南昌欧菲光电技术有限公司 Image processing system and image processing method thereof
CN104065880A (en) * 2014-06-05 2014-09-24 惠州Tcl移动通信有限公司 Processing method and system for automatically taking pictures based on eye tracking technology
CN105704360A (en) * 2014-11-25 2016-06-22 索尼公司 Auxiliary automatic focusing method, device and electronic device
CN106878614A (en) * 2017-01-17 2017-06-20 深圳市金立通信设备有限公司 A kind of image pickup method and terminal
CN108234872A (en) * 2018-01-03 2018-06-29 上海传英信息技术有限公司 Mobile terminal and its photographic method
CN108960040A (en) * 2018-05-07 2018-12-07 国网浙江省电力有限公司信息通信分公司 Eye detection method
CN108960040B (en) * 2018-05-07 2021-09-28 国网浙江省电力有限公司信息通信分公司 Human eye detection method

Similar Documents

Publication Publication Date Title
US11665427B2 (en) Still image stabilization/optical image stabilization synchronization in multi-camera image capture
US11102417B2 (en) Target object capturing method and device, and video monitoring device
CN103327254A (en) Automatic focusing method and focusing system thereof
CN101309367B (en) Imaging apparatus
CN113038018B (en) Method and device for assisting user in shooting vehicle video
US11024052B2 (en) Stereo camera and height acquisition method thereof and height acquisition system
WO2019221013A4 (en) Video stabilization method and apparatus and non-transitory computer-readable medium
US20110170740A1 (en) Automatic image capture
JP5532026B2 (en) Display device, display method, and program
WO2019126908A1 (en) Image data processing method, device and equipment
JP2013533672A (en) 3D image processing
US20160189392A1 (en) Object tracking apparatus, control method therefor and storage medium
CN105191278A (en) Method for correcting image from wide-angle lens and device therefor
CN110868547A (en) Photographing control method, photographing control device, electronic equipment and storage medium
JP2014123805A (en) Image processing apparatus, imaging apparatus, image processing program, and image processing method
CN109800661A (en) A kind of road Identification model training method, roads recognition method and device
CN105472263B (en) Image acquisition method and the image capture equipment for using the method
CN106791353A (en) The methods, devices and systems of auto-focusing
CN109120856B (en) Camera shooting method and device
CN113438508A (en) Video data processing method, device, equipment, medium and program product
CN110930340B (en) Image processing method and device
CN107172383B (en) A kind of Obj State detection method and device
JP6483661B2 (en) Imaging control apparatus, imaging control method, and program
CN113938578A (en) Image blurring method, storage medium and terminal device
US20100315523A1 (en) Object detection using an in-sensor detector

Legal Events

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

Application publication date: 20130925

RJ01 Rejection of invention patent application after publication