Imaging apparatus, flicker detection method, and program
Patent Information
- Application Number
- JP2021138847
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-02-25
- Filing Date
- 2021-08-27
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2041-08-27
AI Technical Summary
Existing imaging devices struggle to effectively detect flicker caused by light sources like LEDs, which have different light frequency changes from traditional fluorescent lamps, leading to uneven exposure and color variations in images, requiring complex user adjustments to mitigate flicker effects.
The imaging device employs a method to detect flicker by analyzing light intensity changes across multiple frame rates, using a combination of hardware and software to adjust shutter speeds and exposure times to synchronize with varying flicker frequencies, thereby reducing flicker's influence on image quality.
This approach allows for effective flicker detection and reduction across a wide range of frequencies, simplifying user operations and ensuring consistent image quality regardless of the light source, minimizing exposure and color unevenness.
Abstract
Description
[Technical Field]
[0001] The present invention relates to an imaging device, a flicker detection method, and a program, and more particularly to a technique for calculating characteristics related to periodic changes in the amount of light (referred to as flicker) of a subject. [Background technology]
[0002] In recent years, the image sensors used in imaging devices such as digital cameras and mobile phones have become increasingly sensitive. As a result, even in relatively dark environments such as indoors, it is now possible to capture bright images with reduced blur by setting a fast shutter speed (shorter exposure time) when photographing a subject, in addition to being able to capture images outdoors in broad daylight.
[0003] Furthermore, fluorescent lamps, which are commonly used as indoor light sources, are known to produce flicker, a phenomenon in which the amount of light in the subject image changes periodically due to the influence of the commercial power frequency. When imaging a subject with a fast shutter speed under a light source that produces such flicker, there is a risk of uneven exposure or color inconsistency within a single image (screen), or of variations in exposure and color temperature occurring between multiple images obtained through continuous shooting.
[0004] Patent Document 1 proposes a technique for detecting flicker based on multiple images acquired continuously at a rate that is the least common multiple of the frequency flickers (100Hz and 120Hz) caused by two commercial power supply frequencies, 50Hz and 60Hz. [Prior art documents] [Patent Documents]
[0005] [Patent Document 1] Japanese Patent Publication No. 2014-220763 [Overview of the Initiative] [Problems that the invention aims to solve]
[0006] In recent years, the use of light-emitting diodes (LEDs) as light sources has been increasing. LEDs differ from fluorescent lamps in their method of supplying current; they control the drive current with a rectifier circuit. Therefore, the light intensity changes with a different period and waveform than the frequency of the commercial power supply. Consequently, flicker occurs under LED light sources as well as under fluorescent light sources, but the frequency of the light intensity change of the flicker is different from that of fluorescent lamps and other light sources.
[0007] Patent Document 1 discloses a method for detecting flicker at frequencies (100Hz and 120Hz) caused by two commercial power supply frequencies, 50Hz and 60Hz, such as under fluorescent lamps, but it does not mention how to deal with flicker that occurs under LED light sources.
[0008] Therefore, if flicker, which changes in light intensity at a frequency different from the commercial power frequency, cannot be detected, the user will need to perform complicated operations such as manually adjusting the shutter speed (exposure time) to perform imaging with reduced flicker effects.
[0009] The objective of this invention is to reduce the cumbersome operations required by the user in imaging with reduced flicker effects by effectively detecting flicker regardless of the light source with simple operation. [Means for solving the problem]
[0010] To achieve the above objective, the imaging device of the present invention comprises an image sensor, a drive control means for controlling the driving of the image sensor, and a flicker detection means for detecting flicker, which is a periodic change in the amount of light of a subject, based on a signal output from the image sensor. The drive control means controls the image sensor to drive at n different frame rates, which are 3 or more natural numbers, when outputting a flicker detection signal used for detecting flicker from the image sensor, the least common multiple of the n frame rates used for detecting flicker does not include any of the n frame rates, and the flicker detection means detects flicker based on a flicker detection signal acquired for each of the n frame rates. [Effects of the Invention]
[0011] According to the present invention, by effectively detecting flicker regardless of the light source with simple operation, the complicated operations required by the user for imaging with reduced flicker effects can be reduced. [Brief explanation of the drawing]
[0012] [Figure 1] This is a block diagram illustrating the configuration of a camera body 100, a lens unit 200, and a light-emitting device 300, which are embodiments of an imaging device implementing the present invention. [Figure 2] This figure illustrates an example of a shutter speed setting (index) table according to the present invention. [Figure 3] This is a flowchart showing the flicker reduction process according to the first embodiment of the present invention. [Figure 4] This is a flowchart relating to the flicker detection process according to the first embodiment of the present invention. [Figure 5] This figure illustrates an exemplary method for selecting multiple imaging periods when detecting flicker according to the first embodiment of the present invention. [Figure 6] This figure illustrates a modified example of the method for selecting multiple imaging periods when detecting flicker according to the first embodiment of the present invention. [Figure 7] This is a drawing (graph) for exemplarily explaining the relationship between the method for determining each imaging period for flicker detection according to this embodiment and the number of imaging periods. [Figure 8] This is a diagram for exemplarily explaining the luminance change based on the images continuously obtained by the global shutter method. [Figure 9] This is a diagram for exemplarily explaining the luminance change based on the images continuously obtained by the rolling shutter method. [Figure 10] This is a diagram for exemplarily explaining the set value of the exposure time (shutter speed) in the first pattern of a plurality of imaging periods for flicker detection according to the first embodiment of the present invention. [Figure 11] This is a diagram for exemplarily explaining the set value of the exposure time (shutter speed) in the second pattern of a plurality of imaging periods for flicker detection according to the first embodiment of the present invention. [Figure 12] This is a flowchart related to the exposure time determination process for flicker reduction according to the first embodiment of the present invention. [Figure 13] This is a diagram for exemplarily explaining the method for setting the ideal flicker reduction exposure time when flicker that changes at a predetermined light amount change frequency according to the present invention occurs. [Figure 14] This is a flowchart related to the shutter speed selection process according to the first embodiment of the present invention. [Figure 15] This is a diagram for exemplarily explaining the relative relationship between the shutter speed selected by the shutter speed selection process according to the first embodiment of the present invention and the ideal shutter speed for reducing the influence of flicker. [Figure 16] This is a diagram for exemplarily explaining the notification image displayed on the display unit 102 by the display process according to the first embodiment of the present invention. [Figure 17] This is a diagram for exemplarily explaining the notification image when no flicker is detected by the display process according to the first embodiment of the present invention. [Figure 18]This figure illustrates an example of a notification image displayed on the display unit 102 by the display processing according to the second embodiment of the present invention. [Figure 19] This figure illustrates an illustrative screen showing the transition to the flicker reduction process during live view display according to the third embodiment of the present invention. [Figure 20] This figure exemplifies a method for sampling captured images based on images continuously obtained using a rolling shutter technique. [Figure 21] This diagram illustrates the change in flicker level when multiple sampling periods are mixed. [Figure 22] This figure illustrates an example of shifting the image acquisition period of the captured image used for flicker detection, as explained in Figure 5, to a faster speed. [Figure 23] This figure illustrates an example of shifting the image acquisition period of the captured image used for flicker detection, as explained in Figure 6, to a faster speed. [Modes for carrying out the invention]
[0013] (First Embodiment) (Basic configuration of the imaging device) Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. Figure 1 is a block diagram illustrating the configuration of a camera body 100, a lens unit 200, and a light-emitting device 300, which are embodiments of an imaging device implementing the present invention. One or more of the functional blocks shown in Figure 1 may be implemented by hardware such as an ASIC or a programmable logic array (PLA). Alternatively, they may be implemented by a programmable processor (microprocessor, microcomputer) such as a CPU or MPU executing software. Furthermore, they may be implemented by a combination of software and hardware.
[0014] Therefore, even if different functional blocks are described as the main operating entities in the following explanation, the same hardware can be the main implementing entity.
[0015] First, let's explain the various parts that make up the camera body 100. The camera body 100 is equipped with a frame memory (not shown), which functions as a memory unit that can temporarily store signals (video signals) and read them out when needed. Generally, frame memory is also called RAM, and in recent years, DDR3-SDRAM (DUAL DATA RATE 3 - SYNCHRONOUS DYNAMIC RAM) is often used. Various processing becomes possible by using this frame memory.
[0016] The image sensor 101 is an imaging means that uses a charge-accumulating solid-state image sensor such as a CMOS or CCD, which can receive the light beam of a subject guided into the camera body 100 via the lens unit 200 and convert it into an electrical image signal. The image (signal) obtained using the image sensor 101 through drive control by the CPU 103, described later, is handled as various image signals such as live view display, flicker detection, and recorded images. Since the electrical signal obtained by the image sensor 101 is an analog value, it also has a function to convert it to a digital value. Furthermore, an evaluation value (photometric value) related to the brightness of the subject can be detected based on the image signal output from the image sensor 101. In addition, the exposure time of the image sensor 101 can be controlled according to the shutter speed, which can be set as an exposure control value related to the image sensor 101.
[0017] The mechanical shutter 104 is an oblique light means that can travel in a direction parallel to the signal scanning direction of the image sensor 101. The exposure time of the image sensor 101 can be controlled by adjusting the exposure aperture formed by the multiple shutter blades of the mechanical shutter according to the shutter speed described above. The adjustment of the exposure time according to the present invention can be achieved by using or using in combination the so-called electronic shutter, which is achieved by adjusting the signal reset and readout timing of the image sensor 101, and the mechanical shutter 104.
[0018] The display unit 102 is a display device that can be viewed by the user, allowing them to check the operating status of the camera body 100. For example, the display unit 102 displays images processed based on the image signal of the subject, or setting menus. However, an LCD (Liquid Crystal Display) or an organic EL (Organic Electroluminescence) may also be used as the display unit 102. By displaying the image acquired by the image sensor 101 and setting conditions such as exposure control values on the display unit 102 in real time while capturing the subject, it is possible to perform so-called live view display. In this embodiment, the display unit 102 is equipped with a thin-film element such as a resistive or capacitive touch panel, and also serves as an operation unit that the user can operate by touch.
[0019] The CPU 103 is a control means capable of comprehensively controlling the camera body 100 and the accessories attached to the camera body 100. The CPU 103 is connected to ROM (READ ONLY MEMORY) and RAM (RANDOM ACCESS MEMORY). ROM (not shown) is a non-volatile recording element that stores programs for operating the CPU 103 and various adjustment parameters. Programs read from ROM are loaded into volatile RAM (not shown) and executed. Generally, RAM uses slower, lower-capacity elements compared to frame memory (not shown).
[0020] Next, the details of the lens unit 200 will be described. The lens unit 200 is an accessory that can be attached to the camera body 100 and is a so-called interchangeable lens equipped with a lens group 201, including a focus lens, a zoom lens, and a shift lens. For example, the focusing lens in the lens group 201 can adjust the focus on the subject by adjusting the lens position in the direction of the optical axis of the lens.
[0021] The aperture 202 is a light intensity adjustment member for adjusting the amount of light related to the light beam of a subject guided into the camera body 100 via the lens unit 200. In this embodiment, the amount of light can be adjusted by adjusting the aperture diameter of the aperture 202, and this is achieved by changing the aperture value as an exposure control value related to the aperture diameter.
[0022] The LPU203 is a control means for controlling various parts of the lens unit 200, and can, for example, control the drive of the lens group 201 and the aperture 202. The LPU203 is connected to the CPU 103 of the camera body 100 via a group of terminals (not shown), and can drive various parts of the lens unit 200 in response to control instructions from the CPU 103.
[0023] Next, the details of the light-emitting device 300 will be described. The light-emitting device 300 is an external light-emitting device that can be attached to and detached from the camera body 100 via a connection part (not shown) provided on the camera body 100. The SPU 301 is a control means that controls each part of the light-emitting device 300, and is mainly capable of controlling the light emission and communication with the camera body 100. The SPU 301 is connected to the CPU 103 of the camera body 100 via a group of contacts (not shown), and can drive each part of the light-emitting device 300 in response to control instructions from the CPU 103.
[0024] Although the various parts of the imaging device according to the first embodiment of the present invention have been described above, the present invention is not limited to the above-described configuration. For example, the camera body 100 may have a configuration that incorporates devices corresponding to the lens unit 200 and the light-emitting device 300.
[0025] (How to set the shutter speed) Next, using Figure 2, we will specifically explain how to set the shutter speed, which is an exposure control value for controlling the exposure time of the image sensor 101 according to this embodiment. Figure 2 is a diagram illustrating an example of the shutter speed setting (index) table according to the present invention.
[0026] Generally, it is known that shutter speed can be changed in increments of 1 / 2 or 1 / 3 of a stop of light intensity. However, in this embodiment, in order to address the flicker that occurs under LED light sources that periodically flicker at various frequencies, the shutter speed can be adjusted in finer increments. Specifically, in this embodiment, the shutter speed can be adjusted in increments of 1 / 4 stop from 1 / 8192.0 to 1 / 4871.0, and in increments of 1 / 8 stop from 1 / 4096.0 to 1 / 2233.4. Furthermore, the shutter speed can be set in increments of 1 / 16 stop from 1 / 2048.0 to 1 / 1069.3, and in increments of 1 / 32 stop from 1 / 1024.0 to 1 / 523.2. In addition, the shutter speed can be adjusted in increments of 1 / 64 stop from 1 / 512.0 to 1 / 258.8, in increments of 1 / 128 stop from 1 / 256.0 to 1 / 128.7, and in increments of 1 / 256 stop from 1 / 128.0 to 1 / 50.0.
[0027] Note that in the table shown in Figure 2, some shutter speeds have been omitted for readability. Furthermore, the index values in the table shown in Figure 2 are used in the shutter speed selection process to reduce flicker, which will be described later.
[0028] Furthermore, in the camera body 100 according to this embodiment, the electronic shutter is used preferentially in order to allow users to freely set shutter speeds ranging from high speeds shorter than 1 / 8000 second as described above to slower shutter speeds longer than 1 / 50 second (not shown). The shutter method (use of the electronic shutter and mechanical shutter 104 individually or in combination) can be changed at any time by the user, for example, through manual operation via the menu screen displayed on the display unit 102.
[0029] (Flicker reduction processing) Next, the flicker reduction process according to this embodiment will be explained with reference to the flowchart shown in Figure 3. Figure 3 is a flowchart of the flicker reduction process according to the first embodiment of the present invention.
[0030] First, flicker reduction processing is initiated in response to a predetermined operation, such as manual operation by the user based on a menu displayed on the display unit 102 or the like. In this embodiment, the flicker reduction processing is a process that controls the display to prevent unevenness caused by flicker from occurring in moving images such as live view displays by setting a shutter speed (i.e., exposure time) that reduces the effect of the detected flicker. The flicker reduction processing according to the present invention is not limited to this, and for example, in addition to adjusting the shutter speed, a configuration that applies a gain to the image to reduce unevenness may also be used as a method for reducing flicker.
[0031] When the flicker reduction process is started, in step S301 the CPU 103 repeats the process in S301 until the flicker detection process (detection process) is started. If it is determined in step S301 that detection has started, in step S302 the CPU 103 executes the flicker detection process. Details of the flicker detection process will be described later.
[0032] Next, in step S303, the CPU 103 determines whether or not flicker is occurring based on the processing result of step S302. If it is determined in step S303 that flicker has been detected, the process proceeds to step S304; otherwise, the process proceeds to step 306. Flicker detection is defined as the occurrence of flicker above a predetermined level. The method for calculating the flicker level will be described later.
[0033] In step S304, the CPU 103 determines an exposure time (shutter speed) that reduces the effect of the previously detected flicker (flicker reduction exposure time determination process). Details of the flicker reduction exposure time determination process will be described later.
[0034] Next, in step S305, the CPU 103 performs a shutter speed selection process to select an arbitrary shutter speed capable of reducing the effects of flicker, based on the information regarding the exposure time suitable for reducing flicker, which was determined in step S304. Details of this shutter speed selection process will be described later.
[0035] In step S306, the CPU 103 performs a display process that shows the results of the processing in steps S304 and S305, including the flicker detection result (whether or not flicker was detected) and selectable values for shutter speeds that can reduce the effects of flicker. Details of this display process will be described later. Through the flicker reduction process described above, an image with reduced flicker effects can be obtained regardless of the flicker frequency, and image display and recording based on this image become possible.
[0036] (Flicker detection process) Next, with reference to Figure 4, the flicker detection process (flicker detection processing) according to this embodiment will be described. As mentioned above, unlike light sources such as fluorescent lamps, LED light sources control the drive current with a rectifier circuit, so changes in light intensity (flickering), i.e., flicker, occur at a period different from the power supply frequency used to drive the light source. Therefore, when detecting flicker caused by light sources such as LEDs, it is not possible to narrow down the frequency to be detected to a specific value, as is the case with the drive power supply frequency, so it is necessary to analyze whether or not flicker occurs over a wide range of frequencies.
[0037] On the other hand, when the frequency of the flicker's light intensity change (the blinking period of the light source) matches or is an integer multiple of the imaging period when continuously imaging a subject (hereinafter referred to as synchronization), changes in light intensity (blinking) between continuously obtained images are suppressed. In this case, for example, in live view display where images are displayed continuously, no degradation in image quality such as unevenness caused by flicker occurs, but still images acquired by imaging at an arbitrary shutter speed may have exposure unevenness caused by flicker. Furthermore, even if the imaging frame rate for live view display images matches the frequency of the flicker's light intensity change, if video for recording is acquired at a different frame rate, there is a risk that the video may have exposure unevenness or brightness fluctuations caused by flicker.
[0038] Here, a known method for identifying the frequency of light intensity changes in flicker is to detect and compare the difference in light intensity (brightness and darkness) in images obtained by continuous imaging. Therefore, when using this method to identify the frequency of light intensity changes in flicker, it is necessary to adjust the imaging period (frame rate) so that it does not synchronize with the frequency of light intensity changes in flicker.
[0039] Therefore, in this embodiment, the presence or absence of flicker is detected by analyzing the frequency of the flicker's light intensity change over multiple imaging cycles. By analyzing the flicker's light intensity change frequency over multiple frequencies, it is possible to avoid the synchronization of the flicker's light intensity change frequency and the imaging cycle, and thus enable effective detection processing for flicker across a wide range of frequencies.
[0040] Figure 4 is a flowchart relating to the flicker detection process according to the first embodiment of the present invention. As shown in Figure 4, in step S401, the CPU 103 performs a photometric calculation of the subject to determine the exposure when the subject is imaged for the flicker detection process (subject photometric). Any method can be used for the photometric calculation. For example, in this embodiment, an evaluation value is obtained based on the average value of the image signal obtained by accumulating charge for photometric calculation using the image sensor 101. Then, the CPU 103 determines the representative luminance (photometric value) of the subject as a photometric result based on the obtained evaluation value. In this case, as a method for calculating the photometric value, the field of view corresponding to the image signal is divided into multiple blocks, the average value of the signal output from the corresponding pixel is obtained for each block, and the photometric value (representative luminance) is calculated by adding the average values obtained for each block together. The unit of the photometric value is 1 BV in the so-called APEX (ADDITIVE SYSTEM OF PHOTOGRAPHIC EXPOSURE) system, which is one step of the luminance value, but other units can also be used.
[0041] Next, in step S402, the CPU 103 adjusts the imaging period to the imaging period (non-frame rate) for flicker detection. Details on how to adjust the imaging period for flicker detection will be described later.
[0042] Next, in step S403, the CPU 103 determines an exposure control value (changes the exposure) based on the previously obtained photometric value. The exposure control value in this embodiment is the shutter speed (i.e., storage time), aperture value, and shooting sensitivity (ISO sensitivity), which are parameters that can adjust the brightness of the image obtained by imaging the subject. The determined exposure control value is stored in the RAM mentioned above, and the exposure of the camera body 100 is changed, and the acquisition of an image for flicker detection begins.
[0043] Next, in step S404, the CPU 103 determines whether there is a change in brightness in the acquired image (i.e., whether or not flicker is occurring). As mentioned above, if the flashing cycle of the light source and the imaging cycle of the subject are synchronized, flicker cannot be detected correctly, so the presence or absence of a change in brightness is determined based on the acquired image. If it is determined that no change in brightness has occurred in the acquired image, the detection operation at the current frame rate (imaging cycle) is skipped, assuming that the imaging cycle and the frequency of the light intensity change of the flicker related to the subject are synchronized, or that no flicker is occurring.
[0044] If a change in brightness is detected in the acquired image (YES in step s404), the CPU 103 analyzes (detects) the presence or absence of flicker at multiple different frequencies in step S405. Details of the method for detecting flicker at multiple frequencies in step S405 will be described later.
[0045] Next, in step S406, the CPU 103 determines whether detection has been completed for a predetermined number (n) imaging cycles. If it is determined that detection has not been completed for the predetermined number of imaging cycles (NO in step S406), the process returns to step S402, the imaging cycle (frame rate) is changed, and the processing from S403 onwards is repeated.
[0046] If it is determined that detection has been completed for a predetermined number of imaging cycles (YES in step S406), in step S407 the CPU 103 identifies the flicker frequency of the subject based on the detection results up to step S405. In the processing of step S407, the presence or absence of flicker at multiple different frequencies at multiple imaging cycles (frame rates) has already been detected.
[0047] Therefore, the flicker levels detected for each frequency are compared, and the flicker at the frequency with the highest level is identified as the flicker of the currently occurring subject, and this is the final detection result. In this embodiment, the magnitude of the light intensity change (the amplitude of the curve showing the regular change in light intensity) is compared as the flicker level, but this is not the only method. For example, a configuration that compares the degree of stability of the light intensity change, in addition to the flicker level, may also be adopted.
[0048] Here, we will specifically explain the imaging period (frame rate) for flicker detection mentioned above. As previously stated, the camera body 100 according to this embodiment performs flicker detection processing at multiple imaging periods. For example, consider the case where the imaging period is switched between 100fps and 120fps to detect the frequency of light intensity change of the flicker. In this case, for flicker whose light intensity changes at a period of k (k is a natural number) × 100Hz, such as 100Hz, 200Hz, 300Hz, which are integer multiples of the imaging period of 100fps, the imaging period and the frequency of light intensity change of the flicker are synchronized, and the flicker cannot be detected correctly. On the other hand, consider the case where the frequency of light intensity change of the flicker is detected at an imaging period of 120fps. In this case, for flicker whose light intensity changes at a period of m (m is a natural number) × 120Hz, such as 120Hz, 240Hz, 360Hz, which are integer multiples of the imaging period of 120fps, the imaging period and the frequency of light intensity change of the flicker are synchronized, and the flicker cannot be detected correctly. Note that 600Hz and 1200Hz, which satisfy both the conditions k × 100Hz (where k is a natural number) and m × 120Hz (where m is a natural number), are the least common multiples of 100Hz and 120Hz. When flicker occurs with light intensity changes at such frequencies, the frequency of the flicker's light intensity changes synchronizes with both imaging periods of 100fps and 120fps, making it impossible to correctly detect the flicker regardless of which imaging period is used to obtain the image.
[0049] For example, in light sources with rectifier circuits, such as LED light sources, the adjusted power supply frequency is generally within the range of 50Hz to 1000Hz. Therefore, even if the aforementioned 600Hz light intensity change frequency flicker occurs, it can still occur with LED light sources, but depending on the imaging period, the flicker may not be detected correctly. In other words, even if flicker detection is performed using images acquired with two different imaging periods, there are frequencies within the wide range of flicker frequencies that can occur with LED light sources that cannot be detected correctly.
[0050] In the example above, we described flicker that changes at a frequency that perfectly matches an integer multiple of the imaging period (frame rate). However, even if the frequency does not match an integer multiple of the imaging period, the accuracy of flicker detection may decrease. For example, for flicker that changes at a frequency close to an integer multiple of the imaging period used to acquire the image for flicker detection, the influence of exposure unevenness in the image is small, which may result in longer detection times or even failure to detect the flicker correctly.
[0051] Therefore, in this embodiment, in order to effectively detect flicker of a wide range of frequencies that may occur under an LED light source, the number n of multiple imaging periods (frame rates) used during flicker detection is adjusted to satisfy the condition that "n ≥ 3 (n) is a natural number". In other words, flicker detection is performed with n or more imaging periods, which are natural numbers of 3 or greater.
[0052] Furthermore, as the frequency of the light intensity change of the flicker to be detected increases, increasing the number of imaging cycles n used for detection allows for more accurate detection of the flicker's light intensity change frequency. However, increasing the number of imaging cycles used for flicker detection may extend the period involved in flicker detection, and it is necessary to consider the resulting decrease in release time lag and the display frame rate of the live view image. Therefore, in this embodiment, the number of imaging cycles used for flicker detection is set to n=3, which is the sampling number that can effectively detect flicker that may occur in light sources that are commonly used, such as LED light sources.
[0053] Next, we will explain how to select specific numerical values for each of the n imaging periods.
[0054] In this embodiment, a reference imaging period is first set. For example, let's assume a reference imaging period of 100 fps. The frequency of light intensity change of flicker synchronized with an imaging period of 100 fps is an integer multiple of 100 Hz, and if flicker of this light intensity change frequency occurs, the flicker cannot be detected correctly.
[0055] Furthermore, the same problems occur when sampling at an imaging period of 200fps, which is twice the reference imaging period of 100fps. In other words, if an integer multiple of the imaging period required to obtain the image for flicker detection coincides with an integer multiple of the frequency of the flicker's light intensity change, the imaging period and the light intensity change frequency become synchronized, making it impossible to correctly detect flicker based on the image acquired for sampling.
[0056] Therefore, in this embodiment, as n imaging periods (n=3 in this embodiment), the remaining n-1 (2 in this embodiment) imaging periods are set between the reference imaging period and the next imaging period that is an integer multiple of the reference imaging period. For example, when detecting flicker with 3 imaging periods and a reference imaging period of 100fps, the remaining imaging periods for detecting flicker are set between 100fps and 200fps, in addition to 100fps. In this embodiment, each imaging period (frequency) is set such that the least common multiple of the n imaging periods is greater than or equal to a predetermined frequency. For example, since the flickering frequency of an LED light source is generally 10000Hz or less, the frequency of each imaging period is determined as a predetermined frequency such that the least common multiple of the n imaging periods (frame rates) is 10000 or more. Furthermore, in order to reduce the effects of flicker in the camera body 100, each imaging period (frequency) is set such that the least common multiple of n imaging periods is greater than the reciprocal of the upper limit of the high-speed shutter speed that the camera body 100 can set. With this configuration, it is possible to effectively detect flicker generated by light sources that change in light intensity at high frequencies (e.g., 200 Hz or higher), such as LED light sources, and to reduce the effects of the detected flicker by adjusting the shutter speed.
[0057] Figure 5 is a diagram illustrating an illustrative method for selecting multiple imaging periods when detecting flicker according to the first embodiment of the present invention. In order to accurately detect the light intensity change frequency of the flicker, by spacing out the imaging periods as much as possible, it is possible to ensure a difference between any of the multiple imaging periods and the light intensity change frequency of the flicker to be detected (the blinking period of the light source) to a degree that allows for good detection of the flicker. Therefore, in this embodiment, as shown in Figure 5(a), in order to divide the range of imaging periods to be detected (100fps to 200fps) into predetermined intervals, imaging periods are set that are separated by 1 / 3 of each imaging period 2 to detect the flicker.
[0058] Specifically, in this embodiment, as shown in Figure 5(a), the three imaging periods are set to a reference imaging period of 100 fps, 100 fps × 2^(1 / 3) = 125.99 fps ≈ 126 fps, and 100 fps × 2^(2 / 3) = 158.74 fps ≈ 159 fps. Since these three imaging periods differ by 2^(1 / 3) = 1.2599 ≈ 1.26 times each, each imaging period differs by approximately 26%. With this configuration, even when flicker detection is performed by dividing a wide frequency range of 50 to over 1000 Hz into multiple ranges, the frequency of each range does not deviate significantly from the frequency to be detected. Furthermore, at least one of the imaging periods can be sufficiently differentiated from the frequency of light intensity change of the flicker to be detected. In other words, when setting n imaging periods and detecting flicker at each imaging period, the decrease in detection accuracy for each frequency of the target can be suppressed by setting each imaging period to a multiple of 2 (1 / n).
[0059] Figure 5(b) is a diagram illustrating the correspondence between n imaging periods and the light intensity change frequencies of the flicker to be detected. In this embodiment, flicker is detected based on the image obtained from the imaging period that has the frequency furthest from the light intensity change frequency of the flicker to be detected among the n imaging periods. Specifically, in this embodiment, as shown in Figure 5(b), flicker detection is performed based on a data table that divides the light intensity change frequencies of flicker from 50 Hz to 1008 Hz into ranges (A) to (P) for the three imaging periods shown in Figure 5(a).
[0060] In this embodiment, the subject is imaged at a shutter speed that is the reciprocal of the flicker's light intensity change frequency, thereby setting an imaging period synchronized with the flicker's light intensity change frequency and reducing the effect of flicker. Therefore, if there is a discrepancy between the ideal shutter speed synchronized with the flicker's light intensity change frequency and the actual shutter speed, the effect of flicker on the image (such as uneven exposure) is greater at slower shutter speeds than at faster shutter speeds. For example, consider the case where shutter speeds of 1 / 101 second and 1 / 1001 second are set for flicker with light intensity change frequencies of 100 Hz and 1000 Hz, respectively, resulting in a 1 Hz discrepancy from the ideal shutter speed for reducing the effect of flicker. In both cases, there is a 1 Hz discrepancy between the shutter speed that can reduce the effect of flicker and the actual shutter speed, but the discrepancy is 1% at a shutter speed of 1 / 100 second, while it is 0.1% at a shutter speed of 1 / 1000 second. In other words, the effect of flicker on the image is smaller for a 1 Hz change in shutter speed at faster shutter speeds. However, when the shutter speed is long, the period for capturing light intensity changes caused by flicker becomes longer, increasing the likelihood of obtaining an image with smoothed light intensity changes. Therefore, when detecting flicker with light intensity change frequencies that are reduced by shutter speeds above a predetermined value (for example, long exposures of 1 / 25 second or longer), the detection range in the low-frequency region of the flicker may be appropriately adjusted and widened.
[0061] Therefore, in this embodiment, as shown in Figure 5(b), the range of the light intensity change frequency of the flicker to be detected is divided into multiple ranges, and the detection range is set such that the frequency of each of these consecutive ranges differs by 2^(1 / 3) = 1.26 times. For example, while the range (N) shown in Figure 5(b) is 159~200Hz, the next range (C) is a detection range for flicker in the 200~252Hz range, which is approximately 1.26 times that of range (N).
[0062] As shown in Figure 5(b), the range of flicker light intensity change frequencies that can be detected for the same imaging period differs by approximately a factor of two within a continuous range. For example, the detection target frequencies for ranges (A), (B), and (c) shown in Figure 5(b), where 159 fps corresponds to the imaging period, ranges from 50 Hz, 100 Hz, and 200 Hz to 63 Hz, 126 Hz, and 252 Hz, respectively. This is because the change in light intensity due to flicker is the same at integer multiples of each frequency, and with the above configuration, the imaging device according to this embodiment can detect a wide range of frequency flicker with stable accuracy.
[0063] In this embodiment, the imaging period for detecting flicker is configured such that each imaging period differs by a factor of m^(1 / n) (where m and n are natural numbers). Although m=2 was used in the above explanation, it is not limited to this value. For example, the imaging period may be set to m=3. In this case, the difference between imaging periods will be larger, and the detection accuracy for the light intensity change frequency of the flicker being detected may be lower than when m=2. However, when detecting within the same frequency range, m=3 can shorten the detection time compared to m=2, making it suitable for detecting a wider range of flicker light intensity change frequencies.
[0064] Here, a method for selecting n imaging periods, different from the method described above (a modified version), will be explained with reference to Figure 6. Figure 6 is a diagram illustrating a modified version of the method for selecting multiple imaging periods when detecting flicker according to the first embodiment of the present invention. The difference between this modified version and the example described above with reference to Figure 5 is the method for setting n imaging periods with respect to the range of imaging periods to be detected.
[0065] In this modified example, as shown in Figure 6(a), multiple imaging periods are set by equally dividing the range of imaging periods to be detected. That is, if the range of imaging periods for flicker detection (100fps to 200fps) is set as 100%, then n imaging periods are set to differ by 33% and 66% respectively from the reference imaging period of 100fps. Specifically, the three imaging periods are set to a reference imaging period of 100fps, 100fps × 1.333 = 133.333...fps ≈ 133fps, and 100fps × 1.666 = 166.666fps ≈ 167fps.
[0066] Furthermore, the differences in the three imaging periods mentioned above are 133.333 / 100 = 1.33333, 166.666 / 133.33 = 1.25, and 200 / 166.666 = 1.2, indicating that each imaging period is more than 20% apart.
[0067] Figure 6(b) is a diagram illustrating the correspondence between the light intensity change frequencies of the flicker to be detected and the n imaging periods shown in Figure 6(a). As shown in Figure 6(b), in this modified example, as in Figure 5(b) described above, the flicker is detected based on the image obtained using the imaging period that has the frequency furthest from the light intensity change frequency of the flicker to be detected among the n imaging periods.
[0068] Here, we will explain the differences between multiple imaging periods used for flicker detection. As mentioned above, when considering the number of imaging periods used for flicker detection, the difference between each imaging period decreases as the number increases, but the time required for sampling increases. Therefore, in order to accurately detect flicker in a short period of time, it is preferable to have as large a difference between each imaging period as possible, while keeping the number of imaging periods used for sampling to a minimum, within a range where a wide range of flicker light intensity change frequencies can be detected.
[0069] As explained with reference to Figure 5, we will describe the case where the period from the reference imaging period to twice the reference imaging period is defined as 100%, and this period is divided into 2 to the power of 1 / n. In this case, multiple imaging periods for flicker detection differ at intervals shown in the following equation (1). {2^(1 / n)-1}×100[%] (Formula 1)
[0070] Furthermore, we consider the case where the period from the reference imaging period to twice the reference imaging period is defined as 100%, and the period within that range differs by 100 / n[%], as explained with reference to Figure 6.
[0071] As calculated for n=3, the smallest difference is found between an imaging period 100% × (n-1) / n away from the reference imaging period and an imaging period twice the reference imaging period. This difference is [200 / {100+{(100×(n-1) / n}-1] × 100[%] = {200n / (200n-100)-1} [%] = {2n / (2n-1)-1}×100[%] = {1 / (2n-1)}×100[%] This can be calculated as (Equation 2). That is, if each imaging period differs by 100 / n[%], the multiple imaging periods (frame rates) used for flicker detection will differ from each other by at least a ratio of [{2n / (2n-1)-1}] × 100% or more. In the camera body 100 according to the first embodiment of the present invention, the multiple imaging periods (frame rates) used for flicker detection will differ from each other by at least a difference of [{2n / (2n-1)}-1] × 100% or more. This also includes the case described above where the period from the reference imaging period to twice the reference imaging period is taken as 100%, and that period is divided into 2 to the power of 1 / n.
[0072] Here, based on equations 1 and 2 described above, the relationship between the method for determining each imaging period and the difference in the number of imaging periods is shown in Figure 7. Figure 7 is a diagram (graph) illustrating the relationship between the method for determining each imaging period for flicker detection and the number of imaging periods according to this embodiment. As shown in Figure 7, the difference for each imaging period corresponding to the difference in the number of imaging periods n is smaller for equation 2, which is shown as a solid line in the figure, than for equation 1, which is shown as a dashed line. This condition is also true when considering an even larger number of imaging periods n, which is not shown in Figure 7. In other words, although two different methods for determining imaging periods were described in the example above, it can be seen that in both methods, the difference for each imaging period is greater than the value obtained by equation 2. Two examples of imaging periods for flicker detection have been described above, but the imaging periods for flicker detection are not limited to these. As long as the imaging device according to the present invention can accurately detect flicker, it is sufficient that the least common multiple of the n imaging periods (frame rates), which are three or more distinct natural numbers, does not include any of the n imaging periods. For example, even if 50Hz, 150Hz, 300Hz, etc., are set as imaging periods for flicker detection, the brightness change in the image obtained at each imaging period does not change over the same period, so flicker cannot be detected correctly. In the imaging device of this embodiment, it is preferable that each imaging period for flicker detection has a high rate of 100fps or more, and that the least common multiple of each imaging period does not fall below 10,000Hz, which is a frequency that can be used as the flickering frequency of a light source such as an LED.
[0073] Next, we will explain in detail the process of analyzing (detecting) the presence or absence of flicker at multiple different frequencies in step S405 described above. In the imaging device according to this embodiment, changes in brightness over time are extracted based on the brightness of the continuously acquired images, and the frequency of the light intensity change of the flicker is detected by analyzing the periodicity of the brightness change. Note that the brightness changes that occur in the image differ depending on the image acquisition method used for detection. For example, the brightness changes in the image differ when imaging a subject with a so-called global shutter method such as a CCD compared to when imaging a subject with a so-called rolling shutter method such as a CMOS. The following will explain how brightness changes when acquiring images with each of the above methods.
[0074] First, let's explain the brightness change in an image obtained using the global shutter method, referring to Figure 8. Figure 8 is a diagram illustrating the brightness change based on images continuously obtained using the global shutter method. When a subject is imaged that is affected by the flickering of a light source due to flicker, the resulting image is affected by the intensity of the light source's flickering. When the brightness of the entire image is measured, the resulting photometric value is affected by the intensity of the light source's flickering.
[0075] In this explanation, luminance may refer to the luminance signal calculated by multiplying the R·G1·G2·B signals in a RAW image of a Bayer array by a certain coefficient, or it may refer to the color signals of the R·G1·G2·B signals themselves. It may also refer to color signals and luminance signals obtained from sensor arrays other than Bayer arrays.
[0076] Then, using the captured images obtained by the method described above, the difference or ratio of the brightness (photometric values) of multiple consecutive images is calculated. Alternatively, the difference / ratio of the brightness of each image relative to the reference image is calculated using an average image of multiple images. By plotting the brightness changes for each image obtained in this way, it is possible to detect the changes in the brightness of the images as shown in Figure 8.
[0077] Next, with reference to Figure 9, we will explain the brightness changes in images obtained using the rolling shutter method. Figure 9 is a diagram illustrating the brightness changes based on images continuously obtained using the rolling shutter method. When driving the sensor with the rolling shutter method, the exposure and readout timing differs for each row (line) of the sensor. Therefore, the effect of the flickering of the light source caused by flicker differs for each row (line), resulting in different brightness changes in the vertical direction of the image.
[0078] Therefore, when driving the sensor (image sensor 101 in this embodiment) using a rolling shutter method, changes in brightness due to the flickering of a light source can be extracted by acquiring an integral value for each row (line) of the captured image. Specifically, as shown in Figure 9, the brightness change of the same line in the N-1th and Nth consecutive frames of an image obtained by continuously capturing a subject is extracted. In this case, an integral value is calculated for each row of the captured image corresponding to the Nth and N-1th frames. As mentioned above regarding the global shutter method, this integral value may be a brightness signal obtained by multiplying the color signal by a certain ratio, or it may be the integral of the color signal itself. By comparing these integral values of the Nth and N-1st frames row by row and calculating the difference / ratio, it is possible to detect changes in brightness in the vertical direction of the captured image (i.e., the scanning direction of the sensor), as shown in Figure 9.
[0079] Note that the frames used for comparison do not necessarily have to be two consecutive frames. For example, the signal values of multiple captured images can be averaged to obtain an average image, and this average image can be used as a reference image. The integral value for each line can then be compared with the integral value for each line in the Nth frame to calculate the vertical brightness change of the image.
[0080] By analyzing the images captured using the rolling shutter method as described above, it is possible to detect the changes in vertical brightness in the captured images, and these brightness changes represent the flickering of the light source (i.e., changes in the amount of flicker light).
[0081] Next, we will explain a method for analyzing the frequency of brightness changes from the progression of brightness changes in an image. A common method for converting a time-varying signal into frequency components is the Fourier transform. In this case, a time-varying signal f(t) is converted into a frequency function F(ω).
[0082]
number
[0083] In equation 3, focusing on the exponential function, it is generally known that the exponential function can be expanded into real and imaginary trigonometric functions due to the relationship between the Maclaurin series and the nth derivative of trigonometric functions (as shown in equation 4 below).
[0084]
number
[0085] Furthermore, by letting f(t) be the progression of the image signal and dt be the sampling interval for the progression of the signal, the integral can be calculated, and therefore Equation 4 can be expressed as Equation 5 below. F(ω) = A(ω) + j × B(ω) (Equation 5)
[0086] Since this is a complex function with respect to frequency ω, its magnitude is calculated as |F(ω)|. If the luminance change component due to frequency ω is included in the transition of the image's luminance change, |F(ω)| will be a large value, and if the luminance change component due to frequency ω is not included in the transition of the image's luminance change, |F(ω)| will be a small value. In other words, |F(ω)| can be considered as the flicker level for each frequency. Therefore, by calculating each frequency component using equation 5 described above for a wide range of frequencies to be detected, it is possible to detect the presence or absence of luminance changes due to the flickering of a light source (i.e., the frequency of light intensity changes of flicker) over a wide frequency range.
[0087] Furthermore, if the change in brightness does not include more than one cycle of the light source's flickering (one cycle of the flicker's light intensity change), the target frequency may not be detected properly and may be mistakenly detected as another frequency. Therefore, it is preferable to continue imaging the subject for more than one cycle period of the frequency to be detected and to detect each of the above frequencies (i.e., the flicker's light intensity change frequency) based on the image obtained from the imaging.
[0088] Next, we will specifically explain the exposure operation during flicker detection in step S403 mentioned above. As previously stated, if the imaging period when detecting flicker and the frequency of the light source's flickering (the frequency of the flicker's light intensity change) are synchronized, it is difficult to effectively detect flicker based on the sampled image. Furthermore, even if the exposure time (i.e., shutter speed) when imaging the subject is synchronized with the light source's flickering frequency, the image obtained in this state will not show an effective change in brightness, making it difficult to detect flicker.
[0089] Therefore, in this embodiment, when performing the flicker detection operation, the exposure time (shutter speed) is set to be synchronized with each imaging period so as not to be synchronized with frequencies other than each imaging period. In other words, when detecting flicker, it is preferable to image the subject with an exposure time (shutter speed) that is 1 / N (where N is an integer) of the detection imaging period (frame rate).
[0090] Figure 10 is a diagram illustrating, in part, the exposure time (shutter speed) settings in a first pattern of multiple imaging cycles for flicker detection according to the first embodiment of the present invention. For example, as mentioned above, if the multiple imaging cycles for flicker detection are 100fps, 126fps, and 159fps, the subject is imaged with the exposure time shown in Figure 10.
[0091] Figure 11 is a diagram illustrating, in part, the exposure time (shutter speed) settings in a second pattern of multiple imaging cycles for flicker detection according to the first embodiment of the present invention. For example, as mentioned above, if the multiple imaging cycles for flicker detection are 100fps, 133fps, and 167fps, the subject is imaged with the exposure time shown in Figure 11.
[0092] As illustrated in Figures 10 and 11, by acquiring an image for flicker detection with an exposure time that is 1 / N (where N is an integer) of the imaging period (frame rate) for flicker detection, it is possible to prevent synchronization between the exposure time and the frequency of light intensity changes of the flicker.
[0093] Furthermore, if the exposure conditions differ at each frequency of the flicker light intensity change, differences will occur in the detected flicker level, reducing the accuracy of detection. Therefore, in this embodiment, by performing the exposure operation in the multiple imaging cycles described above based on the photometric result in step S401, differences in exposure amount for each imaging cycle are suppressed, enabling stable detection of the flicker level.
[0094] By adopting the configuration described above, the imaging device according to this embodiment can stably and effectively detect flicker across a wide range of frequencies that can be considered as the frequency of light intensity changes for flicker.
[0095] Next, with reference to Figure 12, the details of the flicker reduction exposure time determination process performed in step S304 described above will be explained. Figure 12 is a flowchart relating to the flicker reduction exposure time determination process according to the first embodiment of the present invention. First, in step S1201, the CPU 103 reads the flicker light intensity change frequency detected by the flicker detection process performed in step S302 described above from memory.
[0096] Next, in step S1202, the CPU 103 calculates the ideal exposure time (IdealFlkExpTime) to reduce the effect of the detected flicker, based on the reciprocal of the flicker light intensity change frequency read in step S1201. For example, if the detected flicker light intensity change frequency is 540.0 Hz, then IdealFlkExpTime = 1 / 540.0.
[0097] Next, in step S1203, the CPU 103 obtains the currently set shutter speed (CurTv). The current shutter speed CurTv may be, for example, the shutter speed set manually by the user. In this embodiment, it is assumed that the shooting mode of the camera body 100 is set to manual mode in advance, and that all of the multiple exposure control values (parameters) are set manually by the user.
[0098] Next, in step S1204, the CPU 103 performs an initialization process to integer-multiply the ideal flicker reduction exposure time, IdealFlkExpTime. Specifically, in step S1204, the integer N is set to 1, and the information of the ideal flicker reduction exposure time, IdealFlkExpTime, before integer multiplication is stored as PreIdealFlkExpTime.
[0099] Next, in step S1205, the CPU 103 compares the currently set shutter speed CurTv, obtained in step S1203, with the ideal flicker reduction exposure time IdealFlkExpTime. If the value of CurTv is less than or equal to IdealFlkExpTime (i.e., the exposure time is short), the process proceeds to step S1207 (determined as YES in step S1205). On the other hand, if CurTv is greater than IdealFlkExpTime (i.e., the exposure time is long), the process proceeds to step S1206 (determined as NO in step S1205).
[0100] In step S1206, the CPU 103 stores the current ideal flicker reduction exposure time as the previous PreIdealFlkExpTime, increments the integer N by one, and then multiplies the ideal flicker reduction exposure time by an integer N. Specifically, in step S1206, IdealFlkExpTime is substituted for PreIdealFlkExpTime, N is incremented to N=N+1, and then IdealFlkExpTime is multiplied by an integer N. The process in step S1206 is repeated until the shutter speed currently set in step S1205 is less than or equal to the ideal flicker reduction exposure time (CurTv ≤ IdealFlkExpTime). In other words, the process in step S1206 is to bring the ideal flicker reduction exposure time, IdealFlkExpTime, as close as possible to the currently set shutter speed. As a result of this process, CurTv is located between IdealFlkExpTime and PreIdealFlkExpTime, so for example, the flicker reduction exposure time can be narrowed down to an exposure time close to the shutter speed set by the user.
[0101] Next, in step S1207, the CPU 103 compares the absolute difference between the values of IdealFlkExpTime and PreIdealFlkExpTime and CurTv. If the result in step S1207 is NO, the current flicker reduction exposure time determination process is terminated. This is because the currently set ideal flicker reduction exposure time, IdealFlkExpTime, is determined to be closer to the current shutter speed than PreIdealFlkExpTime.
[0102] Conversely, if the result in step S1207 is YES, it can be determined that the previously set ideal flicker reduction exposure time, PreIdealFlkExpTime, is closer to the current shutter speed than the currently set ideal flicker reduction exposure time. Therefore, in this case, the process proceeds to step S1208, where the CPU 103 replaces the previously set PreIdealFlkExpTime with the ideal flicker reduction exposure time, IdealFlkExpTime, and terminates the process of determining the current flicker reduction exposure time.
[0103] According to the flicker reduction exposure time determination process of this embodiment described above, for example, the exposure time (shutter speed) for reducing flicker can be determined at a value close to the shutter speed set by the user. With this configuration, for example, it is possible to obtain an image with reduced flicker effects while suppressing differences in the intended shooting effect caused by the user adjusting the shutter speed.
[0104] Figure 13 illustrates an example of how to set the ideal flicker reduction exposure time when flicker occurs that changes at a predetermined light intensity change frequency according to the present invention. Figure 13(a) shows, for example, a case where the shutter speed is set to 1 / 5792.6 by the user (CurTv=1 / 5792.6). Figure 13(b) shows, for example, a case where the shutter speed is set to 1 / 250.5 by the user (CurTv=1 / 250.5).
[0105] For example, if the detected flicker light intensity change frequency is 540.0 Hz, the ideal flicker reduction exposure time (IdealFlkExpTime) in the example shown in Figure 13(a) is 1 / 540.0. Also, for the same flicker light intensity change frequency, the ideal flicker reduction exposure time (IdealFlkExpTime) in the example shown in Figure 13(b) is 1 / 270.0. The flicker light intensity change is the same at integer multiples of the frequency. Therefore, even when imaging a subject at a shutter speed that is slower than the reciprocal of the flicker light intensity change frequency, and where the shutter speed is the reciprocal of an integer multiple of the flicker frequency, the effect of flicker can be reduced. Thus, if the shutter speed set by the user is less than or equal to the reciprocal of the detected flicker light intensity change frequency, the ideal flicker reduction exposure time should be the value among the reciprocals of integer multiples of the flicker frequency that has a small difference from the shutter speed set by the user.
[0106] Next, with reference to Figure 14, the details of the shutter speed selection process performed in step S305 described above will be explained. Figure 14 is a flowchart relating to the shutter speed selection process according to the first embodiment of the present invention. First, in step S1401, the CPU 103 performs an initialization process to select an arbitrary shutter speed from the shutter speed setting (index) table described above with reference to Figure 2. Specifically, in step S1401, the CPU 103 sets the configurable flicker reduction shutter speed (SetPosFlkTv) from the shutter speed setting table with index i=1. In this embodiment, as shown in Figure 2, when index i=1, SetPosFlkTv=1 / 8192.0.
[0107] Next, in step S1402, the CPU 103 increments index i in the shutter speed setting table by one. Then, in step S1403, the CPU 103 compares the absolute difference between SetPosFlkTv and shutter speed[i] in the shutter speed setting table with the aforementioned ideal flicker reduction exposure time, IdealFlkExpTime. If the difference between SetPosFlkTv and IdealFlkExpTime is less than or equal to the difference between shutter speed[i] and IdealFlkExpTime (determined as NO in step S1403), the process proceeds to step S1405.
[0108] On the other hand, if it is determined that the difference between SetPosFlkTv and IdealFlkExpTime is greater than the difference between shutter speed[i] and IdealFlkExpTime (determined as YES in step S1403), the process proceeds to step S1404. Then, in step S1404, the CPU 103 selects a configurable flicker reduction shutter speed based on the determination result in step S1403. Specifically, in step S1404, the CPU 103 sets the configurable flicker reduction shutter speed SetPosFlkTv to the shutter speed[i] corresponding to index i in the current shutter speed setting table, and proceeds to step S1405.
[0109] Next, in step S1405, the CPU 103 determines whether index i in the shutter speed setting table is greater than or equal to the maximum index. If the current index [i] is less than the maximum index (determined as NO in step S1405), the process returns to step S1402 and steps S1402 to S1405 are repeated. In this embodiment, the maximum index is 600, as shown in Figure 2. If it is determined in step 1405 that the current index [i] has reached the maximum index (step S1405 is YES), the current SetPosFlkTv is selected as the configurable flicker reduction shutter speed, and the shutter speed selection process ends.
[0110] In the example described above, the shutter speed selection process was performed on all indices accessible in the shutter speed setting table, but it is not limited to this. For example, in the flicker reduction exposure time determination process, if the currently set shutter speed CurTv is obtained, the settable flicker reduction shutter speeds may be determined by narrowing the scope to the vicinity of that CurTv. Specifically, if a particular value is recorded as the currently set shutter speed CurTv, the index corresponding to the shutter speed closest to CurTv is identified. Then, the difference between that index and the ideal flicker reduction exposure time is calculated for the shutter speeds corresponding to that index and other indices adjacent to it, and the shutter speed with the smallest difference is set as the settable flicker reduction shutter speed. This configuration is particularly effective when a specific shutter speed is set by the user. By adopting this configuration, the discrepancy with the shutter speed intended by the user is reduced, and the processing time and processing load related to the shutter speed selection process can be reduced by significantly reducing the number of indices used for comparison.
[0111] By performing the shutter speed selection process described above, the camera body 100 can select a shutter speed from among the settable shutter speeds that can effectively reduce the effects of pre-detected flicker. In other words, the camera body 100 of this embodiment can select (set) the shutter speed that is closest to the ideal shutter speed, IdealFlkExpTime, for reducing the effects of detected flicker, from among the settable shutter speeds.
[0112] Figure 15 is a diagram illustrating the relative relationship between the shutter speed selected by the shutter speed selection process according to the first embodiment of the present invention and the ideal shutter speed for reducing the effect of flicker. In Figure 15, it is assumed that the flicker light intensity change frequency is 540.0 Hz and the ideal flicker reduction exposure time, IdealFlkExpTime, is 1 / 540.0. Figure 15(a) shows the case where the shutter speed (CurTv) currently set by the user is 1 / 5792.6, and Figure 15(b) shows the case where the shutter speed (CurTv) currently set by the user is 1 / 250.5.
[0113] Here, in Figure 15(a), the difference between Tv=1 / 546.4, indicated by index 58 in the shutter speed setting table, and IdealFlkExpTime, Tv=1 / 540.0, is shown as Δ58. Also, in Figure 15(a), the difference between Tv=1 / 534.7, indicated by index 59 in the shutter speed setting table, and IdealFlkExpTime, Tv=1 / 540.0, is shown as Δ59. In the case shown in Figure 15(a), Δ59 < Δ58, so Tv=1 / 534.7 is selected as SetPosFlkTv by the shutter speed selection process described above.
[0114] Furthermore, in Figure 15(b), the difference between Tv=1 / 273.2, indicated by index 119 in the shutter speed setting table, and IdealFlkExpTime, Tv=1 / 270.0, is shown as Δ119. Also, in Figure 15(b), the difference between Tv=1 / 270.2, indicated by index 120 in the shutter speed setting table, and IdealFlkExpTime, Tv=1 / 270.0, is shown as Δ120. In the case shown in Figure 15(b), Δ120 < Δ119, so Tv=1 / 270.2 is selected as SetPosFlkTv by the shutter speed selection process described above.
[0115] As described above, the camera body 100 of this embodiment can effectively detect the frequency of light intensity changes of flicker occurring in the current shooting environment, and the ideal shutter speed (exposure time) that reduces the effects of the detected flicker, in the shortest possible time.
[0116] Furthermore, the camera body 100 of this embodiment can set a shutter speed that takes into account the currently set shutter speed by the user or the like as the ideal shutter speed for reducing the effects of flicker. Therefore, the camera body 100 of this embodiment can detect a shutter speed that can reduce the effects of flicker while minimizing any difference from the exposure conditions and shooting effects intended by the user.
[0117] Furthermore, the camera body 100 of this embodiment can automatically select (set) the shutter speed that is closest to the ideal shutter speed that can reduce the effects of flicker, among the shutter speeds that the camera body 100 can set. Therefore, the camera body 100 of this embodiment can automatically select (set) a shutter speed that can reduce the effects of flicker without requiring manual adjustment of the shutter speed by the user.
[0118] Next, with reference to Figures 16 and 17, the details of the display processing in step S306 described above according to the first embodiment of the present invention will be explained. Figure 16 is a diagram illustrating an example of a notification image displayed on the display unit 102 by the display processing according to the first embodiment of the present invention.
[0119] Of these, Figure 16(a) shows the case where a 540.0 Hz flicker is detected, with CurTv being 1 / 5792.6 and SetPosFlkTv being 1 / 534.7. Figure 16(b) shows the case where a 540.0 Hz flicker is detected, with CurTv being 1 / 250.5 and SetPosFlkTv being 1 / 270.2. Figure 17 is a diagram illustrating an example of a notification image when no flicker is detected by the display processing according to the first embodiment of the invention.
[0120] The detected flicker region 1601 displays information indicating the frequency of the light intensity change of the flicker detected based on the method described above (540.0 Hz in the illustrated example).
[0121] The selectable shutter speed area 1602 displays the configurable flicker reduction shutter speed SetPosFlkTv, which is determined based on the method described above (Figure 16(a) shows the case of 1 / 534.7, and Figure 16(b) shows the case of 1 / 250.5).
[0122] Currently, the shutter speed range 1603 displays the shutter speed currently set on the camera body 100, as determined by the user's manual settings (Figure 16(a) shows 1 / 5792.6, and Figure 16(b) shows 1 / 270.2).
[0123] The first user selection icon 1604 displays an option for users who do not agree to the change to the configurable flicker reduction shutter speed SetPosFlkTv shown on the notification screen. The second user selection icon 1605 displays an option for users who agree to the change to the configurable flicker reduction shutter speed SetPosFlkTv shown on the notification screen.
[0124] Furthermore, if the flicker detection process does not detect flicker above a predetermined level, a descriptive message 1701 indicating that no flicker was detected, and an icon 1702 allowing the user to input whether or not they want to confirm, will be displayed on the display unit 102, as shown in Figure 17.
[0125] As described above, when flicker of a predetermined light intensity change frequency is detected by the flicker detection process, various icons and text as shown in Figures 16(a) and (b) are displayed on the display unit 102, prompting the user to change the shutter speed. This configuration allows for easy setting of a shutter speed that can reduce the effects of flicker, while reducing the need for manual adjustment by the user to adjust the shutter speed to reduce the effects of flicker. Therefore, the camera body 100 according to the present invention can perform imaging with reduced flicker effects across a wide range of light intensity change frequencies, regardless of the light source, without requiring complex operations, and can reduce unevenness in images caused by flicker.
[0126] The methods for informing the user about the frequency of flicker light intensity changes and shutter speeds that can reduce the effects of flicker, as well as how to change the shutter speed, are not limited to those described above. For example, although the above example described the case where a notification image is displayed on the display unit 102, the notification image may also be displayed on other display devices or on external devices connected to the camera body 100. Furthermore, the method of notification is not limited to image display. Various notification means can be used as substitutes, such as voice guidance or changes in the illumination status or color of a lamp (not shown) provided on the camera body 100.
[0127] Furthermore, while the camera body 100 in this embodiment employs a method to confirm with the user whether or not to change to a configurable flicker-reducing shutter speed, it is not limited to this. For example, it may be configured to automatically change to a configurable flicker-reducing shutter speed without the user's consent, or it may be configured to determine whether or not to confirm with the user whether or not to change to a configurable flicker-reducing shutter speed depending on the shooting mode.
[0128] In this case, if the shooting mode is an auto mode in which the camera body 100 automatically determines each parameter related to exposure control, it is preferable for the camera body 100 to automatically set the flicker reduction shutter speed. On the other hand, if the shooting mode is a manual mode in which the user manually sets each parameter related to exposure control (exposure control value), it is preferable to adopt a method of confirming with the user whether or not to change the shutter speed, as in the example above.
[0129] Furthermore, while the camera body 100 according to this embodiment prioritizes the use of an electronic shutter as described above, it is not limited to this. For example, a configuration in which a mechanical shutter 104 is used to adjust the exposure time of the image sensor 101 according to an arbitrary shutter speed is also possible.
[0130] Furthermore, when using the mechanical shutter 104 to set a high shutter speed and image a subject, the timing of the mechanical shutter 104's movement relative to the ideal exposure time may be off due to changes in the physical characteristics of the mechanical shutter 104 or differences in the environment. In other words, if the shutter speed set as the configurable flicker reduction shutter speed SetPosFlkTv is high, it may not be possible to image the subject with an exposure time that can properly reduce the flicker effect.
[0131] Therefore, when adjusting the exposure time using the mechanical shutter 104, the configurable flicker reduction shutter speed SetPosFlkTv may be limited so that the shutter speed is greater than or equal to a predetermined speed. The predetermined speed (shutter speed) should be a value such that the difference (i.e., error) between the ideal exposure time and the timing of exposure and shading of the image sensor 101 by the driving of the mechanical shutter 104 falls within a predetermined range. In this embodiment, as an example, the predetermined shutter speed is set to 1 / 4000 second. In this case, the aforementioned shutter speed setting table can be used within the range excluding the index corresponding to shutter speeds of 1 / 4000 second or less, or the configurable flicker reduction shutter speed can be determined using new table data.
[0132] Furthermore, the camera body 100 in this embodiment may be configured to dynamically adjust whether to use an electronic shutter or a mechanical shutter 104 depending on the value of the configurable flicker reduction shutter speed SetPosFlkTv. For example, only the electronic shutter may be available when the shutter speed is faster than 1 / 4000 second, while both the electronic shutter and the mechanical shutter 104 may be available at other shutter speeds.
[0133] (Second Embodiment) In the first embodiment described above, a configuration was described in which only one configurable flicker reduction shutter speed was notified to the user. In contrast, in this embodiment, a configuration in which multiple options for configurable flicker reduction shutter speeds are notified to the user will be described with reference to Figure 18. Note that the configuration and basic driving method of the camera body 100, lens unit 200, and light-emitting device 300, which are imaging devices according to this embodiment, are substantially the same as those of the first embodiment described above, so the reference numerals for each part are the same and the description is omitted. The difference between this embodiment and the first embodiment described above is the display processing in step S306.
[0134] Figure 18 is a diagram illustrating an example of a notification image displayed on the display unit 102 by the display processing according to the second embodiment of the present invention. Of these, Figure 18(a) shows the case where a 540.0 Hz flicker is detected, and the CurTv is 1 / 5792.6 and the SetPosFlkTv is 1 / 534.7. Also, Figure 18(b) shows the case where a 540.0 Hz flicker is detected, and the CurTv is 1 / 250.5 and the SetPosFlkTv is 1 / 270.2.
[0135] The detected flicker area 1801 displays information indicating the frequency of light intensity changes of detected flickers. The current shutter speed area 1802 displays the shutter speed currently set on the camera body 100, such as through the user's manual settings (Figure 18(a) shows 1 / 5792.6, and Figure 18(b) shows 1 / 270.2).
[0136] In the first candidate area 1803 for selectable shutter speeds, the configurable flicker reduction shutter speed SetPosFlkTv, determined based on the method described in the first embodiment, is displayed as the first candidate shutter speed selectable by the user. Note that Figure 18(a) shows the first candidate area 1803 for 1 / 534.7, and Figure 18(b) shows it for 1 / 270.2.
[0137] In the second candidate range of selectable shutter speeds 1804, the shutter speeds corresponding to the index with the next smallest difference from IdealFlkExpTime after SetPosFlkTv are displayed as the second candidate shutter speeds that the user can select. In Figure 18(a), the second candidate range of selectable shutter speeds 1804 is shown as 1 / 546.4, and in Figure 18(b), it is shown as 1 / 273.2.
[0138] In the selectable shutter speed candidate area 1805, if there is a shutter speed that is more effective in reducing the effect of flicker, regardless of the difference with CurTv, that shutter speed will be displayed as an alternative shutter speed that the user can select. For example, Figure 18(a) shows an example where 1 / 270.2, which is close to Tv=1 / 270.0 (twice IdealFlkExpTime Tv=1 / 540.0), is displayed in the selectable shutter speed candidate area 1805. If 540Hz flicker is detected, Tv=1 / 270.2 has a larger difference from the difference with CurTv, but it is more effective in reducing the effect of flicker than SetPosFlkTv(1 / 534.7).
[0139] The shutter speed selection icon 1806 displays icons for the user to select from the available shutter speed candidates. Among these icons, a white arrow indicates that there are no candidate shutter speeds, and a black arrow indicates that there are candidate shutter speeds. In Figure 18(a), since there are no other SetPosFlkTv candidates for the first candidate area of selectable shutter speeds 1803, a white arrow icon is displayed next to the first candidate area of selectable shutter speeds 1803n. This is also the case in the example shown in Figure 18(b). In addition, in Figure 18(a), since there is another shutter speed (1 / 180.0) that is highly effective in reducing the effect of flicker for the candidate area of selectable shutter speeds 1805, a black arrow icon is displayed next to the candidate area of selectable shutter speeds 1805. In Figure 18(b), a black arrow icon is displayed next to the candidate range 1805 for selectable shutter speeds because there are other shutter speeds (1 / 135.0) that are highly effective in reducing the effects of flicker.
[0140] As described above, the camera body 100 of this embodiment can notify the user of multiple candidates for shutter speeds that can reduce the effects of flicker, in addition to the arbitrary SetPosFlkTv. With this configuration, for example, the user can easily set their desired shutter speed from among multiple candidates that can reduce the effects of flicker, while reducing the work of manually adjusting the shutter speed to reduce the effects of flicker.Therefore, the camera body 100 according to the present invention can perform imaging with reduced flicker effects across a wide range of light intensity change frequencies, regardless of the light source, without requiring complex operations, and can reduce unevenness in images caused by flicker.
[0141] (Third embodiment) In the first embodiment described above, an example was described in which a specific notification screen is displayed on the display unit 102. In contrast, in this embodiment, a configuration in which flicker detection processing is performed during live view display, which sequentially displays captured images, will be described with reference to Figure 19. Note that the configuration and basic driving method of the camera body 100, lens unit 200, and light-emitting device 300, which are imaging devices according to this embodiment, are substantially the same as those of the first embodiment described above, so the reference numerals for each part are the same and the explanation is omitted.
[0142] Figure 19 is a diagram illustrating an illustrative transition screen to the flicker reduction process during live view display according to the third embodiment of the present invention. In this embodiment, a configuration in which live view display is performed on the display unit 102 is described, but a configuration in which live view display is performed on an electronic viewfinder (not shown) may also be used. During live view display, the image sensor 101 performs sampling (charge accumulation) for flicker detection at a timing different from the charge accumulation timing for obtaining the captured image used for live view display.
[0143] As shown in Figure 19, the flicker detection icon 1901 is an icon display used in the first embodiment described above to indicate that flicker has been detected by the flicker detection process described above. Note that if a different flicker detection process is possible, the icon 1901 may be displayed similarly, or a different icon may be used. Other flicker detection processes could include detecting specific flickers (100Hz, 120Hz) caused by periodic changes in the commercial power supply.
[0144] Furthermore, the icon 1901 may be configured to be displayed only when flicker is detected, or it may be configured to always display the icon and change (update) its display content depending on whether or not flicker is detected. In addition, the CPU 103 may be configured to control the system so that the flicker detection process is executed when the user presses down the flicker detection icon 1901.
[0145] The flicker reduction menu icon 1902 is an icon that, when pressed down by the user (including touch operation), transitions the display content of the display unit 102 to the notification screen described in the first and second embodiments above. In other words, the camera body 100 according to this embodiment allows the user to transition directly to the notification screen during live view display without going through other user interfaces such as a menu screen.
[0146] As described above, the camera body 100 of this embodiment can detect flicker that changes across a wide range of frequencies, even when the subject is being photographed, such as during live view display, and transition to image capture with reduced flicker effects, all with simple operation by the user. This configuration reduces the number of manual operations required by the user for flicker detection, while allowing the user to easily set their desired shutter speed from among multiple candidates that can reduce the effects of flicker. Therefore, the camera body 100 according to the present invention can perform image capture with reduced flicker effects across a wide range of light intensity change frequencies, regardless of the light source, without requiring complex operations, and can reduce unevenness in images caused by flicker.
[0147] (Fourth Embodiment) In the first embodiment described above, the process for determining the exposure time for flicker reduction when the current shutter speed (CurTv) is set in advance was explained. In contrast, this embodiment describes the process for determining the exposure time for flicker reduction when a specific shutter speed (CurTv) is not set, for example, by manual operation by the user. Note that the configuration and basic driving method of the camera body 100, lens unit 200, and light-emitting device 300, which are imaging devices according to this embodiment, are substantially the same as those of the first embodiment described above, so the reference numerals for each part are the same and their descriptions are omitted.
[0148] In addition to the auto mode and manual mode mentioned above, the shooting modes that can be set in the camera body 100 include a priority mode in which the user manually sets an arbitrary exposure control value and other exposure control values are automatically set. As this priority mode, the camera body 100 according to this embodiment can be set to, for example, a shutter speed priority mode in which the user can manually set the shutter speed.
[0149] For example, in an automatic exposure control state where the shooting mode of the camera body 100 is set to auto mode, the user does not set an arbitrary shutter speed. Therefore, in the flicker reduction exposure time determination process in the first embodiment described above, there is little need to determine the ideal flicker reduction exposure time IdealFlkExpTime by considering the current shutter speed CurTv.
[0150] Therefore, in this embodiment, the ideal flicker reduction exposure time, IdealFlkExpTime, is determined based on the determination result regarding whether the current shutter speed, CurTv, is the shutter speed, CurUserTv, that has been manually set by the user. Specifically, in the camera body 100 of this embodiment, the CPU 103 determines whether CurTv ≠ CurUserTv. If the determination determines that CurTv ≠ CurUserTv, the CPU 103 sets the shutter speed with the smallest difference from the ideal flicker reduction exposure time in the shutter speed setting table as the configurable flicker reduction shutter speed.
[0151] If we apply the above-described configuration to the flicker reduction exposure time determination process mentioned earlier, steps S1203 and S1205 onward become unnecessary. In this case, the ideal flicker reduction exposure time, IdealFlkExpTime, will be set to an exposure time that is the reciprocal of the detected flicker light intensity change frequency, but it is not limited to this. For example, as described above in the second embodiment, the configurable flicker reduction shutter speed may be set such that the difference is minimized with respect to a value obtained by multiplying the ideal flicker reduction exposure time by an integer N, in order to maximize the effect of reducing the influence of flicker. In this case, the configurable shutter speeds according to the shutter speed setting table are repeatedly compared with integer multiples of the ideal flicker reduction exposure time, IdealFlkExpTime. Then, the shutter speed with the smallest difference is selected as the configurable flicker reduction shutter speed, SetPosFlkTv.
[0152] For example, in the first and second embodiments described above, the value of the configurable flicker reduction shutter speed SetPosFlkTv was determined by considering the difference with CurTv, assuming that CurTv is set, but it is not limited to this. For example, the camera body 100 may compare the difference with the shutter speed corresponding to each index for each flicker light intensity change frequency and its integer multiple reciprocal, and set the value with the smallest difference as the configurable flicker reduction shutter speed SetPosFlkTv. In this case, the range of flicker light intensity change frequencies that can be reduced by the shutter speeds configurable by the camera body 100 should be defined, and only the reciprocals of frequencies that fall within this range should be used for comparison.
[0153] In this embodiment, the determination of whether or not CurTv ≠ CurUserTv may be made based on the shooting mode currently set in the camera body 100.
[0154] As described above, the camera body 100 of this embodiment can calculate an optimal shutter speed that effectively reduces the effects of flicker that varies across a wide range of frequencies, even when the user has not set a specific shutter speed. With this configuration, the user can easily set the shutter speed that most effectively reduces the effects of flicker, regardless of the shooting conditions of the camera body 100, without requiring any complex operations.
[0155] Therefore, the camera body 100 according to the present invention can perform imaging that reduces the effects of flicker over a wide range of light intensity change frequencies, regardless of the light source, without requiring complex operations, and can reduce unevenness in images caused by flicker.
[0156] (Fifth embodiment) In the first embodiment described above, the flicker reduction process related to subject imaging when acquiring still images was explained. In contrast, this embodiment describes the flicker reduction process related to subject imaging when acquiring moving images. Note that the configuration and basic driving method of the camera body 100, lens unit 200, and light-emitting device 300, which are imaging devices according to this embodiment, are substantially the same as those of the first embodiment described above, so the reference numerals for each part are the same and their explanations are omitted.
[0157] When acquiring video footage, the available shutter speeds are limited by the update cycle of each frame that makes up the video. In other words, there are shutter speeds that cannot be set depending on the video recording frame rate.
[0158] Furthermore, even among the configurable shutter speeds, some values are undesirable when acquiring moving images. For example, a short shutter speed results in a short exposure time per frame, and the time difference between each frame that makes up the moving image becomes large, causing the subject's movement in the image to appear less smooth.
[0159] Therefore, in this embodiment, for the flicker reduction process when acquiring moving images, the longest exposure time that can be set at the set frame rate of the moving image is set as the ideal flicker reduction exposure time. However, there may be cases where the flicker reduction exposure time and the settable flicker reduction shutter speed do not match. Therefore, if the settable flicker reduction shutter speed selected based on the newly determined ideal flicker reduction exposure time is a value that cannot be set at the current frame rate of the moving image, the settable flicker reduction shutter speed is adjusted. Specifically, among shutter speeds that are not limited by the frame rate of the moving image, the shutter speed closest to the newly determined ideal flicker reduction exposure time is set as the settable flicker reduction shutter speed.
[0160] In this embodiment, the process involving comparison with CurTv in the flicker reduction exposure time determination process described above can be omitted. However, the final ideal flicker reduction exposure time may be the longest exposure time among the ideal flicker reduction exposure times (integer multiples thereof) in which the difference with the current shutter speed CurTv falls within a predetermined range.
[0161] As described above, the camera body 100 of this embodiment can detect flicker that changes over a wide range of frequencies and capture images with reduced flicker effects, while suppressing a decrease in the quality of the moving image even when capturing a subject for acquiring a moving image. With this configuration, the camera body 100 according to this embodiment can easily set a shutter speed that reduces the effects of flicker, both when acquiring still images and moving images, without requiring any additional operation by the user. Therefore, the camera body 100 according to the present invention can perform imaging with reduced flicker effects over a wide range of light intensity change frequencies, regardless of the light source, without requiring complex operation, and can reduce unevenness in images caused by flicker.
[0162] (Sixth Embodiment) In the first embodiment described above, a configuration was described in which the ideal flicker reduction exposure time is set so that the difference from the current shutter speed CurTv is small. In contrast, this embodiment describes a method for setting an ideal flicker reduction exposure time that can reduce the effects of camera shake and subject blur. Note that the configuration and basic driving method of the camera body 100, lens unit 200, and light-emitting device 300, which are imaging devices according to this embodiment, are substantially the same as those of the first embodiment described above, so the reference numerals for each part are the same and the explanation is omitted.
[0163] Generally, longer shutter speeds (exposure times) increase the likelihood of capturing blurred images due to camera shake or subject movement (so-called subject blur). In other words, to reduce blur in images, it is desirable to keep the shutter speed as short as possible.
[0164] In the camera body 100 according to this embodiment, in the flicker reduction exposure time determination process according to the first embodiment described above, the ideal flicker reduction exposure time is determined to be shorter than a predetermined exposure time. The predetermined exposure time may be any value that can reduce the effect of motion blur on the subject in the image, but in this embodiment, the predetermined exposure time is exemplified as 1 / 125 seconds.
[0165] In this embodiment, the process of comparing with CurTv in the flicker reduction exposure time determination process described above can be omitted. However, the ideal flicker reduction exposure time may be determined such that the exposure time is shorter than the predetermined exposure time, while the difference between the current shutter speed CurTv and the ideal flicker reduction exposure time (or an integer multiple thereof) falls within a predetermined range.
[0166] Furthermore, the camera body 100 may be configured to set an ideal flicker reduction exposure time that reduces the effect of subject blur when a condition for reducing blur (for example, a specific shooting scene (such as a sports scene)) is set as a shooting condition.
[0167] As described above, the camera body 100 of this embodiment can detect flicker that changes over a wide range of frequencies and take images with reduced flicker effects while suppressing the effect of subject blur in the image. With this configuration, even when specific shooting conditions intended to reduce blur are set, the camera body 100 of this embodiment can easily set a shutter speed that reduces the effect of flicker without requiring any additional operation by the user. Therefore, the camera body 100 according to the present invention can take images with reduced flicker effects over a wide range of light intensity change frequencies, regardless of the light source, without requiring complex operation, and can reduce unevenness in images caused by flicker.
[0168] (Seventh Embodiment) This embodiment describes the flicker reduction process during light emission imaging using the light emission device 300. Note that the camera body 100, lens unit 200, and light emission device 300, which constitute the imaging device according to this embodiment, have substantially the same configuration and basic driving method as those of the first embodiment described above. Therefore, the same reference numerals are used for each part, and their descriptions are omitted.
[0169] In flash photography using the light-emitting device 300, the configurable flicker reduction shutter speed is limited by the synchronization speed, which is determined based on the timing of exposure of the image sensor 101 and the flash timing of the light-emitting device 300. In other words, the camera body 100 according to this embodiment sets the configurable flicker reduction shutter speed from a list of shutter speed candidates that are slower than the synchronization speed of the light-emitting device 300. Specifically, the CPU 103 determines whether or not to perform flash photography using the light-emitting device 300. If it is determined that flash photography will be performed, the CPU 103 limits the selectable shutter speeds in the shutter speed setting table to a range that is slower than the synchronization speed of the light-emitting device 300.
[0170] In this embodiment, the process involving comparison with CurTv in the flicker reduction exposure time determination process described above can be omitted. However, the final ideal flicker reduction exposure time may be the synchronization speed of the light-emitting device 300 that has the smallest difference from the current shutter speed CurTv among the ideal flicker reduction exposure times (integer multiples thereof).
[0171] As described above, the camera body 100 of this embodiment can detect flicker that changes over a wide range of frequencies and take images with reduced flicker effects, while maintaining an appropriately illuminated subject even when taking flash photography using a light-emitting device. With this configuration, the camera body 100 according to this embodiment can easily set a shutter speed that reduces the effects of flicker during flash photography without requiring any additional operation by the user. Therefore, the camera body 100 according to the present invention can take images with reduced flicker effects over a wide range of light intensity change frequencies, regardless of the light source, without requiring complex operations, and can reduce unevenness in images caused by flicker.
[0172] (Eighth embodiment) In this embodiment, a detection method for further suppressing false detection of flicker will be described, in addition to the flicker detection method described in the first embodiment above. First, referring to Figure 20, the sampling of captured images obtained by the rolling shutter method will be explained. Figure 20 is a diagram illustrating an exemplary method for sampling captured images based on images continuously obtained by the rolling shutter method.
[0173] As illustrated in Figure 20, by dividing an image captured using a rolling shutter method vertically within the image and analyzing the signal for each divided region, it is possible to sample the image signal at a finer (faster) interval than the imaging period of the captured image. Figure 20 illustrates an example in which an image captured at an imaging period of 100 fps is divided into N vertical regions. If the reading time of the rolling shutter is R [ms], then N samplings are performed during the R [ms] period, making it possible to sample the image signal for flicker detection at an R / N [ms] interval. This configuration allows for the detection of flicker that changes at high frequencies. On the other hand, since the imaging period of one captured image before division is 100 fps, macroscopically, this also means that the image signal for flicker detection is being sampled at an imaging period of 10 ms. In other words, as described above, when adopting a method of dividing one captured image into multiple parts to obtain a finer image signal for flicker detection, the first sampling period for obtaining the captured image itself and the second sampling period = R / N [ms] when each captured image is divided coexist.
[0174] As a result, when flicker is detected based on images taken of a subject that flickers at a predetermined frequency K[Hz] with an imaging period of 100fps, a peak indicating K±100[Hz] may appear in the analysis results, separate from the peak indicating the level of flicker related to frequency K[Hz].
[0175] Figure 21 illustrates the change in flicker level when multiple sampling periods are mixed. As shown in Figure 21, the mixing of two sampling periods causes a so-called wave beat phenomenon, and it can be determined that multiple flicker level rises occur in locations other than those corresponding to the actual flicker frequency k [Hz]. A wave beat phenomenon is generally a phenomenon in which, when two waves are generated, a different frequency is observed due to the superposition of the two signals. In the detection of flicker levels, this wave undulation can sometimes prevent the correct detection of the flicker frequency. Equation (6) below is an equation that specifically explains this.
[0176]
number
[0177] When the blinking frequency of the subject is f2 and the observed frequency is f1, the beat phenomenon of the wave caused by the coexistence of the two sampling periods affects the imaging frequency f B Due to the influence of [the system], the observed frequency f1 is f2±f B As a result, the flicker frequency may not be detected correctly, potentially leading to false detections.
[0178] The following will specifically explain how to address the above-mentioned problems. The first method is to use a different combination of the imaging period (frame rate) for acquiring captured images and the frequency of the flicker being analyzed compared to the embodiment described above. For example, the flickering frequency f2 of the subject may be set to the imaging frequency f B When detecting using f2±f B In the analysis of the flickering frequency, f B Images obtained at imaging periods other than the specified frequency can be used. In this case, the frequency f2±f B Under conditions where this may be observed, the imaging frequency f B Since the detection results will not be used, it will not be affected by the wave beat phenomenon.
[0179] As a second method, it is a method of reducing the influence of two sampling periods. Adjust so that the reading of the next image starts immediately after the reading of the image, that is, the shorter the so-called vertical blanking period, the smaller the influence of the first sampling period. If the vertical blanking period is 0 theoretically, the influence of the first sampling period is reduced. Therefore, as the second method described above, the reading time is adjusted so that the vertical blanking period becomes shorter. Specifically, the imaging period used for detection is changed to a period on the high-speed side (frame rate). FIG. 22 is a diagram exemplarily explaining the case where the imaging period of the captured image used for flicker detection described in FIG. 5 is shifted to the high-speed side. FIG. 23 is a diagram exemplarily explaining the case where the imaging period of the captured image used for flicker detection described in FIG. 6 is shifted to the high-speed side. As shown in FIGS. 22 and 23, by shifting the imaging period to the high-speed side, the influence caused by the occurrence of the first sampling period is reduced, and the peak of the flicker level caused by the frequency f2±f B can be suppressed low. As shown in FIGS. 22 and 23, not only shifting n imaging periods one step to the high-speed side, but also a configuration in which the entire n imaging periods are shifted to a higher speed side may be used.
[0180] Next, as a third method, it is a method of determining the flicker frequency of the subject using the peak of the flicker level of f2 [Hz] and the peak of the flicker level of f2±f B [Hz]. In this case, the frequency at which the flicker level is simply maximized is not determined as the flicker frequency of the subject (the light amount change frequency of the flicker). In the third method, as the change in the flicker level, when a significant rise similar to three peaks of the frequency f2 [Hz] and f2±f B [Hz] in total is detected, the frequency f2 that becomes the three center values is determined as the flicker frequency of the subject (the light amount change frequency of the flicker). When this configuration is adopted, for the frequencies f2 [Hz] and f2±f B [Hz], the imaging frequency f BSince it is necessary to detect flicker based on the captured image obtained, the computational load is greater compared to the first embodiment described above. However, as shown in Figures 5(b) and 6(b), if we separate the combination of an arbitrary imaging period and the frequency to be detected, f2±f B The frequency corresponding to [Hz] is the imaging frequency f B In some cases, the flicker may not be detected. Detecting the frequency range of the target flicker in all n imaging cycles is computationally intensive, but if there is sufficient computational capacity or if a dedicated processor can be provided for the calculations, a third method can be used to detect flicker with high accuracy. That is, for each of the n imaging cycles, an analysis of the flicker level for all frequencies to be detected is performed, and the frequency of the change in light intensity of the flicker is detected.
[0181] Although preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of its essence. For example, in the embodiments described above, a digital camera was assumed as an example of an imaging device for carrying out the present invention, but it is not limited thereto. For example, a configuration may employ an imaging device other than a digital camera, such as a digital video camera, a portable device or wearable terminal such as a smartphone, an in-vehicle camera or a security camera.
[0182] Furthermore, while the above-described embodiment described a configuration that can detect and reduce flicker that changes over a wide range of frequencies without specifying a light source, the system is not limited to this. For example, a configuration may be used in which a specific light source is specified in advance, and flicker is detected in accordance with the frequency range in which it is most likely to occur. In this case, for example, similar to the shutter speed setting table shown in Figure 2, table data may be prepared for each light source (or a similar group of light sources), and the configuration may be used to limit the shutter speed that is most likely to be set for each table data, based on the light intensity change period of the light source. With this configuration, it is possible to efficiently set a shutter speed that can reduce the effect of flicker in accordance with the flicker that is most likely to occur with each light source, thereby effectively reducing the effect of flicker while minimizing the amount of data in the table data.
[0183] Furthermore, the imaging device according to the present invention may be configured such that the user can select whether or not to perform the flicker detection method and the method for reducing the effects of flicker described in the above-described embodiment as one of the modes or menu settings that the camera body 100 can set. For example, the camera body 100 may be configured to have a first mode capable of detecting flicker that changes in brightness at a high frequency of at least 200 Hz, and the user can freely switch whether or not to transition to the first mode.
[0184] Furthermore, the camera body 100 according to the present invention may be configured to include a second mode for detecting and reducing the effects of flicker at frequencies (100Hz and 120Hz) caused by the commercial power supply frequency described in Patent Document 1. In this case, the camera body 100 only needs to be configured to perform the high-frequency flicker detection method and reduction method described in each embodiment described above only when the first mode is set.
[0185] Furthermore, in the embodiments described above, the operation of the entire device was controlled by the coordinated operation of each component constituting the imaging system, centered around the CPU 103. However, the system is not limited to this configuration. For example, a (computer) program following the flow shown in the figures described above may be stored in the ROM of the camera body 100 in advance. Then, a microprocessor such as the CPU 103 may execute this program to control the operation of the entire imaging system. Moreover, the form of the program is not limited as long as it has the functionality of a program, such as object code, a program executed by an interpreter, or script data supplied to the OS. Furthermore, the recording medium for supplying the program may be, for example, a hard disk, a magnetic recording medium such as magnetic tape, or an optical / magneto-optical recording medium.
[0186] Furthermore, although the embodiments described above assumed a digital camera as an example of an imaging device for implementing the present invention, the invention is not limited to this. For example, various imaging devices such as digital video cameras, portable devices such as smartphones or wearable terminals, or security cameras may be used in the configuration.
[0187] (Other embodiments) Furthermore, the present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions. [Explanation of Symbols]
[0188] 100 Camera Body 101 Image sensor 102 Display Unit 103 CPU 200 shooting lens 300 Light-emitting devices
Claims
1. An imaging element; A drive control means for controlling the drive of the imaging element; a flicker detection means for detecting flicker based on a signal output from the imaging element; having the drive control means controls the imaging device to be driven at n different frame rates, n being a natural number equal to or greater than 3, in order to detect flicker; the least common multiple of the n frame rates used for detecting flicker does not include any of the n frame rates, The imaging device, wherein the flicker detection means detects flicker based on a flicker detection signal obtained for each of the n frame rates.
2. 2. The imaging device according to claim 1, wherein the n frame rates used for detecting flicker have periods that differ from each other by 1 / n power of 2 as a predetermined interval.
3. 2. The imaging device according to claim 1, wherein the n frame rates used for detecting flicker have cycles that differ from each other by 100 / n [%] as a predetermined interval.
4. 4. The imaging device according to claim 1, wherein each of the n frame rates used for detecting flicker is a rate of 100 fps or higher.
5. 5. The imaging device according to claim 1, wherein the n frame rates used for detecting flicker have a least common multiple of 10,000 or more.
6. 5. The imaging device according to claim 1, wherein the least common multiple of the n frame rates used for detecting flicker is greater than the reciprocal of an upper limit value on the high-speed side of the shutter speed that can be set by the imaging device.
7. The imaging device according to claim 2 or 3, characterized in that the flicker detection means detects flicker having a light intensity change frequency within a predetermined range, and detects flicker based on the flicker detection signal obtained by driving the imaging element at one of the n frame rates for each light intensity change frequency of the flicker to be detected.
8. 8. The imaging device according to claim 7, wherein the flicker light amount change frequencies that are the detection targets for the n frame rates are shifted by the predetermined interval for each of the frame rates.
9. The imaging device according to claim 7, characterized in that, when an arbitrary frame rate D is set among the n frame rates and an arbitrary frequency F is set among the light amount change frequencies of the flicker to be detected, for a frequency of F±D [Hz] among the light amount change periods of the flicker to be detected, the flicker detection means detects flicker based on the flicker detection signal obtained by driving the imaging element at a frame rate other than the arbitrary frame rate D.
10. The imaging device according to claim 2 or 3, characterized in that, when an arbitrary frame rate among the n frame rates is defined as D and an arbitrary frequency among the light amount change frequencies of the flicker to be detected is defined as F, the flicker detection means detects flicker based on the flicker detection signal obtained by driving the imaging element at the frame rate D for F±D [Hz] of the light amount change frequencies of the flicker to be detected.
11. The imaging device according to any one of claims 7 to 10, characterized in that the drive control means controls the drive of the imaging element so as to capture an image for one or more cycles of a light amount change frequency of each flicker to be detected, at each of the n frame rates used for detecting flicker.
12. 12. The imaging apparatus according to claim 1, wherein the drive control means changes the number n of frame rates used for detecting flicker in accordance with a range of light amount change frequencies of flicker to be detected.
13. 13. The imaging apparatus according to claim 1, wherein the drive control means changes the n frame rates used for detecting flicker in accordance with a range of light amount change frequencies of flicker to be detected.
14. 14. The imaging device according to claim 1, wherein the flicker detection means performs control so as to change the n frame rates used for detecting flicker when no flicker is detected based on the signal for flicker detection.
15. 15. The imaging apparatus according to claim 1, further comprising: a notifying unit that notifies a light amount change frequency of the flicker detected by the flicker detection unit.
16. The imaging device is capable of detecting flicker in which the amount of light of a subject changes at a frequency of 200 Hz or more, The imaging device according to any one of claims 1 to 15, characterized in that when detecting flicker that changes at a light quantity change frequency of 200 Hz or more, the flicker detection means detects the flicker based on the flicker detection signal acquired for each of the n frame rates.
17. a drive control step of controlling the drive of the imaging element; a flicker detection step of detecting flicker based on a signal output from the imaging element; having the drive control step controls the imaging element to be driven at n different frame rates, n being a natural number equal to or greater than 3, in order to detect flicker; the least common multiple of the n frame rates used for detecting flicker does not include any of the n frame rates, The flicker detection method is characterized in that, in the flicker detection step, a frequency of change in the amount of light of the flicker is detected based on a flicker detection signal acquired for each of the n frame rates.
18. A computer-readable program for causing a computer to execute the flicker detection method according to claim 17.
