Image capture device, image capture device control method, and program

The imaging device addresses erroneous detections by evaluating detection parameters to accurately track the main subject, reducing false positives and maintaining focus on the intended object through reselection processes.

JP7566830B2Active Publication Date: 2024-10-15CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022137539
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-10-15
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

Conventional object detection methods in imaging devices suffer from erroneous detections, leading to unstable detection states and potential misidentification of focus areas, which can result in incorrect subject tracking.

Method used

An imaging device with an acquisition unit, detection unit, and main subject determination unit that evaluates detection results to identify and track the main subject by comparing parameters such as size, position, detection reliability, and frequency, allowing for reselection of the main subject when necessary to suppress false detections.

Benefits of technology

The device effectively detects and tracks various objects while minimizing false detections, ensuring accurate focus on the intended subject by reevaluating and adjusting the main subject based on user intent and detection criteria.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566830000001
    Figure 0007566830000001
  • Figure 0007566830000002
    Figure 0007566830000002
  • Figure 0007566830000003
    Figure 0007566830000003
Patent Text Reader

Abstract

To provide an imaging apparatus that can detect and track a variety of types of subjects while preventing wrong detection.SOLUTION: An imaging apparatus detects subjects in an image by using a plurality of types of dictionary data. In a photographing standby state, when an evaluation value of a detection result using dictionary data different from the type of a main subject being tracked is higher than an evaluation value of a result of detection of the current type of the main subject, the imaging apparatus switches the type of the main subject. After activation of focusing by a user operation, when it is determined that a detection target using dictionary data different from a subject type being tracked is the same subject as the detection target of the current subject type, if the detection result using the dictionary data different from the type of the main subject being tracked has the higher likelihood of the main subject than the result of detection of the current type of the main subject, the imaging apparatus switches the type of the main subject.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to subject detection processing in an image capture device or the like, and more particularly to determining a main subject for focusing. [Background technology]

[0002] Conventionally, a method is known for detecting a person's face or eyes from image data acquired successively in a digital camera or the like, and continuously optimizing the focus state and exposure state for the detected person's face or eyes. In recent years, it has become possible to detect various types of subjects using machine learning techniques. In this case, a specific subject can be detected by inputting the image and dictionary data that has been learned about the subject to be detected to the detector. In addition, different types of subjects can be detected from within the image by changing the dictionary data input to the detector.

[0003] When detecting a subject using dictionary data, a "false detection" may occur, where a subject that should not be detected by the dictionary is detected. Even if a false detection occurs, there is no major problem with tracking control as long as the area on which the user intends to focus is stably detected. However, in a false detection state, there may be cases where an area of ​​a subject not intended by the user is detected as the area to be focused on, or where the detection state becomes unstable.

[0004] Therefore, Patent Document 1 discloses a configuration in which, even after a subject is detected once and adopted as the main subject, all types of dictionary data are continued to operate, and if a subject is detected consecutively in the same dictionary data a certain number of times or more, it is re-adopted as the correct main subject. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2021-132369 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, the conventional technology disclosed in Patent Document 1 cannot correct erroneous detections when an area undesirable for focusing continues to be erroneously detected with a certain degree of stability. In addition, when erroneous detections occur continuously, there is a possibility that the main subject will be mistakenly switched.

[0007] Therefore, an object of the present invention is to provide an imaging device capable of detecting and tracking a variety of subject types while suppressing erroneous detection. [Means for solving the problem]

[0008] In order to achieve the above object, an imaging device according to the present invention has an acquisition means for acquiring an image, a detection means for detecting different types of subjects, a main subject determination means for determining a main subject using a detection result by the detection means, and a tracking means for tracking the main subject determined by the main subject determination means, wherein the main subject determination means performs a process of tracking the main subject determined by the main subject determination means while the subject being tracked is continuously detected by the detection means, The detection result of a subject type that is not currently the main subject belongs to the same subject area as the detection result of the current main subject type. In case, The subject type that is not currently the main subject The method is characterized in that the likelihood of a subject being the main subject is judged to determine the type of the main subject. Effect of the Invention

[0009] According to the present invention, it is possible to provide an imaging device capable of detecting and tracking a variety of subject types while suppressing erroneous detection. [Brief description of the drawings]

[0010] [Figure 1] 1 is a side sectional view showing the configuration of a digital single-lens camera which is a first embodiment of an imaging apparatus according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing a processing flow in the first embodiment. [Diagram 3]FIG. 2 is a diagram showing a first example of a scene and an example of an effect in the first embodiment. [Figure 4] 5A to 5C are diagrams illustrating an example of a method for comparing main subject likelihood in the first embodiment. [Diagram 5] 13A and 13B are diagrams illustrating an example of a comparison method between a second example scene and main subject likelihood in the first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] 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.

