CN106791434B - Device and method for assisting in picture definition by AF focusing - Google Patents

Device and method for assisting in picture definition by AF focusing Download PDF

Info

Publication number
CN106791434B
CN106791434B CN201710036818.2A CN201710036818A CN106791434B CN 106791434 B CN106791434 B CN 106791434B CN 201710036818 A CN201710036818 A CN 201710036818A CN 106791434 B CN106791434 B CN 106791434B
Authority
CN
China
Prior art keywords
value
picture
focusing
details
sharpening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710036818.2A
Other languages
Chinese (zh)
Other versions
CN106791434A (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.)
Chongqing Bio Newvision Medical Equipment Ltd
Original Assignee
Jiekai Communications Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiekai Communications Shenzhen Co Ltd filed Critical Jiekai Communications Shenzhen Co Ltd
Priority to CN201710036818.2A priority Critical patent/CN106791434B/en
Publication of CN106791434A publication Critical patent/CN106791434A/en
Application granted granted Critical
Publication of CN106791434B publication Critical patent/CN106791434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method for clearing an auxiliary picture by utilizing AF focusing, which comprises the following steps: s1, continuously searching from the initial position; s2, calculating an FV value for each position; s3, if the FV value is increased all the time, the forward search is continued, if the FV value is decreased, the reverse search is continued; s4, when FV value increases to a value and begins to decrease, the corresponding FV value is considered to be the clearest point at which the lens stays. The invention also discloses a device for utilizing AF to focus and assist the image to be clear, which comprises an imaging module and a focusing processing module, and is characterized in that: the focusing processing module adopts an AF focusing principle to assist the picture to become clear. The method can extract the details of the current scene by using a proper edge detection filter, increases the contrast, is used for helping to solve the problem of denoising of the camera in the prior art, and greatly improves the details of the shot picture.

Description

