Imaging device, control method and program thereof

The imaging device uses a three-step determination process to verify spatial and distance conditions for accurate subject tracking, addressing issues of unstable tracking and misidentification, particularly in situations where distance information is absent.

JP7569169B2Active Publication Date: 2024-10-17CANON KK
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing tracking methods in imaging devices face issues with poor tracking accuracy due to changes in the shape or color of the subject, or incorrect tracking of objects with similar brightness, especially when distance information is unavailable, leading to unstable tracking positions.

Method used

The imaging device employs a three-step determination process to ensure accurate subject tracking by verifying the spatial coordinates and distance conditions of detected subjects, requiring consistent satisfaction of predetermined conditions over multiple frames to confirm subject identity.

Benefits of technology

This approach enhances tracking accuracy by distinguishing between subjects at different distances and preventing misidentification, ensuring stable tracking even when distance information is unavailable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007569169000001
    Figure 0007569169000001
  • Figure 0007569169000002
    Figure 0007569169000002
  • Figure 0007569169000003
    Figure 0007569169000003
Patent Text Reader

Abstract

To track a main object with high accuracy.SOLUTION: An image capturing apparatus having a capturing unit configured to capture an image at a predetermined frame rate, includes: a detection unit configured to detect an object that is a candidate of a main object from an image of a current frame obtained by the capturing unit; and a main object determination unit configured to perform processing for determining whether or not the detected object is the same as the main object, and to determine an object that is determined as being the same as the main object, as a main object in the current frame. The main object determination unit includes: a first determination unit configured to determine whether or not coordinates of the object candidate and coordinates of the main object in a two-dimensional space of an image in the current frame detected by the detection unit satisfy a distance condition that is based on respective types of the objects; a second determination unit configured to determine whether or not a difference in a distance from the image capturing apparatus between the object candidate and the main object in the current frame detected by the detection unit is within a predetermined range; and a third determination unit configured to determine whether or not the first determination unit and the second determination unit respectively satisfy conditions a predetermined number of times in a row.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an imaging apparatus that detects a subject such as a human or animal face, and tracks and controls the tracking of the detected subject. [Background technology]

[0002] Generally, image processing methods are known that automatically detect a specific subject pattern (e.g., a human face area) from an image. For example, in imaging devices such as digital cameras, the area of ​​a specific subject is detected from a captured image, and the focus and exposure are optimized using the detection result as a control target. In addition, the imaging device performs tracking processing so that the same subject can be tracked continuously regardless of changes in the position or shape of the subject over time. There are two methods for this tracking processing. One is a method in which detection results for captured images in a time series are compared, and a detected subject with a high correlation is tracked. The other is a tracking method using template matching that extracts features of the captured images and tracks areas with a high degree of match in the features between the captured images.

[0003] Recently, technology has been evolving to make it easier for users to capture the subjects they are aiming for by expanding the types of subjects that can be automatically detected to include not only human facial areas but also the entire human body and non-human subjects (e.g., animals).

[0004] However, in situations where it is difficult to detect the subject being photographed due to the subject being small in size or not facing forward, the subject may be tracked using a tracking method that uses template matching after detecting a part of the body as an object. In such cases, the tracking accuracy is poor, which is an issue. As a result, there are situations where the tracking position is unstable due to changes in the shape or color of the subject being tracked, or other subjects with similar color and brightness are mistakenly tracked, resulting in poor tracking accuracy compared to tracking using face detection.

[0005] In such a situation, when a subject to be photographed can be detected while tracking using the template matching method, it is desirable to be able to switch to a subject to be photographed with higher tracking accuracy and continue tracking.

[0006] In response to these circumstances, Patent Document 1 discloses a method of comparing the estimated positions of face detection areas obtained by a face detection unit and another detection means (e.g., human body detection) to determine whether they are the same subject. Patent Document 1 also proposes a method of selecting either the face detection result or the estimated area from the human body detection result as the subject detection area depending on the correlation determination result. This realizes improved tracking accuracy by using other detection results such as human body detection in combination even when face detection is not possible.

[0007] Furthermore, Patent Document 2 proposes a method for identifying areas of the same subject across multiple frames of images captured in chronological order, taking into consideration that the area is the same color as the subject in the previous frame and that the defocus amount is within a specified range. [Prior art documents] [Patent documents]

[0008] [Patent Document 1] JP 2013-228930 A [Patent Document 2] JP 2019-8075 A Summary of the Invention [Problem to be solved by the invention]

