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

The image processing device addresses the mismatch between user intentions and existing detection methods by employing adjustable cropping and transition settings, enhancing subject detection accuracy and inclusivity.

JP7549453B2Active Publication Date: 2024-09-11CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020037159
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-03-04
Publication Date
2024-09-11
Estimated Expiration
2040-03-04

AI Technical Summary

Technical Problem

Existing subject detection methods in images often expand the cropping range to detect subjects other than the main subject, sacrificing detection rate, or fail to detect alternative subjects due to narrow cropping, failing to align with user intentions.

Method used

An image processing device with settings for candidate areas, cutout areas, and transition degrees to dynamically adjust cropping based on user preferences, ensuring accurate detection of both main and alternative subjects.

Benefits of technology

Enables subject detection that closely matches user intentions by allowing flexible cropping and transition settings, improving detection accuracy and inclusivity of subjects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007549453000004
    Figure 0007549453000004
  • Figure 0007549453000003
    Figure 0007549453000003
  • Figure 0007549453000001
    Figure 0007549453000001
Patent Text Reader

Abstract

To provide an imaging device capable of detecting a subject that more closely matches the user's intention.SOLUTION: An imaging device includes a detection unit that detects a subject from an image captured by an imaging unit, a first setting unit that sets a candidate area which is a candidate area for detecting a subject by the detection unit in the image, a second setting unit that sets a cutout area for detecting a target subject for a candidate area, and a third setting unit that sets the degree of transfer that determines the degree to which the operation of the imaging device keeps following the detected current main subject or switches to another subject, and the second setting unit sets the cutout area for the candidate area on the basis of the degree of transfer.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technique for detecting a subject from an image. [Background technology]

[0002] 2. Description of the Related Art Conventionally, techniques for detecting a subject from a captured image have been known.

[0003] For example, Patent Document 1 discloses a technique for switching the selection of whether to crop a specified area of ​​a captured image or not depending on the detection result of the previous captured image when extracting a subject area from the captured image. By using only the cropped area, rather than the entire image, as the input image for subject detection, it is possible to improve the detection performance of small subjects. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2008-172368 A Summary of the Invention [Problem to be solved by the invention]

[0005] In Patent Document 1, the crop range is determined based on the size and position of at least one of the previously detected subjects. However, with this method, even if the user is not interested in subjects other than the current main subject, the crop range may be widened in an attempt to detect subjects other than the main subject. In this case, the detection rate of the main subject may be relatively sacrificed.

[0006] Conversely, even if it is desired to detect a subject other than the current main subject and switch to a preferred subject as the new main subject, cropping may be performed in a narrow area, and the subject other than the main subject may not be detected.

[0007] The present invention has been made in view of the above-mentioned problems, and has an object to provide an image processing device capable of performing subject detection that more closely matches the user's intention. [Means for solving the problem]

[0008] The image processing device according to the present invention comprises a detection means for detecting a subject from an image captured by an imaging means, a first setting means for setting a candidate area which is an area in the image that is a candidate for detecting the subject by the detection means, a second setting means for setting a cut-out area for detecting a target subject in the candidate area, and a third setting means for setting a transition degree which determines the degree to which the operation of the imaging device should continue to follow the detected current main subject or should be switched to another subject; the candidate region is set so as to include the cut-out region and the region of the current main subject; The second setting means determines the cut-out area for the candidate area based on the degree of transition. Location The present invention is characterized in that: Effect of the Invention

[0009] According to the present invention, it is possible to provide an image processing device capable of performing subject detection that more closely matches the user's intention. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram showing the configuration of an image pickup apparatus according to an embodiment of the present invention; [Diagram 2] 4A to 4C are diagrams illustrating input images to a subject detection unit. [Diagram 3] 1 is a flowchart showing an overall processing procedure according to an embodiment. [Figure 4] FIG. 4 is a schematic diagram showing a crop region according to an 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] (Configuration of imaging device) 1 is a block diagram showing the configuration of an image capturing apparatus 100 according to an embodiment of the present invention. The configuration of the image capturing apparatus 100 will be described with reference to FIG.

