CN102595049A - Automatic focusing control system and method - Google Patents

Automatic focusing control system and method Download PDF

Info

Publication number
CN102595049A
CN102595049A CN2012100711659A CN201210071165A CN102595049A CN 102595049 A CN102595049 A CN 102595049A CN 2012100711659 A CN2012100711659 A CN 2012100711659A CN 201210071165 A CN201210071165 A CN 201210071165A CN 102595049 A CN102595049 A CN 102595049A
Authority
CN
China
Prior art keywords
image
module
focusing
imaging device
signal intensity
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.)
Granted
Application number
CN2012100711659A
Other languages
Chinese (zh)
Other versions
CN102595049B (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201210071165.9A priority Critical patent/CN102595049B/en
Publication of CN102595049A publication Critical patent/CN102595049A/en
Application granted granted Critical
Publication of CN102595049B publication Critical patent/CN102595049B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a field of automatic optical focusing and provides an automatic focusing control system and a method. The method includes the steps of A. adjusting a distance between an imaging device and a picture acquisition position more than once by a focusing module; B. using the imaging device to acquire images after an image acquisition module receives an image acquisition command, so that images are obtained; C. filtering out interference signals in every image after an image processing module receives images, and obtaining the best focusing position through analysis according to the intensity of effective signals in every image; and D. controlling the imaging device to move to the best focusing position after the focusing module receives a command that the best focusing position is focused. The system comprises the focusing module, the image acquisition module and the image processing module. The system and the method enable automatic focusing to be precise.

Description

A kind of auto focus control system and method
Technical field
The present invention relates to optics automatic focus field, more particularly, relate to a kind of auto focus control system and method.
Background technology
Automatic focus is one of key technology in the imaging system; It is the key factor of the decision picture quality that imaging device became; It is the first step of obtaining picture rich in detail; Focusing performance depends on the accuracy and the validity of the function of focusing, and the function of promptly focusing must have that unbiasedness is good, unimodality is strong and usefulness such as noiseproof feature is strong.
In a kind of prior art; The manual adjustments imaging device with adopt the distance of figure position after, also be manual focusing, the camera lens of imaging device is moved; Gather many images; Definition to many images gathering is carried out two point focusing filter function analyses, draws self-focusing focus point, and imaging device is adopted figure at focus point.In this technical scheme; Owing to have interference signal in the image of gathering, the signal intensity profile tracing pattern that each focusing is come out is different, simultaneously; The definition of image is analyzed inaccuracy; Make that the best focus position of this scheme gained is not the optimum position of actual focusing, thereby make the automatic focus inaccuracy that what finally cause collecting is image blurring unclear; In addition, utilize the focal length of manual adjustments imaging device,, make that focusing is inaccurate because there is error in human eye; In addition, a large amount of hash of storage in the system, the memory space of waste system.
Therefore, the auto focus control system and method that needs automatic focus position, a kind of accurate location.
Summary of the invention
The object of the present invention is to provide a kind of auto focus control system and method, be intended to solve the problem that prior art imaging device automatic focus position inaccuracy causes focusing on failure.
In order to realize the object of the invention, the auto focus control system comprises focusing module, adopts module and image processing module.Said focusing module, the distance that is used to regulate imaging device Yu adopts the figure position, and regulate imaging device to best focus position; The said module of adopting is used to control the imaging device images acquired; Said image processing module is used for the interference signal of every image of filtering, according to the size of useful signal intensity in every image, obtains best focus position through analyzing.
Wherein, said image processing module comprises: image filtering module and image analysis module.Said image filtering module is used for utilizing multiple spot to focus on the interference signal of every image of filter function filtering, gets the useful signal intensity of every image; Said image analysis module is used for the distribution according to useful signal strength distribution curve signal strength signal intensity, gets best focus position.
Wherein, said multiple spot focusing filter function is that any multiple spot focuses on filter function.Preferably, said multiple spot focusing filter function is 4 a multiple spot focusing filter function.
Wherein, the said module control imaging device of adopting can be gathered coloured image, also can gather gray level image.Said image processing module comprises: image conversion module; Said image conversion module is used for converting the coloured image of adopting the module collection into gray level image.
Wherein, but said image processing module match one or more signal intensity profile curve.The one or more signal intensity profile curve that said signal intensity profile curve fits to according to the size of useful signal intensity.Wherein, useful signal intensity is the signal strength signal intensity of this image, also is the signal strength signal intensity of the image behind the filtering interference signals.
Wherein, said image processing module through the unimodality and the monotonicity of analyte signal intensity distribution curve, obtains best focus position.
Wherein, said focusing module control imaging device is focused with the step-length Cr moving lens of creeping, and adopts module control imaging device and gathers an image at each focal length place.
Wherein, described system also comprises: the image clean-up module.Said image clean-up module is used for clearing up the image of image processing module image processing.
Technique scheme has realized the accurate location of automatic focus position, thereby provides the foundation for photographing distinct image.
In order better to realize goal of the invention, the present invention also provides a kind of self-focusing control method, comprising: steps A. and focusing module is repeatedly regulated imaging device and the distance of adopting the figure position, and the images acquired instruction is issued adopt module; Step B. adopts module after receiving the images acquired instruction, utilizes the imaging device images acquired, gets image; Step C. image processing module is after receiving image, and the interference signal in every image of filtering according to the size of useful signal intensity in every image, through analyze obtaining best focus position, and will be focused to the instruction of best focus position and issue focusing module; Step D. focusing module receives focuses to the instruction of best focus position, and the control imaging device moves to best focus position.
Wherein, the said image of adopting the module collection can be that coloured image also can be a gray level image.
Wherein, image processing module can be according to the image match one or more signal intensity profile curve of filtering interference signals.Size match one or more signal intensity profile curve on two-dimensional space of the useful signal intensity of the image (signal strength signal intensity of image filtering interference signals after be called the useful signal intensity of image or abbreviate the signal strength signal intensity of image) of wherein said intensity curves after according to filtering interference signals.
Wherein, said step C comprises: after step C1. image processing module receives image, utilize multiple spot to focus on the interference signal in every image of filter function filtering, get the useful signal intensity of every image; Step C2. image processing module, according to the distribution of signal strength signal intensity in the useful signal strength distribution curve, best focus position, and will focus to the instruction of best focus position and issue focusing module.
Wherein, said step C2 comprises: step C21. image processing module is according to signal strength signal intensity fitted signal intensity profile curve; The signal intensity profile curve of step C22. image processing module screening accord with normal distribution; Step C23. image processing module utilizes monotonicity evaluation function and unimodality evaluation function, estimates the signal intensity profile curve of accord with normal distribution, gets the optimum signal strength distribution curve; Step C24. image processing module is analyzed the optimum signal strength distribution curve, gets best focus position; Step C25. image processing module will be focused to the instruction of best focus position and issued focusing module.
Preferably, said unimodality evaluation function is:
Preferably, said monotonicity evaluation function is:
Figure BSA00000686012800032
The collection position of the image that preferably, the peak of said optimum signal strength distribution curve is corresponding is a best focus position.
Wherein, also comprising after the said step B: step B '. image conversion module converts coloured image to gray level image after receiving coloured image.
Wherein, also comprise after the said step D: step e., focusing module focuses to the instruction of best focus position the image in the image clean-up module cleaning image processing module when receiving.
Above-mentioned auto focus control system makes automatic focus more accurate through filtering interference signals; In addition, image conversion module converts coloured image into gray level image, adopts the rubbish in the cleaning module cleaning system automatically, makes that the available memory space of system is bigger.Simultaneously, above-mentioned self-focusing control method filtering interference signal, the image behind the filtering interference signals is analyzed; It is more accurate to analyze; Make the gained focal position more accurate, in addition, above-mentioned control method converts coloured image into gray level image; And image in the imaging device cleared up, practiced thrift the memory space of imaging device greatly.
Description of drawings
Fig. 1 is the structural representation of auto focus control system in one embodiment of the invention;
Fig. 2 is the structural representation of image processing module in one embodiment of the invention;
Fig. 3 is the structural representation of image processing module in another embodiment of the present invention;
Fig. 4 is the structural representation of auto focus control system in another embodiment of the present invention;
Fig. 5 is an autofocus control method flow chart in one embodiment of the invention;
Fig. 6 is a method flow of gathering many images in one embodiment of the invention;
Fig. 7 is an image process method flow chart in one embodiment of the invention;
Fig. 8 is the method flow diagram that obtains best focus position in one embodiment of the invention;
Fig. 9 is the method flow diagram of the signal intensity profile curve of match in one embodiment of the invention;
Figure 10 is a self-focusing control method flow process in another embodiment of the present invention;
Figure 11 is a self-focusing control method flow process in another embodiment of the present invention;
Figure 12 is a self-focusing control method flow process in another embodiment of the present invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.
Fig. 1 shows the structural representation of auto focus control system in one embodiment of the invention.This system comprises:
(1) focusing module 1, the distance that is used to regulate imaging device Yu adopts the figure position, and regulate imaging device to best focus position.
(2) adopt module 2, be used to control the imaging device images acquired.
(3) image processing module 3, are used for the interference signal of every image of filtering, according to the size of useful signal intensity in every image, obtain best focus position through analyzing.
Imaging device in this enforcement is no particular restriction, and typical CCD camera gets final product.Be preferably the combination of microscope and CCD.In the present embodiment, focusing module 1 is regulated imaging device and is adopted the distance between the figure position, and the instruction of images acquired is issued adopt module 2; Adopt after module 2 receives the instruction of images acquired, control imaging device images acquired, and the image of gathering issued image processing module 3; After image processing module receives image; Interference signal in the filtering image, and the signal intensity profile curve of the image after the match filtration, the analyte signal intensity distribution curve; Best focus position, and will focus to the instruction of best focus position and issue focusing module 1; Focusing module 1 receives focuses to the instruction of best focus position, regulates imaging device to best focus position.Wherein, said focusing module 1 control imaging device moves the distance that is used for repeatedly regulating imaging device Yu adopts the figure position, also i.e. focusing; The every adjusting of focal length is once adopted module 2 control imaging devices and is gathered an image, regulates repeatedly focal length, gathers many images, the image of many images.
In the present embodiment, filtering interference signals can get the useful signal in every image, in every image the signal value of useful signal and be the signal strength signal intensity of every image.According to the signal strength signal intensity of many images, the fitted signal intensity profile curve.
In the present embodiment, adopt module 1 control imaging device and can gather coloured image, also can gather gray level image.Preferably, adopt module 1 control imaging device and gather gray level image.
In the present embodiment, focusing module may command imaging device moves; Also fixing imaging device is adopted graph region and is moved.Preferably, in the present embodiment, focusing module control imaging device is focused with the step-length Cr moving lens of creeping, and adopts module control imaging device and gathers an image at each focal length place.
In the technical scheme of present embodiment, image processing module, the interference signal of filtering image makes that the image behind the filtering interference signals is more reliable, thus the data that guaranteed the analysis of participation successive image are more accurate, make that finally self-focusing position is more accurate.Simultaneously, focusing module control imaging device moving lens is focused, and has reduced the error of manual adjustment, has guaranteed the precision of regulating.
Need to prove that the annexation between the said system is annexation in logic, represent the transmission of each intermodule instruction.
Based on the embodiment of Fig. 1, the present invention proposes an embodiment, said image processing module match one bars strength distribution curve.Said image processing module filters the interference signal of image once, utilizes the signal strength signal intensity of all images after filtering, and simulates a curve, is the signal intensity profile curve.
Based on the embodiment of Fig. 1, the present invention proposes another embodiment, said many barss of image processing module match strength distribution curve.Said image processing module filters the interference signal of image once, utilizes the signal strength signal intensity of all images after filtering, and simulates a curve, is the signal intensity profile curve; The interference signal of image processing module multiple times of filtration image, every filtration once, curve of match, get final product many barss strength distribution curve.
In the present embodiment, many barss of match strength distribution curve utilizes many barss strength distribution curve to come comparative analysis, thereby makes that the automatic focus position of final gained is more accurate.
Focus on filter function based on multiple spot, the present invention proposes an embodiment, and multiple spot focuses on filter function and adopts two point focusing filter functions:
f(x,y)=|g(x+s,y+s)+g(x-s,y-s)-2g(x,y)|≥L。
Wherein, g (x, y) presentation video mid point (x, the pixel value of y) locating; S is a constant, the expression step-length, and L is a constant, the expression threshold value.When f (x, y)<during L, this point of filtering; When f (x, y) >=during L, keep this point.
Focus on filter function based on multiple spot, the present invention proposes another embodiment, and multiple spot focuses on filter function and adopts four point focusing filter functions:
f(x,y)=|g(x+s,y)+g(x-s,y)+g(x,y+sp)+g(x,y-sp)-4g(x,y)|≥L。
Wherein, g (x, y) presentation video mid point (x, the pixel value of y) locating; S and sp are constant, all represent step-length, and s and sp can be the same or different; L is a constant, the expression threshold value.When f (x, y)<during L, this point of filtering, (x y) is interference signal to g that also promptly should the place; (x, y) >=during L, keep this point, (x y) is useful signal to g that also promptly should the place as f.
In above-mentioned two embodiment, with f (x, y) as g (x, the signal value of y) locating, add up useful signal in every image signal value with, can get the signal strength signal intensity of every image.Under same step-length and threshold value, utilize the signal strength signal intensity matched curve of many images, get a bars strength distribution curve.Change step-length or threshold value, utilize the signal strength signal intensity matched curve of many images, get the various signals strength distribution curve, the analyte signal intensity distribution curve gets best focus position.Wherein, through the unimodality and the monotonicity of analyte signal intensity distribution curve, get best focus position.
The technical scheme of above-mentioned two embodiment is utilized multiple spot to focus on filter function and is filtered interference signal, and filtering interference signals keeps useful signal, guarantees the reliability of subsequent analysis; Simultaneously, adopt many barss strength distribution curve to get best focus position, prevented that reasons such as error from causing the signal intensity profile curve inaccuracy of match, the best focus position that causes drawing is inaccurate, thereby makes the inaccurate phenomenon of automatic focus.
Fig. 2 shows the structural representation of image processing module in one embodiment of the invention, and is as shown in the figure, and image processing module comprises:
(1) the image filtering module 31, are used for utilizing multiple spot to focus on the interference signal of every image of filter function filtering, get the useful signal intensity of every image.
(2) image analysis module 32, are used for the distribution according to useful signal strength distribution curve signal strength signal intensity, get best focus position.
In the present embodiment; After image filtering module 31 receives image; Utilize the interference signal of multiple spot focusing filter function filtering image, get the signal value of useful signal, and the signal value of the useful signal in every image of statistical analysis; Get the signal strength signal intensity of every image, and the signal strength signal intensity of every image is issued image analysis module 32; After image analysis module 32 receives the signal strength signal intensity of every image, according to signal strength signal intensity fitted signal intensity profile curve, the analyte signal intensity distribution curve, best focus position, and will focus to the instruction of best focus position and issue focusing module.
In the present embodiment, utilizing multiple spot to focus on filter function is eight point focusing filter functions:
f ( x , y ) = | g ( x + s , y ) + g ( x - s , y ) + g ( x + 2 2 s , y + 2 2 s ) + g ( x - 2 2 s , y + 2 2 s ) + g ( x , y + p ) + g ( x , y - p ) + g ( x - 2 2 s , y + 2 2 s ) + g ( x - 2 2 s , y - 2 2 s ) - 8 g ( x , y ) | ≥ L
, wherein, g (x, y) presentation video mid point (x, the pixel value of y) locating; S is a constant, the expression step-length; L is a constant, the expression threshold value.When f (x, y)<during L, this point of filtering, (x y) is interference signal to g that also promptly should the place; (x, y) >=during L, keep this point, (x y) is useful signal to g that also promptly should the place as f.With g (x; Y) as the signal value of the useful signal at this place; Add up the useful signal in every image signal value and average as the signal strength signal intensity of image, also be
Figure BSA00000686012800062
wherein, g (x; Y) be the image useful signal, M * N is the number of this image useful signal.
In the present embodiment, the signal strength signal intensity of many images adopting same step-length and same threshold value is carried out match, a bars strength distribution curve; Change step-length or threshold value, the signal strength signal intensity of many images, to the signal strength signal intensity of many images carry out match the signal intensity profile curve of many images.
Technical scheme of the present invention utilizes multiple spot to focus on filter function, comprehensive g (x, y) each point on every side; (x y) with on every side pixel difference, thereby accurately judges g (x to take into full account g; Y) strong and weak with signal on every side, then, utilize the very approaching signaling point of threshold filtering pixel difference; Thereby the point that guarantees to keep has improved the precision of filtering signals more near real useful signal, thereby guarantees the reliability of filtered data.
Fig. 3 shows the structural representation of image processing module in another embodiment of the present invention, and said module comprises:
(1) image conversion module 30, are used for converting coloured image into gray level image;
(2) the image filtering module 31, are used to utilize multiple spot to focus on the interference signal of filter function filtering image, get the signal value of useful signal, and the signal value of the useful signal in every image of statistical analysis, get the signal strength signal intensity of every image;
(3) image analysis module 32, are used to receive signal strength signal intensity, and according to signal strength signal intensity fitted signal intensity profile curve, the analyte signal intensity distribution curve gets best focus position
In the present embodiment, imaging device is gathered coloured image.After image conversion module receives coloured image, convert coloured image into gray level image, and the image after will changing is issued image filtering module 31; After image filtering module 31 receives image; Utilize multiple spot to focus on the interference signal of filter function filtering image; Get the signal value of useful signal; And the signal value of the useful signal in every image of statistical analysis, the signal strength signal intensity of every image, and the signal strength signal intensity of every image is issued image analysis module 32; After image analysis module 32 receives the signal strength signal intensity of every image, according to signal strength signal intensity fitted signal intensity profile curve, the analyte signal intensity distribution curve, best focus position, and will focus to the instruction of best focus position and issue focusing module.
Described image conversion module 30 is converted into gray level image with coloured image, and the processing method that this coloured image is converted into gray level image can be in maximum value process, mean value method and the weighted average method any one.The technical scheme of present embodiment, image conversion module 30 convert coloured image into gray level image, and the system that makes is not only applicable to the gray level image analysis, is applicable to the coloured image analysis yet, makes that the applicability of system is wider; Simultaneously, also practiced thrift the memory space of system greatly.
Fig. 4 shows the structural representation of auto focus control system in another embodiment of the present invention, and said system comprises:
(1) focusing module 1, the distance that is used to regulate imaging device Yu adopts the figure position, and regulate imaging device to best focus position.
(2) adopt module 2, be used to control the imaging device images acquired.
(3) image processing module 3, are used for the interference signal of every image of filtering, according to the size of useful signal intensity in every image, obtain best focus position through analyzing.
(4) the image clean-up module 4, are used for clearing up the image of image processing module 3.
In the present embodiment; After focusing module 1 is regulated imaging device and adopted the distance of figure position, the instruction of images acquired issued adopt module 2, adopt after module 2 receives the instruction of images acquired; Control imaging device images acquired; Focusing module 1 every adjusting imaging device moves once, adopts module 2 and gathers an image, and all images of gathering is issued image processing module 3; After image processing module 3 receives image; Filter the interference signal of filtering image; And the signal intensity profile curve of the image after the match filtration, the analyte signal intensity distribution curve gets best focus position; And will focus and issue focusing module to the instruction of best focus position, image clean-up module 4 is issued in the instruction of cleaning image; Focusing module 1 is regulated imaging device to best focus position; Image in the image clean-up module 4 cleaning image processing modules 3.
In the technical scheme of present embodiment, focusing module 1 has been realized the automatic focusing of imaging device, makes that focusing is more accurate; Simultaneously, the interference signal in the image processing module filtering image makes graphical analysis more accurate; Thereby the best focus position that obtains is more accurate; In addition, the image clean-up module 4 of present embodiment has been removed the data that do not re-use in the system, thereby has practiced thrift the memory space of system greatly.
In order better to realize the object of the invention, the present invention also comprises a kind of self-focusing control method.
Fig. 5 shows autofocus control method flow chart in one embodiment of the invention, and this method comprises: step S1. focusing module is repeatedly regulated imaging device and is adopted the distance of figure position, and the images acquired instruction is issued adopt module.Step S2. adopts module after receiving the images acquired instruction, utilizes the imaging device images acquired, gets image.Step S3. image processing module is after receiving image, and the interference signal in every image of filtering according to the size of useful signal intensity in every image, through analyze obtaining best focus position, and will be focused to the instruction of best focus position and issue focusing module.Step S4. focusing module is focused to the instruction of best focus position in reception, and the control imaging device moves to best focus position.
In the present embodiment, imaging device can be gathered coloured image, also can gather gray level image.Preferably, in the present embodiment, imaging device is gathered coloured image.Wherein, described imaging device is for adopting the device of figure arbitrarily, like camera, CCD and microscopical combination, mobile phone etc.
In the present embodiment, imaging device can move; When imaging device fixedly the time, removable position of adopting the figure position is with the distance between adjusting imaging device and the Cai Tu position.Preferably, in the present embodiment, imaging device is regulated the distance between imaging device and the Cai Tu position with the step-length Cr moving lens of creeping, and also promptly focuses, adopt module control imaging device and gather an image at each focal length place, thereby many images.
The technical scheme of present embodiment, filtering interference signals for the successive image processing provides reliable analysis data, thereby makes that focusing is more accurate.In addition, realize automatic focusing, avoid the inaccuracy of manual focusing, thereby realized accurate automatic focus through the distance of controlling imaging device adjusting imaging device and adopt between the figure position.
Focus on filter function to the multiple spot among Fig. 5 embodiment, the present invention proposes an embodiment.It is two point focusing filter functions that multiple spot focuses on filter function, and it is: f (x, y)=| g (x+s, y+s)+g (x-s, y-s)-2g (x, y) | >=L.
Wherein, g (x, y) presentation video mid point (x, the pixel value of y) locating; S is a constant, the expression step-length, and L is a constant, the expression threshold value.When f (x, y)<during L, this point of filtering; When f (x, y) >=during L, keep this point.
Multiple spot among Fig. 5 embodiment focuses on filter function, and the present invention proposes another embodiment.Multiple spot focuses on filter function and adopts four point focusing filter functions:
f(x,y)=|g(x+s,y)+g(x-s,y)+g(x,y+sp)+g(x,y-sp)-4g(x,y)|≥L。
Wherein, g (x, y) presentation video mid point (x, the pixel value of y) locating; S and sp are constant, all represent step-length, and s and sp can be the same or different; L is a constant, the expression threshold value.When f (x, y)<during L, this point of filtering, (x y) is interference signal to g that also promptly should the place; (x, y) >=during L, keep this point, (x y) is useful signal to g that also promptly should the place as f.
In based on embodiment shown in Figure 5, after changing step-length and/or threshold value, can obtain the unlike signal intensity of same image.Many images are adopted same step-length and threshold filtering interference signal, signal calculated intensity, but match one bars strength distribution curve, when changing step-length and/or threshold value, can many barss strength distribution curve.
Fig. 6 shows the method flow of gathering many images in one embodiment of the invention, and this method comprises: step S21. adopts the images acquired instruction that focusing module of the every reception of module is sent, and adopts module and gathers an image at this focal length place; Step S22. many images.
In the present embodiment, the camera lens of mobile imaging device is an initial point with the position at the current place of imaging device camera lens, and after moving for the first time, imaging device distance of camera lens initial point be-Cr, mobile for the second time after, imaging device distance of camera lens initial point is Cr; After moving for the third time, imaging device distance of camera lens initial point is .2Cr, and after moving for the 4th time, imaging device distance of camera lens initial point is 2Cr; After moving for the 2n-1 time, imaging device distance of camera lens initial point be-nCr, the 2n time mobile after, imaging device distance of camera lens initial point is nCr.Wherein, n is a natural number.
Cr is the length of creeping, and also is displacement, and the value of Cr is not limit.
Preferably, the value of Cr is between 0.3 μ m and 1.0 μ m.
Preferred, the value of Cr is 0.7 μ m.
In the present embodiment, for adopting graph region, among the step S21, carry out images acquired with the sequencing reaction chamber to the same position in sequencing reaction chamber.Also promptly, every mobile imaging device is once gathered an images acquired to the same position in the sequencing reaction chamber; Repeatedly the mobile imaging device just can obtain many images acquired.The quantity of the images acquired of wherein, being gathered is not limit.
Preferably, the quantity of images acquired is between 20 to 100.
Preferred, the quantity of images acquired is 60.
In the present embodiment, utilize the camera lens of focusing module, guarantee that the imaging device focusing is more accurate with the automatic mobile imaging device of certain step-length of creeping.
Fig. 7 shows image process method flow chart in one embodiment of the invention.This method comprises:
After step S31. image processing module receives image, utilize multiple spot to focus on the interference signal in every image of filter function filtering, get the useful signal intensity of every image.Step S32. image processing module, according to the distribution of signal strength signal intensity in the useful signal strength distribution curve, best focus position, and will focus to the instruction of best focus position and issue focusing module.
In the technical scheme of present embodiment,, can effectively obtain useful signal intensity, thereby guarantee is provided for obtaining best focus position through filtering to interference signal.
Fig. 8 shows the method flow diagram that obtains best focus position in one embodiment of the invention.This method comprises: step S321. image processing module is according to signal strength signal intensity fitted signal intensity profile curve; The signal intensity profile curve of step S322. image processing module screening accord with normal distribution; Step S323. image processing module utilizes monotonicity evaluation function and unimodality evaluation function, estimates the signal intensity profile curve of accord with normal distribution, gets the optimum signal strength distribution curve; Step S324. image processing module is analyzed the optimum signal strength distribution curve, gets best focus position; Step S325. image processing module will be focused to the instruction of best focus position and issued focusing module.
In the present embodiment, image processing module is according to signal strength signal intensity, many barss of match strength distribution curve; Then, judge whether accord with normal distribution of every curve, if there is not the curve of accord with normal distribution, then focusing module is regulated imaging device again and is adopted the distance between the graph region, adopts the module images acquired, and image processing module is handled image; If the curve accord with normal distribution is arranged, then estimate the signal intensity profile curve of accord with normal distribution, get the optimum signal strength distribution curve; Then on the optimum signal strength distribution curve, choose best focus position; To focus at last to the instruction of best focus position and issue focusing module.
Based on a last embodiment, to best focus position, the present invention proposes an embodiment.During match one bars strength distribution curve, the position that signal intensity profile curve peak is corresponding is best focus position; Many barss of match strength distribution curve, in many barss strength distribution curve, what accord with normal distribution and symmetry and monotonicity evaluation of estimate were the highest is the optimum signal strength distribution curve, the peak of this curve is best focus position.
Based on the embodiment among Fig. 8, to best focus position, the present invention proposes another embodiment.During match one bars strength distribution curve, the average focal length of adopting the figure position that signal intensity profile curve distance peak both sides are corresponding is best focus position; During many barss of match strength distribution curve, what accord with normal distribution and symmetry and monotonicity evaluation of estimate were the highest is the optimum signal strength distribution curve, and the average focal length of adopting the figure position that these curve peak both sides are corresponding is best focus position.
To the optimum signal strength distribution curve, the present invention proposes an embodiment, at first, judges whether accord with normal distribution of curve; Then, the curve to accord with normal distribution adopts function Q (s)=K 1B (s)+K 2C (s) estimates, and estimating the highest is the optimum signal strength distribution curve.Wherein, b (s) is the unimodality evaluation function; C (s) is the monotonicity evaluation function, K 1And K 2Be constant.
To the unimodality evaluation function, based on embodiment shown in Figure 8, the present invention proposes an embodiment, b ( s ) = Σ i = 1 M F Max F i * | D i | .
In the present embodiment, F MaxBe the maximum of signal intensity profile curve, F iBe the corresponding value of certain point on this curve, | D i| be F iCorresponding point is to the distance of maximum of points, and M representes to participate in the number of the image of matched curve.
To the unimodality evaluation function, based on embodiment the present invention shown in Figure 8 another embodiment is proposed, b ( s ) = Σ i = 1 M | F Max - F i D i | .
In the present embodiment, F MaxBe the maximum of signal intensity profile curve, F iBe the corresponding value of certain point on this curve, | D i| be F iCorresponding point is to the distance of maximum of points, and M representes to participate in the number of the image of matched curve.
To the monotonicity evaluation function, based on embodiment the present invention shown in Figure 8 one embodiment is proposed, c ( s ) = Σ i = 1 M - 1 F i + 1 F i .
In the present embodiment, F iBe corresponding value of certain point on the signal intensity profile curve, M representes to participate in the number of the image of matched curve.
To the monotonicity evaluation function, based on embodiment the present invention shown in Figure 8 another embodiment is proposed, c ( s ) = Σ i = 1 M - 1 | F i + 1 - F i D i - D i + 1 | .
In the present embodiment, F iBe corresponding value of certain point on the signal intensity profile curve, M representes to participate in the number of the image of matched curve.
Fig. 9 shows the method flow diagram of the signal intensity profile curve of match in one embodiment of the invention.In this method; Identical many images utilize the interference signal of different step-lengths and different threshold filtering respectively; Utilize the signal strength signal intensity fitted signal intensity profile curve of useful signal, shown in the A among Fig. 9, B, C, get the peak of every bars strength distribution curve; Peak as best focal point, is adopted figure respectively.From the A of Fig. 9, B, C, can find out that C is the most clear.Compare A, B, C three pictures, can conspicuously know the accord with normal distribution of the signal intensity profile curve among B and the C, utilize the curve evaluation function, the Q (s) that can know C among Fig. 9 is greater than the Q among the B among Fig. 9 (s).Can know that the signal intensity profile curve of three matches, the C among Fig. 9 are the optimum signal strength distribution curve through focus analysis, the focus point when also being corresponding this image of collection of the peak of the curve of C among Fig. 9 is a best focus position.
Figure 10 shows self-focusing control method flow process in another embodiment of the present invention, and this method comprises: step S1. focusing module is repeatedly regulated imaging device and is adopted the distance of figure position, and the images acquired instruction is issued adopt module; Step S2. adopts module after receiving the images acquired instruction, gathers coloured image, and the coloured image of gathering is issued image conversion module; S2 '. image conversion module converts coloured image to gray level image after receiving coloured image, and image is issued image processing module; Step S3. image processing module is after receiving image; Interference signal in the filtering image, the signal intensity profile curve of the image after match is filtered, analyte signal intensity distribution curve; Best focus position, and will focus to the instruction of best focus position and issue focusing module; Step S4. focusing module is focused to the instruction of best focus position receiving, and the control imaging device moves to best focus position.
In the present embodiment, image conversion module converts the coloured image that collects into gray level image, and the system memory space that makes image take is littler, and simultaneously, the efficient during image processing also can improve greatly.
Figure 11 shows self-focusing control method flow process in another embodiment of the present invention, and this method comprises: step S1. focusing module is repeatedly regulated imaging device and is adopted the distance of figure position, and the images acquired instruction is issued adopt module; Step S2. adopts module after receiving images acquired instruction, images acquired, and the image of gathering issued image processing module; Step S3. image processing module is after receiving image; Interference signal in the filtering image, the signal intensity profile curve of the image after match is filtered, analyte signal intensity distribution curve; Best focus position, and will focus to the instruction of best focus position and issue focusing module; Step S4. focusing module is focused to the instruction of best focus position receiving, and the control imaging device moves to best focus position; S5. when receiving, focusing module focuses to the instruction of best focus position the image in the image clean-up module cleaning image processing module.
Image after image clean-up module cleaning in the present embodiment is handled has been practiced thrift the memory space of system greatly, has also saved the work of labor cleaning's system rubbish simultaneously.
Figure 12 shows self-focusing control method flow process in another embodiment of the present invention, and this method comprises: step S1. focusing module is repeatedly regulated imaging device and is adopted the distance of figure position, and the images acquired instruction is issued adopt module; Step S2. adopts module after receiving the images acquired instruction, gathers coloured image, and the coloured image of gathering is issued image conversion module; S2 '. image conversion module converts coloured image to gray level image after receiving coloured image; Step S3. image processing module is after receiving image; Interference signal in the filtering image, the signal intensity profile curve of the image after match is filtered, analyte signal intensity distribution curve; Best focus position, and will focus to the instruction of best focus position and issue focusing module; Step S4. focusing module is focused to the instruction of best focus position receiving, and the control imaging device moves to best focus position; S5. when receiving, focusing module focuses to the instruction of best focus position the image in the image clean-up module cleaning image processing module.
Image conversion module in the present embodiment converts coloured image into gray level image, and the image after the cleaning of image clean-up module is handled has been practiced thrift the memory space of system greatly, has also saved the work of labor cleaning's system rubbish simultaneously.
Should be noted that the annexation between each module is in order clearly to set forth the needs of its information interaction control procedure, therefore should to be regarded as control relation in logic, and should not to be limited to physical connection or wireless connections in all diagrams of the present invention.Should be noted that structure typical application of the present invention is not limited to the auto focus control system, the application in other similar devices or system also should belong in protection scope of the present invention.The application of typical auto focusing method of the present invention is not limited to order-checking and adopts map device, and the automatic focus in other equipment also should belong to the scope that comprises of the present invention.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. an auto focus control system is characterized in that, comprising: focusing module, adopt module and image processing module;
Said focusing module, the distance that is used to regulate imaging device Yu adopts the figure position, and regulate imaging device to best focus position;
The said module of adopting is used to control the imaging device images acquired;
Said image processing module is used for the interference signal of every image of filtering, according to the size of useful signal intensity in every image, obtains best focus position through analyzing.
2. auto focus control according to claim 1 system is characterized in that said image processing module comprises: image filtering module and image analysis module;
Said image filtering module is used for utilizing multiple spot to focus on the interference signal of every image of filter function filtering, gets the useful signal intensity of every image;
Said image analysis module is used for the distribution according to useful signal strength distribution curve signal strength signal intensity, gets best focus position.
3. auto focus control according to claim 2 system is characterized in that, it be 4 multiple spot focusing filter function that said multiple spot focuses on filter function.
4. auto focus control according to claim 1 system is characterized in that said image processing module comprises: image conversion module;
Said image conversion module is used for converting the coloured image of adopting the module collection into gray level image.
5. auto focus control according to claim 1 system is characterized in that, said image processing module through the unimodality and the monotonicity of analyte signal intensity distribution curve, obtains best focus position.
6. auto focus control according to claim 1 system is characterized in that, said focusing module control imaging device is focused with the step-length Cr moving lens of creeping, and adopts module control imaging device and gathers an image at each focal length place.
7. according to each described auto focus control system of claim 1 to 6, it is characterized in that described system also comprises: the image clean-up module;
Said image clean-up module is used for clearing up the image of image processing module.
8. self-focusing control method is characterized in that method may further comprise the steps:
A. focusing module is repeatedly regulated imaging device and is adopted the distance of figure position, and the images acquired instruction is issued adopt module;
B. adopt module after receiving the images acquired instruction, utilize the imaging device images acquired, get image;
C. image processing module is after receiving image, and the interference signal in every image of filtering according to the size of useful signal intensity in every image, obtains best focus position through analyzing, and will focus to the instruction of best focus position and issue focusing module;
D. focusing module receives and focuses to the instruction of best focus position, and the control imaging device moves to best focus position.
9. self-focusing control method according to claim 8 is characterized in that, said step C comprises:
C1. after image processing module receives image, utilize multiple spot to focus on the interference signal in every image of filter function filtering, get the useful signal intensity of every image;
C2. image processing module, according to the distribution of signal strength signal intensity in the useful signal strength distribution curve, best focus position, and will focus to the instruction of best focus position and issue focusing module.
10. self-focusing control method according to claim 9 is characterized in that, said step C2 comprises:
C21. image processing module is according to signal strength signal intensity fitted signal intensity profile curve;
C22. image processing module screens the signal intensity profile curve of accord with normal distribution;
C23. image processing module utilizes monotonicity evaluation function and unimodality evaluation function, estimates the signal intensity profile curve of accord with normal distribution, gets the optimum signal strength distribution curve;
C24. image processing module is analyzed the optimum signal strength distribution curve, gets best focus position;
C25. image processing module will be focused to the instruction of best focus position and issued focusing module.
11. self-focusing control method according to claim 10; It is characterized in that said monotonicity evaluation function is:
Figure FSA00000686012700021
said unimodality evaluation function be:
Figure FSA00000686012700022
12. self-focusing control method according to claim 10 is characterized in that, the collection position of the image that the peak of said optimum signal strength distribution curve is corresponding is a best focus position.
13. to 12 each described self-focusing control methods, it is characterized in that according to Claim 8, also comprise after the said step B:
B '. image conversion module converts coloured image to gray level image after receiving coloured image.
14. to 12 each described self-focusing control methods, it is characterized in that according to Claim 8, also comprise after the said step D:
E. when receiving, focusing module focuses to the instruction of best focus position the image in the image clean-up module cleaning image processing module.
CN201210071165.9A 2012-03-16 2012-03-16 Automatic focusing control system and method Expired - Fee Related CN102595049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210071165.9A CN102595049B (en) 2012-03-16 2012-03-16 Automatic focusing control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210071165.9A CN102595049B (en) 2012-03-16 2012-03-16 Automatic focusing control system and method

Publications (2)

Publication Number Publication Date
CN102595049A true CN102595049A (en) 2012-07-18
CN102595049B CN102595049B (en) 2014-11-26

Family

ID=46483214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210071165.9A Expired - Fee Related CN102595049B (en) 2012-03-16 2012-03-16 Automatic focusing control system and method

Country Status (1)

Country Link
CN (1) CN102595049B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237173A (en) * 2013-04-28 2013-08-07 中国空间技术研究院 Adaptive quick focusing device and method for optical camera
CN107480672A (en) * 2016-06-08 2017-12-15 广州康昕瑞基因健康科技有限公司 Image-recognizing method and system and autofocus control method and system
CN107490850A (en) * 2017-08-26 2017-12-19 湖南友哲科技有限公司 A kind of sparse sample quick focusing method
CN108055470A (en) * 2018-01-22 2018-05-18 努比亚技术有限公司 A kind of method of focusing, terminal and storage medium
WO2021057422A1 (en) * 2019-09-25 2021-04-01 腾讯科技(深圳)有限公司 Microscope system, smart medical device, automatic focusing method and storage medium
CN113805304A (en) * 2021-11-16 2021-12-17 浙江双元科技股份有限公司 Automatic focusing system and method for linear array camera
CN115706854A (en) * 2021-08-06 2023-02-17 北京小米移动软件有限公司 Camera control method and device for foot type robot and foot type robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916750A (en) * 2006-08-24 2007-02-21 宁波大学 Automatic focusing method of digital imaging based on Contourilct transform
CN1991341A (en) * 2005-12-30 2007-07-04 财团法人工业技术研究院 Interference pattern automatic focusing and automatic detection method
CN102023460A (en) * 2009-09-21 2011-04-20 华晶科技股份有限公司 Quick focusing method for digital camera

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991341A (en) * 2005-12-30 2007-07-04 财团法人工业技术研究院 Interference pattern automatic focusing and automatic detection method
CN1916750A (en) * 2006-08-24 2007-02-21 宁波大学 Automatic focusing method of digital imaging based on Contourilct transform
CN102023460A (en) * 2009-09-21 2011-04-20 华晶科技股份有限公司 Quick focusing method for digital camera

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237173A (en) * 2013-04-28 2013-08-07 中国空间技术研究院 Adaptive quick focusing device and method for optical camera
CN107480672A (en) * 2016-06-08 2017-12-15 广州康昕瑞基因健康科技有限公司 Image-recognizing method and system and autofocus control method and system
CN107490850A (en) * 2017-08-26 2017-12-19 湖南友哲科技有限公司 A kind of sparse sample quick focusing method
CN108055470A (en) * 2018-01-22 2018-05-18 努比亚技术有限公司 A kind of method of focusing, terminal and storage medium
WO2021057422A1 (en) * 2019-09-25 2021-04-01 腾讯科技(深圳)有限公司 Microscope system, smart medical device, automatic focusing method and storage medium
CN115706854A (en) * 2021-08-06 2023-02-17 北京小米移动软件有限公司 Camera control method and device for foot type robot and foot type robot
CN113805304A (en) * 2021-11-16 2021-12-17 浙江双元科技股份有限公司 Automatic focusing system and method for linear array camera

Also Published As

Publication number Publication date
CN102595049B (en) 2014-11-26

Similar Documents

Publication Publication Date Title
CN102595049B (en) Automatic focusing control system and method
CN105223582B (en) A kind of laser infrared radar imaging device and imaging method based on compressed sensing
CN1977526B (en) Image capture method and image capture device
CN101943839B (en) Automatic focusing method for integrated automatic focusing camera device
CN100385919C (en) Focusing controller, image pickup device
CN103348276B (en) Camera head, SIC (semiconductor integrated circuit) and image capture method
CN101995733B (en) Imaging apparatus and control method thereof
DE102007011222A1 (en) Autofocus method and autofocus device for its implementation
RU2734447C2 (en) System for forming a synthesized two-dimensional image of a biological sample with high depth of field
DE102010023108A1 (en) Projector with automatic focusing and imaging process
CN105430277B (en) Autofocus control method and device
CN102023460B (en) Quick focusing method for digital camera
CN102591100B (en) Autofocus system and the method thereof of figure equipment are adopted in a kind of order-checking
CN100357779C (en) Automatic image focusing system and method
CN104754213B (en) Picture pick-up device and its control method
WO2019082831A1 (en) Image capturing device, method for controlling image capturing device, and program
CN109671031A (en) A kind of multispectral image inversion method based on residual error study convolutional neural networks
CN102883103B (en) Auto-focusing method and photographic device
CN102387398A (en) Method and apparatus for determining the movement of an optical axis
US7339147B2 (en) System and method for automatic focusing of images
CN103529544A (en) Nano membrane thickness measuring instrument capable of automatically positioning and focusing
CN104243841A (en) Image processing method and image processing device
CN108989690B (en) Multi-mark-point focusing method, device, equipment and storage medium for linear array camera
CN102041345B (en) Thermal infrared imager focusing method for monitoring converter tapping
CN105959577A (en) Camera focusing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141126

CF01 Termination of patent right due to non-payment of annual fee