[0009] However, in Patent Document 1, when determining whether face detection and another detection means are the same subject, the correlation is calculated based on the position and size of the estimated area by the face detection means and another detection means, which causes the problem that the correlation may be erroneously determined to be high even for another subject that temporarily passes in front of or behind the targeted subject, or for a face that is misdetected in the background, etc.

[0010] Furthermore, in Patent Document 2, although it is arranged to prevent subjects at different distances from being determined to be the same subject, it does not disclose how to deal with cases where distance information cannot be acquired.

[0011] The present invention provides an imaging device that can accurately track a subject by performing switching to the same subject when switching is effective even when distance information cannot be acquired, without erroneously determining that a subject at a different distance, such as the background, is the same subject. [Means for solving the problem]

[0012] In order to solve this problem, for example, an imaging device according to the present invention has the following configuration. An imaging device having an imaging means for capturing an image at a predetermined frame rate, a detection means for detecting a main subject candidate from an image of a current frame obtained by the imaging means; a main subject determining means for determining whether or not the main subject candidate detected by the detection means is identical to the main subject, and determining the main subject candidate determined to be identical to the main subject as the main subject in the current frame, The main subject determining means includes: a first determination means for determining whether or not the coordinates of the main subject candidate and the coordinates of the main subject in a two-dimensional space of the image of the current frame detected by the detection means satisfy a distance condition based on the type of each of the subjects; a second determination means for determining whether or not a difference in distance from the imaging device between the main subject candidate and the main subject in the current frame detected by the detection means is within a predetermined range; a third determination means for determining whether or not the first determination means and the second determination means satisfy each of the conditions a predetermined number of times in succession, The main subject determining means includes: When the third determination means determines that the first determination means and the second determination means have satisfied their respective conditions for the predetermined number of consecutive times, the main subject has not yet been moved. Implementation It was determined that there was If it is determined that any of the conditions of the first to third determination means are not satisfied, a main subject candidate of a preset priority in the image of the current frame is determined to be the main subject. Effect of the Invention

[0013] According to the present invention, it is possible to track a main subject with high accuracy. [Brief description of the drawings]

[0014] [Figure 1] 1 is a block diagram showing the configuration of an automatic focusing device according to an embodiment. [Diagram 2] 6 is a flowchart showing an operation of selecting a main subject. [Diagram 3] 6 is a conceptual diagram showing a determination condition for identical subject determination. [Figure 4] 5 is a flowchart showing an operation of determining an identical subject in the first embodiment. [Diagram 5] 6 is a conceptual diagram showing an operation of determining a same subject. [Figure 6] FIG. [Figure 7] FIG. 13 is a conceptual diagram showing a transfer determination operation. [Figure 8] 10 is a flowchart showing an operation of determining an identical subject in the second embodiment. [Figure 9] 13A and 13B are diagrams showing determination conditions for identical subject determination in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0016] [First embodiment] 1 is a block diagram of an image capture device, typified by a digital camera to which the embodiment is applied. The image capture device has an image capture lens 101, an aperture 102, a focus lens 104, an AF processing unit 105, an image sensor 108, an A / D conversion unit 109, an image processing unit 110, a WB (white balance) processing unit 111, a format conversion unit 112, a RAM 113, and an image recording unit 114. The electronic camera also has a system control unit 115, a VRAM 116, an operation display unit 117, an operation unit 118, a switch 121, and a subject detection unit 123.

[0017] The system control unit 115 includes a CPU, a ROM that stores programs executed by the CPU and various setting values, and a RAM used as a work area for the CPU. The CPU executes the programs stored in the ROM and controls each of the components shown in Fig. 1. Some of the configurations in Fig. 1 may be realized by the CPU in the system control unit 115 (i.e., software).

[0018] The photographing lens 101 includes a zoom mechanism and forms an optical image of a subject on the image sensor 108. The aperture 102 controls the amount of light incident through the photographing lens 101 and adjusts the depth of field. The focus lens 104 focuses the optical image that has passed through the photographing lens 101 and the aperture 102 on the imaging plane of the image sensor 108. The AF processing unit 105 drives the focus lens 104 in accordance with a control signal from the system control unit 115.

[0019] The image sensor 108 functions as a light receiving means or a photoelectric conversion means, and converts an optical image formed on the image sensor surface into an electrical signal. The A / D converter 109 includes a CDS (correlated double sampling) circuit that removes noise and a nonlinear amplifier circuit that performs processing before A / D conversion.

