Subject tracking device, subject tracking method, and imaging device

The subject tracking device dynamically determines and tracks the intended subject in scenes with multiple moving objects by analyzing motion vectors and directionality, addressing the challenge of tracking in sports photography.

JP7570837B2Active Publication Date: 2024-10-22CANON KK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020116449
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-07-06
Publication Date
2024-10-22
Estimated Expiration
2040-07-06

AI Technical Summary

Technical Problem

Conventional subject tracking devices struggle to dynamically determine and track the intended subject in photographic scenes where multiple subjects are moving vigorously, such as in sports photography, due to the constant change in the main character caused by overtaking and complex motion patterns.

Method used

A subject tracking device that includes an acquisition unit for image signals, a first detection means for subject detection, a second detection means for motion vectors, and a control unit that recognizes subject movement and performs tracking control, determining the main subject based on directionality and movement patterns of multiple subjects.

Benefits of technology

Enables dynamic determination of the tracking target in accordance with the photographer's intention, effectively tracking the main subject in scenes with multiple moving objects, particularly in sports photography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007570837000001
    Figure 0007570837000001
  • Figure 0007570837000002
    Figure 0007570837000002
  • Figure 0007570837000003
    Figure 0007570837000003
Patent Text Reader

Abstract

To provide a subject tracking device that can dynamically determine a tracking target in photographing of a plurality of moving bodies.SOLUTION: An imaging apparatus 1 comprises: a subject detection unit 141 that detects subjects by using image signals output by an image pick-up device 122; and a motion vector detection unit 142 that detects motion vectors of the subjects from the image signals. A camera control unit 132 performs motion pattern recognition processing by using the detected motion vectors of the subjects, and when determining that the motion of the plurality of subjects is a linear motion and the number of subjects having the same motion pattern is equal to or more than a predetermined number, determines it as a collective motion scene. In the determined collective motion scene, the camera control unit 132 sets, from the plurality of subjects performing the linear motion, a subject at the head in a motion direction for a tracking target as a main subject.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technique for determining and tracking a specific subject (main subject) from among a plurality of moving subjects. [Background technology]

[0002] An imaging device such as a digital camera having a subject tracking function is capable of detecting and tracking a subject using image signals continuously output from an imaging element. Automatic focusing is performed on the detected subject, and the subject can be photographed by adjusting brightness, color, etc. to a suitable state. Typical subjects to be detected are human faces and bodies, animals such as dogs and cats, and vehicles such as automobiles and motorcycles. When multiple subjects are detected, a technology has been proposed for tracking a subject selected based on the photographer's intention and photographing it in a focused state.

[0003] Patent Document 1 discloses an autofocus system that can set a person's face as a tracking target with a simple operation. When a photographer performs a focus operation, a best focus range in the shooting screen is detected, and if the face of a person who is a subject is present in the best focus range, the subject is automatically tracked. Patent Document 2 discloses a technology that specifies an appropriate tracking target from information on captured images in a time series. A first area and a second area that includes the first area are set in the shooting screen, and if a state in which the tracking target is detected outside the second area continues for a predetermined time, a new tracking target is specified from the subject included in the first area. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2011-133821 A [Patent Document 2] JP 2015-12493 A Summary of the Invention [Problem to be solved by the invention]

[0005] With conventional technology, it is difficult for a photographer to track a subject that he or she intends to capture in a shooting scene where multiple subjects are moving vigorously, as is expected in shooting sports such as races. In shooting sports where the main character of the competition is constantly changing due to overtaking, subject tracking control that can respond to the ever-changing situation is required. An object of the present invention is to provide a subject tracking device capable of dynamically determining a tracking target when photographing a plurality of moving objects. [Means for solving the problem]

[0006] The apparatus according to an embodiment of the present invention is an object tracking apparatus that detects an object from a captured image and performs tracking control, and includes an acquisition unit that acquires an image signal of the image, a first detection unit that detects an object from an image area within the image, and a second detection unit that detects the object from the acquired image signal. Motion Vectors A second detection means for detecting the object; Motion Vectors and a control means for controlling tracking of a main subject determined from the plurality of detected subjects, the control means determining whether the plurality of detected subjects are moving in the same direction and whether the plurality of detected subjects are moving irregularly. Effect of the Invention

[0007] According to the present invention, it is possible to provide a subject tracking device capable of dynamically determining a tracking target when photographing a plurality of moving objects. [Brief description of the drawings]

[0008] [Figure 1] 1 is a block diagram showing a configuration of an imaging apparatus according to a first embodiment. [Diagram 2] 4 is a flowchart illustrating a main subject determination process according to the first embodiment. [Diagram 3] 11A and 11B are diagrams illustrating a main subject determination process for a linear motion pattern in the close direction. [Figure 4] 13A to 13C are diagrams illustrating a main subject determination process for a horizontal linear motion pattern. [Diagram 5] 11 is a flowchart illustrating a subject movement pattern recognition process. [Figure 6] 1 is a diagram illustrating the relationship between a motion vector and a movement pattern of a subject. [Figure 7] FIG. 1 is a diagram illustrating a problem in determining a main subject in sports photography. [Figure 8] FIG. 13 is a block diagram showing the configuration of an imaging device according to a second embodiment. [Figure 9] 10 is a flowchart illustrating the operation of an imaging apparatus according to a second embodiment. [Figure 10] 11 is a flowchart illustrating frame control at the time of frame-out. [Figure 11] 13 is a flowchart illustrating frame control when an object is obstructed. [Figure 12] 11 is a flowchart illustrating frame control when detection is impossible. [Figure 13] 13 is a flowchart illustrating the operation of the first modified example of the second embodiment. [Figure 14] FIG. 13 is a diagram showing an example of a frame display. [Figure 15] 13 is a flowchart illustrating the operation of the second modification of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. Before describing each embodiment, a technical problem in determining a main subject in sports photography using a subject tracking device included in an imaging device will be described.

[0010] FIG. 7 is a diagram showing a schematic image of a scene in which multiple runners in a track and field event are photographed from the front. The direction of movement of each subject is the approaching direction (the direction approaching the imaging device). We assume a system that is capable of detecting and tracking subjects across the entire screen, and determines the subject closest to the center of the screen as the main subject to be tracked. In many cases when photographing track and field events, the subject that the photographer intends to photograph is the leading runner. Therefore, it is necessary to automatically recognize the leading subject and perform tracking control.

[0011] Fig. 7(A) shows an example of an image taken of subjects A to D during a race. Of the four, subject B is running in the lead, and is located closest to the center of the screen. Therefore, subject B is determined to be the main subject, and the subject is tracked according to the photographer's intention.

[0012] Figure 7(B) shows an example of an image captured a certain amount of time after the image in Figure 7(A) was captured. Subject D has overtaken subject B to become the leader, and the main subject that the photographer intends to capture has switched to subject D. However, subject B is still positioned near the center of the screen and continues to be the main subject. Therefore, it is not possible to track subject D, which the photographer wishes to capture.

[0013] Fig. 7 shows an example of a scene in which multiple runners competing are photographed from the front, but control is also required to correctly track the leading runner in situations in which multiple subjects are photographed from the side or diagonally. As such, it is difficult to track subjects in a shooting scene in which multiple subjects are moving simply by using the method of determining the main subject based on the subject's position or area within the screen as a criterion. In sports photography, where multiple subjects are close together and overtaking occurs, and the main role in the competition is constantly changing, it is necessary to track subjects according to the situation, which changes in a short period of time.