[0013] The imaging device 100 may be, but is not limited to, a digital still camera or video camera that can capture an image of a subject and record moving or still image data on various media such as tape, solid-state memory, optical disk, magnetic disk, etc. Each unit in the imaging device 100 is connected via a bus 160. Each unit is controlled by a CPU 151 (Central Processing Unit).

[0014] The lens unit 101 is configured to include a fixed first group lens 102, a zoom lens (second group lens) 111, an aperture 103, a fixed third group lens 121, and a focus lens 131. The focus lens 131 is a lens for adjusting focus, and although it is simply shown as a single lens in FIG. 1, it is usually configured with multiple lenses.

[0015] The aperture control unit 105 adjusts the aperture 103 opening diameter by driving the aperture 103 via the aperture motor 104 (AM) in accordance with a command from the CPU 151, thereby adjusting the amount of light during shooting. The zoom control unit 113 changes the focal length by driving the zoom lens 111 via the zoom motor 112 (ZM). The focus control unit 133 determines the drive amount for driving the focus motor 132 (FM) based on the shift amount (defocus amount) of the lens unit 101 in the focus direction. In addition, the focus control unit 133 drives the focus lens 131 via the focus motor 132 (FM) to control the focus adjustment state. The movement control of the focus lens 131 by the focus control unit 133 and the focus motor 132 realizes AF (autofocus) control.

[0016] The subject image formed on the image sensor 141 via the lens unit 101 is converted into an electrical signal by the image sensor 141. The image sensor 141 is a photoelectric conversion element that converts the subject image (optical image) into an electrical signal. The image sensor 141 is configured with light receiving elements arranged with m pixels in the horizontal direction and n pixels in the vertical direction. The image signal that is formed on the image sensor 141 and photoelectrically converted is arranged as image data by the image signal processing unit 142, and an image on the imaging surface can be acquired.

[0017] The image data output from the imaging signal processing unit 142 is sent to the imaging control unit 143 and temporarily stored in a RAM 154 (random access memory). The image data stored in the RAM 154 is compressed in an image compression / decompression unit 153 and then recorded in an image recording medium 157. In parallel with this, the image data stored in the RAM 154 is sent to the image processing unit 152. The image processing unit 152 processes the image signal, performs reduction / enlargement processing to an optimal size for the image data, calculation of similarity between image data, etc. By appropriately sending and displaying the image data processed to the optimal size to the monitor display 150, a preview image display or a through image display can be performed, and the subject detection result of the subject detection unit 162 can also be superimposed on the image data. In addition, by using the RAM 154 as a ring buffer, it is possible to buffer a plurality of image data captured within a predetermined period, the detection result of the subject detection unit 162 corresponding to each image data, and the position and orientation change of the imaging device acquired by the position and orientation change acquisition unit 161, etc.

[0018] The operation switch 156 is an input interface including a touch panel, buttons, etc., and various operations can be performed by selecting and operating various function icons displayed on the monitor display 150.

[0019] CPU 151 determines the accumulation time of imaging element 141 and the setting value of gain when outputting from imaging element 141 to imaging signal processing unit 142, based on an instruction from the user inputted from operation switch 156 or the magnitude of a pixel signal of image data temporarily accumulated in RAM 154. Imaging control unit 143 receives instructions on the accumulation time and gain setting values ​​from CPU 151 and controls imaging element 141.

[0020] The subject detection unit 162 uses the image signal to determine an area where a specific subject exists (main subject area). The subject detection unit 162 detects the subject by a known method such as pattern matching. The focus control unit 133 can perform AF control (automatic focus adjustment operation) for a specific subject area. The aperture control unit 105 performs exposure control (exposure adjustment operation) using the luminance value of the specific subject area. The image processing unit 152 performs gamma correction, white balance processing, etc. based on the subject area.

[0021] Images and subject detection results are displayed as rectangles etc. on a monitor display (display unit) 150. A battery 159 is appropriately managed by a power management unit 158 ​​and provides a stable power supply to the entire imaging device 100.

