JP2015040922A - Imaging apparatus and its control method, program and storage medium - Google Patents

Imaging apparatus and its control method, program and storage medium Download PDF

Info

Publication number
JP2015040922A
JP2015040922A JP2013170824A JP2013170824A JP2015040922A JP 2015040922 A JP2015040922 A JP 2015040922A JP 2013170824 A JP2013170824 A JP 2013170824A JP 2013170824 A JP2013170824 A JP 2013170824A JP 2015040922 A JP2015040922 A JP 2015040922A
Authority
JP
Japan
Prior art keywords
focus
contrast
imaging
degree
value
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
JP2013170824A
Other languages
Japanese (ja)
Other versions
JP6200240B2 (en
JP2015040922A5 (en
Inventor
暁彦 上田
Akihiko Ueda
暁彦 上田
Original Assignee
キヤノン株式会社
Canon Inc
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 キヤノン株式会社, Canon Inc filed Critical キヤノン株式会社
Priority to JP2013170824A priority Critical patent/JP6200240B2/en
Publication of JP2015040922A publication Critical patent/JP2015040922A/en
Publication of JP2015040922A5 publication Critical patent/JP2015040922A5/ja
Application granted granted Critical
Publication of JP6200240B2 publication Critical patent/JP6200240B2/en
Application status is Active legal-status Critical
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To achieve a focus detection in which the time required for focusing is shortened even for a subject whose contract changes when focusing and when blurring.SOLUTION: An imaging apparatus for performing a focus adjustment on the basis of an imaging signal obtained by scanning a focus lens along an optic axis of a photographic optical system includes: an imaging section for capturing a subject image and generating the imaging signal; an evaluation value generation section for generating contrast information which is the information of a contrast in the imaging signal, and a contrast evaluation value indicating an amount of a high frequency component in the imaging signal; a focus adjustment section for performing the focus adjustment on the basis of the contrast evaluation value obtained by scanning the focus lens; a determination section for determining a focus degree on the basis of the contrast information; and a control section for controlling the scanning of the focus lens on the basis of the determination by the determination section.

Description

  The present invention relates to an autofocus technique used in digital cameras, video cameras, and the like.

  In digital cameras, video cameras, and the like, a contrast AF method that detects a focus position based on the sharpness (contrast) of an image signal obtained from an image sensor such as a CCD or CMOS is widely used. Specifically, a contrast evaluation value indicating the degree of contrast is generated for an imaging signal obtained by sequentially imaging while moving the focus lens, and the position of the focus lens at which the contrast is maximized is determined based on the contrast evaluation value. The focus position. That is, the focus position is searched by moving the focus lens in the optical axis direction.

  However, since the contrast AF method needs to search for a position where the contrast evaluation value is maximized, the range in which the focus lens moves becomes long or the focus position is excessively moved at a high speed. The time was getting longer.

  As an index for determining the degree of focus even in the contrast AF method, the focus level, which is a value obtained by dividing the high frequency component of the subject brightness by the difference between the maximum value and the minimum value of the subject brightness, is used, and the scan range is determined according to the focus level. A technique for setting is described in Patent Document 1.

JP 2002-214517 A

  In the technique described in Patent Document 1, since the degree of focus varies depending on the subject, a subject (for example, a face that has a low degree of focus at the time of large defocus and suddenly increases in the vicinity of the focus). It is difficult to determine the degree of focus for a thin line subject. In particular, if the focus level changes abruptly, it cannot be determined that the focus level is high during the movement of the focus lens, and the focus position is moved too far, resulting in a long focus time.

  The present invention has been made in view of the above-described problems, and it is an object of the present invention to realize focus detection with a reduced focusing time even for a subject whose contrast changes greatly between in-focus and out-of-focus.

  An imaging apparatus according to the present invention is an imaging apparatus that performs focus adjustment based on an imaging signal obtained by scanning a focus lens along an optical axis of an imaging optical system. It is obtained by scanning the focus lens, imaging means to generate, contrast information that is contrast information in the imaging signal, and a contrast evaluation value that indicates the amount of high-frequency components in the imaging signal, and the focus lens. A focus adjustment unit that performs focus adjustment based on the contrast evaluation value, a determination unit that determines a degree of focus based on the contrast information, and a scan of the focus lens based on the determination by the determination unit. And a control means.

  According to the present invention, it is possible to realize focus detection with a reduced focusing time even for a subject whose contrast changes greatly between in-focus and out-of-focus.

It is a block diagram which shows the structure of one Embodiment of the imaging device which concerns on this invention. It is a figure explaining a focusing degree. It is a figure explaining a movement of a focus lens. It is a figure explaining the difference in the focus degree by a to-be-photographed object. It is a figure explaining the contrast evaluation value of a black-and-white edge. It is a figure explaining the contrast evaluation value of a face. It is a figure explaining the peak value and average value of the contrast evaluation value per line. It is a figure explaining a movement of a focus lens. It is a flowchart which shows operation | movement of one Embodiment of this invention. It is a sub-flowchart which shows operation | movement of one Embodiment of this invention. It is a flowchart which shows operation | movement at the time of performing face detection.

  Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

  FIG. 1 is a block diagram showing a configuration of an embodiment of an imaging apparatus according to the present invention, showing an electronic camera in which a camera body having an imaging element and a photographing optical system are integrated, and moving images and still images are recorded. Is possible.

  In FIG. 1, reference numeral 101 denotes a first lens group disposed at the tip of a photographing optical system (imaging optical system), which is held movably in the optical axis direction. Reference numeral 102 denotes an aperture, which adjusts the aperture diameter and adjusts the amount of light during shooting, and also has a function as an exposure time adjustment shutter when shooting a still image. Reference numeral 103 denotes a second lens group. The diaphragm 102 and the second lens group 103 are integrally driven in the optical axis direction, and perform a zooming function (zoom function) in conjunction with the moving operation of the first lens group 101.

  Reference numeral 105 denotes a third lens group (focus lens) that performs focus adjustment by movement in the optical axis direction. Reference numeral 106 denotes an optical low-pass filter, which is an optical element for reducing false colors and moire in a captured image. Reference numeral 107 denotes an image sensor having a pixel capable of focus detection, and is composed of a CMOS sensor and its peripheral circuits. The image sensor 107 is a two-dimensional single-plate color sensor in which M pixels in the horizontal direction and N pixels in the vertical direction are squarely arranged, and a primary color mosaic filter in a Bayer array is formed on-chip.

  Reference numeral 111 denotes a zoom actuator, which rotates a cam cylinder (not shown) manually or by an actuator, thereby driving the first lens group 101 to the third lens group 105 in the optical axis direction to perform a zooming operation. An aperture actuator 112 controls the aperture diameter of the aperture 102 to adjust the amount of photographing light, and controls the exposure time during still image shooting. A focus actuator 114 adjusts the focus by driving the third lens group 105 in the optical axis direction.

  Reference numeral 121 denotes a CPU, which has a calculation unit, ROM, RAM, A / D converter, D / A converter, communication interface circuit, and the like to manage various controls of the camera body. Based on a predetermined program stored in the ROM, various circuits of the camera are driven, and a series of operations such as focus adjustment (AF), photographing, image processing, and recording are executed.

  Reference numeral 122 denotes an image sensor driving circuit that controls the imaging operation of the image sensor 107 and A / D-converts the acquired image signal and transmits it to the CPU 121. An image processing circuit 123 performs processing such as color interpolation, γ conversion, and image compression of the image acquired by the image sensor 107. Reference numeral 124 denotes a contrast signal processing circuit as evaluation value generation means, which performs various filter processes on the signal from the image sensor driving circuit 122 to generate contrast information and a contrast evaluation value.

  Reference numeral 125 denotes a focus drive circuit as focus adjusting means, which drives and controls the focus actuator 114 based on the focus detection result, and performs focus adjustment by driving the third lens group 105 in the optical axis direction. A diaphragm driving circuit 126 controls the aperture diameter of the diaphragm 102 by drivingly controlling the diaphragm actuator 112. Reference numeral 127 denotes a zoom drive circuit that drives the zoom actuator 111 according to the zoom operation of the photographer.

  Reference numeral 131 denotes a display such as an LCD, which displays information related to the shooting mode of the camera, a preview image at the time of shooting, a confirmation image after shooting, and a focus state display image at the time of focus detection. An operation switch group 132 includes a power switch, a shooting start switch, a zoom operation switch, a shooting mode selection switch, and the like. Reference numeral 133 denotes a detachable flash memory that records captured images including moving images and still images.

  Reference numeral 141 denotes a determination unit that determines the degree of focus based on the contrast information generated by the contrast signal processing circuit 124, and further changes the determination condition for the degree of focus based on the contrast information.

  A face detection unit 142 applies a face detection process based on a known face detection technique to the image signal acquired by the image sensor 107, and detects a face area as an example of a person area in the image. As a known face detection technique, a method based on learning using a neural network or the like, template matching is used to search a part having a characteristic shape of eyes, nose, mouth, etc. from an image, and if the degree of similarity is high, it is regarded as a face There are methods. In addition, many other methods have been proposed that detect image feature quantities such as skin color and eye shape and use statistical analysis. In general, a plurality of these methods are combined to improve face detection accuracy.

  Next, the pixel arrangement of the image sensor 107 in this embodiment will be described. A Bayer arrangement is applied to the color filters, and green (Red) and red (Red) color filters are alternately provided in order from the left on pixels in odd rows. In addition, blue (Blue) and green (Green) color filters are alternately provided in order from the left in the pixels in even rows. An on-chip microlens is provided on the color filter, and a photoelectric conversion unit is disposed inside thereof.

  Note that the image sensor 107 of the present embodiment has the following two types of readout modes. The first readout mode is called an all-pixel readout mode and is a mode for capturing a high-definition still image. In this case, signals of all pixels are read out. The second readout mode is called a thinning readout mode, and is a mode for performing only moving image recording or preview image display. In this case, since the number of necessary pixels is smaller than that of all the pixels, the pixel group reads out only the pixels thinned out at a predetermined ratio in both the X direction and the Y direction. This enables high-speed reading.

  Next, the contrast AF method will be described. The contrast signal processing circuit 124 extracts a high frequency component by filtering the image signal in the evaluation region, and generates a contrast evaluation value. The contrast evaluation value used in the present embodiment is to filter the image signal in the evaluation region, extract only the high frequency components, hold the peak value per line, and set the maximum value of each line in the vertical direction. It is defined as the value accumulated in. The contrast signal processing circuit 124 of this embodiment has a filter having a plurality of frequency characteristics or a filter having variable frequency characteristics. By changing the contrast evaluation value to a filter having a different evaluation frequency band, the frequency component to be acquired can be changed. In addition, the contrast signal processing circuit 124 generates not only the contrast evaluation value but also other contrast information. The other contrast information is the difference between the peak of the high frequency component of the luminance level of the image signal in the evaluation region and the maximum value and the minimum value of the luminance level of the image signal in the evaluation region. In the contrast AF method, the image signal is immediately subjected to signal processing via a filter to generate a contrast evaluation value and contrast information. Therefore, it is not necessary to store the image signal and the calculation load is light. Therefore, it is possible to simultaneously perform signal processing on a plurality of evaluation areas without depending on the range of the ranging area.

  The contrast evaluation value generated by the contrast signal processing circuit 124 changes depending on the degree of focus. The contrast evaluation value of a focused image is large, and the contrast evaluation value of a blurred image is small. For this reason, the contrast evaluation value can be used as a value representing the focus state of the imaging optical system. However, since the defocus amount is not known as in the imaging surface phase difference detection method, it is necessary to search for a focus position where the contrast evaluation value has the maximum value.

  The detection of the in-focus position by the contrast AF method performs a scanning operation for moving the focus lens 105 in a certain direction, searches for a direction in which the contrast evaluation value increases, moves the focus lens 105 in that direction, and determines the contrast evaluation value. Get the maximum value. And the contrast evaluation value until it starts decreasing after that is acquired. Focus determination uses the top three or four points with the largest contrast evaluation value, and the focus lens position (focus position) at which the contrast evaluation value becomes the maximum value is calculated by performing interpolation calculation from the corresponding focus lens position. calculate. Thereby, the focus lens 105 can be moved to the in-focus position.

  The above is the contrast AF method, but the period in which the contrast evaluation value can be acquired depends on the frame rate, which is the readout period of the image sensor 107. Therefore, the contrast evaluation value can be acquired only discretely during the scanning operation for moving the focus lens 105. Further, in order to detect the in-focus position with high accuracy, it is necessary to make the acquisition interval of the contrast evaluation value dense. That is, in order to increase the contrast evaluation value acquisition interval, it is necessary to set the moving speed of the focus lens to a low speed. However, it is only necessary to reduce the scan speed, which is the moving speed of the focus lens, in the vicinity of the focus where the contrast evaluation value takes the maximum value. Absent. That is, the focusing time can be shortened by quickly moving to the vicinity of focusing. In the contrast AF method, the contrast evaluation value is acquired densely in the vicinity of in-focus, and the contrast evaluation value is densely acquired. In contrast, when the image is blurred, the scan speed is increased and the contrast evaluation value is acquired roughly to shorten the focusing time. .

  In order to shorten the in-focus time, an index of in-focus level, which is one of contrast information, is used to change the scan speed, which is the moving speed of the focus lens, between the time of blurring and in the vicinity of the in-focus state. The degree of focus used in the present embodiment refers to the peak value in all the lines in the evaluation area while extracting only high-frequency components by filtering the image signal in the evaluation area, and the brightness of the image signal in the evaluation area. The value divided by the difference between the maximum and minimum values of the level.

  By using the degree of focus, it is possible to reduce the influence of the contrast of the subject itself. When the subject has low contrast, the difference between the maximum value and the minimum value of the brightness level of the image signal in the evaluation area that is the denominator of the focus degree is small, and all lines in the evaluation area that is the numerator of the focus degree The maximum value of the high frequency component is also small. When the subject has high contrast, the difference between the maximum value and the minimum value of the luminance level of the image signal in the evaluation area that is the denominator of the focus degree is large, and all lines in the evaluation area that is the numerator of the focus degree The peak value of the high frequency component is also large. As described above, the degree of focus is obtained by dividing the peak value of the high-frequency component in all the lines in the evaluation region by the difference between the maximum value and the minimum value of the luminance level of the image signal in the evaluation region, and thus depending on the contrast of the subject. Can be normalized so that there is no. As a result, for any subject, for example, when the focus level at the focus position is 1, the focus level at the position near the focus from the blur can be set to 0.6, for example. Thereby, it is possible to determine the degree of focus while reducing the influence of the subject.

  However, since the focus level uses the peak value of the high-frequency component in the evaluation region, it is greatly affected by fluctuations in value and noise, and is not suitable for use in accurately detecting the focus position with desired accuracy. For the detection of the in-focus position, the contrast evaluation value, which is the integrated value of the peak values of each line, is more suitable because it is more resistant to noise. Focusing degree is suitable for determining the degree of focusing such as large blurring, blurring, in-focusing, etc. by changing the value of the focusing degree even when blurring by setting the evaluation band of the filter processing to a low band. ing.

  Next, a contrast AF method using the degree of focus will be described. The in-focus time can be shortened by using the in-focus level as an index for changing the scan speed in accordance with the in-focus level.

  FIG. 2 is a diagram showing the degree of focus. The horizontal axis represents the focus lens position, and the vertical axis represents the degree of focus. Assuming that the focus lens position farthest from the in-focus position is A0, when the in-focus degree is less than a predetermined threshold (for example, 2/3 of the maximum in-focus degree) at the position A0, it is determined that the image is out of focus. And increase the scanning speed of the focus lens. After that, a scanning operation is performed, and when the focus lens position A1 is equal to or greater than a predetermined threshold (B1 in FIG. 2), the focus lens scan speed is set to a low speed when the focus lens position A1 is reached. It changes to the acquisition interval of the contrast evaluation value which can detect a position. As described above, the in-focus time can be shortened by setting the scan speed to a high speed when the degree of focus is less than the predetermined threshold and setting the scan speed to a low speed when the in-focus degree is greater than or equal to the predetermined threshold.

  Next, the focusing operation will be described with reference to FIG. FIG. 3 is a diagram illustrating the operation of the focus lens, where the horizontal axis indicates time and the vertical axis indicates the focus lens position. The dotted line is the operation of the focus lens when the focus degree is not used, and the solid line is the operation of the focus lens when the focus degree is used. In FIG. 2, a position (for example, an infinite position) away from the in-focus position (for example, 2 m) is defined as A0, and a time 0 position is defined. The scanning operation is started from the focus lens position A0. First, it is confirmed that the in-focus degree is equal to or less than a predetermined value, and the scanning operation is performed by setting the scanning speed of the focus lens to be high. In the scanning operation when the degree of focus is not used, scanning is performed at high speed until the contrast evaluation value reaches the peak value. For this reason, the in-focus position passes at high speed, and the amount of overshoot with respect to the in-focus position increases. Furthermore, since the in-focus position has been passed while the scanning speed is high, the in-focus position cannot be accurately detected. Furthermore, since the scan start position is returned, the scan speed is set to a low speed, and the scan operation is performed again, the focusing time t2 becomes long.

  When the degree of focus is used as shown in FIG. 2, the scanning operation is performed at a high speed up to the focus lens position A1 in the vicinity of the in-focus position, and the scanning speed is set at a low speed from the position A1, thereby the in-focus position. The scan speed can be set so that the in-focus position can be detected in front. For this reason, useless operation of the focus lens is reduced, the focusing time is t1, and the focusing time t2 when the focusing degree is not used can be shortened. The above is the description of the contrast AF method using the focusing degree.

  Next, the problem of the degree of focus will be described. The degree of focus is an index that has a small subject-dependent influence, but there is a difference in value between high-contrast and low-contrast subjects. FIG. 4 shows differences in the degree of focus among various subjects. A broken line indicates a high-contrast subject, a dotted line indicates a low-contrast subject, a solid line indicates a low-contrast subject when blurred, and a high-contrast subject (for example, a face or a thin line) when focused. In the case of a low-contrast subject, the degree of focus is small because the maximum contrast value in all lines in the evaluation area is small compared to the difference between the maximum and minimum luminance levels of the image signal in the evaluation area. It has become. In the case of low contrast, the maximum value of the contrast of the image signal in the evaluation area always takes a low value (dotted line in FIG. 4). When this value is small, the threshold value of the degree of focus for setting the scan speed to a low speed is set to a value lower than a predetermined value (for example, 20% decrease). In this way, the threshold value of the degree of focus is adjusted. Such an in-focus degree threshold value changing method is effective for a low-contrast subject.

  However, it is not effective for a subject (for example, a face) whose contrast changes greatly between blurring and focusing. When the subject is out of focus, the increase in focus is small because of a low-contrast subject, and the scan speed cannot be reduced near the focus and before the focus position because the focus increases suddenly near the focus. Therefore, the focusing time becomes long.

  Such a subject is a phenomenon seen on a face or a subject with a thin line. This is because, in the case of a face, portions with clear contrast with the skin such as eyes, eyebrows, and mouth are crushed and become assimilated with the skin color when blurred. When a subject with a thin line is blurred, the line is buried in the surrounding subject and the contrast is reduced.

  In the present embodiment, the focusing time is shortened by appropriately setting the scanning speed to a low speed using the degree of focusing appropriately even for a subject whose contrast changes greatly between in-focus and in-focus. In the method of this embodiment, the degree of focus is determined by comparing the average value of one line of the contrast evaluation values in the evaluation region with the peak value of the contrast (high frequency component) in all the lines in the evaluation region. Change the threshold value. The peak value of the contrast (high frequency component) in all the lines here is the peak value in the high frequency component extracted by the filter processing. The high frequency components and peak values extracted by the filter processing with different evaluation bands are different.

  Next, the method according to the present embodiment will be described with reference to FIGS. FIG. 5 shows an object with a black-and-white edge and the same contrast in each line in the evaluation area. 5A shows a subject image at the time of focusing, and FIG. 5B shows a subject image at the time of blurring. As a graph corresponding thereto, the vertical axis shows the evaluation line, and the horizontal axis shows the peak value of each line. In the case of a black and white edge subject, the peak values of each line are all the same. That is, the value obtained by dividing the peak value of a certain line in the evaluation region and the contrast evaluation value, which is the integrated value of each line peak value, by the number of lines, that is, the average value of one line of the contrast evaluation value is equal. When the ratio of the peak value of all the lines in the evaluation area to the average value of one line of the contrast evaluation values is close to 1, it can be estimated that each line in the evaluation area is a subject having the same contrast. Since each line in the evaluation area has the same contrast, the peak value of each line is large at the time of focusing and is small at the time of blurring. The ratio is close to 1.

  FIG. 6 shows a face as an example of a subject having a different contrast in each line in the evaluation area. FIG. 6A shows the subject image at the time of focusing, and FIG. 6B shows the subject image at the time of blurring. As a graph corresponding thereto, the vertical axis shows the evaluation line, and the horizontal axis shows the peak value of each line. In FIG. 6, since the face is a subject, the peak values are greatly different in each line. Evaluation lines with large contrast eyes, eyebrows, and mouths have large peak values, but the other evaluation lines have small values because of low contrast. In this way, the peak values are greatly different for each line in the evaluation region. From the above, the ratio of the average value of the peak value and the contrast evaluation value in all the lines in the evaluation region takes a value larger than 1.

  FIG. 6B shows a state at the time of blurring. Since it is difficult to express at the time of blurring, it is indicated by a dotted line, but the edge of the actual subject image is blurred. At the time of blurring, unlike in-focus, the eyes, eyebrows, and mouth are blurred and the contrast is not clear. Therefore, since the peak value of each line becomes a small value, the contrast evaluation value that is an integrated value of the peak values of each line also becomes small. Due to the blurring of the edge image due to the blur, the difference in peak value of each line becomes smaller than that at the time of focusing. That is, the ratio of the peak value of all the lines in the evaluation region to the average value of one line of the contrast evaluation value takes a value close to 1.

  From the above, it can be seen that a difference occurs in the ratio between the peak value of all the lines in the evaluation area and the average value of the contrast evaluation value at the time of in-focus and when the subject has different contrast in each line. The ratio is close to 1 at the time of blur, but takes a value greater than 1 near the focus.

  FIG. 7 shows the ratio of the peak value of all the lines in the evaluation region to the average value of one line of the contrast evaluation value. The horizontal axis indicates the focus lens position, and the position A2 is the in-focus position. The vertical axis represents the ratio of the peak value of all the lines in the evaluation region to the average value of one line of the contrast evaluation value. The broken line shows the case where the black and white edge shown in FIG. 5 is a subject, and the solid line shows the case where the subject shown in FIG. 6 is a face. In the case of black and white edges, each line has the same contrast, so the ratio of the peak value of all the lines in the evaluation area to the average value of one line of the contrast evaluation value takes a constant value, and the focus lens position Not depending on. That is, it is a constant value regardless of the defocus amount. However, for subjects whose peak values are greatly different in each line shown by the solid line in FIG. 7, the value on the vertical axis takes a constant value during blurring, but the value increases as it approaches the focus. This is because, as described above, feature points (eyes, eyebrows, etc.) with high contrast of the subject become clearer as they become close to the in-focus state. In this way, by looking at the change in the ratio of the average value of one line of the peak value and the contrast evaluation value among all the lines in the evaluation area, it is possible to extract a low-contrast object at the time of blurring and a high-contrast object in the vicinity of the focus. . In the present embodiment, this index is used to change the focus degree threshold for determining the focus degree described above. The method will be described below.

  In FIG. 7, when the ratio of the peak value of all the lines in the evaluation area to the average value of one line of the contrast evaluation value is E1 or more, the threshold value of the focus level is lowered (C3 in FIG. 4). As a result, the scan speed can be appropriately reduced in the vicinity of the in-focus state, which cannot be determined by the conventional threshold setting. According to the above method, the focusing time can be shortened because the focusing degree can be effectively set even for a low-contrast object at the time of blur and a high-contrast object (for example, a face or a thin line) in the vicinity of the in-focus state.

  FIG. 8 shows the operation of the focus lens in a low-contrast object when out of focus and a high-contrast object near the in-focus state. The horizontal axis represents time, and the vertical axis represents the focus lens position.

  The solid line shows the case where the threshold value of the focus degree is changed by the ratio of the average value of one line of the peak value and the contrast evaluation value among all the lines in the evaluation area, and the one-dot chain line shows the case where the threshold value of the focus degree is not changed. ing. When the AF operation is started from the position A0 which is out of focus and the focus threshold value is not changed, the scan speed cannot be lowered before the in-focus position. Is set. Therefore, the focusing time (t3 in FIG. 8) for performing the focusing operation is excessive. By changing the threshold of the degree of focus according to the ratio of the average value of one line of the peak value and the contrast evaluation value in all the lines in the evaluation area of the present embodiment (A1 in FIG. 8), from near the in-focus position. The scan speed can be set to a low speed. Therefore, it is possible to shorten the focusing time (t1 in FIG. 8).

  Next, the operation of this embodiment will be described with reference to the flowchart of FIG. The process starts at S101 and proceeds to S102. In S102, it is determined whether or not the switch SW1 that is turned on when the release switch is half-pressed is turned on. If SW1 is not ON, the process returns to S102, and if SW1 is ON, the process proceeds to S103. In S103, the determination unit 141 determines whether the in-focus degree is a predetermined value or more. If it is greater than or equal to the predetermined value, the process proceeds to S109, and if it is less than the predetermined value, the process proceeds to S104. In S104, the degree of focus is less than the predetermined value, that is, the current focus lens position is not the in-focus position but is in a blurred state, so the scan speed of the focus lens is set to a high speed, and the process proceeds to S105. In S105, scanning is started by the focus drive circuit 125, and the process proceeds to S106. In S106, contrast information in the evaluation area is generated by the contrast signal processing circuit 124, and the process proceeds to S107. In S107, the determination unit 141 performs a process of changing the focus degree condition, and the process proceeds to S108. The process of changing the focus degree condition in S107 will be described later with reference to a sub-flowchart. In S108, if the degree of focus is greater than or equal to a predetermined value, the process proceeds to S109, and if it is less than the predetermined value, the process returns to S106, and scanning with a high scan speed is continued. In S109, since the degree of focus has reached a predetermined value or more in S108, the scan speed is changed to a low speed, and the process proceeds to S110. In S110, the contrast signal processing circuit 124 generates a contrast evaluation value in the evaluation region when the scan speed is low, and the process proceeds to S111. In S111, it is determined whether the maximum contrast evaluation value has been detected. It has been confirmed that the contrast evaluation value during scanning has changed from increasing to decreasing. As a result, the maximum contrast evaluation value can be detected. If the maximum contrast evaluation value can be detected, the process proceeds to S112. If not, the process returns to S110, and the scanning operation is continued. In S112, the in-focus position is calculated by performing interpolation calculation from the peak value of the contrast evaluation value, values in the vicinity thereof, and the lens position corresponding to each contrast evaluation value, and the process proceeds to S113. In S113, the focus lens is moved to the in-focus position, and the process proceeds to S114 and ends.

  Next, processing for changing the condition of the degree of focus in S107 of FIG. 9 will be described using the sub-flowchart of FIG. In S201, the peak values in all the lines in the evaluation region generated by the contrast and signal processing circuit 124 are generated, and the process proceeds to S202. In S202, it is determined whether or not the peak value in all the lines in the evaluation area is equal to or smaller than a predetermined value. If the peak value is equal to or smaller than the predetermined value, the process proceeds to S203. In S203, the determination unit 141 changes the condition of the degree of focus, and the process proceeds to S204. In S204, if the ratio of the peak value of all the lines in the evaluation area to the average value of one line of the contrast evaluation value is greater than or equal to a predetermined value, the process proceeds to S205. If it is less than the predetermined value, the process proceeds to S206. In S205, the determination unit 141 changes the focus degree condition, and the process proceeds to S206, where the process for changing the focus degree condition is completed.

  Next, the operation when the face detection mode is provided will be described with reference to the flowchart of FIG. The process starts at S301 and proceeds to S302. In S302, the face detection mode is set, and the process proceeds to S303. In S303, it is determined whether or not a face can be detected. If yes, the process proceeds to S304, and if not, the process proceeds to S305. Since a face is detected in S304, the condition of the degree of focus is changed in advance by the determination unit 141, and the process proceeds to S305. In S305, it is determined whether or not the switch SW1 that is turned on when the release switch is half-pressed is turned on. If SW1 is not ON, the process returns to S303. If SW1 is ON, the process proceeds to S306.

  In S306, the determination unit 141 determines whether the in-focus degree is a predetermined value or more. If it is equal to or larger than the predetermined value, the process proceeds to S312. If it is smaller than the predetermined value, the process proceeds to S307. In S307, the focus degree is less than the predetermined value, that is, the current focus lens position is not the focus position but is in a blurred state, so the scan speed of the focus lens is set to a high speed, and the process proceeds to S308. In S308, scanning is started by the focus drive circuit 125, and the process proceeds to S309. In S309, the contrast signal processing circuit 124 generates contrast information in the evaluation area, and the process proceeds to S310. In S310, the determination unit 141 performs a process of changing the focus degree condition, and the process proceeds to S311. The processing for changing the condition of the degree of focus in S310 is the same as the sub-flowchart of FIG.

  In S311, when the degree of focus is equal to or greater than the predetermined value, the process proceeds to S312. When the degree of focus is less than the predetermined value, the process returns to S309 to continue scanning with a high scan speed. In S312, since the in-focus level has reached or exceeded a predetermined value in S311, the scan speed is changed to a low speed, and the process proceeds to S313. In S313, the contrast signal processing circuit 124 generates a contrast evaluation value in the evaluation region when the scan speed is low, and the process proceeds to S314. In S314, it is determined whether the maximum contrast evaluation value has been detected. It has been confirmed that the contrast evaluation value during scanning has changed from increasing to decreasing. As a result, the maximum contrast evaluation value can be detected. If the maximum contrast evaluation value can be detected, the process proceeds to S315. If not, the process returns to S313 to continue the scanning operation. In S315, the in-focus position is calculated by performing interpolation calculation from the maximum value of the contrast evaluation value, a value in the vicinity thereof, and the lens position corresponding to each contrast evaluation value, and the process proceeds to S316. In S316, the focus lens is moved to the in-focus position, and the process proceeds to S317 and ends.

  As described above, according to the present embodiment, it is possible to shorten the focusing time even for a subject whose contrast changes greatly between in-focus and out-of-focus.

(Other embodiments)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (12)

  1. An imaging device that performs focus adjustment based on an imaging signal obtained by scanning a focus lens along an optical axis of an imaging optical system,
    Imaging means for capturing a subject image and generating the imaging signal;
    Evaluation value generating means for generating contrast information, which is information of contrast in the imaging signal, and a contrast evaluation value indicating the amount of a high-frequency component in the imaging signal;
    Focus adjusting means for performing focus adjustment based on the contrast evaluation value obtained by scanning the focus lens;
    Determining means for determining a degree of focus based on the contrast information;
    Control means for controlling scanning of the focus lens based on determination by the determination means;
    An imaging apparatus comprising:
  2.   The imaging apparatus according to claim 1, wherein the control unit changes a scanning speed of the focus lens based on determination by the determination unit.
  3.   The imaging apparatus according to claim 2, wherein the control unit slows down the scanning speed of the focus lens when the determination unit determines that the in-focus degree is equal to or greater than a predetermined threshold. .
  4.   The control means divides the contrast peak value in all the lines in the evaluation area in the imaging means and the contrast evaluation value obtained by integrating the contrast peak value of each line for all the lines in the evaluation area by the number of lines. The imaging apparatus according to claim 1, wherein the determination condition of the degree of focus is changed based on the average value of one line.
  5.   The face detection means for detecting a face from the imaging signal is further provided, and the determination means changes the determination condition of the degree of focus when a face is detected by the face detection means. The imaging apparatus according to 1.
  6. A method for controlling an imaging apparatus that performs focus adjustment based on an imaging signal obtained by scanning a focus lens along an optical axis of a photographing optical system,
    An imaging step of capturing a subject image and generating the imaging signal;
    An evaluation value generating step of generating contrast information which is information of contrast in the image pickup signal and a contrast evaluation value indicating an amount of a high frequency component in the image pickup signal;
    A focus adjustment step of performing focus adjustment based on the contrast evaluation value obtained by scanning the focus lens;
    A determination step of determining a degree of focus based on the contrast information;
    A control step of controlling scanning of the focus lens based on the determination by the determination step;
    An image pickup apparatus control method comprising:
  7.   The method according to claim 6, wherein, in the control step, a scan speed of the focus lens is changed based on the determination in the determination step.
  8.   The imaging apparatus according to claim 7, wherein, in the control step, when the determination step determines that the in-focus degree is equal to or greater than a predetermined threshold value, the scanning speed of the focus lens is decreased. Control method.
  9.   In the control step, the contrast peak value in all the lines in the evaluation region in the imaging step and the contrast evaluation value obtained by integrating the contrast peak value of each line for all the lines in the evaluation region are divided by the number of lines. The method for controlling an imaging apparatus according to claim 6, wherein the determination condition for the degree of focus is changed based on the average value for one line.
  10.   The method according to claim 1, further comprising a face detection step of detecting a face from the imaging signal, wherein the determination step of the focus degree is changed when the face is detected by the face detection step. 6. A method for controlling the imaging apparatus according to 6.
  11.   The program for making a computer perform each process of the control method of Claim 10.
  12.   A computer-readable storage medium storing a program for causing a computer to execute each step of the control method according to claim 10.
JP2013170824A 2013-08-20 2013-08-20 Imaging apparatus, control method therefor, program, and storage medium Active JP6200240B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013170824A JP6200240B2 (en) 2013-08-20 2013-08-20 Imaging apparatus, control method therefor, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013170824A JP6200240B2 (en) 2013-08-20 2013-08-20 Imaging apparatus, control method therefor, program, and storage medium

Publications (3)

Publication Number Publication Date
JP2015040922A true JP2015040922A (en) 2015-03-02
JP2015040922A5 JP2015040922A5 (en) 2016-09-23
JP6200240B2 JP6200240B2 (en) 2017-09-20

Family

ID=52695129

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013170824A Active JP6200240B2 (en) 2013-08-20 2013-08-20 Imaging apparatus, control method therefor, program, and storage medium

Country Status (1)

Country Link
JP (1) JP6200240B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015186198A (en) * 2014-03-26 2015-10-22 パナソニックIpマネジメント株式会社 imaging device
JP2016197202A (en) * 2015-04-06 2016-11-24 キヤノン株式会社 Focus adjustment device, control method and control program for the same, and imaging device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005156597A (en) * 2003-11-20 2005-06-16 Canon Inc Automatic focusing apparatus and method, program, and storage medium
JP2010156851A (en) * 2008-12-26 2010-07-15 Canon Inc Focus adjustment device and method
JP2012255896A (en) * 2011-06-08 2012-12-27 Canon Inc Imaging apparatus, focus adjustment method therefor and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005156597A (en) * 2003-11-20 2005-06-16 Canon Inc Automatic focusing apparatus and method, program, and storage medium
JP2010156851A (en) * 2008-12-26 2010-07-15 Canon Inc Focus adjustment device and method
JP2012255896A (en) * 2011-06-08 2012-12-27 Canon Inc Imaging apparatus, focus adjustment method therefor and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015186198A (en) * 2014-03-26 2015-10-22 パナソニックIpマネジメント株式会社 imaging device
JP2016197202A (en) * 2015-04-06 2016-11-24 キヤノン株式会社 Focus adjustment device, control method and control program for the same, and imaging device

Also Published As

Publication number Publication date
JP6200240B2 (en) 2017-09-20

Similar Documents

Publication Publication Date Title
US10025162B2 (en) Focus adjustment device for correcting autofocus of focus lens using captured image signal to be recorded, method for controlling the same, and image capture apparatus
US9277112B2 (en) Auto focusing apparatus and auto focusing method, and image sensing apparatus
US10212334B2 (en) Focusing adjustment apparatus and focusing adjustment method
JP6309922B2 (en) Imaging system and imaging method
JP6317548B2 (en) Imaging apparatus and control method thereof
US8823857B2 (en) Image apparatus
JP5322783B2 (en) Imaging device and control method of imaging device
JP5388544B2 (en) Imaging apparatus and focus control method thereof
US8194158B2 (en) Image processor, image processing method, digital camera, and imaging apparatus
JP5048468B2 (en) Imaging apparatus and imaging method thereof
KR20130083853A (en) Image processing apparatus, image sensing apparatus, control method, and recording medium
JP4290100B2 (en) Imaging apparatus and control method thereof
US7831138B2 (en) Focus adjusting method and focus adjusting device
JP2011154385A (en) Optical apparatus
JP3760846B2 (en) Subject extraction device and photographing device
KR101211960B1 (en) Image pickup apparatus and control method therefor
US8059186B2 (en) Camera having a focus adjusting system and a face recognition function
JP5484631B2 (en) Imaging apparatus, imaging method, program, and program storage medium
US9137436B2 (en) Imaging apparatus and method with focus detection and adjustment
JP4533735B2 (en) Stereo imaging device
JP4674471B2 (en) Digital camera
US7538803B2 (en) Digital camera with defocused image area
JP4528235B2 (en) Digital camera
JP4122865B2 (en) Autofocus device
JP5335302B2 (en) Focus detection apparatus and control method thereof

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160804

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160804

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170407

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170706

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170728

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170825

R151 Written notification of patent or utility model registration

Ref document number: 6200240

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151