[0020] The image processing unit 110 performs various processes on the captured image data from the A / D conversion unit 109. The image processing unit 110 has a luminance calculation unit that calculates the luminance of a subject in a captured image, and an extraction unit that extracts a signal component of a specific frequency band from the output of the luminance calculation unit.

[0021] Under the control of the system control unit 115, the WB processing unit 112 performs processing related to white balance of the image data that has passed through the image processing unit 110. The format conversion unit 112 converts the format of the image data that has passed through the image processing unit 110. This conversion includes processing related to encoding and decoding. Therefore, the format conversion unit 112 also performs decoding processing of encoded image data recorded on a recording medium. The RAM 113 is a writable memory that can be accessed at high speed, such as an SRAM or a DRAM. The image recording unit 114 functions as an interface with a non-volatile storage medium such as an SD card, and performs recording processing on the recording medium and reading out the recorded image data.

[0022] The VRAM 116 is a memory that holds image data for display. The operation display unit 117 displays images expanded in the VRAM 116, as well as operation assistance and camera status, and also displays the shooting screen and focus detection area during shooting.

[0023] The operation unit 118 includes various switches and buttons, as well as a touch panel, and has a function of transmitting user operations to the system control unit 115.

[0024] Switch 121 is a shooting standby switch (also referred to as SW1) which is a focusing position determination instruction means for performing shooting standby operations such as AF, AE, etc. By operating this switch 121 (SW1), the focusing position for shooting of focus lens 104 is determined.

[0025] The subject detection unit 123 detects various types of subjects from the image data obtained by processing by the image processing unit 110, obtains information on one or more detected subjects (type, position, size, reliability, distance), and determines the main subject to be processed by the AF processing unit 105 and the WB processing unit 111.

[0026] The subject detection unit 123 further performs a tracking process for tracking the same subject as the main subject between chronologically consecutive images. The tracking process is performed by first determining whether or not there is a subject in the subject in the currently captured frame image that is highly correlated with the previous main subject based on subject information (type, position, size, reliability, distance), and tracking the highly correlated subject as the main subject. If no subject is found that is highly correlated with the previous main subject among the detected subjects in the currently captured frame, the subject detection unit 123 extracts the area of ​​the previous main subject and the feature amount (e.g., color, etc.) of the currently captured image, and tracks the area that is highly consistent with the feature amount of the detection area of ​​the previous subject as the main subject.

[0027] The RAM 113 is used as a high-speed buffer as a temporary image storage means, or as a working memory for compressing and expanding images, etc. The operation unit 118 includes, for example, the following: a menu switch for making various settings such as the shooting functions of the imaging device and settings for image playback, a zoom lever for instructing the zoom operation of the shooting lens, and an operation mode changeover switch between shooting mode and playback mode, etc.

[0028] Next, the main subject selection process performed by the subject detection unit 123 in the embodiment will be described with reference to the flowchart in Fig. 2. Here, the main subject to be photographed is selected from the detected subject information and the tracked subject information. Also, the image sensor 108 captures images at a frame rate of, for example, 30 frames / second, and Fig. 2 shows the process when one frame of image data is acquired.

[0029] In S201, subject detection unit 123 performs subject detection processing by referring to image data of the current frame processed by image processing unit 110. Detection targets include, for example, the face or whole body of a person, the face or whole body of an animal, and objects with prominent color and brightness. Subject detection unit 123 acquires information related to these detection target subjects, and the subject information includes the type, position, size, reliability, and distance of the detection target subject. The detected subjects are then used as candidates for the main subject.

[0030] In S202, subject detection unit 123 determines whether or not a main subject was present in the previous frame. If subject detection unit 123 determines that a main subject was present in the previous frame, it branches the process to S203, and if it determines that a main subject was not present, it branches the process to S206.

[0031] In S203, the subject detection unit 123 performs a tracking process to determine a subject that has a high correlation with the main subject in the previous frame, and determines a main subject candidate in the image of the current frame. Then, the subject detection unit 123 advances the process to S204.

[0032] In S204, subject detection unit 123 performs same subject determination processing (described later with reference to FIGS. 3, 4, and 5) and proceeds to processing in S205. Here, if subject detection unit 123 determines that the subject detected in S201 is the same subject as the main subject candidate determined in S203, it performs transfer based on same subject determination and sets the detected subject as the main subject candidate. If transfer based on same subject determination is not performed, the main subject candidate determined in step S203 continues to be the main subject candidate.