[0022] The flash memory 155 stores control programs necessary for the operation of the imaging device 100, parameters used for the operation of each unit, and the like. When the imaging device 100 is started up by a user's operation (when the power is switched from OFF to ON), the control programs and parameters stored in the flash memory 155 are loaded into a part of the RAM 154. The CPU 151 controls the operation of the imaging device 100 according to the control programs and constants loaded into the RAM 154.

[0023] The position and orientation change acquisition unit 161 is configured with a position and orientation sensor such as a gyro sensor, an acceleration sensor, or an electronic compass, and measures a change in the position and orientation of the imaging device 100 relative to a shooting scene. The acquired position and orientation change is stored in the RAM 154.

[0024] The depth calculation unit 163 calculates the distance from the imaging device to any object in the image. The generated distance information is stored in the RAM 154 and is referred to by the image processing unit 152.

[0025] It should be noted that the configuration described above is merely one example of the configuration of the imaging device.

[0026] (Subject detection premise) Next, the premise of this embodiment when generating an input image for the subject detection unit 162 and the problem when the method of this embodiment is not applied will be described with reference to Fig. 2. Here, it is assumed that the subject detection unit 162 can detect dogs, for example.

[0027] Fig. 2(a) shows a high-resolution first image generated by imaging signal processing unit 142. Hereinafter, this will be referred to as image a. A second image with lower resolution than image a, for example with half the number of pixels vertically and horizontally, is generated and used as input to subject detection unit 162. Fig. 2(b) shows the result of simply reducing the entire image a to generate the second image. This will be referred to as image b. The detection performance (detection rate and degree of matching of area) of subject detection unit 162 may depend on the size of the subject on the input image, and if image b is used as input to subject detection unit 162, the detection performance of the subject, which has become smaller as it is reduced, will be poor.

[0028] Figure 2(c) shows the result of generating a second image by cropping (a process of cutting out a part of the image from the full angle of view) the surrounding area when a main subject is present. This is called image c. Unlike image b, since it has not been reduced in size, the resolution of the main subject is the same as that of image a, and the deterioration of detection performance due to reduction can be suppressed. As a result, the main subject can be stably detected and tracked. On the other hand, there is an issue that other subjects that are not present near the main subject cannot be detected.

[0029] In other words, there is a trade-off between using image b as input to subject detection unit 162 to include many subjects within the detection range of subject detection unit 162, and using image c as input to subject detection unit 162 to enable even a small main subject to be detected with high accuracy.

[0030] (About focus candidate areas and transition degree) In this embodiment, the user sets a focusing candidate area. Here, the focusing candidate area refers to an area in which a target subject present in the area is preferentially selected as a main subject and focused on by AF (autofocus).

[0031] In addition, the user sets the degree of subject transition before shooting. The degree of transition is a value indicating the degree to which, when a main subject is being tracked (tracked) and another subject is present during shooting, it is easy to continue tracking the current main subject or to select the other subject as a new main subject. The degree of transition can be set, for example, to two values, high and low, or to multiple levels. Note that a higher value of the degree of transition means that it is easier to select another subject as a new main subject (easier to transition).

[0032] Here, if the condition "there is a subject closer to the center of the focusing candidate area than the current main subject" continues for a predetermined time, the subject is selected as the new main subject. At this time, this predetermined time can be changed according to the degree of transition. For example, if the degree of transition is the maximum that can be set, the above-mentioned predetermined time is shortened and the transition is performed immediately. If the degree of transition is the minimum that can be set, the transition is not performed unless the main subject is lost. In other cases, the predetermined time can be set to a value proportional to the degree of transition.

[0033] Although an example of the positional relationship of the subjects has been given as a condition for transfer, this does not have to be the only case. For example, it is possible to design the transfer so that, when there is another subject larger than the main subject, the transfer occurs only if the degree of transfer is equal to or greater than a threshold value.

[0034] (Overall processing flow) The flow of the entire process in this embodiment will be described with reference to Figures 3 and 4. In this embodiment, the degree of subject transition can be set in three stages, large, medium, and small, and it is assumed that the user sets this in advance when taking a photograph.

[0035] First, in step S200, the CPU 151 supplies an input image from the imaging control unit 143 to each unit.