[0012] In the following embodiment, the present invention will be described with respect to an imaging device having a subject detection function. Examples of imaging devices having a subject detection function include video cameras, digital cameras, and silver halide still cameras, as well as mobile devices such as smartphones equipped with a camera function. EXAMPLES

[0013] 1 is a diagram showing an example of the configuration of an imaging device according to a first embodiment of the present invention, and illustrates the configuration of a mirrorless camera (hereinafter, camera) equipped with a subject detection function. The camera has a body 120 and a lens unit 100 that is detachable from the body 120.

[0014] The lens unit 100 has an imaging optical system 101 having a main optical system 102, an aperture 103, and a focus lens group 104. The focal length (angle of view) of the imaging optical system 101 may be variable. The lens unit 100 also has components for detecting the positions of the aperture 103 and movable lenses (such as the focus lens group 104, a zoom lens, and an anti-vibration lens) and for driving them.

[0015] The focus lens group 104 may have multiple focus lenses or only one focus lens. In addition, for the sake of simplicity, a fixed focal length lens is shown as an example of an interchangeable lens, but a lens with a changeable focal length (zoom lens) may also be used.

[0016] The lens unit 100 also has a lens control unit 111 that controls the operation of the lens unit 100. The lens control unit 111 has, for example, a memory that stores a program and a processor capable of executing the program.

[0017] The lens control unit 111 controls the operation of the lens unit 100 by executing a program with a processor, and communicates with the body 120 via mount setting units 114 and 141 described below. The aperture control unit 112 and the focus lens control unit 113 are functional blocks that represent functions that are realized by the processor of the lens control unit 111 executing a program.

[0018] The aperture control unit 112 controls the aperture amount (aperture value) of the aperture 103 under the control of the lens control unit 111. Furthermore, the aperture control unit 112 supplies the aperture value of the aperture 103 to the body 120 side via the lens control unit 111 in response to a request.

[0019] The focus lens control unit 113 drives the focus lens group 104 in the optical axis direction of the imaging optical system 101 and controls the position according to the control of the lens control unit 111. In addition, the focus lens control unit 113 supplies position information of the focus lens group 104 to the body 120 side via the lens control unit 111 upon request.

[0020] If the imaging optical system 101 has a zoom lens or an anti-vibration lens, the lens control unit 111 has a function of controlling the positions of these movable lenses.

[0021] The lens unit 100 and the main body 120 have mount portions that fit together. The mount portions have mount contact portions 114 and 141 that are configured to come into contact with each other when the lens unit 100 is attached to the main body 120. The lens unit 100 and the main body 120 are electrically connected through the mount contact portions 114 and 141. Power required for the operation of the lens unit 100 is supplied from the main body 120 through the mount contact portions 114 and 141. In addition, the lens control unit 111 and the control / calculation unit 124 can communicate with each other through the mount contact portions 114 and 161.

[0022] The camera body 120 includes a shutter 121 used for exposure control, and an image sensor 122 such as a CMOS (complementary metal oxide semiconductor) sensor.

[0023] The imaging optical system 101 forms an optical image on an imaging surface of an imaging element 122 provided in a main body 120. The imaging element 122 may be, for example, a general CMOS color image sensor. An openable and closable shutter 121 is provided between the imaging optical system 101 and the imaging element 122. When photographing, the shutter 121 opens to expose the imaging element 122. Note that the exposure control performed using the shutter 121 can also be realized by controlling the imaging element 122 (electronic shutter). In that case, it is also possible to configure the imaging device without the shutter 121 (mechanical shutter-less).

[0024] The imaging element 122 may be, for example, a known CCD or CMOS color image sensor having a primary color Bayer array color filter. The imaging element 122 has a pixel array in which a plurality of pixels are arranged two-dimensionally, and a peripheral circuit for reading out signals from the pixels. Each pixel accumulates electric charge according to the amount of incident light by photoelectric conversion. A group of pixel signals (analog image signals) representing the subject image formed on the imaging surface is obtained by reading out from each pixel a signal having a voltage according to the amount of electric charge accumulated during the exposure period.

[0025] The analog image signal is input to an analog front end (AFE) 123. The AFE 123 applies analog signal processing such as correlated double sampling and gain adjustment to the analog image signal, and then outputs the signal to a control and calculation unit 124.

[0026] The control / calculation unit 124 has, for example, a memory for storing a program and a processor capable of executing the program. The control / calculation unit 124 controls the operation of the main body 120 and realizes various functions of the main body 120 by executing the program with the processor.