[0014] In the embodiment of the present invention, an example of an imaging apparatus equipped with a subject tracking device capable of determining a subject that matches the photographer's intention as a tracking target in a scene where a plurality of subjects are moving will be described.

[0015] [First embodiment] 1 is a block diagram showing the configuration of an imaging device 1 according to this embodiment. In this embodiment, an example of an imaging system including an interchangeable lens 100 and a camera body (hereinafter simply referred to as the body) 120 is shown. The present invention is not limited to this, and can be applied to digital cameras, video cameras, and silver halide still cameras in which a lens unit is integrated with the body, as well as mobile devices such as smartphones with imaging capabilities. In the following, the subject side is defined as the front side, and the positional relationship of each part is described.

[0016] The interchangeable lens 100 includes a photographing lens unit 101. The photographing lens unit 101 includes, from the front, a main imaging optical system 102, a zoom lens group 103, and a shift lens group 104. The main imaging optical system 102 is composed of multiple lenses. The zoom lens group 103 is a lens group whose focal length can be changed. The shift lens group 104 is a lens group that constitutes an image blur correction system that corrects image blur relative to the optical axis caused by vibration of the imaging device 1. For example, the shift lens group 104 optically corrects image blur by moving in a direction perpendicular to the optical axis of the imaging optical system.

[0017] The zoom encoder 105 detects the position of the zoom lens group 103, and outputs a position detection signal to a lens system control microcomputer (hereinafter referred to as a lens control unit) 113. The angular velocity sensor 111 detects shake of the imaging device 1, and outputs an angular velocity signal that is a shake detection signal to an amplifier 112. The amplifier 112 amplifies the output of the angular velocity sensor 111 and then outputs it to the lens control unit 113.

[0018] The position sensor 106 detects the position of the shift lens group 104, and outputs a position detection signal to an amplifier 115. The amplifier 115 amplifies the output of the position sensor 106 and then outputs it to a lens control unit 113. The lens control unit 113 controls the drive of the shift lens group 104 via a driver 114 based on the position detection signal of the shift lens group 104.

[0019] The interchangeable lens 100 has a mount contact section 116 for connection to the main body section 120. The main body section 120 is provided with a mount contact section 161. When the interchangeable lens 100 is attached to the main body section 120, the lens control section 113 is capable of communicating with a camera system control microcomputer (hereinafter referred to as a camera control section) 132 in the main body section 120 via the mount contact sections 116, 161.

[0020] The main body 120 includes a shutter 121, an imaging element 122 such as a CMOS (complementary metal oxide semiconductor) image sensor, an analog signal processing circuit (AFE) 123, and a camera signal processing circuit 124. The analog signal processing circuit 123 acquires an output signal from the imaging element 122, performs analog signal processing, and outputs the signal to the camera signal processing circuit 124. The camera signal processing circuit 124 includes a subject detection unit 141 and a motion vector detection unit 142. The subject detection unit 141 detects a subject based on an image signal. The motion vector detection unit 142 detects motion vectors in the horizontal, vertical, and near directions based on a plurality of image signals captured at different times.

[0021] The main body 120 also includes a timing generator (TG) 125 and a camera operation unit 131. The timing generator 125 sets the operation timing of the image sensor 122 and the analog signal processing circuit 123. The camera operation unit 131 includes a power switch, a release switch, a switch for changing settings for shooting, and the like, and outputs operation input signals to a camera control unit 132.

[0022] The camera control unit 132 controls the imaging device 1. The camera control unit 132 includes a shutter control unit 151, an automatic focusing control unit 152, and a subject tracking control unit 153. The shutter control unit 151 controls the operation of the shutter 121. The driver 133 drives the shutter drive motor 134 to perform the shutter operation according to a control signal from the shutter control unit 151. The automatic focusing control unit 152 transmits a control command signal to the lens control unit 113 to perform focus adjustment control of the imaging optical system. The subject tracking control unit 153 performs main subject determination and tracking control. There are various known methods for subject tracking technology that detects the main subject, which is a moving object, and captures it within the angle of view. The processes performed by each control unit of the camera control unit 132 are realized by a CPU (Central Processing Unit) included in the camera control unit 132 executing a predetermined program.

[0023] The main body 120 includes a mount contact portion 161 for connection to the interchangeable lens 100. The camera control portion 132 and the lens control portion 113 are capable of serial communication with each other via the mount contact portions 116 and 161 at a predetermined timing.

[0024] The memory card 171 has a storage medium for storing data of the captured image. The display unit 172 has a display device such as a liquid crystal panel (LCD). The display unit 172 displays the image of the subject being captured on a monitor, and displays the image of the subject being captured.

[0025] Next, the operation of the imaging device 1 will be described. When the camera operation unit 131 is operated to turn the imaging device 1 on, the camera control unit 132 detects this state change. The camera control unit 132 supplies power to each circuit unit constituting the imaging system and performs initial settings. With the interchangeable lens 100 attached to the main body unit 120 and the mount contact units 116, 161 electrically connected, power is supplied from the main body unit 120 to the interchangeable lens 100, and the lens control unit 113 performs initial settings for the interchangeable lens 100. Thereafter, communication is started between the lens control unit 113 and the camera control unit 132 at a predetermined timing.

[0026] In the camera signal processing circuit 124, a subject detection section 141 detects a subject from an image signal acquired by the image sensor 122, and a motion vector detection section 142 detects a motion vector from a plurality of images captured at different times.

[0027] When the subject tracking control unit 153 determines the main subject to be tracked, the display unit 172 displays a frame of the main subject together with the image. The photographer starts the shooting operation while visually recognizing the main subject based on the display frame. The camera operation unit 131 has a two-stage release switch that is turned on and off by operating the release button. When the user half-presses the release button, the automatic focus control unit 152 controls the interchangeable lens 100 through the lens control unit 113. The lens control unit 113 controls a focus lens (not shown) that constitutes the imaging optical system, and focuses on the main subject to achieve a focused state. When the user fully presses the release button, the shutter control unit 151 controls the shutter 121 to perform shooting processing. The analog signal processing circuit 123 acquires the output signal of the imaging element 122 and performs signal processing, and the image data processed by the camera signal processing circuit 124 is displayed on the display unit 172 and stored in the memory card 171.

[0028] Next, a main subject determination process that enables a subject to be determined in accordance with the photographer's wishes will be described using an example of a photographic scene in which a number of subjects are moving in a straight line, such as in track and field events.

[0029] 2 is a flowchart illustrating the main subject determination process. The process starts, for example, when the power of the camera is turned on and an image signal is output to the camera signal processing circuit 124. Alternatively, the process may start after an operation to select the main subject is received by the camera operation unit 131.

[0030] In S201, subject detection unit 141 detects the image area of ​​the subject included in the image based on the image signal output from image sensor 122, and generates subject detection information. The subject detection information includes information on the type of subject (person, animal, vehicle), part (eyes, face, body), position, size, etc.

[0031] In S202, motion vector detection unit 142 detects the magnitude and direction of the motion vector of the subject image included in the entire image. The motion vector detection process is performed based on the result of block matching between the current image signal and the image signal immediately before it, the defocus amount related to the image, and the subject detection information generated by subject detection unit 141.

[0032] In S203, the subject tracking control unit 153 recognizes the motion patterns of all subjects detected by a motion pattern recognition process of the subjects, which will be described later. The motion patterns of the subjects include horizontal linear motion, vertical linear motion, and linear motion in the close direction. Note that the motion patterns include stationary states.

