A vein-illumination device includes: a base, a frame connected thereto using a flexible hinge, allowing the frame to move angularly, with respect to the base, in a first direction, a means for exciting angular oscillations of the frame, an elastic torsional element having a proximal end attached to the frame and a distal end attached to a mirror, and a means for exciting the angular oscillations of the mirror. The torsional element allows the mirror to move angularly with respect to the frame in a second direction, generally perpendicular to the first direction. The invention also includes a device for optically inspecting confined spaces, which includes at least one laser light source, a scanning means that scans one or more laser beams in a two-dimensional pattern over an inspection area, and at least one light detector, sensitive to the light of the laser beam(s) being reflected from the inspection area.