主权项 |
1. An apparatus comprising:
a light emitting module to emit a light; an image sensor including a plurality of pixel lines including a first pixel line and a second pixel line, the first pixel line adapted to obtain a first part of an image corresponding to an external object during a first time period, and the second pixel line adapted to obtain a second part of the image during a second time period starting later than and overlapping partially with the first time period; and one or more processors configured to:
obtain, via the image sensor, a first preliminary image corresponding to the external object using no light or a first light emitted from the light emitting module, the first preliminary image having a first characteristic,obtain a second preliminary image corresponding to the external object using a second light emitted from the light emitting module, the second preliminary image having a second characteristic,determine, based at least in part on a difference between the first and second characteristics, a light emitting duration during which the light emitting module is to emit the light,determine, based at least in part on the first preliminary image or the second preliminary image, a pixel line synchronization duration during which the first time period and the second time period overlap, andobtain a final image corresponding to the external object, the obtaining of the final image including emitting, using the light emitting module the light during the light emitting duration as arranged within the pixel line synchronization duration based at least in part on a determination that the light emitting duration is shorter than or equal to the pixel line synchronization duration. |