[0027] The control and calculation unit 124 executes a program in the processor to communicate with the lens control unit 111. For example, commands to control the operation of the lens unit 100 and commands requesting information about the lens unit 100 are transmitted from the control and calculation unit 124 to the lens control unit 111. The lens control unit 111 controls the operation of the focus lens group 104 and the aperture 103 in response to the received commands, and transmits information about the lens unit 100 to the control and calculation unit 124. The information about the lens unit 100 transmitted to the control and calculation unit 124 includes, for example, product information about the lens unit 100, and information about the position of the movable lens and the aperture value.

[0028] Functional blocks 130 to 136 shown inside the control / calculation unit 124 in FIG. 1 are functional blocks that represent functions that are realized by the processor of the control / calculation unit 124 executing a program.

[0029] The operation unit 161 is a collective term for input devices (such as buttons, switches, and dials) that are provided for the user to input various instructions to the main body 120, and is composed of one or more input devices. The input devices that compose the operation unit 161 have names according to the functions assigned to them. For example, the operation unit 161 includes a release switch, a video recording switch, a shooting mode selection dial for selecting a shooting mode, a menu button, direction keys, and a decision key. Also, one input device may be an operation system corresponding to multiple functions. One representative input device (not shown) included in the operation unit 161 is a release switch. The release switch is a switch for recording still images, and the control and calculation unit 124 recognizes a half-pressed state of the release switch as a shooting preparation instruction, and a full-pressed state as a shooting start instruction. Also, the control and calculation unit 124 recognizes that the main body 120 is in shooting standby when the release switch is not pressed. In addition, when the release switch is pressed halfway, the control and calculation unit 124 controls each unit to perform a focusing operation and an exposure control operation (collectively referred to as "shooting preparation"), which will be described later.

[0030] The control and calculation unit 124 recognizes the video recording switch as a command to start recording when pressed during video recording standby, and as a command to stop recording when pressed during video recording. Note that the functions assigned to the same input device may be variable.

[0031] The angular velocity sensor 126 is, for example, a three-axis gyro sensor, and outputs a signal representing the movement of the main body 120 to the control and calculation unit 124. The control and calculation unit 124 detects the movement of the main body 120 based on the signal output from the angular velocity sensor 126. Furthermore, the control and calculation unit 124 executes predetermined control based on the detected movement of the main body 120.

[0032] The display unit 151 is a display device (touch display) equipped with a touch panel 152. The display unit 151 functions as an electronic viewfinder (EVF) by continuously capturing moving images (sequential acquisition of image signals) by the image sensor 122 and displaying the resulting moving images on the display unit 151 via the display control unit 136 described later.

[0033] The display unit 151 can play back and display image data recorded in the storage unit 125, display information related to the state and settings of the main body 120, and display a GUI (Graphical User Interface) such as a menu screen. The user can operate the displayed GUI or specify a focus detection area by performing a touch operation on the touch panel 152.

[0034] When the control and calculation unit 124 detects an operation on the operation unit 161 and the touch panel 152, it executes an operation according to the detected operation. For example, when it detects an operation to instruct preparation for shooting a still image, the control and calculation unit 124 causes the focus control unit 134 and the exposure calculation unit 135 described later to execute AF processing, AE processing, etc. When it detects an operation to instruct shooting a still image, the control and calculation unit 124 controls or executes a process of shooting a still image, a process of generating image data for recording, a process of recording image data for recording in the recording unit 125, etc. The storage unit 125 may be configured with a storage medium such as a memory card. In that case, it may be configured to be capable of communication via a storage medium interface (storage medium I / F, not shown) that connects the storage medium and the control and calculation unit 124.

[0035] The control and calculation unit 124 applies predetermined image processing to the analog image signal input from the AFE 123 to generate signals and image data, and acquires and / or generates various information. The control and calculation unit 124 may be, for example, a dedicated hardware circuit such as an ASIC designed to realize a specific function, or may be configured to realize a specific function by a programmable processor such as a DSP executing software.

[0036] The image processing applied by the control and calculation unit 124 includes pre-processing, color interpolation, correction, detection, data processing, evaluation value calculation, special effect processing, and the like. Pre-processing includes signal amplification, reference level adjustment, defective pixel correction, and the like. Color interpolation is a process of interpolating the values ​​of color components that cannot be obtained during shooting, and is also called demosaicing. Correction includes white balance adjustment, gradation correction, correction of image degradation caused by optical aberration of the imaging optical system 101 (image recovery), correction of the effect of peripheral light reduction of the imaging optical system 101, color correction, and the like. Detection includes detection of characteristic regions (for example, face regions and human body regions) and their movements, person recognition processing, and the like. Data processing includes synthesis, scaling, encoding and decoding, header information generation (data file generation), and the like. Evaluation value calculation includes generation of signals and evaluation values ​​used for automatic focus detection (AF), generation of evaluation values ​​used for automatic exposure control (AE), and the like. The special effect processing includes processes such as adding a blur effect, changing color tones, relighting, etc. Note that these are examples of processes that can be applied by the control and calculation unit 124, and do not limit the processes that can be applied by the control and calculation unit 124. Although not shown in Fig. 1, a configuration may be adopted in which a processing circuit that performs the above-mentioned image processing, etc. is separately provided.

