The present invention relates to an imaging apparatus configured to provide a tilt control.
One conventional surveillance camera is installed at a high location, such as a ceiling, while its optical axis is directed obliquely downwardly to monitor a person passing on a road or to capture a car or its license plate (number plate). Since the optical axis of the camera is obliquely downwardly directed and a focal plane that is focused in imaging is orthogonal to the optical axis, the focal plane does not coincide with an imaging plane of an object to be actually captured. Hence, an in-focus area becomes part of the image, and the other area is out of focus. One solution for this problem is a generally known technique called the Scheimpflug principle that expands the depth of field by tilting the optical system or the image sensor (referred to as a tilt control hereinafter).
In controlling the tilt of the image sensor using the contrast of the captured image as an evaluation value, a position of an evaluation frame used to acquire the evaluation value in the captured image becomes important. The evaluation frame should be provided in an in-focus area in the tilt control, but the area suitable to obtain the evaluation value differs depending on the imaging scene. Hence, it is necessary for an automatic tilt control to detect the in-focus area in the tilt control and to determine the tilt angle based on the evaluation value acquired in the in-focus area.
Japanese Patent Laid-Open No. (“JP”) 11-242152 discloses an imaging apparatus that provides a tilt control using a tilt angle calculated based on focus information obtained in a plurality of predetermined areas in an imaging area. JP 2017-173802 discloses an imaging apparatus that provides a tilt control using a tilt angle calculated based on a focus shift amount of each of a plurality of focus detection areas.
The imaging apparatus disclosed in JP 11-242152 prohibits the tilt control, if the mutual coincidence of the plurality of obtained tilt angles is lower than a predetermined value. Thus, even in an imaging scene in which a depth of an object becomes deeper due to the tilt imaging, the control may be prohibited depending on the area for acquiring the focus information. In the imaging apparatus disclosed in JP 2017-173802, the user can individually specify a target to be focused among the plurality of focus detection areas, or the area is determined based on a mode selection for each preset group in a horizontal direction, a vertical direction, or a diagonal direction. Thus, the in-focus area cannot be specified without the user designation or the mode selection.
The present invention provides an imaging apparatus configured to provide a tilt control with a tilt angle suitable for an imaging scene.
An imaging apparatus according to one aspect of the present invention includes a controller configured to change a tilt angle between an image sensor and a plane orthogonal to an optical axis of an optical system by adjusting a tilt of the image sensor or the optical system, an evaluation value acquirer configured to acquire contrast evaluation values of a plurality of areas in an image by changing the tilt angle through the controller, and a determiner configured to determine the tilt angle for each of the plurality of areas based on the contrast evaluation values of the plurality of areas acquired by the evaluation value acquirer, and to determine the tilt angle based on the tilt angle of each determined area. The controller adjusts the tilt of the image sensor or the optical system based on the tilt angle determined by the determiner.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Referring now to the accompanying drawings, a description will be given of embodiments according to the present invention. Corresponding elements in respective figures will be designated by the same reference numerals, and a duplicate description thereof will be omitted.
The light that has passed through the optical system 100 forms an object image as an optical image on an image sensor 106 via a band-pass filter (BPF hereinafter) 104 and a color filter 105. The BPF 104 may be inserted into and ejected from the optical path of the optical system 100. The object image is photoelectrically converted by the image sensor 106.
An analog electric signal (imaging signal) output from the image sensor 106 is gain-controlled by an AGC 107, converted into a digital signal by an A/D converter 108, and then input into a camera signal processor 109. The camera signal processor 109 performs various types of image processing for the digital imaging signal to generate an image signal. The image signal is output to a surveillance unit 111 connected to the imaging apparatus 1 via a communicator 110 by a wired or wireless communication.
An evaluation value calculator 112 receives RGB pixel values or luminance values from the A/D converter 108 or the camera signal processor 109 for each evaluation frame set in the image, and calculates an evaluation value relating to a contrast at a specific frequency used for the tilt control and AF control.
A tilt focal plane detector 113 detects an in-focus area (tilt focal plane hereinafter) in the tilt control based on the evaluation value of each evaluation frame calculated by the evaluation value calculator 112.
A tilt angle calculator 114 calculates the tilt angle based on the evaluation value of the evaluation frame existing on the tilt focal plane detected by the tilt focal plane detector 113.
A tilt/zoom/focus controller 115 controls an image sensor driver 116, a focus driver 117, and a zoom driver 118 based on an instruction from a communicator 110 corresponding to an external command and the tilt angle calculated by the tilt angle calculator 114. More specifically, a tilt angle set position, a focus set position, and a zoom set position are instructed to each of the image sensor driver 116, the focus driver 117, and the zoom driver 118.
The image sensor driver 116 tilts the image sensor 106 around an image sensor rotational axis based on the tilt angle set position instructed from the tilt/zoom/focus controller 115. This embodiment provides the image sensor rotational axis for tilting the image sensor 106 at the center of the image as illustrated in
The focus driver 117 controls the position of the focus lens 102 based on the focus set position instructed from the tilt/zoom/focus controller 115.
The zoom drive unit 118 controls the position of the zoom lens 101 based on the zoom set position instructed from the tilt/zoom/focus controller 115.
Herein, the tilt control is a control that tilts the optical system 100 or the image sensor 106 and adjusts the tilt focal plane to a plane such as the ground.
Where f is a focal length of the lens, L is an object distance, and a is an angle between the optical axis and the focal plane (elevation angle), a tilt angle b is calculated by the following expression (1) based on the Scheimpflug principle.
b=tan−1(f/(L tan α)) (1)
According to the Scheimpflug principle, when the principal surface of the optical system and the imaging plane of the image sensor intersect with a single straight line, the focal plane also intersects on the same straight line. Thus, if only part of the image is focused when the optical system and the image sensor are parallel to each other, a wider area on the image is focused by tilting the optical system or the image sensor. As illustrated in
However, the tilt focus plane is different depending on the imaging scene.
There are multiple methods for detecting a tilt focal plane for each imaging scene. For example, one of them is to detect the tilt focal plane based on the evaluation value acquired for each of a plurality of areas on an image. This embodiment acquires the contrast as an evaluation value, and detects the tilt focal plane based on the acquired evaluation value. Then, a tilt angle suitable for the detected tilt focal plane is determined.
Referring now to
In the step S401, the tilt/zoom/focus controller 115 drives the focus lens 102 via the focus drive unit 117 to focus on the center of the image. Focusing may be performed by autofocusing (AF hereinafter) or manual focusing (MF hereinafter).
In the step S402, the tilt/zoom/focus controller 115 sets a plurality of evaluation frames on the image.
In the step S403, the evaluation value calculator 112 performs tilt scanning.
In the step S404, the tilt focal plane detector 113 maintains the optimal tilt angle 603 in each evaluation frame obtained in the step S403.
In the step S405, the tilt focal plane detector 113 detects the tilt focal plane based on the optimal tilt angle 603 in each evaluation frame maintained in the step S404. The tilt focal plane detector 113 uses the fact that the optimal tilt angles coincide with each other on the same plane, and determines whether or not the optimal tilt angles in the respective evaluation frames coincide with each other (optimal tilt angle coincidence determination hereinafter). The area having the most coincidences of the optimal tilt angles is detected as the tilt focus plane. The result of performing the optimal tilt angle coincidence determination based on the tilt scanning result 701-3 in
In this embodiment, the optimal tilt angle coincidence determination covers the perfect coincidence of the optimal tilt angle, but also the substantial coincidence in which the optimal tilt angle exists within a predetermined angular range. Thus, an angular range containing the most optimal tilt angles of the same type (angular range having the most coincidences hereinafter) is obtained by the optimal tilt angle coincidence determination. The angular range may be determined based on the depth of focus calculated using at least one of the focal length, the object distance, the sensor size, the temperature, the humidity, and the light source.
In the step S406, the tilt angle calculator 114 maintains the angular range having the most coincidences obtained in the step S405.
In the step S407, the tilt/zoom/focus controller 115 performs the tilt control for driving the image sensor 106 so that the tilt angle is located within the angular range having the most coincidences maintained in the step S406. In this embodiment, the tilt/zoom/focus controller 115 determines the tilt angle for the tilt control based on at least one of the minimum value, the maximum value, the average value of the optimal tilt angle included in the angular range having the most coincidences, and the optimal tilt angle having a large absolute value of the evaluation value peak. The value is determined based on at least one of the optimal tilt angles having a large value. The average value may be calculated based on the maximum value and the minimum value of the evaluation values obtained in each evaluation frame, and a weighted value such that an optima tilt angle of an evaluation frame with a larger difference can be more advantageous. In addition, the average value may be calculated by a weighted value based on the peak shape of the evaluation value acquired in each evaluation frame such that an optimal tilt angle of an evaluation frame having a steeper peak can be more advantageous.
As described above, this embodiment acquires the tilt angle suitable for the tilt focal plane even in an imaging scene with a different composition by detecting the tilt focal plane and by determining the tilt angle used for tilt control. Therefore, the automatic tilt control suitable for the focal plane can be performed.
While this embodiment tilts the image sensor 106, but the present invention is not limited to this embodiment. The effect of the present invention can also be obtained by tilting the optical system through a controller (not shown) configured to control the tilt of the optical system 100 or by tilting both the image sensor 106 and the optical system 100.
This embodiment performs a tilt control while excluding an evaluation frame which has a difficulty in obtaining an accurate optimal tilt angle (or which yields an optimal tilt angle with a low reliability) and causes a noise in the optimal tilt angle coincidence determination.
Referring now to
In the step S801, the tilt/zoom/focus controller 115 drives the focus lens 102 via the focus drive unit 117 to focus on the center of the image.
In the step S802, the tilt/zoom/focus controller 115 sets a plurality of evaluation frames on the image.
In the step S803, the evaluation value calculator 112 performs tilt scanning.
In the step S804, the tilt focal plane detector 113 maintains the optimal tilt angle 603 in each evaluation frame obtained in the step S803.
In the step S805, the tilt/zoom/focus controller 115 determines whether or not the evaluation frame set in the step S802 is an evaluation frame near the image sensor rotational axis. If the evaluation frame set in the step S802 is the evaluation frame near the image sensor rotational axis, the flow proceeds to the step S809. If the evaluation frame is not near the image sensor rotational axis, the flow proceeds to the step S806.
In the step S806, the tilt/zoom/focus controller 115 determines whether the evaluation frame set in the step S802 is an evaluation frame set in a low contrast area, based on the tilt scanning result acquired in the step S803. More specifically, the tilt/zoom/focus controller 115 determines whether or not a difference value between the maximum value and the minimum value of the evaluation value acquired in the step S803 is smaller than a predetermined value. When the difference value is smaller than the predetermined value, the flow proceeds to the step S809, and when larger than the predetermined value, the flow proceeds to the step S807. When the difference value is equal to the predetermined value, whichever can be arbitrarily set.
As in the evaluation frames 21, 24, 25, 28, 29, and 32 in
In the step S807, the tilt/zoom/focus controller 115 determines whether or not the evaluation frame set in the step S802 has a plurality of evaluation value peaks, based on the result of the tilt scanning acquired in the step S803. If the evaluation frame set in the step S802 has a plurality of evaluation value peaks, the flow proceeds to the step S809. If the evaluation frame does not have the plurality of evaluation value peaks or there is only one evaluation value peak, the flow proceeds to step S808.
The tilt angle at which the evaluation value peak 602 is obtained may be different from the accurate optimal tilt angle 603 due to the influence of disturbance. Thus, the evaluation frames having a plurality of evaluation value peaks are excluded from the target of the optimal tilt angle coincidence determination.
In the step S808, the tilt/zoom/focus controller 115 determines whether or not the evaluation frame set in the step S802 has an object whose luminance value is equal to or larger than a predetermined value, based on the image information obtained in each evaluation frame. If the evaluation frame set in the step S802 has the object with the luminance value equal to or larger than the predetermined value, the flow proceeds to the step S809, and if the evaluation frame does not have the object with the luminance value equal to or larger than the predetermined value, the flow proceeds to the step S812.
For an object such as a point light source, a higher evaluation value may be obtained in a blurred state in the in-focus determination using the contrast for the evaluation value. If there is an object with a high luminance value such as a point light source in the evaluation frame, it is difficult to obtain an accurate optimal tilt angle in the step S804. Hence, the evaluation frame determined to have the object with the luminance value equal to or larger than the predetermined value is excluded from the target of the optimal tilt angle coincidence determination.
In the step S809, the tilt/zoom/focus controller 115 determines whether or not there is a remaining evaluation frame not to be excluded in the step S805 to S808. If there is a remaining evaluation frame not to be excluded, the flow proceeds to the step S810, and if there is no remaining evaluation frame not to be excluded, the flow proceeds to step S811.
In the step S810, the tilt/zoom/focus controller 115 excludes the evaluation frame to be excluded from the target of the optimal tilt angle coincidence determination in the step S812, which will be described later.
In the step S811, the tilt/zoom/focus controller 115 changes settings of various types of predetermined values used for the step S S806 and S808. The predetermined values used for the steps S806 and S808 are set to be smaller than the predetermined value set last time.
In the step S812, the tilt focal plane detector 113 performs the optimal tilt angle coincidence determination using the evaluation frames other than the evaluation frames excluded in the step S810.
In the step S813, the tilt angle calculator 114 maintains the angular range having the most coincidences obtained in the step S812.
In the step S814, the tilt/zoom/focus controller 115 performs the tilt control for driving the image sensor 106 such that the tilt angle is located within the angular range having the most coincidences maintained in the step S406.
As described above, this embodiment performs the optimal tilt angle coincidence determination after excluding the evaluation frame that has difficulties in providing an accurate tilt angle, thereby obtaining a tilt angle suitable for the focal plane with higher accuracy.
While the first and second embodiments discuss only one tilt focus plane in the imaging scene, in practice, there may be two or more areas detected as the tilt focus plane. However, where there are a plurality of areas detected as the tilt focal plane, all areas cannot be focused. This embodiment provides a control where there are a plurality of areas in the imaging scene that are detected as the focus plane.
A first control method is a control to set the highest optimal tilt angle among a plurality of optimal tilt angles determined to coincide with each other by the same number of evaluation frames. At this time, the passage area 1101-1 can be focused in the illustrative scene in
A second control method is a control to set the lowest optimal tilt angle among a plurality of optimal tilt angles determined to coincide with each other by the same number of evaluation frames. The escalator area 1101-2 can be focused in the illustrative scene in
A third control method is a control to calculate an average value of a plurality of optimal tilt angles determined to coincide with each other by the same number of evaluation frames, and to set the calculated tilt angle. The calculation of the average value may use a value obtained by weighting the acquired optimal tilt angle. In the illustrative scene in
A fourth control method is a control that allows a user to select an area to be focused among a plurality of areas detected as the tilt focal plane, and sets the tilt angle of the selected area. When the user selects the area, a plurality of areas detected as the tilt focus plane are displayed on an image viewable by the user, and a UI is provided to enable the user to select one of the plurality of areas. In the illustrative scene in
Which control method to follow among the above four control methods may be determined by user settings, or may be automatically determined by the imaging apparatus.
As described above, when there are a plurality of in-focus areas in the tilt control in the imaging scene, this embodiment can provide a variety of tilt controls suitable for the use case, such as the deeper depth priority case, the case that gives priority to suppressing vertical blurs for the tilt focus plane, the wider in-focus range priority case, and the noticeable area determined case.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application Nos. 2018-203640, filed on Oct. 30, 2018 and 2019-173150, filed on Sep. 24, 2019 which are hereby incorporated by reference herein in their entirety.
Number | Date | Country | Kind |
---|---|---|---|
2018-203640 | Oct 2018 | JP | national |
2019-173150 | Sep 2019 | JP | national |