Device and method for assisting in picture definition by AF focusing
Technical Field
The present invention relates to the field of electronic device photography, and more particularly, to a device and method for assisting image sharpness by AF focusing.
Background
With the development of electronic technology, more and more intelligent devices with camera shooting function are applied to people's life, for example, a camera on a mobile phone or other devices is used to shoot a wonderful scene or a special scene, so as to obtain a wonderful instantaneous picture. With the continuous pursuit of excellent image quality, mobile phone manufacturers have added advanced technologies to cameras to ensure the imaging quality of images, so as to take better pictures.
With the maturity of technology and the market requirement, people have higher and higher requirements on the definition, the details and the like of pictures. At present, the traditional denoising mode of a camera sets different denoising strengths according to different gain values of detection signals, and cannot distinguish whether a scene is a scene with rich details or a plane scene, so that the result is a set of filter for detecting edges, all details of the current environment cannot be well detected, and the details of a shot picture are lost.
Disclosure of Invention
The technical problem to be solved by the invention is to assist in judging the detail degree of the current scene based on an FV value (focus value) in an AF focusing process, apply a proper edge detection filter to the current scene, extract details and increase the contrast.
In view of this, the present application provides an AF focusing method using a mobile phone, so as to help solve the problem of denoising of a camera in the prior art, and greatly improve details of a shot picture.
The technical scheme adopted by the invention for solving the technical problems is as follows:
A method for sharpening an auxiliary picture by AF focusing comprises the following steps: s1, continuously searching from the initial position; s2, calculating an FV value for each position; s3, if the FV value is increased all the time, the forward search is continued, if the FV value is decreased, the reverse search is continued; s4, when FV value increases to a value and begins to decrease, the corresponding FV value is considered to be the clearest point at which the lens stays.
preferably, the FV value is calculated by dividing the picture into several areas, calculating the FV values of RGB for each area, and then adding the FV values of all the areas to synthesize one FV value.
Preferably, the more details of the picture are rich, the larger FV value of the picture is, and the less details of the picture are, the smaller FV value is.
Preferably, a threshold value is set in each picture area of the picture, and if the calculated FV value is greater than the threshold value, the interpolation result of two adjacent areas is used.
Preferably, the filter of region 1 is used to enhance the details of the entire scene when the calculated FV value is much greater than the threshold value.
Preferably, the FV value calculation method adopts a bayer array calculation method, and the calculation formula is as follows:
R Sharpness=λ(R0,4+R0,6+R2,4+R2,6);
Gr Sharpness=λ(R0,5+R0,7+R2,5+R2,7);
Gb Sharpness=λ(R1,4+R1,6+R3,4+R3,6);
Sharpness=λ(R1,5+R1,7+R3,5+R3,7)。
preferably, each channel for which FV values are calculated has an empirical coefficient, then:
R Sharpness=λ(a11*R0,4+a12*R0,6+a21*R2,4+a22*R2,6);
Gr Sharpness=λ(a11*R0,5+a12*R0,7+a21*R2,5+a22*R2,7);
Gb Sharpness=λ(a11*R1,4+a12*R1,6+a21*R3,4+a22*R3,6);
B Sharpness=λ(a11*R1,5+a12*R1,7+a21*R3,5+a22*R3,7)。
preferably, the method can be applied to a camera of an electronic device.
The device for clearing the auxiliary picture by utilizing AF focusing comprises an imaging module and a focusing processing module, wherein the focusing processing module is used for assisting the picture to be clear by adopting an AF focusing principle.
Preferably, the device can be applied to a camera or a mobile phone.
The invention has the beneficial effects that: the method has the advantages that the proper edge detection filter is applied to extract the details of the current scene, the contrast is increased, the problem of camera de-noising in the prior art is solved in an auxiliary mode, and the details of the shot picture are greatly improved.
Drawings
FIG. 1 is a flowchart illustrating a method for assisting in picture sharpening by AF according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The image is an important information source, and people can be helped to know the content of the information through image processing. However, the image is often degraded by interference and influence of various noises during the generation and transmission processes, which will adversely affect the processing (such as segmentation, compression, image understanding, etc.) of the subsequent images. Therefore, in order to suppress noise, improve image quality and facilitate higher-level processing, the image needs to be subjected to denoising preprocessing.
The invention provides a method for clearing an auxiliary picture by utilizing AF focusing.
AF (automatic focusing) focusing principle of the invention
The process of AF focusing is to search forward from the initial position continuously, each position calculates an FV value, if FV is increased all the time, the focusing is proved to be in this direction, and the search is continued forward, if FV is decreased, the search direction is reversed, and the search in the reverse direction is needed.
FV is increased upward and if after increasing to a value, FV begins to drop to some extent, we consider that this clearest point is found. After which the lens stays in this position.
Therefore, the method for clearing the auxiliary picture by utilizing AF focusing comprises the following steps:
S1, continuously searching from the initial position;
S2, calculating an FV value for each position;
s3, if the FV value is increased all the time, the forward search is continued, if the FV value is decreased, the reverse search is continued;
S4, when FV value increases to a value and begins to decrease, the corresponding FV value is considered to be the clearest point at which the lens stays.
The sharpness improving method which is currently universal: that is, one filter is used to extract edge information of a picture, different filter shapes are set according to different regions (according to a gain value currently used by a sensor), a gain value smaller than a region 1 uses a filter of the region 1 to extract edge information, a gain larger than a region 2 uses a filter of the region 2 to extract edge information, and between the region 1 and the region 2, edge information is extracted using interpolation results of the filters of the region 1 and the region 2. This has the disadvantage that the lower the area is, the worse the edge detection information is, especially for some indoor scenes, the details are rich, but because of the consideration of the whole information of the area, it is impossible to use an extreme filter to detect the information of the area, so that the details of part of the object are lost, and the amount of edge information is not rich.
In this regard, we can assist FV information of AF to determine whether the current scene contains information rich in details. Thus, in the preferred embodiment of the present invention, the FV value is calculated by dividing the picture into regions, each of which calculates the FV values of RGB, and then adding the FV values of all the regions to synthesize one FV value.
Preferably, the more details of the picture are rich, the larger FV value of the picture is, and the less details of the picture are, the smaller FV value is.
Preferably, a threshold value is set in each picture area of the picture, and if the calculated FV value is greater than the threshold value, the interpolation result of two adjacent areas is used.
preferably, the filter of region 1 is used to enhance the details of the entire scene when the calculated FV value is much greater than the threshold value.
For example, according to the current exposure information, the gain of the sensor is in area 2, but for the shot scene, FV value is high, if the filter in area 2 cannot fully show the whole details of the picture, we can set an FV threshold for each area, and when the FV threshold is greater than this threshold, we can use the interpolation results of the filters in area 1 and area 2, and if FV is large enough, we can also use the filter in area 1 to improve the details of the whole scene, so as to present better picture effect to the client.
Preferably, the FV value calculation method adopts a bayer array calculation method, and the calculation formula is as follows:
R Sharpness=λ(R0,4+R0,6+R2,4+R2,6);
Gr Sharpness=λ(R0,5+R0,7+R2,5+R2,7);
Gb Sharpness=λ(R1,4+R1,6+R3,4+R3,6);
Sharpness=λ(R1,5+R1,7+R3,5+R3,7)。
Preferably, each channel for which FV values are calculated has an empirical coefficient, then:
R Sharpness=λ(a11*R0,4+a12*R0,6+a21*R2,4+a22*R2,6);
Gr Sharpness=λ(a11*R0,5+a12*R0,7+a21*R2,5+a22*R2,7);
Gb Sharpness=λ(a11*R1,4+a12*R1,6+a21*R3,4+a22*R3,6);
B Sharpness=λ(a11*R1,5+a12*R1,7+a21*R3,5+a22*R3,7)。
in a preferred embodiment of the invention, FV is calculated by dividing the picture as a whole into several regions, each region calculating FV values of RGB, and then adding the FV values of all the regions to synthesize one FV. I.e. a picture has only one FV value. And we can also set different thresholds to filter out FV calculated due to noise interference, increasing the accuracy of the picture. If a picture is more detailed, the FV value of the picture is larger, and if the picture is less detailed, the FV is small, the FV grows slowly, the FV _ nex/FV _ pre has a smooth value, and the FV rises less steeply.
Preferably, the method for assisting in picture sharpening by AF focusing provided by the invention can be applied to a camera of an electronic device.
The device for clearing the auxiliary picture by utilizing AF focusing comprises an imaging module and a focusing processing module, wherein the focusing processing module is used for assisting the picture to be clear by adopting an AF focusing principle.
Preferably, the device for assisting in picture sharpening by AF focusing can be applied to a camera or a mobile phone.
although the illustrative embodiments of the present invention have been described above to enable those skilled in the art to understand the present invention, the present invention is not limited to the scope of the embodiments, and it is apparent to those skilled in the art that all the inventive concepts using the present invention are protected as long as they can be changed within the spirit and scope of the present invention as defined and defined by the appended claims.