[0033] In S204, the subject tracking control unit 153 determines the main subject from the subject detection information generated in S201. The method of determining the main subject is not limited to a specific method. For example, there is a method based on subject type information, a method that prioritizes subjects with large subject sizes, or a method that prioritizes subjects whose subject positions are closer to the center of the screen. The subject tracking control unit 153 performs main subject determination suitable for the shooting conditions and shooting mode settings.

[0034] In S205, the subject tracking control unit 153 judges whether or not the main subject has been found by the main subject determination process in S204. If it is judged that the main subject does not exist, the process ends because a trackable main subject has not been found. If it is judged that the main subject exists, the process proceeds to S206.

[0035] In S206, the subject tracking control unit 153 determines whether the movement pattern of the main subject recognized in S203 is linear movement. If it is determined that the movement of the main subject is not linear movement, it is determined that the scene is not a movement scene during a race. In this case, the process proceeds to S212 to track the main subject determined in S204. In S212, the subject tracking control unit 153 sets the main subject as a tracking target and ends the process.

[0036] On the other hand, if it is determined in S206 that the motion of the main subject is linear motion, the process proceeds to S207. The process of S207 is a process for determining whether or not the scene is a motion scene during a race. In S207, the subject tracking control unit 153 determines whether or not there are a predetermined number or more of subjects moving linearly in the same direction, that is, whether or not the number of subjects moving in the same direction is equal to or greater than a threshold value. The predetermined number is a threshold value for determining the number of subjects, and is a fixed value or a variable value according to the sport or the like. If it is determined that there are a predetermined number or more of subjects with the same motion pattern, it is determined that the scene is a group motion scene in which a race is taking place. In this case, the process proceeds to S208. If it is determined that the number of subjects with the same motion pattern is less than the predetermined number, the process proceeds to S209.

[0037] In determining whether a group of subjects are competing, the type of the subjects is the same (people are racing against other people). Therefore, subjects of a different type (e.g., dogs) from the main subject (e.g., people) are excluded from the group movement scene determination.

[0038] In S208, the subject tracking control unit 153 sets a predetermined flag (hereinafter, referred to as a group motion scene determination flag) to TRUE (true value). In S209, the group motion scene determination flag is set to FALSE (false value). After the process of S208 or S209, the process proceeds to S210.

[0039] In S210, the subject tracking control unit 153 judges whether the motion scene currently being raced is a group motion scene. If the value of the group motion scene judgment flag is FALSE, the process proceeds to S212, and tracking control of the current main subject is continued. If the value of the group motion scene judgment flag is TRUE, the process proceeds to S211. This is to reselect a main subject suitable for the state of the current motion scene.

[0040] In S211, the subject tracking control unit 153 determines the subject at the forefront in the direction of movement among multiple subjects moving linearly in the same direction. The subject tracking control unit 153 determines the forefront subject as the main subject. In S212, the subject tracking control unit 153 sets the determined main subject as the tracking target, and then ends the series of processes.

[0041] FIG. 3 is a diagram showing a schematic diagram of a scene of group motion in which a plurality of subjects are moving in a straight line in the direction of closeness. The diagram on the left shows example images of subjects A to E, and the right side shows the motion pattern, face size, and nearest rank of each subject. Subjects A to D are subjects (e.g., runners) moving in a group in the direction of closeness. Subject E is a stationary subject (such as an umpire). Since the group motion is in the direction of closeness, the nearest subject moving in a straight line is determined to be the leading subject and is determined to be the main subject. However, since the nearest subject E is stationary, it is excluded from the main subject. In the main subject determination process, which subject is the nearest is determined based on the face size and defocus amount of the subject. The subject tracking control unit 153 determines the moving subject D determined to be located nearest as the main subject.

[0042] FIG. 4 is a diagram showing a schematic diagram of a group movement scene in which a plurality of subjects are moving in a straight line to the right. The diagram on the left shows an example of images of subjects A to D, and the diagram on the right shows the movement pattern of each subject and the order of their positions from the right edge of the screen. Subjects A to D are subjects moving in a group to the right. Since the direction of group movement is to the right, subject D, which is located at the rightmost position, is determined to be the leading subject and is determined to be the main subject. Here, in this embodiment, the subject at the forefront in the direction of movement is determined to be the main subject for the purpose of capturing a person who is moving at the top in a sports shooting scene, but the present invention is not limited to this purpose or control. For example, the leading subject in the direction of movement of the group of subjects may be weighted the most, and then weighted less in descending order, and the main subject may be determined by a comprehensive evaluation in combination with other judgment conditions (whether a face or the whole body has been detected, information about the vicinity of the center, information about the subject having been following another subject in the past, etc.). In addition, for example, for the purpose of capturing a subject lagging behind the group, the subject at the end of the direction of movement may be determined to be the main subject, or a large weight may be applied for the main subject evaluation. In this manner, the present invention encompasses various types of control as long as it is control for determining a main subject based on the direction of movement of a group of a plurality of subjects.

[0043] The subject movement pattern recognition process (FIG. 2: S203) will be described with reference to the flowchart of FIG. 5 and FIG. 6. FIG. 6 is a diagram showing how the movement vector of one subject changes over time for a given period, for each movement pattern of the subject. The horizontal axis represents the passage of time, and the vertical axis represents the amount of the subject's movement vector.

[0044] First, in S301, motion vector information of the subject in three directions within the screen for a predetermined consecutive period is acquired. The three directions are the horizontal direction (X direction), the vertical direction (Y direction), and the closest direction. Fig. 6 shows an example in which motion vector information of the subject acquired over five consecutive frames is used.

[0045] In S302, a determination process is performed as to whether or not all of the motion vectors in the near direction within a predetermined period are equal to or greater than a threshold value (denoted as β). If it is determined that all of the motion vectors in the near direction within a predetermined period are equal to or greater than the threshold value β, the process proceeds to S303. If it is determined that any of the motion vectors in the near direction within a predetermined period are not equal to or greater than the threshold value β, the process proceeds to S306.

[0046] In S303, a determination process is performed as to whether or not all horizontal and vertical motion vectors within a predetermined period are equal to or less than a threshold value (denoted as α). If it is determined that all horizontal and vertical motion vectors within a predetermined period are equal to or less than the threshold value α, the state is as shown in FIG. 6(A). In this case, the process proceeds to S304, where a setting process is performed in which the motion pattern of the subject is linear motion in the approaching direction. If it is determined that either the horizontal or vertical motion vector within the predetermined period is not equal to or less than the threshold value α, the process proceeds to S305. As shown in FIG. 6(D), the motion of the subject is irregular and not linear, so in S305, a setting process is performed in which the motion pattern of the subject is irregular motion.

[0047] In S306, a determination process is performed as to whether or not all horizontal motion vectors within a predetermined period are equal to or greater than the threshold value β. If it is determined that all horizontal motion vectors within the predetermined period are equal to or greater than the threshold value β, the process proceeds to S307. If it is determined that any of the horizontal motion vectors within the predetermined period are not equal to or greater than the threshold value β, the process proceeds to S309.

[0048] In S307, a determination process is performed as to whether or not all of the motion vectors in the close direction and the vertical direction within a predetermined period are equal to or less than the threshold value α. If it is determined that all of the motion vectors in the close direction and the vertical direction within a predetermined period are equal to or less than the threshold value α, the state is as shown in FIG. 6B. In this case, the process proceeds to S308, and a setting process is performed in which the motion pattern of the subject is set to horizontal linear motion. If it is determined that any of the motion vectors in the close direction and the vertical direction within a predetermined period are not equal to or less than the threshold value α, the process proceeds to S305, and a setting process is performed in which the motion pattern of the subject is set to irregular motion.