[0037] Main subject calculation section 130 shown in control and calculation section 124 in Fig. 1 is a functional block having functions related to subject detection processing and main subject determination, which are realized by control and calculation section 124 executing a program, for example. Main subject calculation section 130 in Fig. 1 is composed of detection section 131 and main subject determination section 132. Note that, unlike Fig. 1, a configuration may be adopted in which main subject calculation section 130 is provided separately from control and calculation section 124. In this case as well, control and calculation section 124 can cause main subject calculation section 130 to perform each function by, for example, executing a program.

[0038] The detection unit 131 applies a detection process for a plurality of types of subjects that are determined in advance to the image data, and detects a subject region for each type of subject. Any known method such as AdaBoost or a convolutional neural network may be used as the detection method. The implementation form may be a program that runs on a CPU, dedicated hardware, or a combination of these. Here, the detection unit 131 is described as holding parameters for detecting a subject region for each type of subject as dictionary data. The detection unit 131 can detect subject regions for a plurality of types of subjects by switching the dictionary data used in the detection process. That is, each dictionary data holds parameters corresponding to each of the plurality of types of subjects.

[0039] The dictionary data can be generated in advance by a known method such as machine learning. There is no limit to the type of subject detected by the detection unit 131, but in this embodiment, it is assumed that the detection result is used for subject tracking. Therefore, the detection unit 131 detects one or more types of subjects from among moving subjects, for example, human bodies, vehicles (motorcycles, automobiles, trains, airplanes, ships, etc.), and animals (dogs, cats, birds, etc.). In addition, for human bodies (second type of subjects), one or more specific parts such as the head, torso, and pupils can also be detected. For vehicles (first type of subjects), the whole body and one or more predetermined specific parts can be detected. For animals, one or more specific parts such as the whole body, face, and pupils can be detected.

[0040] For the detection of a specific part, an organ detection unit (not shown) may be provided in addition to the detection unit 131. In this case, the organ detection unit detects the area of ​​an organ in the area of ​​the subject detected by the detection unit 131. For example, the organ detection unit detects the areas of organs such as the face, eyes (pupils), nose, and mouth in the subject area of ​​a human body detected by the detection unit 131. The organ detection unit can detect the face and organs by a known method using feature parameters and templates. It goes without saying that when the detection unit 131 is configured to detect the organs described above, the organ detection unit can be omitted.

[0041] The detection unit 131 generates a detection result for each subject to be detected. The detection result includes, but is not limited to, the total number of detected areas, the position, size, detection reliability, and detection frequency of each area. If an organ detection unit is provided, a detection result is generated for each detection target for the detected face area or organ area. The detection result includes, but is not limited to, the total number of detected areas, and the position, size, and detection reliability of each area. The information acquired by the detection unit 131 is supplied to a main subject determination unit 132, which will be described later.

[0042] In this specification, the processes of detection section 131 and main subject determination section 132 of main subject calculation section 130 are collectively referred to as subject detection processing. Image data on which the subject detection processing is performed may be that acquired by image sensor 122, or that read out from storage section 125. Furthermore, the subject detection processing is applicable to both still image data and video data.

[0043] The main subject determination unit 132 determines the main subject, which is a target subject of the tracking process, based on the result of the subject detection process by the detection unit 131. The initial determination of the main subject is performed using a known calculation method based on the position, size, detection reliability, etc. The details will be described later.

[0044] Tracking calculation unit 133 executes tracking processing using information on the main subject set as the tracking target by main subject determination unit 132. The tracking processing may use any known method such as template matching. The implementation form may be a program running on a CPU, dedicated hardware, or a combination of these.

[0045] Focus control unit 134 performs calculations of control values ​​for focus lens 104 required to focus on the area of ​​the main subject (main subject area). The calculation results are transmitted to lens control unit 111 via mount contact units 114 and 141, and focus lens control unit 113 uses them to control focus lens 104. Note that focus control unit 134 can also perform calculations for focusing not only on the area of ​​the main subject, but also on a focus detection area (AF area) specified by the user via touch panel 152 or the like, or on an area set on the camera side.