[0033] In S205, the subject detection unit 123 determines whether or not there is a subject with a higher priority than the main subject candidate set in S203, and ends the operation of selecting the main subject. Here, if there is a subject with a higher priority, the subject with the higher priority is determined as the main subject, and if there is no subject with a higher priority, the main subject candidate is determined as the main subject of this time. For example, a subject that is closer to the center of the screen, larger in size, more reliable, and closer to the camera may be determined to have a higher priority as the main subject. In addition, the priority of the type of detected subject, such as a person or an animal, or the priority of the detected part of the subject, such as a face or the whole body, may be set in advance.

[0034] Here, as an example of the priority determination process, if a user sets a priority on human faces, the human face is determined to have high priority when a human face, a whole human body, and an animal face are detected. Furthermore, if multiple human faces are detected, the priorities are compared by calculating an evaluation value indicating the priority as a main subject based on the subject detection information. For example, a position evaluation value based on the proximity to the screen center position and a size evaluation value based on the face detection size may be calculated, and the priority evaluation value may be calculated by multiplying the position evaluation value and the size evaluation value.

[0035] In S206, subject detection unit 123 estimates the priority of the subjects detected in S201 as the main subject, in the same manner as in the priority determination in step S205, and determines the subject with the highest priority as the main subject as the current main subject, and ends the main subject selection operation.

[0036] Next, the contents of the same subject determination process in S204 in FIG. 2 will be described with reference to FIG. 3 and FIG.

[0037] In this embodiment, the conditions for determining whether an object is the same are the following three. (1) Distance conditions in the X and Y directions (2) Distance condition in Z direction (3) A condition for the number of consecutive times that satisfies the distance conditions in the XY and Z directions First, "(1) Distance condition in the XY direction" will be explained. Note that X and Y shown here are expressed as two-dimensional coordinates in the horizontal and vertical directions in the image. This "(1) Distance condition in the XY direction" is a condition regarding the overlap in two-dimensional coordinates between the peripheral area of ​​the main subject candidate and the peripheral area of ​​the destination subject in the same subject determination. In this case, the determination is made using a distance threshold according to the combination of the type of main subject candidate and the type of the destination subject.

[0038] First, as shown in FIG. 3(a), when the destination is face detection (3a-1) and the main subject candidate is object detection area (3a-2), if the subject area (3a-3) estimated from the face detection result overlaps with the object area (3a-2) of the main subject candidate, the relationship between the type and distance is reasonable, and this condition is satisfied. Here, as an example of the estimated subject area (3a-3), an area of ​​3 frames × 10 frames is estimated as the whole body area of ​​a person when the face detection size is one frame. In the horizontal direction, three frames are arranged around the face position, and the estimated area is set as a range covering the torso. In addition, in the vertical direction, one frame is arranged above the face to cover the top of the head, and eight frames are set below the face to cover the feet, and the estimated area is set as a range covering the whole body of the person.

[0039] 3(b), when the destination is face detection (3b-1) and the main subject candidate is full body detection (3b-2), this condition is met if the main subject candidate area (3b-2) is multiplied by a certain number (3b-3) and the face detection area (3b-1) overlaps with the main subject candidate area (3b-2), as shown in FIG. 3(b). When tracking is performed using the full body detection result as the main subject, tracking is likely to become unstable due to changes in the shape of the whole body, so by switching to face detection, tracking becomes stable.

[0040] Next, as shown in FIG. 3(c), when the destination is a full-body detection area (3c-1) and the main subject candidate is an object detection area (3c-2), the condition is satisfied if an area (3c-3) that is a specified magnification of the full-body detection area (3c-1) overlaps with the area (3c-2) of the main subject candidate.

[0041] As a result of the above, for example, when a "face" is being tracked as the main subject, if the "face" cannot be detected and something other than the person's face, such as the "body," is detected, it will be determined that they are the same if they are within a distance according to the type of subject detected.

[0042] Next, "(2) Distance condition in Z direction" will be described. Here, Z represents the distance from the imaging device. As shown in FIG. 3(d), in a scene where a subject candidate (3d-2) is photographed by an imaging device (3d-1), the AF processing unit 105 obtains the difference between the distance (3d-2) of the subject candidate and the distance (3d-3) of the subject to be transferred to, and if the difference in distance is within a preset Z distance range, the condition is met. Conversely, if the difference exceeds the Z distance range, it is considered that there is a high possibility that the subject is a different subject (3d-4) in the background or foreground, and therefore the condition of the same subject is not met.