[0049] In S309, a determination process is performed as to whether or not all vertical motion vectors within a predetermined period are equal to or greater than the threshold value β. If it is determined that all vertical motion vectors within the predetermined period are equal to or greater than the threshold value β, the process proceeds to S310. If it is determined that any of the vertical motion vectors within the predetermined period are not equal to or greater than the threshold value β, the process proceeds to S312.

[0050] In S310, a determination process is performed as to whether or not all of the motion vectors in the close direction and the horizontal direction within a predetermined period are equal to or less than the threshold value α. If it is determined that all of the motion vectors in the close direction and the horizontal direction within a predetermined period are equal to or less than the threshold value α, the process proceeds to S311. In S311, a setting process is performed to set the motion pattern of the subject to linear motion in the vertical direction. Also, if it is determined that either the motion vector in the close direction or the horizontal direction within a predetermined period is not equal to or less than the threshold value α, the process proceeds to S305, and a setting process is performed to set the motion pattern of the subject to irregular motion.

[0051] In S312, a determination process is performed as to whether or not all of the motion vectors in the three directions within a predetermined period are equal to or less than the threshold value α. If it is determined that all of the motion vectors in the three directions within a predetermined period are equal to or less than the threshold value α, the state is as shown in FIG. 6C. In this case, the process proceeds to S313, and a setting process is performed in which the motion pattern of the subject is set to a stationary state. If it is determined that any of the motion vectors in the three directions within a predetermined period are not equal to or less than the threshold value α, the process proceeds to S305, and a setting process is performed in which the motion pattern of the subject is set to irregular motion. After the processes of S304, S305, S308, S311, and S313 are performed, the series of processes is terminated.

[0052] According to this embodiment, in a scene where a group of subjects are moving linearly in the same direction, the leading subject can be determined and the subject can be determined as the main subject. This makes it possible to provide an imaging device that can determine a main subject that is more in line with the photographer's intention in sports photography scenes such as track and field events. The application of the present invention is not limited to the above-mentioned form. For example, in the process of determining the leading subject, various information such as not only the size and position of the image area of ​​the subject but also the amount of change in the motion vector and facial expression can be used. In addition, in the process of determining the linear motion direction, by using not only the motion vector but also information indicating the face direction, the motion direction can be determined more accurately.

[0053] [Second embodiment] Next, a second embodiment of the present invention will be described. An imaging device having a function of detecting and tracking a human face or pupil, an animal, a vehicle, etc., and enabling a main subject to be determined according to the photographer's intention in a moving scene, etc., is exemplified. In order to clarify which subject the imaging device is shooting, it is common to display a face frame, pupil frame, animal corresponding frame, etc., for the subject to be tracked. By looking at the frame display, the photographer can confirm whether the imaging device has properly captured the desired subject, and can shoot with peace of mind.

[0054] However, if the display frame for the subject disappears immediately when the subject is lost (hereinafter, referred to as the lost state), if the lost state is instantaneous, the display frame will be displayed again immediately after the display frame disappears. If this phenomenon is repeated, the display will be very unsightly for the user, so there is a method for appropriately setting the retention time during which the subject may return from the lost state to a state where it can be tracked.

[0055] The time for which the frame display continues even in a lost state is uniquely determined for the type and part of the subject, and the display may not necessarily match the photographer's intention. Also, simply continuing or erasing the display frame does not inform the photographer of the current situation. The photographer cannot determine by looking at the current display frame whether the subject is being tracked or is in a lost state, so there is a possibility that he or she will be unsure of whether it is okay to continue shooting.

[0056] In this embodiment, therefore, a process for notifying the photographer of the judgment status of the imaging device and a process for displaying a frame according to the photographer's intention will be described in detail. Note that in this embodiment, the same matters as those in the first embodiment will be omitted from detailed description by reusing the same symbols and signs already used, and differences will be mainly described.

[0057] 8 is a diagram showing an example of the configuration of the imaging device 1 according to this embodiment. The diagram shows an example of the configuration of a mirrorless camera having a function of detecting the face of a subject. The photographing lens unit 101 of the interchangeable lens 100 that can be attached to the main body 120 includes a main imaging optical system 102, an aperture 203, and a focus lens group 204 that performs focus adjustment. The lens control unit 113 includes an aperture control unit 212 that controls the operation of the aperture 203, and a focus lens control unit 213 that controls the operation of the focus lens group 204. The focus lens group 204 moves in the optical axis direction of the photographing lens unit 101 in response to a control signal from the focus lens control unit 213 to perform focus adjustment.

[0058] 8 shows a fixed focal length lens as an example of an interchangeable lens for the sake of simplicity, but in the case of a zoom lens whose focal length is changeable, the lens control unit 113 acquires focal length information from the output of an encoder for detecting the position of the zoom lens. In the case of an interchangeable lens having an image blur correction function, the lens control unit 113 controls the driving of a shift lens group for image blur correction. The interchangeable lens 100 is electrically connected to the main body unit 120 via a mount contact unit 116.

[0059] An imaging element 122 included in the main body 120 outputs an imaging signal to an analog signal processing circuit 123. The signal processed by the analog signal processing circuit 123 is sent to a camera signal processing circuit 124. A camera control unit 132 controls the driving of the shutter 121 to control the imaging operation according to an operation input signal such as a release switch 181 operated by the photographer. Data of a captured image is stored in a memory card 171 according to the pressed state of the release switch 181.

[0060] The angular velocity sensor 126 is a gyro sensor that detects the movement of the main body 120 of the imaging device 1. The camera control unit 132 acquires the output signal of the angular velocity sensor 126, and controls the camera in accordance with the shake detection information. In this embodiment, an example is shown in which the main body 120 is provided with the angular velocity sensor 126, but there is also a form in which the interchangeable lens 100 is provided with an angular velocity sensor. Also, there is also a form in which the main body 120 and the interchangeable lens 100 each include an angular velocity sensor.

[0061] The display unit 172 has a display device that displays an image during shooting on a monitor and also displays an image after shooting. The touch panel 173 is an operation input device that allows the photographer to specify coordinates on the display unit 172 with his / her finger or a touch pen, and can be configured integrally with the display screen unit of the display unit 172. For example, the touch panel 173 is configured such that the light transmittance does not interfere with the display of the display unit 172, and is a built-in (in-cell) device that is built into the display surface of the display unit 172. A GUI (Graphical User Interface) is configured by associating the input coordinates on the touch panel 173 with the display coordinates on the display unit 172. The user can perform operation input with the feeling of directly operating the screen displayed on the display unit 172. Data on the operation state of the touch panel 173 is managed by the camera control unit 132.

[0062] The camera control unit 132 of the main body unit 120 and the lens control unit 113 of the interchangeable lens 100 perform serial communication at a predetermined timing via mount contact units 116, 161. For example, focus lens driving information, aperture driving information, etc. are transmitted from the camera control unit 132 to the lens control unit 113, and optical information such as focal length is transmitted from the lens control unit 113 to the camera control unit 132.

[0063] The camera signal processing circuit 124 includes a face / head information detection unit 241, a distance information acquisition unit 242, and a vector detection unit 243. The face / head information detection unit 241 detects a specific part (such as the face or head) of the subject based on the acquired image signal.