[0046] Exposure calculation unit 135 calculates control values ​​for aperture 103 and image sensor 122 to achieve appropriate exposure for the main subject region. For example, the calculation result of the control value for aperture 103 is transmitted to lens control unit 111 via mount contact units 114 and 141, and aperture control unit 112 uses it to control aperture 103. Note that exposure calculation unit 135 can also perform control so as to achieve optimal exposure conditions for the entire image, not limited to the main subject region, and can calculate exposure control values ​​specialized for a specific region designated by the user via touch panel 152 or the like.

[0047] For example, when the release switch of main body 120 is half-pressed, focus control unit 134 and exposure calculation unit 135 described above each perform calculations to execute a focus adjustment operation and an exposure control operation for a main subject under the control of control / calculation unit 124. Note that focus control unit 134 and exposure calculation unit 135 may execute the focus adjustment operation and exposure control operation for the main subject determined by main subject determination unit 132 or the subject being tracked by tracking calculation unit 133 for each image data obtained or at predetermined intervals, regardless of the operation of the release switch.

[0048] The display control unit 136 not only displays image data processed by the control and calculation unit 124 on the display unit 151, but also switches images and menu displays displayed on the display unit 151 in response to user operations. Also, the display control unit 136 can display information (frames and markers) representing the subject area of ​​the tracking target on the display unit 151 by superimposing it on a live view image, for example.

[0049] Next, a flow of the main subject reselection process in main subject determination section 132 in this embodiment will be described with reference to FIGS.

[0050] As an example, the behavior of the camera when it is waiting to take a picture, that is, when the user is not pressing the operation unit 161 (here, the release switch), will be described using a specific scene example in FIG. 3. In FIG. 3(a), when a motorcycle approaching from afar is placed within the angle of view of the camera, the motorcycle is initially too small to be detected, and instead a roadside structure is erroneously detected as the entire body of a dog or cat. As the motorcycle approaches and becomes larger, the entire motorcycle and the helmet can be correctly detected, but the roadside structure is still erroneously detected as the entire body of a dog or cat. In a conventional main subject selection method that does not reselect the main subject, as shown in FIG. 3(b), the only roadside structure that can be detected at first is selected as the main subject as a dog or cat. As long as the erroneous detection continues stably, the structure will continue to be tracked as the main subject even if the motorcycle becomes detectable. However, with the present configuration, as shown in FIG. 3(c), once the motorcycle becomes detectable, the motorcycle can be reselected as the main subject.

[0051] Next, a process flow that enables reselection of the main subject as in Fig. 3(c) will be described with reference to Fig. 2. The process of the flowchart in Fig. 2 progresses as each unit executes its operation under the control of the control and calculation unit 124.

[0052] In step S200, main subject determination unit 132 checks whether the types of subjects detected by detection unit 131 are two or more types. Two types means that the types of dictionaries detected are different, for example, a dog or cat and a two-wheeled vehicle, and different parts of the same type of subject, such as the eyes of a dog or cat and the whole body of a dog or cat, are not counted as two types. If two or more types are detected, the process proceeds to step S201. If two or more types are not detected, the process of main subject determination unit 151 ends. In the example scene in FIG. 3, a dog or cat and a two-wheeled vehicle were detected when the two-wheeled vehicle approached, so the process proceeds to step S201.

[0053] In step S201, main subject determination unit 132 checks the shooting state of the camera. If the camera is on standby for shooting, that is, if the user is not pressing operation unit 161 (corresponding to the release switch here), the process proceeds to step S202. After a focusing operation has been performed by the user, that is, after the user has started focusing on the subject by pressing the release switch, and if the release switch is still pressed (maintained half-pressed state), the process proceeds to step S205. To explain an example of a state where the camera is on standby for shooting, the process proceeds to step S202.

[0054] In step S202, main subject determination section 132 compares parameters relating to main subject likelihood between detection results of different subject types, assigns a score to the main subject likelihood (calculates an evaluation value), and the process proceeds to step S203.

[0055] An example of the calculation of the score of the main subject likelihood in the scene of FIG. 3 will be described with reference to FIG. 4. Consider a situation in which a two-wheeled vehicle that the user intends to photograph is far away, and a roadside structure is erroneously detected as a dog or cat, and the vehicle is tracked (during tracking). First, assume that the two-wheeled vehicle becomes large as shown in FIG. 4(a), and the entire motorcycle and the helmet can be detected in addition to the roadside structure. In this case, the main subject determination unit 132 compares the detection size, detection position, detection reliability, detection frequency, and number of parts as parameters related to the main subject likelihood for each of the dog / cat and two-wheeled vehicle detection results. In this example, the main subject determination unit 132 compares these five parameters, but this set is not necessarily required. Depending on the calculation load of the main subject determination unit 132, the number of parameters may be reduced, or conversely, a parameter related to the main subject likelihood, such as a vector matching rate with the framing direction, may be further added. In addition, the main subject determination unit 132 calculates a total score (evaluation value) by adding up the scores of various parameters for each subject type, and determines the main subject likelihood.

