The present invention is directed to a device which includes the following features: a light source illuminates a target to generate an optical inspection signal; a probe head provides an optical path for the optical inspection signal; a probe tube arranged at a front end of the probe head; at least one switched filter module arranged in the optical path, allowing the optical inspection signal to pass therethrough to generate a corresponding spectral signal; and an image sensor arranged behind the switched filter module, receiving the spectral signal and generating a spectral image. The spectral image can be transmitted to an external device, wherefrom the user can use the spectral image to examine the target in further detail. The present invention features a rotary-type or movable-type switched filter module, which facilitates the user to switch filters easily during optical inspection.