Claims (5)

1. A method for sharpening an auxiliary picture by AF focusing comprises the following steps: s1, continuously searching from the initial position; s2, calculating an FV value for each position; s3, if the FV value is increased all the time, the forward search is continued, if the FV value is decreased, the reverse search is continued; s4, when the FV value increases to a value, it starts to decrease, then the corresponding FV value is considered to be the clearest point, the lens stays at the position, the FV value is calculated by dividing the picture into several areas, each area calculates the FV value of RGB, then the FV values of all areas are added to compose an FV value, the details of the picture are richer, the larger the FV value of the picture is, the less the details of the picture are, the FV value is smaller, a threshold value is set in each picture area of the picture, if the calculated FV value is larger than the threshold value, the interpolation result of two adjacent areas is used.
2. The method as claimed in claim 1, wherein the method further comprises: when the calculated FV value is much larger than the threshold value, the filter of area 1 is used to enhance the details of the entire scene.
3. a method for sharpening an auxiliary picture by AF according to claim 1 or 2, wherein: the method can be applied to a camera of the electronic equipment.
4. An apparatus for assisting picture sharpening by AF focusing according to the method of claim 1 or 2, comprising an imaging module and a focusing processing module, characterized in that: the focusing processing module adopts an AF focusing principle to assist the picture to become clear.
5. the apparatus for sharpening an AF-focus aid picture according to claim 4, wherein: the device can be applied to a camera or a mobile phone.
CN201710036818.2A 2017-01-18 2017-01-18 Device and method for assisting in picture definition by AF focusing Active CN106791434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710036818.2A CN106791434B (en) 2017-01-18 2017-01-18 Device and method for assisting in picture definition by AF focusing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710036818.2A CN106791434B (en) 2017-01-18 2017-01-18 Device and method for assisting in picture definition by AF focusing