[0056] When comparing the sizes of detection results of different types of subjects, it is possible to simply compare the detection frame size or detection area of ​​each subject, but it is more desirable to give scores (weighting) taking into account relative differences such as the original size difference of each subject. For example, as shown in Figure 4(b), the average heights of a motorcycle helmet, an entire motorcycle, and a whole dog or cat are 25 cm, 100 cm, and 50 cm, respectively, and the vertical size of the detected image is 20%, 45%, and 20% of the vertical angle of view, respectively. In this case, the values ​​1.12, 0.45, and 0.40 obtained by dividing the vertical size by the average height are used for comparison. Scores may be normalized, but for simplicity, the maximum score is the same as the number of detected subjects, and scores are assigned in order, decreasing by 1. For the sizes shown in Figure 4(b), a motorcycle helmet, an entire motorcycle, and a whole dog or cat are given 3 points, 2 points, and 1 point, respectively.

[0057] Next, a method of assigning points to the position of a detected subject will be described with reference to FIG. 4(c). Here, the distance from the AF area set in advance by the user to each detection target is compared so as to reflect the user's intention as much as possible. If the AF area selected by the user covers the entire image, the distance from the center point of the image to each detection target is compared. For example, the distance 501 to the center coordinate of the motorcycle helmet detection area, the distance 502 to the center coordinate of the entire motorcycle detection area, and the distance 503 to the center coordinate of the whole body detection area of ​​a dog or cat are compared with the center coordinate of the AF area 500 selected by the user. In this case, since the distance relationship is 502<501<503 in FIG. 4(c), the motorcycle helmet, the entire motorcycle, and the whole body of a dog or cat are assigned 2 points, 3 points, and 1 point, respectively. Next, the reliability indicating the certainty of detection and the detection frequency, which is the number of detections among three frames including the relevant scene, are assigned 3 points, 2 points, and 1 point, respectively, in descending order. Furthermore, in the scene shown in Fig. 4(a), where both the motorcycle and the helmet are detected, while the dog or cat is detected only in its entirety out of the detectable eyes, face, and whole body, the points for the number of body parts are the number of detected body parts, i.e., the motorcycle is given 2 points, and the dog or cat is given 1 point. However, this is only when the motorcycle is determined to belong to the same motorcycle. If the motorcycle is determined to be a different motorcycle due to a large distance, each will be calculated as 1 point.

[0058] In step S203, main subject determination unit 132 compares the total score of the detection result of another subject type with the total score of the current subject type determined to be the main subject. If the total score of the other subject type is higher than the total score of the current subject type by more than a threshold value, the process proceeds to step S204, where main subject determination unit 132 resets the main subject to a subject type different from the current subject type and ends the process. Otherwise, the process proceeds to step S207, where main subject determination unit 132 ends the process without changing the type of the current subject determined to be the main subject.

[0059] FIG. 4(d) shows the comparison result of the total score obtained by adding up the scores of the size, detection position, detection reliability, detection frequency, and number of parts of the detected subject. As a result of the comparison, the total score of the entire motorcycle is 8 points higher than the total score of the whole body of the dog or cat. At this time, the threshold value of the score that is considered to have a difference is set to, for example, 3 (because the majority of the parameter number 5 is 3). In this case, since the difference between the score of the entire motorcycle and the score of the whole body of the dog or cat is 8 points, that is, 3 points or more, the main subject determination unit 132 changes the type of the main subject from the whole body of the dog or cat to the motorcycle helmet as shown in FIG. 3(c). The reason why the threshold value of the score that is considered to have a difference is specified here is to prevent the main subject from being frequently changed when there is a subject with almost the same score as the current main subject. Note that in this example, the entire motorcycle is ranked first, but the motorcycle helmet is set as the main subject. This is because in this embodiment, the algorithm prioritizes the detection of smaller parts of the subjects that are closer to the focus position of the subject intended by the user. Note that a configuration that does not include such a detection algorithm may be used.

[0060] Next, as an example, the behavior of the camera after the user presses the release switch (half-pressed state) to activate focusing will be explained using the specific scene example in Figure 5. Note that pressing here corresponds to a "shooting preparation instruction." If the main subject determined by the camera after the pressing action (shooting preparation instruction) is the intended subject, the user can press the release switch further to transition to a fully pressed state and issue an "instruction to start shooting."

