An optical sensor including an irradiation system including at least one light irradiator, the at least one irradiator including a surface emitting laser array having a plurality of light-emitting units, and a lens disposed in an optical path of the plurality of rays of light emitted from the plurality of light-emitting units to cause light exit directions of at least two of the plurality of light-emitting units to be not parallel to each other, such that the at least one irradiator irradiates a same point of a test object with a plurality of rays of light that are not parallel to each other. The optical sensor also including a detection system configured to detect the plurality of rays of light that are emitted from the irradiation system and propagated inside the test object.