Publications (2)

Publication Number Publication Date
CN106791434A CN106791434A (en) 2017-05-31
CN106791434B true CN106791434B (en) 2019-12-13

Family

ID=58944135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710036818.2A Active CN106791434B (en) 2017-01-18 2017-01-18 Device and method for assisting in picture definition by AF focusing

Country Status (1)

Country Link
CN (1) CN106791434B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197152B (en) * 2017-06-16 2020-01-14 Oppo广东移动通信有限公司 Focusing method, focusing device, computer readable storage medium and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763624A (en) * 2004-10-22 2006-04-26 亚洲光学股份有限公司 Automatic focusing method and automatic focusing apparatus of electronic camera
CN101931752A (en) * 2009-06-19 2010-12-29 卡西欧计算机株式会社 Camera head and focusing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4085720B2 (en) * 2002-07-02 2008-05-14 株式会社ニコン Digital camera

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763624A (en) * 2004-10-22 2006-04-26 亚洲光学股份有限公司 Automatic focusing method and automatic focusing apparatus of electronic camera
CN101931752A (en) * 2009-06-19 2010-12-29 卡西欧计算机株式会社 Camera head and focusing method

Also Published As

Publication number Publication date
CN106791434A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10176558B2 (en) Method, apparatus and computer program product for motion deblurring of images
CN104349066B (en) A kind of method, apparatus for generating high dynamic range images
EP2987135B1 (en) Reference image selection for motion ghost filtering
US9113059B2 (en) Image pickup apparatus and image region discrimination method
US20140133774A1 (en) Image processor and image dead pixel detection method thereof
TWI436142B (en) Method and apparatus for auto-focusing in image sensor
IES20050090A2 (en) A digital image acquisition system having means for determining a camera motion blur function
US8743235B2 (en) Adaptive automatic exposure apparatus and method for digital images
CN111915505A (en) Image processing method, image processing device, electronic equipment and storage medium
US20090034953A1 (en) Object-oriented photographing control method, medium, and apparatus
US20100208140A1 (en) Image processing apparatus, image processing method and storage medium storing image processing program
JP5179223B2 (en) Imaging apparatus and imaging program
CN106791434B (en) Device and method for assisting in picture definition by AF focusing
WO2013094552A1 (en) Imaging device, method for controlling same, and program
US7899315B2 (en) Method of automatically adjusting the depth of field
JP2006049949A (en) Image processing apparatus, image processing method and program thereof
US9020280B2 (en) System and method for evaluating focus direction under various lighting conditions
JP2008042227A (en) Imaging apparatus
US11375110B2 (en) Image processing apparatus, image pickup apparatus, image processing method, and non-transitory computer-readable storage medium
US8412002B2 (en) Method for generating all-in-focus image
WO2021237577A1 (en) Image processing method and apparatus, and movable platform, and storage medium
US11044396B2 (en) Image processing apparatus for calculating a composite ratio of each area based on a contrast value of images, control method of image processing apparatus, and computer-readable storage medium
US10708501B2 (en) Prominent region detection in scenes from sequence of image frames
US20180352153A1 (en) Image processing apparatus that generates evaluation value for evaluating luminance of image data, image capturing apparatus, method for processing image, and program
JP5871590B2 (en) Imaging apparatus and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230907

Address after: Room 501, 85 Xiaguang Dongli, Haicang District, Xiamen City, Fujian Province, 361000

Patentee after: Xiamen reliable intellectual property service Co.,Ltd.

Address before: 518057 16th floor, block B, TCL building, South 1st Road, Gaoxin, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: JRD COMMUNICATION (SHENZHEN) Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231208

Address after: 400000, 2nd Floor, No. 27-5 Fengsheng Road, Jinfeng Town, Chongqing High tech Zone, Jiulongpo District, Chongqing

Patentee after: CHONGQING BIO NEWVISION MEDICAL EQUIPMENT Ltd.

Address before: Room 501, 85 Xiaguang Dongli, Haicang District, Xiamen City, Fujian Province, 361000

Patentee before: Xiamen reliable intellectual property service Co.,Ltd.