[0064] The distance information acquisition unit 242 acquires the distribution of the defocus amount of the entire screen or a predetermined area with respect to the focal plane position in the current focus detection state. Examples of distance information or depth information that indicates the depth of the subject in the depth direction include an image shift amount map and a defocus amount map. The image shift amount map is calculated from a plurality of viewpoint images with different viewpoints. For example, in an imaging surface phase difference detection method using a pupil division type imaging element, data of viewpoint images can be acquired by acquiring a plurality of pixel signals from a pixel unit having a plurality of microlenses and a plurality of photoelectric conversion units corresponding to each microlens. The defocus amount map is calculated by multiplying the image shift amount by a predetermined conversion coefficient. A distance map or a distance image in which the defocus amount is converted into distance information of the subject represents a distance distribution related to the captured image. The information of the distance image is two-dimensional information in which the value indicated by each pixel represents distance information of the subject present in the area of ​​the captured image corresponding to the pixel. The distance information acquisition unit 242 can acquire information of the distance distribution and the depth distribution related to the captured image.

[0065] The vector detection unit 243 divides the screen into a predetermined number of regions and detects a motion vector for each divided region. The information acquired by the face / head information detection unit 241, the distance information acquisition unit 242, and the vector detection unit 243 is sent to the camera control unit 132.

[0066] The camera control unit 132 includes a target subject setting unit 251 , a subject tracking control unit 252 , a subject peripheral information confirmation unit 253 , a subject information confirmation unit 254 , a subject lost determination unit 255 , and a display frame control unit 256 .

[0067] The target subject setting unit 251 sets a target subject (hereinafter also referred to as a main subject) based on the face / head information detected by the face / head information detection unit 241. The subject tracking control unit 252 performs tracking control of the target subject using the face / head information of the target subject set by the target subject setting unit 251, the distance information acquired by the distance information acquisition unit 242, and the like. The subject surroundings information confirmation unit 253 performs a process of confirming defocus information around the target subject from the information acquired by the distance information acquisition unit 242. The subject information confirmation unit 254 performs a process of confirming the detection / tracking state of the main subject.

[0068] The subject lost determination unit 255 performs a process of determining whether or not the main subject has become lost. The display frame control unit 256 controls the display of a detection and tracking frame corresponding to the face / head information being detected and tracked on the screen of the display unit 172. The camera control unit 132 controls the detection and tracking frame to be displayed on the display unit 172 based on the detection result of the face / head information and the acquisition result of the distance information sent from the camera signal processing circuit 124.

[0069] Fig. 9 is a flowchart for explaining the operation performed by the camera control unit 132. The process in Fig. 9 is executed once the face (head) of a person who is the main subject is detected, and every time an image is generated for each frame until the state transitions to a lost state.

[0070] 9, processing is performed to check the movement of the imaging device 1. Motion information of the imaging device 1 is acquired by the angular velocity sensor 126, and processing is performed to check how the photographer moved the imaging device 1 using this information. The motion information of the imaging device 1 is stored in a predetermined memory.

[0071] In the next step S1202, camera control unit 132 performs a process of checking the movement of the subject within the angle of view using vector information, etc. Target subject setting unit 251 sets a specific subject within the angle of view, and stores the movement information in memory. In the next step S1203, surrounding information checking unit 253 performs a process of checking the defocus amount of the main subject and its surrounding area, and stores the information on the change in memory. The information acquired in steps S1201 to S1203 is used for judgment after the subject becomes lost. After S1203, the process proceeds to S1204.

[0072] In S1204, the subject lost determination unit 255 determines whether the subject is in a lost state. If it is determined in S1204 that the subject is in a lost state, the process proceeds to S1205, and if it is determined that the subject is not in a lost state, the process ends.

[0073] In S1205, the display frame control unit 256 changes the display of the frame for the subject to a display corresponding to the lost state. For example, the color of the displayed frame is changed, or the frame line is changed from a solid line to a dashed line. Any change method may be used as long as the photographer can identify the change in the display frame and the visibility of the display information on the display unit 172 is not impaired.

[0074] The reasons for a subject being lost can be broadly divided into three categories. The first reason is when the main subject being photographed goes outside the angle of view. The second reason is when the main subject is blocked by an obstacle. For example, a vehicle passes in front of the photographer, or a person being tracked goes into the shadow of a building. The third reason is caused by the performance of the detector, and when it becomes impossible to detect or track the main subject. For example, when a person who is the main subject moves too far away and the size of their face image becomes smaller than the minimum size that can be detected. Appropriate control is required for each cause of the lost state.

[0075] After S1205, the process proceeds to S1206, where subject lost determination unit 255 performs a process of determining whether or not the main subject has gone out of frame for the first reason. This process can be performed based on whether or not the main subject has moved to the edge of the angle of view and is in a lost state. If it is determined that the main subject has gone out of frame, the process proceeds to S1208, and if it is determined that the main subject has not gone out of frame, the process proceeds to S1207.

[0076] In S1207, the subject lost determination unit 255 determines whether the subject is blocked by another object as the situation when the subject becomes lost for the second reason. For example, when the lost position of the subject is within a predetermined range from the center position of the angle of view and the subject becomes lost, it can be determined by checking whether the defocus amount of the peripheral area of ​​the subject suddenly changes to the closer side. When the subject becomes lost while moving, it can be determined by detecting the change in the defocus amount in the moving direction of the subject. When a vehicle or the like passes in front of a stationary person, it can be determined by detecting the change in the defocus amount in the peripheral area of ​​the person. The subject lost determination unit 255 determines the blocking state of the main subject by changing the position for checking the defocus amount according to the situation of the subject. When it is determined in S1207 that the main subject has become lost due to being blocked, the process proceeds to S1209, and when it is determined that the main subject is not blocked, the process proceeds to S1210.

[0077] In S1208, the display frame control unit 256 performs frame control suitable for a lost state when the subject is out of frame, and then ends the series of processes. In addition, in S1209, the display frame control unit 256 performs frame display control suitable for a lost state when the main subject is occluded, that is, a situation when the main subject is occluded. Then, ends the series of processes. In addition, in S1210, the display frame control unit 256 performs frame display control when it becomes impossible to detect the main subject. If it is determined in S1207 that the main subject is not occluded, it is determined that the situation has changed to one where it is impossible to detect the main subject (third reason), and the series of processes ends after the process of S1210 is performed.

[0078] 10 to 12 are flowcharts for explaining display frame control according to a lost state of a subject. Fig. 10 is a flowchart for explaining control when a lost state occurs due to the main subject being out of frame. S1208 (frame control when out of frame) in Fig. 9 will be described in detail.

[0079] S1301 in FIG. 10 is a process for determining whether the photographer is tracking a subject. This determination process is performed based on the camera movement confirmed in S1201 in FIG. 9 and the movement of the subject in the angle of view confirmed in S1202 in FIG. 9. For example, if the photographer is moving the imaging device 1 and the position change of the image of the main subject is small compared to the amount of movement of the imaging device, it can be determined that the photographer is tracking the subject. Also, if the subject is tracked until the subject goes out of the frame and the direction of movement of the imaging device 1 does not change after the subject goes out of the frame, it can be determined that the photographer is not continuing to track the subject that was the target. If it is determined in S1301 that the photographer is tracking the subject with the imaging device 1, the process proceeds to S1302. If it is not determined that the subject is being tracked, the process proceeds to S1306.

[0080] S1302 is a process for determining whether or not the main subject being tracked has been redetected. Subject information confirmation unit 254 performs a process for confirming whether or not the main subject has been redetected. If it is determined that the main subject has been redetected, the process proceeds to S1303, and if it is determined that the main subject has not been redetected, the process proceeds to S1304.