[0043] Next, we will explain "(3) the condition of consecutive times that the distance conditions in the XY direction and the Z direction are satisfied." The reason for setting this condition is to prevent a different subject that happens to pass by from being mistakenly determined to be the same subject.

[0044] 3(e) shows the change in the detection position of the subject and the tracking position of the main subject candidate in time series from the first frame of the captured image, which starts the same subject determination, to the fifth frame of the captured image. The same subject determination process in this scene when the consecutive number of times in "(3) the consecutive number of times that the distance conditions in the XY directions and the Z directions are satisfied" is set to "5" is described below.

[0045] In the captured image of the first frame in Figure 3(e), there are face detection area (3e-2) and face detection area (3e-3) that satisfy "(1) distance condition in the XY directions" and "(2) distance condition in the Z direction" with respect to the main subject candidate (3e-1). Face detection area (3e-2) is a face detection area of ​​the same subject as the main subject candidate (3e-1), and face detection area (3e-3) is a different subject from the main subject candidate (3e-1), but exists directly behind the main subject candidate (3e-1) and is very close in distance. For this reason, it is not possible to determine whether face detection area (3e-2) is a different subject based on "(1) distance condition in the XY directions" and "(2) distance condition in the Z direction".

[0046] In the captured image of the third frame in Figure 3(e), the position of the main subject candidate (3e-1) has moved within the XY plane, so the distance difference in the XY directions from the face detection area (3e-3) has changed. At this point, "(1) the distance condition in the XY directions" and "(2) the distance condition in the Z direction" are satisfied for face detection area (3e-2) and face detection area (3e-3). However, because it is the third frame since checking the conditions for determining the same subject began, "(3) the condition of consecutive times that the distance conditions in the XY directions and the Z direction are satisfied" is not satisfied. Therefore, at this point, it is not determined that they are the same subject.

[0047] In the captured image of the fifth frame in Figure 3(e), the tracking position of the main subject candidate (3e-1) moves significantly within the XY plane, so the face detection area (3e-3) no longer satisfies the "(1) XY direction distance condition," and it can be determined that it is not the same subject as the main subject candidate (3e-1). On the other hand, the face detection area (3e-2) satisfies the "(1) XY direction distance condition" and "(2) Z direction distance condition" for five consecutive frames, and it can be correctly determined that they are the same subject because it satisfies the "(3) consecutive number of times that the distance condition in the XY and Z directions is satisfied."

[0048] In this way, in a scene where it is difficult to distinguish between different subjects based on "(1) the distance condition in the XY directions" and "(2) the distance condition in the Z direction," a correct judgment can be made based on "(3) the consecutive number of times that the distance conditions in the XY directions and the Z directions are satisfied."

[0049] Next, the flow of the operation of the same subject determination in S204 in Fig. 2 will be described with reference to Fig. 4. Here, after checking the conditions for the same subject determination, it is determined whether or not to perform the same subject determination depending on the degree of necessity for transitioning to the subject of the transition destination in the same subject determination.

[0050] In S401, the subject detection unit 123 checks whether the main subject candidate determined in S203 of FIG. 2 is a subject that is a subject for which the same subject determination is to be performed. If the subject detection unit 123 determines that the main subject candidate is a subject for which the same subject determination is to be performed, the process branches to S402. If the subject detection unit 123 determines that the main subject candidate is not a subject for which the same subject determination is to be performed, the process branches to S408. For example, when a person's face is targeted as a destination for transfer by the same subject determination, object detection that may be the same subject as the face or whole body detection of a person is set as a subject for transfer by the same subject determination, and main subject candidates that may not be the same subject as the face of a person, such as a person's face, an animal's face, or an animal's whole body, are rejected. In addition, the execution of the same subject determination may be determined according to the menu setting when the execution of the same subject determination or the target of the subject to transfer to is changed by performing the same subject determination.

[0051] In S402, the subject detection unit 123 determines whether or not there is a subject to which the previous main subject is to be transferred that satisfies "(1) the distance condition in the XY directions" described in Fig. 3. If the subject detection unit 123 determines that there is a subject to which the previous main subject is to be transferred, the process proceeds to S403, and if it determines that there is no subject to be transferred, the process proceeds to S408.

[0052] In S403, the subject detection unit 123 determines whether or not the AF processing unit 105 has acquired distance information for the subject of the transfer destination determined in S402. If the subject detection unit 123 determines that the distance information has not been acquired, the process branches to S404, and if the subject detection unit 123 determines that the distance information has been acquired, the process branches to S406.