[0036] Next, in step S201, CPU 151 determines whether or not a main subject is being tracked (whether or not a main subject exists). If tracking is in progress, the process proceeds to step S202, and if tracking is not in progress, the process proceeds to step S208.

[0037] Next, in step S202, CPU 151 refers to the degree of transition previously set by the user. If the degree of transition is small, that is, if the setting indicates that the current main subject should be tracked for as long as possible, the process proceeds to step S203. If the degree of transition is medium, the process proceeds to step S204, and if it is large, the process proceeds to step S205. In steps S203, S204, and S205, the center of the area to be cropped is determined.

[0038] In step S203, the CPU 151 performs cropping around the center of the main subject region, as shown in FIG. 4(a). Here, the detection result of the previous frame may be used as the main subject region as is, or simple template matching may be performed on the detection result of the previous frame to roughly calculate the main subject region in the current frame. By performing cropping around the center of the region thus obtained, it is possible to improve the detection accuracy of the same subject region in the current frame as in the previous frame. On the other hand, it becomes impossible to detect subjects that do not exist in the vicinity. However, this can be said to be consistent with the user's settings, which place importance on a small degree of transition, that is, on detecting the current main subject as stably as possible.

[0039] In step S204, CPU 151 sets the midpoint between the center of the main subject area and the center of the focusing candidate area as the center of the crop, as shown in Fig. 4(b). This is to detect other subjects that exist in the focusing candidate area while including the current main subject in the detection range as much as possible, and in some cases, to make it possible to switch (transfer) the focus target to that subject.

[0040] In step S205, CPU 151 sets the center of the focusing candidate area as the center of the crop, as shown in Fig. 4C. This is because the detection rate of the current main subject is not important, and priority is given to the detection of other subjects that exist in the focusing candidate area.

[0041] In step S206, CPU 151 determines the size of the crop region according to the size of the main subject. Details will be described later. Then, the process proceeds to step S207.

[0042] In step S 207 , CPU 151 enlarges or reduces the crop region to match the input image size of subject detection section 162 , and inputs the crop region to subject detection section 162 .

[0043] In step S208, CPU 151 scales the entire angle of view range as is to match the input image size of subject detection section 162, and inputs the scaled range to subject detection section 162.

[0044] (size of crop area) In this embodiment, the size (number of pixels vertically and horizontally) of the area to be cropped in image a (the image shown in FIG. 2(a)) depends on the size of the main subject, and is determined so as to be enlarged or reduced to a size that has been adjusted in advance and which the subject detection unit 162 is most comfortable with.

[0045] For example, consider a case where it is known that a desired detection rate will be satisfied when the width of the main subject in the input image to subject detection unit 162 is 20% or more of the angle of view. If the width of the main subject in image a is 20% of the angle of view, the entire image a is reduced as is as shown in FIG. 2(b) and used as the input image to subject detection unit 162. If the width of the main subject in image a is 16% of the angle of view, an area that is 80% vertically and horizontally of image a is cropped and reduced to use as the input image to subject detection unit 162. This allows the size of the main subject in the input image to subject detection unit 162 to be approximately 20% of the angle of view.

[0046] If the crop size determined according to the above method falls below the input image size of subject detection unit 162, the image will need to be enlarged. To avoid this, a lower limit may be set for the crop size.

[0047] In the above embodiment, the size of the crop area is determined based on the size of the main subject, but it may also be determined based on the degree of transition.

[0048] Specifically, a lower limit is set for the crop size, and the higher the degree of transition, the larger the lower limit is set (so that a wider range is included in the crop area). In other words, when the degree of transition is small, a crop size that makes it easy to detect the main subject is determined, whereas when the degree of transition is large, a certain range or more is included in the crop area even if the main subject is small. This makes it easier for other subjects to be included in the target of subject detection unit 162.

[0049] In addition, when the degree of transition is set to a default intermediate level, a subject area that is a preset distance or more from the center of the focusing candidate area may not be selected as a subject area to transition to, so as to avoid transitioning to a subject that is significantly far from the current position of the main subject.

[0050] Furthermore, when multiple subjects are detected, monitor display 150 may display the area of ​​at least one subject other than the main subject.

