Image blur correction device, imaging apparatus and control method of image blur correction device
The image blur correction device addresses the issue of subjects moving out of range by switching to camera shake correction based on subject movement information, maintaining stability in image capture.
Patent Information
- Application Number
- JP2023050402
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-10-09
Smart Images

Figure 2024139454000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to stabilization of a subject image using an image blur correction means. [Background technology]
[0002] In recent years, various blur correction functions have been proposed for correcting image blur caused by camera shake or the like applied to an imaging device such as a digital camera, and by installing these functions in an imaging device, it has become possible to obtain better captured images. In addition to camera shake caused by a user holding the imaging device body, it has also been proposed to correct (also called tracking) subject blur caused by a change in the position of a subject such as a person. Here, the user's camera shake can be detected based on the detection result of an angular velocity sensor attached to the imaging device or the amount of movement of a still area (also called a background area) in a captured image. In contrast, subject blur can be detected based on the amount of movement of the subject's position by a subject recognition means or the like. Then, when correcting subject blur, it can be realized by controlling an image blur correction means based on the detected position of the subject so that the subject is kept at a specific position such as the center of the image.
[0003] The imaging device described in Patent Document 1 performs subject tracking and camera shake correction based on a detected tracking target position of the subject and a detection signal of camera shake occurring in the imaging device. At this time, a control means determines whether to execute a mode that prioritizes subject tracking or a mode that prioritizes camera shake correction according to the shooting state of the imaging device. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2017-215350 A Summary of the Invention [Problem to be solved by the invention]
[0005] The inventors of the present invention discovered a problem that when switching from a mode that prioritizes object tracking to a mode that prioritizes image stabilization, as in Patent Document 1, there is a possibility that the object will move out of the shooting range immediately after the switch.
[0006] Therefore, the present invention provides an image stabilization device that can reduce the possibility of the subject immediately going out of the shooting range when control is switched from subject tracking to correction of camera shake of the imaging device. [Means for solving the problem]
[0007] An apparatus according to one aspect of the present invention is characterized in that it comprises a subject detection unit that detects a subject from an input image, a subject motion information acquisition unit that acquires subject motion information indicating information about changes over time in the position of the detected subject in the image, an imaging device motion information acquisition unit that acquires imaging device motion information indicating the movement of an imaging device that captures the image, a control unit capable of controlling an image blur correction means in a first mode that prioritizes subject tracking that corrects the position of the subject in the image and a second mode that prioritizes blur correction that corrects image blur associated with the movement of the imaging device, a determination unit that determines whether to switch from the first mode to the second mode, and a setting unit that sets a reference position that is the control center of the blur correction based on the subject motion information when the determination unit determines to switch from the first mode to the second mode.
[0008] Other aspects of the present invention are described in detail in the following detailed description of the invention. Effect of the Invention
[0009] According to the present invention, it is possible to reduce the possibility that the subject will suddenly go outside the shooting range even when switching from subject tracking to image stabilization. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of an imaging device according to an embodiment; [Diagram 2] Flowchart relating to subject tracking operation of the embodiment [Diagram 3] Diagram explaining switching from subject tracking to image stabilization [Figure 4] Diagram explaining the cropping position when switching from subject tracking to image stabilization [Diagram 5] FIG. 1 is a diagram for explaining an example of a reference position of an extraction frame; [Figure 6] FIG. 1 is a diagram for explaining an example of a reference position of an extraction frame; [Figure 7] Diagram explaining how to move the control center DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, preferred embodiments of the present invention will be described with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although multiple features are described in the embodiments, not all of these multiple features are necessarily essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated explanations are omitted.
[0012] In this embodiment, an example of an imaging apparatus having an electronic image blur correction means that corrects image blur by performing image processing such as geometric transformation on an acquired image signal as an image blur correction device will be described.
[0013] The imaging device of this embodiment realizes a function of performing subject tracking to hold the position of the main subject in an image at a specific position in the shooting range, and a function of performing image stabilization to correct the movement of the imaging device itself, by controlling an electronic image stabilization means. Note that subject tracking is also called subject stabilization. In addition, in the present invention and this specification, image stabilization is not limited to the blur transmitted from the user's hand, but also includes the correction of the blur transmitted from a vehicle or a building when the imaging device is fixed to the vehicle or a building.
[0014] When switching from a mode that prioritizes subject tracking to a mode that prioritizes image stabilization, the imaging device of this embodiment sets a reference position for image stabilization after switching based on the movement of the subject. This makes it difficult for the subject to move out of the shooting range immediately after switching to the mode that prioritizes image stabilization. This embodiment will be described in detail below. Note that the shooting range refers to the range of the image that is displayed and recorded, and does not necessarily coincide with the range captured by the imaging element. When a cutout process is performed using geometric transformation processing, the range of the image after cutting out is called the shooting range.
[0015] 1 is a block diagram showing the configuration of an image capture device 100 which is an embodiment of an image blur correction device of the present invention. The image capture device 100 includes an optical system 101 which forms a subject image, an image capture element 102 such as a CCD sensor or a CMOS sensor which photoelectrically converts the subject image formed by the optical system 101, and a development processing unit 103 which forms an image signal from an electrical signal output from the image capture element 102.
[0016] The development processing unit 103 includes an A / D conversion circuit, an auto gain control circuit (AGC), and an auto white balance circuit (not shown), and forms a digital signal. The image sensor 102 and the development processing unit 103 form an imaging system that acquires an image. One frame or multiple frame images of the image signal formed by the development processing unit 103 are used as is for display or processing, and are also temporarily stored and held in a memory 104.
[0017] The subject detection unit 105 performs subject detection on the image signal output from the development processing unit 103, and detects the subject to be tracked (hereinafter, sometimes referred to as the main subject). The main subject is a moving subject, and examples of the main subject include a person (face), an animal, and a vehicle such as a train or an airplane. A known method may be used to detect the main subject, and examples of the method include a matching process in which the subject to be detected is used as a template, and a process in which the feature amount of the subject is stored as data and an area having the same feature amount is searched for. As another method, a method of configuring a classifier for subject recognition using a learning algorithm such as a neural network may be used.
[0018] Subject movement information acquisition section 106 acquires movement information indicating how the subject detected by subject detection section 105 moves on the image over time, in other words, the change in subject position in the image over time. The subject movement information can be acquired by acquiring position information of the main subject in chronological order, which is included in the result of main subject detection by subject detection section 105.
[0019] The imaging device motion information acquisition unit 107 acquires imaging device motion information indicating motion information such as camerawork motion and camera shake occurring in the imaging device. Here, the motion of the imaging device 100 in this embodiment refers to the change in position and attitude of the imaging device 100, and includes intentional motion such as panning and tilting by the photographer in addition to motion unintended by the photographer such as blurring. There is no particular limit to the means for acquiring the imaging device motion information. For example, the motion information may be acquired by acquiring a detection result from an inertial sensor such as a gyro sensor or an acceleration sensor arranged in the imaging device. Also, the amount of motion (background vector) of the entire screen between frame images acquired successively in time may be calculated by image analysis using the image signal output from the development processing unit 103. Also, other methods may be used.
[0020] The correction amount calculation unit 108 calculates the correction amount (drive amount) of the image blur correction means using the motion information of the subject acquired by the subject motion information acquisition unit 106 and the motion information of the imaging device acquired by the imaging device motion information acquisition unit 107. When tracking the subject, the correction amount is calculated based on the motion information of the subject, and when correcting the camera shake, the correction amount is calculated based on the motion information of the imaging device. When tracking the subject, the correction amount may be calculated based on the current position of the subject in the image detected by the subject detection unit 105 instead of the motion information of the subject (i.e., the change over time of the subject position in the image). As described above, the imaging device 100 of this embodiment includes an electronic image blur correction means. Therefore, the correction amount calculated by the correction amount calculation unit 108 corresponds to the geometric deformation amount in the geometric deformation unit 110. The image blur correction means performs image blur correction based on this correction amount, so the correction amount calculation unit 109 functions as a control unit for blur correction by sending the calculated correction amount to the image blur correction means.
[0021] Although the imaging device 100 of this embodiment has an electronic image blur correction means, the type of the image blur correction means is not particularly important, and the imaging device itself does not have to have it. For example, image blur correction may be performed by an image processing device that receives an image signal captured by the imaging device 100 via wired or wireless communication and performs geometric transformation processing on the received image signal.
[0022] A geometric transformation unit 109 performs a geometric transformation process to correct the blur, using the amount of geometric transformation calculated by the correction amount calculation unit 108. Then, the image whose blur has been corrected is displayed on a display device by a video output unit 110, or is stored and held in an image storage device (not shown).
[0023] The determination unit 111 determines whether to continue subject tracking or to switch to image stabilization. The determination method is not particularly limited, and may be based on the state of the imaging device, such as the focal length or the movement of the imaging device, or may be based on the motion information of the subject. For example, since camera shake is more noticeable when the focal length is long, the subject tracking may be automatically switched to image stabilization when the focal length becomes a predetermined value or more. Furthermore, since camera shake is more noticeable when the movement of the imaging device is large, the subject tracking may be automatically switched to image stabilization when the movement of the imaging device becomes large. Furthermore, if it is determined based on the motion information of the subject that the movement of the subject is large and cannot be corrected even by using the image stabilization means, or that it will soon become impossible to correct, the subject tracking may be automatically switched to image stabilization. In this way, by automatically switching from subject tracking to image stabilization based on the motion information of the subject, it is possible to continue generating an image that maintains stability as a whole screen, even though it is no longer possible to track the subject. Note that automatic switching to image stabilization may be performed not only when the subject movement is large, but also when the movement of the main subject is too fast or changes direction drastically, exceeding the processing capacity or driving capacity of the subject movement information acquisition unit 106 and each image blur correction means.
[0024] In this way, imaging device 100 may not only automatically switch from object tracking to automatic image stabilization, but also switch from object tracking to image stabilization based on a user instruction. That is, when determining unit 111 receives an instruction from the user to switch to image stabilization during object tracking, it may determine to execute image stabilization, and when it does not receive an instruction to switch, it may determine to continue executing object tracking.
[0025] The object tracking operation by the imaging device 100 configured as above will be described with reference to the flowchart shown in Fig. 2. Note that in this embodiment, object blur correction is performed in real time by executing the following steps S201 to S207 for each frame.
[0026] In step S201, the subject image formed by the optical system 101 is output by the image sensor 102 as an analog signal according to the subject brightness, and an image signal is generated by processing the analog signal in the development processing unit 103. The development processing unit 103 converts the analog signal into, for example, a 14-bit digital signal by an A / D conversion unit (not shown). The digital image signal is further subjected to signal level correction and white level correction by AGC and AWB (not shown), and is transmitted to the subject detection unit 105 and the display unit 110, and is also stored and held in the memory 104. In the imaging device 100 of this embodiment, frame images are generated sequentially at a predetermined frame rate, and the transmitted and stored frame images are also updated sequentially.
[0027] In step S202, imaging device motion information indicating the motion occurring in the imaging device is acquired in the imaging device motion information acquisition unit 107. The motion information acquired in this step is transmitted to the correction amount calculation unit .
[0028] In step S203, the subject detection unit 105 detects a main subject present in the frame image acquired in step S201. Even if there are multiple subjects that can be the main subject in the image, one subject is selected in this embodiment. As an example of the selection method, the subject detection unit 105 selects one subject that is considered to be the most important and outputs that subject. For example, the main subject may be selected by estimating that the subject that is larger in size than other subjects, that is closer to the center of the image, and that has a higher detection reliability is more important. As another example of the selection method, the user may be allowed to select the main subject from multiple subject candidates.
[0029] This step acquires the position of the main subject, the size of the main subject, and the reliability of the main subject (if the main subject is a person, information indicating the likelihood of the subject being a person). The position information of the subject detected in this step is transmitted to subject movement information acquisition unit 106.
[0030] In this embodiment, one main subject is selected as the main subject, but this is not limiting, and multiple subjects may be set as the main subjects to be tracked. In this case, for example, the multiple main subjects may be tracked so that the center of gravity of each of the multiple main subjects is kept at a specific position in the image, or when a main subject that is likely to deviate from the shooting range is detected among the multiple main subjects, the main subject may be tracked so that the main subject is within the shooting range.
[0031] In step S204, subject movement information acquisition unit 106 acquires subject movement information indicating the amount of movement of the main subject based on the position information of the main subject detected and selected in step S203. Note that if a subject is detected for the first time in the process of S203 for this frame, this step is skipped, and subject movement information is acquired by performing this step from the next frame.
[0032] There is no particular limit to the method of acquiring the amount of movement of the main subject. For example, in step S203, a partial image including the detected subject as the main subject is used as a template to acquire the position of the main subject using known template matching. Then, the position of the main subject in the image up to the previous frame and the position of the main subject this time are arranged in chronological order, so that the relationship between time and the amount of movement of the main subject can be acquired. If the main subject is lost, the process of detecting the subject in subject detection unit 105 (step S203) can be started again.
[0033] In step S205, the determination unit 107 determines whether to continue object tracking or to switch to image stabilization. There is no particular restriction on the determination method, but here, a simple explanation will be given of an example in which the method is automatically switched based on object movement information.
[0034] Using Figures 3 (a) and (b), the effect of switching correction control from subject tracking to image stabilization will be described. Figure 3 shows a graph of the change over time between the movement of the subject and the movement of the imaging device. In Figure 3, the horizontal axis represents time, and the vertical axis represents position on the image. Note that in this specification, for the sake of explanation, movement in only one direction is shown as a graph, but in reality, movement on the image is two-dimensional, and the same can be said for movement in other directions.
[0035] FIG. 3(a) shows a graph that shows a schematic representation of subject blur and camera shake that appear on an image when a subject moves on the image and camera shake occurs. In FIG. 3(a), it is assumed that neither subject tracking nor camera shake correction is performed. The position 301 of the main subject that is the subject of subject tracking changes over time, indicating that the main subject is performing amplitude motion. On the other hand, the camera shake motion that appears on the image is the motion applied to the imaging device that appears on the image, and is therefore a motion that occurs over the entire image, unlike the motion of a local area such as the main subject. Therefore, in FIG. 3(a), the position 302 of the background located at the center of the image is represented as the motion of the imaging device, that is, camera shake. In this way, if neither subject tracking nor camera shake correction is performed, both subject blur and camera shake remain in the video.
[0036] Fig. 3(b) is a graph showing the object and camera shake that appear on the image when the process of switching from object tracking to camera shake correction is performed. In Fig. 3(b), the object is moving on the image and camera shake is occurring.
[0037] During the time period indicated by period 305, subject tracking is performed, and each image blur correction means is controlled to keep the main subject at a target position set within the image. Therefore, the position 303 of the main subject in the image does not change during period 305, and the main subject image continues to stay at the target position. On the other hand, since camera shake is not corrected, the position 304 of the background located at the center of the image changes.
[0038] Then, when the fluctuation in main subject position 303, which is the movement of the main subject, becomes large (see main subject position 301 in FIG. 3(a)) and determination unit 111 determines that it may become impossible to track the subject, each image blur correction means is controlled to perform camera shake correction from the subsequent period 306. As a result, although main subject position 303 fluctuates from period 306 onwards, it is possible to reduce fluctuation in background position 304, which is the movement of the entire screen indicating the movement of camera shake.
[0039] In this way, by automatically switching from subject tracking to image stabilization based on the motion information of the main subject, it is possible to prevent the main subject and background from moving more than is noticeable in the image, or to keep the time it takes to do so for a short time. Note that Fig. 3 shows not only the temporal fluctuations of the positions 301 and 303 of the main subject, but also the temporal fluctuations of the positions 302 and 304 of the background, that is, the temporal changes in the motion applied to the imaging device. However, the imaging device motion information is not limited to information showing such temporal fluctuations, and may be angular velocity or angle at each time.
[0040] In this step, if the determination unit 111 determines that object tracking should be continued, the process proceeds to step S206, where object tracking is continued. On the other hand, if the determination unit 111 determines that object tracking should not be continued, the process proceeds to step S207, where the process switches to image stabilization.
[0041] In step S206, correction amount calculation unit 108 calculates a correction amount based on the difference between the position of the subject on the image in the current frame acquired by subject detection unit 105 and the target position. This correction amount is a correction amount for subject tracking. Alternatively, correction amount calculation unit 108 may calculate the correction amount for subject tracking based on the motion information of the subject acquired by subject motion information acquisition unit 106.
[0042] In step S207, the reference position setting unit 112 sets a reference position for image stabilization based on the motion information of the subject. The reference position for image stabilization is the control center of image stabilization, and is the position of the image stabilization means when the motion of the imaging device 100 is zero. The position of the image stabilization means refers to the cut-out position when image stabilization is performed by geometric deformation as in this embodiment, and refers to the position of the correction lens or the image sensor when image stabilization is performed by driving the correction lens or the image sensor in a direction different from the optical axis direction.
[0043] The effect of setting the reference position for camera shake correction based on the motion information of the subject will be described with reference to Figs. 4 and 5. Fig. 4 is a diagram showing a schematic representation of the change in the cut-out position of an image when the control of the geometric transformation unit 109 is switched from subject tracking to camera shake correction. The contours of rectangular areas cut out when the geometric transformation unit 109 performs geometric transformation for electronic camera shake correction processing are shown by cut-out frames 404, 406, and 408. Since the image within this rectangular area is ultimately recorded or displayed, in this specification, the term "shooting range" simply refers to the area within this rectangular area. By moving the position of this cut-out frame according to the motion of the subject or the motion of camera shake, it is possible to track the subject or generate an image with camera shake corrected.
[0044] Fig. 4(a) is a schematic diagram showing the relationship between an image 401 captured at time T1 during subject tracking and a clipping frame 404. In Fig. 4(a), a main subject to be tracked is present at position 402. Furthermore, the movement of the main subject over the subsequent time is shown in subject movement information 403. As shown by subject movement information 403, the main subject moves to the right of the page while moving up and down. At this time, since subject tracking is being performed, clipping frame 404 is set to, for example, position 404 so that the main subject fits within the frame.
[0045] FIG. 4B is a schematic diagram showing the relationship between an image 401 captured at time T2 during subject tracking and a cutout frame 406. Time T2 is a timing later than time T1. As shown in position 405 in FIG. 4B, when the main subject moves in the upper right direction on the paper than time T1, the position of the cutout frame 406 is set in the upper right direction on the paper than the position of the cutout frame 404 in FIG. 4A so that the main subject continues to be contained within the cutout frame 406. In this way, while the subject is being tracked, the position of the cutout frame is moved to follow the movement of the main subject, so that the subject continues to maintain a specific position (also called a target position) in the cutout image. In FIG. 4B, the movement of the main subject at the subsequent time is shown in subject movement information 407. When subject tracking is continued, the position of the cutout frame moves so as to follow the movement shown by the subject movement information 407. On the other hand, if the determination unit determines at this timing (time T2) to switch from object tracking to camera shake correction, the control of the geometric transformation unit 109 is switched from object tracking to camera shake correction occurring in the imaging device according to the determination result.
[0046] 4(c) is a schematic diagram showing the relationship between an image 401 captured at time T3 after switching from subject tracking to camera shake correction, a reference position 408 for camera shake correction, and the main subject. When switching from subject tracking to camera shake correction occurs, the cropping frame for the image does not move so as to track the movement of the subject, but moves so as to correct the movement of camera shake with the position at the time when the switching occurs (here, time T2) as the reference position 408. In other words, if the movement of the imaging device is zero, the position of the cropping frame after switching to camera shake correction coincides with the position of the cropping frame 406 at time T2.
[0047] On the other hand, because the main subject continues to move, when the main subject moves to position 409, for example, it moves out of the range of cropping frame 408 that is moving to correct camera shake. In this way, if the control of geometric transformation unit 109 is switched from subject tracking to camera shake correction without considering the position of the cropping frame, the recorded or displayed image may suppress camera shake, but the subject may be cut off quickly. This results in an image that is captured (recorded) that does not match the user's intention.
[0048] Therefore, in this embodiment, the reference position of the image cropping frame when switching from subject tracking to camera shake correction (i.e., the control center of electronic camera shake correction) is set to a position where the subject is estimated not to be cut off based on the subject's movement information. This increases the possibility of providing an image that meets the user's intention.
[0049] Fig. 5 shows an example of setting the reference position of the cropping frame when switching from subject tracking to camera shake correction. The subject that was the tracking target is present at position 502 of captured image 501, which is the same as position 409 in Fig. 4(c). Here, based on subject movement information, which is the change over time in the position of the main subject acquired up to time T2, reference position 503 of the cropping frame is set lower than the position of cropping frame 406 at time T2. This makes it possible to continue capturing the subject within the shooting range for a longer period of time, even if the subject continues to move thereafter, compared to when camera shake correction is performed with the position of the cropping frame at the time of switching to camera shake correction (time T2) as reference position 408 as in Fig. 4(c).
[0050] A specific example of a method for setting the reference position of the clipping frame based on information about the movement of the subject will be described.
[0051] As a first example, a method of setting a reference position based on a priority position of a subject's movement will be described. A center of gravity of the subject's movement is calculated from the change over time in the position of the main subject indicated by the subject's movement information, that is, the history information of the main subject's movement up to the current time (time T2). Then, a reference position is set at a position shifted toward the center of gravity from the position of the cropping frame at the current time. In other words, a reference position is set at a position where the distance from the reference position to the center of gravity is smaller than the distance from the position of the cropping frame at the current time to the center of gravity. The reference position may be set so that the center of gravity is located near the center of the cropping frame. This makes it possible to reduce the possibility that the main subject will immediately go out of the shooting range even if a switch to image stabilization occurs at the peak of the subject's movement or at the moment when the subject makes a movement that is significantly different from the previous movement. When a switch occurs at time T2, the main subject moves rightward while moving up and down until time T2, so the center of gravity of the movement is located to the lower left of the position 405 of the subject at time T2 shown in FIG. 4(b). Therefore, like reference position 503 in FIG. 5, the reference position is set below the position of the clipping frame 406 at time T2.
[0052] A second specific example of the method for setting the reference position will be described. In this example, the movement of the main subject in the image to be acquired in the future is predicted from the history of the main subject's past movements, and the reference position is set based on the prediction result. By setting the reference position at a position shifted from the current position of the crop frame toward the direction of the main subject's future movement indicated by the prediction result, the possibility of the main subject being captured within the shooting range can be increased even if the main subject continues to move after switching. When switching occurs at time T2, since the main subject moves rightward while moving up and down until time T2, it can be predicted that the main subject will move in the same way in the future. In addition, from the change over time in the subject position, it can be predicted that the current timing is the timing of the upward movement of the vertical movement, and that the subject will move downward immediately after this, and although there will be an upward movement thereafter, the possibility of the subject moving more upward than now is low. Therefore, as in the reference position 503 in FIG. 5, the reference position can be set below the position of the crop frame 406 at time T2. In addition, taking into consideration the predicted rightward movement, the reference position may be set to a position lower and right than the position of the crop frame 406 at time T2. Furthermore, instead of predicting the future direction of movement of the main subject, the future position of the main subject may be predicted. From the change over time in the position of the main subject up to time T2, it is predicted that the main subject in images acquired in the future will likely be located to the lower right of its current position, and the reference position can be set to the lower right of the position of cropping frame 406 at time T2. In the present invention and this specification, both predicting the direction of movement of the main subject and predicting the position of the main subject are considered to be predicting the future movement of the main subject.
[0053] As described above, if the reference position is set based on the center of gravity of the change over time in the movement of the main subject, it is possible to deal with reciprocating movements such as up and down movements, but it is difficult to deal with unidirectional movements such as rightward movements. However, by setting the reference position based on the prediction results of the future movement of the main subject, it is possible to set the reference position so as to deal with unidirectional movements as well.
[0054] Two specific examples of the method of setting the reference position have been introduced above. However, as shown in FIG. 6, when the main subject 602 is present near the edge of the image 601, it is necessary to adjust the reference position so that the reference position does not go outside the image 601. Furthermore, when adjusting the reference position, if the reference position 603 is set very close to the edge of the image, the margin area for moving the cutout position for image stabilization may be insufficient, and image stabilization may not function effectively. Therefore, when actually determining the reference position of the image cutout frame, it is necessary to secure the margin area by placing the reference position 604 at a certain distance from the edge of the image as shown in FIG. 6. There is no particular restriction on the method of setting the margin area, and it may be a fixed value determined in advance, or a value that changes depending on various settings (focal length, shooting mode, etc.) of the image capture device 100. In addition, the magnitude of the apparent amount of camera shake appearing on the image may be calculated from the magnitude of camera shake occurring in the image capture device obtained from the image capture device movement information acquisition unit 107 until immediately before switching to image stabilization, and this may be set as the size of the margin area. Another method for setting the margin area may be to set the frequency and amplitude of the movement to be subjected to camera shake correction in advance, and then calculate the margin area taking into account information such as the focal length at the time of shooting.
[0055] Furthermore, when switching from subject tracking to image stabilization, if the reference position of the cropping frame is switched, a discontinuity such as a jump in the image may occur in the displayed or recorded image, resulting in an unnatural image. In order to avoid such a situation, there is a method of gradually (stepwise) moving the control center of the image stabilization from the position of the cropping frame during subject tracking to the reference position set by the above-mentioned method as the reference position used after switching to image stabilization, as shown in FIG. 7. FIG. 7 shows a schematic diagram of a method of gradually moving the control center from the position of the cropping frame 701 during subject tracking (time T2) to the set reference position 702. Since the actual position of the cropping frame changes according to the amount of movement of the imaging device 100 to correct image stabilization, FIG. 7 shows a case where the amount of movement of the imaging device is 0. By gradually moving the control center of the image stabilization, even if the movement of the imaging device 100 is 0, the position of the cropping frame moves for a predetermined time immediately after switching from subject tracking to image stabilization, and the still subject (background) included in the shooting range changes.
[0056] The method for moving the control center basically involves moving it at a constant speed from the position of the cropping frame immediately before switching (for example, the position of cropping frame 406 in Figure 4(b)) to a set reference position (for example, reference position 503 in Figure 5).
[0057] The moving speed of the control center does not have to be constant, and may be changed depending on, for example, the moving speed of the main subject or the magnitude of camera shake. For example, if the moving speed of the main subject is fast, it is possible to reduce the possibility of the subject moving out of the cutout frame by increasing the moving speed. On the other hand, if the magnitude of camera shake is large, it is possible to suppress the fluctuation of the background caused by the movement of the cutout frame position by slowing down the moving speed, resulting in a more natural image.
[0058] Here, if the user continues to shoot by following the subject even after switching to the camera shake correction, the camerawork movement may cause a deviation between the reference position of the crop frame set at the time of switching to the camera shake correction and the image area to be actually cropped. In such a case, the deviation of the reference position of the crop frame can be corrected by subtracting the movement of the imaging device obtained from the imaging device movement information acquisition unit from the original reference position. In other words, after switching to the camera shake correction, the direction and speed at which the imaging device is moving are acquired from the imaging device movement information acquisition unit 107, and converted into the amount of movement on the image. Then, the converted amount of movement is sequentially subtracted from the reference position of the crop frame initially set by the above-mentioned method, and the reference position is set and updated based on the subtraction result, thereby making it possible to reduce the deviation between the image area to be cropped as intended by the user and the reference position of the crop frame. It is generally known that camera shake and panning / tilting have different movement frequencies. Therefore, the movement of the frequency corresponding to panning and tilting may be extracted from the movement of the imaging device, converted into the amount of movement on the image, and subtracted from the initially set reference position.
[0059] In step S208, the correction amount calculation unit 108 calculates the amount of correction for camera shake correction. This correction amount indicates how much the cropping frame should be moved from the reference position set in step S207 in order to correct the movement of the imaging device, and can be calculated from the movement information of the imaging device obtained from the imaging device movement information acquisition unit 107. Then, the final position of the cropping frame is calculated from the calculated correction amount and the reference position set in step S207.
[0060] In step S209, blur correction processing is performed by performing geometric deformation for tracking the subject or correcting camera shake based on the amount of correction by geometric deformation section 109 calculated in correction amount calculation section 108. The frame image thus obtained in which blur (camera shake or subject shake) has been corrected is transmitted to video output section 110. Video output section 110 displays the frame image that has been subjected to blur correction processing on a monitor (not shown) or records and holds it in an image storage device.
[0061] As described above, in the imaging device 100 of this embodiment, when switching from object tracking to image stabilization, the reference position for image stabilization is set based on the movement information of the main object being tracked. This reduces the possibility that the object will immediately go out of the shooting range when switching from object tracking to image stabilization.
[0062] In the above embodiment, in order to simplify the description, the embodiment is described in which no image stabilization is performed during object tracking, and no object tracking is performed during image stabilization, but the present invention is not limited to this. The movement of the imaging device may be corrected during object tracking, and the movement of the object position in the image may be corrected during image stabilization. In other words, when switching from a mode that prioritizes object tracking to a mode that prioritizes image stabilization, the same effect can be obtained by setting the reference position as described above.
[0063] In the above embodiment, the imaging device 100 is described as controlling the geometric deformation unit 109 as the image blur correction means, but the image blur correction means is not limited to this. Lens-based image blur correction, sensor-based image blur correction, and electronic image blur correction are well known as image blur correction methods, and it is sufficient to control any one or more of these to perform subject tracking and camera shake correction.
[0064] Lens-based image blur correction is a function that corrects image blur by driving (displacing) a correction lens of an optical system in a direction different from the optical axis. Image blur can be corrected by driving the correction lens based on the correction amount calculated by the correction amount calculation unit 109, and the correction lens and an actuator that displaces it can form an image blur correction means. Sensor-based image blur correction is a function that corrects image blur by driving (displacing) the image sensor 102 in a direction different from the optical axis. Image blur can be corrected by driving the image sensor 102 based on the correction amount calculated by the correction amount calculation unit 109, and the image blur correction means can be formed by the image sensor and an actuator that displaces it. Also, electronic image blur correction is a function that corrects image blur by performing image processing such as geometric transformation on an acquired image signal, as described above, and the image blur correction means can be formed by the geometric transformation unit 109.
[0065] When image stabilization is performed using lens-based image stabilization or sensor-based image stabilization, the center of the reference position of the cropping frame described with reference to Figures 5 to 7 corresponds to the value obtained by converting the drive center of the correction lens or the image sensor 101 into a coordinate position on the image. Also, when image stabilization is performed using multiple image stabilization means, the appropriate sum of the value obtained by converting the drive center of the correction lens into a coordinate position, the value obtained by converting the drive center of the image sensor into a coordinate position, and the center of the reference position of the cropping frame becomes the center of the reference position of the image cropping frame.
[0066] In the above embodiment, the subject movement has been described as one-dimensional, but the subject blur and camera shake on the actual image occur two-dimensionally. For example, it may be determined whether to continue subject tracking or switch to camera shake correction for each direction of movement, such as vertical and horizontal directions. In this case, in step S207, the reference position in the direction in which camera shake correction is switched is set based on the subject movement information in the direction in which camera shake correction is switched.
[0067] In addition, in the above-described embodiment, the imaging device 100 has been taken as an example of an image blur correction device, but as long as the image blur correction device can receive an image input from the imaging device, the image blur correction device may be separate from the imaging device 100. For example, an image processing device capable of performing the above-described electronic image blur correction may receive an image input from the imaging device, perform the above-described subject detection and subject movement determination on the input image, and perform electronic image blur correction based on the determination result.
[0068] In addition, in the above embodiment, a description has been given of video shooting, but the present invention is not limited to video shooting as long as multiple consecutive images are acquired; for example, the present invention can also be applied to continuous shooting of still images.
[0069] In the above embodiment, the method of determining whether to switch from subject tracking to image stabilization is not particularly important. However, when automatically switching based on information about the main subject, such as the change over time in the position of the main subject or the moving speed of the main subject, there is a high possibility that switching to image stabilization will occur at the peak of the subject's movement or at the moment when the subject moves in a way that is significantly different from its previous movements. Therefore, it is considered that the effect of setting the reference position based on the information about the change over time in the position of the subject, as in the above embodiment, can be more effectively obtained.
[0070] Although the 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 the gist of the present invention. [Explanation of symbols]
[0071] 100 Imaging device 105 Object detection unit 106 Subject movement information acquisition unit 107 Imaging device movement information acquisition unit 108 Correction amount calculation section 112 Setting section
Claims
1. a subject detection unit that detects a subject from an input image; a subject movement information acquisition unit that acquires subject movement information indicating information on a change over time in a position of a subject detected in the image; an imaging device motion information acquisition unit that acquires imaging device motion information indicating a motion of an imaging device that captures the image; a control unit capable of controlling the image blur correction means in a first mode giving priority to subject tracking for correcting a position of the subject in the image, and a second mode giving priority to blur correction for correcting image blur caused by a movement of the imaging device; a determination unit that determines whether or not to switch from the first mode to the second mode; a setting unit that, when the determination unit determines to switch from the first mode to the second mode, sets a reference position that is a control center of the image blur correction based on the subject movement information.
2. 2. The image blur correction device according to claim 1, wherein after switching to the second mode, the control unit controls the image blur correction means in the second mode by calculating a correction amount from the reference position based on the imaging device movement information.
3. the control unit, in the second mode, controls blur correction by displacing a correction lens included in an optical system that captures the image; 2. The image blur correction device according to claim 1, wherein the reference position is a position of the correction lens when the motion of the image capture device indicated by the image capture device motion information is zero.
4. the control unit controls blur correction by displacing an image pickup element that captures the image; 2. The image blur correction device according to claim 1, wherein the reference position is a position of the image sensor when the motion of the image capture device indicated by the image capture device motion information is zero.
5. The control unit controls blur correction using geometric transformation; 2. The image blur correction device according to claim 1, wherein the reference position is a cut-out position when the motion of the image capture device indicated by the image capture device motion information is zero.
6. The image blur correction device according to claim 1 , wherein the setting unit obtains a center of gravity position of the movement of the subject from a change over time in the movement of the subject indicated by the subject movement information, and sets the reference position based on the obtained center of gravity position.
7. 7. The image blur correction device according to claim 6, wherein the setting unit sets a position obtained by adding a margin for the blur correction to the position of the center of gravity as the reference position.
8. 2. The image blur correction device according to claim 1, wherein the setting unit predicts the movement of the subject based on a change over time in the movement of the subject indicated by the subject movement information, and sets the reference position based on a result of the prediction.
9. 9. The image blur correction device according to claim 8, wherein the setting unit predicts a moving direction of the subject, and sets a position of the image blur correction means at the switching timing, the position being obtained by moving the image blur correction means in the moving direction, as the reference position.
10. The setting unit is 9. The image blur correction device according to claim 8, further comprising: a step of predicting a position of the subject in images to be acquired in the future based on a change over time in the motion of the subject indicated by the subject motion information; and setting the reference position based on the predicted position.
11. The setting unit is 11. The image blur correction device according to claim 10, wherein a position of the image blur correction means at the timing of the switching is set as the reference position, the position being brought closer to the predicted position of the subject.
12. 2. The image blur correction device according to claim 1, wherein after the switching, the control unit moves a control center of the blur correction stepwise from a position of the image blur correction means at the timing of the switching to a reference position based on the subject movement information.
13. 13. The image blur correction device according to claim 12, wherein the control unit performs the blur correction for correcting image blur caused by a movement of the imaging device while moving a control center of the blur correction step by step.
14. The control unit is 2. The image blur correction device according to claim 1, wherein after the switching, even if the movement of the image capture device indicated by the image capture device movement information is zero, the image blur correction means is controlled so that a still subject included in the shooting range changes based on the reference position.
15. 2. The image blur correction device according to claim 1, wherein the control unit moves a control center of the image blur correction based on a reference position set based on the subject movement information and the movement of the image capture device acquired from the image capture device movement information.
16. An image blur correction device according to any one of claims 1 to 15, an imaging element for capturing the image.
17. a subject detection step of detecting a subject from an input image; a subject movement information acquisition step of acquiring subject movement information indicating information on a change over time in a position of the detected subject in the image; an imaging device motion information acquisition step of acquiring imaging device motion information indicating a motion of an imaging device that captures the image; a control step of controlling the image blur correction means in a first mode prioritizing subject tracking for correcting a position of the subject in the image and a second mode prioritizing blur correction for correcting image blur caused by a movement of the imaging device; a determination step of determining whether to switch from the first mode to the second mode; and a setting step of setting a reference position that is a control center of the image blur correction based on the subject movement information when it is determined in the determining step that the first mode should be switched to the second mode.
Citation Information
Patent Citations
Image blur correction device, optical unit, imaging apparatus and control method
JP2017215350A
