Imaging control device, imaging control method, and program

The imaging control device addresses the challenge of maintaining exposure control when the area of interest is not detected by using an exposure compensation value to correct exposure settings based on the target value of the lost area of interest, thereby ensuring appropriate brightness and image quality.

JP7655320B2Active Publication Date: 2025-04-02SONY GROUP CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022532259
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-06-17
Filing Date
2021-01-13
Publication Date
2025-04-02
Estimated Expiration
2041-01-13

AI Technical Summary

Technical Problem

Existing imaging devices face challenges in maintaining appropriate exposure control when the area of interest, such as a face, is not detected, leading to potential brightness imbalances in the captured image.

Method used

The imaging control device employs an exposure control unit that calculates exposure values based on detected areas of interest. When an area of interest is lost, the device uses a predetermined exposure compensation value to maintain appropriate brightness for a specified period, ensuring that the exposure control value is corrected based on the target value of the area of interest before it was lost.

Benefits of technology

This solution effectively maintains the brightness of the subject within the area of interest even after it is lost, preventing unnatural exposure of the overall composition and ensuring consistent image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007655320000001
    Figure 0007655320000001
  • Figure 0007655320000002
    Figure 0007655320000002
  • Figure 0007655320000003
    Figure 0007655320000003
Patent Text Reader

Abstract

This imaging device comprises an exposure control unit that performs exposure control on the basis of information of a region of interest that has been detected from a captured image by a region-of-interest detection unit. If a region of interest is detected from the captured image, the exposure control unit performs exposure control in which a region-of-interest exposure target value, which is calculated on the basis of a region-of-interest photometric value obtained from a first photometric region of an input frame including at least the region of interest, is set as an exposure control value. If a region of interest is not detected from the captured image, the exposure control unit performs exposure control in which a set region exposure target value, which is calculated on the basis of a set region photometric value obtained from a predetermined second photometric region of the input frame, is set as the exposure control value. In a prescribed period in which a region of interest is not detected continuously from a region-of-interest lost time at which a region of interest was no longer detected from the captured image, an exposure correction value is calculated on the basis of the region-of-interest exposure target value before the region-of-interest lost time, and the exposure control is performed using an exposure control value obtained by correcting the set region exposure target value with the exposure correction value.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present technology relates to an imaging device and to settings for imaging. [Background technology]

[0002] 2. Description of the Related Art There are known techniques for performing various imaging-related processes, such as exposure control for an image captured by an imaging device. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-33013 A Summary of the Invention [Problem to be solved by the invention]

[0004] Here, as an example of exposure control in an imaging device, there is a face AE (Auto Exposure) technique that performs exposure control so that the face area of ​​a subject has appropriate brightness. However, since face AE is a control that is based on the assumption that a face has been detected, there was a risk that proper exposure control would not be possible if the subject turned to the side and the face was no longer detected.

[0005] Therefore, this disclosure proposes a technique for improving the functionality of exposure control in an imaging device. [Means for solving the problem]

[0006] The imaging control device of the present technology includes an exposure control unit that performs exposure control based on information of a region of interest detected from an captured image by an attention region detection unit, and when a region of interest is detected from the captured image, the exposure control unit performs exposure control using an attention region exposure target value calculated based on a region of interest photometric value obtained from a first photometric area including at least the region of interest in the input frame as an exposure control value, and when a region of interest is not detected from the captured image, the exposure control unit performs exposure control using a setting region exposure target value calculated based on a setting region photometric value obtained from a second photometric area that is predetermined in the input frame as an exposure control value. During a predetermined period from when the region of interest is lost and when the region of interest is no longer detected from the captured image, an exposure correction value is calculated based on the attention region exposure target value before the region of interest was lost, and exposure control is performed using an exposure control value obtained by correcting the setting region exposure target value with the exposure correction value. The attention area here means an area in the captured image where an object that is determined in advance as a target to be noted exists. Examples of objects targeted in the attention area include independent objects such as people, animals, plants, cars, trains, airplanes, and furniture, and specific parts of independent objects, such as a face or hand of a person, or a license plate of a car. According to the above configuration, when exposure control is performed so that the attention area has appropriate brightness, such as face AE (Auto Exposure), if the attention area is lost, exposure control is performed for a predetermined period thereafter using an exposure control value obtained by correcting the set area exposure target value using an exposure correction value obtained based on the attention area exposure target value before the loss. As the exposure control value for a specified period after loss, an exposure control value obtained by correcting the set area exposure target value with an exposure correction value based on the attention area exposure target value before loss is used. Therefore, if there is no change in the brightness of the entire composition within the specified period, it is possible to appropriately maintain the brightness of the subject that was in the attention area even after loss. Furthermore, even if the brightness of the entire composition changes within the specified period, it is possible to prevent a situation in which it is not possible to follow the change in brightness of the entire composition, as occurs when AE is locked with the attention area exposure target value before loss.

[0007] In the imaging control device related to the above-mentioned present technology, the exposure correction value can be configured to be a value indicating the relationship between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. This makes it possible to correct the set area exposure target value using the exposure target value so as to reproduce the relationship between the set area exposure target value and the attention area exposure target value before the attention area is lost for a predetermined period of time after the attention area is lost.

[0008] In the imaging control device related to the above-mentioned present technology, the exposure control unit can be configured to perform exposure control using the exposure correction value calculated so that a specific numerical relationship between the setting area exposure target value and the setting area exposure target value after correction by the exposure correction value during the specified period is equivalent to the specific numerical relationship between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. The "specific numerical relationship" referred to here means a specific numerical relationship among the numerical relationships between two numerical values, and the "numerical relationship" means a numerical relationship such as the difference or ratio between two numerical values. According to the above configuration, during a predetermined period after the attention area is lost, exposure control is performed so that the specific numerical relationship such as the difference or ratio between the setting area exposure target value and the setting area exposure target value corrected by the exposure correction value becomes equivalent to (reproduces) the specific numerical relationship between the setting area exposure target value and the attention area exposure target value before the loss.

[0009] In the imaging control device related to the above-mentioned present technology, the exposure correction value can be configured to be a difference value between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. As a result, during a specified period after the attention area is lost, exposure control is performed so that the difference between the setting area exposure target value and the setting area exposure target value after correction by the exposure correction value is equal to the difference between the setting area exposure target value and the attention area exposure target value before it is lost.

[0010] In the imaging control device related to the above-mentioned present technology, the exposure control unit can be configured to calculate the attention area exposure target value used for calculating the exposure correction value based on at least any one of the size, number, and position of the detected attention areas when the attention area detection unit detects attention areas inside and outside a specific area in the captured image. If the area of ​​interest detected outside the specific area is small in size, few in number, or far from the area of ​​interest detected within the specific area, there is a risk that the brightness of the subject in the area of ​​interest detected within the specific area will not be appropriate if the exposure target value for that area of ​​interest is taken into consideration when calculating the exposure correction value.

[0011] In the imaging control device related to the above-mentioned present technology, the exposure control unit can be configured to use the attention area exposure target value calculated for the attention area in calculating the exposure correction value when the size of the attention area detected outside the specific area is larger than a reference size, and to not use the attention area exposure target value calculated for the attention area in calculating the exposure correction value when the size of the attention area detected outside the specific area is not larger than the reference size. This makes it possible to use the exposure target value of an attention area detected outside a specific area in calculating the exposure correction value if the area is large enough that it cannot be ignored in correcting the setting area exposure target value after the area of ​​interest is lost, and conversely, to not use the exposure target value of the attention area in calculating the exposure correction value if the area of ​​interest is small enough that it can be ignored in correcting the setting area exposure target value after the area of ​​interest is lost.

[0012] In the imaging control device according to the present technology described above, the reference size may be a size of a region of interest detected within the specific region. This allows the determination of whether or not to use the exposure target value of the attention area detected outside the specific area for calculating the exposure correction value to be made based on the relative size relationship between the attention areas detected inside / outside the specific area.

[0013] In the imaging control device related to the above-mentioned present technology, the exposure control unit can be configured to use the attention area exposure target values ​​calculated for the attention areas detected outside the specific area in calculating the exposure correction value when the number of attention areas detected outside the specific area is greater than a threshold value, and to not use the attention area exposure target values ​​calculated for the attention areas detected outside the specific area in calculating the exposure correction value when the number of attention areas detected outside the specific area is not greater than the threshold value. This makes it possible to use the exposure target values ​​of attention areas detected outside the specific area in calculating the exposure correction value when there are a large number of attention areas outside the specific area and the attention areas outside the specific area cannot be ignored in correcting the setting area exposure target value after the attention areas are lost, and conversely, when there are a small number of attention areas detected outside the specific area and the attention areas outside the specific area can be ignored in correcting the setting area exposure target value after the attention areas are lost, not to use the exposure target values ​​of the attention areas in calculating the exposure correction value.

[0014] In the imaging control device related to the above-mentioned present technology, the exposure control unit can be configured to use the attention area exposure target value calculated for the attention area detected outside the specific area when there is an attention area detected within the specific area that is within a certain distance from the attention area detected within the specific area in calculating the exposure correction value, and to not use the attention area exposure target value calculated for the attention area detected outside the specific area when calculating the exposure correction value when there is no attention area detected within the specific area that is within a certain distance from the attention area detected within the specific area. As a result, for an area of ​​interest detected outside the specific area, if the area of ​​interest is close to an area of ​​interest within the specific area, in other words, if the difference in brightness between the area of ​​interest within the specific area and the area of ​​interest is likely to be noticeable if the exposure target value of the area of ​​interest is not used in calculating the exposure compensation value, the exposure target value of the area of ​​interest is used in calculating the exposure compensation value, and conversely, if the area of ​​interest is far from the area of ​​interest within the specific area and the difference in brightness is less noticeable, the exposure target value of the area of ​​interest is not used in calculating the exposure compensation value.

[0015] In the imaging control device according to the present technology described above, the exposure control unit may be configured to change the predetermined period based on the size of the attention area detected by the attention area detection unit. For example, when the size of the attention area is small, the area other than the attention area becomes dominant in the composition, and if the predetermined period, i.e., the exposure control period using the exposure correction value, is long, there is a risk that the period during which the exposure of the area other than the attention area is inappropriate will be long. In other words, there is a risk that the unnatural exposure state will continue for a long time in the entire composition. If the predetermined period is changed according to the size of the attention area as described above, it is possible to shorten the predetermined period when the size of the attention area is small, and it is possible to prevent the unnatural exposure state from continuing for a long time in the entire composition.

[0016] In the imaging control device according to the present technology described above, the exposure control unit may be configured to change the predetermined period based on the number of attention areas detected by the attention area detection unit. For example, when the number of attention areas is small, areas other than the attention areas become dominant in the composition, and if the predetermined period, i.e., the exposure control period using the exposure correction value, is long, there is a risk that the period during which the exposure of areas other than the attention areas is inappropriate will be long, in other words, there is a risk that the composition as a whole will have a long period of unnatural exposure. If the predetermined period is changed according to the number of attention areas as described above, it is possible to shorten the predetermined period when the number of attention areas is small, and it is possible to prevent the composition as a whole from having a long period of unnatural exposure.

[0017] In the imaging control device according to the present technology described above, the exposure control unit may be configured to change the predetermined period based on the number of times the region of interest is lost within a certain period of time. For example, if the attention area is a human face area, a large number of times the attention area is lost within a certain period of time means that the face frequently turns back or looks back, and it is highly likely that the lost attention area will be redetected immediately after. According to the above configuration, it is possible to shorten the predetermined period, i.e., the exposure control period using the exposure correction value, in response to such a high frequency of loss.

[0018] In the imaging control device according to the present technology described above, the exposure control unit may be configured to change the predetermined period based on a user operation. This makes it possible to set the duration of exposure control using the exposure correction value after the attention area is lost according to the user's preference.