[0053] In S404, the subject detection unit 123 performs a transition determination process, which will be described later with reference to FIGS. 5 and 6, and then the process proceeds to S405.

[0054] In S405, the subject detection unit 123 determines whether the necessity of the transition based on the transition determination in S404 is high or low. If the subject detection unit 123 determines that the necessity of the transition is high, the process branches to S409, and if it determines that the necessity is low, the process branches to S408.

[0055] In S406, the subject detection unit 123 determines whether or not the subject of the transfer destination satisfies the "Z distance direction condition" described in Fig. 3. If the subject detection unit 123 determines that this condition is satisfied, the process branches to S407, and if it determines that this condition is not satisfied, the process branches to S408.

[0056] In S407, the subject detection unit 123 determines whether the subject of the transfer destination has satisfied the conditions "(1) XY distance direction condition" and "(2) Z distance direction condition" described in Fig. 3 consecutively a predetermined number of times or more. If the subject detection unit 123 determines that the "(1) XY distance direction condition" and "(2) Z distance direction condition" have been satisfied consecutively a predetermined number of times, the process proceeds to S409, and if the subject detection unit 123 determines that the "(1) XY distance direction condition" and "(2) Z distance direction condition" have not been satisfied, the process branches to S408.

[0057] In S408, the subject detection unit 123 continues to maintain the previous main subject as the main subject candidate, and, as shown in FIG. 5(a), if the transition destination face detection result (5a) and the main subject candidate (5b) are not determined to be the same subject, the subject candidate (5b) is maintained as the main subject candidate.

[0058] In S409, the subject detection unit 123 determines the destination subject as a main subject candidate, and if the destination face detection result (5c) and the main subject candidate (5d) are determined to be the same subject, as shown in FIG. 5(b), the main subject candidate is transferred to the face detection result (5c).

[0059] Next, the transfer determination process in step S404 in FIG. 4 will be described with reference to FIG. 5 and FIG.

[0060] The subject detection unit 123 determines whether or not a transition is necessary based on a combination of the following three conditions. (1) Amount of movement of the main subject candidate (2) Tracking reliability of main subject candidates (3) AF reliability of main subject candidates

[0061] Regarding "(1) Amount of movement of the main subject candidate," the presence or absence of movement is determined based on whether the amount of change in the main subject position over time exceeds a predetermined threshold. For example, when the main subject is determined in S206 in Fig. 2, the difference from the previous subject position is always calculated and stored, and the presence or absence of movement may be determined based on the average value of the previous predetermined number of main subject determinations.

[0062] Regarding "(2) Tracking reliability of main subject candidate," when the main subject is determined in S206 of FIG. 2, the reliability of the subject obtained from subject detection unit 123 is stored, and the reliability of whether the subject has been correctly tracked as the main subject is determined in stages depending on whether the reliability exceeds a predetermined threshold.

[0063] Regarding "(3) AF reliability of main subject candidate", the reliability of whether AF is performed correctly for the main subject is determined in stages depending on whether the AF reliability obtained from AF processing unit 105 exceeds a predetermined threshold.

[0064] Depending on the combination of the results of the above judgments (1) to (3), a judgment is made as to the level of necessity for transfer, as shown in FIG.

[0065] For example, in FIG. 7(a), the main subject candidate indicated by reference numeral 7a is a still subject, and the tracking reliability / AF reliability is high so that the subject can be tracked sufficiently. Therefore, as shown in the dotted line area of ​​reference numeral 601 in FIG. 6, there is little need to transfer to the destination face detection result indicated by reference numeral 7b.

[0066] Next, in Fig. 7(b), the main subject candidate indicated by reference symbol 7c is moving, and the tracking reliability / AF reliability is low, making it difficult to track the subject. As indicated by the solid line range of reference symbol 602 in Fig. 6, the necessity of switching to the face detection of the transition destination indicated by reference symbol 7d is high, and if there is a subject that satisfies the same subject determination other than the "(2Z direction distance condition", the main subject will be switched.

[0067] As described above, by applying the first embodiment, even if distance information of a subject cannot be acquired, the necessity of switching based on the same subject determination is determined, and if it is determined that the necessity of switching is high, switching to a subject that satisfies the same subject determination condition is performed, thereby making it possible to continue tracking the subject that the user is aiming at and maintain the quality of the frame display.