[0061] In FIG. 5(a), when a motorcycle approaching from afar enters the camera's angle of view, it is initially erroneously detected as a bird and is not detected as the motorcycle it should be. As the motorcycle approaches and grows larger, the entire motorcycle and helmet can be correctly detected, but the mirrors and handlebars of the motorcycle continue to be erroneously detected as the whole bird. In a conventional main subject selection without reselecting the main subject, the motorcycle is tracked as the only bird that was detected at first, as shown in FIG. 5(b). As long as the erroneous detection continues with a certain degree of stability, the erroneous detection result of the bird continues to be used even when the motorcycle can be detected. In other words, the camera operates to focus on the handlebars, while the user would expect the helmet to be the focus. However, with this configuration, as shown in FIG. 3(c), if the motorcycle can be detected as a motorcycle, it can be reselected as the main subject.

[0062] In the example of Fig. 5, a scene is assumed in which the user continues to hold the release switch half-pressed after the focus adjustment operation is initiated by pressing the release switch. Therefore, after proceeding to step S200 and step S201, the process proceeds to step S205, unlike the example of Fig. 3.

[0063] In step S205, the main subject determination unit 132 checks whether the detection result of the subject type that is not currently the main subject belongs to the same subject area as the detection result of the current main subject type. In other words, it checks whether the detection position of the subject that is not currently the main subject exists in the detection area of ​​the current main subject type. Since the user continues to press the release switch (maintains the half-pressed state) after the focus adjustment is initiated by the user's operation, it is considered that at least the subject currently being tracked is the subject intended by the user. Therefore, it is considered preferable not to adopt the detection result that exists in an area other than the subject being tracked. As a method for determining whether they belong to the same subject area, a known method such as a distance-based method in which, for example, if the distance from the current subject is within 40% of the horizontal distance of the image, it is considered to be the same is used. If there is a subject type that is determined to belong to the same subject area, the process proceeds to step S206, and if there is no subject type that is determined to belong to the same subject area, the process proceeds to step S207 and then ends. In the example of Figure 6, since the center of the motorcycle helmet and the entire motorcycle are included within a range of 40% of the horizontal distance between the upper and lower images from the detection position of the bird, which is the current main subject, it is determined that they belong to the same subject area, and the process proceeds to step S206.

[0064] In step S206, main subject determination section 132 compares parameters relating to the main subject likelihood between detection results of different subject types, assigns a score to the main subject likelihood, and proceeds to step S203.

[0065] An example of calculation of the score for the likelihood of being the main subject in the scene of Fig. 5 will be described with reference to Fig. 5(d). Unlike step S202, parameters used here for scoring the likelihood of being the main subject are parameters excluding size and position. This is because, since the user continues to press the release switch (maintains the half-pressed state) after initiating focus adjustment by the user's operation, it is considered that at least the subject currently being held is the subject intended by the user. Therefore, if a detection result is determined to belong to the same subject area as that subject, it is considered acceptable to consider it as a candidate for adoption regardless of its size or position.

[0066] In the example of FIG. 5(d), the detection reliability, detection frequency, and number of detected parts are scored in the same manner as in S202. If these values ​​are the same, the same points are assigned and calculation is performed as with the point for frequency. As a result of the calculation, the total point for the entire motorcycle is 8 points, and the total point for the entire bird is 4 points. In this case, the total point for the entire motorcycle is 4 points higher than the total point for the entire bird. In other words, since the difference in points is greater than or equal to the threshold value of 2 (the majority of the three parameters is 2), step S203 proceeds to step S204, where the main subject is changed from the bird to the motorcycle, and processing ends.

[0067] In the above example, the parameters used to score the likelihood of being the main subject are treated as being equally superior or inferior to each other, but the parameters used may be different depending on the combination of subject types, or the parameters may be weighted. For example, if the current subject is a bird and the other type detected is a person, and it is known that the bird dictionary has a characteristic that it is prone to false detection of human heads, it may be considered to lower the priority of position and size. In addition, the results of detection frequency and number of body parts may be weighted according to the difference in detection performance between the dictionaries. For example, if the detection performance of people is 90% and the detection performance of birds is 80%, the detection results of people may be prioritized by weighting the detection results of birds.

[0068] As described above, in this embodiment, it is possible to provide an imaging device capable of detecting and tracking a variety of subject types while suppressing erroneous detection.

[0069] <Other embodiments> Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention.

[0070] 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. [Explanation of symbols]