[0019] The imaging control method according to the present technology is an imaging control method in which an imaging control device performs exposure control based on information about a region of interest detected from a captured image by an attention region detection unit, when a region of interest is detected from the captured image, performs exposure control using a region of interest exposure target value calculated based on a region of interest photometric value obtained from a first photometric area including at least the region of interest in an input frame as an exposure control value, and when a region of interest is not detected from the captured image, performs exposure control using a set region exposure target value calculated based on a set region photometric value obtained from a second photometric area that is predetermined in the input frame as the exposure control value, and during a predetermined period from when a region of interest is lost and no region of interest is detected from the captured image, an exposure correction value is calculated based on the region of interest exposure target value before the region of interest was lost, and exposure control is performed using an exposure control value obtained by correcting the set region exposure target value with the exposure correction value. With such an information processing method, the same effect as that of the information processing device according to the present technology described above can be obtained.

[0020] The program related to the present technology is a program readable by a computer device, and causes the computer device to realize a function related to exposure control based on information of a region of interest detected from an captured image by an attention region detection unit, in which, when a region of interest is detected from the captured image, exposure control is performed with an attention region exposure target value calculated based on a region of interest photometric value obtained from a first photometric area including at least the region of interest in the input frame as an exposure control value, and when a region of interest is not detected from the captured image, exposure control is performed with a setting region exposure target value calculated based on a setting region photometric value obtained from a second photometric area that is predetermined in the input frame as the exposure control value, and during a predetermined period from when the region of interest is lost and when the region of interest is not detected from the captured image, an exposure correction value is calculated based on the attention region exposure target value before the region of interest was lost, and exposure control is performed using the exposure control value obtained by correcting the setting region exposure target value with the exposure correction value. Such a program realizes the information processing device according to the present technology described above. [Brief description of the drawings]

[0021] [Figure 1] 1A to 1C are a plan view, a front view, a side view, and a rear view of an imaging control device according to an embodiment of the present technology. [Diagram 2] 1 is a block diagram of an internal configuration of an imaging control device according to an embodiment. [Diagram 3] FIG. 2 is a functional block diagram showing a functional configuration relating to exposure control as an embodiment. [Figure 4] 1A to 1C are diagrams illustrating the effect of exposure control according to an embodiment of the present invention in terms of the appearance of a captured image. [Diagram 5] 5A to 5C are explanatory diagrams of the operation of exposure control according to the embodiment. [Figure 6] FIG. 11 is an explanatory diagram of the operation of exposure control according to the embodiment. [Figure 7] 5 is a flowchart showing an example of a specific processing procedure for implementing exposure control according to the first embodiment. [Figure 8] 8 is a flowchart of a calculation process of a face exposure correction value shown in FIG. 7. [Figure 9] FIG. 11 is an explanatory diagram of exposure control according to a second embodiment. [Figure 10] 10 is a flowchart showing an example of a specific processing procedure for implementing exposure control according to a second embodiment. [Figure 11] 13A to 13C are explanatory diagrams of another example of exposure control according to the second embodiment. [Figure 12] 6 is a diagram showing a flow of skin beautifying effect processing during video capture in an embodiment. [Figure 13] 1 is an explanatory diagram of an example of the configuration of an imaging device for implementing skin beautifying effect processing according to an embodiment; [Figure 14] 11 is a flowchart showing an example of a processing procedure for realizing a skin beautifying effect process according to an embodiment. [Figure 15] 11A to 11C are explanatory diagrams of the smoothing process of the skin beautifying effect process in the embodiment. [Figure 16]5 is a timing chart of a smoothing process according to the embodiment. [Figure 17] FIG. 13 is an explanatory diagram of the strength of the skin beautifying effect. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022] The embodiments will be described below in the following order. <1. First embodiment> (1-1. Configuration of the imaging device) (1-2. AE control when the area of ​​interest is lost) (1-3. Processing Procedure) <2. Second embodiment> <3. Video beautifying effect function> <4. Modifications> <5. Program> <6. Summary of the embodiment> <7. This Technology>

[0023] <1. First embodiment> (1-1. Configuration of the imaging device) FIG. 1 shows a plan view, a front view, a side view, and a rear view of an imaging device 1 which is an embodiment of an imaging control device according to the present technology. The imaging device 1 is a so-called digital camera, and is capable of capturing both still images and moving images.

[0024] In the imaging device 1, a lens unit 102 is disposed on the front side of a main body housing 100 that constitutes the camera body. When capturing an image, a shutter on the front side is opened to expose the lens for capturing the image.

[0025] On the rear side (user side) of the imaging device 1, a display panel 101 is provided, which is a display device such as a liquid crystal display (LCD) or an organic EL (Electro-Luminescence) display. In this example, the display panel 101 is held by a shaft portion 101a so as to be openable, closable, and rotatable, and is a so-called vari-angle type display panel. In the figure, the display panel 101 is shown in a state in which the display surface is not exposed. The display panel 101 allows a user to visually recognize captured images, played back images, and various types of information.

[0026] On the main body housing 100 of the imaging device 1, various controls 110 are provided. For example, various types of operators, such as keys, dials, and combined press / rotate operators, are provided as the operators 110 to realize various operation functions, such as menu operation, playback operation, mode selection operation, focus operation, zoom operation, and parameter selection operation such as shutter speed and F-number.

[0027] Although detailed description of each of the operators 110 will be avoided, in this embodiment, several operators 110 including a shutter button 110S and a record button 110R are arranged on the top surface of the main body housing 100. In this case, the record button 110R is made to be a relatively large button so that it is easy to operate. For example, the record button 110R is approximately the same size as the shutter button 110S.

[0028] For example, among the operators 110 provided on the top surface of the main body housing 100, the shutter button 110S is the largest and the record button 110R is the second largest. This may be reversed, or they may be the same size.

[0029] In any case, by making record button 110R a large-sized operator on the top surface side, for example, when a video poster places imaging device 1 on a desk or the like to capture video, the operation becomes easy.

[0030] As one of the controls 110, custom buttons 110C1 and 110C2 are shown. Custom buttons 110C1 and 110C2 are operators also called assignable buttons, and are buttons to which a predetermined operation function is assigned in the initial state, and to which the user can assign any operation function. The number of custom buttons is not limited to two, but may be one, or three or more.

[0031] An example of the internal configuration of the imaging device 1 will be described with reference to FIG. The imaging device 1 has, for example, a lens system 11, an imaging element unit 12, a camera signal processing unit 13, a recording control unit 14, a display unit 15, a communication unit 16, an operation unit 17, a camera control unit 18, a memory unit 19, a driver unit 22, a sensor unit 23, and a power supply unit 24.

[0032] The lens system 11 includes lenses such as a zoom lens and a focus lens, an aperture mechanism, etc. The lens system 11 guides light (incident light) from a subject and collects the light on the imaging element unit 12.

[0033] The imaging element unit 12 includes an image sensor 12a (imaging element) such as a complementary metal oxide semiconductor (CMOS) type or a charge coupled device (CCD) type. The image sensor unit 12 performs, for example, CDS (Correlated Double Sampling) processing, AGC (Automatic Gain Control) processing, etc., on the electric signal obtained by photoelectrically converting the light received by the image sensor 12a, and further performs A / D (Analog / Digital) conversion processing. Then, the image signal as digital data is output to the downstream camera signal processor 13 and camera controller 18.

[0034] The camera signal processing unit 13 is configured as an image processor, for example, using a DSP (Digital Signal Processor) etc. The camera signal processing unit 13 performs various types of signal processing on the digital signal (captured image signal) from the imaging element unit 12. For example, as camera processes, the camera signal processing unit 13 performs pre-processing, synchronization processing, YC generation processing, resolution conversion processing, file formation processing, etc.

[0035] In the pre-processing, the captured image signal from the imaging element unit 12 is subjected to a clamping process for clamping the R, G, and B black levels to a predetermined level, a correction process between the R, G, and B color channels, and the like. In the synchronization process, a color separation process is performed so that the image data for each pixel has all the color components R, G, and B. For example, in the case of an image sensor that uses a Bayer array color filter, a demosaic process is performed as the color separation process. In the YC generation process, a luminance (Y) signal and a color (C) signal are generated (separated) from R, G, B image data. In the resolution conversion process, the image data that has been subjected to various types of signal processing is subjected to the resolution conversion process.

[0036] In the file creation process, for example, image data that has been subjected to the various processes described above is subjected to compression encoding for recording or communication, formatting, generation and addition of metadata, etc., to generate a file for recording or communication. For example, still image files may be generated in formats such as JPEG, TIFF (Tagged Image File Format), GIF (Graphics Interchange Format), etc. It is also possible to generate image files in the MP4 format used for recording video and audio conforming to MPEG-4. It is also possible to generate an image file as raw image data.

[0037] The camera signal processing unit 13 generates metadata that includes information on processing parameters within the camera signal processing unit 13, various control parameters obtained from the camera control unit 18, information indicating the operating status of the lens system 11 and the image sensor unit 12, mode setting information, imaging environment information (date, time, location, etc.), identification information of the imaging device itself, information on the attached lens, pre-registered cameraman information (name, identification information), IPTC (International Press Telecommunications Council) metadata, etc. IPTC metadata is metadata in a format developed by a media company association, and is capable of describing a variety of information, such as "description / caption," "description writer," "headline," and "keywords."

[0038] The recording control unit 14 performs recording and reproduction on a recording medium, such as a non-volatile memory, and performs processing for recording images, such as moving image data and still image data, and metadata, on the recording medium, for example. The actual form of the recording control unit 14 may be various. For example, the recording control unit 14 may be configured as a flash memory built into the imaging device 1 and a write / read circuit for the memory. The recording control unit 14 may also be in the form of a card recording / playback unit that performs recording / playback access to a recording medium that can be detached from the imaging device 1, such as a memory card (such as a portable flash memory). The recording control unit 14 may also be realized as an HDD (Hard Disk Drive) built into the imaging device 1.

[0039] The display unit 15 is a display unit that displays various information to the person taking the image, and is, for example, a display panel or viewfinder using a display device such as a liquid crystal display (LCD) or an organic EL (Electro-Luminescence) display arranged on the housing of the imaging device 1. The display unit 15 executes various displays on the display screen based on instructions from the camera control unit 18 . For example, the display unit 15 displays a reproduced image of image data read from a recording medium by the recording control unit 14. Further, image data of the captured image that has been resolution-converted for display by the camera signal processing unit 13 is supplied to the display unit 15, and the display unit 15 may perform display based on the image data of the captured image in response to an instruction from the camera control unit 18. This causes a so-called through image (monitoring image of the subject), which is an image captured while checking the composition or recording a video, to be displayed. Further, based on instructions from the camera control unit 18, the display unit 15 executes display of various operation menus, icons, messages, etc., that is, GUI (Graphical User Interface) on the screen.

[0040] The communication unit 16 collectively represents various communication devices and communication processing circuits mounted on the imaging device 1. For communication by the communication unit 16, various communication circuits and communication devices are provided that can perform communication via an external communication network (external network communication), local communication with a mobile terminal 9, and further, as one form of local communication, master / slave communication between compatible devices such as another imaging device 1. This enables the imaging device 1 to transmit and receive captured image data (still image files and moving image files), metadata, various parameters, and the like to, for example, external information processing devices, imaging devices, display devices, recording devices, playback devices, and the like. More specifically, the communication unit 16 is a network communication unit that is equipped with some or all of the following functions: a function for communicating via a mobile communication network such as 4G or 5G, an Internet line, a home network, a LAN (Local Area Network), etc.; a function for performing short-range wireless communication such as Bluetooth (registered trademark), Wi-Fi (registered trademark) communication, and NFC (Near Field Communication); a function for performing infrared communication, etc.; and a function for performing wired connection communication with other devices.

