Imaging device, control method for imaging device, and non-transitory recording medium
An imaging device includes a lens that guides, to an imaging element, light reflected from a subject, a wearing tool for wearing at least the lens on a wearing target, and at least one processor. The processor determines whether a first condition based on a positional relationship of the lens with respect to the wearing target is satisfied, determines whether a second condition that includes a condition based on the positional relationship of the lens with respect to the wearing target is satisfied, the second condition differing from the first condition, and makes an imaging parameter of at least one of the imaging element or the lens for when the first condition is satisfied and for when the second condition is satisfied different from each other.
1. An imaging device, comprising:
a lens that guides, to an imaging element, light reflected from a subject;
a wearing tool for placing at least the lens on a wearing target, wherein the wearing target is a human body part on which the wearing tool is worn;
an illuminance sensor covered by the wearing target responsive to the lens being placed on the wearing target; and
at least one processor, wherein
the lens, responsive to being placed on the wearing target, is in a first position in which the lens is covered by the wearing target, and
the processor,
responsive to an illuminance detected by the illuminance sensor exceeding a first threshold, determines that a first condition is satisfied and sets an imaging parameter of at least one of the lens or the imaging element to a first setting value which is configured for imaging the wearing tool, and
responsive to the wearing tool being captured in an image acquired by using the imaging parameter set to the first setting value, determines that a second condition is satisfied and sets the imaging parameter to a second setting value which is configured for imaging an object different from the wearing tool and at a different distance from the imaging element than the wearing tool.
2. The imaging device according to claim 1 , wherein the second setting value is configured for imaging the object which is different from the wearing tool and further distant from the imaging element than the wearing tool.
3. The imaging device according to claim 1 , wherein the processor, in a case in which the imaging element is activated, stops driving of the imaging element when the illuminance is less than the first threshold.
4. The imaging device according to claim 1 , wherein
the lens is connected to the wearing tool via a movable member,
in a state in which the lens is placed on the wearing target by the wearing tool, the lens is movable, by the movable member, between the first position and a second position in which the lens is not covered by the wearing target, and
the processor
determines that a third condition is satisfied when the illuminance is greater than or equal to the first threshold, even when the wearing tool is not captured in the acquired image, and
makes the imaging parameter for use when the first condition is satisfied different from the imaging parameter for use when the third condition is satisfied.
5. The imaging device according to claim 4 , wherein the processor, in a case in which the imaging element is activated, stops driving of the imaging element when the third condition is no longer satisfied.
6. The imaging device according to claim 1 , further comprising:
an acceleration sensor, wherein
the processor
acquires an image by performing imaging using the lens and the imaging element in a state in which the imaging parameter is set to the first setting value,
determines whether the wearing tool is captured in the acquired image, and whether an amount of change of acceleration detected by the acceleration sensor is less than an acceleration change threshold, and
determines that the second condition is satisfied when the wearing tool is captured in the acquired image and the amount of change of acceleration is less than the acceleration change threshold.
7. The imaging device according to claim 1 , wherein
the lens and the imaging element are respectively a first lens and a first imaging element,
the imaging device further comprises a second lens and a second imaging element having a different imaging range from the first lens and the first imaging element, and
the processor makes an imaging parameter of at least one of the second lens or the second imaging element for use when the second condition is satisfied different from said imaging parameter for use when the second condition is not satisfied.
8. The imaging device according to claim 7 , wherein when the second condition is satisfied, the processor sets said imaging parameter of at least one of the second lens or the second imaging element to be identical to the imaging parameter of at least one of the first lens or the first imaging element.
9. The imaging device according to claim 1 , wherein
the second condition includes a condition that the lens is not placed on the wearing target by the wearing tool.
10. The imaging device according to claim 9 , wherein
the lens is connected to the wearing tool via a movable member,
in a state in which the lens is placed on the wearing target by the wearing tool, the lens is movable, by the movable member, between the first position and a second position, the lens having different optical axes with respect to the wearing target in the first position and the second position,
the first condition includes that the lens is positioned in the first position, and
the second condition includes that the lens is positioned in the second position.
11. A control method for an imaging device, the imaging device including a lens that guides, to an imaging element, light reflected from a subject, a wearing tool for placing at least the lens on a wearing target, wherein the wearing target is a human body part on which the wearing tool is worn, an illuminance sensor covered by the wearing target when the lens is placed on the wearing target, and at least one processor, the method comprising:
determining, by the processor, that a first condition is satisfied when an illuminance detected by the illuminance sensor exceeds a first threshold to indicate that the lens is in a first position in which the lens is placed on the wearing target and is covered by the wearing target;
setting, by the processor, an imaging parameter of at least one of the lens or the imaging element to a first setting value which is configured for imaging the wearing tool;
determining, by the processor, that a second condition is satisfied when the wearing tool is captured in an image acquired by using the imaging parameter set to the first setting value; and
setting, by the processor, the imaging parameter to a second setting value which is configured for imaging an object different from the wearing tool and at a different distance from the imaging element than the wearing tool.
12. The control method according to claim 11 , wherein
the second setting value is configured for imaging the object which is different from the wearing tool and further distant from the imaging element than the wearing tool.
13. The control method according to claim 11 , comprising:
in a case in which the imaging element is activated, stopping driving of the imaging element when the illuminance is less than the first threshold.
14. The control method according to claim 11 , comprising:
determining that a third condition is satisfied when the illuminance exceeds a second threshold that is greater than or equal to the first threshold, even when the wearing tool is not captured in the acquired image, and
making the imaging parameter for use when the first condition is satisfied different from the imaging parameter for use when the third condition is satisfied.
15. The control method according to claim 14 , comprising:
in a case in which the imaging element is activated, stopping driving of the imaging element when the third condition is no longer satisfied.
16. The control method according to claim 11 , comprising:
acquiring an image by performing imaging using the lens and the imaging element in a state in which the imaging parameter is set to the first setting value,
determining whether the wearing tool is captured in the acquired image, and whether an amount of change of acceleration of the imaging device is less than an acceleration change threshold, and
determining that the second condition is satisfied when the wearing tool is captured in the acquired image and the amount of change of acceleration is less than the acceleration change threshold.
17. The control method according to claim 11 , wherein
the lens and the imaging element are respectively a first lens and a first imaging element,
the imaging device further includes a second lens and a second imaging element having a different imaging range from the first lens and the first imaging element, and
an imaging parameter of at least one of the second lens or the second imaging element for use when the second condition is satisfied different from said imaging parameter for use when the second condition is not satisfied.
18. The control method according to claim 17 , comprising:
when the second condition is satisfied, setting said imaging parameter of at least one of the second lens or the second imaging element to be identical to the imaging parameter of at least one of the first lens or the first imaging element.
19. The control method according to claim 11 , wherein
the second condition includes a condition that the lens is not placed on the wearing target by the wearing tool.
20. A non-transitory recording medium storing a program for execution in a computer of an imaging device, the imaging device including a lens that guides, to an imaging element, light reflected from a subject, a wearing tool for placing at least the lens on a wearing target, wherein the wearing target is a human body part on which the wearing tool is worn, an illuminance sensor covered by the wearing target when the lens is placed on the wearing target, and at least one processor, the program causing the computer to:
determine that a first condition is satisfied when an illuminance detected by the illuminance sensor exceeds a first threshold to indicate that the lens is in a first position in which the lens is placed on the wearing target and is covered by the wearing target;
set an imaging parameter of at least one of the lens or the imaging element to a first setting value which is configured for imaging the wearing tool;
determine that a second condition is satisfied when the wearing tool is captured in an image acquired by using the imaging parameter set to the first setting value; and
set the imaging parameter to a second setting value which is configured for imaging an object different from the wearing tool and at a different distance from the imaging element than the wearing tool.