[0068] [Second embodiment] The same subject determination process in S204 in Fig. 2 in the second embodiment will be described with reference to Fig. 8. Note that the device configuration is the same as that in Fig. 1 in the first embodiment, and description thereof will be omitted.

[0069] In S801, the subject detection unit 123 checks whether the main subject candidate determined in S203 of FIG. 2 is a subject that is a target of the same subject determination. If the subject detection unit 123 determines that the main subject candidate is a target of the same subject determination, the process branches to S802, and if not, to S808. For example, when a person's face is targeted as a transfer destination by the same subject determination, the subject detection unit 123 sets an object detection that may be the same subject as the face or a whole body detection of a person as a target for performing the same subject determination, and rejects main subject candidates that are not likely to be the same subject as the face of a person, such as a person's face, an animal's face, or the whole body. In addition, the execution of the same subject determination may be determined according to the menu setting when the execution of the same subject determination or the target of the transfer destination subject is changed by performing the same subject determination.

[0070] In S802, the subject detection unit 123 determines whether or not a subject that satisfies "(1) the distance condition in the XY directions" described in Fig. 3 is present among the main subject candidates. If the subject detection unit 123 determines that a subject that satisfies "(1) the distance condition in the XY directions" is present, the process proceeds to S803, and if the subject detection unit 123 determines that a subject that satisfies "(1) the distance condition in the XY directions" is not present, the process branches to S809.

[0071] In S803, the subject detection unit 123 determines whether or not distance information of a subject that satisfies the "(1) distance condition in the XY directions" in S802 has been acquired by the AF processing unit 105. If the subject detection unit 123 determines that the AF processing unit 105 has acquired distance information, the process proceeds to S807, and if the subject detection unit 123 determines that the distance information has not been acquired, the process branches to S804.

[0072] In S804, the subject detection unit 123 performs the transition determination process described with reference to Figs. 5 and 6. Then, the subject detection unit 123 advances the process to S805. Here, the conditions for the same subject determination will be described with reference to Figs. 9(a) and (b).

[0073] 9A shows a specific example of "(1) distance condition in the XY direction" in the second embodiment. When distance information in the Z direction (depth direction for the imaging device) can be acquired, the range in which the same subject may exist is set with a margin of error based on the subject to which the same subject may be jumped to by the same subject determination. However, when distance information in the Z distance direction cannot be acquired, it is not possible to distinguish between a subject that exists at a distance adjacent to the XY direction and another subject that exists at a distance away. Therefore, in consideration of the risk of jumping to another subject, the range set as the distance condition in the XY direction is limited.

[0074] When the degree of necessity for transfer is low, more importance is placed on avoiding the risk of transfer to another subject than when the degree of necessity for transfer is high, and the range set as the distance condition in the XY directions is further limited to a narrower range.

[0075] Figure 9(b) shows a specific example of "(3) the condition of consecutive times satisfying the distance conditions in the XY directions and the Z direction." However, in cases where distance information can only be obtained from a part of the screen or where the distance in the Z direction cannot be obtained due to poor AF accuracy, "(2) the condition of the distance in the Z direction" is not included in the conditions.

[0076] 9(a), when distance information in the Z direction cannot be acquired, it is not possible to distinguish between other subjects that are adjacent in the XY directions at a distance, so the number of times condition is increased so that other subjects that are temporarily adjacent at different distances are not determined to be the same subject. Also, when the degree of necessity for jumping is low, the number of times condition is set to a larger value, placing more importance on avoiding the risk of jumping to another subject than when the degree of necessity for jumping is high.

[0077] Returning to the description of Fig. 8, in S806, the subject detection unit 123 determines whether the same subject condition is satisfied based on the same subject determination condition set in S805. If the subject detection unit 123 determines that the same subject condition is satisfied, the process proceeds to S810, and if it determines that the same subject condition is not satisfied, the process branches to S809.

[0078] In S807, the subject detection unit 123 determines whether or not the subject at the transfer destination satisfies "(2) Condition in the Z distance direction" described in Fig. 3. If the subject detection unit 123 determines that the subject at the transfer destination satisfies "(2) Condition in the Z distance direction", the process proceeds to S808, and if the subject detection unit 123 determines that the subject does not satisfy the condition, the process proceeds to S809.

[0079] In S808, the subject detection unit 123 determines whether the "(1) XY distance direction condition" and the "(2) Z distance direction condition" are satisfied consecutively a preset number of times or more. If the subject detection unit 123 determines that the number of times condition is satisfied, the process proceeds to S810, and if it determines that the condition is not satisfied, the process proceeds to S809.