[0051] As described above, according to this embodiment, it is possible to determine a cropping area specialized for detecting a main subject and a cropping area capable of detecting subjects other than the main subject based on user settings.

[0052] (Other embodiments) The present invention can also be realized by a process in which a program for realizing one or more functions of the above-mentioned 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) for realizing one or more functions.

[0053] 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]

[0054] 100: imaging device, 101: lens unit, 133: focus control unit, 141: imaging element, 142: imaging signal processing unit, 143: imaging control unit, 151: CPU, 152: image processing unit, 162: subject detection unit

Claims

1. A detection means for detecting a subject from an image captured by the imaging means; a first setting means for setting a candidate area in the image, the candidate area being an area that is a candidate for detecting a subject by the detection means; a second setting means for setting an extraction region for detecting a target subject in the candidate region; a third setting means for setting a transition degree that determines the degree to which the operation of the imaging device should continue to follow the detected current main subject or should be switched to another subject; an image processing device comprising: a first setting unit for setting a position of the cut-out area relative to the candidate area based on the degree of transition; and a second setting unit for setting a position of the cut-out area relative to the candidate area based on the degree of transition.

2. 2. The image processing apparatus according to claim 1, wherein the first setting means sets the candidate area in response to an instruction from a user.

3. 3. The image processing apparatus according to claim 1, wherein the third setting means sets the degree of transition in response to an instruction from a user.

4. 4. The image processing apparatus according to claim 1, wherein the cut-out area is an area for facilitating detection of the target subject in the candidate area.

5. 5. The image processing apparatus according to claim 1, wherein the operation of the imaging device is a focus adjustment operation.

6. 6. The image processing apparatus according to claim 1, wherein the operation of the imaging device is an exposure adjustment operation.

7. 7. The image processing apparatus according to claim 1, wherein the second setting means sets the position of the center of the cut-out region based on the center of the current main subject region and the center of the candidate region.

8. 8. The image processing apparatus according to claim 7, wherein the second setting means sets the center position of the cut-out region to a position closer to the center of the candidate region as the degree of the transition increases.

9. 9. The image processing apparatus according to claim 7, wherein the second setting means sets the center position of the cutout region to a position closer to the center of the current main subject region as the degree of transition becomes smaller.

10. 10. The image processing apparatus according to claim 1, wherein the second setting means sets the size of the cutout region in accordance with the size of the current main subject.

11. 11. The image processing apparatus according to claim 10, wherein the second setting means sets the size of the cutout region to be larger as the degree of the transition increases.

12. 12. The image processing apparatus according to claim 1, wherein, when the degree of transition is a default setting, a subject that is a default distance or more from the center of the candidate area is not determined as a subject to be transitioned.

13. 13. The image processing device according to claim 1, further comprising a display means for displaying the image and an area of ​​a subject, the display means displaying an area of ​​at least one subject other than the current main subject when a plurality of subjects are detected.

14. An image processing device according to any one of claims 1 to 13, The imaging means; A focus adjustment means for adjusting the focus on a subject; An imaging device comprising:

15. a detection step of detecting a subject from an image captured by an imaging means; a first setting step of setting a candidate area in the image, the candidate area being an area that is a candidate for detecting a subject by the detection step; a second setting step of setting an extraction region for detecting a target subject in the candidate region; a third setting step of setting a transition degree that determines the degree to which the operation of the imaging device should continue to follow the detected current main subject or should be switched to another subject; a control method for an image processing device, characterized in that the candidate area is set to include the cut-out area and the area of ​​the current main subject, and in the second setting step, a position of the cut-out area relative to the candidate area is set based on the degree of transition.

16. A program for causing a computer to execute each step of the control method according to claim 15.

17. A computer-readable storage medium storing a program for causing a computer to execute each step of the control method according to claim 15.

Citation Information

Patent Citations

  • Imaging apparatus, control method thereof, program and storage medium

    JP2008172368A

  • Display control device and control method therefor

    JP2016197181A

  • Imaging controller and control method thereof, program and storage medium

    JP2018037893A

  • Control device, imaging apparatus and program

    JP2019020716A

  • Image processing apparatus, imaging apparatus, and image processing program

    JP2019205172A