[0081] In S1303, the display frame control unit 256 again controls to display the detection and tracking frame, and then ends the process. In S1304, a determination process is performed as to whether a predetermined time has elapsed since the subject was lost. The predetermined time is a threshold time for the duration of the lost state. If it is determined in S1304 that the predetermined time has not elapsed since the lost state occurred, the process proceeds to S1305, and if it is determined that the predetermined time has elapsed since the lost state occurred, the process proceeds to S1308.

[0082] In S1305, the display frame control unit 256 continues the frame display in the lost state (fixed frame display), and then returns to the process of S1301. Also, in S1308, the display frame control unit 256 performs a process of erasing the frame display, and then ends the series of processes.

[0083] On the other hand, in S1306, a determination process is performed as to whether or not a new subject other than the main subject that has been tracked up until that point has been detected. If it is determined that a new subject has been detected, the process proceeds to S1307, and if it is determined that a new subject has not been detected, the process proceeds to S1308. In S1307, the display frame control unit 256 performs control to display a detection and tracking frame for the newly detected subject, and then ends the series of processes.

[0084] As described above, when the main subject being tracked goes out of frame, the process immediately switches to waiting for redetection or searching for a new subject, depending on whether the photographer is still tracking the main subject. Therefore, it is possible to control the transition to a display frame that is more in line with the photographer's intentions.

[0085] FIG. 11 is a flowchart for explaining control when a lost state occurs due to the subject being blocked by another object or the like. S1209 (frame control when blocked) in FIG. 9 will be described in detail. The main difference between the case where the lost state of the main subject occurs due to frame-out as described in FIG. 10 and the case where the lost state occurs while the main subject is blocked is that in the latter case, it is possible to determine whether or not the main subject that has become lost can be re-detected. With respect to the determination result of whether the main subject is blocked in S1207 in FIG. 9, it is assumed that the main subject before the occurrence of the lost state has not moved and the photographer has not moved the imaging device 1. In this situation, it is estimated that a vehicle or the like has passed in front of the main subject, so that the main subject is likely to be detected again. In addition, it is assumed that the photographer has moved the imaging device 1 in pursuit of the subject. If the defocus amount in the shake direction of the imaging device 1 indicates a value on the close side up to the edge of the angle of view, it can be estimated that the object blocking the main subject is large and the main subject will not be detected again.

[0086] In Fig. 11, the process of determining whether the subject is detected again is performed in S1401 and S1402. The other processes are the same as those in Fig. 10, so the detailed description of those processes will be omitted by reusing the step numbers used in Fig. 10. This omission method will also be used in the flowcharts described later.

[0087] 11, a determination process is executed as to whether the main subject moved before the camera became lost. If it is determined that the main subject moved before the camera became lost, the process proceeds to S1301, and if it is determined that the main subject did not move before the camera became lost, the process proceeds to S1302. If it is determined in S1301 that the camera is tracking the subject, the process proceeds to S1402, and if it is determined that the camera is not tracking the subject, the process proceeds to S1306.

[0088] In S1402, a process is performed to determine whether or not it is possible to detect the main subject again from the state of the main subject being blocked and lost. If it is determined that the main subject can be re-detected, the process proceeds to S1302, and if it is determined that the main subject cannot be re-detected, the process proceeds to S1306.

[0089] When proceeding to the process of S1302, it is possible to perform detection of the main subject again. In S1302, a process of determining whether the main subject has been detected again is executed. The process from S1302 onwards is the same as the process in the frame control at the time of frame out in Fig. 10, so a detailed description will be omitted.

[0090] Fig. 12 is a flow chart for explaining the control when the subject is lost due to exceeding the detectable limit. S1210 (frame control when detection is impossible) in Fig. 9 will be described in detail. In Fig. 12, it is also possible to determine whether the main subject can be redetected, so the latter half of the process shown in Fig. 12 is the same as Fig. 10.

[0091] 12, a process of determining whether the main subject had moved away from imaging device 1 before the lost state is performed. Whether the main subject has moved away from imaging device 1 can be determined from distance information of the main subject output by distance information acquisition unit 242. If it is determined that the main subject had not moved away from imaging device 1 before the lost state was entered, the process proceeds to S1502. If it is determined that the main subject had moved away from imaging device 1 before the lost state was entered, it is estimated that the main subject has moved far beyond the detection limit, and it is determined that the main subject will not be detected again, and the process proceeds to S1306.

[0092] In S1502, a process is performed to determine whether the photographer was tracking the main subject with the imaging device 1. If the main subject becomes lost while the photographer was tracking the main subject with the imaging device 1, this means that the main subject suddenly becomes undetectable. For example, it is possible that a state where the main subject cannot be detected occurs accidentally due to some cause, resulting in the main subject being lost. In other words, if it is determined in S1502 that the main subject was being tracked, it can be determined that there is a high possibility that the main subject will be detected again, so the process proceeds to S1302. Also, if it is determined in S1502 that the photographer was not tracking the main subject with the imaging device 1, it can be determined that the photographer wants to photograph another subject, so the process proceeds to S1306. The same processes as those in FIG. 10 are performed from S1302 to S1306 onwards.

[0093] The above processing enables frame display control according to the photographer's intention. If it is determined that the photographer is tracking the main subject with the imaging device, the system waits for redetection, and if it is determined that the photographer is not tracking the main subject, the system immediately prepares for the next detection.

[0094] In this embodiment, when the main subject becomes lost, the photographer is notified of the occurrence of the lost state, and then the control of the display frame is changed according to the lost state. This allows the photographer to grasp the current state of subject detection and tracking. Furthermore, the frame display control is changed depending on whether the photographer is tracking the main subject with the imaging device and the condition of the lost state, so that the frame display can be performed according to the photographer's intention.

[0095] [Modification 1 of the second embodiment] Next, a first modified example of the second embodiment will be described. In the first modified example, it is assumed that when a subject is lost, the imaging device continues to display a frame indicating that the subject is lost, in accordance with the photographer's intention. In this case, a process is performed to notify the photographer of how long the frame will remain displayed and how long the frame will remain displayed.

[0096] 13 is a flowchart for explaining the operation of Modification 1. The processes of S1601 to S1606 are added to Fig. 10. The processes of S1301 to S1303 and S1305 to S1308 in Fig. 13 are the same as those in Fig. 10.

[0097] If it is determined in S1302 that the subject has not been redetected, the process proceeds to S1601. In S1601, the camera control unit 132 determines whether a lost timer that measures the duration of the lost state is in operation. If it is determined that the lost timer is not in operation, the process proceeds to S1602, and if it is determined that the lost timer is in operation, the process proceeds to S1604.

[0098] In S1602, the camera control unit 132 executes a process for setting the lost timer value, and then proceeds to the process of S1603. The set time value of the lost timer in S1602 is, for example, about 2 seconds, and is changed according to the situation. For example, even if it is determined that the imaging device 1 is in a state of tracking the main subject, the smaller the amount of movement (difference) of the main subject, the easier it is to redetect it. In such a case, the set time value of the lost timer can be set even longer. The difference here is the difference in position between images of the same subject at different times, and it is possible to calculate the amount of movement of the subject position within the angle of view. The camera control unit 132 can obtain the amount of movement from the vector detection unit 243 and confirm it.

