Machine vision systems have been used in the automatic inspection of screw threads using backlight illumination for the inspection of the screw thread profiles. In this study, an alternative inspection system based on front light illumination is developed to directly obtain thread images so that surface defects can be measured. To realize such an inspection system, an omnidirectional optical measurement device is proposed to obtain 360oimages of screws for inspection of whole thread regions. Optical simulation based on ray tracing is then performed to analyze optical paths and to optimize the image quality of the designed optical system.