[0041] The operation unit 17 collectively refers to input devices for a user to input various operations. Specifically, the operation unit 17 refers to various operators (keys, dials, touch panel, touch pad, etc.) provided on the housing of the imaging device 1. An operation performed by the user is detected by the operation unit 17, and a signal corresponding to the input operation is sent to the camera control unit .

[0042] The camera control unit 18 is composed of a microcomputer (arithmetic processing device) equipped with a CPU (Central Processing Unit). The memory unit 19 stores information and the like used for processing by the camera control unit 18. The illustrated memory unit 19 collectively represents, for example, a Read Only Memory (ROM), a Random Access Memory (RAM), a flash memory, and the like. The memory unit 19 may be a memory area built into a microcomputer chip serving as the camera control unit 18, or may be configured by a separate memory chip. The camera control unit 18 executes a program stored in the ROM, flash memory, or the like of the memory unit 19 to control the entire imaging device 1 . For example, the camera control unit 18 controls the operation of each necessary unit, such as controlling the shutter speed of the image sensor unit 12, instructing various signal processing in the camera signal processing unit 13, image capturing and recording operations in response to user operations, playback operations of recorded image files, operations of the lens system 11 such as zoom, focus, and aperture adjustment in the lens barrel, user interface operations, and setting of the communication method and destination by the communication unit 16.

[0043] In this embodiment, the camera control unit 18 performs exposure control based on a photometric value for a captured image. Details of the exposure control according to this embodiment will be described later. Furthermore, the camera control unit 18 in this example performs a process of detecting an area of ​​interest from a captured image, and this area of ​​interest and the detection process will be described later.

[0044] The RAM in the memory unit 19 is used as a working area for various data processing by the CPU of the camera control unit 18, for temporarily storing data, programs, and the like. The ROM and flash memory (non-volatile memory) in memory unit 19 are used to store the OS (Operating System) that the CPU uses to control each part, content files such as image files, application programs for various operations, firmware, various setting information, etc. The various types of setting information include communication setting information, exposure settings (shutter speed and F-number) as setting information related to imaging operations, mode settings, white balance settings as setting information related to image processing, color settings, settings related to image effects, and custom key settings and display settings as setting information related to operability.

[0045] The driver unit 22 includes, for example, a motor driver for a zoom lens drive motor, a motor driver for a focus lens drive motor, a motor driver for a diaphragm mechanism motor, and the like. These motor drivers apply drive currents to the corresponding drivers in response to instructions from the camera control unit 18, thereby moving the focus lens and zoom lens, opening and closing the aperture blades of the aperture mechanism, and so on.

[0046] The sensor unit 23 collectively represents various sensors mounted on the imaging device. The sensor unit 23 is equipped with, for example, an IMU (inertial measurement unit), and can detect angular velocity using a three-axis angular velocity (gyro) sensor of pitch, yaw, and roll, and can detect acceleration using an acceleration sensor. Furthermore, the sensor unit 23 may be equipped with, for example, a position information sensor, an illuminance sensor, or the like. The sensor unit 23 is also assumed to include a distance measuring sensor. The distance measuring sensor measures the distance from the imaging device 1 to the subject when capturing an image, and the distance information can be added as metadata to the captured image.

[0047] Various information detected by the sensor unit 23, such as position information, distance information, illuminance information, IMU data, etc., is added as metadata to the captured image together with date and time information managed by the camera control unit 18.

[0048] The power supply unit 24 uses a battery 24a as a power source and outputs a power supply voltage Vcc required for each unit. The supply of the power supply voltage Vcc by the power supply unit 24 is turned on / off, that is, the power supply to the imaging device 1 is turned on / off, controlled by the camera control unit 18. The capacity of the battery 24a, that is, the remaining battery charge, is detectable by the camera control unit 18. The power supply unit 24 may be configured to output the power supply voltage Vcc based on an external power supply, for example, by connecting an AC adapter or receiving a supply of a DC power supply voltage.

[0049] (1-2. AE control when the area of ​​interest is lost) FIG. 3 is a functional block diagram showing a functional configuration related to exposure control as an embodiment of the camera control unit 18. As shown in FIG. As shown in the figure, the camera control unit 18 has an attention area detection unit F1 and an exposure control unit F2 as functional components related to exposure control according to the embodiment.

[0050] The attention area detection unit F1 detects an attention area from an image captured by the imaging element unit 12. The attention area here means an area in the captured image where an object that is determined in advance as a target to be noted exists. Examples of objects that are targets of the attention area include independent objects such as people, animals, plants, cars, trains, airplanes, furniture, and traffic lights, as well as specific parts of independent objects, such as a face or hand of a person, or a license plate of a car. There are various methods for detecting the region of interest. For example, a method for detecting the region of interest by template matching using a template image of the target object can be given. Alternatively, it is also possible to detect the region of interest from a captured image using an image recognition AI (artificial intelligence) engine such as a CNN (Convolutional Neural Network). Here, as an example, it is assumed below that the attention region detection unit F1 detects a human face region as the attention region. Hereinafter, the attention region as a human face region will be referred to as a "face region Af."

[0051] The exposure control unit F2 performs exposure control based on information about the attention area detected from the captured image by the attention area detection unit F1. Specifically, in this example, when a face area Af is detected from the captured image, the exposure control unit F2 calculates a "face exposure target value", which is the exposure target value for the face area Af, based on the photometric value obtained from a first photometric area that includes at least the face area Af in the input frame, and performs exposure control using the face exposure target value as the exposure control value. Here, in this example, the above-mentioned first photometry area is the same area as the face area Af. The first photometry area may include areas other than the face area Af, such as a background area of ​​the face area Af in the input frame, and may be an area including at least the face area Af in the input frame. For example, the face exposure target value can be calculated based on the photometry value obtained from the face area Af and the photometry value obtained from the entire frame (entire composition). This makes it possible to prevent the entire composition from becoming too bright (or dark).

[0052] Hereinafter, the function of performing exposure control using the face exposure target value as the exposure control value when the face area Af is detected as described above will be referred to as the "face AE function." It should be noted that the "exposure" values ​​used in this specification, such as the above-mentioned exposure target value and exposure control value, are values ​​that indicate at least a combination of shutter speed and aperture value (F-number).

[0053] In addition, when a face area Af is not detected from the captured image, the exposure control unit F2 calculates a "setting area exposure target value" based on the setting area photometric value obtained from a second photometric area predetermined in the input frame, and performs exposure control using the setting area exposure target value as the exposure control value. Here, the second photometry area is determined by the photometry mode, which can include, for example, a multi-photometry mode in which the frame is divided into multiple parts for photometry and exposure is controlled by balancing the whole, a center-weighted photometry mode in which photometry is focused on the center of the frame and exposure is determined based on the brightness in the vicinity of the center, and a spot photometry mode in which exposure is controlled based on the photometry value of a specified part of the frame. The second photometry area is the entire area of ​​the frame if the photometry mode is the multi-photometry mode or the center-weighted photometry mode, and is the specified partial area if the photometry mode is the spot photometry mode. In the following description, the metering mode is assumed to be either the multi-metering mode or the center-weighted metering mode, and the "second metering area" is assumed to be the entire area of ​​the frame.

[0054] In a general face AE function, when a person as a subject turns sideways and the face cannot be detected, the exposure control is switched to exposure control for the entire composition. That is, the exposure control is switched to exposure control in which the exposure control value is the "overall exposure target value" which is the exposure target value for the entire composition. For this reason, when the face cannot be detected, the face becomes dark, which is a problem.

[0055] One possible solution to this problem is to fix the brightness at the time the face was detected for a certain period of time even if the face can no longer be detected. One method for fixing the brightness is to use AE lock, but if the brightness of the entire composition changes significantly, the brightness cannot keep up, and there is a risk of overexposure or underexposure (see Figures 4A and 4B).

[0056] Therefore, in this embodiment, instead of adopting a method of fixing the face exposure target value at the time of face detection, an exposure control method is adopted in which an exposure correction value based on the face exposure target value (hereinafter referred to as the "face exposure correction value") is calculated and the face exposure correction value is maintained (kept) for a predetermined period of time. Specifically, during a predetermined period of time from the time when the facial area Af is no longer detected in the captured image (when the facial area Af is lost), the exposure control unit F2 calculates a facial exposure correction value based on the facial exposure target value before the facial area is lost, and performs exposure control using an exposure control value obtained by correcting the overall exposure target value with the facial exposure correction value. In this example, the exposure control unit F2 obtains a value indicating the relationship between the overall exposure target value before the face area is lost and the face exposure target value before the face area is lost as the face exposure correction value. Specifically, the exposure control unit F2 obtains a difference between the overall exposure target value before the face area is lost and the face exposure target value before the face area is lost as the face exposure correction value.

[0057] Here, the face exposure target value before the face area is lost and the overall exposure target value before the face area is lost may be calculated in the frame immediately before the frame in which the face area Af is lost, or the average value of the exposure target values ​​from the immediately before frame to a frame a predetermined number of frames before may be used. The face exposure target value before the face area is lost and the overall exposure target value before the face area is lost may be based on the face exposure target value and the overall exposure target value calculated in the frame immediately preceding the frame in which the face area Af was lost, or in a frame close to the immediately preceding frame (a frame close in the past). In the following, the face exposure target value before the face area is lost and the overall exposure target value before the face area is lost are respectively the face exposure target value and the overall exposure target value calculated in the frame immediately prior to the frame in which the face area Af is lost.

[0058] In this example, the face exposure correction value is calculated as "face exposure target value before the face area is lost" - "total exposure target value before the face area is lost". In this case, for a predetermined period from the timing when the face area Af is lost, a correction is performed by adding a face exposure correction value to the overall exposure target value, and exposure control is performed using an exposure control value obtained by this correction.

[0059] 5 and 6 are explanatory diagrams of the operation of exposure control according to the above embodiment. By performing the exposure control described above, as long as there is no change in the brightness of the background of the face area Af, even if face detection is repeated between detection ("D" in the figure) and non-detection ("L" in the figure), as shown in Figure 5, the correction using the face exposure correction value is maintained, so the brightness of the face (profile, or head if facing away) can be maintained at an appropriate brightness.

[0060] In addition, by adopting a method of correcting the overall exposure target value with a face exposure correction value (a value indicating the relationship between the overall exposure target value before the face area is lost and the face exposure target value before the face area is lost) during a predetermined period after the face area is lost, even if the brightness of the entire composition changes after the face is lost, the change in brightness can be followed as shown in Figures 6A and 6B. Specifically, even if the entire composition becomes brighter after the face is lost as shown in Figure 6A and the overall exposure target value changes in the direction of decreasing, the change can be followed. Also, even if the entire composition becomes darker after the face is lost as shown in Figure 6B and the overall exposure target value changes in the direction of increasing, the change can be followed. After the face is lost and the predetermined period is kept, the exposure correction based on the face exposure correction value is released, and the exposure control is performed so that the brightness of the entire composition becomes appropriate.

[0061] In FIG. 4, the action of the exposure control according to the present embodiment is shown diagrammatically in terms of the appearance of a captured image by the transition from FIG. 4A to FIG. 4C.

[0062] As described above, according to the exposure control of this embodiment, when a face is lost, appropriate exposure control can be realized that takes into account both the brightness of the face and the brightness of the entire composition, thereby improving the functionality of the exposure control.

[0063] (1-3. Processing Procedure) An example of a specific processing procedure for implementing the exposure control according to the first embodiment described above will be described with reference to the flowcharts of FIGS. 7 and 8 are executed by the camera control unit 18 in this example. The camera control unit 18 repeatedly executes the series of processes shown in FIG.

[0064] 7, in step S101, the camera control unit 18 calculates an overall exposure target value. That is, the overall exposure target value is calculated based on the photometric value of the above-mentioned second photometric region in the input frame (in this example, the entire region of the input frame).

[0065] In step S102 following step S101, the camera control unit 18 performs a process of acquiring face detection information. That is, the camera control unit 18 performs a process of acquiring information on the face area Af detected by the function as the attention area detection unit F1 (at least information on the position and range (size) within the input frame).