[0099] After S1602, the lost timer starts operating in S1603, and the process proceeds to S1604. After the lost timer starts operating, or if it is already operating, a process of determining whether the duration of the lost state (lost time) is equal to or less than a set value is executed in S1604. If it is determined that the lost time is equal to or less than the set value of the lost timer, the process proceeds to S1305, and if it is determined that the lost time exceeds the set value, the process proceeds to S1308. In S1305, the display frame control unit 256 performs a process of displaying a frame of the lost state, and then proceeds to S1605 to perform a process of displaying the lost timer value. After the process of S1605, the process proceeds to S1302.

[0100] On the other hand, if it is determined in S1604 that the lost time has exceeded the set value of the lost timer, the process proceeds to S1308. In other words, if the subject has not been redetected even after the set time has elapsed, it is determined that the possibility of redetecting the main subject thereafter is low. After the frame display is erased in S1308, the process proceeds to S1606.

[0101] After the process of S1308, a reset process of the lost timer and a clear process of the timer value display are executed in S1606, and then the series of processes is terminated. In addition, when a subject is detected again and a frame indicating the detection and tracking status is displayed (S1303), and when a detection and tracking frame for a new subject is displayed (S1307), the reset process and the clear process are executed in S1606.

[0102] Fig. 14(A) is a schematic diagram showing a display example. The diagram on the left shows an example in which a detection and tracking frame 1401 is superimposed on an image of the main subject. The diagram in the middle shows an example in which a main subject has become lost, and an image of part of the main subject, a lost state frame 1402, and a lost timer value of "6" are displayed. The diagram on the right shows an example in which the main subject continues to be lost, and a lost state frame 1402 and a lost timer value of "1" are displayed. The photographer can see how much time is left until the frame disappears by watching the progress of the lost timer value, which is displayed as a down countdown.

[0103] In this modified example, when the main subject is lost and there is a high possibility that the main subject will be found again, the time value until the frame display is erased is displayed near the frame 1402. In addition to displaying the state close to the photographer's intention (photographing the main subject), it is possible to provide a timer value display that is easy for the photographer to use. Note that although the lost determination when the main subject goes out of frame has been described as an example, the same applies to lost determination for other reasons.

[0104] [Modification 2 of the second embodiment] Next, a second modification of the second embodiment will be described. In contrast to the first modification, the second modification shows a process of displaying a frame by predicting where a main subject that has once become lost will reappear next.

[0105] Assume that the main subject gets behind another object during shooting. For example, if the main subject passes behind a thick pillar, the main subject will be lost while it is behind the pillar, but will be able to be detected and tracked again after it passes the pillar. In this case, the camera control unit 132 can predict the location (position within the image) and time when the main subject can be detected again based on the distance to the main subject, the distance to the pillar, the width of the pillar, and the moving speed of the main subject.

[0106] Fig. 15 is a flowchart explaining the operation of Modification 2. The prediction process of the main subject to be photographed is performed only when the main subject is blocked by another object and is moving. Therefore, in Fig. 15, prediction processes (S1701 to S1707) are added to part of the process in Fig. 11. The processes in S1402, S1302, S1303, and S1306 to S1308 are the same as those in Fig. 11.

[0107] In S1402 of Fig. 15, camera control unit 132 determines whether or not there is a possibility that the main subject that has become lost will reappear. If it is determined that there is a possibility that the main subject will reappear, the process proceeds to S1701, and if there is no or low possibility, the process proceeds to S1306.

[0108] In S1701, the camera control unit 132 performs a process of determining whether or not a predicted time timer is operating. The predicted time timer is a timer that measures the time until the main subject is predicted to reappear. If it is determined that the predicted time timer is not operating, the process proceeds to S1702, and if it is determined that the predicted time timer is operating, the process proceeds to S1302.

[0109] In S1702 and S1703, camera control unit 132 executes prediction processing for the main subject based on distance information and the like. In S1702, processing is performed to predict where the main subject will appear relative to the object (obstacle) blocking the main subject, based on the moving direction of the main subject before the lost state occurred and the width of the object blocking the main subject. In the next S1703, processing is performed to predict the time until the main subject reappears, based on the moving speed of the main subject and the size of the blocking object. As information required for prediction in S1702 and S1703, the moving direction and moving speed of the main subject can be calculated from the motion information of the imaging device (output of angular velocity sensor 126) and the motion information of the subject in the angle of view (output of vector detection unit 243). Information regarding the width of the object blocking the main subject can be acquired by surrounding information confirmation unit 253.

[0110] The process proceeds from S1703 to S1704, where the operation of the predicted time timer starts, and then the process proceeds to S1302. If the main subject is detected again in S1302, the process proceeds to S1303, and if the main subject is not detected again, the process proceeds to S1705.

[0111] In S1705, the camera control unit 132 determines whether the predicted time has elapsed. If it is determined in S1705 that the predicted time has not elapsed (less than the predicted time), the process proceeds to S1706, and if it is determined that the predicted time has elapsed, the process proceeds to S1308. In S1706, the display frame control unit 256 performs control to display the predicted frame at the position predicted in S1702. Then, the process returns to S1701 to continue the display process of the predicted frame.

[0112] On the other hand, if it is determined in S1705 that the predicted time has elapsed, it is determined that the possibility of the main subject reappearing is low, and the process proceeds to S1308, where display frame control unit 256 performs processing to erase the frame display, and then the process proceeds to S1707.

[0113] If there is no possibility that the main subject that became lost in S1402 of Fig. 15 will appear again, the same process as in Fig. 11 is executed. However, if a display other than a predicted frame is performed, the process proceeds from S1303 or S1307 to S1707. In S1707, a predicted time timer is reset to prepare for the next occurrence of a lost state of the subject, and the series of processes ends.

[0114] In this modified example, after the main subject becomes lost, it is possible to predict where the main subject will next appear and notify the photographer by displaying a prediction frame at the predicted position. A specific description will be given with reference to FIG. 14(B).

[0115] Fig. 14(B) is a schematic diagram showing an example of a display of a predicted frame. The diagram on the left shows an example in which an image of the main subject with a detection and tracking frame 1401 superimposed thereon and an image of an obstruction (black rectangular portion) are displayed. The two diagrams in the middle show a situation in which the subject has become lost. The diagram on the top shows an image of part of the main subject, a lost state frame 1402, and an image of the obstruction, while the diagram on the bottom shows an image of part of the main subject, an image of the obstruction, and a predicted frame 1403. The diagram on the right shows an image of the obstruction and an image in which the detection and tracking frame 1401 is superimposed on an image of the redetected main subject, showing a state in which tracking of the main subject continues.

[0116] Before the main subject becomes lost, a detection and tracking frame 1401 for the main subject is displayed in accordance with the photographer's intention, and when the main subject becomes lost, a frame 1402 is displayed, and further a prediction frame 1403 is displayed. Therefore, a useful indicator can be presented as to what shooting action the photographer should take next, and thus display control that is easy for the photographer to use can be realized.

[0117] Although the second embodiment and modified examples 1 and 2 have been described in detail, the present invention is not limited to these specific embodiments and can be embodied in various forms. For example, if it is possible to distinguish between a detection or tracking state of the main subject and a state in which the main subject is lost, the display method may be changed between a live view state (a state in which the main subject is observed on the display unit) and a shooting preparation state (a state in which the release button is half-pressed).

[0118] According to the embodiment, it is possible to provide an imaging device that can dynamically determine a main subject according to the photographer's intention as a tracking target in a scene in which multiple subjects are moving, and can notify the user of the detection and tracking status of the main subject. Note that, although the preferred embodiment of the present invention has been described, the present invention is not limited to the embodiment, and various modifications and changes are possible within the scope of the gist of the present invention, and it is possible to implement the present invention by appropriately combining the configurations described in the embodiment. [Explanation of symbols]