[0071] 100 Interchangeable Lenses 120 Camera body 122 Image sensor 124 Control and Calculation Unit 130 Main subject calculation section 131 Detection unit 132 Main subject determination section 133 Tracking calculation section 134 Focus control section 135 Exposure calculation section

Claims

1. An acquisition means for acquiring an image; A detection means for detecting different types of objects; a main subject determination means for determining a main subject using a detection result by the detection means; a tracking means for tracking the main subject determined by the main subject determination means, The main subject determination means, when the detection means is continuously detecting the tracked subject and the detection result of a subject type that is not currently the main subject belongs to the same subject area as the detection result of the current main subject type, determines the main subject-likeliness of the subject of the subject type that is not currently the main subject, and determines the type of the main subject.

2. The imaging device according to claim 1, characterized in that, when the detection means is continuously detecting the tracked subject, and the detection result of a subject type that is not currently the main subject belongs to the same subject area as the detection result of the current main subject type, and the subject of the subject type that is not currently the main subject has a value indicating a main subject-likeliness that is higher than the tracked subject by a threshold value or more, the main subject type is switched.

3. 2. The image pickup apparatus according to claim 1, wherein the detection means detects the subject from the image by using a plurality of dictionary data corresponding to different types of subjects.

4. The image acquisition device further includes a display control unit that controls the image acquisition unit to display the image on a display unit.

2. The imaging apparatus according to claim 1, wherein the display control means controls so that information indicating the subject being tracked by the tracking means is displayed in a superimposed manner on the image.

5. The imaging device according to claim 1 , wherein the value indicating the likelihood of being the main subject is calculated from at least one parameter of the subject's size, position, detection reliability, detection frequency, and number of detected parts.

6. The imaging device further includes a receiving unit for receiving an instruction to perform a photographing preparation process, The imaging device according to claim 5, characterized in that, in response to the instruction being received by the receiving means, the main subject determination means sets a parameter of the value indicating the likelihood of being the main subject to at least one of detection reliability, detection frequency, and the number of parts to be detected.

7. 2. The image pickup apparatus according to claim 1, wherein the value indicating the likelihood of being the main subject increases as the subject is closer to the center of the image or to a focus area set by a user.

8. 6. The imaging apparatus according to claim 5, wherein the parameters of the sizes of the plurality of different types of subjects are weighted in consideration of relative size differences between the types of subjects.

9. The imaging apparatus according to claim 1 , wherein the value indicating the likelihood of being the main subject increases as the detection reliability of the subject increases.

10. The imaging apparatus according to claim 1 , wherein the value indicating the likelihood of being the main subject increases as the frequency of detection of the subject increases.

11. The imaging apparatus according to claim 1 , wherein the value indicating the likelihood of being the main subject increases as the number of detected parts of the subject increases.

12. 2. The image pickup apparatus according to claim 1, wherein the type of the subject includes a human body.

13. 2. The imaging apparatus according to claim 1, wherein the types of subjects include at least one of a vehicle, a motorcycle, a car, a train, an airplane, and a ship.

14. 2. The image capturing apparatus according to claim 1, wherein the types of subjects include at least one of animals, dogs, cats, and birds.

15. 15. The imaging apparatus according to claim 12, wherein the detection means is capable of detecting a specific part of a subject.

16. 16. The imaging apparatus according to claim 15, wherein the main subject determination means calculates a value indicating the likelihood of the main subject for each part.

17. An acquisition step of acquiring an image; A detection step of detecting different types of objects; a main subject determination step of determining a main subject using a detection result in the detection step; a tracking step of tracking the main subject determined in the main subject determination step, A method for controlling an imaging device, characterized in that in the main subject determination step, when the subject being tracked is continuously detected in the detection step and the detection result of a subject type that is not currently the main subject belongs to the same subject area as the detection result of the current main subject type, the likeliness of the subject of the subject of the subject type that is not currently the main subject is determined as a main subject, and the type of the main subject is determined.

18. A program for causing a computer to execute each step of the method for controlling an imaging apparatus according to claim 17.

19. 20. A computer-readable storage medium storing a program for causing a computer to execute each step of the method for controlling an image pickup apparatus according to claim 17.

Citation Information

Patent Citations

  • Image processor, method of controlling the same, and computer program

    JP2010251866A

  • Subject tracking device, subject tracking method, computer program, and storage medium

    JP2021132362A

  • Image processing device and control method thereof, imaging device, program, and storage medium

    JP2021132369A

  • Focusing device and method, and imaging apparatus

    JP2022051280A

  • Imaging apparatus, image processing apparatus, method for controlling image processing apparatus, method for controlling imaging apparatus, and program

    JP2022126423A