摘要:
A motion sensor device according to an embodiment of the present disclosure includes: an image sensor (701); first and second light sources (702, 703); and a controller (710) configured to control the image sensor (701) and the first and second light sources (702, 703). The controller (710) makes the image sensor capture a first frame with light emitted from the first light source at a first time, makes the image sensor capture a second frame with light emitted from the second light source at a second time, performs masking processing on a first image gotten by capturing the first frame and on a second image gotten by capturing the second frame based on a difference between the first and second images, and obtain information about the distance to an object shot in the first and second images based on the first and second images that have been subjected to the masking processing.