JP6464551B2 - Camera body and imaging device - Google Patents

Camera body and imaging device Download PDF

Info

Publication number
JP6464551B2
JP6464551B2 JP2013199254A JP2013199254A JP6464551B2 JP 6464551 B2 JP6464551 B2 JP 6464551B2 JP 2013199254 A JP2013199254 A JP 2013199254A JP 2013199254 A JP2013199254 A JP 2013199254A JP 6464551 B2 JP6464551 B2 JP 6464551B2
Authority
JP
Japan
Prior art keywords
focus
lens
position
range
limit
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
JP2013199254A
Other languages
Japanese (ja)
Other versions
JP2015064523A (en
Inventor
宏明 高原
宏明 高原
Original Assignee
株式会社ニコン
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 株式会社ニコン filed Critical 株式会社ニコン
Priority to JP2013199254A priority Critical patent/JP6464551B2/en
Publication of JP2015064523A publication Critical patent/JP2015064523A/en
Application granted granted Critical
Publication of JP6464551B2 publication Critical patent/JP6464551B2/en
Application status is Active legal-status Critical
Anticipated expiration legal-status Critical

Links

Images

Description

  The present invention relates to a camera body and an imaging apparatus.

  2. Description of the Related Art Conventionally, in a lens barrel capable of setting a plurality of focusable ranges, a technique for limiting the driving of a focus adjustment lens based on the set focusable range is known (see, for example, Patent Document 1). .

JP 2006-126330 A

  However, in the prior art, in the camera body, the lens driving amount required to drive the focus adjustment lens to the in-focus position is calculated, and in the lens barrel, the focus adjustment lens is driven based on the lens drive amount, Since it is configured to repeatedly determine whether or not the focus adjustment lens exceeds the focusable range, the processing load on the lens barrel increases, and depending on the timing of the determination, the focus lens 32 may be In some cases, the in-focus state is driven beyond the in-focus range, and the in-focus determination is performed at the in-focus position that exceeds the in-focus range.

  The present invention solves the above problems by the following means.

[1] An image pickup apparatus according to the present invention includes an image pickup device that picks up a subject image formed by an optical system having a focus adjustment lens that changes an image formation position and outputs a signal, an image formation position of the optical system, A detection unit that detects a defocus amount that is a deviation amount from the imaging surface of the image sensor, and an operation unit that receives a focus adjustment instruction for adjusting the position of the subject image to match the imaging surface of the image sensor. , have a pre-Symbol optical system, the lens barrel can be set movable range of the focusing lens, and a communication unit for receiving information about the range set, the focusing adjusted by the operation unit instructing If the position of the focus adjustment lens based on the defocus amount detected by the detection unit exceeds the range after driving the focus adjustment lens, the focus adjustment lens is driven out of focus to the end of the range. To the effect And a control unit that performs control processing for knowledge.
[2] In the invention relating to the imaging apparatus, the control unit performs control to determine a driving amount of the focus adjustment lens based on the defocus amount and information on the range received from the lens barrel. It can comprise so that the said control part to perform may be provided.
[3] In the invention related to the imaging apparatus, the detection unit can be configured to detect the defocus amount by a focus detection pixel provided in the imaging element.

  According to the present invention, it is possible to appropriately control the driving of the focus adjustment lens.

FIG. 1 is a block diagram showing a camera according to the present embodiment. FIG. 2 is a diagram illustrating an example of a focusable range of the focus lens. FIG. 3 is a diagram for explaining an example of exchange of information between the lens barrel and the camera body. 4 is a front view showing an imaging surface of the imaging device shown in FIG. FIG. 5 is a front view schematically showing the arrangement of the focus detection pixels 222a and 222b by enlarging the V portion of FIG. 6A is an enlarged front view showing one of the imaging pixels 221, FIG. 6B is an enlarged front view showing one of the focus detection pixels 222a, and FIG. FIG. 6D is an enlarged front view showing one of the focus detection pixels 222b, FIG. 6D is a cross-sectional view showing one of the imaging pixels 221 in an enlarged manner, and FIG. 6E is one of the focus detection pixels 222a. FIG. 6F is an enlarged sectional view showing one of the focus detection pixels 222b. 7 is a cross-sectional view taken along line VII-VII in FIG. FIG. 8 is a diagram for explaining an example of a focus detection method using a contrast detection method. FIG. 9 is a flowchart showing the operation of the camera according to the present embodiment. FIG. 10 is a flowchart showing the lens driving control process based on the focus detection result by the phase difference detection method in step S112. FIG. 11 is a diagram illustrating an example of a scan drive range. FIG. 12 is a flowchart showing the lens drive control process based on the focus detection result by the contrast detection method in step S113. FIG. 13 is a flowchart showing the focus limit changing process in step S117. FIG. 14 is a diagram illustrating another example of the scan drive range.

  Hereinafter, embodiments of the present invention will be described with reference to the drawings.

  FIG. 1 is a main part configuration diagram showing a digital camera 1 according to an embodiment of the present invention. A digital camera 1 according to the present embodiment (hereinafter simply referred to as a camera 1) includes a camera body 2 and a lens barrel 3, and the camera body 2 and the lens barrel 3 are detachably coupled by a mount unit 4. Yes.

  The lens barrel 3 is an interchangeable lens that can be attached to and detached from the camera body 2. As shown in FIG. 1, the lens barrel 3 includes a photographic optical system including lenses 31, 32, 33 and a diaphragm 34.

  The lens 32 is a focus lens, and can adjust the focal length of the photographing optical system by moving in the direction of the optical axis L1. The focus lens 32 is provided so as to be movable along the optical axis L1 of the lens barrel 3, and its position is adjusted by the focus lens drive motor 36 while its position is detected by the encoder 35.

  Information on the current position of the focus lens 32 detected by the encoder 35 is sent to the camera control unit 21 to be described later via the lens control unit 37, and the focus lens driving motor 36 calculates the focus lens 32 calculated based on this information. Are driven by being sent from the camera control unit 21 via the lens control unit 37.

  The diaphragm 34 is configured such that the aperture diameter around the optical axis L1 can be adjusted in order to limit the amount of light flux that passes through the photographing optical system and reaches the image sensor 22 and to adjust the blur amount. The adjustment of the aperture diameter by the diaphragm 34 is performed, for example, by sending an appropriate aperture diameter calculated in the automatic exposure mode from the camera control unit 21 via the lens control unit 37. Further, the set aperture diameter is input from the camera control unit 21 to the lens control unit 37 by a manual operation by the operation unit 28 provided in the camera body 2. The aperture diameter of the aperture 34 is detected by an aperture sensor (not shown), and the lens controller 37 recognizes the current aperture diameter.

  In the lens barrel 3 according to the present embodiment, the focusable range of the focus lens 32 can be limited. The focusable range is a range that is determined to be in focus when a focus position is detected within the focusable range. In the present embodiment, the lens barrel 3 is provided with a focus limit switch 38 for setting a focusable range, and the photographer operates the focus limit switch 38 to select the focus limit mode. The focusable range can be selected.

FIG. 2 is a diagram illustrating an example of a focusable range that can be set in the present embodiment. In the present embodiment, as shown in FIG. 2A, a “FULL mode” in which a range from the infinitely far end soft limit SL IP to the very close end soft limit SL NP is set as a focusable range Rf1; As shown in FIG. 2 (B), as shown in FIG. 2 (C), the “closest limit mode” for setting the range from the infinitely far end soft limit SL IP to the closest soft limit SL NS as the focusable range Rf2. As shown in the figure, select the three focus limit modes of “infinity limit mode” that sets the range from the infinity side soft limit SL IS to the near end soft limit SL NP as the focusable range Rf3. Can do.

  When the focus limit is selected by the photographer, focus limit information corresponding to the selected focus limit mode is transmitted from the lens barrel 3 to the camera body 2 as shown in FIG. The focus limit information is stored in a ROM provided in the lens control unit 37 for each focus limit mode.

For example, when the “FULL mode” shown in FIG. 2A is set by the focus limit switch 38, the lens control unit 37 sets the limit of the focusable range Rf1 in the “FULL mode” as the focus limit information. The infinity end soft limit SL IP and the closest end soft limit SL NP , which are positions (ends), are transmitted to the camera body 2.

When the “closest limit mode” shown in FIG. 2B is set by the focus limit switch 38, the lens control unit 37 can focus on the “closest limit mode” as focus limit information. The infinity end soft limit SL IP and the near side soft limit SL NS , which are the limit positions in the range Rf2, are transmitted to the camera body 2.

Similarly, when the “infinity limit mode” shown in FIG. 2C is set by the focus limit switch 38, the lens controller 37 allows the focusable range Rf3 in the “infinity limit mode”. The infinitely far side soft limit SL IS and the very close end soft limit SL NP , which are the limit positions, are transmitted to the camera body 2 as focus limit information.

In FIG. 2A, the infinitely far end design value DV IP is set to the infinity side of the lens position that guarantees that the lens barrel 3 is designed to focus on the subject in the “FULL mode”. a limit position, taking into account the design errors of the lens barrel 3, an infinite far soft limit SL IP provided on the infinite side of the infinity end design value DV IP, if up to the infinite far soft limit SL IP Designed to enable detection of the focal position. Similarly, the near-end design value DV NP is a limit position on the near side of the lens positions that guarantees that the lens barrel 3 is focused on the subject in design, and the design error of the lens barrel 3 is reduced. In consideration, the near end soft limit SL NP is provided closer to the near end design value DV NP, and the in- focus position can be detected up to the near end soft limit SL NP . .

In FIG. 2B, the near side design value DV NS is the closest side of the lens positions that guarantee that the lens barrel 3 is focused on the subject in design in the “close side limit mode”. In consideration of the design error of the lens barrel 3, it is designed so that the in-focus position can be detected from the closest design value DV NS to the closest soft limit SL NS. ing. Similarly, in FIG. 2C, the infinity side design value DV IS is the lens position that guarantees that the lens barrel 3 is focused on the subject in design in the “infinity side restricted mode”. The focus position can be detected from the limit value on the infinity side to the infinity-side soft limit SL IS on the infinity side from the design value DV IS on the infinity side in consideration of the design error of the lens barrel 3. It is designed to be possible.

  Further, as shown in FIG. 3, in addition to the focus limit information, information on the focus lens position is periodically transmitted from the lens barrel 3 to the camera body 2. In the camera body 2, the lens driving amount of the focus lens 32 is calculated based on the focus limit information and the position information of the focus lens 32, and the calculated lens driving amount is transmitted to the lens barrel 3. FIG. 3 is a diagram for explaining an example of information exchange between the lens barrel 3 and the camera body 2.

  On the other hand, the camera body 2 is provided with an imaging element 22 that receives the light beam L1 from the photographing optical system on a planned focal plane of the photographing optical system, and a shutter 23 is provided on the front surface thereof. The image sensor 22 is composed of a device such as a CCD or CMOS, converts the received optical signal into an electrical signal, and sends it to the camera control unit 21. The captured image information sent to the camera control unit 21 is sequentially sent to the liquid crystal drive circuit 25 and displayed on the electronic viewfinder (EVF) 26 of the observation optical system, and a release button ( When (not shown) is fully pressed, the photographed image information is recorded in the camera memory 24 which is a recording medium. The camera memory 24 can be either a removable card type memory or a built-in memory.

  The camera body 2 is provided with an observation optical system for observing an image picked up by the image pickup device 22. The observation optical system of the present embodiment includes an electronic viewfinder (EVF) 26 composed of a liquid crystal display element, a liquid crystal driving circuit 25 that drives the electronic viewfinder (EVF) 26, and an eyepiece lens 27. The liquid crystal drive circuit 25 reads the captured image information captured by the image sensor 22 and sent to the camera control unit 21, and drives the electronic viewfinder 26 based on the read image information. Thereby, the user can observe the current captured image through the eyepiece lens 27. Note that, instead of or in addition to the observation optical system using the optical axis L2, a liquid crystal display may be provided on the back surface of the camera body 2, and a photographed image may be displayed on the liquid crystal display.

  A camera control unit 21 is provided in the camera body 2. The camera control unit 21 is electrically connected to the lens control unit 37 through an electric signal contact unit 41 provided in the mount unit 4, receives lens information from the lens control unit 37, and drives the lens control unit 37 to drive the lens. Send information such as volume and aperture diameter. The camera control unit 21 reads out the pixel output from the image sensor 22 as described above, generates image information by performing predetermined information processing on the read out pixel output as necessary, and generates the generated image information. Is output to the liquid crystal driving circuit 25 and the memory 24 of the electronic viewfinder 26. The camera control unit 21 controls the entire camera 1 such as correction of image information from the image sensor 22 and detection of a focus adjustment state and an aperture adjustment state of the lens barrel 3.

  In addition to the above, the camera control unit 21 detects the focus state of the optical system by the phase detection method and the focus state of the optical system by the contrast detection method based on the pixel data read from the image sensor 22. . A specific focus state detection method will be described later.

  The operation unit 28 is an input switch for a photographer to set various operation modes of the camera 1, such as a shutter release button, and can switch between an auto focus mode and a manual focus mode. Various modes set by the operation unit 28 are sent to the camera control unit 21, and the operation of the entire camera 1 is controlled by the camera control unit 21. The shutter release button includes a first switch SW1 that is turned on when the button is half-pressed and a second switch SW2 that is turned on when the button is fully pressed.

  Next, the image sensor 22 according to the present embodiment will be described.

  FIG. 4 is a front view showing the imaging surface of the imaging device 22, and FIG. 5 is a front view schematically showing the arrangement of the focus detection pixels 222a and 222b by enlarging the V portion of FIG.

  As shown in FIG. 5, in the imaging element 22 of the present embodiment, a plurality of imaging pixels 221 are two-dimensionally arranged on the plane of the imaging surface, and a green pixel G having a color filter that transmits a green wavelength region. A red pixel R having a color filter that transmits a red wavelength region and a blue pixel B having a color filter that transmits a blue wavelength region are arranged in a so-called Bayer Arrangement. That is, in four adjacent pixel groups 223 (dense square lattice arrangement), two green pixels are arranged on one diagonal line, and one red pixel and one blue pixel are arranged on the other diagonal line. The image sensor 22 is configured by repeatedly arranging the pixel group 223 on the imaging surface of the image sensor 22 in a two-dimensional manner with the Bayer array pixel group 223 as a unit.

  The unit pixel group 223 may be arranged in a dense hexagonal lattice arrangement other than the dense square lattice shown in the figure. Further, the configuration and arrangement of the color filters are not limited to this, and an arrangement of complementary color filters (green: G, yellow: Ye, magenta: Mg, cyan: Cy) can also be adopted.

  6A is an enlarged front view showing one of the imaging pixels 221 and FIG. 6D is a cross-sectional view. One imaging pixel 221 includes a microlens 2211, a photoelectric conversion unit 2212, and a color filter (not shown). As shown in the cross-sectional view of FIG. 6D, the imaging pixel 221 is formed on the surface of the semiconductor circuit substrate 2213 of the imaging element 22. A photoelectric conversion portion 2212 is built, and a microlens 2211 is formed on the surface thereof. The photoelectric conversion unit 2212 is configured to receive an imaging light beam that passes through an exit pupil (for example, F1.0) of the photographing optical system by the micro lens 2211, and receives the imaging light beam.

  In addition, focus detection pixel rows 22a, 22b, and 22c in which focus detection pixels 222a and 222b are arranged in place of the above-described imaging pixels 221 at the center of the image pickup surface of the image pickup element 22 and three positions that are symmetrical from the center. Is provided. As shown in FIG. 5, one focus detection pixel column is configured by a plurality of focus detection pixels 222a and 222b being alternately arranged adjacent to each other in a horizontal row (22a, 22c, 22c). Yes. In the present embodiment, the focus detection pixels 222a and 222b are densely arranged without providing a gap at the position of the green pixel G and the blue pixel B of the image pickup pixel 221 arranged in the Bayer array.

  Note that the positions of the focus detection pixel rows 22a to 22c illustrated in FIG. 4 are not limited to the illustrated positions, and may be any one or two, or may be arranged at four or more positions. it can. In actual focus detection, a photographer manually operates the operation unit 28 from among a plurality of focus detection pixel rows 22a to 22c, and selects a desired focus detection pixel row as a focus detection area. You can also.

  FIG. 6B is an enlarged front view showing one of the focus detection pixels 222a, and FIG. 6E is a cross-sectional view of the focus detection pixel 222a. FIG. 6C is an enlarged front view showing one of the focus detection pixels 222b, and FIG. 6F is a cross-sectional view of the focus detection pixel 222b. As shown in FIG. 6B, the focus detection pixel 222a includes a micro lens 2221a and a semicircular photoelectric conversion unit 2222a. As shown in the cross-sectional view of FIG. A photoelectric conversion portion 2222a is formed on the surface of the semiconductor circuit substrate 2213, and a micro lens 2221a is formed on the surface. The focus detection pixel 222b includes a micro lens 2221b and a photoelectric conversion unit 2222b as illustrated in FIG. 6C, and the semiconductor of the image sensor 22 as illustrated in the cross-sectional view of FIG. A photoelectric conversion unit 2222b is formed on the surface of the circuit board 2213, and a microlens 2221b is formed on the surface. These focus detection pixels 222a and 222b are alternately arranged adjacent to each other in a horizontal row as shown in FIG. 5, thereby forming focus detection pixel rows 22a to 22c shown in FIG.

  The photoelectric conversion units 2222a and 2222b of the focus detection pixels 222a and 222b have such a shape that the microlenses 2221a and 2221b receive a light beam that passes through a predetermined region (eg, F2.8) of the exit pupil of the photographing optical system. Is done. Further, the focus detection pixels 222a and 222b are not provided with color filters, and their spectral characteristics are the total of the spectral characteristics of a photodiode that performs photoelectric conversion and the spectral characteristics of an infrared cut filter (not shown). ing. However, it may be configured to include one of the same color filters as the imaging pixel 221, for example, a green filter.

  In addition, although the photoelectric conversion units 2222a and 2222b of the focus detection pixels 222a and 222b shown in FIGS. 6B and 6C have a semicircular shape, the shape of the photoelectric conversion units 2222a and 2222b is not limited thereto. Other shapes such as an elliptical shape, a rectangular shape, and a polygonal shape can also be used.

  Here, a so-called phase difference detection method for detecting the focus state of the photographing optical system based on the pixel outputs of the focus detection pixels 222a and 222b described above will be described.

  FIG. 7 is a cross-sectional view taken along the line VII-VII in FIG. 5. The focus detection pixels 222 a-1, 222 b-1, 222 a-2, 222 b-2 that are arranged in the vicinity of the photographing optical axis L 1 and adjacent to each other are It shows that light beams AB1-1, AB2-1, AB1-2, and AB2-2 irradiated from the distance measuring pupils 351 and 352 of the exit pupil 350 are received. 7 illustrates only the focus detection pixels 222a and 222b that are located in the vicinity of the photographing optical axis L1, but other focus detection pixels other than the focus detection pixels illustrated in FIG. In the same manner, the light beams emitted from the pair of distance measuring pupils 351 and 352 are respectively received.

  Here, the exit pupil 350 is an image set at a distance D in front of the microlenses 2221a and 2221b of the focus detection pixels 222a and 222b arranged on the planned focal plane of the photographing optical system. The distance D is a value uniquely determined according to the curvature and refractive index of the microlens, the distance between the microlens and the photoelectric conversion unit, and the distance D is referred to as a distance measurement pupil distance. The distance measurement pupils 351 and 352 are images of the photoelectric conversion units 2222a and 2222b respectively projected by the micro lenses 2221a and 2221b of the focus detection pixels 222a and 222b.

  In FIG. 7, the arrangement direction of the focus detection pixels 222 a-1, 222 b-1, 222 a-2, and 222 b-2 coincides with the arrangement direction of the pair of distance measuring pupils 351 and 352.

  Further, as shown in FIG. 7, the microlenses 2221a-1, 2221b-1, 2221a-2, and 2221b-2 of the focus detection pixels 222a-1, 222b-1, 222a-2, and 222b-2 are optical systems. It is arranged near the planned focal plane. The shapes of the photoelectric conversion units 2222a-1, 2222b-1, 2222a-2, 2222b-2 arranged behind the micro lenses 2221a-1, 2221b-1, 2221a-2, 2221b-2 are the same as the micro lenses 2221a-1, 2221b-1, 2221a-2, 2221b-2. Projected onto the exit pupil 350 that is separated from the lenses 2221 a-1, 2221 b-1, 2221 a-2, and 2221 b-2 by a distance measurement distance D, and the projection shape forms distance measurement pupils 351 and 352.

  That is, the microlens and the photoelectric conversion unit in each focus detection pixel so that the projection shapes (distance measurement pupils 351 and 352) of the focus detection pixels coincide on the exit pupil 350 at the distance D. Is determined, and the projection direction of the photoelectric conversion unit in each focus detection pixel is thereby determined.

  As shown in FIG. 7, the photoelectric conversion unit 2222a-1 of the focus detection pixel 222a-1 is formed on the microlens 2221a-1 by the light beam AB1-1 that passes through the distance measuring pupil 351 and goes to the microlens 2221a-1. A signal corresponding to the intensity of the image to be output is output. Similarly, the photoelectric conversion unit 2222a-2 of the focus detection pixel 222a-2 passes through the distance measuring pupil 351, and the intensity of the image formed on the microlens 2221a-2 by the light beam AB1-2 toward the microlens 2221a-2. The signal corresponding to is output.

  Further, the photoelectric conversion unit 2222b-1 of the focus detection pixel 222b-1 passes through the distance measuring pupil 352, and the intensity of the image formed on the microlens 2221b-1 by the light beam AB2-1 directed to the microlens 2221b-1. Output the corresponding signal. Similarly, the photoelectric conversion unit 2222b-2 of the focus detection pixel 222b-2 passes through the distance measuring pupil 352, and the intensity of the image formed on the microlens 2221b-2 by the light beam AB2-2 toward the microlens 2221b-2. The signal corresponding to is output.

  Then, a plurality of the above-described two types of focus detection pixels 222a and 222b are arranged in a straight line as shown in FIG. 5, and the outputs of the photoelectric conversion units 2222a and 2222b of the focus detection pixels 222a and 222b are used as the distance measurement pupil 351. Of the pair of images formed on the focus detection pixel array by the focus detection light fluxes passing through each of the distance measurement pupil 351 and the distance measurement pupil 352. Data on the distribution is obtained. The intensity distribution data is subjected to an image shift detection calculation process such as a correlation calculation process or a phase difference detection process to detect an image shift amount by a so-called phase difference detection method.

  Then, a conversion calculation is performed on the obtained image shift amount according to the center-of-gravity interval of the pair of distance measuring pupils, thereby obtaining a current focal plane with respect to the planned focal plane (the focal point corresponding to the position of the microlens array on the planned focal plane) The deviation of the focal plane in the detection area), that is, the defocus amount can be obtained.

  The calculation of the image shift amount, the calculation of the defocus amount, and the focus drive by these phase difference detection methods are executed by the camera control unit 21.

  Further, the camera control unit 21 reads the output of the imaging pixel 221 of the imaging element 22 and calculates a focus evaluation value based on the read pixel output. This focus evaluation value can be obtained, for example, by extracting a high-frequency component of an image output from the imaging pixel 221 of the imaging element 22 using a high-frequency transmission filter. It can also be obtained by extracting high-frequency components using two high-frequency transmission filters having different cutoff frequencies.

  Then, the camera control unit 21 sends a control signal to the lens control unit 37 to drive the focus lens 32 at a predetermined sampling interval (distance) to obtain a focus evaluation value at each position, and the focus evaluation value is maximum. The focus detection by the contrast detection method is performed in which the position of the focus lens 32 is determined as the in-focus position. Note that this in-focus position is obtained when, for example, when the focus evaluation value is calculated while driving the focus lens 32, the focus evaluation value rises twice and then moves down twice. Can be obtained by performing an operation such as interpolation using the focus evaluation value.

  Here, FIG. 8 is a diagram for explaining an example of a focus detection method using a contrast detection method. In the example shown in FIG. 8, the focus lens 32 is located at P0 shown in FIG. 8. First, the focus lens 32 is driven from P0 to a predetermined search start position (position P1 in FIG. 8). Initial drive is performed. Then, the focus lens 32 is driven from the search start position (position P1 in FIG. 8) from the infinity side to the close side, and the focus evaluation value is acquired by the contrast detection method at a predetermined interval. Driving is performed. When the focus lens 32 is moved to the position P2 shown in FIG. 8, the peak position of the focus evaluation value (position P3 in FIG. 8) is detected as the focus position, and the detected focus position is detected. Focusing driving for driving the focus lens 32 is performed up to (position P3 in FIG. 8).

  Next, an operation example of the camera 1 according to the present embodiment will be described. FIG. 9 is a flowchart showing the operation of the camera 1 according to this embodiment.

  First, in step S101, the camera control unit 21 acquires focus limit information. In the present embodiment, focus limit information corresponding to the focus limit mode set in the lens barrel 3 is periodically transmitted from the lens control unit 37 to the camera control unit 21 at predetermined intervals. Acquires the focus limit information corresponding to the currently set focus limit mode from the lens control unit 37.

For example, as shown in FIG. 2A, when the “FULL mode” is set by the focus limit switch 38, the lens control unit 37 uses the focus limit information as the focus limit information in the “FULL mode”. The infinity end soft limit SL IP and the closest end soft limit SL NP , which are the limit positions (end portions) of Rf1, are periodically transmitted to the camera body 2. Thereby, the camera control unit 21 acquires information on the infinity end soft limit SL IP and the closest end soft limit SL NP as focus limit information.

Similarly, as illustrated in FIG. 2B, the camera control unit 21 can set the focusable range in the “close-side limit mode” when the “close-side limit mode” is set by the focus limit switch 38. Information on the infinitely far end soft limit SL IP and the near side soft limit SL NS , which are the limit positions of Rf2, is acquired as focus limit information, and as shown in FIG. When the “infinity side limit mode” is set, the infinity side soft limit SL IS and the near end soft limit SL NP , which are the limit positions of the focusable range Rf3 in the “infinity side limit mode”, are set. , Get as focus limit information.

  Even when the focus limit mode is the same, depending on the type of the lens barrel 3, the focusable ranges Rf1 to Rf3 of the focus lens 32 may be different ranges. Therefore, the camera control unit 21 acquires focus limit information specific to the lens barrel 3 from the lens barrel 3.

  In step S102, the camera control unit 21 calculates the focusable range of the focus lens 32 based on the focus limit information acquired in step S101, as shown in FIGS. .

For example, as shown in FIG. 2A, the camera control unit 21 is set to “FULL mode”, and the infinity end soft limit SL IP and the near end soft limit SL NP are acquired as focus limit information. If it is, the range from the infinity end soft limit SL IP to the closest end soft limit SL NP is calculated as the focusable range Rf1.

Similarly, as shown in FIG. 2B, the camera control unit 21 is set to the “near side limit mode”, and the infinity end soft limit SL IP and the near side soft limit SL NS are set as focus limit information. Is acquired, the range from the infinitely far end soft limit SL IP to the closest soft limit SL NS is calculated as the focusable range Rf2. In addition, as shown in FIG. 2C, the camera control unit 21 is set to the “infinity side limit mode”, and the infinity side soft limit SL IS and the near end soft limit SL are used as focus limit information. When NP is acquired, the range from the infinitely far side soft limit SL IS to the closest end soft limit SL NP is calculated as the focusable range Rf3.

Depending on the type of the lens barrel 3, the focus limit function may not be obtained from the lens barrel 3 because the focus limit function is not provided. In such a case, as shown in FIG. 2A, the camera control unit 21 calculates a range Rf1 from the infinity end soft limit SL IP to the closest end soft limit SL NP as a focusable range. be able to.

  In step S103, the camera control unit 21 starts defocus amount calculation processing by the phase difference detection method. In the present embodiment, the calculation process of the defocus amount by the phase difference detection method is performed as follows. That is, first, the camera control unit 21 reads a pair of image data corresponding to a pair of images from each of the focus detection pixels 222a and 222b constituting the three focus detection pixel rows 22a to 22c of the image sensor 22. Then, the camera control unit 21 performs image shift detection calculation processing (correlation calculation processing) based on the read pair of image data, and images at the focus detection positions corresponding to the three focus detection pixel rows 22a to 22c. The shift amount is calculated, and the image shift amount is converted into a defocus amount. Further, the camera control unit 21 evaluates the reliability of the calculated defocus amount. Note that the reliability of the defocus amount is evaluated based on, for example, the degree of coincidence and contrast of a pair of image data. Further, the defocus amount calculation process by such a phase difference detection method is repeatedly executed at predetermined intervals.

  In step S104, the camera controller 21 starts the focus evaluation value calculation process. In the present embodiment, the focus evaluation value calculation process is performed by reading out the pixel output of the imaging pixel 221 of the imaging element 22, extracting a high-frequency component of the read-out pixel output using a high-frequency transmission filter, and accumulating these. Done. The focus evaluation value is calculated only when the specific focus detection position is selected by the user's manual operation or the subject recognition mode, and only the pixel output of the imaging pixel 221 corresponding to the selected focus detection position. It is good also as a structure which reads. The focus evaluation value calculation process is repeatedly executed at predetermined intervals.

  In step S105, the camera control unit 21 determines whether the shutter release button provided in the operation unit 28 is half-pressed (the first switch SW1 is turned on). If the first switch SW1 is turned on, the process proceeds to step S106. On the other hand, if the first switch SW1 is not turned on, step S105 is repeated until the first switch SW1 is turned on. That is, the defocus amount calculation process and the focus evaluation value calculation process by the phase difference detection method are repeatedly executed until the first switch SW1 is turned on.

  In step S106, the camera control unit 21 determines whether or not the defocus amount has been calculated by the phase difference detection method. If the defocus amount can be calculated, it is determined that distance measurement is possible, and the process proceeds to step S112. On the other hand, if the defocus amount cannot be calculated, it is determined that distance measurement is impossible, and the process proceeds to step S107. In the present embodiment, even when the defocus amount can be calculated, even if the reliability of the calculated defocus amount is low, it is treated that the defocus amount cannot be calculated, and the process returns to step S107. Let's go ahead.

  If it is determined in step S106 that the defocus amount has been calculated and it is determined that distance measurement is possible, the process proceeds to step S112, and the focus lens 32 is driven based on the defocus amount calculated by the phase difference detection method. A lens drive control process is performed. Here, FIG. 10 is a flowchart showing the lens drive control process of step S112. Hereinafter, the lens drive control process in step S112 will be described with reference to FIG.

First, in step S201, the camera control unit 21 determines whether or not the focusable range is limited. For example, when information on the infinity end soft limit SL IP and the near end soft limit SL NP is acquired as the focus limit information in step S101, the camera control unit 21 performs the infinity end soft limit SL IP and the nearest end. Based on the information of the soft limit SL NP , as shown in FIG. 2A, it can be determined that the “FULL mode” is set, and it is possible to determine that the focusable range Rf1 is not limited.

On the other hand, in step S101, when the information of the infinity end soft limit SL IP and the near side soft limit SL NS is acquired as the focus limit information, the camera control unit 21 performs the infinity end soft limit SL IP and the near side soft limit. Based on the information of the SL NS , it can be determined that the “close-side limit mode” is set, and it can be determined that the focusable range Rf2 is limited. Similarly, in step S101, when information on the infinitely far side soft limit SL IS and the very close end soft limit SL NP is acquired as the focus limit information, the camera control unit 21 determines that the infinitely far side soft limit SL IS and the very close end are soft. Based on the information of the end soft limit SL NP , it is determined that the “infinitely far side limit mode” is set, and thus it is possible to determine that the focusable range Rf3 is limited.

If it is determined in step S201 that the focusable range is limited, the process proceeds to step S202. In step S202, the camera control unit 21 determines whether or not the drive target position of the focus lens 32 based on the defocus amount calculated by the phase difference detection method exceeds the focusable range of the focus lens 32. Is called. Specifically, the camera control unit 21 calculates the lens drive amount (unit: number of pulses) to the drive target position based on the defocus amount calculated by the phase difference detection method and the current focus lens position. To do. Then, the camera control unit 21 matches the drive target position based on the calculated lens driving amount (unit: number of pulses) of the focus lens 32 and the focusable range (unit: number of pulses) calculated in step S102. It is determined whether or not the focusable range is exceeded. For example, in the example shown in FIG. 2B, when the drive target position based on the defocus amount is a lens position closer to the near-side soft limit SL NS , the camera control unit 21 sets the drive target position. Can exceed the focusable range Rf2. When it is determined that the drive target position based on the defocus amount exceeds the focusable range, the process proceeds to step S203, and on the other hand, the drive target position based on the defocus amount is determined to be within the focusable range. If so, the process proceeds to step S206.

  In step S203, since it is determined that the drive target position based on the defocus amount exceeds the focusable range, the camera control unit 21 moves the focus lens 32 to the limit position (end) of the focusable range. Calculation of the lens driving amount necessary for driving is performed. Specifically, the camera control unit 21 is necessary for driving the focus lens 32 to the limit position in the focusable range close to the drive target position based on the current position of the focus lens 32 and the focusable range. The lens driving amount is calculated.

For example, in the example shown in FIG. 2B, when the drive target position based on the defocus amount is a lens position closer to the near side soft limit SL NS , the camera control unit 21 sets the drive target position. The lens driving amount necessary for driving the focus lens 32 to the closest soft limit SL NS , which is the limit position of the focusable range Rf2 close to the lens, is calculated. In the example shown in FIG. 2C, when the drive target position based on the defocus amount is a lens position on the infinity side with respect to the infinity side soft limit SL IS , the camera control unit 21 drives a limit position of the focus adjustable range Rf3 close to the target position, calculates the lens driving amount necessary to drive the focus lens 32 to the infinity side software limit SL iS.

In step S204, the camera control unit 21 performs processing for driving the focus lens 32 to the limit position of the focusable range based on the lens driving amount calculated in step S203. Specifically, the camera control unit 21 sends the lens drive amount calculated in step S <b> 203 to the focus lens drive motor 36 via the lens control unit 37. Then, the focus lens drive motor 36 drives the focus lens 32 to the limit position of the focusable range based on the received lens drive amount. Accordingly, for example, in the example shown in FIG. 2B, even when the drive target position based on the defocus amount is a lens position closer to the near side soft limit SL NS , the focus lens 32 is closer to the near side soft. It will be moved to the limit SL NS . Further, in the example shown in FIG. 2 (C), drive target position based on the defocus amount, the infinity side software limit SL even if a lens position of the infinity side than IS, the focus lens 32 is an infinite Togawa soft It will be moved to the limit SL IS .

  In the subsequent step S205, since the focus lens 32 cannot be driven to the drive target position (focus position) based on the defocus amount, a display indicating that the focus lens 32 is out of focus is displayed. The out-of-focus display is performed by the electronic viewfinder 26, for example.

  On the other hand, if it is determined in step S201 that the focusable range is not limited, or if it is determined in step S202 that the drive target position based on the defocus amount is within the focusable range. The process proceeds to step S206. In step S206, the camera control unit 21 calculates the lens drive amount of the focus lens 32 based on the defocus amount calculated by the phase difference detection method, and in the subsequent step S207, based on the calculated lens drive amount. Thus, the focus lens 32 is driven to the drive target position (focus position). Thereafter, in step 208, focus display is performed.

  As described above, the drive control process of the focus lens 32 is performed based on the defocus amount calculated by the phase difference detection method. As described above, when the focus lens 32 is driven based on the defocus amount calculated by the phase difference detection method, the focus lens is within the focusable ranges Rf1 to Rf3 shown in FIGS. The drive control of the focus lens 32 is performed so that 32 is driven. That is, when the drive target position based on the defocus amount exceeds the in-focus range Rf1 to Rf3, the lens drive amount necessary for driving the camera body 2 to the limit position of the in-focus range is calculated. In the lens barrel 3, the focus lens 32 is driven to the limit position of the focusable range based on the lens drive amount calculated by the camera body 2. Accordingly, it is possible to effectively prevent the focus lens 32 from being driven to a lens position that exceeds the focusable range Rf1 to Rf3 and performing focus display at a lens position that exceeds the focusable range. it can. Then, after the lens drive control process shown in FIG. 10 is completed, the process proceeds to step S117 shown in FIG.

  If it is determined in step S106 shown in FIG. 9 that the defocus amount cannot be calculated by the phase difference detection method, the process proceeds to step S107. In step S107, the camera control unit 21 calculates a scan drive range that is a driveable range of the focus lens 32 in the scan operation. In subsequent step S108, scan drive is performed in the scan drive range calculated in step S107. The scanning operation to be performed is started.

  The scan operation means that the focus lens drive motor 36 drives the focus lens 32 at a predetermined drive speed (scan drive), the camera control unit 21 calculates the defocus amount by the phase difference detection method, and the focus evaluation value. This calculation is performed simultaneously at predetermined intervals, whereby the detection of the in-focus position by the phase difference detection method and the detection of the in-focus position by the contrast detection method are performed simultaneously at the predetermined interval.

  Specifically, the camera control unit 21 sends a scan drive start command to the lens control unit 37, and the lens control unit 37 drives the focus lens drive motor 36 based on the command from the camera control unit 21 to focus. The lens 32 is scan-driven along the optical axis L1. Note that the scan drive of the focus lens 32 may be performed from the infinity end to the close end, or may be performed from the close end to the infinity end.

  Then, while driving the focus lens 32, the camera control unit 21 reads out a pair of image data corresponding to the pair of images from the focus detection pixels 222a and 222b of the image sensor 22 at predetermined intervals. The defocus amount is calculated by the phase difference detection method, and the pixel output is read from the imaging pixel 221 of the imaging element 22 at a predetermined interval while driving the focus lens 32. Based on this, the focus evaluation value is calculated. By calculating and thereby acquiring focus evaluation values at different focus lens positions, the focus position is detected by the contrast detection method.

  In this embodiment, in order to perform scan driving, the scan driving range is calculated in step S107. FIG. 11 is a diagram illustrating an example of a scan drive range. As shown in FIGS. 11A to 11C, the scan drive ranges Rs1 to Rs3 include the focusable ranges Rf1 to Rf3 shown in FIGS. 2A to 2C, and the focusable range Rf1. It is calculated as a range wider than ~ Rf3.

Here, as described above, in the scan operation, while the focus lens 32 is driven, the calculation of the defocus amount by the phase difference detection method and the calculation of the focus evaluation value by the contrast detection method are simultaneously performed at predetermined intervals. Is the action. Then, in order to detect the peak position (focus position) of the focus evaluation value by the contrast detection method, as shown in FIG. 8, the focus lens 32 is driven to a position exceeding the peak position (P2 in FIG. 8). Thus, it is necessary to calculate the focus evaluation value. Therefore, for example, in order to detect the peak position (focus position) of the focus evaluation value with the infinity end soft limit SL IP by the contrast detection method, the focus lens 32 is set to infinity from the infinity end soft limit SL IP. It is necessary to calculate the focus evaluation value by driving to the side. Similarly, for example, in the scan operation, in order to detect the peak position (focus position) of the focus evaluation value with the near-end soft limit SL NP by the contrast detection method, the focus lens 32 is moved to the near-end soft limit SL. It is necessary to calculate the focus evaluation value by driving closer to the side than NP .

Therefore, when performing the scanning operation, when the focus limit mode is “FULL mode”, the camera control unit 21 performs an infinite distance from the infinity end soft limit SL IP as shown in FIG. A range from the lens position on the side to the lens position closer to the near end than the close end soft limit SL NP is calculated as the scan drive range Rs1. For example, in this embodiment, when the focus evaluation value rises twice and then moves down twice, the focus evaluation value is calculated using these focus evaluation values. The unit 21 calculates a focus evaluation value of 2 on the near side of the near end soft limit SL NP from a lens position where two focus evaluation values can be calculated on the infinite side of the infinite end soft limit SL IP. It is possible to calculate the range up to the lens position that can be calculated as the scan drive range Rs1 in the scan operation.

Further, when performing the scanning operation, when the focus limit mode is the “close-side limit mode”, the camera control unit 21 performs the scan operation more than the infinity end soft limit SL IP as shown in FIG. A range from the lens position on the infinity side to the lens position closer to the near side soft limit SL NS is calculated as the scan drive range Rs2. Similarly, when the focus limit mode is the “infinity limit mode”, the camera control unit 21, as shown in FIG. 11C, has a lens on the infinity side of the infinity side soft limit SL IS. A range from the position to the lens position closer to the near end than the close end soft limit SL NP is calculated as a scan drive range Rs3 in the scan operation.

  In step S108, a scan operation for performing scan drive is performed in the scan drive ranges Rs1 to Rs3 shown in FIGS. As described above, in the scan drive in the scan operation, the drive of the focus lens 32 is controlled by setting the scan drive ranges Rs1 to Rs3 shown in FIGS. 11A to 11C as the driveable range of the focus lens 32. Even when the focus position exists at the limit position of the focusable range shown in FIGS. 2A to 2C, such a focus position can be detected by the contrast detection method.

  In step S109, the camera control unit 21 determines whether or not the defocus amount can be calculated by the phase difference detection method as a result of the scanning operation. If the defocus amount can be calculated, it is determined that distance measurement is possible and the process proceeds to step S112. On the other hand, if the defocus amount cannot be calculated, it is determined that distance measurement is not possible and the process proceeds to step S110. . In step S109, as in step S106 described above, even when the defocus amount can be calculated, the defocus amount cannot be calculated if the reliability of the calculated defocus amount is low. It is assumed that the process proceeds to step S110.

  In step S110, the camera control unit 21 determines whether or not the in-focus position has been detected by the contrast detection method as a result of the scanning operation. If the in-focus position can be detected by the contrast detection method, the process proceeds to step S113. If the in-focus position cannot be detected, the process proceeds to step S111.

  In step S111, the camera control unit 21 determines whether scan driving has been performed for the entire scan driving range calculated in step S107. When the scan drive is not performed for the entire scan drive range, the process returns to step S109, and steps S109 to S111 are repeated to perform the scan operation, that is, the phase difference detection method while the focus lens 32 is scan-driven. The operation of simultaneously executing the calculation of the defocus amount by the method and the detection of the in-focus position by the contrast detection method at predetermined intervals is continuously performed. On the other hand, if the scan operation has been completed for the entire scan drive range, the process proceeds to step S114.

  As a result of executing the scanning operation, when it is determined in step S109 that the defocus amount can be calculated by the phase difference detection method, the scanning operation is stopped, and the process proceeds to step S112. Drive control of the focus lens 32 is performed based on the result of the phase difference detection method.

  That is, when the focusable range is limited and the drive target position corresponding to the defocus amount exceeds the focusable range (steps S201 = Yes, S202 = Yes), the focus lens 32 is moved. A lens driving amount for driving to the limit position of the focusable range is calculated (step S203), and the focus lens 32 is driven to the limit position of the focusable range based on the calculated lens driving amount (step S204). Then, the out-of-focus display is performed (step S208). On the other hand, when the drive target position corresponding to the defocus amount is within the focusable range (step S202 = No), or when the focusable range is not limited (step S201 = No), defocusing is performed. A lens driving amount corresponding to the amount is calculated (step S206), the focus lens 32 is driven based on the lens driving amount corresponding to the defocus amount (step S207), and an in-focus display is performed (step S208).

  As a result of executing the scanning operation, if it is determined in step S110 that the in-focus position has been detected by the contrast detection method, the scanning operation is stopped, and the process proceeds to step S113 to obtain the focus detection result by the contrast detection method. The drive control of the focus lens 32 is performed. Here, FIG. 12 is a flowchart showing the lens drive control process based on the focus detection result by the contrast detection method.

  As shown in FIG. 12, first, in step S301, as in step S201, it is determined whether or not the focusable range is limited. If the focusable range is limited, the process proceeds to step S302. On the other hand, if the focusable range is not limited, the process proceeds to step S306.

In step S302, it is determined whether or not the focus position detected by the contrast detection method exceeds the focusable range. For example, in the scan operation, as shown in FIG. 2B, when the “closest limit mode” is set, the focus lens 32 is driven closer to the closest soft limit SL NS to focus evaluation. As a result of calculating the value, when the peak position (focus position) of the focus evaluation value is detected closer to the closest soft limit SL NS , the camera control unit 21 is detected by the contrast detection method. It is determined that the in-focus position is beyond the in-focus range Rf2, and the process proceeds to step S303. In the scanning operation, as shown in FIG. 2C, when the “infinity side limit mode” is set, the focus lens 32 is driven to the infinity side from the infinity side soft limit SL IS. result of calculating the focus evaluation value each, when the peak position of the focus evaluation value (focus position) is detected in the infinity side of the infinity side soft limit SL iS, the camera control unit 21, a contrast detection method It is determined that the in-focus position detected by (1) exceeds the focusable range Rf3, and the process proceeds to step S303.

  In steps S303 to S305, the camera control unit 21 calculates the lens driving amount necessary for driving the focus lens 32 from the in-focus position detected by the contrast detection method to the limit position within the focusable range. Is performed (step S303), and the focus lens 32 is driven to the limit position within the focusable range based on the calculated lens driving amount (step S304), and then in-focus display is performed (step S305).

Thereby, for example, in the example shown in FIG. 2B, even when the focus position calculated by the contrast detection method is a lens position closer to the near side soft limit SL NS , the focus lens 32 is closer to the focus position. It will be moved to the side soft limit SL NS . Further, in the example shown in FIG. 2 (C), in-focus position calculated by the contrast detection method, even if than infinity side software limit SL IS a lens position of the infinity side, the focus lens 32 at infinity It will be moved to the side soft limit SL IS .

  On the other hand, if it is determined in step S301 that the focusable range is not limited, or if it is determined in step S302 that the focus position detected by the contrast detection method is within the focusable range. In step S306, the process proceeds to step S306. In step S306, the camera control unit 21 calculates the lens driving amount up to the in-focus position detected by the contrast detection method. In the subsequent step S307, the camera control unit 21 calculates the lens calculated in step S306. Based on the drive amount, processing for driving the focus lens 32 to the in-focus position is performed. Thereafter, in step S308, focus display is performed.

  As described above, the drive control of the focus lens 32 is performed based on the focus position detected by the contrast detection. As described above, in the focus drive in which the focus lens 32 is driven to the focus position detected by the contrast detection method, the focus lens 32 is driven within the focusable range shown in FIGS. The drive control of the focus lens 32 is performed. In other words, when the in-focus position detected by the contrast detection method exceeds the in-focus range, the lens drive amount necessary for driving the focus lens 32 to the limit position in the in-focus range in the camera body 2 is large. The focus lens 32 is driven in the lens barrel 3 based on the lens driving amount calculated by the camera body 2. As a result, it is possible to effectively prevent the focus lens 32 from being driven to a position that exceeds the focusable range or that focus display is performed at a position that exceeds the focusable range. Then, after the lens drive control process shown in FIG. 12 is completed, the process proceeds to step S117 shown in FIG.

  If it is determined in step S111 that the scan operation has been completed for the entire scan drive range, the process proceeds to step S114. In step S114, as a result of performing the scanning operation, focus detection could not be performed by any of the phase difference detection method and the contrast detection method. Therefore, the end operation of the scanning operation is performed, and the process proceeds to step S115.

  In step S115, the camera control unit 21 performs a process of moving the focus lens 32 to the limit position within the focusable range close to the current focus lens position. In step S116, since the in-focus position cannot be detected, the in-focus incapability display is performed.

  In this embodiment, after focus adjustment based on the focus detection result is performed, the process proceeds to step S117, and focus limit change processing is performed in step S117. FIG. 13 is a flowchart showing the focus limit changing process in step S117.

  As shown in FIG. 13, first, in step S401, the camera control unit 21 reacquires focus limit information. In step S402, the camera control unit 21 recalculates the focusable range based on the focus limit information acquired in step S401.

  In step S403, the camera control unit 21 compares the focusable range newly calculated in step S402 with the previous focusable range, and determines whether or not the focusable range has been changed. If the focusable range has been changed, the process proceeds to step S404. On the other hand, if the focusable range has not been changed, the focus limit change process shown in FIG. 13 ends.

  In step S404, the camera control unit 21 determines whether or not the drive target position of the focus lens 32 is within the focusable range after the change calculated in step S402. For example, even after the focus lens 32 is driven to the in-focus position, the focus lens 32 is driven based on the newly calculated defocus amount by repeatedly calculating the defocus amount by the phase difference detection method. Can do. In such a case, by changing the focus limit mode, the drive target position based on the defocus amount may be outside the focusable range after the change calculated in step S402. When the drive target position of the focus lens 32 is inside the newly calculated focusable range, the process proceeds to step S405, while when the drive target position of the focus lens 32 is outside the focusable range. In step S406, the process proceeds to step S406. If the drive target position of the focus lens 32 has not been calculated, the process proceeds to step S405.

  In step S405, based on the changed focusable range calculated in step S402 by the camera control unit 21 and the current position of the focus lens 32, the focus lens 32 is inside the changed focusable range. A determination is made as to whether or not it is located at. For example, when the focusable range is changed via the focus limit switch 38 by the photographer, the focus lens 32 may be positioned outside the focusable range after the change. In such a case, the camera control unit 21 can determine that the focus lens 32 is located outside the focusable range. If the focus lens 32 is located outside the focusable range, the process proceeds to step S406. On the other hand, if the focus lens 32 is located inside the focusable range, the process proceeds to FIG. The focus limit change process shown ends.

  In step S406, the camera control unit 21 calculates a lens driving amount necessary for driving the focus lens 32 to the limit position of the focusable range. Specifically, the camera control unit 21 can focus the focus lens 32 closer to the current position of the focus lens 32 based on the focusable range calculated in step S <b> 402 and the current position of the focus lens 32. A lens driving amount necessary for driving to the limit position of the range is calculated.

  In step S407, the camera control unit 21 performs a process of driving the focus lens 32 to the limit position of the focusable range based on the lens driving amount calculated in step S406. Specifically, the camera control unit 21 sends the lens drive amount calculated in step S406 to the focus lens drive motor 36 via the lens control unit 37. Then, the lens driving motor 36 drives the focus lens 32 to the limit position of the focusable range based on the lens driving amount calculated by the camera control unit 21.

Accordingly, for example, in the “close-side limit mode” shown in FIG. 2B, when the focus lens 32 is positioned on the infinity side with respect to the infinity-side soft limit SL IS , the focus limit mode is set to “close-range”. Side limit mode ”is changed to“ infinity limit mode ”, and the focusable range is changed from the focusable range Rf2 shown in FIG. 2 (B) to the focusable range Rf3 shown in FIG. 2 (C). in a case where it is, the focus lens 32 is moved to the infinity side software limit SL iS a limit position of the focus adjustable range of "infinite side limit mode", so that the out-of-focus display is performed.

  As described above, the operation of the camera 1 according to the present embodiment is performed.

  As described above, in the present embodiment, the camera body 2 acquires the focus limit information from the lens barrel 3, and calculates the focusable range based on the acquired focus limit information. When the defocus amount can be calculated by the phase difference detection method, it is determined whether the drive target position corresponding to the defocus amount is inside the focusable range, and the drive corresponding to the defocus amount is performed. When the target position exceeds the focusable range, the camera body 2 calculates a lens driving amount necessary for moving the focus lens 32 to the limit position of the focusable range. In the lens barrel 3, the following effects can be achieved by driving the focus lens 32 to the limit position of the focusable range based on the lens driving amount calculated by the camera body 2.

  That is, conventionally, when the camera body 2 can calculate the defocus amount by the phase difference detection method, the lens drive amount is calculated based on the drive target position corresponding to the defocus amount, and the calculated lens drive amount is calculated. To the lens barrel 3. In the lens barrel 3, it is repeatedly determined whether or not the focus lens 32 has reached the focusable range. When the focus lens 32 reaches the limit position of the focusable range, the focus lens 32 is driven. Had stopped. Therefore, conventionally, in the lens barrel 3, the processing load for determining whether or not the focus lens 32 exceeds the focusable range increases, and the focus range exceeds the focusable range depending on the determination timing. In some cases, the focus lens 32 stops and the focus display is performed at a position beyond the focusable range.

  On the other hand, in the present embodiment, when the drive target position based on the defocus amount exceeds the focusable range, the camera body 2 drives the focus lens 32 to the limit position of the focusable range. The lens driving amount is calculated, and the focus lens 32 is driven in the lens barrel 3 based on the lens driving amount. Thereby, it is not necessary to repeatedly determine whether or not the focus lens 32 exceeds the focusable range in the lens barrel 3, and the drive of the focus lens 32 is appropriately limited within the focusable range. It is possible to effectively prevent the focus display from being performed at the lens position exceeding the focusable range.

  Similarly, in the present embodiment, when the focus lens 32 is driven to the in-focus position detected by the contrast detection method, the drive target position (in-focus position) of the focus lens 32 exceeds the in-focus range. In the camera body 2, the lens driving amount necessary for driving the focus lens 32 to the limit position of the focusable range is calculated, and the lens barrel 3 drives the focus lens 32 based on the lens driving amount. Accordingly, even when focus detection is performed by the contrast detection method, it is not necessary to repeatedly determine whether or not the focus lens 32 exceeds the focusable range in the lens barrel 3, and the focus lens 32 can be focused. Can be effectively prevented.

  In particular, in the present embodiment, the servo drive that drives the focus lens 32 based on the defocus amount calculated by the phase difference detection method, and the focus drive that drives the focus lens 32 to the in-focus position detected by the contrast detection method. When the focus lens 32 is driven within the focusable range, the focus determination is performed at the lens position beyond the focusable range and the focus display is performed. It can be effectively prevented.

  Furthermore, in this embodiment, the scan drive range when performing the scan operation is calculated in a range that includes the focusable range and is wider than the focusable range, and the scan operation is executed in the calculated scan drive range. To do. Thereby, even when the peak position (focus position) of the focus evaluation value exists at the limit position in the focusable range, the focus position can be appropriately detected. That is, conventionally, when focus detection is performed using a contrast detection method such as scan driving, it is repeatedly determined whether or not the focus lens 32 has reached the limit position of the focusable range, and the focus lens 32 can be focused. Since the driving of the focus lens 32 has been stopped when the limit position of the range is reached, when the peak position (focus position) of the focus evaluation value exists at the limit position of the focusable range, the focus position There was a problem that could not be detected. On the other hand, in the present embodiment, even when the peak position (focus position) of the focus evaluation value exists at the limit position of the focusable range, the focus evaluation value is calculated beyond the limit position of the focusable range. Therefore, the in-focus position can be appropriately detected.

  In this embodiment, the focus limit information is transmitted from the lens barrel 3 to the camera body 2 to determine whether or not the drive target position of the focus lens 32 exceeds the focusable range in the camera body 2. It is possible to determine whether or not the camera body 2 can focus on the subject. For this reason, in the present embodiment, the camera body 2 can appropriately determine the in-focus display and the out-of-focus display, and the in-focus display is performed when the in-focus position exists outside the focusable range. Can be effectively prevented.

  Furthermore, in the present embodiment, when the focusable range is changed by the photographer via the focus limit switch 38, the drive target position of the focus lens 32 is outside the focusable range after the change, or When the focus lens 32 is located outside the focusable range after the change, the focus lens 32 is moved to the limit position of the focusable range after the change, and the in-focus display is performed. As a result, when the focusable range is changed, the focus lens 32 remains outside the focusable range after the change, or the focus display is displayed outside the focusable range after the change. It can be effectively prevented from being performed.

  The embodiment described above is described for facilitating the understanding of the present invention, and is not described for limiting the present invention. Therefore, each element disclosed in the above embodiment is intended to include all design changes and equivalents belonging to the technical scope of the present invention.

For example, in the above-described embodiment, when the “FULL mode” is set in the scanning operation, as shown in FIG. 11A, from the lens position on the infinity side with respect to the infinity end soft limit SL IP. Although the configuration in which the range to the lens position closer to the closest side than the closest soft limit SL NP is exemplified as the scan drive range Rs1, the configuration is not limited to this configuration. For example, as shown in FIG. In addition, a range from the infinity end soft limit SL IP to the closest end soft limit SL N ′ may be set as the scan drive range Rs1. FIG. 14 is a diagram illustrating another example of the scan drive range.

Similarly, when the “close-side limit mode” is set in the scanning operation, as shown in FIG. 11B, from the lens position on the infinity side to the infinity end soft limit SL IP , Although the configuration in which the range up to the lens position closer to the soft limit SL NS is calculated as the scan drive range Rs2 is exemplified, the configuration is not limited to this configuration. For example, as shown in FIG. A range from the end soft limit SL IP to the lens position closer to the near side than the close side soft limit SL NS may be calculated as the scan drive range Rs2. Further, when the “infinity limit mode” is set in the scanning operation, as shown in FIG. 14C, the lens position closer to the infinity side than the infinity side soft limit SL IS is closer to the lens. The range up to the end soft limit SL NP may be calculated as the scan drive range Rs3.

  In the above-described embodiment, servo drive (step S112) for driving the focus lens 32 based on the defocus amount calculated by the phase difference detection method, scan drive in the scan operation (steps S108 to S111), and contrast. Although the drive control of the focus lens 32 in the focus drive (step S113) for driving the focus lens 32 based on the focus position detected by the detection method has been described as an example, in addition to this configuration, for example, FIG. As shown in FIG. 8, the search drive for calculating the focus evaluation value while driving the focus lens 32 and the initial drive for driving the focus lens 32 to a predetermined search start position are similar to the scan drive in the scan operation. 11 (A)-(C) Within it may be configured to restrict the drive of the focus lens 32.

  Further, for example, when the focus lens 32 is driven in accordance with the change of the focus state when the focus state of the optical system changes due to the movement of the subject, such as when shooting a moving subject, the focus according to the above-described embodiment. The lens 32 may be driven and controlled.

  The camera 1 of the embodiment described above is not particularly limited, and the present invention may be applied to other optical devices such as a digital video camera, a lens-integrated digital camera, and a camera for a mobile phone.

DESCRIPTION OF SYMBOLS 1 ... Digital camera 2 ... Camera body 21 ... Camera control part 22 ... Imaging device 3 ... Lens barrel 32 ... Focus lens 36 ... Focus lens drive motor 37 ... Lens control part

Claims (3)

  1. An image sensor that captures a subject image formed by an optical system having a focus adjustment lens that changes an imaging position and outputs a signal;
    A detection unit that detects a defocus amount that is a shift amount between an imaging position of the optical system and an imaging surface of the imaging element;
    An operation unit that receives a focus adjustment instruction to adjust the position of the subject image so as to coincide with the imaging surface of the image sensor;
    Have a pre-Symbol optical system, the lens barrel can be set movable range of the focusing lens, and a communication unit for receiving information about the range set,
    After the focus adjustment instruction is received by the operation unit, when the position of the focus adjustment lens based on the defocus amount detected by the detection unit exceeds the range, the focus adjustment is performed up to the end of the range. A control unit that performs control processing for notifying out-of-focus after driving the lens;
    An imaging apparatus having
  2. The imaging apparatus according to claim 1,
    The imaging apparatus includes the control unit that performs control to determine a driving amount of the focus adjustment lens based on the defocus amount and the information regarding the range received from the lens barrel.
  3. The imaging apparatus according to claim 1, wherein:
    The said detection part is an imaging device which detects the said defocus amount by the focus detection pixel provided in the said image pick-up element.
JP2013199254A 2013-09-26 2013-09-26 Camera body and imaging device Active JP6464551B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013199254A JP6464551B2 (en) 2013-09-26 2013-09-26 Camera body and imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013199254A JP6464551B2 (en) 2013-09-26 2013-09-26 Camera body and imaging device

Publications (2)

Publication Number Publication Date
JP2015064523A JP2015064523A (en) 2015-04-09
JP6464551B2 true JP6464551B2 (en) 2019-02-06

Family

ID=52832435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013199254A Active JP6464551B2 (en) 2013-09-26 2013-09-26 Camera body and imaging device

Country Status (1)

Country Link
JP (1) JP6464551B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016132566A1 (en) * 2015-02-19 2016-08-25 オリンパス株式会社 Automatic focusing device and automatic focus control device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007078908A (en) * 2005-09-13 2007-03-29 Canon Inc Lens device and its focusing control method
JP2008275890A (en) * 2007-04-27 2008-11-13 Olympus Imaging Corp Digital camera with interchangeable lens
JP5402189B2 (en) * 2009-04-14 2014-01-29 株式会社ニコン Focus adjustment device and imaging device provided with the same

Also Published As

Publication number Publication date
JP2015064523A (en) 2015-04-09

Similar Documents

Publication Publication Date Title
JP5317562B2 (en) Phase difference detection device, imaging device, phase difference detection method, phase difference detection program
JP2009244862A (en) Focus detection device and imaging apparatus having the same
JP4973273B2 (en) Digital camera
JP5176959B2 (en) Imaging device and imaging apparatus
JP2011154385A (en) Optical apparatus
JP3992992B2 (en) Subject image acquisition device
JP5147645B2 (en) Imaging device
JP5066851B2 (en) Imaging device
JP5458475B2 (en) Focus detection apparatus and imaging apparatus
JP2009290157A (en) Imaging element, and imaging device
JP5468178B2 (en) Imaging device, imaging device control method, and program
JP5092685B2 (en) Imaging device and imaging apparatus
JP4961993B2 (en) Imaging device, focus detection device, and imaging device
KR101280248B1 (en) Camera and camera system
KR101310105B1 (en) Focus detection apparatus
JP5388544B2 (en) Imaging apparatus and focus control method thereof
KR101580545B1 (en) Image processing apparatus, image sensing apparatus, control method, and recording medium
US8355047B2 (en) Tracking device, focus adjustment device, image-capturing device, and tracking method
JP5256711B2 (en) Imaging device and imaging apparatus
WO2010041721A1 (en) Image capturing apparatus and method and program for controlling same
US8237097B2 (en) Focus detecting apparatus and imaging apparatus having center position detection of micro lenses in micro lens array
JP2010032646A (en) Focus detection apparatus
JP2008309882A (en) Digital camera
JP2002365517A (en) Device for detecting state of focusing of photographic lens
CN102809877A (en) Lens barrel and camera body

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160831

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170606

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20170804

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171005

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180403

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180604

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: 20181211

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181224

R150 Certificate of patent or registration of utility model

Ref document number: 6464551

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150