[0066] In step S103 following step S102, the camera control unit 18 executes a process of calculating a face exposure correction value. In this example, the process of calculating the face exposure correction value is a process that can also be used in the case where a plurality of face areas Af are detected.

[0067] FIG. 8 is a flowchart of the calculation process of the face exposure correction value executed in step S103. As shown in the figure, in the calculation process of the face exposure correction value, first, in step S201, the camera control unit 18 sets a processing target face identifier n to “1.” The processing target face identifier n is a value for identifying a face area Af to be processed in the calculation process of the face exposure correction value.

[0068] Here, although explanation using illustrations is omitted, each time a face area Af is newly detected, the camera control unit 18 manages the newly detected face area Af by a processing target face identifier n. Specifically, the camera control unit 18 manages the newly detected face area Af by assigning a new processing target face identifier n.

[0069] In step S202 following step S201, the camera control unit 18 determines whether or not the n-th face (face area Af) is in a detected state. If the n-th face area Af is in a detected state in step S202, the camera control unit 18 proceeds to step S203, turns on the face AE permission flag, and performs a keep counter setting process in the following step S204. The face AE permission flag is a status management flag for the detected face area Af, and more specifically, is a flag for identifying whether the target face area Af is in a state between the detection and the elapse of a predetermined period (keep period) described in Figure 6. The keep counter setting process in step S204 is a process for setting a counter for determining a predetermined period as a keep period. The value of the keep counter is decremented for each frame by the process in step S208 described later, and by determining whether or not it has reached "0" in step S207, it is determined whether the keep period has elapsed. If the keep period has elapsed, the face AE permission flag is turned OFF in step S209 described later. In this example, the camera control unit 18 sets a predetermined fixed value as the value of the keep counter. In this case, the keep period is a fixed period.

[0070] In step S205 following step S204, the camera control unit 18 calculates the exposure target value of the nth face (face exposure target value). Then, in the following step S206, the camera control unit 18 calculates the face exposure correction value at the time of face detection. Specifically, in this example, "face exposure target value of current frame" - "total exposure target value of current frame" is calculated as the face exposure correction value at the time of face detection. For confirmation, the "face exposure target value of current frame" is the exposure target value calculated in step S205, and the "total exposure target value of current frame" is the exposure target value calculated in step S101 of FIG. 7. In this way, for the face area Af being detected, a face exposure correction value at the time of face detection is calculated based on the “face exposure target value of the current frame” and the “total exposure target value of the current frame.” As will be described later, when multiple face areas Af are detected, the face exposure correction values ​​at the time of face detection calculated for those areas are averaged and used to correct the total exposure target value (see steps S104 and S105 in FIG. 7).

[0071] In response to executing the calculation process of step S206, the camera control unit 18 advances the process to step S213 to determine whether the processing target face identifier n is equal to or greater than the maximum value N. Here, the maximum value N is the total number of face areas Af to which the processing target face identifier n is assigned. In step S213, if the target face identifier n is not equal to or greater than the maximum value N, the camera control unit 18 proceeds to step S214 to increment the target face identifier n by 1, and then returns to step S202.

[0072] If it is determined in step S202 that the nth face is not in a detected state, the camera control unit 18 proceeds to step S207, where it determines whether or not the keep counter is greater than 0, that is, whether or not the value of the keep counter is greater than 0. If the keep counter is greater than 0, the camera control unit 18 proceeds to step S208, where it decrements the value of the keep counter (for example, by 1), and proceeds to the process of step S210. In this case, the face AE permission flag of the nth face area Af remains in the ON state. On the other hand, if the value of the keep counter is not greater than 0, the camera control unit 18 proceeds to step S209 to turn off the face AE permission flag, and proceeds to the process of step S210.

[0073] In step S210, the camera control unit 18 determines whether or not the face AE permission flag is ON. This corresponds to determining whether or not the keep period after being lost has elapsed for the n-th face area Af. In step S210, if the face AE permission flag is ON, the camera control unit 18 proceeds to step S211 and calculates a face exposure correction value when kept. Specifically, in this example, the face exposure correction value when kept is calculated as "face exposure target value before lost" - "total exposure target value before lost". For confirmation, "when lost" here means when the n-th face area Af is lost. In response to the execution of the calculation process in step S211, the camera control unit 18 advances the process to step S213 described above.

[0074] On the other hand, if it is determined in step S210 that the face AE permission flag is not ON, the camera control unit 18 proceeds to step S212, sets the face exposure correction value to "0", and proceeds to step S213. In this way, for the face area Af for which the face AE permission flag has been turned OFF, that is, for the face area Af for which the keep period has elapsed, the face exposure target value is not used for correcting the overall exposure target value of the current frame.

[0075] In response to determining in step S213 that the process target face identifier n is equal to or greater than the maximum value N, the camera control unit 18 ends the series of processes shown in FIG.

[0076] By the series of processes in FIG. 8 as described above, for the face area Af being detected, a face exposure correction value at the time of face detection is calculated based on the “face exposure target value of the current frame” and the “total exposure target value of the current frame” (S206), and for the face area Af within a predetermined period after being lost, a face exposure correction value at the time of keeping is calculated based on the “face exposure target value before being lost” and the “total exposure target value before being lost” (S211).

[0077] Let us return to the explanation given in FIG. 7, in response to the execution of the calculation process of the face exposure correction value in step S103, the camera control unit 18 calculates an average face exposure correction value in step S104. That is, the average value of the face exposure correction values ​​(including the detection time and the keep time) calculated in step S103 is calculated. Note that, when there is only one face area Af managed by the processing target face identifier n, in step S104, the face exposure correction value calculated for the face area Af is set as the average face exposure correction value.

[0078] Then, in step S105 following step S104, the camera control unit 18 performs a process of calculating an exposure control value by "overall exposure target value" + "average face exposure correction value". In response to executing the process of step 105, the camera control unit 18 ends the series of processes shown in FIG.

[0079] By the series of processes described above, if all face areas Af are in a detection state, the overall exposure target value of the current frame is corrected by the average value of the face exposure correction values ​​at the time of detection obtained for all the face areas Af, and exposure control is performed with the corrected overall exposure target value as the exposure control value. Furthermore, if all facial areas Af are within the keep period after being lost, the overall exposure target value of the current frame is corrected by the average value of the facial exposure correction values ​​at the time of keeping calculated for all the facial areas Af, and exposure control is performed with the corrected overall exposure target value as the exposure control value. Furthermore, when face areas Af in the detected state and in the keep period after lost are mixed, a face exposure correction value at the time of detection is calculated for the face area Af in the detected state, and a face exposure correction value at the time of keeping is calculated for the face area Af in the keep period after lost. The overall exposure target value of the current frame is corrected by the average value of these face exposure correction values ​​at the time of detection and at the time of keeping, and exposure control is performed with the corrected overall exposure target value as the exposure control value.

[0080] Even if face areas Af in a detected state are mixed in as described above, for face areas Af within the keep period after lost, the overall exposure target value is still corrected based on the face exposure correction value at the time of keeping, i.e., the face exposure correction value calculated based on the "face exposure target value before lost" and the "overall exposure target value before lost".

[0081] <2. Second embodiment> Next, a second embodiment will be described. In the second embodiment, when a plurality of face areas Af are detected, a face exposure target value used for calculating a face exposure correction value is calculated based on at least one of the size, number, and position of the detected face areas Af. In the second embodiment, the hardware configuration of the imaging device 1 is similar to that of the first embodiment, so a duplicated description will be avoided. In the following description, parts that are similar to parts that have already been described will be given the same reference numerals and description thereof will be omitted.

[0082] 9A illustrates a composition in which a relatively large face area Af located in the center of the frame of a captured image is in the sun, and a relatively small face area Af located near the edge of the frame is in the shade. In general, when multiple subjects of the same type, such as "people," are captured in a frame, if there is a relatively large subject in the center of the frame and a relatively small subject near the edge of the frame as in the example of FIG. 9A, the subject in the center of the frame can be said to be the main subject in terms of composition. In the composition of the case in Figure 9A, if the face exposure target value of the face area Af near the end of the frame is used to calculate the face exposure correction value, the small face near the end of the frame will be dark, and the face exposure correction value will be large, which may result in overexposure.

[0083] Therefore, for a captured image, an area within the image where it is estimated that the main subject is captured is determined as a specific area As, and the face exposure target value of a face area Af outside the specific area As is not used in calculating the face exposure correction value (see FIG. 9B). This makes it possible to calculate the exposure correction value using only the exposure target value of the face area Af detected within the specific area As, i.e., the subject area that is compositionally main, and thus makes it possible to realize appropriate exposure control.

[0084] In this example, the specific area As is defined as a part of a rectangle including the center of the captured image. More specifically, the specific area As is set to a size such that its center coincides with the center of the image and its area ratio to the entire captured image is at least 1 / 2. The position and size of the specific area As are not limited to the above. The specific area As may be set to a position and size where it is estimated that the main subject is captured in terms of composition, and may be set to a position offset from the center of the captured image in at least one of the directions of up, down, left, and right. The size may also be 1 / 2 or less in terms of area ratio to the entire captured image. Furthermore, the specific area As is not limited to an area with a fixed position and size, and may be variable in position and size according to, for example, a user operation or the result of image analysis.

[0085] FIG. 10 is a flowchart showing a specific example of a processing procedure for implementing the exposure control according to the second embodiment described above. It should be noted that the process shown in FIG. 10 is repeatedly executed by the camera control unit 18 for each frame of a captured image, similar to the process shown in FIG.

[0086] First, the camera control unit 18 executes the process of step S101 followed by the process of step S102. These processes are similar to those described with reference to FIG. 7, so a duplicate description will be avoided.

[0087] In this case, the camera control unit 18 executes the process of step S301 in response to acquiring the face detection information in step S102. In step S301, the camera control unit 18 executes the process of setting the face in the specific area As as the processing target face. That is, among the face areas Af detected in the captured image, only the face areas Af located in the specific area As are set as the face areas Af to be targeted in the calculation process of the face exposure correction value in step S103.

[0088] In this case, the camera control unit 18 advances the process to step S103 in response to the execution of the setting process of step S301. The processes from step S103 to step S105 are the same as those described in FIG. 7, so a duplicate description will be avoided.

[0089] By the above-mentioned process, for the face area Af detected outside the specific area As, the face exposure target value can be prevented from being used in the calculation of the face exposure correction value during both the pre-lost and post-lost keep periods. This makes it possible to prevent the brightness of the main subject from becoming inappropriate due to the brightness of a non-main subject detected outside the specific area As, and to realize appropriate exposure control.

[0090] Here, in the above, for face areas Af detected outside the specific area As, the face exposure target value is not unconditionally used in calculating the face exposure correction value, but as illustrated in Figure 11, it is also possible to determine whether or not to use the face exposure target value in calculating the face exposure correction value based on the size, number, and position of face areas Af detected outside the specific area As.

[0091] Specifically, as illustrated in FIG. 11A, when the size of a face area Af detected outside the specific area As is larger than the size of a face area Af detected within the specific area As, the face exposure target value of the face area Af detected outside the specific area As is used to calculate the face exposure correction value. In this case, in the process of step S301 shown in Fig. 10, the camera control unit 18 judges whether the face area Af detected outside the specific area As is larger than the face area Af detected within the specific area As, and determines whether or not to process the face area Af detected outside the specific area As based on the result. That is, if the face area Af detected outside the specific area As is larger, the face area Af is set as the processing object, and if the face area Af detected outside the specific area As is not larger, the face area Af is not set as the processing object.

[0092] In the above, the size of the face area Af detected outside the specific area As is compared with that of the face area Af detected within the specific area As, but the size of the face area Af outside the specific area As may be compared with at least a certain reference size (reference size). For example, the reference size may be a certain fixed size, or may be a size that is variable according to some condition.