[0119] 113: Lens control unit 124: Camera signal processing circuit 132: Camera control unit 141: Object detection unit 142: Motion vector detection unit 172: Display section 153,252: Subject tracking control unit 255: Subject loss determination section 256: Display frame control section

Claims

1. A subject tracking device that detects a subject from a captured image and performs tracking control, An acquisition means for acquiring an image signal of the image; a first detection means for detecting a subject from an image region within the image; a second detection means for detecting a motion vector of the subject from the acquired image signal; a control means for recognizing a motion of the subject from a motion vector of the detected subject, and for performing tracking control of a main subject determined from the detected plurality of subjects; The control means judges whether the plurality of detected subjects are moving in the same direction and judges whether the plurality of detected subjects are moving irregularly. A subject tracking device comprising:

2. When it is determined that the motion of the plurality of subjects is linear and collective motion, the control means performs a process of determining the main subject from the plurality of detected subjects.

2. The subject tracking device according to claim 1,

3. The control means determines that the motion is a group motion when the number of the plurality of subjects is equal to or greater than a threshold value, and performs a process of determining the main subject from the plurality of detected subjects.

3. The subject tracking device according to claim 2,

4. The control means performs a process of determining, as the main subject, a subject at the front or rear in a direction of movement among the plurality of subjects performing the collective movement.

4. The subject tracking device according to claim 2, wherein the first and second lenses are arranged in a first direction.

5. The control means selects a detected first subject, judges whether it is a collective movement of a plurality of subjects whose movement direction is the same as that of the first subject, and, if it is judged that it is a collective movement, performs a process of determining a second subject which is at the forefront of the movement direction of the collective movement as the main subject.

4. The subject tracking device according to claim 2, wherein the first and second lenses are arranged in a first direction.

6. The control means determines a type of the detected subject, and when a plurality of subjects performing exercise are of the same type, determines one of the plurality of subjects as the main subject.

6. The subject tracking device according to claim 1,

7. When it is determined that the detected plurality of subjects are in a stationary state or that the motion is irregular, the control means performs a process of determining the first subject as the main subject and setting the first subject as a tracking target.

6. The subject tracking device according to claim 5,

8. The control means performs a process of determining, as the main subject, a subject that is at the forefront in a direction of movement of the plurality of subjects, based on a size, a position, or an amount of change in the motion vector of the detected image area of ​​the subject.

8. The subject tracking device according to claim 1,

9. The control means performs a process of determining the main subject by determining the direction of movement of the subject from the motion vector or information indicating the face direction of the subject.

8. The subject tracking device according to claim 1,

10. The control means determines whether or not a main subject to be tracked is in a lost state in which sight of the main subject has been lost, and when it is determined that the main subject is not in a lost state, performs control to display a first display frame corresponding to the position of the main subject in the image, and when it is determined that the main subject is in a lost state, performs control to change the first display frame to a second display frame.

10. The subject tracking device according to claim 1,

11. The control means determines a tracking state of the main subject using a detection signal of a shake detection means that detects shake of the apparatus and the motion vector, and determines whether or not to continue displaying the second display frame.

11. The subject tracking device according to claim 10.

12. The control means performs control to display, together with the second display frame, a time for which the display of the second display frame is to be continued.

12. The subject tracking device according to claim 10 or 11.

13. After determining that the main subject is lost, the control means predicts the position where the main subject will next appear and performs control to display a third display frame at the predicted position.

13. The subject tracking device according to claim 10, wherein the first and second lenses are arranged in a first direction.

14. When it is determined that a lost state of the main subject has occurred due to being out of frame, the control means continues to display the second display frame until a predetermined time has elapsed since the lost state occurred, and performs control to display the first display frame when the main subject is detected again.

14. The subject tracking device according to claim 10,

15. When a lost state occurs due to the main subject being blocked and it is determined that tracking of the main subject is possible thereafter, the control means continues to display the second display frame until a predetermined time has elapsed since the lost state occurred, and performs control to display the first display frame when the main subject is detected again.

14. The subject tracking device according to claim 10,

16. When it is determined that a lost state has occurred because the main subject cannot be detected, the control means continues to display the second display frame until a predetermined time has elapsed since the lost state occurred, and performs control to display the first display frame when the main subject is detected again.

14. The subject tracking device according to claim 10,

17. The control means performs control to display the time until the second display frame is erased, using a measuring means that measures the time from the time when the lost state occurs.

14. The subject tracking device according to claim 10,

18. The control means continues to display the third display frame until a predetermined time has elapsed since the position where the main subject will appear is predicted, and performs control to display the first display frame when the main subject is detected again.

14. The subject tracking device according to claim 13.

19. An imaging apparatus comprising the subject tracking device according to any one of claims 1 to 18.

20. a display unit for displaying an image of the main subject and a display frame corresponding to the position of the main subject within the image; 20. The imaging device according to claim 19.

21. A subject tracking device that detects a subject from a captured image and performs tracking control, An acquisition means for acquiring an image signal of the image; a first detection means for detecting a subject from an image area within the image and acquiring detection information of the subject; a second detection means for detecting a motion vector of the subject from the acquired image signal; a control means for recognizing a motion of the subject from a motion vector of the detected subject, and for performing tracking control of a main subject determined using detection information of the subject, the control means performs a process of determining, when a plurality of moving subjects are detected, a subject that is at the front in a direction of movement as the main subject; The control means determines whether or not a main subject to be tracked is in a lost state in which sight of the main subject has been lost, and when it is determined that the main subject is not in a lost state, performs control to display a first display frame corresponding to the position of the main subject in the image, and when it is determined that the main subject is in a lost state, performs control to change the first display frame to a second display frame, and performs control to display the time until the second display frame is erased using a measuring means that measures the time from the time when the lost state occurred. A subject tracking device comprising:

22. A subject tracking method executed by a subject tracking device that detects a subject from a captured image and performs tracking control, acquiring an image signal of the image; a detection step of detecting a subject from an image region within the image and detecting a motion vector of the subject from the image signal; a control step of recognizing the movement of the subject from the motion vector of the detected subject, and performing tracking control of a main subject determined from the detected plurality of subjects, In the control step, a determination is made as to whether the detected plurality of subjects are moving in the same direction, and a determination is made as to whether the detected plurality of subjects are moving irregularly. A subject tracking method comprising:

23. A subject tracking method executed by a subject tracking device that detects a subject from a captured image and performs tracking control, acquiring an image signal of the image; a detection step of detecting a subject from an image region within the image to obtain detection information of the subject, and detecting a motion vector of the subject from the image signal; a control step of recognizing the movement of the subject from the detected motion vector of the subject, and performing tracking control of a main subject determined using detection information of the subject by a control means; In the control step, the control means performs a process of determining, when a plurality of moving subjects are detected, a subject that is at the front in a direction of movement as the main subject; The control means determines whether or not a main subject to be tracked is in a lost state in which sight of the main subject has been lost, and when it is determined that the main subject is not in a lost state, performs control to display a first display frame corresponding to the position of the main subject in the image, and when it is determined that the main subject is in a lost state, performs control to change the first display frame to a second display frame, and performs control to display the time until the second display frame is erased using a measuring means that measures the time from the time when the lost state occurred. A subject tracking method comprising:

Citation Information

Patent Citations

  • Autofocus system

    JP2011133821A

  • Image processing apparatus, imaging apparatus and program

    JP2015012493A

  • Imaging apparatus

    JP2018066889A