[0080] In S809, subject detection unit 123 continues to maintain the main subject candidate as the main subject candidate, and ends this same subject determination operation.

[0081] In S810, the subject detection unit 123 determines the new subject as a main subject candidate, and ends the same subject determination operation.

[0082] As described above, by applying the second embodiment, even if distance information of the subject cannot be obtained, it is possible to realize same subject determination according to the degree of necessity for transition due to same subject determination, and it is possible to continue tracking the subject targeted by the user and maintain the quality or reliability of the frame display.

[0083] (Other Examples) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0084] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]

[0085] 105...AF processing unit, 108...imaging element, 110...image processing unit, 123...subject detection unit

Claims

1. An imaging device having an imaging means for capturing an image at a predetermined frame rate, a detection means for detecting a main subject candidate from an image of a current frame obtained by the imaging means; a main subject determining means for determining whether or not the main subject candidate detected by the detection means is identical to the main subject, and determining the main subject candidate determined to be identical to the main subject as the main subject in the current frame, The main subject determining means includes: a first determination means for determining whether or not the coordinates of the main subject candidate and the coordinates of the main subject in a two-dimensional space of the image of the current frame detected by the detection means satisfy a distance condition based on the type of each of the subjects; a second determination means for determining whether or not a difference in distance from the imaging device between the main subject candidate and the main subject in the current frame detected by the detection means is within a predetermined range; a third determination means for determining whether or not the first determination means and the second determination means satisfy each of the conditions a predetermined number of times in succession, The main subject determining means includes: a third determination means for determining that a change of the main subject has been performed when the first determination means and the second determination means have determined that their respective conditions are satisfied for the predetermined number of consecutive times; If it is determined that any of the conditions of the first to third determination means is not satisfied, a main subject candidate having a preset priority in the image of the current frame is determined to be the main subject.

1. An imaging device comprising:

2. 2. The imaging apparatus according to claim 1, wherein said detection means detects a face, body, or object of a person or animal.

3. The main subject determining means includes: The system further comprises a means for determining the necessity of a transition based on a time series change amount of the main subject in a two-dimensional space, a tracking reliability as the main subject, and an AF reliability when the first determination means determines that the distance condition is satisfied and the second determination means cannot obtain distance information of the main subject candidate for determining a difference in distance from the imaging device, and for determining whether or not the main subject should be transitioned based on the necessity.

3. The imaging device according to claim 1, wherein the first and second lenses are arranged in a first direction.

4. The main subject determining means includes: and a setting means for setting a condition relating to the distance in the first determination means and a condition relating to the number of consecutive times in the third determination means when the second determination means determines that distance information of the main subject candidate cannot be obtained.

4. The imaging device according to claim 1, wherein the first and second lenses are arranged in a first direction.

5. A method for controlling an imaging device having an imaging means for capturing images at a predetermined frame rate, comprising the steps of: a detection step of detecting a main subject candidate from an image of a current frame obtained by the imaging means; a main subject determination step of performing a determination process for determining whether or not the main subject candidate detected in the detection step is identical to the main subject, and determining the main subject candidate determined to be identical to the main subject as a main subject in a current frame; The main subject determination step includes: a first determination step of determining whether or not the coordinates of the main subject candidate and the coordinates of the main subject in a two-dimensional space of the image of the current frame detected in the detection step satisfy a distance condition based on the type of each of the subjects; a second determination step of determining whether or not a difference in distance from the imaging device between the main subject candidate and the main subject in the current frame detected in the detection step is within a predetermined range; a third determination step of determining whether or not the first determination step and the second determination step satisfy each of the conditions a predetermined number of times in succession, The main subject determination step includes: if it is determined in the third determination step that the first determination step and the second determination step each satisfy the respective conditions for the predetermined number of consecutive times, it is determined that a transition of the main subject has been performed; If it is determined that any of the conditions in the first to third determination steps is not satisfied, a main subject candidate having a preset priority in the image of the current frame is determined as the main subject.

23. A method for controlling an imaging apparatus comprising the steps of:

6. A program for causing a computer having an imaging means to execute each step of the method according to claim 5 by reading the program into the computer and causing the computer to execute the program.

Citation Information

Patent Citations

  • Imaging apparatus, imaging method, and program

    JP2013098746A

  • Subject area detection device, method and program for controlling the same, imaging device and display device

    JP2013228930A

  • Imaging device

    JP2019008075A