[0093] In addition, as illustrated in FIG. 11B, when the number of face areas Af detected outside the specific area As is equal to or greater than a certain number, the face exposure target values ​​of the face areas Af detected outside the specific area As can be used to calculate the face exposure correction value. In this case, in the processing of step S301 shown in FIG. 10, the camera control unit 18 determines whether the number of face areas Af detected outside the specific area As is equal to or greater than a predetermined threshold, and if the number is equal to or greater than the threshold, sets the face areas Af detected outside the specific area As as the processing target, and if the number is not equal to or greater than the threshold, does not set the face areas Af detected outside the specific area As as the processing target.

[0094] Furthermore, as illustrated in FIG. 11C, when a face area Af detected outside the specific area As is located within a certain distance from the face area Af detected within the specific area As, the face exposure target value of the face area Af detected outside the specific area As is used in calculating the face exposure correction value. In this case, in the processing of step S301 shown in FIG. 10, the camera control unit 18 calculates the distance between the face area Af detected outside the specific area As and the face area Af detected within the specific area As, and if the distance is within a certain distance, sets the face area Af detected outside the specific area As as the processing target, and if the distance is not within the certain distance, does not set the face area Af detected outside the specific area As as the processing target.

[0095] It is possible to combine the processes described in Fig. 11A to Fig. 11C. For example, for face areas Af detected outside the specific area As, if the face areas Af satisfy the detection number condition in Fig. 11B and the size condition in Fig. 11A, the face exposure target value may be used to calculate the face exposure correction value. Alternatively, if the face areas Af satisfy the distance condition in Fig. 11C and the size condition in Fig. 11A, the face exposure target value may be used to calculate the face exposure correction value.

[0096] <3. Video beautifying effect function> Next, the moving image skin beautifying effect function of the imaging device 1 will be described. The moving image skin beautifying effect function performs the skin beautifying effect processing that is performed when capturing still images in real time when capturing moving images. Here, skin beautifying effect processing refers to image processing that imparts an effect of making the skin of the subject's face look beautiful, and is performed, for example, as adjustment processing of at least one of brightness, contrast, color reproduction, white balance, and noise reduction, or adjustment processing of a combination of all or some of these. The noise reduction process includes, for example, a process of cutting high frequency components using a low pass filter (LPF). In the following description, as an example, the skin beautifying process is a noise reduction process.

[0097] When performing the skin beautifying effect processing, the face of the subject is detected. However, as the detection processing of the face area Af has already been explained, a duplicate explanation will be avoided. When a face area Af is detected during video capture, skin beautifying processing is performed only on the face area Af (see FIGS. 12A to 12C).

[0098] In this case, the skin beautifying effect can be applied by changing the strength of the effect according to the distance from the center of the face area Af, which is shown as the face detection area in the figure. It is considered that the skin beautifying effect is effectively applied to the cheek area close to the center of the face. Also, if the resolution drops significantly in areas far from the center of the face, the image may become unnatural. In particular, if the resolution drops in the hair or chin area, the image is likely to become unnatural. Therefore, it is considered to reduce the strength of the skin beautifying effect in areas farther from the center of the face.

[0099] FIG. 13 is an explanatory diagram of an example of the configuration of an image capture device 1 for implementing skin beautifying effect processing that changes the effect strength according to the distance from the face center as described above. 1 in that a camera control unit 18A is provided instead of the camera control unit 18, and a memory unit 19A is provided instead of the memory unit 19. For this reason, only the camera control unit 18A and the memory unit 19A are extracted and shown in FIG.

[0100] Here, the size of the face area Af is not constant, and may change during video capture. If the size of the face area Af differs, the area of ​​the cheeks, etc., on which the skin beautifying effect processing should be applied also changes, so the correspondence between the distance from the face center and the strength of the skin beautifying effect, i.e., how much the skin beautifying effect should be reduced depending on the distance from the face center, should be changed. For this reason, in this example, a reliability table 30 that defines reliability according to the distance from the face center according to the size of the detected face area Af, and an effect strength table 31 that defines the correspondence between reliability and the effect strength of the skin beautifying effect processing are used. The reliability table 30 stores information indicating the correspondence between the distance (number of pixels) from the center of the face area Af and reliability for each size of the face area Af. Since the strength of the skin beautifying effect is weakened as the distance from the center of the face area Af increases, the reliability is defined to decrease as the distance from the center of the face area Af increases. Moreover, in the effect strength table 31, the effect strength is determined so that it increases as the reliability increases. The reliability table 30 and the effect strength table 31 are stored in the memory unit 19A, and the camera control unit 18A can refer to the information contents of the reliability table 30 and the effect strength table 31.

[0101] The camera control unit 18A has a function as a skin beauty effect processing unit F3 in addition to the attention area detection unit F1 described above. The skin beautifying effect processor F3 applies a skin beautifying effect process to the face area Af detected by the attention area detector F1. Specifically, the skin beautifying effect processor F3 calculates an effect strength for each pixel of the detected face area Af based on the reliability table 30 and the effect strength table 31, and applies a skin beautifying effect process in accordance with the calculated effect strength.

[0102] Fig. 14 is a flowchart of the process executed by the camera control unit 18A as the skin beauty effect processing unit F3. The camera control unit 18A repeatedly executes the series of processes shown in Fig. 14 for each frame of the captured image. First, the camera control unit 18A determines whether or not a face area Af has been detected from a captured image by the attention area detection unit F1 as face detection determination processing in step S401. If the face area Af has not been detected, the camera control unit 18A ends the processing shown in FIG.

[0103] If the face area Af has been detected, the camera control unit 18A proceeds to step S402 to detect the size of the face area, that is, detects the size of the detected face area Af.

[0104] In step S403 following step S402, the camera control unit 18A acquires the reliability of each pixel according to the face area size based on the reliability table 30. That is, the camera control unit 18A acquires the reliability of each pixel in the face area Af by referring to the correspondence information stored for each face size in the reliability table 30, that is, the correspondence information corresponding to the size of the detected face area Af among the information indicating the correspondence between the distance from the center of the face area Af and the reliability.

[0105] In step S404 following step S403, the camera control unit 18A acquires the effect strength of each pixel based on the effect strength table 31. That is, based on the reliability of each pixel acquired in step S403, the camera control unit 18A acquires the corresponding enhancement strength for each pixel from the effect strength table 31. Then, in step S405 following step S404, skin beautifying effect processing is performed on the face region Af in accordance with the effect intensity obtained in step S404. In response to executing the process of step S405, the camera control unit 18A ends the series of processes shown in FIG.

[0106] By the above-described processing, even if the size of the face area Af changes during shooting of a moving image, it is possible to appropriately apply skin beautifying effect processing to the face area Af.

[0107] Here, with regard to the skin beautifying effect processing, it is conceivable that a smoothing filter is applied in the time direction, triggered by the timing when the face area Af is lost or detected. Specifically, in a frame in which a face area Af is detected as shown in Fig. 15A, skin beautifying effect processing is applied, and then in a frame in which the face area Af is no longer detected as the face turns to the side as shown in Fig. 15B, skin beautifying effect processing is applied so that the skin beautifying effect gradually decreases in the time direction. Furthermore, after a face is detected again as shown in Fig. 15C, the skin beautifying effect is gradually restored (the effect strength is gradually increased) as shown by the transition from Fig. 15C to Fig. 15D. In this case, the target of smoothing may be at least any one of brightness, contrast, color reproduction, white balance, and noise reduction, or may be a combination of all or part of these.

[0108] FIG. 16 shows a timing chart for the above-mentioned smoothing process. As shown in the figure, the effect strength of the skin beautifying process is gradually increased for a predetermined number of frames following the frame in which the face area Af is detected. While the face area Af is being detected, the skin beautifying process is applied to the position of the face area Af detected for each frame. Furthermore, in frames following the frame in which the face area Af is lost, the effect strength of the skin beautifying effect processing is gradually reduced while the position of the target area for the skin beautifying effect processing is kept at the position immediately before the face area Af was lost.

[0109] The gradient of the effect intensity when the effect intensity is gradually changed in the smoothing process can be set arbitrarily. In this case, the gradient of the effect intensity can be the same or different for the increasing side (smoothing from the face area Af detection frame) and the decreasing side (smoothing from the lost frame of the face area Af).

[0110] Incidentally, since the optimum effect strength for the skin beautifying effect differs between still images and moving images, it is also conceivable to apply skin beautifying effect processing with independent effect strengths for each. 17A to 17D are diagrams for explaining the strength of the skin beautifying effect, and show an example in which the skin beautifying effect is gradually strengthened in the order of FIG. 17A→FIG. 17B→FIG. 17C→FIG. 17D. In the case of a still image, the subject's face is still, whereas in the case of a moving image, the subject's face moves to some extent, so that the optimum strength of the skin beautifying effect is different. Specifically, in the case of a moving image, the skin beautifying effect tends to be difficult to perceive unless the effect strength is stronger, so in the case of a moving image, a skin beautifying effect process is performed with a stronger effect strength than in the case of a still image. For example, in a case where there are three settings of the strength of the skin beautifying effect for moving images and still images, namely "strong", "weak", and "OFF", when comparing the "strong" setting of the strength of the skin beautifying effect for moving images with the "strong" setting of the strength of the skin beautifying effect for still images, the strength of the skin beautifying effect for moving images is set stronger than the strength of the skin beautifying effect for still images. The same is true for the "weak" setting of the strength of the skin beautifying effect. In this way, in the case of the same settings, it is preferable to set the strength of the skin beautifying effect for moving images stronger than the strength of the skin beautifying effect for still images.

[0111] Furthermore, the skin beautifying effect processing can be set not only to ON / OFF but also to the amount of effect according to the user's preference.

[0112] It is also possible to apply the above-mentioned face AE keep control to the skin beautifying effect processing. Specifically, the brightness, contrast, color reproduction, white balance, and noise reduction are adjusted based on the correction value calculated based on the appropriate value for the face area and the appropriate value for the entire composition for at least one of them, or a combination of all or part of them.

[0113] Here, the skin beautifying effect processing can also be controlled based on image capture situation information indicating the image capture situation. The imaging situation information includes selfie determination information indicating whether or not a selfie is being taken. Moreover, examples of the control of the skin beautifying effect processing here include control of switching the skin beautifying effect processing ON and OFF, or control of determining the strength of the skin beautifying effect.

[0114] When it is determined that the user is taking a selfie, the skin beautifying effect process is turned on or the strength of the skin beautifying effect is increased. Here, "increase the intensity of the skin beautifying effect" means "increase the intensity of the skin beautifying effect above a predetermined value" or "increase the intensity of the skin beautifying effect when it is determined that a selfie is being taken compared to when it is determined that a selfie is not being taken."

[0115] On the other hand, when it is determined that the user is not taking a selfie, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced. Here, "lowering the intensity of the skin beautifying effect" means "lowering the intensity of the skin beautifying effect below a predetermined value" or "lowering the intensity of the skin beautifying effect when it is determined that a selfie is not being taken than when it is determined that a selfie is being taken."

[0116] Examples of selfie judgment information include the information shown below in "Information Example 1" to "Information Example 8". However, the skin beautifying effect processing may be controlled based on only one of the information in "Information Example 1" to "Information Example 8", or the skin beautifying effect processing may be controlled based on multiple pieces of selfie judgment information.

[0117] "Information Example 1" is imaging device fixation determination information indicating whether or not the imaging device 1 is fixed. The imaging device fixation determination information includes the following information. <1> Tripod connection status information indicating whether the imaging device is connected to a tripod When the tripod connection status information indicates that the imaging device is connected to a tripod, the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased. When the tripod connection status information indicates that the imaging device is connected to a tripod, the skin beautifying effect processing is turned off or the strength of the skin beautifying effect is reduced.

[0118] <2> Image change information indicating changes in captured images When the image change information indicates that a value indicating a change in the captured image is equal to or smaller than a predetermined value, the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased. When the image change information indicates that a value indicating a change in the captured image is equal to or greater than a predetermined value, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced. Here, the change in the captured image is determined based on, for example, the correlation between the current frame and a past frame (for example, the frame immediately preceding in time). If the correlation is equal to or greater than a certain level, the change in the image is determined to be within a threshold, and if the correlation is less than the certain level, the change in the image is determined to be greater than the threshold.

[0119] <3> Imaging device attitude information indicating the attitude of the imaging device A gyro sensor or the like is used to detect changes in the attitude of the imaging device 1. When the image capture device attitude information indicates that the change in attitude of the image capture device 1 is less than a predetermined value, the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased. When the image capture device attitude information indicates that the change in attitude of the image capture device is equal to or less than a predetermined value, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced.

[0120] "Information Example 2" is line-of-sight information that indicates the line of sight of the subject. When the line of sight information indicates that the change in the subject's line of sight is less than a predetermined value, the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased. When the line of sight information indicates that the change in the line of sight of the subject is less than a predetermined value, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced.

[0121] “Information Example 3” is display unit orientation information that indicates the orientation of the display panel 101 of the imaging device 1. The types of the display panel 101 of the imaging device 1 include the above-mentioned variable angle type and tilt type. When the display unit orientation information indicates that the display panel 101 faces the lens side of the imaging device 1 (when the display panel 101 opens sideways), the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased. When the display unit orientation information indicates that the display panel 101 faces the opposite side to the lens of the imaging device 1 (when the display panel 101 is in the normal position), the skin beautifying effect processing is turned off or the strength of the skin beautifying effect is reduced.

[0122] "Information Example 4" is sound directivity information indicating the directivity of sound. The directivity of the sound picked up by one or more microphones provided in the imaging device 1 can be used. When the sound directivity information indicates that the change in directivity of the sound of the subject is equal to or less than a predetermined value, the skin beautifying effect process is turned on or the strength of the skin beautifying effect is increased. When the sound directivity information indicates that the change in directivity of the sound of the subject is equal to or greater than a predetermined value, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced.

[0123] As the information based on the sound, sound source position direction information indicating the direction of the sound source position can also be used. When it is determined based on the sound source position direction information that the amount of change in the sound source position is equal to or less than a predetermined amount, the skin beautifying effect process is turned ON or the intensity of the skin beautifying effect is increased. On the other hand, when it is determined based on the sound source position direction information that the amount of change in the sound source position is equal to or more than a predetermined amount, the skin beautifying effect process is turned OFF or the intensity of the skin beautifying effect is decreased.

[0124] "Information Example 5" is face position information that indicates the position of the subject's face in the captured image. The position of the subject's face in the captured image can be detected, and the change in the position of the detected face in the captured image can be used. When the face position information indicates that the position change of the subject's face within the captured image is equal to or smaller than a predetermined value, the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased. When the face position information indicates that the position change of the subject's face within the captured image is equal to or less than a predetermined value, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced.

[0125] "Information Example 6" is face frame size information that indicates the size of the face frame of the subject in the captured image. When the face frame size information indicates that the size of the face frame in the captured image is equal to or larger than a predetermined size, the skin beautifying effect process is turned on or the strength of the skin beautifying effect is increased. When the face frame size information indicates that the size of the face frame in the captured image is equal to or smaller than a predetermined size, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced.

[0126] “Information Example 7” is focus target distance information indicating the distance between the focus target and the imaging device 1. When taking a selfie, the imaging device is held by hand or a selfie stick is used. In such cases, the distance between the imaging device and the subject is often within a predetermined range of distances corresponding to selfies. Using this, it is determined that a selfie is being taken when the focus object distance information indicates that the distance between the focus object and the imaging device is within a predetermined range of distances. For example, when the predetermined distance range is A cm to B cm, a distance outside the predetermined range indicates a distance shorter than A cm or longer than B cm. In addition, when the distance within the predetermined range indicates a distance equal to or less than the predetermined distance, the distance outside the predetermined range indicates a distance longer than the predetermined distance. When the focus object distance information indicates that the distance to the subject that is the focus object is within a predetermined range, the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased. When the focus object distance information indicates that the distance to the subject that is the focus object is outside a predetermined range, the skin beautifying effect process is turned off or the strength of the skin beautifying effect is reduced.

[0127] "Information Example 8" is person information indicating whether the subject is a specific person or not. The personal information indicates that the subject is a specific person when the face of the subject matches a face registered based on the registered face information registered in the imaging device 1. In addition, when a person's face is automatically determined from face information, the personal information indicates that the subject is a specific person (for example, the owner of the imaging device 1). The case where a person's face is automatically determined from face information includes, for example, a case where face information that is information on a person's face is generated from information on the subject of a captured image in the past, and whether or not the face of the subject is the face of a specific person is determined from the face information. When the person information indicates that the person is a specific person, the skin beautifying effect processing is turned ON or the strength of the skin beautifying effect is increased. When the person information indicates that the person is not a specific person, the skin beautifying effect processing is turned off or the strength of the skin beautifying effect is reduced.

[0128] The skin beautifying effect process can also be controlled based on the result of determining whether the imaging device 1 is in a stationary shooting state (taking an image while placed on a stationary object). Here, whether the imaging device 1 is in a stationary shooting state can be determined using the imaging device fixation determination information in the above-mentioned "Information Example 1." In addition, if the imaging device has an image stabilization function, it can also be determined based on whether image stabilization is being performed. If it is determined that the image is still, the skin beautifying effect process is turned ON or the strength of the skin beautifying effect is increased (because the image capture device 1 is not moving and hence afterimages are unlikely to occur). On the other hand, if it is determined that the image is not still, the skin beautifying effect process is turned OFF or the strength of the skin beautifying effect is reduced (because the image capture device 1 is moving and hence afterimages are likely to occur).

[0129] <4. Modifications> Here, the embodiment is not limited to the specific examples described so far, but may adopt various modified configurations. For example, in the above, the face exposure correction value is calculated as the difference between the overall exposure target value before the face area is lost and the face exposure target value before the face area is lost, but the face exposure correction value can also be calculated as a ratio instead of the difference between the overall exposure target value and the face exposure target value. That is, the face exposure correction value can be calculated as the ratio between the overall exposure target value before the face area is lost and the face exposure target value before the face area is lost, for example, "the face exposure target value before the face area is lost" ÷ "the overall exposure target value before the face area is lost". In this case, the correction during the keep period (the predetermined period after the loss) can be performed by multiplying the overall exposure target value by the face exposure correction value as the ratio.

[0130] In this way, the face exposure correction value may be a ratio, rather than a difference, between the overall exposure target value before the face area is lost and the face exposure target value before the face area is lost. In light of this, the face exposure correction value can be conceptually defined as follows. In other words, it can be defined as a relationship that is sought to make the "specific numerical relationship" between the overall exposure target value after the facial area is lost and the overall exposure target value after correction by the exposure correction value equivalent to the "specific numerical relationship" between the overall exposure target value before the facial area is lost and the facial exposure target value before the facial area is lost. The term "specific numerical relationship" as used here means a specific numerical relationship among the numerical relationships between two numbers, and the term "numerical relationship" means a numerical relationship such as the difference or ratio between two numbers. Moreover, the term "equivalent" used here is a concept that includes not only exact agreement, but also falling within a predetermined error range.

[0131] Furthermore, in the above explanation, it has been assumed that the keep period (predetermined period) during which correction using the face exposure correction value is performed is fixed, but the keep period can also be a variable period. For example, the keeping period can be made variable according to the size of the face area Af. In this case, the camera control unit 18 (exposure control unit F2) changes the keeping period based on the size of the face area Af detected by the attention area detection unit F1. For example, when the size of the face area Af is small, the areas other than the face area Af become dominant in the composition, and if the keeping period, i.e., the exposure control period using the face exposure correction value, is long, there is a risk that the period during which the exposure of the areas other than the face area Af is inappropriate will be long. In other words, there is a risk that the unnatural exposure state will continue for a long time in the entire composition. If the keeping period is changed according to the size of the face area Af as described above, it is possible to shorten the keeping period when the size of the face area Af is small, and it is possible to prevent the unnatural exposure state from continuing for a long time in the entire composition. Therefore, appropriate exposure control according to the size of the face area Af can be realized as exposure control after the face area Af is lost.

[0132] Alternatively, the keeping period can be made variable according to the number of face areas Af. In this case, the camera control unit 18 (exposure control unit F2) changes the keeping period based on the number of face areas Af detected by the attention area detection unit F1. For example, when the number of face areas Af is small, areas other than the face areas Af become dominant in the composition, and if the predetermined period, i.e., the exposure control period using the face exposure correction value, is long, there is a risk that the period during which the exposure of areas other than the face areas Af is inappropriate will be long, in other words, there is a risk that the entire composition will continue to have an unnatural exposure state for a long time. If the keep period is changed according to the number of face areas Af as described above, it is possible to shorten the keep period when the number of face areas Af is small, and it is possible to prevent the entire composition from having an unnatural exposure state for a long time. Therefore, appropriate exposure control according to the number of detected face areas Af can be realized as exposure control after the face areas Af are lost.

[0133] The keep period can also be made variable according to the number of times the face area Af has been lost within a certain period of time. In this case, the camera control unit 18 (exposure control unit F2) changes the keep period based on the number of times the face area Af has been lost within a certain period of time in the past. For example, if the face area Af is lost many times within a certain period of time, this means that the face frequently turns back or looks back, and it is highly likely that the lost face area Af will be re-detected immediately afterwards. According to the above configuration, it is possible to shorten the keep period, i.e., the exposure control period using the face exposure correction value, in response to such a high loss frequency. Therefore, it is possible to prevent exposure control using the face exposure correction value from continuing for an unnecessarily long period after the face area Af is lost.

[0134] Furthermore, the keep period can be made variable in response to a user operation. In other words, in this case, the camera control unit 18 (exposure control unit F2) changes the keep period based on an input operation such as a menu operation by the user, for example. This makes it possible to set the duration of exposure control using the face exposure correction value after the face area Af is lost according to the user's preferences. Therefore, the exposure control function can be improved.

[0135] In addition, the keep period may be variable, for example, depending on the amount of facial shaking or acceleration within a certain period of time, or depending on whether the scene being imaged is indoors or outdoors, or depending on the stability of the imaging device 1 itself (for example, whether it is handheld or attached to a tripod).

[0136] In addition, in the explanation so far, a configuration in which the attention area detection unit F1 is provided in the imaging device 1 has been exemplified, but in the present technology, an imaging control device equipped with an exposure control unit F2 is not limited to a configuration in which the attention area detection unit F1 is provided, and a configuration in which the attention area detection unit F1 is not provided may also be adopted.

[0137] In addition, in the explanation so far, it has been assumed that the frame for detecting the area of ​​interest and the frame for which photometry is performed to obtain the target exposure value are the same, but these frames may be different frames, as long as they are at least synchronized in terms of timing.

[0138] In addition, in the explanation so far, an example has been given in which photometry for exposure control is performed based on the image captured by the image sensor 12a, but photometry can also be performed based on the output of a photometry sensor provided separately from the sensor that obtains the captured image.

[0139] <5. Program> The imaging control device (imaging device 1) has been described as an embodiment, and the program of the embodiment is a program that causes a computer device such as a CPU to execute the processing of the imaging device 1.

[0140] The program of the embodiment is a program that can be read by a computer device and causes the computer device to realize the following functions as functions related to exposure control based on information about a region of interest detected from a captured image by a region of interest detection unit. In other words, when a region of interest is detected from the captured image, exposure control is performed using, as the exposure control value, a region of interest exposure target value calculated based on a region of interest photometric value obtained from a first photometric area in the input frame that includes at least the region of interest; when a region of interest is not detected from the captured image, exposure control is performed using, as the exposure control value, a set region exposure target value calculated based on a set region photometric value obtained from a second photometric area that is predetermined in the input frame; and during a specified period from when a region of interest is lost and when no region of interest is detected from the captured image, an exposure correction value is calculated based on the region of interest exposure target value before the region of interest is lost, and exposure control is performed using an exposure control value obtained by correcting the set region exposure target value with the exposure correction value. In other words, this program corresponds to a program that causes a computer device to execute the processes described with reference to, for example, FIG. 7, FIG. 8, FIG.

[0141] Such a program can be stored in advance in a storage medium readable by a computer device, such as a ROM, a hard disk drive (HDD), a solid state drive (SSD), etc. Alternatively, the program can be temporarily or permanently stored (stored) in a removable storage medium such as a semiconductor memory, a memory card, an optical disk, a magneto-optical disk, a magnetic disk, etc. Furthermore, such a removable storage medium can be provided as a so-called package software. In addition, such a program can be installed from a removable storage medium onto a personal computer or the like, or can be downloaded from a download site to a required information processing device such as a smartphone via a network such as a LAN or the Internet.

[0142] <6. Summary of the embodiment> As described above, the imaging control device (imaging device 1) according to the embodiment includes an exposure control unit (F2: camera control unit 18) that performs exposure control based on information about an attention area detected from a captured image by an attention area detection unit (F1). When a region of interest is detected from the captured image, the exposure control unit performs exposure control using, as the exposure control value, the region of interest exposure target value calculated based on the region of interest photometric value obtained from a first photometric area including at least the region of interest in the input frame; when a region of interest is not detected from the captured image, the exposure control unit performs exposure control using, as the exposure control value, the set region exposure target value calculated based on the set region photometric value obtained from a second photometric area that is predetermined in the input frame; and during a specified period when a region of interest is not detected continuously from the time when the region of interest is lost, an exposure correction value is calculated based on the region of interest exposure target value before the region of interest is lost, and exposure control is performed using an exposure control value obtained by correcting the set region exposure target value with the exposure correction value. According to the above configuration, in the case where exposure control is performed so that the attention area is appropriately bright, such as in the case of face AE, if the attention area is lost, exposure control is performed in a subsequent predetermined period by an exposure control value obtained by correcting the set area exposure target value by an exposure correction value obtained based on the attention area exposure target value before the loss. Since the exposure control value obtained by correcting the set area exposure target value by an exposure correction value based on the attention area exposure target value before the loss is used as the exposure control value in the predetermined period after the loss, if there is no change in the brightness of the entire composition within the predetermined period, it is possible to appropriately maintain the brightness of the subject that existed in the attention area even after the loss, and it is possible to prevent a situation in which the brightness change of the entire composition cannot be followed, as in the case of AE locking with the attention area exposure target value before the loss, even if the brightness of the entire composition changes within the predetermined period. Therefore, appropriate exposure control can be maintained even when the region of interest is lost, and the exposure control function of the imaging device can be improved.

[0143] In addition, in the imaging control device as the embodiment, the exposure correction value is a value indicating the relationship between the set area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. This makes it possible to correct the set area exposure target value using the exposure target value so as to reproduce the relationship between the set area exposure target value and the attention area exposure target value before the attention area is lost for a predetermined period of time after the attention area is lost. Therefore, even when the region of interest is lost, appropriate exposure control can be maintained.

[0144] Furthermore, in an embodiment of an imaging control device, the exposure control unit performs exposure control using an exposure correction value calculated so that, during a specified period of time, the specific numerical relationship between the setting area exposure target value and the setting area exposure target value after correction by the exposure correction value is equivalent to the specific numerical relationship between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. According to the above configuration, during a specified period after the attention area is lost, exposure control is performed so that a specific numerical relationship, such as the difference or ratio between the setting area exposure target value and the setting area exposure target value after correction by the exposure correction value, is equivalent to (so as to reproduce) the specific numerical relationship between the setting area exposure target value and the attention area exposure target value before the area is lost. Therefore, even when the region of interest is lost, appropriate exposure control can be maintained.

[0145] Furthermore, in the imaging control device as the embodiment, the exposure correction value is the difference value between the set area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. As a result, during a specified period after the attention area is lost, exposure control is performed so that the difference between the setting area exposure target value and the setting area exposure target value after correction by the exposure correction value is equal to the difference between the setting area exposure target value and the attention area exposure target value before it is lost. Therefore, even when the region of interest is lost, appropriate exposure control can be maintained.

[0146] In addition, in an embodiment of the imaging control device, when the attention area detection unit detects attention areas inside and outside a specific area in the captured image, the exposure control unit calculates the attention area exposure target value used to calculate the exposure correction value based on at least one of the size, number, and position of the detected attention areas (see Figures 9 to 11). If the area of ​​interest detected outside the specific area is small in size, few in number, or far from the area of ​​interest detected within the specific area, there is a risk that the brightness of the subject in the area of ​​interest detected within the specific area will not be appropriate if the exposure target value for that area of ​​interest is taken into consideration when calculating the exposure correction value. According to the above configuration, in cases where there is such a risk, it is possible to avoid using the exposure target value of the attention area detected outside the specific area in calculating the exposure correction value, thereby ensuring that appropriate exposure control is maintained even when the attention area is lost.

[0147] Furthermore, in an embodiment of the imaging control device, when the size of the area of ​​interest detected outside the specific area is larger than a reference size, the exposure control unit uses the area of ​​interest exposure target value calculated for the area of ​​interest in calculating the exposure correction value, and when the size of the area of ​​interest detected outside the specific area is not larger than the reference size, the exposure control unit does not use the area of ​​interest exposure target value calculated for the area of ​​interest in calculating the exposure correction value. This makes it possible to use the exposure target value of an attention area detected outside a specific area in calculating the exposure correction value if the area is large enough that it cannot be ignored in correcting the setting area exposure target value after the area of ​​interest is lost, and conversely, to not use the exposure target value of the attention area in calculating the exposure correction value if the area of ​​interest is small enough that it can be ignored in correcting the setting area exposure target value after the area of ​​interest is lost. Therefore, appropriate exposure control according to the size of the attention area detected outside the specific area can be realized as exposure control after the attention area is lost.

[0148] Furthermore, in the imaging control device according to the embodiment, the reference size is the size of the attention area detected within the specific area. This allows the determination of whether or not to use the exposure target value of the attention area detected outside the specific area for calculating the exposure correction value to be made based on the relative size relationship between the attention areas detected inside / outside the specific area. Therefore, it is possible to prevent inconveniences such as the exposure target value of a region of interest detected outside a specific region not being used to calculate an exposure correction value even though the size of the region of interest is larger, and it is possible to realize appropriate exposure control according to the size relationship between regions of interest detected inside / outside a specific region.

[0149] In addition, in an embodiment of the imaging control device, when the number of attention areas detected outside the specific area is greater than a threshold value, the exposure control unit uses the attention area exposure target value calculated for the attention areas detected outside the specific area to calculate the exposure correction value, and when the number of attention areas detected outside the specific area is not greater than the threshold value, the exposure control unit does not use the attention area exposure target value calculated for the attention areas detected outside the specific area to calculate the exposure correction value. This makes it possible to use the exposure target values ​​of attention areas detected outside the specific area in calculating the exposure correction value when there are a large number of attention areas outside the specific area and the attention areas outside the specific area cannot be ignored in correcting the setting area exposure target value after the attention areas are lost, and conversely, when there are a small number of attention areas detected outside the specific area and the attention areas outside the specific area can be ignored in correcting the setting area exposure target value after the attention areas are lost, not to use the exposure target values ​​of the attention areas in calculating the exposure correction value. Therefore, appropriate exposure control according to the number of attention areas detected outside the specific area can be realized as exposure control after attention areas are lost.

[0150] Furthermore, in an embodiment of the imaging control device, if there is a region of interest detected outside the specific region that is within a certain distance from the region of interest detected within the specific region, the exposure control unit uses the region of interest exposure target value calculated for that region of interest in calculating the exposure correction value, and if there is no region of interest within the specific region that is within a certain distance from the region of interest detected within the specific region, the exposure control unit does not use the region of interest exposure target value calculated for the region of interest detected outside the specific region in calculating the exposure correction value. As a result, for an area of ​​interest detected outside the specific area, if the area of ​​interest is close to an area of ​​interest within the specific area, in other words, if the difference in brightness between the area of ​​interest within the specific area and the area of ​​interest is likely to be noticeable if the exposure target value of the area of ​​interest is not used in calculating the exposure compensation value, the exposure target value of the area of ​​interest is used in calculating the exposure compensation value, and conversely, if the area of ​​interest is far from the area of ​​interest within the specific area and the difference in brightness is less noticeable, the exposure target value of the area of ​​interest is not used in calculating the exposure compensation value. Therefore, appropriate exposure control according to the distance between the attention area detected inside / outside the specific area can be realized as exposure control after the attention area is lost.

[0151] Furthermore, in the imaging control device as the embodiment, the exposure control unit changes the predetermined period based on the size of the attention area detected by the attention area detection unit. For example, when the size of the attention area is small, the area other than the attention area becomes dominant in the composition, and if the predetermined period, i.e., the exposure control period using the exposure correction value, is long, there is a risk that the period during which the exposure of the area other than the attention area is inappropriate will be long. In other words, there is a risk that the unnatural exposure state will continue for a long time in the entire composition. If the predetermined period is changed according to the size of the attention area as described above, it is possible to shorten the predetermined period when the size of the attention area is small, and it is possible to prevent the unnatural exposure state from continuing for a long time in the entire composition. Therefore, appropriate exposure control according to the size of the area of ​​interest can be realized as exposure control after the area of ​​interest is lost.

[0152] In addition, in the imaging control device according to the embodiment, the exposure control unit changes the predetermined period based on the number of attention areas detected by the attention area detection unit. For example, when the number of attention areas is small, areas other than the attention areas become dominant in the composition, and if the predetermined period, i.e., the exposure control period using the exposure correction value, is long, there is a risk that the period during which the exposure of areas other than the attention areas is inappropriate will be long, in other words, there is a risk that the composition as a whole will have a long period of unnatural exposure. If the predetermined period is changed according to the number of attention areas as described above, it is possible to shorten the predetermined period when the number of attention areas is small, and it is possible to prevent the composition as a whole from having a long period of unnatural exposure. Therefore, appropriate exposure control according to the number of detected regions of interest can be realized as exposure control after the region of interest is lost.

[0153] Furthermore, in the imaging control device according to the embodiment, the exposure control unit changes the predetermined period based on the number of times the region of interest is lost within a certain period of time. For example, if the attention area is a human face area, a large number of times the attention area is lost within a certain period of time means that the face frequently turns back or looks back, and it is highly likely that the lost attention area will be redetected immediately after. According to the above configuration, it is possible to shorten the predetermined period, i.e., the exposure control period using the exposure correction value, in response to such a high frequency of loss. Therefore, it is possible to prevent exposure control using the exposure correction value from continuing unnecessarily for a long time after the attention area is lost.

[0154] Furthermore, in the imaging control device according to the embodiment, the exposure control unit changes the predetermined period based on a user operation. This makes it possible to set the duration of exposure control using the exposure correction value after the attention area is lost according to the user's preference. Therefore, the exposure control function can be improved.

[0155] In addition, an imaging control method as an embodiment is an imaging control method in which an imaging control device performs exposure control based on information of a region of interest detected from an captured image by an attention region detection unit, when a region of interest is detected from the captured image, performs exposure control using a region of interest exposure target value calculated based on a region of interest metering value obtained from a first photometry area including at least the region of interest in the input frame as the exposure control value, and when a region of interest is not detected from the captured image, performs exposure control using a set region exposure target value calculated based on a set region photometry value obtained from a second photometry area that is predetermined in the input frame as the exposure control value, and during a predetermined period from when the region of interest is lost and when the region of interest is not detected from the captured image, an exposure correction value is calculated based on the region of interest exposure target value before the region of interest was lost, and exposure control is performed using an exposure control value obtained by correcting the set region exposure target value with the exposure correction value. With this imaging control method as well, it is possible to obtain the same functions and effects as those of the imaging control device according to the above-described embodiment.

[0156] In addition, the program as an embodiment is a program readable by a computer device, and causes the computer device to realize the following functions related to exposure control based on information of the area of ​​interest detected from the captured image by the area of ​​interest detection unit: when an area of ​​interest is detected from the captured image, exposure control is performed with an area of ​​interest exposure target value calculated based on the area of ​​interest photometry value obtained from a first photometry area including at least the area of ​​interest in the input frame as the exposure control value; when an area of ​​interest is not detected from the captured image, exposure control is performed with a set area exposure target value calculated based on the set area photometry value obtained from a second photometry area that is predetermined in the input frame as the exposure control value; and during a predetermined period from the time when the area of ​​interest is lost and the area of ​​interest is not detected from the captured image, an exposure correction value is calculated based on the area of ​​interest exposure target value before the area of ​​interest was lost, and exposure control is performed using the exposure control value obtained by correcting the set area exposure target value with the exposure correction value. Such a program allows a computer device to function as the imaging control device according to the above-described embodiment.

[0157] It should be noted that the effects described in this specification are merely examples and are not limiting, and other effects may also be obtained.

[0158] <7. This Technology> The present technology can also be configured as follows. (1) an exposure control unit that performs exposure control based on information about an attention area detected from a captured image by the attention area detection unit; The exposure control unit includes: When an attention area is detected from the captured image, exposure control is performed using an attention area exposure target value calculated based on an attention area photometric value obtained from a first photometric area including at least the attention area in the input frame as an exposure control value; When the attention area is not detected from the captured image, exposure control is performed using a setting area exposure target value calculated based on a setting area photometric value obtained from a second photometric area that is predetermined in the input frame as an exposure control value; During a predetermined period when the attention area is not continuously detected from the captured image after the attention area is lost, an exposure correction value is calculated based on the attention area exposure target value before the attention area is lost, and exposure control is performed using an exposure control value obtained by correcting the setting area exposure target value with the exposure correction value. Imaging control device. (2) The exposure correction value is a value indicating a relationship between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. The imaging control device according to (1) above. (3) The exposure control unit performs exposure control using the exposure correction value calculated so as to make a specific numerical relationship between the setting area exposure target value and the setting area exposure target value after correction using the exposure correction value equivalent to the specific numerical relationship between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. The imaging control device described in (2) above. (4) The exposure correction value is a difference value between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. The imaging control device according to (2) or (3). (5) When the attention area detection unit detects attention areas inside and outside a specific area in the captured image, the exposure control unit calculates the attention area exposure target value used for calculating the exposure correction value based on at least one of a size, a number, and a position of the detected attention areas. An imaging control device according to any one of (1) to (4). (6) When a size of a region of interest detected outside the specific region is larger than a reference size, the exposure control unit uses a region of interest exposure target value calculated for the region of interest in calculating the exposure correction value, and when a size of a region of interest detected outside the specific region is not larger than the reference size, the exposure control unit does not use a region of interest exposure target value calculated for the region of interest in calculating the exposure correction value. The imaging control device according to (5) above. (7) The reference size is the size of the region of interest detected within the specific region. The imaging control device according to (6) above. (8) When the number of attention regions detected outside the specific region is greater than a threshold, the exposure control unit uses the attention region exposure target value calculated for the attention regions detected outside the specific region in calculating the exposure correction value, and when the number of attention regions detected outside the specific region is not greater than the threshold, does not use the attention region exposure target value calculated for the attention regions detected outside the specific region in calculating the exposure correction value. An imaging control device according to any one of (5) to (7). (9) When an attention area detected outside the specific area is within a certain distance from the attention area detected within the specific area, the exposure control unit uses an attention area exposure target value calculated for the attention area in calculating the exposure correction value, and when an attention area detected within the specific area is not within a certain distance from the attention area detected within the specific area, the exposure control unit does not use an attention area exposure target value calculated for the attention area detected outside the specific area in calculating the exposure correction value. An imaging control device according to any one of (5) to (8). (10) The exposure control unit changes the predetermined period based on a size of the attention area detected by the attention area detection unit. An imaging control device according to any one of (1) to (9). (11) The exposure control unit changes the predetermined period based on the number of attention areas detected by the attention area detection unit. An imaging control device according to any one of (1) to (10) above. (12) The exposure control unit changes the predetermined period based on the number of times the attention area is lost within a certain period of time. An imaging control device according to any one of (1) to (11) above. (13) The exposure control unit changes the predetermined period based on a user operation. An imaging control device according to any one of (1) to (12) above. (14) an imaging control device that performs exposure control based on information about an attention area detected from a captured image by an attention area detection unit, When an attention area is detected from the captured image, exposure control is performed using an attention area exposure target value calculated based on an attention area photometric value obtained from a first photometric area including at least the attention area in the input frame as an exposure control value; When the attention area is not detected from the captured image, exposure control is performed using a setting area exposure target value calculated based on a setting area photometric value obtained from a second photometric area that is predetermined in the input frame as an exposure control value; During a predetermined period when the attention area is not continuously detected from the captured image after the attention area is lost, an exposure correction value is calculated based on the attention area exposure target value before the attention area is lost, and exposure control is performed using an exposure control value obtained by correcting the setting area exposure target value with the exposure correction value. Imaging control method. (15) A computer readable program, As a function of exposure control based on information of an attention area detected from a captured image by the attention area detection unit, When an attention area is detected from the captured image, exposure control is performed using an attention area exposure target value calculated based on an attention area photometric value obtained from a first photometric area including at least the attention area in the input frame as an exposure control value; When the attention area is not detected from the captured image, exposure control is performed using a setting area exposure target value calculated based on a setting area photometric value obtained from a second photometric area that is predetermined in the input frame as an exposure control value; During a predetermined period when the attention area is not continuously detected from the captured image after the attention area is lost, an exposure correction value is calculated based on the attention area exposure target value before the attention area is lost, and exposure control is performed using an exposure control value obtained by correcting the setting area exposure target value with the exposure correction value. program. [Explanation of symbols]

[0159] 1. Imaging device 11 Lens system 12 Image sensor section 12a Image sensor 13 Camera signal processing section 14 Recording control section 15 Display 16 Communications Department 17 Control section 18,18A Camera control unit 19,19A Memory section 22 Driver section 23 Sensor section 24 Power supply section 24a battery F1 Region of interest detection section F2 exposure control section Af Face area As specific area

Claims

1. an exposure control unit that performs exposure control based on information about an attention area detected from a captured image by the attention area detection unit; The exposure control unit includes: When an attention area is detected from the captured image, exposure control is performed using an attention area exposure target value calculated based on an attention area photometric value obtained from a first photometric area including at least the attention area in the input frame as an exposure control value; When the attention area is not detected from the captured image, exposure control is performed using a setting area exposure target value calculated based on a setting area photometric value obtained from a second photometric area that is predetermined in the input frame as an exposure control value; During a predetermined period when the attention area is not continuously detected from the captured image after the attention area is lost, an exposure correction value is calculated based on the attention area exposure target value before the attention area is lost, and exposure control is performed using an exposure control value obtained by correcting the setting area exposure target value with the exposure correction value. Imaging control device.

2. The exposure correction value is a value indicating a relationship between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. The imaging control device according to claim 1 .

3. The exposure control unit performs exposure control using the exposure correction value calculated so as to make a specific numerical relationship between the setting area exposure target value and the setting area exposure target value after correction using the exposure correction value equivalent to the specific numerical relationship between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. The imaging control device according to claim 2 .

4. The exposure correction value is a difference value between the setting area exposure target value before the attention area is lost and the attention area exposure target value before the attention area is lost. The imaging control device according to claim 2 .

5. When the attention area detection unit detects attention areas inside and outside a specific area in the captured image, the exposure control unit calculates the attention area exposure target value used for calculating the exposure correction value based on at least one of a size, a number, and a position of the detected attention areas. The imaging control device according to claim 1 .

6. When a size of a region of interest detected outside the specific region is larger than a reference size, the exposure control unit uses a region of interest exposure target value calculated for the region of interest in calculating the exposure correction value, and when a size of a region of interest detected outside the specific region is not larger than the reference size, the exposure control unit does not use a region of interest exposure target value calculated for the region of interest in calculating the exposure correction value. The imaging control device according to claim 5 .

7. The reference size is the size of the region of interest detected within the specific region. The imaging control device according to claim 6.

8. When the number of attention regions detected outside the specific region is greater than a threshold, the exposure control unit uses the attention region exposure target value calculated for the attention regions detected outside the specific region in calculating the exposure correction value, and when the number of attention regions detected outside the specific region is not greater than the threshold, does not use the attention region exposure target value calculated for the attention regions detected outside the specific region in calculating the exposure correction value. The imaging control device according to claim 5 .

9. When an attention area detected outside the specific area is within a certain distance from the attention area detected within the specific area, the exposure control unit uses an attention area exposure target value calculated for the attention area in calculating the exposure correction value, and when an attention area detected within the specific area is not within a certain distance from the attention area detected within the specific area, the exposure control unit does not use an attention area exposure target value calculated for the attention area detected outside the specific area in calculating the exposure correction value. The imaging control device according to claim 5 .

10. The exposure control unit changes the predetermined period based on a size of the attention area detected by the attention area detection unit. The imaging control device according to claim 1 .

11. The exposure control unit changes the predetermined period based on the number of attention areas detected by the attention area detection unit. The imaging control device according to claim 1 .

12. The exposure control unit changes the predetermined period based on the number of times the attention area is lost within a certain period of time. The imaging control device according to claim 1 .

13. The exposure control unit changes the predetermined period based on a user operation. The imaging control device according to claim 1 .

14. an imaging control device that performs exposure control based on information about an attention area detected from a captured image by an attention area detection unit, When an attention area is detected from the captured image, exposure control is performed using an attention area exposure target value calculated based on an attention area photometric value obtained from a first photometric area including at least the attention area in the input frame as an exposure control value; When the attention area is not detected from the captured image, exposure control is performed using a setting area exposure target value calculated based on a setting area photometric value obtained from a second photometric area that is predetermined in the input frame as an exposure control value; During a predetermined period when the attention area is not continuously detected from the captured image after the attention area is lost, an exposure correction value is calculated based on the attention area exposure target value before the attention area is lost, and exposure control is performed using an exposure control value obtained by correcting the setting area exposure target value with the exposure correction value. Imaging control method.

15. A computer readable program, As a function of exposure control based on information of an attention area detected from a captured image by the attention area detection unit, When an attention area is detected from the captured image, exposure control is performed using an attention area exposure target value calculated based on an attention area photometric value obtained from a first photometric area including at least the attention area in the input frame as an exposure control value; When the attention area is not detected from the captured image, exposure control is performed using a setting area exposure target value calculated based on a setting area photometric value obtained from a second photometric area that is predetermined in the input frame as an exposure control value; During a predetermined period when the attention area is not continuously detected from the captured image after the attention area is lost, an exposure correction value is calculated based on the attention area exposure target value before the attention area is lost, and exposure control is performed using an exposure control value obtained by correcting the setting area exposure target value with the exposure correction value. program.

Citation Information

Patent Citations

  • Imaging device and method for controlling the same

    JP2008035415A

  • Imaging apparatus and exposure control method

    JP2008070562A

  • Image pickup device

    JP2010093689A

  • Control device, imaging apparatus, control method, program, and memory medium

    JP2018033013A

  • Focus control device, imaging device, focus control method, and focus control program

    WO2016103962A1