CN105430268B - A kind of automatic focus approach and device - Google Patents
A kind of automatic focus approach and device Download PDFInfo
- Publication number
- CN105430268B CN105430268B CN201510897321.0A CN201510897321A CN105430268B CN 105430268 B CN105430268 B CN 105430268B CN 201510897321 A CN201510897321 A CN 201510897321A CN 105430268 B CN105430268 B CN 105430268B
- Authority
- CN
- China
- Prior art keywords
- image
- value
- brightness
- block
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The invention belongs to camcorder technology field, a kind of automatic focus approach and device are provided.The described method includes: the image segmentation for being up to predetermined exposure condition is multiple images block;It determines the image block in described multiple images block containing point light source, and marks the image block containing point light source;The image clearly evaluation function value of each image block is calculated, and the image clearly evaluation function value of the image block without the label is added up, the value after adding up reaches the image clearly evaluation function average value of the image of predetermined exposure condition as described in;According to the clear evaluation function average value of described image, the best focus position of camera lens is determined.Reduce influence of the point light source to focusing automatically through the invention, improve the accuracy focused automatically, provides preferably automatic focus for user and experience.
Description
Technical field
The invention belongs to camcorder technology field more particularly to a kind of automatic focus approach and device.
Background technique
With microelectric technique, the further development of very large scale integration technology, the development day of digital imaging technology
Crescent is different, and the more and more appearance of digital camera are in people's daily life.People require video camera more and more severe simultaneously
It carves, had not only required video camera that can accurately restore scene by automatic exposure, but also require automatic focus that can guarantee the clear of image
Clear degree.Therefore harsh requirement is proposed to the automatic exposure of video camera and automatic focusing.
Automatic exposure refers to the vision subjective sensation of people for according to by control image sensor exposure amount and camera lens light
Circle size makes the process that brightness of image is optimized.
Automatic focus is to be differentiated using image signal process to clear image and blurred picture, at picture signal
Reason information moving lens is to obtain clearest image.Wherein clearly image than blurred picture have more multiple edge letter
Breath, generallys use the image clearly evaluation function by statistical picture marginal information to judge the readability of image.It is more clear
Image, image clearly evaluation function value is bigger, otherwise image is fuzzyyer, and image clearly evaluation function value is smaller.Pass through movement
Camera lens obtains different image clearly evaluation function values, compares to obtain maximum by obtained different evaluation function values
Evaluation function value, and then obtain clearest image.
Due to the influence of point light source, the position of image clearly evaluation function maximum value is not the clearest position of image,
Even deviate from the clearest position of image farther out.If doing automatic focusing using object selection value at this time, lost scene stops
The position stayed not is image best focus position, but the focal position that image is more fuzzy, therefore can obtain one and compare
Fuzzy image.
Therefore, it is necessary to propose a kind of new technical solution, to solve the above technical problems.
Summary of the invention
In consideration of it, the embodiment of the present invention provides a kind of automatic focus approach and device, to reduce point light source to automatic
The influence of focusing improves the accuracy focused automatically, provides preferably automatic focus for user and experiences.
The embodiment of the present invention in a first aspect, providing a kind of automatic focus approach, which comprises
The image segmentation for being up to predetermined exposure condition is multiple images block;
It determines the image block in described multiple images block containing point light source, and marks the image block containing point light source;
The image clearly evaluation function value of each image block is calculated, and the image clearly of the image block without the label is commented
Valence functional value adds up, and the value after adding up reaches the image clearly evaluation function of the image of predetermined exposure condition as described in
Average value;
According to the clear evaluation function average value of described image, the best focus position of camera lens is determined.
The second aspect of the embodiment of the present invention, provides a kind of automatic focus processing device, and described device includes:
Divide module, mark module, processing module and determining module;
The segmentation module, the image segmentation for being up to predetermined exposure condition are multiple images block;
The mark module contains for determining the image block in described multiple images block containing point light source, and described in label
There is the image block of point light source;
The processing module, for calculating the image clearly evaluation function value of each image block, and will be without the label
The image clearly evaluation function value of image block adds up, and the value after adding up reaches the image of predetermined exposure condition as described in
Image clearly evaluation function average value;
The determining module determines the best focus position of camera lens according to the clear evaluation function average value of described image.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is up to predetermined exposure
The image segmentation of condition is multiple images block, determines the image block in described multiple images block containing point light source, and described in label
Image block containing point light source, calculates the image clearly evaluation function value of each image block, and by the image block without the label
Image clearly evaluation function value add up, will it is cumulative after value reach as described in predetermined exposure condition image image
Clear evaluation function average value determines the best focus position of camera lens according to the clear evaluation function average value of described image, thus
Reduce influence of the point light source to focusing automatically, improve the accuracy focused automatically, is provided for user preferably automatic poly-
Coke experience.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart for the automatic focus approach that the embodiment of the present invention one provides;
Fig. 2 is the image block exemplary diagram for the image for reaching predetermined exposure condition that the embodiment of the present invention one provides;
Fig. 3 is the brightness histogram exemplary diagram that the embodiment of the present invention one provides;
Fig. 4 is the climbing method exemplary diagram that the embodiment of the present invention one provides;
Fig. 5 is the implementation flow chart of automatic focus approach provided by Embodiment 2 of the present invention;
Fig. 6 is the composition schematic diagram for the automatic focus processing device that the embodiment of the present invention three provides;
Fig. 7 is the composition schematic diagram for the automatic focus processing device that the embodiment of the present invention four provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Embodiment one:
Fig. 1 shows the implementation process of the automatic focus approach of the offer of the embodiment of the present invention one, the implementation process
Details are as follows:
In step s101, the image segmentation for being up to predetermined exposure condition is multiple images block;
Preferably, the image segmentation for being up to predetermined exposure condition is 17*15 image block, if Fig. 2 is to reach predetermined exposure
The image block exemplary diagram of the image of striation part.
In step s 102, it determines the image block in described multiple images block containing point light source, and marks described containing a little
The image block of light source;
Further, the image block containing point light source in the determining described multiple images block, and mark described containing a little
The image block of light source, specifically includes:
The brightness histogram of each image block in described multiple images block is obtained, the brightness histogram includes five areas
Domain, wherein the brightness value of pixel is 0~255, and the brightness value of the pixel in first region is 0~7, Two Areas
The brightness value of pixel is 8~15, and the brightness value of trizonal pixel is 16~127, the pixel in the 4th region
Brightness value be 128~159, the brightness value of the pixel in the 5th region is 160~255;
In embodiments of the present invention, for the ease of time bright part around identification point light source most bright part and point light source, by institute
It states brightness histogram and is divided into five regions, as shown in figure 3, horizontal axis indicates the brightness value of pixel, left end is most dark, brightness value 0,
Right end is most bright, brightness value 255, and the longitudinal axis indicates pixel number, and hist1 is the first area of the brightness histogram, hist2
It is the second area of the brightness histogram, hist3 is the third region of the brightness histogram, and hist4 is that the brightness is straight
The fourth region of square figure, hist5 are the 5th regions of the brightness histogram.
When the pixel quantity in the 5th region is greater than presetted pixel point quantity, and the pixel number in the 5th region
When amount is twice or more of the pixel quantity in the 4th region, determine that the image block is the image block containing point light source, and mark
Remember the image block for containing point light source.
Preferably, the presetted pixel point quantity is 2000.
In embodiments of the present invention, the image block for having the label is the image block containing point light source, without the label
Image block is the image block without containing point light source.
In step s 103, the image clearly evaluation function value of each image block is calculated, and by the image without the label
The image clearly evaluation function value of block adds up, and the value after adding up reaches the figure of the image of predetermined exposure condition as described in
As clear evaluation function average value;
In embodiments of the present invention, the clear evaluation function average value of described image is free from the figure of the image block of point light source
As adding up for clear evaluation function value, the image block containing point light source is eliminated, mitigation even has been eliminated point light source to automatic poly-
Burnt influence, improves the accuracy focused automatically.
In embodiments of the present invention, Sobel edge detection operator can be used, the horizontal direction of image block and vertical is extracted
The marginal element in direction, and by the edge energy of formula (1) calculating described image block, the edge energy is commented for image clearly
Valence function.
F(m,n)=H(m,n) 2+V(m,n) 2 ⑴
Wherein, H(m,n)And V(m,n)Respectively indicate the horizontal and vertical gradient component information at the position pixel (m, n), one
Pixel may include multiple pixels.
H(m,n)=(G*Shor)(m,n) ⑵
V(m,n)=(G*Sver)(m,n) ⑶
Wherein, G is the brightness value matrix of image block, and * is convolution algorithm, ShorAnd SverRespectively horizontal direction and Vertical Square
To edge detection operator, ShorAnd SverSpecifically:
In step S104, according to the clear evaluation function average value of described image, the best focus position of camera lens is determined.
It illustratively, can be by the position of climbing method moving lens, to determine the best focus position of camera lens.
For climbing method principle as shown in figure 4, horizontal axis indicates lens focus position, the longitudinal axis indicates image clearly evaluation function value,
It drives the stepper motor of camera lens from the left end of horizontal axis, is moved right with unique step driving camera lens, often make a move, just calculate one
The image clearly evaluation function value of secondary image is gradually increased if calculating gained image clearly evaluation function value, illustrates stepper motor
Driving direction is correct, and when image clearly evaluation function value occurs reducing phenomenon for the first time, it is best poly- to illustrate that camera lens has passed over
Burnt position reduces step-length at this point, stepper motor answers antiport, drives lens left mobile, back finds optimum focusing position
It sets.Similarly, when image clearly evaluation function occurs reducing phenomenon again, stepper motor inverts again operation, further subtracts
Small step-length drives camera lens to search for the right.It searches for repeatedly, until the step-length of stepper motor is reduced to setting value, search terminates,
Palm position is the final stop place of camera lens, i.e. best focus position in Fig. 4.
By the position of climbing method moving lens, the peak value position of image clearly evaluation function average value can be accurately found
It sets, realizes accurate focus.
Through the embodiment of the present invention, reduce influence of the point light source to focusing automatically, improve the accuracy focused automatically,
Preferably automatic focus is provided for user to experience.
Embodiment two:
Fig. 5 shows the implementation process of automatic focus approach provided by Embodiment 2 of the present invention, the implementation process
Details are as follows:
In step S501, the image for reaching predetermined exposure condition is obtained;
Further, described to obtain the image for reaching predetermined exposure condition, it specifically includes:
Obtain the brightness histogram of current captured image;
In embodiments of the present invention, for the ease of time bright part around identification point light source most bright part and point light source, by institute
It states brightness histogram and is divided into five regions, as shown in figure 3, horizontal axis indicates the brightness value of pixel, left end is most dark, brightness value 0,
Right end is most bright, brightness value 255, and the longitudinal axis indicates pixel number;Hist1 is the first area of the brightness histogram, pixel
The brightness value of point is 0~7;Hist2 is the second area of the brightness histogram, and the brightness value of pixel is 8~15;hist3
It is the third region of the brightness histogram, the brightness value of pixel is 16~127;Hist4 is the of the brightness histogram
Four regions, the brightness value of pixel are 128~159;Hist5 is the 5th region of the brightness histogram, the brightness of pixel
Value is 160~255.
According to the brightness histogram, the brightness value of the current captured image is calculated;
In embodiments of the present invention, according to the brightness value histogram, the brightness value of the current captured imageIt wherein, will current captured image in order to simplify calculation amount
Pixel quantity be quantified as 65535, and be the brightness cut off value in the i-th region, valueiFor the picture in the i-th region
Vegetarian refreshments quantity;
In order to better understand the present invention, by taking the first area of the brightness histogram as an example, due to first region
The brightness value of pixel is 0~7, thenIt is 0,It is 7, value1For the pixel quantity of first area.
Judge whether the brightness value of the current captured image is equal to default exposure brightness target value;
In embodiments of the present invention, according to the brightness value of the current captured image, the shutter and mirror of video camera are controlled
Head aperture size changes the exposure of the currently captured image, presets so that the brightness value of the current captured image is equal to
Brightness target value is exposed, it is to guarantee that the current captured image light and shade is equal that the default exposure brightness target value, which is arranged,
It is even, reach a more satisfactory exposure effect.
When the brightness value of the current captured image is equal to the default exposure brightness target value, determine described current
Captured image is the image for reaching predetermined exposure condition.
Preferably, the default exposure brightness target value is 96.
It is multiple images block by the image segmentation for reaching predetermined exposure condition in step S502;
Preferably, being 17*15 image block by the image segmentation for reaching predetermined exposure condition, if Fig. 2 is to reach pre-
Determine the image block exemplary diagram of the image of conditions of exposure.
In step S503, the image block in described multiple images block containing point light source is determined, and mark described containing a little
The image block of light source;
Further, the image block containing point light source in the determining described multiple images block, and mark described containing a little
The image block of light source, specifically includes:
The brightness histogram of each image block in described multiple images block is obtained, the brightness histogram includes five areas
Domain, wherein the brightness value of pixel is 0~255, and the brightness value of the pixel in first region is 0~7, Two Areas
The brightness value of pixel is 8~15, and the brightness value of trizonal pixel is 16~127, the pixel in the 4th region
Brightness value be 128~159, the brightness value of the pixel in the 5th region is 160~255;
In embodiments of the present invention, for the ease of time bright part around identification point light source most bright part and point light source, by institute
It states brightness histogram and is divided into five regions, as shown in figure 3, horizontal axis indicates the brightness value of pixel, left end is most dark, brightness value 0,
Right end is most bright, brightness value 255, and the longitudinal axis indicates pixel number, and hist1 is the first area of the brightness histogram, hist2
It is the second area of the brightness histogram, hist3 is the third region of the brightness histogram, and hist4 is that the brightness is straight
The fourth region of square figure, hist5 are the 5th regions of the brightness histogram.
When the pixel quantity in the 5th region is greater than presetted pixel point quantity, and the pixel number in the 5th region
When amount is twice or more of the pixel quantity in the 4th region, determine that the image block is the image block containing point light source, and mark
Remember the image block for containing point light source.
Preferably, the presetted pixel point quantity is 2000.
In embodiments of the present invention, the image block of mark information is the image block containing point light source, unmarked information
Image block is free from the image block of point light source.
In step S504, the image clearly evaluation function value of each image block is calculated, and by the image without the label
The image clearly evaluation function value of block adds up, and the value after adding up reaches the figure of the image of predetermined exposure condition as described in
As clear evaluation function average value;
In embodiments of the present invention, the clear evaluation function average value of described image is free from the image block of point light source
Image clearly evaluation function value adds up, and eliminates the image block containing point light source, and mitigation even has been eliminated point light source to automatic
The influence of focusing improves the accuracy focused automatically.
In embodiments of the present invention, the circular of image clearly evaluation function value referring to embodiment one description,
Details are not described herein.
In step S505, according to the clear evaluation function average value of described image, the best focus position of camera lens is determined.
The climbing method principle is referring to the description of embodiment one, and details are not described herein.
Through the embodiment of the present invention, reduce influence of the point light source to focusing automatically, improve the accuracy focused automatically,
Preferably automatic focus is provided for user to experience.
Embodiment three:
Fig. 6 shows the composition schematic diagram of the automatic focus processing device of the offer of the embodiment of the present invention three, for the ease of saying
Bright, only parts related to embodiments of the present invention are shown, and details are as follows:
Divide module 61, the image segmentation for being up to predetermined exposure condition is multiple images block;
Mark module 62 contains for determining the image block in described multiple images block containing point light source, and described in label
The image block of point light source;
Further, the mark module 62 specifically includes:
Acquiring unit 621, for obtaining the brightness histogram of each image block in described multiple images block, the brightness is straight
Side's figure includes five regions, wherein and the brightness value of pixel is 0~255, and the brightness value of the pixel in first region is 0~
7, the brightness value of the pixel of Two Areas is 8~15, and the brightness value of trizonal pixel is the 16~127, the 4th
The brightness value of the pixel in a region is 128~159, and the brightness value of the pixel in the 5th region is 160~255;
Processing unit 622 is greater than presetted pixel point quantity, and the described 5th for the pixel quantity when the 5th region
When the pixel quantity in a region is twice or more of the pixel quantity in the 4th region, determine that the image block is containing a little light
The image block in source, and mark the image block for containing point light source.
Processing module 63, for calculating the image clearly evaluation function value of each image block, and by the figure without the label
As the image clearly evaluation function value of block adds up, will it is cumulative after value reach the image of predetermined exposure condition as described in
Image clearly evaluation function average value;
Determining module 64 determines the best focus position of camera lens according to the clear evaluation function average value of described image.
Automatic focus processing device provided in an embodiment of the present invention can be used in aforementioned corresponding embodiment of the method one,
Details are referring to the description of above-described embodiment one, and details are not described herein.
Through the embodiment of the present invention, reduce influence of the point light source to focusing automatically, improve the accuracy focused automatically,
Preferably automatic focus is provided for user to experience.
Example IV:
Fig. 7 shows the composition schematic diagram of the automatic focus processing device of the offer of the embodiment of the present invention four, for the ease of saying
Bright, only parts related to embodiments of the present invention are shown, and details are as follows:
Module 71 is obtained, for obtaining the image for reaching predetermined exposure condition;
The acquisition module 71 specifically includes:
Acquiring unit 711, computing unit 712, judging unit 713 and determination unit 714;
The acquiring unit 711, for obtaining the brightness histogram of current captured image;
The computing unit 712, for calculating the brightness of the current captured image according to the brightness histogram
Value;
The judging unit 713, for judging it is bright whether the brightness value of the current captured image is equal to default exposure
Spend target value;
The determination unit 714, for being equal to the default exposure brightness when the brightness value of the current captured image
When target value, determine that the current captured image is the image for reaching predetermined exposure condition.
Divide module 72, for being multiple images block by the image segmentation for reaching predetermined exposure condition;
Mark module 73 contains for determining the image block in described multiple images block containing point light source, and described in label
The image block of point light source;
Further, the mark module 73 specifically includes:
Acquiring unit 731, for obtaining the brightness histogram of each image block in described multiple images block, the brightness is straight
Side's figure includes five regions, wherein and the brightness value of pixel is 0~255, and the brightness value of the pixel in first region is 0~
7, the brightness value of the pixel of Two Areas is 8~15, and the brightness value of trizonal pixel is the 16~127, the 4th
The brightness value of the pixel in a region is 128~159, and the brightness value of the pixel in the 5th region is 160~255;
Processing unit 732 is greater than presetted pixel point quantity, and the described 5th for the pixel quantity when the 5th region
When the pixel quantity in a region is twice or more of the pixel quantity in the 4th region, determine that the image block is containing a little light
The image block in source, and mark the image block for containing point light source.
Processing module 74, for calculating the image clearly evaluation function value of each image block, and by the figure without the label
As the image clearly evaluation function value of block adds up, will it is cumulative after value reach the image of predetermined exposure condition as described in
Image clearly evaluation function average value;
Determining module 75 determines the best focus position of camera lens according to the clear evaluation function average value of described image.
Automatic focus processing device provided in an embodiment of the present invention can be used in aforementioned corresponding embodiment of the method two,
Details are referring to the description of above-described embodiment two, and details are not described herein.
The technical staff in the field can be understood that, for convenience and simplicity of description, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block or unit are completed, i.e. the internal structure of described device is divided into different functional module or unit, above-mentioned functional module or list
Member both can take the form of hardware realization, can also be realized in the form of software.In addition, the tool of each functional module or unit
Body title is also only to facilitate be mutually distinguishable, the protection scope being not intended to limit this application.
In conclusion the embodiment of the present invention obtains the image for reaching predetermined exposure condition, it is up to predetermined exposure condition
Image segmentation is multiple images block, determines the image block in described multiple images block containing point light source, and is marked described containing a little
The image block of light source, calculates the image clearly evaluation function value of each image block, and by the image of the image block without the label
Clear evaluation function value adds up, and the image clearly for the image that the value after adding up reaches predetermined exposure condition as described in is commented
Valence mean value functions determine the best focus position of camera lens according to the clear evaluation function average value of described image, to reduce
Influence of the point light source to focusing automatically, improves the accuracy focused automatically and user experience.
Those of ordinary skill in the art be further appreciated that implement the method for the above embodiments be can
It is completed with instructing relevant hardware by program, the program can be stored in a computer-readable storage medium
In, described storage medium, including ROM/RAM, disk, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (4)
1. a kind of automatic focus approach, which is characterized in that the described method includes:
The image segmentation for being up to predetermined exposure condition is multiple images block;
It determines the image block in described multiple images block containing point light source, and marks the image block containing point light source;
The image clearly evaluation function value of each image block is calculated, and the image clearly of the image block without the label is evaluated into letter
Numerical value adds up, and the image clearly evaluation function for the image that the value after adding up reaches predetermined exposure condition as described in is averaged
Value, wherein the image block of the no label is the image block without containing point light source, and the clear evaluation function average value of described image is
The image clearly evaluation function value of image block without containing point light source adds up;
According to the clear evaluation function average value of described image, the best focus position of camera lens is determined;
Before the image segmentation for being up to predetermined exposure condition is multiple images block, further includes:
Reach the image of predetermined exposure condition described in acquisition;
The image for reaching predetermined exposure condition described in the acquisition, specifically includes:
Obtain the brightness histogram of current captured image;
According to the brightness histogram, the brightness value of the current captured image is calculated;
Judge whether the brightness value of the current captured image is equal to default exposure brightness target value;
When the brightness value of the current captured image is equal to the default exposure brightness target value, described current clapped is determined
Taking the photograph image is the image for reaching predetermined exposure condition, wherein the default exposure brightness target value is for guaranteeing described work as
The brightness light and shade of preceding captured image is uniform.
2. the method according to claim 1, wherein containing point light source in the determining described multiple images block
Image block, and the image block containing point light source is marked, it specifically includes:
The brightness histogram of each image block in described multiple images block is obtained, the brightness histogram includes five regions,
In, the brightness value of pixel is 0~255, and the brightness value of the pixel in first region is 0~7, the pixel of Two Areas
Brightness value be 8~15, the brightness value of trizonal pixel is 16~127, the brightness of the pixel in the 4th region
Value is 128~159, and the brightness value of the pixel in the 5th region is 160~255;
When the pixel quantity in the 5th region is greater than presetted pixel point quantity, and the pixel quantity in the 5th region is
At twice or more of the pixel quantity in the 4th region, determine that the image block is the image block containing point light source, and marking should
Image block containing point light source.
3. a kind of automatic focus processing device, which is characterized in that described device includes:
Divide module, mark module, processing module and determining module;
The segmentation module, the image segmentation for being up to predetermined exposure condition are multiple images block;
The mark module for determining the image block in described multiple images block containing point light source, and marks described containing a little
The image block of light source;
The processing module, for calculating the image clearly evaluation function value of each image block, and by the image without the label
The image clearly evaluation function value of block adds up, and the value after adding up reaches the figure of the image of predetermined exposure condition as described in
As clear evaluation function average value, wherein the image block of the no label is the image block without containing point light source, and described image is clear
Clear evaluation function average value is free from the cumulative of the image clearly evaluation function value of the image block of point light source;
The determining module determines the best focus position of camera lens according to the clear evaluation function average value of described image;
Described device further include:
Module is obtained, for obtaining the image for reaching predetermined exposure condition;
The acquisition module specifically includes:
Acquiring unit, computing unit, judging unit and determination unit;
The acquiring unit, for obtaining the brightness histogram of current captured image;
The computing unit, for calculating the brightness value of the current captured image according to the brightness histogram;
The judging unit, for judging whether the brightness value of the current captured image is equal to default exposure luma target
Value;
The determination unit, for being equal to the default exposure brightness target value when the brightness value of the current captured image
When, determine that the current captured image is the image for reaching predetermined exposure condition, wherein the default exposure brightness mesh
Scale value is used to guarantee that the brightness light and shade of the current captured image to be uniform.
4. device according to claim 3, which is characterized in that the mark module specifically includes:
Acquiring unit, for obtaining the brightness histogram of each image block in described multiple images block, the brightness histogram packet
Containing five regions, wherein the brightness value of pixel is 0~255, and the brightness value of the pixel in first region is 0~7, second
The brightness value of the pixel in a region is 8~15, and the brightness value of trizonal pixel is 16~127, the 4th region
The brightness value of pixel be 128~159, the brightness value of the pixel in the 5th region is 160~255;
Processing unit is greater than presetted pixel point quantity, and the 5th region for the pixel quantity when the 5th region
Pixel quantity when being twice or more of pixel quantity of the 4th region, determine that the image block is the figure containing point light source
As block, and mark the image block for containing point light source.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510897321.0A CN105430268B (en) | 2015-12-08 | 2015-12-08 | A kind of automatic focus approach and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510897321.0A CN105430268B (en) | 2015-12-08 | 2015-12-08 | A kind of automatic focus approach and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105430268A CN105430268A (en) | 2016-03-23 |
CN105430268B true CN105430268B (en) | 2019-02-01 |
Family
ID=55508171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510897321.0A Active CN105430268B (en) | 2015-12-08 | 2015-12-08 | A kind of automatic focus approach and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105430268B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991672B (en) * | 2017-03-30 | 2019-12-13 | 梧州学院 | Objective lens positioning method based on light intensity |
CN107504960B (en) * | 2017-07-28 | 2019-10-01 | 西安电子科技大学 | Vehicle positioning method and system |
CN110062150B (en) * | 2018-01-19 | 2020-12-04 | 上海富瀚微电子股份有限公司 | Automatic focusing method and device |
CN108419015B (en) * | 2018-04-11 | 2020-08-04 | 浙江大华技术股份有限公司 | Focusing method and device |
CN109302566A (en) * | 2018-11-22 | 2019-02-01 | 深圳市景阳科技股份有限公司 | A kind of method, apparatus and terminal device of determining screening-mode |
CN110191287B (en) * | 2019-06-28 | 2021-05-11 | Oppo广东移动通信有限公司 | Focusing method and device, electronic equipment and computer readable storage medium |
WO2021145682A1 (en) | 2020-01-13 | 2021-07-22 | Samsung Electronics Co., Ltd. | Method of fast estimation of scene brightness and optimal camera exposure |
CN112822410B (en) * | 2021-04-19 | 2021-06-22 | 浙江华创视讯科技有限公司 | Focusing method, focusing device, electronic device and storage medium |
CN114022484B (en) * | 2022-01-10 | 2022-04-29 | 深圳金三立视频科技股份有限公司 | Image definition value calculation method and terminal for point light source scene |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200361A (en) * | 2012-01-06 | 2013-07-10 | 株式会社日立制作所 | Video signal processing apparatus |
CN103217855A (en) * | 2013-04-02 | 2013-07-24 | 金三立视频科技(深圳)有限公司 | Automatic focusing method of camera |
CN104853087A (en) * | 2015-03-16 | 2015-08-19 | 浙江宇视科技有限公司 | Identification and focusing method for point light source scene |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006033341A (en) * | 2004-07-15 | 2006-02-02 | Canon Inc | Optical apparatus |
CN103188432B (en) * | 2011-12-29 | 2016-05-25 | 汉王科技股份有限公司 | A kind of quantitative judgement apparatus and method of focusing accuracy |
-
2015
- 2015-12-08 CN CN201510897321.0A patent/CN105430268B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200361A (en) * | 2012-01-06 | 2013-07-10 | 株式会社日立制作所 | Video signal processing apparatus |
CN103217855A (en) * | 2013-04-02 | 2013-07-24 | 金三立视频科技(深圳)有限公司 | Automatic focusing method of camera |
CN104853087A (en) * | 2015-03-16 | 2015-08-19 | 浙江宇视科技有限公司 | Identification and focusing method for point light source scene |
Also Published As
Publication number | Publication date |
---|---|
CN105430268A (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105430268B (en) | A kind of automatic focus approach and device | |
EP2037320B1 (en) | Imaging apparatus, imaging apparatus control method, and computer program | |
US7801432B2 (en) | Imaging apparatus and method for controlling the same | |
US7929042B2 (en) | Imaging apparatus, control method of imaging apparatus, and computer program | |
US7945152B2 (en) | Focus adjustment method, focus adjustment apparatus, and control method thereof | |
KR100890949B1 (en) | Electronic device and method in an electronic device for processing image data | |
US9781334B2 (en) | Control method, camera device and electronic equipment | |
US8885091B2 (en) | Imaging device and distance information detecting method | |
CN103384998B (en) | Imaging device and imaging method | |
CN102843509B (en) | Image processing device and image processing method | |
US8830381B2 (en) | Imaging device and method to provide bokeh effect in captured image by determining distance and focus of captured objects in secondary image sequence | |
CN106707674A (en) | Automatic focusing method of projection equipment and the projection equipment | |
CN108259753A (en) | A kind of camera auto-focusing method and device that climbing method is improved based on defocus estimation | |
KR101784787B1 (en) | Imaging device and method for automatic focus in an imaging device as well as a corresponding computer program | |
JP4624947B2 (en) | Image trimming method, apparatus and program | |
CN105652560B (en) | Photographing method and system capable of automatically adjusting focal length | |
US11057563B2 (en) | Image pickup device and method for controlling same | |
US20130044226A1 (en) | Imaging device and distance information detecting method | |
CN110210333A (en) | A kind of focusing iris image acquiring method and device automatically | |
CN105306806A (en) | Mobile terminal and photographing method thereof | |
JP2012039591A (en) | Imaging apparatus | |
CN105867047A (en) | Flashlight adjusting method and shooting device | |
US20210158537A1 (en) | Object tracking apparatus and control method thereof | |
CN102016710A (en) | Camera and method for controlling a camera | |
KR20090017355A (en) | Apparatus and method for taking pictures after adjusting composition of the pictures automatically |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518000, No. 2-3, 2 floor, Honghui Industrial Park, Xin'an street, Shenzhen, Guangdong, Baoan District Applicant after: Shenzhen hi tech Limited by Share Ltd Address before: Nanshan District West Lixin Shenzhen city Guangdong province 518000 Wai Shiling Industrial Zone eight floor -1 Applicant before: Shenzhen Weihaide Electronic Technology Co.,Ltd. |
|
CB03 | Change of inventor or designer information |
Inventor after: Liang Ming Inventor before: Liang Ming Inventor before: Shi Liqing |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |