Imaging apparatus including eyepiece portion, method for controlling imaging apparatus, and recording medium
An imaging apparatus includes a first imaging unit, a second imaging unit, an electronic viewfinder configured to display an image captured by the first imaging unit, and a determination unit configured to determine, based on image data captured by the second imaging unit, whether a user is attempting to view through the electronic viewfinder, wherein in a case where the determination unit does not determine that the user is attempting to view through the electronic viewfinder, the electronic viewfinder does not display the image captured by the first imaging unit, wherein in a case where the determination unit determines that the user is attempting to view through the electronic viewfinder, the electronic viewfinder displays the image captured by the first imaging unit, and wherein the determination unit uses a trained model in determining whether the user is attempting to view through the electronic viewfinder.
1 . An imaging apparatus comprising:
a first imaging unit configured to image a subject;
a second imaging unit arranged in a direction opposite to the first imaging unit;
an electronic viewfinder arranged in the same direction as the second imaging unit and configured to display an image captured by the first imaging unit;
a detector configured to detect a face out of image data captured by the second imaging unit;
a determination unit configured to determine, based on image data captured by the second imaging unit, whether a user is attempting to view through the electronic viewfinder; and
a controller, wherein
the controller is configured to
(i) in a case where the face is not detected by the detector, control the determination unit not to perform the determination, and control the electronic viewfinder not to display an image captured by the first imaging unit,
(ii) in a case where the face is detected by the detector and the face detected by the detector satisfies a predetermined condition, control the determination unit to perform the determination, and
(a) in a case where the determination unit does not determine that the user is attempting to view through the electronic viewfinder, control the electronic viewfinder not to display the image captured by the first imaging unit, and
(b) in a case where the determination unit determines that the user is attempting to view through the electronic viewfinder, control the electronic viewfinder to display the image captured by the first imaging unit, and
wherein the determination unit uses a trained model in determining whether the user is attempting to view through the electronic viewfinder.
2 . The imaging apparatus according to claim 1 , further comprising a display unit having a display area larger than the electronic viewfinder,
wherein in a case where the determination unit does not determine that the user is attempting to view through the electronic viewfinder, the controller controls the display unit to display the image captured by the first imaging unit, and
wherein in a case where the determination unit determines that the user is attempting to view through the electronic viewfinder, the controller controls the display unit not to display the image captured by the first imaging unit.
3 . The imaging apparatus according to claim 1 , wherein in a case where processing for imaging using the first imaging unit and recording image data is performed before a predetermined time passes after the determination unit determines that the user is attempting to view through the electronic viewfinder, the trained model is relearned using, as input data, image data used by the determination unit in determining that the user is attempting to view through the electronic viewfinder and, as training data, information indicating that the user is attempting to view through the electronic viewfinder.
4 . The imaging apparatus according to claim 1 , wherein
the detector detects feature points of the face from the image data captured by the second imaging unit, and
upon satisfying the predetermined condition by the feature points detected by the detector, the controller controls the determination unit to perform the determination.
5 . The imaging apparatus according to claim 1 , further comprising:
an accumulator configured to accumulate the image data captured by the second imaging unit since detecting the face by the detector till satisfying the predetermined condition, wherein
based on the captured image data accumulated by the accumulator, the determination unit determines whether the user is attempting to view through the electronic viewfinder.
6 . The imaging apparatus according to claim 5 , wherein the detector is capable of detecting a person, and
upon detecting the person by the detector, the accumulator starts the accumulation of the image data captured by the second capturing unit.
7 . The imaging apparatus according to claim 6 , wherein the accumulator deletes the accumulated image data when a predetermined time has elapsed without detecting a face of the person by the detector after detecting the person by the detector.
8 . The imaging apparatus according to claim 5 , wherein the accumulator deletes the accumulated image data when a predetermined time has elapsed without satisfying the predetermined condition after detecting the face by the detector.
9 . A method for controlling an imaging apparatus including a first imaging unit configured to image a subject, a second imaging unit arranged in a direction opposite to the first imaging unit, and an electronic viewfinder arranged in the same direction as the second imaging unit and configured to display an image captured by the first imaging unit, and a detector configured to detect a face out of image data captured by the second imaging unit, the method comprising:
determining, based on the image data captured by the second imaging unit, whether a user is attempting to view through the electronic viewfinder; and
controlling a controller wherein the controller is configured to
(i) in a case where the face is not detected by the detector and the face detected by the detector satisfies a predetermined condition, control the determination unit not to perform the determination, and control the electronic viewfinder not to display an image captured by the first imaging unit,
(ii) in a case where the face is detected by the detector, control the determination unit to perform the determination, and
(a) in a case where the determining does not determine that the user is attempting to view through the electronic viewfinder, the image captured by the first imaging unit is not displayed on the electronic viewfinder,
(b) in a case where the determining determines that the user is attempting to view through the electronic viewfinder, control is performed to display the image captured by the first imaging unit on the electronic viewfinder, and
wherein the determining uses a trained model in determining whether the user is attempting to view through the electronic viewfinder.
10 . The method for controlling the imaging apparatus according to claim 9 ,
wherein the imaging apparatus further includes a display unit having a display area larger than the electronic viewfinder,
wherein in a case where the determining does not determine that the user is attempting to view through the electronic viewfinder, the image captured by the first imaging unit is displayed on the display unit, and
wherein in a case where the determining determines that the user is attempting to view through the electronic viewfinder, the image captured by the first imaging unit is not displayed on the display unit.
11 . The method for controlling the imaging apparatus according to claim 9 , wherein in a case where processing for imaging using the first imaging unit and recording image data is performed before a predetermined time passes after the determining determines that the user is attempting to view through the electronic viewfinder, the trained model is relearned using, as input data, image data used in determining that the user is attempting to view through the electronic viewfinder and, as training data, information indicating that the user is attempting to view through the electronic viewfinder.
12 . A non-transitory computer-readable storage medium which stores a program for causing an imaging apparatus including a first imaging unit configured to image a subject, a second imaging unit arranged in a direction opposite to the first imaging unit, and an electronic viewfinder arranged in the same direction as the second imaging unit and configured to display an image captured by the first imaging unit, to execute the method according to claim 9 .